Page 1 of 3 123 LastLast
Results 1 to 20 of 48

Thread: Strange CTD?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Strange CTD?

    Anyone got any ideas what this CTD error means in my log:

    21:46:22.813 [game.script] [error] Trigger processing error in <forced_marching_flag_set_cavalry_general_has_infantry>
    : PercentageUnitCategory needs a living character with an army.

    Any ideas on a fix please?

    Thanks
    Last edited by ToonTotalWar; October 04, 2011 at 04:11 PM.

  2. #2

    Default Re: Strange CTD?

    do you know to what file the error is refering to?

    did the crash happen during the game or when loading a new game?


  3. #3
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Strange CTD?

    Quote Originally Posted by dannyxx30 View Post
    do you know to what file the error is refering to?

    did the crash happen during the game or when loading a new game?
    No idea on the file that it was refering too? I have the log if needed? the crash happened on campaign map on click of the turn button

  4. #4
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Strange CTD?

    Being a trigerr, odds are it's either character traits, ancillaries, missions, even guilds.

    I just plugged it into search in Computer and no matches but I have not checked the .exes.

    Does it cause a ctd?

  5. #5
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Strange CTD?

    Quote Originally Posted by irishron View Post
    Being a trigerr, odds are it's either character traits, ancillaries, missions, even guilds.

    I just plugged it into search in Computer and no matches but I have not checked the .exes.

    Does it cause a ctd?
    Yes mate, when i click on a turn on campaign map after 13 turns I get CTD

    so how do i find where the CTD is occuring in the character traits, ancillaries, missions, and guilds files? Is it a text entry problem?
    Last edited by ToonTotalWar; October 04, 2011 at 05:35 PM.

  6. #6
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Strange CTD?

    If you can find it. It's the first time I've seen this one.

    Whose traits and ancillaries are you using? I have BBB 4 and the only forced march entries I have are for entries lie Amreigo Vespuci and there are 13 entries in the export_vnvs.

    I have not check the .exe with a hex editor to see if it is in there.

  7. #7
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Strange CTD?

    Quote Originally Posted by irishron View Post
    If you can find it. It's the first time I've seen this one.

    Whose traits and ancillaries are you using? I have BBB 4 and the only forced march entries I have are for entries lie Amreigo Vespuci and there are 13 entries in the export_vnvs.

    I have not check the .exe with a hex editor to see if it is in there.
    I am using stainless steel 6.0.
    So I am looking for forced march entries correct?

  8. #8
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Strange CTD?

    Yes.

    I have not played Stainless steel but for a few turns I have no idea where to look in there.

    Check the docudemons?

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

    Default Re: Strange CTD?

    This tool's info explains when it happens.

    I never had a CTD from it though. Are you sure that this is the CTD cause? i.e. Does this error appear just before the crash, according to its log timestamp? It might be that this error happened earlier, and later something else crashed it with no error message.

  10. #10
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Strange CTD?

    Quote Originally Posted by Withwnar View Post
    This tool's info explains when it happens.

    I never had a CTD from it though. Are you sure that this is the CTD cause? i.e. Does this error appear just before the crash, according to its log timestamp? It might be that this error happened earlier, and later something else crashed it with no error message.
    Yes, it is the last entry in the log. So I assume this is the problem?
    When I get the CTD in game the message is "medieaval has encountered a problem and will close now" etc..
    Last edited by ToonTotalWar; October 05, 2011 at 01:06 AM.

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

    Default Re: Strange CTD?

    Not all errors that cause CTDs create a log entry. And not all entries that are in the log cause CTDs.

    The timestamp (21:46:22.813 in your OP) gives you a clue. If the PercentageUnitCategory error happened at about the same time as the "medieval has encountered a problem" one then I'd say it was the likely cause (but even then it might just be coincidence). If it happened, say, more than a few seconds before it then I'd say not.

  12. #12
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Strange CTD?

    Quote Originally Posted by Withwnar View Post
    Not all errors that cause CTDs create a log entry. And not all entries that are in the log cause CTDs.

    The timestamp (21:46:22.813 in your OP) gives you a clue. If the PercentageUnitCategory error happened at about the same time as the "medieval has encountered a problem" one then I'd say it was the likely cause (but even then it might just be coincidence). If it happened, say, more than a few seconds before it then I'd say not.
    Ok, so what text files do I need to check?and exactly what am I looking for? thanks

  13. #13
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Strange CTD?

    Regarding Withnar's point you only need to check your log, or post it for us to check. The trick is simply that if the error does not occur at the point of CTDing (you check by looking at the times) then it didn't cause the CTD.

    Also look for this forced_marching_flag_set_cavalry_general_has_infantry trigger in export_descer_character_traits.txt and post it here. We might be able to see what is wrong with the trigger.

  14. #14
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Strange CTD?

    Quote Originally Posted by Taiji View Post
    Regarding Withnar's point you only need to check your log, or post it for us to check. The trick is simply that if the error does not occur at the point of CTDing (you check by looking at the times) then it didn't cause the CTD.

    Also look for this forced_marching_flag_set_cavalry_general_has_infantry trigger in export_descer_character_traits.txt and post it here. We might be able to see what is wrong with the trigger.
    Here is the entries from my export_descr_character_traits.txt (1 only)

    Trigger forced_marching_flag_set_cavalry_general_has_infantry
    WhenToTest CharacterTurnEnd

    Condition CharacterIsLocal
    and IsGeneral
    and RemainingMPPercentage < 32
    and Trait ForcedMarching < 1
    and PercentageUnitCategory cavalry < 100
    and not FactionType teutonic_order
    and not FactionType turks

    Affects ForcedMarching 1 Chance 100
    Last edited by ToonTotalWar; October 05, 2011 at 05:47 AM.

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

    Default Re: Strange CTD?

    Quote Originally Posted by ToonTotalWar View Post
    Ok, so what text files do I need to check?and exactly what am I looking for? thanks
    For an errorless CTD? I don't know all of the causes. This might help.

    One that comes to mind is when script fires a historic event which can't be found in historic_events.txt.

    EDIT:
    And turn tracing on (see link in this post). The log might tell you what it was trying to do when the CTD happened which will point you in the right direction.
    Last edited by Withwnar; October 05, 2011 at 04:57 AM.

  16. #16
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Strange CTD?

    You didn't post your log - So is this error with the trait is actually causing the CTD? If not then it won't help with that issue to fix this faulty trigger.


    As for the offending trigger, try this:

    Trigger forced_marching_flag_set_cavalry_general_has_infantry
    WhenToTest CharacterTurnEnd

    Condition CharacterIsLocal
    and IsGeneral
    and RemainingMPPercentage < 32
    and PercentageUnitCategory cavalry < 100
    and not FactionType teutonic_order
    and not FactionType turks
    and Trait ForcedMarching < 1

    Affects ForcedMarching 1 Chance 100

    From experience I seem to remember that trait checking has to be done last in the list of conditions in some circumstances. So that's the way I do it as a rule. Plus given the error it seems to fit, since the following condition is the one with the error.
    Last edited by Taiji; October 05, 2011 at 06:47 AM.

  17. #17
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Strange CTD?

    Seems to be getting worse now!! each time I try and start a new game I am getting CTD? it has nothing to do with your change Taji, I think there is a coprrupt file in the mod?

    I have installed another version and hopefully this is working fine, and I will try to turn 13 then if i get CTD i will use your enrty provided. Thanks for everyones help and I appreciate the quick responses received

  18. #18
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Strange CTD?

    What happens if you comment out the trigger?

  19. #19
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Strange CTD?

    Quote Originally Posted by irishron View Post
    What happens if you comment out the trigger?
    Still the same, no matter what faction I start now I get CTD! i have reset the script as I know its not that.

    I will try 13 turns in my fresh install and report back, thanks again for help

  20. #20
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Strange CTD?

    Hang on a minute... Are you actually modding at all?

    If not then perhaps your problem should be reported to the modders. They might be able to help you install it properly, it could be something like that.

    If you are modding then what have you been up to and are you sure it was running fine before you started?
    Last edited by Taiji; October 05, 2011 at 08:21 AM.

Page 1 of 3 123 LastLast

Posting Permissions

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