PDA

View Full Version : ctd during AI turns



jjca
05-14-2006, 21:56
It seems to happen during the slave turn most often. I havn't touched desc_sm_rebel_factions. Sometimes it crashes earlier. It also doesn't seem to happen until about 10 or so turns. If I reload the game from autosave and then end turn again it will then go through the turn without a ctd. Then a few turns later it will ctd again.

I've made pretty extensive edits to the desc_strat and i'm running from a provencial campaign folder since I have edited the map. The edits to the map were with the TIME editor, and I moved Thessalonica to the center of the province and renamed it Pella. I also renamed Apollonia to Phoenica. I gave Athens and Corinth to the Greek Cities at the start. I removed all ranged units from being able to be recruited, as well as all horse archers. I then removed all units from the game except for each factions best units in the EDB, so that each faction could only create their best Infantry and Cavalry. I dramatically increased the cost to recruit the units as well as the upkeep because I wanted battles to be less frequent but more important. I also added hidden resources for each faction so that they could only recruit these units from their home territories. I also seperated the macedon bodyguard from the greek bodyguard and made the Macedonian General bodyguard into companion cavalry. I edited the desc_mercenaries and took out all ranged units and horse archers. I then went through the desc_strat replacing all of the starting units for each faction with their best units. One strange thing i've noticed is that the Romans break their alliance very early on and attack each other. I'm not sure why or if this has anything to do with the ctd's...but I don't see why it would Also one particular crash I noticed which was quite consistant was when I was besieging Kydonia, everytime the slaves attacked me it would crash right after I hit auto resolve. it did this everytime.

if anyone has an idea of what may be wrong I would appreciate the help as i'm quite stumped

Monkwarrior
05-14-2006, 22:42
I then removed all units from the game except for each factions best units in the EDB, so that each faction could only create their best Infantry and Cavalry.
Are those units eliminated also from export_descr_unit?
In that case you must check if the eliminated units are still present in descr_rebel_factions, as they will try to appear in rebellions.

jjca
05-14-2006, 23:14
No, I left all the units in EDU and even double checked to make sure they all had slave ownership

Myrddraal
05-15-2006, 01:52
I've had a similar problem where it was when a buggy army moved into sight it crashed... But apart from that, its difficult to say.

Try using the cheat to get rid of the fow and scroll over the AI cities, see if that makes it crash.

Something else you can do is after backing up try elliminating the possible sources of the problem one at a time. That way, when the bug dissapears, you'll have some idea as to where it is.

And welcome to the .org jjca :thumbsup:

jjca
05-15-2006, 02:20
thanks, i'll give it a go. I'm thinking it's maybe something that TIME sqrewed up with the desc regions or something. still testing

jjca
05-15-2006, 02:51
what makes this crash so aggravating is that I can't reproduce it in a known manner. If I crash to desktop then reload the game and end turn again, it will go through fine. I would rather that it crash everytime on the turn that is bugged, since htat would make it so much easier to troubleshoot. Also, since I can't be sure if it's something in desc_regions or antoher file that has to be tested from a brand new game, this makes it even more difficult to trouble shoot. Overall a very annoying problem

jjca
05-17-2006, 07:51
Hmmm...well I think I narrowed it down to export_desc_traits. It was one of my suspicions because I had simply taken my edt from Roma mod (still my favorite mod ever made) and put it in my RTW 1.6 modded game. When I replaced it with a copy of the EDT from my clean install folder the crashes stopped. So I re-edited the EDT and now things seem to be working fine. I really havn't a clue what was causing the crash, so unfortunately I can't add anything to the crash list except that a problem with the EDT could lead to a problem like the one I mentioned.

alpaca
05-17-2006, 14:19
I hereby encourage you to do some testing (replacing the traits in tens or so) - this could be worth knowing.

jjca
05-18-2006, 01:36
I don't think you appreciate how long it takes to test this bug. Sometimes it will go 20 turns before it will CTD. I don't plan on working more on this bug, sorry. I think narrowing it down to the EDT is enough, and worthwhile information for all of you.

Makanyane
05-18-2006, 07:52
If issue is only does it crash and not precisely when (& not for something related to human player activity) you can run program in the background by putting
-show_err -ai -ne
on a shortcut to your .exe, start up campaign, ai will play itself, you can alt-tab out to whatever program you have left open on your desktop and get on with something else while it either runs to the end date or crashes.

Understand if you're fed up with the bug and don't want to test, but thought that approach might be useful if you meet something similar in future.

alpaca
05-18-2006, 12:45
I don't think you appreciate how long it takes to test this bug. Sometimes it will go 20 turns before it will CTD. I don't plan on working more on this bug, sorry. I think narrowing it down to the EDT is enough, and worthwhile information for all of you.
Don't misunderstand me, I fully appreciate how long it takes to hunt bugs. I'm doing a lot of that too. And that's exactly the reason why it would be good if you found out what happens, after all it is, in a way, reproducible.
But I can also understand that you don't want to do that ;)