View Single Post
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,047

Violet CLM has disabled reputation

Aug 15, 2010, 11:20 PM
Violet CLM is offline
Reply With Quote
Has anyone looked into the save files yet? Primitively, they start out like this:

Code:
struct save_file {
	char Version[4]; //"23  " for 1.23, "24  " for TSF
	long ImgLen; //length of the first zlib-compressed block, which I believe is the screenshot showed in the Load menu
	(said zlib-compressed block)
	char Name[32]; //Name of save game
	char Filename[32]; //Filename of level saved at (not used)
	char Levelname[32]; //Said level's name (for display on load menu only)
	long Players; //number of players (01-04)
	long Gamemode; //traditional values
	char Unknown[76];
}
Then there are two pairs of a long representing the length of a zlib-compressed block, followed by that block, then a bunch of seemingly uncompressed data, then three more pairs.

I haven't decompressed any of the other blocks, inspected those 84 bytes in more detail, or poked at those middle data (although I have a suspicion of what they might be) because I don't know if I'm just reinventing somebody else's wheel here. Yes? No?
__________________

Last edited by Violet CLM; Aug 18, 2010 at 08:58 PM.