OpenTPW

OpenTPW

An open-source re-implementation of Sim Theme Park / Theme Park World (Bullfrog, 1999).
Website | Play in the browser | Downloads | Documentation

The Lost Kingdom entrance with guests arriving, the original interface and the Belly Bounce ride beyond

A native OpenTPW capture of the Lost Kingdom with the original textures and interface, rendered offscreen from the original game data.

About this fork#

This repository is a fork of OpenTPW/OpenTPW, the project started by Alex Guthrie and its contributors. Development there had slowed down, so we continued the work here at a faster pace. We would much rather work together than apart: maintainers and contributors of the original project are very welcome here, and we are happy to offer our changes back upstream or to join efforts in whatever way works best. Open an issue or a discussion to talk.

For now our website is opentpw.io. Its status page is generated from this repository at every deploy (tools/site_status.py), and it has reading options (fonts, contrast, reduced motion).

For Theme Park Inc / Sim Coaster, use the static launch and installation guide: current desktop/browser steps, upcoming edition chooser availability and experimental limits.

What OpenTPW is#

OpenTPW runs Theme Park World on modern systems with a new engine. It reads the data of your own copy of the original game. The engine does not ship the original executable or a playable set of game files, and nothing from your installation is uploaded when you play in the browser.

To run OpenTPW you need a full, legal copy of the original game (an installation or the CD).

The aim is the original game, not a remake. Behaviour is traced from the original wherever possible, and every place where OpenTPW still has to guess is tagged in the code and listed in the fidelity register.

Getting started#

OpenTPW is a development preview, but most of the game already works: pick a world in the original lobby, build a park with the original objects and run it with guests, staff and money.

Status#

What works today, with your own original game data:

