Results 1 to 12 of 12

Thread: Problem with character names

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    margio's Avatar Biarchus
    Join Date
    Sep 2006
    Location
    Milano - Italy
    Posts
    651

    Default Problem with character names

    Hello Aradan,
    I am trying to add historical names to Sparta Total War mod, and even reading your tutorial (not so carefully due to issues...) I got the following error message:
    scritp error in C:\..descr_strat\linexxx, columnxx: unable to find Dionysus II The Younger's character records
    For sure I made a mistake, but I cannot find where...
    in names.txt = on left {Dionysus_II} on right Dionysus II The Younger
    in descr_names.txt = characters is Dionysus surname is II The Younger
    in descr_strat.txt is Dionysus II The Younger as heir and in the relative lines

    Where is/are the mistakes?

  2. #2

    Default Re: Editing Character Names

    Can you please post here (wrapped in [code] tags) the relevant names, descr_names and descr_strat entries? Then I'll move those posts in their own thread. It's probably a descr_strat error.

  3. #3
    margio's Avatar Biarchus
    Join Date
    Sep 2006
    Location
    Milano - Italy
    Posts
    651

    Default Re: Editing Character Names

    Thanks Aradan for reply! Do you mean these?
    I have added Dionysus I The Elder, as they appear in the three files

    descr_names.txt
    faction: romans_brutii
    characters
    Dionysus
    ...
    ...
    ...
    surnames
    I The Elder
    II The Younger
    ...
    ...


    names.txt
    {Dionysus_I} Dionysus II The Elder
    {Dionysus_II} Dionysus II The Younger


    descr_strat.txt
    ;Syracuse
    character Dionysus I The Elder, named character, leader, age 52, , x 106, y 44
    traits GoodCommander 1 , NaturalMilitarySkill 1 , GoodAttacker 1 , PoliticsSkill 2 , Intelligent 1
    ancillaries drillmaster

    ;near Syracuse
    character Dionysus II The Younger, named character, heir, age 34, , x 106, y 45
    ...
    ...
    relative Dionysus I The Elder, Galla, Dionysus II The Younger, Agathocles, Hicetas, end
    relative Dionysus II The Younger, Hostia, Paulina, Dion, Timoleon, end
    Thanks for the help !

  4. #4

    Default Re: Editing Character Names

    Yeah, but please
    a) use [code][/code] instead of [quote][/quote]
    b) don't omit lines you think they are unnecessary (family tree lines, character-record lines, etc), they might give you the answer.


    Anyway, here are some errors I can see:

    descr_names.txt

    Code:
    [...]
    Dionysus
    
    
    [...]
    I_the_Elder
    II_the_Younger
    names.txt

    Code:
    {Dionysus}            Dionysus
    {I_the_Elder}            I The Elder
    {II_the_Younger}            II The Younger
    descr_strat:

    Code:
    character Dionysus I_the_Elder, named character, leader, age 52, , x 106, y 44
    character Dionysus II_the_Younger, named character, heir, age 34, , x 106, y 45

  5. #5
    margio's Avatar Biarchus
    Join Date
    Sep 2006
    Location
    Milano - Italy
    Posts
    651

    Default Re: Problem with character names

    Hi Aradan,

    I copied exactly your lines in the three files,
    descr_names.txt
    Code:
    characters
    Dionysus
    ...
    surnames
    I_the_Elder
    II_the_Younger
    ...
    names.txt
    Code:
    {Dionysus}         Dionysus
    {I_the_Elder}      I The Elder
    {II_the_Younger}   II The Younger
    descr_strat.txt
    Code:
    character Dionysus I_the_Elder, named character, leader, age 52, , x 106, y 44
    character Dionysus II_the_Younger, named character, heir, age 34, , x 106, y 45
    ...
    relative  Dionysus I_the_Elder, Galla, Dionysus II_the_Younger, Agathocles, Hicetas, end
    relative  Dionysus II_the_Younger, Hostia, Paulina, Dion, Timoleon, end
    but I got this message
    Script Error SPARTA/../descr_strat.tx at line 717, column 14
    couldn't find Dionysus II_the_Younger's character_record

    I've tried in descr_strat.txt on relative lines all Dionysus with and without underscores, but I got the same message...

  6. #6

    Default Re: Problem with character names

    Ugh, my bad. I forgot that surnames in RTW are passed down from father to son, so the II gu would still get his father's surname, ie the "I" one. What you need to do is:

    a) create a unique trait, without a trigger
    b) give this trait to the II Dionysus in descr_strat (it will be used as a 'flag')
    c) create another trait, to which you should assign an epithet (see how it's done in vanilla). The epithet of that trait should be the son's surname
    d) Make a trigger for the second trait, that gives it to characters who have the first one

    Example:

    export_descr_character_traits.txt

    Code:
    ;------------------------------------------
    Trait DionysusIIFlag
     Characters family
     
     Level DionysusIIFlag
      Description DionysusIIFlag_desc
      EffectsDescription DionysusIIFlag_effects_desc
      Threshold  1
            
    ;------------------------------------------
     
    ;------------------------------------------
    Trait DionysusII
     Characters family
     
     Level DionysusII
      Description DionysusII_desc
      EffectsDescription DionysusII_effects_desc
      Epithet DionysusII_epithet_desc
      Threshold  1
            
    ;------------------------------------------
     
    ---
     
    ;------------------------------------------
    Trigger dionysusII_trigger
     WhenToTest CharacterTurnEnd
     
     Condition Trait DionysusIIFlag > 0
        and Trait DionysusII < 1
     
     Affects DionysusII  1  Chance  100
    ;------------------------------------------
    text/export_VnVs.txt

    Code:
    ¬--------------------
    {DionysusII} Dionysus II the Younger
    {DionysusII_desc} This man is Dionysus the II, the son of Dionysus I the Elder.
    {DionysusII_effects_desc} No effects
    {DionysusII_epithet_desc} II the Younger
    ¬--------------------
    The red part is the one the epithet, which will replace your character's surname after the first turn (which will be his father's surname, I the Elder at first).

    If you don't want to do that, you can always do the reverse. Use this trick for Dionysus the Elder, and start the son with a proper surname.

    Or, third option, turn both surnames into epithets, with a unique trait and flag-trait each, so that nobody else has them...

  7. #7
    margio's Avatar Biarchus
    Join Date
    Sep 2006
    Location
    Milano - Italy
    Posts
    651

    Default Re: Problem with character names

    Hi Aradan,
    I followed your suggestions, adding the lines of your examples into the proper files, but I got an error message.
    I’m sorry to ask your help again, but I probably didn’t understand (and followed exactly …) what you wrote from a) to d) point. For this matter I am, as we said here where I live, as a “woodden head”… I don’t know if same way to say exist in english (or in your language), but it means someone that is “hard” to understand
    OK… back to matter…
    1) I added, exactly as written, the lines of your examples into export_descr_character_traits.txt and export_VnVs.txt at the end of both files.
    BTW I didn’t understand also the meanings of the three lines (“---“) written in export_descr_character_traits.txt in your example...
    2) I added DionysusIIFlag (and DionysusII only too) as first trait for Dionysus II into descr_strat.txt
    I got the following message:
    Script Error in SPARTA\data\ export_descr_character_traits.txt at line 10075, column 18
    Trait not recognised
    NOTE: the line correspond to Condition Trait DionysusIIFlag > 0

    I also used (just as a trial) TraitDescrValidator (by RedFox), and I got the following message:
    line 10053, no description for: 'DionysusIIFlag'
    NOTE: the line correspond to Level DionysusIIFlag

    Where is “woodden head’s” mistake …?

  8. #8

    Default Re: Problem with character names

    Because someone forgot to tell you that you also need an eVnVs.txt entry for the Flag trait...

    Here it goes:

    Code:
    ¬--------------------
    {DionysusIIFlag} DionysusII Flag Trait
    {DionysusIIFlag_desc} This man is Dionysus the II
    {DionysusIIFlag_effects_desc} No effects
    ¬--------------------
    You would also want to make the flag-trait invisible by adding this line:

    Code:
    ;------------------------------------------
    Trait DionysusIIFlag
     Characters family
     Hidden
     
     Level DionysusIIFlag
      Description DionysusIIFlag_desc
      EffectsDescription DionysusIIFlag_effects_desc
      Threshold  1
            
    ;------------------------------------------

  9. #9

    Default Re: Problem with character names

    I like the way you greeted margio :

    Quote Originally Posted by margio View Post
    Hello Aradan,
    It's nice ^^
    Last edited by Killerbee; July 26, 2009 at 05:07 PM.

  10. #10
    margio's Avatar Biarchus
    Join Date
    Sep 2006
    Location
    Milano - Italy
    Posts
    651

    Default Re: Problem with character names

    Aradan... me again ...
    I followed your instructions, adding what written in your example, but I get the same message error...
    Here the two files

    export_VnVs.txt
    Code:
    ¬--------------------
     
    {DionysusIIFlag} DionysusII Flag Trait
     
    {DionysusIIFlag_desc} This man is Dionysus the II
     
    {DionysusIIFlag_effects_desc} No effects
     
    ¬--------------------
     
    {DionysusII} Dionysus II the Younger
     
    {DionysusII_desc} This man is Dionysus the II, the son of Dionysus I the Elder.
     
    {DionysusII_effects_desc} No effects
     
    {DionysusII_epithet_desc} II the Younger
     
    ¬--------------------

    export_descr_character_traits.txt
    Code:
    ;------------------------------------------
    Trait DionysusIIFlag
    Characters family
    Hidden
     
    Level DionysusIIFlag
     Description DionysusIIFlag_desc
     EffectsDescription DionysusIIFlag_effects_desc
     Threshold  1
     
    ;------------------------------------------
    Trait DionysusII
    Characters family
     
    Level DionysusII
     Description DionysusII_desc
     EffectsDescription DionysusII_effects_desc
     Epithet DionysusII_epithet_desc
     Threshold  1
    ;------------------------------------------
     
    ---
     
    ;------------------------------------------
    Trigger dionysusII_trigger
    WhenToTest CharacterTurnEnd
     
    Condition Trait DionysusIIFlag > 0
       and Trait DionysusII < 1
     
    Affects DionysusII  1  Chance  100
     
    ;------------------------------------------
    Once selected faction and selected the arrow in left lower corner, I am rejected to the menu of choices between Prologue, Imperial Campaign, Custom Battles, etc... when exiting appear the following:
    Script Error in SPARTA\data\ export_descr_character_traits.txt at line 10075, column 18
    Trait not recognised
    The line 10075 is Condition Trait DionysusIIFlag > 0

    I feel it's becoming a nightmare... maybe I'm becoming ...

  11. #11

    Default Re: Problem with character names

    Can you maybe upload here your text files?

  12. #12
    margio's Avatar Biarchus
    Join Date
    Sep 2006
    Location
    Milano - Italy
    Posts
    651

    Default Re: Problem with character names

    Yes of course!!!
    Just for your reference:
    * the faction of the Dionysus is romans_brutii
    * you will find the same matter (in terms of leaders & heirs names) for others factions (as parthia, armenia, carthage, …), but I think that once solved for romans_brutii, it will be possible to solve for the others factions…
    * the idea is to give to Sparta TW mod the historical names of leaders and heirs when the mod start (380BC), creating even and possibly the dinasty of each faction… but I think that more than two names it is not possible. BTW it would be a great issue to have two…

    A BIG THANK for help !!!

Posting Permissions

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