"Failed to compress game data"

Voyhkah

Undead
Joined
Apr 25, 2009
Messages
1,444
Location
Earth
Whenever I start a game in iNoc, the game says "Failed to compress data", and I cannot build units. Buildings are alright, though. And I still start with the settler and the warrior.
 
I've gotten this before too. It's caused by an error in one of the write() functions, so it gives you this message when it autosaves. I would look at any of the write() functions you modified, and see if you can find a coding mistake somewhere.
 
The CvInfos::write functions aren't called before the error. So I tried checking on CvUnit::write, and found what seemed to be the problem. I fixed it, and now in stead of the "Failed to compress data" message, I get a seemingly meaningless stream of python errors (These may have been there before, I unknowingly had "Hide python exceptions" on). And the units still don't show up in the city screen.
 
I GOT IT!! (I think) The problem wasn't in any sort of read/write function, but in CvCity::canTrain!
 
Back
Top Bottom