Results 1 to 20 of 20

Thread: New spawn generals having no name.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    leo.civil.uefs's Avatar É nóis que vôa bruxão!
    Join Date
    Sep 2010
    Location
    Brazil
    Posts
    3,119

    Default New spawn generals having no name.

    CTD in campaign map in TATW right after I click turn end.


    The last lines of the log says:


    Code:
    22:32:46.916 [game.script.trigger] [trace] Trigger <sitting_around_town_with_taverns> fired
    22:32:46.916 [game.script.trigger] [trace] Trigger <governing6> fired
    22:32:47.173 [system.rpt] [error] Medieval 2: Total War encountered an unspecified error and will now exit.

    I deleted the trigger from export_descr_character_traits.txt but the CTD stills, and the log changed to:


    Code:
    22:32:46.916 [game.script.trigger] [trace] Trigger <sitting_around_town_with_taverns> fired
    22:32:46.916 [game.script.trigger] [trace] Trigger <governing7> fired
    22:32:47.173 [system.rpt] [error] Medieval 2: Total War encountered an unspecified error and will now exit.

    So I have deleted all those triggers in a row (from governing6 to governing21, thats all) and then the CTD does not happen anymore.

    It seems the trait itself is properly set in the file:

    Code:
    ;------------------------------------------
    Trait StrategyChivalry
        Characters family
        AntiTraits StrategyDread
    
    
        Level Fair_in_Rule
            Description Fair_in_Rule_desc
            EffectsDescription Fair_in_Rule_effects_desc
            Threshold  1 
    
    
            Effect Chivalry  1 
    
    
        Level Noble_in_Rule
            Description Noble_in_Rule_desc
            EffectsDescription Noble_in_Rule_effects_desc
            Threshold  2 
    
    
            Effect Chivalry  2 
    
    
        Level Chivalrous_in_Rule
            Description Chivalrous_in_Rule_desc
            EffectsDescription Chivalrous_in_Rule_effects_desc
            Threshold  4 
    
    
            Effect Chivalry  3 
            Effect Authority  1 
    
    
        Level Honourable_Ruler
            Description Honourable_Ruler_desc
            EffectsDescription Honourable_Ruler_effects_desc
            Epithet Honourable_Ruler_epithet_desc
            Threshold  8 
    
    
            Effect Chivalry  4 
            Effect Authority  2 
    
    
        Level Saintly_Ruler
            Description Saintly_Ruler_desc
            EffectsDescription Saintly_Ruler_effects_desc
            Epithet Saintly_Ruler_epithet_desc
            Threshold  16 
    
    
            Effect Chivalry  5 
            Effect Authority  3 
    
    
    
    
    
    
    ;------------------------------------------
    Last edited by leo.civil.uefs; July 11, 2014 at 09:54 PM.

  2. #2
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: CTD with Traits

    Epithets again?

    if the trigger is getting someone to one of the higher levels and they don't have a name? Or if the text file for epithet is missing...

  3. #3
    Zarathos's Avatar Miles
    Join Date
    Dec 2006
    Location
    Verona, Italia
    Posts
    325

    Default Re: CTD with Traits

    No, the epithet is ok. Maybe an overflow of traits?

  4. #4
    Aikanár's Avatar no vaseline
    Join Date
    Mar 2009
    Location
    Sanctuary
    Posts
    12,516
    Blog Entries
    3

    Default Re: CTD with Traits

    How many trait levels did the triggers made the character gain and how many trait levels did he already posses?


    Son of Louis Lux, brother of MaxMazi, father of Squeaks, Makrell, Kaiser Leonidas, Iskar, Neadal, Sheridan, Bercor and HigoChumbo, house of Siblesz

    Not everything that counts can be counted, and not everything that can be counted counts.

  5. #5
    leo.civil.uefs's Avatar É nóis que vôa bruxão!
    Join Date
    Sep 2010
    Location
    Brazil
    Posts
    3,119

    Default Re: CTD with Traits

    Ok guys... herm...

    There is two general without name in my crashing campaign ...

    Point is, they were spawn during the campaign and the text files seem to be ok, any possible cause?

    By the way I added some new regions in my sub-mod but never edited the descr_regions_and_settlement_name_lookup.txt file, is it a problem?
    Last edited by leo.civil.uefs; July 11, 2014 at 04:59 PM.

  6. #6
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: CTD with Traits

    Quote Originally Posted by leo.civil.uefs View Post
    they were spawn during the campaign and the text files seem to be ok
    Surely it must mean that either they were spawned using a name that does not belong to that faction (descr_names.txt) or the name isn't in names.txt.

  7. #7
    Zarathos's Avatar Miles
    Join Date
    Dec 2006
    Location
    Verona, Italia
    Posts
    325

    Default Re: CTD with Traits

    What is the current turn?

  8. #8
    leo.civil.uefs's Avatar É nóis que vôa bruxão!
    Join Date
    Sep 2010
    Location
    Brazil
    Posts
    3,119

    Default Re: CTD with Traits

    142

  9. #9
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: New spawn generals having no name.

    Are you using random_name anywhere?

    I don't think it's advisable except for captain garrisons in desc strat.

  10. #10
    leo.civil.uefs's Avatar É nóis que vôa bruxão!
    Join Date
    Sep 2010
    Location
    Brazil
    Posts
    3,119

    Default Re: New spawn generals having no name.

    Quote Originally Posted by Withwnar View Post
    Surely it must mean that either they were spawned using a name that does not belong to that faction (descr_names.txt)
    How it is possible? Why would the engine be taking a name from another faction?

    Quote Originally Posted by Withwnar View Post
    or the name isn't in names.txt.
    The changes in my sub-mod related wih names are:

    -Adding 4 new names for some generals of my new faction (a new dwarven faction)
    -Creating a new section for random names for this faction in descr_names.txt, wich consists in nothing but just taking the exactly same names from the vanila dwarven faction and copy+paste.

    Quote Originally Posted by makanyane View Post
    Are you using random_name anywhere?

    I don't think it's advisable except for captain garrisons in desc strat.
    Im only using it for slave captains }(all them garrisoned I think).



    --------------------------------------------------------------------



    So, maybe this is because Im usng exactly the same names from the vanilla dwarven faction into my new faction? It could cause a conflict or something.


    ????

  11. #11
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: New spawn generals having no name.

    Surely it must mean that either they were spawned using a name that does not belong to that faction (descr_names.txt)
    Quote Originally Posted by leo.civil.uefs View Post
    How it is possible? Why would the engine be taking a name from another faction?
    I meant by you using a name in descr_strat or campaign_script that either does not exist at all in descr_names or does but not for the faction in question.

    For the record: random_name is perfectly fine in campaign_script, for both spawn_army and spawn_character.

  12. #12
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: New spawn generals having no name.

    you could try checking your names are set up OK with something like
    http://www.twcenter.net/forums/downl...o=file&id=3493


    EDIT; other quick check is try to get into the Battle Editor - it'll CTD if there's a descr_names entry that isn't in names.txt

    EDIT2; and check the campaign_script - it might not be something you've just changed, but could be a spawn that only happens sometimes...

    EDIT3!; actually random_name for spawn_army in campaign_script seems to work OK - but if you use it in descr_strat for named characters or captains outside a settlement you definitely end up with a no name...

  13. #13
    leo.civil.uefs's Avatar É nóis que vôa bruxão!
    Join Date
    Sep 2010
    Location
    Brazil
    Posts
    3,119

    Default Re: New spawn generals having no name.

    Quote Originally Posted by makanyane View Post
    you could try checking your names are set up OK with something like
    http://www.twcenter.net/forums/downl...o=file&id=3493
    Thanks a lot Mak, yes the tool found issues related with dwarven names, I belive this was the cause of the problem.


    Quote Originally Posted by makanyane View Post
    EDIT; other quick check is try to get into the Battle Editor - it'll CTD if there's a descr_names entry that isn't in names.txt
    No CTD after I used the tool to fix the names.

    Quote Originally Posted by makanyane View Post
    EDIT2; and check the campaign_script - it might not be something you've just changed, but could be a spawn that only happens sometimes...

    EDIT3!; actually random_name for spawn_army in campaign_script seems to work OK - but if you use it in descr_strat for named characters or captains outside a settlement you definitely end up with a no name...
    These are some vanilla 3.2 TATW lines (made by KK) in campaign_script.txt, no one ever reported any problems related with it.

    Code:
    spawn_army 
        faction sicily
        character    random_name, named character, age 25, x 239, y 127
        traits LoyaltyStarter 1 , GoodCommander 2 , ReligionStarter 1 , GoodAttacker 1 , Loyal 2 , GoodAdministrator 1 , StrategicSkill 1 , LogisticalSkill 1 , Ai_Boost 1
            unit    Gondor Bodyguard        exp 2 armour 1 weapon_lvl 0
        end
    and there is absolutelly no mention to "random_name" in TATW descr_strat.txt.

  14. #14
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: New spawn generals having no name.

    im actually thinking that the problem might be in names.txt (text folder)

    check if all your dwarves names have the corresponding name there

    while the name files inside data are the coding ingame, it's the names.txt file that actually declares what will appear in game, so i'm guessing there's a few names missing there causing the game to work, but no text being displayed
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  15. #15

    Default Re: New spawn generals having no name.

    I believe you may have to edit your descr_names file. While scanning though it I noticed this:
    Code:
            Frar Stiffbeard
            Frerin Ironfist
            Fror Stonefoot
            Fundin Blacklock
    Then names should be connected by an underscore or they will not be read, so it should look like this:
    Code:
            Frar_Stiffbeard
            Frerin_Ironfist
            Fror_Stonefoot
            Fundin_Blacklock
    I found no other "un-connected" names. I hope this fixes your issue.
    Last edited by MIKE GOLF; July 12, 2014 at 01:20 PM.

  16. #16
    leo.civil.uefs's Avatar É nóis que vôa bruxão!
    Join Date
    Sep 2010
    Location
    Brazil
    Posts
    3,119

    Default Re: New spawn generals having no name.

    The "_" are not necessary in names.txt wich is the actual shown ingame names.

    Anyway as I changed somethings this is not really a possibility anymore.

    I suppose I fixed the problem as I said some posts ago.

    But who knows, more suggestions are welcome.

  17. #17

    Default Re: New spawn generals having no name.

    I was looking at the descr_names file, but if you have it fixed than all is well. Continued success.

  18. #18
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: New spawn generals having no name.

    vanila descr_names.txt has a lot of entries like;
    of London
    however I've found that trying to do that sort of thing for new entries doesn't work well - for M2tw it might be something to do with the way the strings.bin files are generated by the game?
    (see also recent threads about problems with .bin files) converting the internal names to use _ might be safer...

  19. #19
    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: New spawn generals having no name.

    Quote Originally Posted by makanyane View Post
    vanila descr_names.txt has a lot of entries like;


    however I've found that trying to do that sort of thing for new entries doesn't work well - for M2tw it might be something to do with the way the strings.bin files are generated by the game?
    (see also recent threads about problems with .bin files) converting the internal names to use _ might be safer...
    As a rule of thumb and in all my tutorials I advise to use underscore in descr_names, never had problems with it. The reason 'of London' works will be related to the look up file issue we recently discussed, it possibly won't work with custom entries without adding them to the look up file. Correspondingly using a blank look up file and then generating the string.bin file for names.txt could result in similar problems.
    Using random_name in descr_strat is not advisable, but works perfectly in the script as withwnar said










  20. #20
    leo.civil.uefs's Avatar É nóis que vôa bruxão!
    Join Date
    Sep 2010
    Location
    Brazil
    Posts
    3,119

    Default Re: New spawn generals having no name.

    Quote Originally Posted by makanyane View Post
    vanila descr_names.txt has a lot of entries like;


    however I've found that trying to do that sort of thing for new entries doesn't work well - for M2tw it might be something to do with the way the strings.bin files are generated by the game?
    (see also recent threads about problems with .bin files) converting the internal names to use _ might be safer...
    Next version of my sub-mod will not use empty spaces between name/surname or such. So I dont need to check this.

Posting Permissions

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