Difference between revisions of "AGI/Specifications/Savegame"

From ScummVM :: Wiki
Jump to navigation Jump to search
(changed formatting)
Line 5: Line 5:


=== Header ===
=== Header ===
Bytes 0-30:
'''Bytes 0-30:''' [31] Savegame description. This can be up to 30 printable characters, and is padded out with NUL (\0) bytes to a total of 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] Unknown (0xE1 0x05); maybe a savegame version number?
Bytes 31-32:
 
  Unknown (0xE1 0x05); maybe a savegame version number?
'''Bytes 33-35:''' [3] Game ID ("SQ2", "KQ3", etc.)
Bytes 33-35:
 
  Game ID ("SQ2", "KQ3", etc.)
'''Bytes 36-39:''' [4] Unknown  
Bytes 36-39:
  Unknown


=== Game state ===
=== Game state ===
Bytes 40-295:
'''Bytes 40-295:''' [256] Variables, 1 variable per byte
  Variables [256 bytes]
 
Bytes 296-327:
'''Bytes 296-327:''' [32] ? Flags, 8 flags per byte
  ? Flags [32 bytes]

Revision as of 07:20, 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

Bytes 0-30: [31] 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] Unknown (0xE1 0x05); maybe a savegame version number?

Bytes 33-35: [3] Game ID ("SQ2", "KQ3", etc.)

Bytes 36-39: [4] Unknown

Game state

Bytes 40-295: [256] Variables, 1 variable per byte

Bytes 296-327: [32] ? Flags, 8 flags per byte