+==========================================================================================+ |Keen Dreams saved game format: | +==========================================================================================+ Commander Keen Dream's saved game files are stored in SAVEGMx.CKy The same format and function is used for all versions of Keen Dreams. The files are of variable length and consist largely of a memory dump. First is Keen's inventory, then the level and finally the sprite data. (Music and tile property data is not saved for obvious reasons.) ------------------------------------------------------------------------------- FILE STRUCTURE: 0 4 Sig Signature, 'CKx' + $00 4 4 ? $9F $9B $0x $00 8 24 Name Saved Game name, max 23 chars, padded with nuls 32 16 Blank? Blanks? Sometimes contains strange bytes 48 48 Levels done Levels done, 24 possible entries (Levels 1-24) Value of 1 for complete, in Keen 5, 14 for completed by fuse-smashing 96 4 Score Keen's score 100 4 E.K.A Extra Keen At score 104 2 Ammo Ammo Keen has 106 2 Vitalin Vitalin Keen has 108 2 Special Wetsuit (Keen 4) V card (Keen 5) ? (Keen 6) 110 2 ? 112 2 ? 114 2 Red gems Red gems Keen has 116 2 Green gems Green gems Keen has 118 2 Blue gems Blue gems Keen has 120 2 Yellow gems Yellow gems Keen has 122 2 ? 124 2 Lives Lives left 126 2 Difficulty Difficulty of game, 1-3 128 2 Blank 130 x Level Keen 4-6 level in uncarmackized format. Includes Keen's location and all sprites, in their standard forms. At the end is a dump of memory to make up the difference between the loaded level and the current level state ------------------------------------------------------------------------------- The Dave 3-4 Saved Game Format is how saved games are stored in [[Dangerous Dave 3]] and [[Dangerous Dave 4]]. It is related to the [[Commander Keen 4-6 Saved Game Format]] and the [[Bio Menace Saved Game Format]], and is notable in that it doesn't store the state of the saved level. As such, when restored, the game starts the level from the beginning. The name of the saved game is kept as the filename, and both games display a list of saved games when restoring. Games can be loaded\saved to subfolders in the game directory. Note that saving a game directly after entering a level causes the game file to be corrupted for some reason. (Values in the saved game file are not equal to what they should be.) but restoring this game will work fine. ==Format== 0 25 Sig Signature, padded with nulls. The name of the game, e.g. 'DANGEROUS DAVE III' 25 9 Version Version of game, usually 0.1 or 0.2, padded with nuls. 34 4 Score Dave's score in-level, game score is not tracked. 38 4 Blank 42 1 Ammo Ammo loaded 43 2 Ammo Ammo in pocket 45 1 Lives Lives Dave has 46 2 Keys Keys Dave has 48 2 Hypo (Dave 4 only) Hypos Dave has 50 4 ? For Dave 4, $00000004 and end of file, Dave 3 has two words here THEN $00000004 and end of file.