Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Software:RollerCoaster Tycoon

From ReverseEngineering.wiki
Software
Developer Chris Sawyer
Platforms Windows x86
Versions 1999 base game; Added Attractions / Corkscrew Follies; Loopy Landscapes
On this wiki Facts · Code · Notes · Topics

Theme park simulation by Chris Sawyer for Windows (1999), with the expansions Added Attractions (also sold as Corkscrew Follies) and Loopy Landscapes. Saved games (.SV4), scenarios (.SC4) and track designs (.TD4) are run-length encoded with the Format:Sawyer chunk encoding and end in a checksum that also encodes the game version.

Formats

  • SV4 / SC4: the whole file is one RLE stream (encoding 1 of the Format:Sawyer chunk encoding, without a chunk header) followed by a 32-bit checksum. The difference between the stored checksum and the computed rolling checksum is a signed number that tells saved game from scenario and which expansion wrote the file (see the facts of this page).
  • SC4: after RLE decoding, scenarios have an extra scrambling layer over a large region of the decoded data; OpenRCT2 undoes it in DecodeSC4 (src/openrct2/sawyer_coding/SawyerCoding.cpp).
  • TD4: same envelope as RCT2 track designs, with different checksum constants; see Format:TD6 (RollerCoaster Tycoon 2).

Pitfalls

  • TD4 track designs and SC4 scenarios use the same checksum algorithm, so OpenRCT2 cannot tell them apart by checksum alone; it falls back on the file extension.

See also