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:
This is the first header in the file
The version of the file
This is the final header in the file
The path to a blend file to load.
A scene to load from a blend file.
The scene to start in.
See: [GameObject]
OBJECT's are saved when they have a property 'save'=True and are marked 'dirty'=True.
OBJECT_INSTANCE's are equivalent to OBJECT's except they are created after the
scene has been initialized by the AddObject actuator.
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 |