Expand description
Banished save files (.sav): container, game-state stream, and the fields needed to check
world generation. Layout notes are in docs/SAVE-FORMAT-AND-RESTORE.md.
Structs§
- Loop
Header - Fields the game loop writes right after the reference table and settings block.
- MapCell
- One cell of the gameplay map, as a save stores it (the cell is 48 bytes in memory).
- MapCells
- The gameplay map (serializer version 4):
size × sizecells covering the centre of the terrain (the terrain grid is twice as wide). - MapHeights
- The map component’s terrain grid.
- Save
- A save file: its two payloads, expanded. See the module documentation.
- Save
Metadata - The first payload (
SaveLoad::SaveMetaData): what the load dialog shows. One block at version 3. - Saved
Event - One saved event-log entry (
Game, 0x28 bytes in memory). - Saved
Event Log - The event log block: six notify flags, then the entries.
- Saved
Mod - A mod active when the game was saved: its name, its
.pkmfile and three values.