Menu

Savegame File Format

Zachary R.

Header Format

Each chunk of variable-sized data in the file is preceded by a header.

Name Size
Header Type 4 bytes
Data Size 4 bytes

The possible header types are:

  • SAVE_FILE_START

This is the first header in the file

  • SAVE_FILE_VERSION

The version of the file

  • SAVE_FILE_END

This is the final header in the file

  • BLEND_FILE

The path to a blend file to load.

  • SCENE

A scene to load from a blend file.

  • START_SCENE

The scene to start in.

  • OBJECT

See: [GameObject]

OBJECT's are saved when they have a property 'save'=True and are marked 'dirty'=True.

  • OBJECT_INSTANCE

OBJECT_INSTANCE's are equivalent to OBJECT's except they are created after the
scene has been initialized by the AddObject actuator.

Example

An example of the layout of a basic save game.

Header/Data Data Size/Value
SAVE_FILE_START 0
0 bytes of data No value
SAVE_FILE_VERSION 4
4 bytes of data 1
BLEND_FILE 12
12 bytes of data "test1.blend" + 0x0
START_SCENE 6
6 bytes of data "Scene" + 0x0
OBJECT 100
100 bytes of data An GameObject
SAVE_FILE_END 0

Related

Wiki: Eremus Project

MongoDB Logo MongoDB