Format:SV6 (RollerCoaster Tycoon 2)
Appearance
| Platforms | Windows x86 |
|---|---|
| Magic | none; first chunk decodes to a 0x20-byte header whose byte 0 is 0 (saved game) or 1 (scenario) |
| Extensions | .SV6, .SC6 (.SV7 and .SEA are handled as variants by OpenRCT2) |
| Endianness | little |
| On this wiki | Facts · Code · Notes · Topics |
Saved game (.SV6) and scenario (.SC6) format of Software:RollerCoaster Tycoon 2: a sequence of Format:Sawyer chunk encoding chunks followed by a 32-bit checksum. Both start with a 0x20-byte header chunk; scenarios add a 0x198-byte information chunk and split the park state into more chunks.
Structure
Chunk order, as read by OpenRCT2's S6Importer:
- Header (decodes to 0x20 bytes): file type (0 saved game, 1 scenario), a "classic" flag byte, the number of packed objects, a version and a magic number. See the struct fact.
- Scenario information (scenarios only, 0x198 bytes): editor step, scenario category, objective type and arguments, scenario name (64 bytes at 0x48), description (256 bytes at 0x88) and an object entry at 0x188.
- Packed objects: for each of the header's packed objects, a 16-byte object entry followed by one Sawyer chunk; this is exactly a Format:DAT (RollerCoaster Tycoon 2) file embedded in the save. Custom objects travel with the park this way.
- Object list: 721 object entries of 16 bytes (11,536 bytes), grouped by type: 128 rides, 252 small scenery, 128 large scenery, 128 walls, 32 banners, 16 paths, 15 path additions, 19 scenery groups, 1 park entrance, 1 water, 1 scenario text.
- Date and RNG (16 bytes): elapsed months (u16), day (u16), scenario ticks (u32) and two u32 random seeds.
- Tile elements: 0x30000 elements of 8 bytes (0x180000 bytes); see below.
- Rest of the park state: one chunk in a saved game; several chunks in a scenario. It starts with the entity (sprite) table: 10,000 slots, or 15,000 in files whose classic flag is
0x0F(RollerCoaster Tycoon Classic extended limits). - Checksum: 32 bits after the last chunk.
Tile elements
The map is at most 256 x 256 tiles. Each tile owns a run of 8-byte elements stacked from the ground up: byte 0 type, byte 1 flags (upper nibble) and occupied quadrants (lower nibble, one bit per quadrant), byte 2 base height, byte 3 clearance height, then 4 type-specific bytes. A flag bit marks the last element of each tile, which is how a reader walks from one tile to the next.
Versions
.SV7: OpenRCT2 loads it like SV6 and only notes the extension. Unverified: written by RollerCoaster Tycoon Classic. Test: compare an SV7 save's header chunk with an SV6 one..SEA: encrypted scenario of RollerCoaster Tycoon Classic; OpenRCT2 derives the key from the file name, decrypts it and then reads it as SC6 (src/openrct2/rct2/SeaDecrypt.cpp).
Pitfalls
- The packed-object records are a 16-byte entry plus a chunk, not a chunk alone; a reader that walks chunks blindly loses sync after the header when the file has packed objects.
- Decoded chunks may be shorter than the structure they fill; OpenRCT2 zero-fills the remainder.
Tools that read/write it
- OpenRCT2 imports SV6/SC6 (
src/openrct2/rct2/S6Importer.cpp, structures insrc/openrct2/rct2/RCT2.h); it saves to its own.parkformat instead.