Format implementation priorities#
State of October 16, 2026 (the October 9 list it replaces had fallen behind the code). The MTR row was aligned on October 18, 2026 (observed structure, no consumer found). Parsing, decoded content, field meaning, engine integration, platform execution and original fidelity are separate gates: a format whose bytes all decode can still be missing from the game, and that is engine work, not a decoder gap. The README's format table follows the same split.
| Format | Decoded | Open in the format | Open outside the format |
|---|---|---|---|
| WCT | Every texture of the selected game; bounded inflation, checked coefficients, exact BILZ output and checksum, checked LZSS input with the retail quirks (990 header-inclusive sizes, an odd final byte) (WCT-ROBUSTNESS.md) | Other editions | — |
| SAM | SettingsFile reads the shipped line grammar (one-token or quoted value, #/// comments, --- blocks skipped, a bare key is no setting) from any stream, and agrees with ObjectSettingsFile on every shipped .sam, loose and in WADs; SamDocument keeps multi-value balance lines (ECONOMY.md) | — | Many keys' gameplay use is approximate |
| SDT / MP2 | Containers, SoundCatalog, MPEG-1/2 Layer I and II in every shipped mode (≤1 LSB against ffmpeg; exact Layer I entry counts and ffmpeg-pinned clips), CRC verification, de-emphasis (LIPS.md, AUDIO.md) | None for shipped data: +32 is the playback length the game cuts each sound to (SdtEntryHeader.PlaybackBytes, tp.exe 0x6C82C0); the second codec class (type bit 0x10), Layer III, MPEG-2.5, free format and MPEG-2 Layer II joint stereo are unused | Round 7 wired the engine-driven events and QMixer's software pan/volume law; remaining: reverb and the unmapped UI events (AUDIO.md) |
| BF4 | All 33 fonts × six languages, three encodings (UI.md, BF4-FONTS.md) | Glyph placement, advance and line pitch, block and line alignment (0x6aeb10, 0x6ae550), measure (0x4929f0) | How the display-format text bitmap reaches the screen (read: texel alpha 17 x coverage, 0x6b24b0, and the sprite state word 0x7060556, 0x58a010) and the title controls' grey copy (ported, UI-007 retired); control text margins (0x48f830) |
| LIP | LipSyncFile (read and write) and LipSyncTimeline: µs marks, talking from 0, toggling per mark, checked against all 639 English global clips (LIPS.md) | — | The shared C rand() stream behind the clip sequences and mouths (own presentation streams here); the sound side of the game pause (LIPS.md, UI-096) |
| MD2 | 2,116/2,118 members (the other two, 207.201, 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, node lists, path parameters (flag 0x200/0x400, ModelPathParameters) and the geometry models' paths (ModelPath, header 0x40/0xAC), which placed objects follow (MD2-MODELS.md) | None: slot bits 0x10/0x20 mean wrap (else clamp), 0x1/0x2 have no reader in tp.exe (transparency follows the image's alpha bits), node bit 0x8000 is the UI widgets' hidden state; node bit 0x10 hides a mesh, the group-0 box culls it, heightfield bits give the diagonal, texture turn and mirror (MD2-MODELS.md) | PC equivalence and rendering fidelity (the scene clock follows the game speed, the terrain texture turn/mirror is drawn and per-mesh culling is read: MD2-MODELS.md) |
| MAP | Five TP2M terrain grids, grid mapping, five cell bits (MapCellFlags), MapFile.Encode; the sound-catalogue .map files are decoded separately (MAP.md) | None: tp.exe's loader skips the five header words, never opens terrain.map, and copies bit 0x04 to a tile flag nothing reads (MAP.md) | — |
| RSE | All 308 scripts, all 84 used opcodes with operand counts; RideVM runs the corpus fault-free (RSE-SCRIPTS.md, RSE-VM.md) | None for shipped scripts: the operands, flags, handlers, slicing, time unit (milliseconds of the timer 0x785970) and CRIT_LOCK (one reader, the slice loop) of the 47 hooked opcodes are read from tp.exe (RSE-VM.md); unread: object type 10's own list; EVENT_EXT, the ride lights and GETCUSTPTCLCODE are read and built for script mods (no shipped script uses them; the lights act on OpenTPW's own models' light dummies), SETREVERB's and DIPMUSIC's readers are built | The game systems behind the effect hooks: the frame steppers of the walking bodies (TOUR-011) are not built (the reverb behind SETREVERB is OpenTPW's own stand-in by design, [EXT:audio-reverb]: the original's lives in the sound device) (the ride lights are an OpenTPW extension now, LIGHTS.md) |
| TPWS / TPWI | The 19 writer-order blocks, the World thing list, cell grid, placed objects, park turn and date, bank, staff and advisor state (TPWS-PAYLOAD.md, SAVE-CONTAINER.md); writing: the container (zlib 1.1.3 deflate reproduced) and all 19 blocks, byte-identical to all eleven corpus saves and the shipped Easymode, and the export of an OpenTPW park's economy (turn, calendar, open flag, world generator, bank and loans, first purchases) into a template of the same level, which reads back through the loader's split and both importers | Guests in queues and on rides (no such saved guest exists: SAVE-002), the remainders of SAVE-004, SAVE-006, SAVE-007 and SAVE-010 (the vehicle's script run, the sound chunk, the weather and analyser things); the Scripts block's sprite scripts (one per saved guest or litter item) are decoded and not applied (SAVE-013); the Particles pool, the camera, the cell grid's litter, the lab's highest groups, the gate's name, the staff pool's variants, the challenge slots as saved (SAVE-005) and the RSSE script ids, list order and pass counter (DET-013) are applied to a park started from an original save (--load-original-level <theme> --original-save <file>); the RSSE script records, the person navigation state and the guest body (queue links, admission flag, saved state, balloon position, typed event ring with refused out-of-range values) are decoded and read exactly in every available save; a second fixture | Writing original-format saves (OpenTPW writes its own format) |
TPI park save (prebuilt.TPWS) | The container with its version block, the 19 blocks split by reader widths, and the World block consumed exactly: variables, control manager, staff pool, calendar, status-byte cell map, the thing chain (every body sized by its traced layout: attractions with history, bank, small things, staff HQ, advisor, park analyser, research lab, weather and challenge system typed, guests, staff and gardeners read through layouts) and the special rides (THEME-PARK-INC.md) | No guest, staff or gardener is in the only save, so their layouts rest on the load routines and an emulation of them; body words keep their stored width without a type except the guest and staff meters and the weather floats (SAVE-944); the attraction history rings are named by what feeds them, not by the game (SAVE-940); the control record, calendar, arrivals and special rides are read (SAVE-941 to SAVE-943 retired) | Importing TPI economy, staff and ride state; writing TPI saves |
| ESP/FPC/TPC | SpriteBankFile, SpriteAnimationFile: all 121 esprites.wad members (GUESTS.md) | None: slots 16–19 are the entertainers' performance entries (SpritePerformance), the slots have no names in tp.exe (frame words = pixels per unit, 0x10C marks a set that ships an FPC, which the PC never opens, 0x10D unused: GUESTS.md) | Round 7: heads, thoughts, staff, balloons, litter (flat ground quads), the upgrade balloon and particle sprites are drawn; the particle quads' render states are PTCL-905 |
| MTR | Observed structure: topology and nine matrices of every observed file, 17 copies and 15 distinct files (the 11 European install-media copies pinned; the Italian and Spanish ones decode but are not pinned) (MTR.md) | 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, since no placement code was found in the inspected binaries; s is baked into the pinned files' MD2 vertices (thickness 30·s), not the Italian bankrupt's | — (no consumer found) |
| LND | LndFile reads base.lnd of all four themes to exactly the file size (parameters, 384 × 344 weight grid, three sets of 13 images); ProceduralTerrainTexturer builds a cell's ground texture byte for byte as tp.exe's 0x55F780, and ProceduralTerrain draws the ground with it through the original's visible-cell cache of 1500, 2000 or 2500 textures (LND.md) | The exact visible-cell spans (0x56BB00; OpenTPW uses the view frustum), the camera modes' names, the floor-art tail of 0x55F780 (package F) | None for the ground; the option is applied at the next level load |
| TQI / TGQ | All nine movies; EA ADPCM audio bit-exact; video through tp.exe's own decoder (matrix 0x6710C0, transposed scan, transform passes 0x67673C/0x676965, 7-bit samples, colour tables 0x670350), matching the original routines in the x86 oracle (TGQ-MOVIES.md) | None in the format; the FPU precision the game runs movies at (53-bit assumed) only matters in rare half-way roundings | Triggers are done (the PC build has two, both start-up, 0x54DF20/0x54E070); the 16-bit packing is read and matched (5-6-5 assumed) but not presented ([EXT:movie-full-color]); open: what the original does with plan.tgq's audio after its last frame, and what dialog.tcf can switch |
| FSH (Theme Park Inc) | All 7,283 .fsh files/WAD members to RGBA (FSH.md) | 0x2D palette reading ([EXT:fsh-0x2d-palette], APPROX:COMPAT-015 retired); 0x24 is read from the executable (COMPAT-014 retired) | Comparison with the original game's rendering |
| WAD / Refpack | Directories with bounded ranges (WAD-ROBUSTNESS.md); Refpack decodes every compressed member exactly as the legacy decoder, malformed input included (RefpackTests) | None: the original allocates the declared size and checks nothing; it equals the decoded length in every shipped member (WAD-ROBUSTNESS.md) | — |
Read-only WAD member-name inventory: 312 DWFB archives, 2,118 .MD2 members, 308 .RSE, 7 .MAP (5 terrain, 2 sound catalogs); no .LIPS names, but 639 .LIP members in lips.wad; MTR exists on the inspected install media, not the installed Data tree; no .TQI members (movies are loose .tgq files). The 2026-10-18 docs pass did not re-hash the PC CD copies. OPENTPW_MTR_PATH was unset, so the six private MtrFileTests were skipped, including OriginalMediaCarriesElevenMtrCopiesOfNineDistinctFiles. Those skips do not show that all 11 .mtr files match the 9 pinned SHA-256 hashes in MTR.md. Absence from these bounded locations does not prove an edition lacks embedded data, differently named files or formats stored outside WADs.
Preserve efficient order: finish narrow verifiable slices, keep synthetic tests public and original fixtures private, and reuse proven existing decoders/runtime boundaries. No large renderer/VM rewrite, new decoder dependency or SDK upgrade without a separate justified decision. A stricter Refpack or WAD size check would change a tested contract, so it needs a caller that requires it and corpus evidence first.
Primary upstream source is accessible via the docs repository even when the old website challenges browsers: https://github.com/OpenTPW/opentpw-docs/tree/34f357fabc8a6aa064c76260c714dca8b875b148/src/formats Its MAP page describes a sound map and is TODO; its TQI page identifies movies as TQI video/EA audio in TGQ containers. Verify actual files instead of assuming that extension names describe one uniform schema.
Source: docs/FORMAT-BACKLOG.md in the project repository.