1030 crash

WJLIII3

Chieftain
Joined
Jan 20, 2013
Messages
3
Two out of the last three games that made it to 1030 have crashed. Or, more precisely, have hung indefinitely on the other player's turns, without crashing or freezing. Kind of awful to lose everything at that point twice.
 
I've not had any other reports of hangs like this, could you post a saved game? Other than the Olympic Games there is nothing in HR set to trigger on specific years or turns; I can only presume that both your games hanging at 1030 is a crazy coincidence.
 
Yeah, it happened more recently at 430. I'm not sure how I should post the savegame.
 
Yeah, it happened more recently at 430. I'm not sure how I should post the savegame.

Take a save or autosave from a few turns before the hang; they're found in ~/Documents/Civilization IV Beyond the Sword/Saves/Single/ if on Mac, a similar path in MyDocuments and/or or MyGames if on Windows. Zip it and attach it to a post here.
 
I ran into the same problem at 580AD. I restarted the game and went back to the same turn and had it happen again. When I rebooted my computer and went back to the same turn I was able to get past it. I think the problem occurs in the XML cache and when I purge the memory with a reboot it goes away. It sure sounds like the Olympic Games event is probably causing it.
 
I'm uploading the autosave from my test game. I started getting the hangs as described by WJLIII3 in this file around 460 AD and they've hit around every 20-25 turns. My sort of fix using reboots doesn't seem to work for the hang I get when trying to get past 1032 AD. I played with the python code for the Olympic Games and changed the interval to 777 turns but it still hangs on the same year every time. This would seem to eliminate the games as a possible cause. I'm running the new version on BTS 3.19 with Windows 7.
 

Attachments

I ran into the same problem at 580AD. I restarted the game and went back to the same turn and had it happen again. When I rebooted my computer and went back to the same turn I was able to get past it. I think the problem occurs in the XML cache and when I purge the memory with a reboot it goes away. It sure sounds like the Olympic Games event is probably causing it.

I'm uploading the autosave from my test game. I started getting the hangs as described by WJLIII3 in this file around 460 AD and they've hit around every 20-25 turns. My sort of fix using reboots doesn't seem to work for the hang I get when trying to get past 1032 AD. I played with the python code for the Olympic Games and changed the interval to 777 turns but it still hangs on the same year every time. This would seem to eliminate the games as a possible cause. I'm running the new version on BTS 3.19 with Windows 7.

Thanks for the saved game. I'll see if I can reproduce the hang.
 
found a workaround if anyone is paying attention, enter the world builder and save game as a scenario, then load the scenario as your character. The diplomacy will change but it works
 
Just letting everyone know I haven't forgotten about this issue. I just need to find a free block of time to do some thorough testing - not easy with a 3 year old and a 3 month old! Thanks for your patience.
 
I've identified the issue. There's a bug in BTS where a unit can get stuck joining and leaving a group over and over. It's rare, but it happens most commonly to naval units, and particularly those with hidden nationality. In Moth_in_Bathtub's game I deleted two Tamil Pirates and, sure enough, fixed. Hugfrty's game is crashing for me for some reason, but I imagine it's a similar problem.

I need to figure out whether anything in HR is triggering this bug more often. The Pirate unit is a concern; a hidden nationality unit that can only travel along coasts. Bottlenecks and stacking are almost inevitable.

Unfortunately I cannot fix the bug at its source; that requires the SDK. Someone has written some code that lets the player force units to end their moves with a key press - i.e., if the AI gets stuck in a loop, the player can hit a key combination to break out of it. Not the ideal solution but something I can probably adapt for HR.

I'll need to do more research to see if there are any other methods to fix or bypass the issue, or at the very least, minimise its occurrence.

In the meantime, if your game gets stuck like this I suggest going into the Worldbuilder and deleting some naval units, particularly Pirates or Privateers, and seeing if that allows you to continue.
 
Back
Top Bottom