Results 1 to 5 of 5

Thread: Too many traits?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Too many traits?

    Hi - my export_desc_traits etc. is loaded with 7,000 - 10,000 cutom traits of my own. They work - but i've tried adding them all and i get this >>>


    21:15:17.640 [script.err] [error] Script Error in mods/Stainless_Steel_6/data/export_descr_character_traits.txt, at line 54, column 9
    Unknown identifier for trait(Male_Blood_Colbain) level(Male_Blood_Colbain_effects_desc) when expecting Threshold.



    ;------------------------------------------
    Trait Male_Blood_Colbain
    Characters family

    Level Male_Blood_Colbain
    Description Male_Blood_Colbain_desc
    EffectsDescription Male_Blood_Colbain_effects_desc
    EpithetDescription Male_Blood_Colbain_epithet_desc
    Threshold 1

    Effect Fertility 5

    ;------------------------------------------
    Trait Male_Relation_Colbain
    Characters family

    Level Male_Relation_Colbain
    Description Male_Relation_Colbain_desc
    EffectsDescription Male_Relation_Colbain_effects_desc
    Threshold 1

    ;------------------------------------------
    Trait Female_Blood_Colbain
    Characters princess

    Level Female_Blood_Colbain
    Description Female_Blood_Colbain_desc
    EffectsDescription Female_Blood_Colbain_effects_desc
    EpithetDescription Female_Blood_Colbain_epithet_desc
    Threshold 1

    Effect Fertility 5

    ;------------------------------------------
    Trait Male_Wife_Colbain
    Characters family

    Level Male_Wife_Colbain
    Description Male_Wife_Colbain_desc
    EffectsDescription Male_Wife_Colbain_effects_desc
    Threshold 1



    Can anyone see what i've done wrong? Or have i just reached the trait limit

  2. #2

    Default Re: Too many traits?

    I can't see anything wrong with that part of the code, but sometimes the game gives you these errors saying a certain trait is problematic when indeed a trait that comes up to several hundred lines before it has the problem.

    Check any trait before the block above for whether the threshold line is misplaced.
    (M2TW Links outdated, sorry)
    Want gunpowder, mongols, and timurids to appear when YOU do?

    Click here to read the solution
    Annoyed at laggy battles? This has all you need
    Got low fps in siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this!

  3. #3
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Too many traits?

    Quote Originally Posted by the_tzar View Post
    Hi - my export_desc_traits etc. is loaded with 7,000 - 10,000 cutom traits of my own. They work - but i've tried adding them all and i get this >>>


    21:15:17.640 [script.err] [error] Script Error in mods/Stainless_Steel_6/data/export_descr_character_traits.txt, at line 54, column 9
    Unknown identifier for trait(Male_Blood_Colbain) level(Male_Blood_Colbain_effects_desc) when expecting Threshold.



    ;------------------------------------------
    Trait Male_Blood_Colbain
    Characters family

    Level Male_Blood_Colbain
    Description Male_Blood_Colbain_desc
    EffectsDescription Male_Blood_Colbain_effects_desc
    EpithetDescription Male_Blood_Colbain_epithet_desc
    Threshold 1

    Effect Fertility 5

    ;------------------------------------------
    Trait Male_Relation_Colbain
    Characters family

    Level Male_Relation_Colbain
    Description Male_Relation_Colbain_desc
    EffectsDescription Male_Relation_Colbain_effects_desc
    Threshold 1

    ;------------------------------------------
    Trait Female_Blood_Colbain
    Characters princess

    Level Female_Blood_Colbain
    Description Female_Blood_Colbain_desc
    EffectsDescription Female_Blood_Colbain_effects_desc
    EpithetDescription Female_Blood_Colbain_epithet_desc
    Threshold 1

    Effect Fertility 5

    ;------------------------------------------
    Trait Male_Wife_Colbain
    Characters family

    Level Male_Wife_Colbain
    Description Male_Wife_Colbain_desc
    EffectsDescription Male_Wife_Colbain_effects_desc
    Threshold 1



    Can anyone see what i've done wrong? Or have i just reached the trait limit
    I am not really into it, but either the red lines don't belong there or you have to add one where it isn't.
    Last edited by Gigantus; June 27, 2008 at 07:29 AM.










  4. #4

    Default Re: Too many traits?

    I'm thinking that shouldn't be the problem as looking at for instance:
    Code:
        Level Legendary_Commander
            Description Legendary_Commander_desc
            EffectsDescription Legendary_Commander_effects_desc
            GainMessage Legendary_Commander_gain_desc
            LoseMessage Legendary_Commander_lose_desc
            Epithet Legendary_Commander_epithet_desc
            Threshold  24 
    
            Effect Command  5
    The only difference is that this relates to epithet_desc rather than Legendary_Commander_descr. It should be possible (I think) to link two to the same thing if the name is intended to be the same.
    (M2TW Links outdated, sorry)
    Want gunpowder, mongols, and timurids to appear when YOU do?

    Click here to read the solution
    Annoyed at laggy battles? This has all you need
    Got low fps in siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this!

  5. #5

    Default Re: Too many traits?

    I found the problem....


    ;------------------------------------------
    Trait Male_Blood_Colbain
    Characters family

    Level Male_Blood_Colbain
    Description Male_Blood_Colbain_desc
    EffectsDescription Male_Blood_Colbain_effects_desc
    EpithetDescription Male_Blood_Colbain_epithet_desc
    Threshold 1


    Effect Fertility 5





    should look like this:


    ;------------------------------------------
    Trait Male_Blood_Colbain
    Characters family

    Level Male_Blood_Colbain
    Description Male_Blood_Colbain_desc
    EffectsDescription Male_Blood_Colbain_effects_desc
    Threshold 1
    EpithetDescription Male_Blood_Colbain_epithet_desc


    Effect Fertility 5

    Thanks for the help anyways - much appreciated

Posting Permissions

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