The Great Apple
Big Cheese
Currently, when Civ 4 crashes I use the dump file to attempt to find the root of the crash (I can't seem to manage to get the debug config to compile). I'm assuming this is a valid method. It gives you a nice little stack trace which allows you to find where in the code
However, I've rather reached my wits end with this problem - I can't for the life of me work out what could be causing it, so I though I'd post here to see if anybody had any suggestions.
What I'm attempting to do is to have the game restart after one player has won, so many games can be played without user intervention. This is all good, and I can get the game to restart fine, however, whenever I try to reinitialize the player data it causes a strage crash to be caused the second time the player AI tries to find the civic yield modifier for civic 0 (GC.getCivicInfo(eCivic).getYieldModifier(iI)). It only happens the second time, not the first (the first call happens shortly before it).
I have no idea. I'm completely stumped. I haven't even slightly changed anything to do with civics or XML loading... or anything even remotely in that area. The data that it's failing to find has been successfully found very shortly beforehand, and well after my code has finished.
I can post the source & .dll if somebody wants to take a look at it. I would really appricaite some help, as this is one of the last few things stopping me from lauching into the AI head first. (The other is the two turn '0's thing).
However, I've rather reached my wits end with this problem - I can't for the life of me work out what could be causing it, so I though I'd post here to see if anybody had any suggestions.
What I'm attempting to do is to have the game restart after one player has won, so many games can be played without user intervention. This is all good, and I can get the game to restart fine, however, whenever I try to reinitialize the player data it causes a strage crash to be caused the second time the player AI tries to find the civic yield modifier for civic 0 (GC.getCivicInfo(eCivic).getYieldModifier(iI)). It only happens the second time, not the first (the first call happens shortly before it).
I have no idea. I'm completely stumped. I haven't even slightly changed anything to do with civics or XML loading... or anything even remotely in that area. The data that it's failing to find has been successfully found very shortly beforehand, and well after my code has finished.
I can post the source & .dll if somebody wants to take a look at it. I would really appricaite some help, as this is one of the last few things stopping me from lauching into the AI head first. (The other is the two turn '0's thing).