Results 1 to 25 of 25

Thread: Possible CTD Source

  1. #1
    Bearer of Vilya, Editing Slave Member LordElrond's Avatar
    Join Date
    Jan 2006
    Location
    Under a load of college work.
    Posts
    147

    Exclamation Possible CTD Source

    I know this is my first post so I thought I would make myself useful. I've followed EB since around the beginning of 05 and never joined cause I didn't have much time. Anyway, I thought that posting this occurence of my CTD might help the team.

    I've done it about 7 times now, and the crash is guaranteed to occur. I'm playing Epeiros and I got a message that my faction heir, I forget his name (Ptolemai?), the son of Phyrros, has a chance to compete in the olympics. Now, I don't want to hurt his stats by competing and falling on my face so I move him out of the town. The moment I hit the end turn button, theres a crash. It never made it the the ai movements.

    So I try again. I move him farther away, then in the trees, then just one tile out of the town... always a CTD. Finally I try it a couple times just leaving him in the town and it doesn't crash either time.

    I hope that this helps someone who can fix the problems. I can do more tests if anyone wants as well.
    Quote Originally Posted by khelvan
    Oh. My. God.

  2. #2
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    Hmm, being in or out of a settlement shouldn't have any effect on the Olympics, unless the general is under siege. Once you get the message that your general's a competitor, it's just a matter of waiting for the results next turn. What happens on the next turn when it doesn't crash? Is he a failure, or does he succeed? Do you get a message?

    Could you zip up the savegame and send it to me?
    Last edited by Malrubius; 01-21-2006 at 00:33.

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  3. #3
    Bearer of Vilya, Editing Slave Member LordElrond's Avatar
    Join Date
    Jan 2006
    Location
    Under a load of college work.
    Posts
    147

    Default Re: Possible CTD Source

    If I leave him in the settlement he always fails miserably. He is in the Italian peninsula, in Rhegion I believe.

    I'll see if I can get it to you soon Malrubius.
    Edit: I think I did it correctly and sent it to you, tell me if it works.
    Last edited by LordElrond; 01-19-2006 at 20:45.
    Quote Originally Posted by khelvan
    Oh. My. God.

  4. #4

    Default Re: Possible CTD Source

    Jus to add some data i also had few crushes on olimpic years.
    But when game didnt CTD my character always failed in olimpics.
    Did enyone won olimpics?

  5. #5

    Default Re: Possible CTD Source

    I've asked about this and the percentages seem to be good - but I've never seen it.

  6. #6
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    I guess I know what I'll be doing tonight...

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  7. #7
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    Ok, I played this out right before I went to work. I moved Ptolemaios a bit north and hit 'end turn' (a bad CharacterTurnEnd trigger would take effect almost immediately). I didn't have a CTD. The AI turns started, I got attacked, autoresolved, and had a CTD afterwards during the AI turn. I didn't have a chance to fully examine the output of Filemon, but I'm pretty sure it doesn't have anything to do with the Olympics. I'll take another look at the dump tomorrow. From what I recall, it was full of more "file not found" error messages.

    I will investigate the chances for Olympic victory, though. They may be too low.

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  8. #8
    Bearer of Vilya, Editing Slave Member LordElrond's Avatar
    Join Date
    Jan 2006
    Location
    Under a load of college work.
    Posts
    147

    Default Re: Possible CTD Source

    Well at least its good that the olympics aren't bugged. Strange, I'll have to look at it more myself.
    Quote Originally Posted by khelvan
    Oh. My. God.

  9. #9
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    Quote Originally Posted by LordElrond
    Well at least its good that the olympics aren't bugged. Strange, I'll have to look at it more myself.
    I didn't say that. I'll have to do some calculations to figure out the probabilities.

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  10. #10
    Bearer of Vilya, Editing Slave Member LordElrond's Avatar
    Join Date
    Jan 2006
    Location
    Under a load of college work.
    Posts
    147

    Default Re: Possible CTD Source

    My mistake.
    Quote Originally Posted by khelvan
    Oh. My. God.

  11. #11
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    Ok, here are the probabilities:

    Spoiler Alert, click show to read: 

    Natural Energy 5 = 15%
    Natural Energy 6 = 30%

    with the HaleAndHearty trait (In the Pink, etc).
    Natural Energy 5 = 30%
    Natural Energy 6 = 60%



    Ptolemaios has a 15% chance, unless he gets a lot healthier.



    They probably need increasing.

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  12. #12
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    Thank you Thank you Thank you for putting me onto this bug!

    Eureka!

    This in Data\text\export_VnVs.txt:
    Code:
    {Seleukid_Olympionikes_effects_desc}
    causes CTDs when you win the Olympics.

    This:
    Code:
    {Seleukid_Olympionikes_effects_desc}
    +1 Influence
    Does not.

    I had tested it all a long time ago, but since then we'd done special messages for each faction, and somehow I left out the effects for every single trait (well, with the way I generated them, if one was messed up, they all were). This is not something I wrote for my validation program to catch (I didn't even know it would CTD), so now I need to add something else to that.

    Anyway, if you add that second line everywhere you have Olympionikes_effects_desc} in that file (just do a search for the bold text there), you shouldn't have any more CTDs from winning the Olympics.

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  13. #13
    Bearer of Vilya, Editing Slave Member LordElrond's Avatar
    Join Date
    Jan 2006
    Location
    Under a load of college work.
    Posts
    147

    Default Re: Possible CTD Source

    Well thats good news. One less CTD to worry about. Too bad its too late for my general. I had to continue my campaign with him embarrassing himself and now having to live with it for the rest of his life. Anyway, thanks for providing the fixed code. I assume this will be in the patch for those who don't fix it themselves?

    BTW: What coding language is this written in? I just started college going to major into computer science so this is all very interesting to me as I look through all the code you guys have written.
    Last edited by LordElrond; 01-21-2006 at 19:39.
    Quote Originally Posted by khelvan
    Oh. My. God.

  14. #14

    Default Re: Possible CTD Source

    Would it happen anytime any hellenic character won - even if he was AI?

  15. #15
    Bearer of Vilya, Editing Slave Member LordElrond's Avatar
    Join Date
    Jan 2006
    Location
    Under a load of college work.
    Posts
    147

    Default Re: Possible CTD Source

    I believe it would crash for every hellenic character since it was missing in every hellenic nations code as I look through it (just as Mal said). Does the ai compete in the olympics? That could be a huge cause of CTDs if they did... everytime they won - CTD
    Quote Originally Posted by khelvan
    Oh. My. God.

  16. #16
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    Quote Originally Posted by Teleklos Archelaou
    Would it happen anytime any hellenic character won - even if he was AI?
    Yeah, I believe that would be the case. The Olympics look like the only place where I have a blank line following a "}" character. I learn something new about RTW CTDs every day, it seems!

    Quote Originally Posted by LordElrond
    BTW: What coding language is this written in? I just started college going to major into computer science so this is all very interesting to me as I look through all the code you guys have written.
    It's not a programming language, per se, but a special RTW scripting language. Pretty simple, but there's no compiler to check your errors and tell you something is invalid! I believe I've learned more about good programming practices from this than when I was studying it in college!

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  17. #17
    Bearer of Vilya, Editing Slave Member LordElrond's Avatar
    Join Date
    Jan 2006
    Location
    Under a load of college work.
    Posts
    147

    Default Re: Possible CTD Source

    Eh, no compiler. Well looking through more and more of the 1000s of lines of code wrote for this, I have to say that most people probably don't realize how much time and effort it would actually take just to get all the code into working order... plus research done beforehand.
    Quote Originally Posted by khelvan
    Oh. My. God.

  18. #18
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    The traits and ancillaries have really been a team effort, with input, descriptions, and decisions from many of our members. Even the coding itself has been done by several of us (at least half a dozen people)! We're kind of short-handed right now, so anybody interested in coding would be welcome to volunteer his services!

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  19. #19
    Large Member Member NightStar's Avatar
    Join Date
    Sep 2004
    Location
    Ísland...or Iceland for ye darn foreigners :)
    Posts
    261

    Default Re: Possible CTD Source

    After bit of testing I find that this bug could be a major source of CTD's that I have been experiencing with KH and A. Seleukia.

    I fixed the export_VnVs file and loaded up a game where I had an recurring CTD with KH and pressed end turn and voila.....no CTD. I have to test it further.

    And yeah Malrubius.....the olympic events happen during the summer don't they?
    Roma must be destroyed


  20. #20
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    Yeah, the end of spring is when eligibility is determined (> 20% MP remaining, not besieging or under siege, high natural energy, etc). Then at the end of summer, the results are determined.

    Yeah, and fixing that should be savegame compatible, too.

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  21. #21
    Large Member Member NightStar's Avatar
    Join Date
    Sep 2004
    Location
    Ísland...or Iceland for ye darn foreigners :)
    Posts
    261

    Default Re: Possible CTD Source

    Ah I thought so, the end of summer which are the resaults. Most of the CTD's I have been experiencing are with KH and A. Seleaukia at the end of summer....and almost at no other time. Now I have to load up the saves where I have recurring CTD and check it out.
    Roma must be destroyed


  22. #22
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Possible CTD Source

    I think this may clear up a significant number of CTDs, but I'm still getting the AI attempt to merge failure bug, where they move a captain/general on top of another and it CTDs. I have no idea what causes this.

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  23. #23
    EB Traitor Member BozosLiveHere's Avatar
    Join Date
    Jan 2006
    Location
    Uqbar, Tlön
    Posts
    3,662

    Default Re: Possible CTD Source

    THANK YOU! Your little fix just saved my Sweboz campaign. No more CTDs here, now I can go back to leading my barbaric alliance against the city dwelling people of the world.

  24. #24
    Bearer of Vilya, Editing Slave Member LordElrond's Avatar
    Join Date
    Jan 2006
    Location
    Under a load of college work.
    Posts
    147

    Default Re: Possible CTD Source

    Malrubius, I have to point out something that happened while continuing my Epeiros campaign. I managed to win the olympics with another character and everything seems to be working fine. I got the victory message and the +1 influence I think. But... I never had a message/trait before that telling me that he had entered the olympics. The only one I received was the victory trait. I know that with Ptolemaious I had recieved the message that he had entered the Olympics, and that was before I fixed the code in my game. Just wondering if there might be a connection. Thanks.

    Edit: When I looked at his profile again I see both the entering of the olympics and the victory in the olympics message. I on't think generals new traits are always announced at the start of turns.
    Last edited by LordElrond; 01-24-2006 at 02:09.
    Quote Originally Posted by khelvan
    Oh. My. God.

  25. #25
    Large Member Member NightStar's Avatar
    Join Date
    Sep 2004
    Location
    Ísland...or Iceland for ye darn foreigners :)
    Posts
    261

    Default Re: Possible CTD Source

    Yes, with this bug out of the way I seem to be able to load up most of the save games that had recurring CTD's and continue playing. So I have to say that this bug was the cause of most of the recurring CTD's. I managed to play from 243bc to 223bc in one sitting without a single CTD in a campaign that was riddled with them.
    Roma must be destroyed


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO