Results 1 to 4 of 4

Thread: CTD after adding traits

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Foederatus
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    48

    Default CTD after adding traits

    Since I've had no luck adding historical names, I thought that I'd attempt accomplishing that by going down the much trickier road of using traits with epithets instead.

    After adding two trait that was suppoused to generate the epithet "Julius Caesar" for all male members of the Julii family, I get strange CTD's without any error reports (at least now I know the -show_err works, solved another problem with that).

    I've checked the traits with the Trait/Ancillary Validator and it checks out fine without neither errors nor warnings. The game loads fine, but when I start a new campaign, I get a CTD when about 1/4 of the campaign loading bar gets filled.

    Here is the relevant code:

    ...in export_descr_character_traits.txt:
    Code:
     
    Trait JuliusTrait
        Hidden
        Characters family
        ExcludeCultures barbarian, eastern, egyptian, carthaginian, greek
        NoGoingBackLevel  1 
        AntiTraits JuliusCaesarTrait
     
       Level Julius_Trait
            Description Julius_Trait_desc
            EffectsDescription Julius_Trait_effects_desc
            Epithet Julius_Trait_epithet_desc
            Threshold  1 
     
    Trait JuliusCaesarTrait
        Hidden
        Characters family
        ExcludeCultures barbarian, eastern, egyptian, carthaginian, greek
        NoGoingBackLevel  1 
        AntiTraits JuliusTrait
     
       Level Julius_Caesar_Trait
            Description Julius_Caesar_Trait_desc
            EffectsDescription Julius_Caesar_Trait_effects_desc
            Epithet Julius_Caesar_Trait_epithet_desc
            Threshold  1 
     
    ...
     
    Trigger JuliusTrait_1
        WhenToTest CharacterComesOfAge
     
        Condition FatherTrait JuliusTrait >= 1
     
        Affects JuliusTrait  1  Chance  10 
        Affects JuliusCaesarTrait  1  Chance  90
     
    Trigger JuliusTrait_2
        WhenToTest CharacterComesOfAge
     
        Condition FatherTrait JuliusCaesarTrait >= 1
     
        Affects JuliusCaesarTrait  1  Chance  100
    ...in export_descr_VnVs_enums.txt:
    Code:
     
    JuliusTrait
    JuliusTrait_desc
    JuliusTrait_effects_desc
    JuliusTrait_eithet_desc
    ...in export_VnVs.txt:
    Code:
     
    {JuliusTrait}     Julius
     
    {JuliusTrait_desc}
    This man is a member of the Julii family.
     
    {JuliusTrait_effects_desc}
    None
     
    {JuliusTrait_epithet_desc}     Julius
     
    {JuliusCaesarTrait}     Julius Caesar
     
    {JuliusCaesarTrait_desc}
    This man is a member of the Caesar branch of the Julii family.
     
    {JuliusCaesarTrait_effects_descr}
    None
     
    {JuliusCaesarTrait_epithet_desc}     Julius Caesar
    I then added "JuliusTrait 1" to the list of traits of the Julii faction leader. I deleted all his children excep for one male at age 14, I set his mother at age 34 and his father (the faction leader) at age 38.

    If all was correct the faction leader's son should come of age soon enough and be given "Julius Caesar" as an epithet to replace his surname "Julius". I never got that far though...

    Am I the worst modder ever or what? I guess it's bound to be something small, but it feels like I've double- and triple-checked everything.
    Last edited by Alecci; December 01, 2008 at 04:37 PM. Reason: Added some info.

  2. #2

    Default Re: CTD after adding traits

    Are you sure the validator says there's no problem with these?!

    Code:
       Level Julius_Trait
            Description Julius_Trait_desc
            EffectsDescription Julius_Trait_effects_desc
            Epithet Julius_Trait_epithet_desc
    Code:
    {JuliusTrait}     Julius
     
    {JuliusTrait_desc}
    This man is a member of the Julii family.
     
    {JuliusTrait_effects_desc}
    None
     
    {JuliusTrait_epithet_desc}     Julius
    The coloured parts should match.

  3. #3
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: CTD after adding traits

    I can tell you the validator doesn't miss that particular kind of error, so again whatever changes you're making are showing up. In the validator do a search for your new traits and see if the validator actually sees them.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  4. #4
    Foederatus
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    48

    Default Re: CTD after adding traits

    Sorry, my bad. That was a typo thing. The coloured stuff already match.

    I've got the game on a different computer, so I just typed all the code of the screen instead of transferring the files and the doing the copy/paste.

    I'll be more careful in the future.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •