Results 1 to 13 of 13

Thread: Traits causing crashes at the end of battles?

Hybrid View

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

    Default Traits causing crashes at the end of battles?

    Does anyone know how to find out if traits are causing crashes at the end of battles? And which ones might be to blame?

    Cheers
    "I don't want to sit around Windsor because ermm .. I just generally don't like England that much" - Prince Harry, 3rd in Line for the British Thrown



    For King or Country - The English civil wars.

  2. #2

    Default Re: Traits causing crashes at the end of battles?

    It is possible to figure out whether traits are causing a problem. Simply change the 'level = * error' in the .cfg file to 'level = * trace'. This will list all the traits and ancillaries that have been activated while playing M2TW (the one that occurs before the crash most likely caused it).

    Alternatively you can delete all triggers in the ancillary/traits file and see if you still get this crash, since without triggers you can't get any ancillaries/traits (back up these files before deleting their triggers).
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  3. #3

    Default Re: Traits causing crashes at the end of battles?

    Thanks for the suggestion..

    I tried it and these are the last few lines.:

    18:35:42.765 [system.io] [trace] file open,,data/banners/symbols8.tga.dds,,not found
    18:35:42.765 [system.io] [trace] pack open,packs/data_0.pack,data/banners/symbols8.tga.dds,16512
    18:35:42.765 [system.io] [info] open: found data/banners/symbols8.tga.dds (from: packs/data_0.pack)
    18:35:42.765 [system.io] [trace] pack data(),,data/banners/symbols8.tga.dds,,,16512
    18:35:42.781 [system.io] [trace] pack close,,data/banners/symbols8.tga.dds,,,-16512
    18:35:45.078 [system.rpt] [error] Medieval 2: Total War encountered an unspecified error and will now exit.

    :S
    "I don't want to sit around Windsor because ermm .. I just generally don't like England that much" - Prince Harry, 3rd in Line for the British Thrown



    For King or Country - The English civil wars.

  4. #4

    Default Re: Traits causing crashes at the end of battles?

    In RTW triggers with NumEnemiesInBattle would often cause a CTD on battles with reinforcement armies. Could be the same in M2TW, I have yet to test it.

  5. #5

    Default Re: Traits causing crashes at the end of battles?

    I haven't really written any triggers so I'm a bit confused.

    After a successful siege I noticed it does this in the log:


    22:01:13.187 [system.io] [trace] pack data(),,data/banners/symbols8.tga.dds,,,16512
    22:01:13.187 [system.io] [trace] pack close,,data/banners/symbols8.tga.dds,,,-16512
    22:01:15.343 [game.script.trigger] [trace] Trigger <0588_Unexplored_Advisor_Request_Help_Trigger> fired
    22:01:15.343 [game.script.trigger] [trace] Trigger <0087_UI_Scroll_Prisoners_Trigger> fired
    22:01:15.343 [game.script.trigger] [trace] Trigger <0588_Unexplored_Advisor_Request_Help_Trigger> fired
    22:08:01.875 [game.script.trigger] [trace] Trigger <factionleader> fired
    22:08:01.875 [game.script.trigger] [trace] Trigger <inherited> fired
    22:08:01.875 [game.script.trigger] [trace] Trigger <becomesheir> fired

    From looking at what it does at the end of a successful battle (No CTD) I presume that, once it loads those strat map banners, it tries to fire triggers/traits for the outcome of the battle. In the example above it's obviously trigger things to do with the fact the faction leader died, but what is the unexplorted advisor thing?

    Cheers
    Last edited by AlphaDelta; October 01, 2008 at 10:21 AM.
    "I don't want to sit around Windsor because ermm .. I just generally don't like England that much" - Prince Harry, 3rd in Line for the British Thrown



    For King or Country - The English civil wars.

  6. #6

    Default Re: Traits causing crashes at the end of battles?

    This is a trigger from export_descr_advice, not EDCT. It fires the Unexplored_Advisor_Request_Help_Advice_Thread AdviceThread.

  7. #7
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Traits causing crashes at the end of battles?

    Quote Originally Posted by BozosLiveHere View Post
    This is a trigger from export_descr_advice, not EDCT. It fires the Unexplored_Advisor_Request_Help_Advice_Thread AdviceThread.
    What he said. The second one is just the script which checks if you have captured any prisoners to ransom, pretty sure that is in the hard code. But the Advisor ones are from export_descr_advice.txt . You should probably just completely blank that file since most of it won't be applicable and the computer never really provides helpful building advice even if it is not specifically catered.

    Cheers,
    Augustus

  8. #8

    Default Re: Traits causing crashes at the end of battles?

    i cant find the bit level=trace in my CFG

  9. #9

    Default Re: Traits causing crashes at the end of battles?

    Is it something that could be crashing the game? This is a reproducable crash straight after a bridge battle ends. It seems to be a certain bridge.

    Cheers
    "I don't want to sit around Windsor because ermm .. I just generally don't like England that much" - Prince Harry, 3rd in Line for the British Thrown



    For King or Country - The English civil wars.

  10. #10
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Traits causing crashes at the end of battles?

    Quote Originally Posted by AlphaDelta View Post
    Is it something that could be crashing the game? This is a reproducable crash straight after a bridge battle ends. It seems to be a certain bridge.

    Cheers
    I'm not sure why it would be crashing the game, no, it doesn't seem likely it's the cause, just coincidence. This is the text:

    Code:
    Trigger 0588_Unexplored_Advisor_Request_Help_Trigger
        WhenToTest ScrollOpened
    
        Condition I_TurnNumber > 2
              and not I_MapName data/world/maps/campaign/norman_prologue/descr_strat.txt
    
        AdviceThread Unexplored_Advisor_Request_Help_Advice_Thread  1
    Which queries this entry:

    Code:
    AdviceThread Unexplored_Advisor_Request_Help_Advice_Thread
        GameArea Campaign
    
        Item Unexplored_Advisor_Request_Help_Advice_Text_01
            Uninhibitable
            Verbosity  2 
            Priority  1 
            Threshold  1 
            MaxRepeats  1 
            Attitude Normal
            Presentation Default
            Title Unexplored_Advisor_Request_Help_Advice_Text_01_Title
            Text Unexplored_Advisor_Request_Help_Advice_Text_01_Text1
    And this is the line it links to in the EDAT:

    Code:
    Unexplored_Advisor_Request_Help_Advice_Text_01_Text1	624.009070294785
    None of those seem at all suspect or like they'd be relevant to a bridge battle. I've never touched the advisor though and if that last code box is any indication of touching the advisor, the battlemodels.modelsdb is plenty worthless numbers for me thanks.

    My guess is it is some form of map error. It seems there's 2 seconds between the last banner check and the trigger firing, which implies the triggers are looking at whatever the first event once you hit campaign map is(Post Battle?), and the in between is probably the actual loading of the characters on the map, which with all map stuff, doesn't ever log. I'd check the map near that bridge for a losing character maybe backing up onto an invalid tile?

    Cheers,
    Augustus

  11. #11
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: Traits causing crashes at the end of battles?

    Not sure if this is related but could there be a problem with both a faction leader and faction heir dying in the same battle?

    Does the game engine assign new faction leader and faction heir during the battle or after it has completed? Possible that some traits can't fire due to both dying at the same time?

  12. #12
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Traits causing crashes at the end of battles?

    Quote Originally Posted by Rozanov View Post
    Not sure if this is related but could there be a problem with both a faction leader and faction heir dying in the same battle?

    Does the game engine assign new faction leader and faction heir during the battle or after it has completed? Possible that some traits can't fire due to both dying at the same time?
    No way to test this, assigning the heir/leader is somewhere in the hardcode, the traits that work off things like "IsFactionLeader" are only triggered after the hard coded assignment of the title is given. Same for changing model which is just done through the "Level" parameter and with extra lines in the models_strat.

  13. #13

    Default Re: Traits causing crashes at the end of battles?

    Quote Originally Posted by Rozanov View Post
    Not sure if this is related but could there be a problem with both a faction leader and faction heir dying in the same battle?

    Does the game engine assign new faction leader and faction heir during the battle or after it has completed? Possible that some traits can't fire due to both dying at the same time?
    If the faction leader and faction heir die in the same battle, the faction is destroyed, regardless of how many other family members are still alive. So the game must assign a new heir after the battle is complete.

Posting Permissions

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