Difference between revisions of "AGI/Specifications/Savegame"
m (→Header) |
(reformatting, inv obj names) |
||
Line 5: | Line 5: | ||
=== Header (40 bytes) === | === Header (40 bytes) === | ||
'''Bytes 0-30 | '''Bytes 0-30''' (31 bytes) Savegame description. This can be up to 30 printable characters, and is padded out with NUL (\0) bytes to a total of 31 bytes. | ||
'''Bytes 31-32 | '''Bytes 31-32''' (2 bytes) Unknown (0xE1 0x05); maybe a savegame version number? | ||
'''Bytes 33-39 | '''Bytes 33-39''' (7 bytes) Game ID ("SQ2", "KQ3", "LLLLL", etc.), NUL padded. | ||
=== Game state === | === Game state === | ||
'''Bytes 40-295 | '''Bytes 40-295''' [256] Variables, 1 variable per byte | ||
'''Bytes 296-327 | '''Bytes 296-327''' [32] ? Flags, 8 flags per byte | ||
... | ... | ||
'''Bytes 556-1515''' (960 bytes) 24 strings, each 40 bytes long. Actually, I'm not positive that it's all 24 strings; it could only be 12 strings in some versions! | '''Bytes 556-1515''' (960 bytes) 24 strings, each 40 bytes long. Actually, I'm not positive that it's all 24 strings; it could only be 12 strings in some versions! | ||
=== Other bits === | |||
'''Bytes 2334-?''' (? bytes) Inventory object names, each NUL terminated. |
Revision as of 07:43, 6 January 2007
This is a WORK IN PROGRESS; do not rely on this information, and please let Dave know if you're going to be changing this in any significant way.
Header (40 bytes)
Bytes 0-30 (31 bytes) Savegame description. This can be up to 30 printable characters, and is padded out with NUL (\0) bytes to a total of 31 bytes.
Bytes 31-32 (2 bytes) Unknown (0xE1 0x05); maybe a savegame version number?
Bytes 33-39 (7 bytes) Game ID ("SQ2", "KQ3", "LLLLL", etc.), NUL padded.
Game state
Bytes 40-295 [256] Variables, 1 variable per byte
Bytes 296-327 [32] ? Flags, 8 flags per byte
...
Bytes 556-1515 (960 bytes) 24 strings, each 40 bytes long. Actually, I'm not positive that it's all 24 strings; it could only be 12 strings in some versions!
Other bits
Bytes 2334-? (? bytes) Inventory object names, each NUL terminated.