Ok.. I had a closer look... the memory allocation error dont happen in zlib..
When zlib fails to allocate memory, you get another message 'failed to compress game data' (but the game wont crash)
The bug happens with the earlier mentioned stream that gets all the game added into it before compression is done..
It appears the size of this stream starts out small, and everytime it is filled up, it doubles in size... this works out fine at first.. the stream eventually increases to 80MB.. 160MB.. then 320MB... but when it tries to go up to 640MB, it crashes...
So basically it should be relatively easy to fix this.. just need to continiously make the stream zip itself and save to disc instead of storing in memory before starting to zip..
Bad news is that to be able to do this in the DLL, would break save game compatibility.. since would basically need to store the save as 2 seperate games (the original save just containing a pointer to the file that contains the real game data)
When zlib fails to allocate memory, you get another message 'failed to compress game data' (but the game wont crash)
The bug happens with the earlier mentioned stream that gets all the game added into it before compression is done..
It appears the size of this stream starts out small, and everytime it is filled up, it doubles in size... this works out fine at first.. the stream eventually increases to 80MB.. 160MB.. then 320MB... but when it tries to go up to 640MB, it crashes...
So basically it should be relatively easy to fix this.. just need to continiously make the stream zip itself and save to disc instead of storing in memory before starting to zip..
Bad news is that to be able to do this in the DLL, would break save game compatibility.. since would basically need to store the save as 2 seperate games (the original save just containing a pointer to the file that contains the real game data)
so far Take2 support ROFL LMAO
awesome 
)
I love huge maps man. Crappy for me My 736mbmb\ 128mb 9550 g card\ 2.0 processor can't play em all that well.
You can't fit near the amount of cities as the old "Huge" in CIv3. Are these tiles massively ovesized tiles for a reason/ Like mybe the prgrammers new the game was actin slower then before so they chipped away at all the sizes of all maps?