Not done yet: tour-car sounds (the four tour rides board, fly and release riders, tours), the particle effects of the other callers (ride smoke, litter; RSE EVENT types 1 and 2 are drawn, particles), additional staff actions (the guards' chase and escort, entertainer shows) and their sounds, the path tool's link-end and undo sounds, and the exact original rules in places where OpenTPW still uses a documented approximation. The completion plan, feature matrix and progress track what remains.

File formats#

The Decoding column only says whether the bytes of the selected original-asset corpus are understood: ✅ means every observed file decodes and every field the original game reads is understood (fields it is shown to skip, such as the MAP header words, may stay raw); ⚠️ means some bytes or field meanings that matter are still unknown. Whether the game uses a decoded file the way the original does (triggers, gameplay, rendering, mixing) is listed separately under "Not yet in the game", because that is engine work rather than a missing decoder. Neither symbol certifies other editions or original-runtime parity.

FormatDecodingWhat decodesStill open in the formatNot yet in the game
Textures (.WCT)✅Every texture of the selected game, with bounded inflation and the retail BILZ/LZSS quirksOther editions are unverified—
Settings (.SAM)✅The line grammar of every shipped .sam file, loose and in WADs: one-token or quoted values, #/// comments and --- blocks; the generic reader agrees with the object reader on all of them—How the original uses many keys is approximate
Sounds (.SDT, .MP2)✅SDT containers, entry headers (type bits, bit depth, the playback length the game cuts each sound to) and sound catalogues; all audio: MPEG-1/2 Layer I and II in every observed mode (≤1 LSB against an independent decoder), CRC checks and de-emphasis— (modes no shipped file uses (Layer III, MPEG-2.5, free format, MPEG-2 Layer II joint stereo, are refused)— (the room reverb is OpenTPW's own stand-in by design, EXT:audio-reverb: the original's lives in the sound device) (sound, audio evidence)
Strings (.BFMU, .BFST, .BFUM)✅21 string tables per language; single-byte and two-byte (Polish, Korean, Hebrew) character tables, round-trip tested and read in twelve languages and the fan RussianOther codepages/editions are unverified (languages)—
Fonts (.BF4)✅All 33 fonts in six languages, and the Polish, Spanish, Korean (17,270-glyph), US English, Italian, Hebrew and fan Russian fonts (four-bit, RLE, monochrome)—Original text layout/appearance is unverified (fonts, UI)
Lip Sync (.LIP)✅Mark lists, signed conversion, talking toggles; checked against all 639 English global clips (638 end inside their audio)—Advisor animation/pose and a pausing clock (lip sync, binary trace)
Models (.MD2)✅2,116/2,118 WAD members (the two 207.201 members and the two loose 24.23 arrows are refused by the original loader too); all 1,278 animation members: position/rotation/scale, quantised vertex groups, the 12-byte pose block, texture-coordinate and texture-frame tracks, node-flag toggles, path parameters and the models' paths (Bézier, linear, Catmull-Rom)— (slot bits 0x10/0x20 mean wrap, the rest clamp; 0x1/0x2 have no reader; models)The terrain's texture turn and mirror and the per-mesh culling boxes are not drawn; PC equivalence and rendering fidelity are unverified
Map Data (.MAP)✅All five TP2M terrain grids: grid mapping and every cell bit the game reads, as tp.exe's loader reads them (bit 0x04, the five header words and jungle terrain.map are never used by it); the sound-catalogue MAPs are a separate, decoded format——
Procedural terrain (.LND)✅base.lnd of all four themes: blend parameters, weight grid and the three resolution sets of 13 images, parsed to exactly the file size; the texturer that builds a cell's ground texture from it matches tp.exe's build routine byte for byte (297 sampled cells, x86 oracle)Heightfield column 95 and the extent of the original's procedural rectangle; texture pages and mipmaps of its cacheThe renderer does not draw these textures yet (it uses one static ground texture per slot)
Ride Scripts (.RSE)✅All 308 scripts; all 84 used opcodes known with their operand counts; the 52 hooked handlers (39 used by the shipped scripts) read from tp.exe, operands and flags included, and served by the game systems: visitors, animation, sounds and the object records they keep, particles, the ride controllers, the clock, the object type's own sound list (ADDOBJ/EVENT type 10 play from the cat_ride category an object archive carries; no shipped script uses it, a mod's can) and the object lights (the four light opcodes switch, dim and colour a model's light dummies, an OpenTPW addition, [EXT:object-lights]; no shipped script or model uses them, a mod's can); End.RSE's end-of-park finale in Instant Action and the Full Simulation, with the original winning screenThe operands of the hooked handlers are read from the executable (VM)—
Save Files (.TPWS)⚠️The TPWI container's 19 writer-order blocks; cell grid, placed objects, park turn and date, bank, staff, guests, research and advisor stateGuests that are queued, boarding or riding, RNG state and the script/particle/sound blocks (SAVE-001–010) (payload, inventory)Original-format saves are read, never written; OpenTPW saves its own format
Banner mesh companions (.MTR)✅Observed structure: topology and the nine matrices of every observed file (17 copies, 15 distinct; the 11 European copies are pinned)None in the decoded bytes; open: whether anything reads them (no reader found in any allowed binary, a runtime-built filename can't be fully excluded), why s is 0.66596/0.80645/1 and what M7 is (no placement code was found)— (no consumer found)
Video (.TQI/.TGQ)✅All nine movies; audio bit-exact; video through the PC game's own decoder (dequantisation matrix, transposed scan, transform passes, 7-bit samples and colour tables), matching the original routines run in the x86 oracle— (movies)Game trigger points; --play-movie plays them
Theme Park Inc textures (.FSH, EA SHPI)✅All 7,283 .fsh files/WAD members to RGBA (--inspect-fsh); the 24-bit palettes store no alpha and decode opaque, as the executable's own converter (Game.exe 0x6B7000) doesThe one 16-bit (0x2D) palette has no original reading and is OpenTPW's choice, [EXT:fsh-0x2d-palette] (FSH)—

The experimental Theme Park Inc native slice ([EXT:tpi-viewer], --load-original-level arabian|science|water) is a game mode, not a format: it builds and runs guests with its own HUD, terrain, paths, models and sound; economy, staff, campaign, advisor, saves and sharing are disabled, and no original TPI parity is claimed (slice). The format backlog lists each format's open questions.

File format notes are also available on the OpenTPW formats website, a work in progress from the original project.

Extensions and mods#

OpenTPW has two kinds of add-ons, both switched on and off on Options > OpenTPW > Extensions and mods (official extensions apply to the next park you start or load, community mods at the next start; extensions and mods):

Pools are on by default. The pools extension lets you paint pool water of any shape on the park, build water slides and pool attractions (rope swing, jets, spa, wave machine, lazy river), and guests change in a changing room and really swim. It comes with its own content, made for OpenTPW and containing nothing from the original: textures, changing-room objects, and hi-res (2x) visitor sprites with their own swim animations for swimmers. The same switchable Pool guest art extension (also on by default) draws land guests with OpenTPW's own 2x sprites too; off, they are the original guests. Switch pools off on the Extensions and mods screen or with --disable-extension opentpw.pools. It is not available in Theme Park Inc runs, and a park saves its pool record only when it has pool water, so a park without water is unchanged (pools).

To make a mod, start with the modding guide: folder layout, a minimal manifest, where to put the folder on Windows, macOS and Linux, and examples.

Research on the original game#

Game rules count as original only with evidence: the original data files, the manual, or static analysis of the original program. The Mac PowerPC build of Theme Park World ships unprotected and with many named functions, so most rules are traced there with Ghidra; findings, addresses and open questions are written down in reverse findings. The provenance rules are in the completion plan. Original binaries, decompiled code and game files never go into this repository.

Goals#

  1. Theme Park World: the complete original offline game. This is the primary goal; it is in progress and not yet complete (completion plan).

  2. Online play as in the original game: sharing, visiting and voting on parks, postcards and chat parks with live presence, movement and the original chat commands. The original servers are gone and their protocol is not reconstructed, so OpenTPW provides its own opt-in, self-hostable service (online, what the original had).

  3. Theme Park Inc / Sim Coaster: a separate, later goal. Both games share most file formats and closely related ride-script formats (comparison), but Theme Park Inc has an experimental native build/guest slice; its full campaign, economy and saves remain future work.

  4. Sandbox modes (an OpenTPW extension, not original behaviour): free building with Theme Park World content, Theme Park Inc content, or both. Planned; today's --sandbox uses Theme Park World content only.

Contributing#

Contributions are very welcome: code, research on the original game, bug reports and testing on your own edition of the game.

  1. Fork this repository and create a branch, for example yourname/feature-name.

  2. Keep repository text in English, never commit original game files or binaries, and tag every behaviour you could not trace to the original as an approximation (see the fidelity register). python3 tools/fidelity_register.py --check validates the tags and their declarations; python3 tools/fidelity_register.py --write generates the register locally as docs/FIDELITY-REGISTER.md. That file is a build artifact: it is not committed, and the website publishes the copy generated from main. When an ID is retired, --write also records it in tools/fidelity_retired.txt, which is committed.

  3. Describe your change for the progress log in a new file of its own, docs/progress/YYYY-MM-DD-<slug>.md (date and a short lowercase slug, for example docs/progress/2026-10-16-buy-window-scroll-bar.md). Its first line is the entry heading ## Title (Month D, YYYY) with the same date; use ### or deeper inside the entry, and write relative links as seen from docs/progress/ (for example ../TRACKS.md). Do not edit the top of docs/PROGRESS.md: it is the frozen history from before this convention. python3 tools/progress.py --check validates the fragments, and python3 tools/progress.py prints the assembled log (newest first) that the website publishes as the progress notes. One file per pull request means parallel pull requests never conflict over the log.

  4. Run the tests (dotnet test source/OpenTPW.Tests; tests that need original files run when OPENTPW_GAME_PATH points at your game folder) and open a pull request.

OpenTPW is not affiliated with or endorsed by Electronic Arts or Bullfrog Productions. Theme Park World and Sim Theme Park are trademarks of their respective owners. OpenTPW contains no original executable code or playable original-game installation; you need your own legal copy of the game to play. Local pack-building tools remain available (texture packs). The engine's MIT licence does not grant rights to the original game assets or trademarks.

License#

MIT; see LICENSE.md. source/OpenTPW.Files/Formats/Compression/ClassicZlibDeflater.cs is a port of zlib 1.1.3's deflate and keeps zlib's copyright and license notice in its header.

Source: README.md in the project repository.