OpenTPW

OpenTPW: plan to a fully working game#

Reference date: October 9, 2026. Status: approved for phased execution.

Goal and definition of done#

OpenTPW becomes an independently maintained reimplementation with which a user with original game files can play the complete offline Theme Park World game. Apple Silicon/macOS is the first platform; Windows and Linux follow on the same game core. A demo, a running model, a successful build or a native executable is not the same as a complete game.

Full offline acceptance covers the four worlds, scenarios and unlocks, park building, attractions and roller coasters, visitors, staff, economy, research, advisor, audio, UI, camera/first-person, and reliable saving/loading. For each component, the difference from the chosen original version is tracked explicitly. Restoring the discontinued online service is a separate, later project: it was excluded from the previously approved scope and is not added silently. The same applies to Theme Park Inc (Sim Coaster) and the sandbox modes with TPW, TPI or combined content: goals after offline TPW acceptance, with their own gates and without affecting the critical path above (see README and docs/THEME-PARK-INC.md).

docs/FEATURE-MATRIX.md separates implementation, macOS/Windows/Linux qualification and original VM fidelity. An intermediate gate may accept a named subset with explicit unsupported diagnostics. Final acceptance requires all offline features, attractions and required opcodes of the selected edition; missing, approximated, unknown requirements and unsupported requirements remain blockers. A passing build, self-consistent replay or prototype is not reference verification.

Checked starting situation#

This is the inspection baseline of upstream 453e779, not the current status of concurrent M0/M1 edits. New implementation or test claims require fresh evidence.

Route choice: reimplementation plus targeted reverse engineering#

The existing C# engine remains the basis for now. Use the original executable as a behavioral reference, not as an unnoticed bundled runtime. Investigate original logic in a targeted way where formats, simulation calculations and script opcodes are unclear. Replace this approach only after a measurable experiment that demonstrably saves work.

RouteBenefitLimitation / decision
OpenTPW C# reimplementationReuse existing parsers/rendering; fast vertical slicesMissing simulation must actually be implemented; preferred route
Matching decompilation with Ghidra/reccmpReconstruct original functions and compare themVerify compiler/ABI and binary first; deploy targeted
Static recompilation of original executableOriginal machine code to new native codeWindows PE/x86, imports, callbacks and graphics runtime are not solved by console tools
Wine/compatibilityRun the original game as a referenceNot a completed OpenTPW port; separate from product acceptance
Rosetta for current Intel Mac librariesFast temporary Mac bootstrapNot native arm64; not the end product or long-term foundation
.NET NativeAOTLater improve startup/distribution of own engineDoes not restore original game code; qualify reflection/native dependencies first

Lessons from developments since 2024#

  1. N64Recomp translates MIPS/N64 code; XenonRecomp targets PowerPC/XEX. The success of these projects is no evidence that a Windows x86 game works automatically with the same tools. Frontend, ABI and platform runtime differ.

  2. reccmp and LEGO Island show a usable Windows track: reconstruct source, compare functions against the original, then port platform parts. Matching accuracy and functional completeness remain separate quality measures.

  3. isle-portable shows that original gameplay and replaceable rendering/input/audio are separate workstreams. Adopt that boundary; no unnecessary engine rewrite.

  4. SDL 3.2 was released in January 2025, including a modern GPU API. This is a candidate for a future backend if the existing Veldrid stack demonstrably blocks progress, not a reason to rewrite a working parser/game core now.

  5. Apple's announced general Rosetta support continues through macOS 27; after that, more limited support remains for certain older games. Therefore plan for genuine arm64-native dependencies and test them separately.

  6. OpenTPW issue #31 reports that TGQ videos contain EA TQI payloads and can be read with FFmpeg/VLC. Verify this with the chosen assets before building a new video decoder; the report is not an already delivered video feature.

Decisive recompilation experiment#

Budget: at most 16 engineer-hours as a decision experiment, not a delivery promise. Inventory the original PE/executable and imports without running the installer or crack. Select one pure parser or simulation function with known input/output. Compare Ghidra-assisted reconstruction and, only if demonstrably supported, static lifting with an implementation in the existing C# core. Require reproducible outputs, a complete runtime dependency list, and less expected total effort. Without that evidence, no pivot to a new recompilation toolchain. Do not remove or bypass copy protection yourself as part of this experiment; see "Provenance of game rules" for the permitted static analysis.

Provenance of game rules (decision October 9, 2026)#

A game rule counts as original behavior only if it is traced to logic in an original executable: for Theme Park World the PowerPC executable SimTheme Park (Mac CD, November 2000, PEF, unencrypted) and its shared libraries, or the Windows v2.0 tp.exe described below (BIN prefix TPW-EXE); for Theme Park Inc Game.exe. A rule that comes only from a manual, website, community source or gameplay test remains [APPROX], however plausible. Data files keep [DATA] provenance: they prove values, not the rule that uses them.

The Theme Park Inc Game.exe on the CD is SafeDisc-encrypted. By decision of the project owner, the decrypted no-CD Game.exe that comes with the same CD (WIN10FIX+NOCDFIX/noCD Crack/tpinc_nocd/Game.exe, same section layout as the original) may be used for static analysis. Basis: decompilation for interoperability by a lawful user (Art. 6 Software Directive 2009/24/EC, Art. 45m Auteurswet, Dutch Copyright Act). "Abandonware" is not a legal basis: copyright lies with EA. Conditions:

