How to uncompress save files?

undertoad

Warlord
Joined
Aug 14, 2008
Messages
164
Hi

I'm doing some work on understanding how corruption works in 1.22 (I've noticed some differences in my games from alexman's formulas here - which may be down to the 1.15-1.22 changes, or to something in the changed-corruption mod I'm playing).

To do this I need to write a utility to extract information from save files. Basic city stuff like x,y co-ords, to start with. I'm familiar with doing this kind of thing.

I thought the Save files were a nightmare when I opened them in a hex editor. But it's simply that they're compressed.

How can I uncompress save files? I've searched all over the place in these forums but can't find any information. I know that the various utilities (C3MultiTool, CivAssist etc) can get information out of save files, so uncompression must be possible. But I'm looking to get the information out into my own format (probably a .CSV list of cities with x/y, civ, Palace and FP location to start with, to allow distance and rank corruption analysis), and the utilities don't do this.

I've found a few uncompressed .SAVs in my folder (I don't know why they're there) and looked at them in a hex editor, and the file format won't be a problem to figure out with a bit of work. But I need a way to extract a compressed file into an uncompressed file. Winzip 11.0 Pro doesn't recognise it as any of the types of compression it can handle.

any ideas on how to do this?

thanks!
 
I seem to recall Gramphos had a tool to decompress the save, but I could be wrong. I think the autosave is not compressed.
 
Back
Top Bottom