OpenTPW

Reference corpus and behavior evidence#

Requirements and limited container evidence as of October 9, 2026. No original executable has been run or trace verified by this document change. Keep copyrighted assets, saves and captures out of git/public packages. Store private corpus locations separately; public regression fixtures should be synthetic.

Identity and provenance#

Planned fixture registry#

These are bounded selection tasks, not invented asset paths or completed tests. Populate exact paths/hashes and assertions from real inventory before closing M0.

Fixture IDRequired selectionEvidence still needed
ASSET-TEXTURE-01One real SAM/WAD textureArchive/member hashes, dimensions/format, known decoded content
ASSET-RIDE-01One real ride model and associated settings/scriptMember hashes, topology/hierarchy/settings, opcode inventory
ASSET-TERRAIN-01One real Jungle terrain/model assetActual path/hash and geometry; no implied MAP reconstruction
SAVE-REFERENCE-01One original read-only save/map sampleEdition, known initial park state, import assertions; M2 requirement
TRACE-SEMANTICS-01One bounded original parser/simulation behaviorRuntime oracle or explicitly static-only evidence; comparison below

Test modes and strict asset gate#

Recorded read-only container fixture#

SAVE-CONTAINER-TPWI-01: Data/levels/jungle/Easymode.TPWI, 38,479 bytes. Container SHA-256: 6d89303d098900364bf5e80b236b64bd85976fb947e9e4609d088547f430b39a. Decoded payload: 1,608,309 bytes; SHA-256: a3c9a28252c37ad49a8eb78e4a0c5e1d5229d01548fa35801db67015d2589173. Consumer: OriginalSaveAssetTests / SaveReader / --inspect-save. Expected header: initial value 400, language 0, stamp 0x01221985, offline 0, BILZ at 0x60d, chunk size 36,930 including header, completed zlib stream without trailing data. Provenance: supplied ISO extraction; edition/locale/patch unknown. Optional private fixture under OPENTPW_GAME_PATH; no asset bytes stored in this repository. Scope: decoding identity only, not known park state or original runtime behavior. SAVE-REFERENCE-01 remains open. Details: SAVE-CONTAINER.md.

Read-only scape.omp inventory, semantics unverified (all start with OBJ_):

Relative path within DataBytesSHA-256
levels/jungle/scape.omp59087387a9baa4ae69b5bd2c1da32941969c8f4042f59557a22005d195a17e56809
levels/fantasy/scape.omp41157224eaaf1f2894673e9e893e08d6972e02e48ec530e8e412ba769e6fd60bdb8
levels/hallow/scape.omp413554b9252aa67c85041ac5fae5482ebbb8e1a7192ca8e9e81c23bca2fbd139949
levels/space/scape.omp409e2f6a2ec89a43b14159386219e2026c915c48649a483faaad8fca9ce43d28bbb

These hashes inventory original files; they do not establish a tile/grid importer.

Required test modes#

BF4 private corpus: see BF4-FONTS.md for the 33 English fonts, 8,217 entries, three pinned file/sample identities, metrics and limitations. These are CPU decoder assertions; original text rendering remains unverified.

Original behavior trace gate#

Before accepting M3/M4 simulation/script semantics, compare bounded original runtime observations against the rewrite. Invariant tests and repeatable invented behavior are insufficient. Required trace record:

  1. Trace ID, source/rewrite revision, executable and relevant asset/save hashes.

  2. Edition uncertainty, reference OS/runtime/compatibility setup and capture method.

  3. Initial state/save, seed if observable, tick/time basis and controlled conditions.

  4. Ordered actions/events with timestamps; inputs and observed outputs/state changes.

  5. Expected outputs, numeric units, exact-match fields and justified per-field tolerances declared before comparison; note unobservable internal state.

  6. Reproduction procedure, repeated observations/variance, actual comparison result and remaining mismatches. Do not assume the original exposes a controllable RNG.

Static disassembly/reconstruction, community claims, runtime traces and synthetic regressions have separate evidence labels. If a safe runnable original is unavailable, retain static evidence but leave runtime fidelity unverified. Do not remove or bypass copy protection yourself to satisfy this gate; the only exception is static analysis of the decrypted Theme Park Inc executable shipped on its CD, under the conditions in COMPLETION-PLAN.md ("Provenance of game rules"). A game rule counts as original only when it is traced to logic in an original executable. One verified trace does not verify all rides.

Proposed deterministic simulation contract#

These are M2 design/test requirements, not implemented guarantees:

Per-platform release evidence#

Maintain separate evidence packets for native macOS-arm64, native Windows and native Linux. These are all mandatory M7 release gates, not alternatives. Each packet records OS/CPU targets, package/revision identity, process/native-library architectures, launch/rendering/input/audio results, strict asset-validation result, canonical replay comparison, save/load corpus and long-session results. Smoke tests alone cannot qualify release; compatibility observations remain separate. No platform gate is claimed passed here. NativeAOT remains optional.

Official source boundaries#

The corpus/matrix remain open until real evidence is recorded. Never promote missing, approximated or unsupported required behavior to full-game completion.

Source: docs/REFERENCE-CORPUS.md in the project repository.