One exception to "own descriptions only" (decision of the project owner, October 9, 2026): content/data/advisor-responses.toml copies, field by field, the advisor response table at initialized-data offset 0x18FF4 of the Mac application (response ID, speech sample, LIP number, animation, model, local-bank flag; 610 rows). It is a functional mapping that OpenTPW needs to play the right speech clip and is of no use without the original speech data. Only the fields OpenTPW uses are copied, the file states its source and the application's SHA-256, and tools/ppc-analysis/lanes/advisor/response_table.py regenerates or checks it from a local copy of the application. No other table or code from the executable is copied.

Evidence references get their own label, for example [BIN:STP-PPC:<function or address>], [BIN:TPI-EXE:<function or address>] and [BIN:QMIXER-DLL:<address>] (the game's QMixer.dll sound mixer, analysed statically), [BIN:USP10-DLL:<address>] (the game's usp10.dll, Uniscribe, analysed statically), [BIN:D3DIM-DLL:<address>] and [BIN:DDRAW-DLL:<address>] (the DirectX 6.1 d3dim.dll and ddraw.dll shipped in the game's Redist folder, analysed statically), with the SHA-256 of the analyzed executable in RECOMPILATION-ASSESSMENT.md. The fidelity register (tools/fidelity_register.py) must still learn that label before the first rule is marked this way.

A decision of the project owner on October 10, 2026 allows pure computational routines of the identified Mac build to run in OpenTPW's own PowerPC interpreter as a differential oracle, with no OS calls, explicit stubs, bounded execution and no original bytes in git. Policy, targets and findings are in docs/reverse/ORACLE.md. Executed agreement is evidence about that routine only, not about callers or game state that the stubs replace.

A decision of the project owner on October 12, 2026 extends the differential oracle to the two analysable Windows executables (the decrypted TPW v2.0 tp.exe above and the TPI no-CD Game.exe, SHA-256 77ea0c41410aad7c94a5eda658e31cb4ac05f7253aaf6746ad5e8a90afbd967a, 6,742,016 bytes) with the Unicorn CPU emulator as a dev-only tool dependency (scope: oracle tooling under tools/ppc-analysis/oracle_x86/). This is an explicit exception to the rule against new pip dependencies: Unicorn is never shipped with the game and never required, a developer installs it in a separate venv, and every test that needs it skips when import unicorn fails or the private executable path is not set. The same limits as for the PowerPC oracle apply (no OS calls, explicit stubs, bounded execution, no executable bytes or disassembly in Git, identity pinned by SHA-256). The licence check and the method are in docs/reverse/ORACLE.md section 7.

Evidence and determinism contract (requirements, not yet delivered)#

docs/REFERENCE-CORPUS.md specifies the selected corpus and the trace fields. Before acceptance of M3/M4 semantics, a bounded original behavior trace is required, linked to executable/asset hashes, initial state, actions, observations and comparison criteria fixed in advance. Static-analysis evidence and a runtime oracle remain separate labels; without a runnable original, behavior remains unverified.

M2 must record a fixed simulation tick, stable update/event order and a named RNG algorithm with fully serialized state. Rendering/frame rate must not drive the simulation. Canonical simulation state must be exactly replayable on all target platforms; any numeric tolerances for comparison with the original must be justified in advance per field and must not hide changed game rules. This contract describes future acceptance, not the current prototype motion or save function.

Runtime and toolchain qualification#

M0 inventories versions, transitive native libraries, load path, OS/architecture, license/distribution and test status for NAudio/Media Foundation/WaveOut, SDL2, SPIR-V cross-compilation and ImGui/fonts. The existing Windows audio paths are not a macOS audio backend. Choosing Metal does not prove that shaders, fonts, input, audio and editor launch work. M1 qualifies all launch-critical paths; optional paths may temporarily remain explicitly unsupported, but they block later final acceptance. With Rosetta, both the process architecture and every loaded native library must match. M7 requires genuine arm64 qualification without Rosetta.

Record SDK version, restore inputs and reproduction commands for M0. .NET 8 support ends on November 10, 2026 according to Microsoft. Decision of the project owner (October 9, 2026): move to .NET 10 (LTS until November 14, 2028), SDK 10.0.401 in global.json; NuGet packages remain unchanged and are not part of this decision. NativeAOT remains a separate, optional qualification.

Execution phases and hard gates#

M0 — Reproducible base and inventory#

M1 — First visible Mac park slice#

M2 — Data model, map and persistence#

M3 — One complete gameplay loop#

M4 — Attractions, scripts and roller coasters#

M5 — Full offline progression#

M6 — Audiovisual and UX parity#

M7 — Native and platform qualification#

Efficiency and way of working#

Risks and assessment#

Most costs lie in missing simulation semantics and original formats, not in compiling C# to native code. The full game is not a responsible hour/day commitment. First measure M0/M1, then determine capacity and throughput per subsystem. Main risks: version differences, partial VM/model parser, shader/native interop, fidelity without a working original as oracle, and save compatibility. If a gate fails, that phase remains open; it is not replaced by a screenshot-only demo.

Primary sources for route choice#

Source claims are dated October 9, 2026. Issue #31 reports a North-American retail roll.tgq sample; do not generalize this report to all videos/editions. Live upstream documentation is no evidence for the locally pinned runtime versions.

Progress at start#

Source: docs/COMPLETION-PLAN.md in the project repository.