OpenTPW

Compatibility: known issues, profile and detail presets#

OpenTPW's answer to the problems players hit when running the original Theme Park World on modern systems. The default is pure Original: no fix is active, the detail preset values come from the original low/med/high.sam, and every value that is not taken from original data is tagged [APPROX:COMPAT-NNN] in code and listed in the approximation register. User-facing deviations by design (the Enhanced preset, opt-in fixes) are tagged [EXT:...].

Known issues reported by the community#

Source: the published notes of the community fix pack HyperJeanJean/TPW-TPI-Fixes (GitHub). The pack has no licence; nothing from it is copied, only the reported problems are listed (paraphrased) and answered by OpenTPW's own implementation. Several issues belong to the original Windows executable and do not exist in a reimplementation.

Reported issue (original game)OpenTPW status
Gate and ride signs show no text (rides now show their name, see below); launch problems around the fonts the game unpacks to Data/tpwfnt and installs (the original installs them with AddFontResourceA and draws with GDI)Done. The 17 TrueType fonts are read in memory from Data/fonts.wad by an own parser/rasterizer; nothing is unpacked or installed. Byte-identical to the tpwfnt files (pinned SHA-256). Park name drawn on the jungle gate.
Movies and level music missing unless copied from the discDone. --cd-data <dir> mounts the extracted CD (or its Data folder) as a read-only, case-insensitive fallback; missing movies/music are listed at startup.
Anisotropic filtering forced to 16x through a DirectDraw wrapperDone as the Enhanced preset (16x); original presets use their own filter setting.
high.sam edited for a better lookDone as the Enhanced preset (documented values below); the original files are never modified.
Resolution forced/limited (Data/Resolution.sam, hex-edited executables), instability above 1024x768Display slice: free resolutions, HiDPI and upscaling (UPSCALING-DESIGN.md).
Random crashes tied to graphics settings; DirectDraw problems on modern Windows (wrapper DLLs)Not applicable: Veldrid renderer (Metal/D3D11/Vulkan).
White textures in large parks (texture-memory estimate constant patched in the executable)Not applicable to the original constant; OpenTPW uploads every texture. Revisit when the original texture budget is reproduced.
Sound fixes via a newer QMixer DLL; MIDI SoundFont driver DLLNot applicable (own audio output, advisor/audio slice).
Text library (usp10.dll) workaround for missing sign textNot applicable: no Windows text stack is used.
Sim Theme Park (TPI) mangles non-ASCII characters in prebuilt coaster namesRobustness: UniToMB.dat reader + codec round-trips every string of all six languages; unrepresentable characters become ? ([EXT:text-encode-helper]: tp.exe never names the codec, see below). TPI itself is not targeted yet.
TPI music archives for the second and third park are corruptRobustness: a damaged SDT entry is skipped and logged instead of failing the whole bank. All 47 TPW banks parse with no skipped entry.
North American bonus content; two TPI bonus rides fixed for non-English versionsRides slice (--bonus-data, sharing the DataRoots overlay below).

Issues found by OpenTPW itself while implementing this slice:

FindingHandling
levels/space/rides/megacost.wad/megacost.sgn text slot 1 asks for "EggIt Italic" / EGGII___.TTF, which fonts.wad does not ship (the only unresolved font of 168 slot references)Fix sign-font-substitution: in-memory data correction keyed by the file's SHA-256 (E1CCFB45…) pointing it at EGGITAOE.TTF. Off in Original (line not drawn).
The old UI enumeration mapped UnsentPostcardsWarning to 473 instead of 472The frontend correction maps all IDs to shipped entries; the internal-name fallback remains for genuinely absent entries.
French UITEXT.str[457] (CashDollar), and French/German [448] (Dollar), are emptyThe generic fallback wrapper reports English fallback; the original-style UI preserves blank currency prefixes. Verified with all six language tables.
None of the 17 fonts has €Reported as a missing glyph (.notdef), never crashes.

In-world TrueType text#

Formats and evidence:

Which font the original uses where (slot 0 = first line, slot 1 = second line):

SignSlot 0 font, em heightSlot 1 font, em height
Jungle gateYoung Itch AOE (YOUNIA__.TTF), 144 px, offset -25Clunker AOE (CLUNA___.TTF), 119 px, offset 97
Halloween gateHaunt AOE (HAUNTAOE.TTF), 112 px, offset 32LinusPlay AOE (LINUPA__.TTF), 90 px, offset 112
Space gateGargamel Smurf AOE (GARGSA__.TTF), 180 px, offset -22Gargamel Smurf AOE, 137 px, offset 121
Fantasy gateBig Limbo AOE (BIGLA___.TTF), 144 px, offset 15Krelesanta AOE (KRELA___.TTF), 111 px, offset 128
All 84 signs, slot 0Big Limbo 11, Clunker 10, EggIt 5, Gargamel Smurf 11, Haunt 12, Intruder 5, Krelesanta 7, LinusPlay 8, Tannarin 6, Young Itch 9

API for the rides/frontend slices (SignTextRenderer): RenderText(text, font, emPixels) → texture, CreateQuad(texture, worldHeight) → quad model, RenderSign(sgn, lines, background) → sign1/sign2 textures, LoadSignFile(archivePath) (applies enabled data corrections). background remains for API compatibility; the ride-sign compositor clears to transparent. SignSurfaceComposer decodes and alpha-blits the optional 256x128 board, layers paint and the tiled 16x128 material strips in native order, then returns two 128x128 textures. CPU parts (SignTextLayout, SignSurfaceComposer) are GPU-free and tested. Demonstration: --load-original-level jungle draws "Lost Kingdom" in Young Itch AOE on the gate's sign1/sign2 faces (only those faces; the gate model belongs to the object renderer). The native smoke test requires non-empty sign text.

Sign text antialias model (COMPAT-003)#

[EXT:sign-text-antialias] (16 linear sub-scanlines) is gone; the sign text coverage is TrueTypeRasterizer with CoverageModel.GdiGray4 (October 17, 2026). Each pixel takes 4x4 point samples (sample centres at (k + 0.5) / 4 in both directions, spans half-open, non-zero winding), the count 0..16 is the level, and the byte written into the text DIB is (level * 255 + 8) / 16. CoverageModel.Linear (the old exact coverage) stays available and is what the scanline-window tests pin. The model is deterministic and never reads the host's fonts.

What the sources document (Windows 2000/XP era GDI is the choice: the game shipped in 1999/2000 and its Redist carries DirectX 6.1):

What the 17 shipped fonts say (read from fonts.wad; the signs draw them at 65 to 256 ppem, the 2x text DIB):

Still open (kept in APPROX:COMPAT-003): that GDI really samples 4x4 (Microsoft states no factor for ANTIALIASED_QUALITY; 4x4 is the GGO_GRAY4 form), the sample positions and edge rule, the hinted outline, the dropout control, the level to byte mapping on the 8-bit DIB (palette and nearest-colour matching) and the Windows version the game ran on. Evidence needed: a captured text DIB or the GDI rasterizer of the Windows version the game ran on. Measured effect against the previous coverage on 40 corpus masks: total ink within 0.2 percent, at most 22 levels difference per mask byte, no thin stroke lost.

Media fallback (--cd-data)#

--cd-data <dir> (or OPENTPW_CD_DATA) accepts an extracted CD root containing Data (any case) or a Data folder. DataRoots resolves every path segment case-insensitively, stops at .wad/.sdt archives, and prefers the install; the overlay only fills gaps. The game file system consults it for missing files (OpenRead, FileExists, GetSize; listings stay those of the install) and the movie library searches its Movies folder. At startup the nine movies and five music banks are checked; each missing one is logged ("the movie will be skipped" / "the music will be silent"). Nothing is copied. DataRoots/DataOverlayRoot with DataOverlayRole.Bonus is the shared abstraction for the rides slice's --bonus-data.

Detail presets (IGraphicsSettings)#

Original values ([DATA:Data/low.sam, med.sam, high.sam]):

OptionLowMediumHighEnhanced [EXT]OpenTPW
TEXTUREQUALITY1233not applied (full resolution always)
TEXTUREFILTERING (0 point, 1 bilinear, 2 trilinear, 3 anisotropic)0123 (16x)applied to world samplers
PROCEDURALTEXTURING (0 off, 1 16, 2 32, 3 64 texels)0223applied at the next level load: each visible terrain cell gets its own N × N texture from the theme's base.lnd (docs/LND.md), and the skirt cells of placed rides and shops get a composite of their floor art over that texture (docs/OBJECTS.md, Floors); the lobby stays static
PROCEDURALTEXTURECACHE (0, 1, 2 → 1500, 2000, 2500 cells)0112applied at the next level load: the size of the visible-cell cache
ANIMATINGTEXTURES0111applied to the object texture-frame tracks (0 = each slot shows its first frame, tp.exe 0x57A420)
SKYQUALITY (layers)1244applied to the sky's scrolling cloud layers (0 draws no sky)
SKYDETAIL0111applied: the sky objects of a level (the moons of the hallow and space themes) draw with 1 and not with 0
SKYSHADOW0000not applied
MESHSHADOW / SPRITESHADOW0/00/11/21/3not applied
TRIPLEBUFFER0011swapchain-managed
FOG (0 vertex, 1 depth)1111depth fog always
MIPMAP1111applied
RENDER32 / TEXTURE320/00/00/01/1always 32-bit
BUMPMAPPING / LIGHTING / FORCELOWALPHAREF0/0/00/1/00/1/00/1/0BUMPMAPPING and FORCELOWALPHAREF not applied; LIGHTING applied at the next level load, to the terrain: 0 draws it unlit in the constant white of tp.exe 0x57453A (no sun, ambient or point light) and without the darkening of the land outside the park (docs/PATHS.md); the evening extension still darkens that white at dusk and night
FIRSTPERSONVIEWDISTANCE (0..3)0123applied: the ray distance of the visible-cell spans (200, 325, 450, 700 original units) and, in the ride and free walk views only (the original has fog only in its first-person views, none in the park overview, the lobby or the globe), the fog's start and end (50-60, 100-110, 135-150, 230-250), linear in the projection's depth (docs/LND.md "Fog and far plane", UI-107); also sets the extension's wide-zoom far end
COASTERSMOOTHNESS (1..8) / COASTERTRACKDETAIL1/04/16/18/1exposed for the rides slice
PARTICLEDENSITY / TOTALPARTICLES (simulation)500/10001000/32001500/20001500/2000 (2000 with enhanced-game-options)density applied to the particle pool at park start; TOTALPARTICLES unread, as in tp.exe
NUMKIDS (0→4, 1→6, 2→8, 3→max; simulation)0222 (3 with enhanced-game-options)exposed for the guests slice
WEATHER0111exposed
LOBBYOBJECTS (%)1070100100applied to the share of each lobby flying-mesh group that is spawned (0x5d9db0, at least 1)

The Enhanced preset also stretches OpenTPW's fog distance by 2 ([EXT] view distance; the original presets keep scale 1). Default preset: the original's per-machine choice (traced: Low below 65 MB or 301 MHz, Medium below 192 MB or 450 MHz, otherwise High), with the processor clock taken as at least 450 MHz ([EXT:graphics-preset-cpu]). Settings live in graphics.json next to display.json; --graphics-preset low|medium|high|enhanced, --save-graphics-settings. Filtering/mipmap changes reach the samplers at the next start (RestartRequired); the view distance applies immediately. Custom presets keep the simulation options at the original High values unless enhanced-game-options is on. GraphicsSettingsService.SimulationDeviations() lists deviating simulation options.

Compatibility profile#

ProfileFixes
Original (default)none
Recommendedpresentation-only fixes: sign-font-substitution
Customper fix (--compat-fix <id>[=on|off], compatibility.json)
Fix id (stable)KindIn RecommendedEffect
sign-font-substitutionpresentationyeshash-keyed in-memory correction of megacost.sgn (unshipped font)
enhanced-game-optionssimulationnoEnhanced/Custom presets may raise NUMKIDS/PARTICLEDENSITY

--compat-profile original|recommended|custom, --save-compat-settings. Startup logs the profile, every active fix, simulation-affecting fixes and every approximation.

Save metadata (the economy slice owns the save format): store CompatibilityRuntime.Flags.ToMetadata(), e.g. opentpw-compat/1;profile=Custom;fixes=enhanced-game-options;simulation=enhanced-game-options, and read it back with CompatibilityFlags.ParseMetadata (unknown ids from newer versions are kept and treated as simulation-affecting). IsOriginalSimulation tells whether a save was played with original simulation rules.

Data corrections (DataCorrections): each entry names a fix id, a data-relative path (.wad archives addressed without extension) and the SHA-256 of the original bytes; it applies only when the fix is enabled and the hash matches, in memory, never on disk.

Robustness defaults#

Frame-driven timing ([EXT:frame-driven-at-60hz])#

tp.exe's main loop (0x54e360) has no frame limiter: it calls no Sleep and no timer wait. GetTickCount only drives the fixed 31 ms simulation substeps (0x54f4c4, a catch-up of at most 2 s in a park and 500 ms in the lobby, 0x54e768); after them it draws one frame, and the UI sends message 0x1e to every window once per drawn frame (0x48a580 → 0x658f6c → 0x658f97, which also recurses over the child windows through 0x658d9f). Whatever the original steps from 0x1e, or from the per-frame lobby update (0x5d5c50, at 0x54e73a), therefore ran at the speed of the PC's frame rate. PCGamingWiki's page for Theme Park World reports that the game "runs too fast and becomes unplayable" at high frame rates and advises limiting the frame rate to 60 FPS. OpenTPW steps each frame-driven original behaviour at a fixed 60 Hz reference rate (ReferenceFrameClock), whatever its own frame rate; this is presentation only, so it never moves the determinism pin. This replaces the guessed rates of APPROX:UI-066 (research fluids, 30 ticks a second) and APPROX:UI-940 (lobby effects, 30 ticks a second), both retired, and the fixed-step part of APPROX:UI-941 (the islands stepped at 30 a second while the flyers ran per frame).

What steps per rendered frame in tp.exe, and what OpenTPW does (READ at instruction level unless noted):

Behaviourtp.exeOpenTPW
Research fluids (64-frame bubbling, fill and drain)window proc 0x4a9fc0, message 0x1e: position += 2 × speed (16.16)ResearchFluid.StepFrames at 60 Hz (built)
Lobby island effects: sky ease, rain count, lightning, island one-shotsislands component vf2 0x5e0470 (vtable 0x702cb0, slot 2), called by 0x5d5c50 once per drawn frame; the 31 ms substep of the lobby (0x54e789) runs only 0x520130LobbyEffects at 60 Hz (built)
Lobby flying meshes and island clip picksflying-mesh vf2 0x5da3a0, then 0x5e0470 → 0x5e11d0, in registration order, one frameLobbyScene.StepFrame per reference frame, flyers before islands (built, also for the online city lobby's islands); clips and wings animate by real time
Lobby camera: spin, glide shares 0.1 and 0.2, enter sequence, fade eighth0x5e0470 (state machine 0x5e0490), 0x5e1210, 0x5d8cf2, step = frame ms (at most 500) × 0.01LobbyCameraMode per reference frame (built)
Rain and snow: per-flake jitter and the bolts' flickerCRain draw 0x57f490, redrawn on every draw, paused or notredrawn per reference frame (built); the scroll and bolt age stay by real time
Park camera: mouse rotation0x42a760 message 0x1e while the middle-button mode bit 0x790aac & 2 is set: yaw += (X × 2048 / width − 1024) / 2048 per frame (up to ±0.5 rad a frame)built (ParkCameraMode): the middle button pressed over the free view turns the yaw by X / width − 0.5 radians per 60 Hz reference frame, the sign of the Left arrow's turn; the arrow keys keep OpenTPW's own tuning
Pause-menu line hover ramp0x48b2a0 → 0x48b220: message 0x10001 (read as the pointer entering) starts eight frames from grey 0x21 to white in steps of 0x20, then idle; 0x10002 (leaving) restores (0, 175, 190)built (MenuLineRamp); OpenTPW's focus stands for the pointer entering ([EXT:pause-menu-hover-focus])
HUD balance text and sign0x4a0db0: every third message 0x1e calls 0x4a0ab0, which redraws only when the balance changedlive every frame, up to 50 ms earlier at 60 Hz (noted, not built)
Edge scroll of the view built by 0x5f0b40 (from 0x4a0840)0x5f1130 / 0x5f18d0: (pointer − 0.99) × 250 and (0.01 − pointer) × 250 view units a frame in the 1 % edge band (0x5f35b0)built in the map window (ParkHud.Map.cs): with the Pushscroll option the centre moves by those cells per 60 Hz reference frame, clamped to the map; the Right button option (0x78d910 set) turns it off
Online globe0x5d5c50 → 0x5dc860 once per frame (not a Ghidra function; called through a vtable)continuous time at 30 ticks a second ([EXT:online-globe-tick]), unchanged
3-frame delay before a deferred action0x4a9350: 0x7cc150 counts down once per frame from 3 (set at 0x4a9413), then 0x4a9180 runsnot needed: no blocking step to hide

Message 0x1e handlers that only re-read state, so any frame rate gives the same result: research effort gauge 0x4a96b0, HUD counters 0x4a0e30 (0x4a0fb0), locator 0x4b3790, employee window 0x4b5cb0, text refresh 0x4bc660, chat poll 0x4c56e0 → 0x4c4bb0 and the list forwarding 0x665c35 → 0x6650d4.

Not frame-driven (real time or substep, nothing to match): the timer list polled by 0x6622d2 / 0x661fe5 (elapsed milliseconds with catch-up: the arm drawer 0x4a14f0, 20 ms steps), scripted window moves 0x65e9a4 (through the default window proc 0x65f6d1 → 0x65c357) and press timers 0x668dd9 (milliseconds), the preview-object windows 0x4af600, 0x4b0b30, 0x4b2150, 0x497640 and 0x4b7720 (message 0x1e → 0x4864f0 / 0x486610 → 0x468e50, whose turn is per millisecond), the park camera 0x42b1c0 (frame milliseconds clamped to 1..200), scrolling textures 0x435a30 and thing animation clocks 0x557ab0 (clock reads), the render interpolation fractions 0x519060, 0x55ce60, 0x518f90 (time since the last substep), and every simulation step on the 31 ms substep (0x520130, 0x546c80, 0x5516b0, 0x55abf0, 0x475360, 0x516380, 0x55a470, 0x55ab50).

World geometry translucency#

The terrain meshes and placed objects follow the original's translucent pass: faces whose texture has an alpha plane with a non-zero alpha byte (the river water, the harbour's glass roofs, leaves) are drawn after all other geometry, farthest first, and tested at 0x10/255; cut-out textures (alpha byte 0) are tested at 0xF0/255; every consumer of the world shader shares this path (terrain, heightfield, paths, objects, coaster, track, tour, pool parts and the lobby). The classification reads the texture's own header, so the low-detail copies (no alpha plane) stay opaque, as in the original (MD2-MODELS.md, "The translucent pass of world models"). This answers the community report of a multicoloured river and a glass roof that hid what stood behind it (issue 829). Open: the weather's batches are not merged into the sorted list (PTCL-905; the particles' are); the reverse sort 0x5828F0 and the alpha-reference index of devices that fail the 0x567270 probe are not reproduced.

Animated terrain water#

In tp.exe the terrain instance plays its base clip every rendered frame, in the lobby and in a park: the lobby's Basem1.MD2 scrolls the two sea meshes one texture repeat per 200 ticks, and the Jungle terrain's basem.MD2 (eleven UV tracks, 100 ticks, +1 U per cycle) scrolls the river and the waterfall (a render callback, 0x54e2b0 → 0x44e510, runs it in a park). The clock is the game's scaled clock, so the water stands still while the park is paused and follows the game speed. OpenTPW plays both on the scene clock (MD2-MODELS.md, "Terrain clips"; issue 829). The terrain's own harbour sea (Line01, jri_lak2, y -11 to -10) is static in the data, and the other two park themes have no terrain clip; the harbour's waves are drawn by code (below).

Harbour waves and flags#

Besides the blueprint markers, tp.exe builds two dynamic meshes every park frame (0x53C3F0, called from the render callback 0x54E2B0; HarbourDynamics), in every theme:

Tests#

TrueTypeFontTests (synthetic fonts: metrics, cmap, kerning, exact coverage, non-zero winding, implied curves, composites, malformed data; original: 17 fonts, file hashes, glyph metrics and raster hashes, gate line hash), SignFileTests (synthetic + all 84 .sgn, gate fonts, character coverage of OBJECT_NAMES/THEMENAMES in six languages × 17 fonts), CompatibilityTests (presets, settings, profile, metadata, data corrections, synthetic minimal install with a CD overlay, missing strings, SDT damage, 47 original banks), TextCodecTests (UniToMB in six languages). Optional cross-check of the WAD fonts against loose files: OPENTPW_TPWFNT_PATH=<tpwfnt folder>.

Approximation register#

IdAreaAssumptionEvidence needed
COMPAT-002Sign textlfWidth applied as a horizontal scale with the Win32 rule (average character width = lfWidth); the width search itself is traced (0x100A9F9C: no margin, height unchanged, bisection over lfWidth). The Mac GDI layer's width rounding is not reproducedcaptures of long names (Mac GDI width rounding)
COMPAT-003Sign textRide signs apply paint RGBA, material strips and coefficients with native integer layer blending. Each paint mask is shaped as 0x5EBF10 does: offset copy, erosion or dilation by the mask word (+4), separable Gaussian by the parameter (+8) (Wilde Aap's drop shadow, the gate's shadow, Azteekse Tekens' outline). Each relief is shaded as 0x5EB820 does: a shape is built from the glyph coverage (the effect's mask word at +0 erodes the binary ink one step at a time and every removed pixel keeps a smoothstep level, 0x5EB270 with 0x5EA1F0; the parameter at +8 blurs it with a square Gaussian where the glyphs have coverage, 0x5EB3E0), the normal comes from the shape's next-byte and next-row differences read without clamping (0x5EB8A0), and the colour is the strip colour times parameter 2 plus the diffuse and specular terms of parameters 3 to 5, scaled by 255, clamped and truncated. The strip resampler is 0x5E80D0 (two bucket averages in 16.16 fixed point, matched); it has no upsampling branch (a requested height above the strip divides by a zero bucket count, 0x5E8364), so the nearest-row upsampling of a shorter strip is [EXT:sign-relief-upsample] (user approved, October 16, 2026). The blurs (0x5EA8A0, 0x5EB3E0), the bevel levels (0x5EB270) and the relief arithmetic (0x5EB8A0) run instruction for instruction on emulated x87 registers at the single precision of tp.exe's thread (the CRT start-up sets 53 bits, 0x6804D0; DDSCL_FPUSETUP at 0x563914 and 0x563B92 makes the shipped D3DIM.DLL CreateDevice set 24 bits, which the render function 0x576EC0 never changes; the 75 corpus signs differ between 24, 53 and 64 bits, so the precision matters). Open: the glyph coverage. tp.exe draws each line with GDI (the sign's LOGFONT, lfQuality 4 = ANTIALIASED_QUALITY, grayscale smoothing through Uniscribe ScriptStringOut) onto an 8-bit gray DIB twice the mask's size. OpenTPW models those gray levels with the documented Windows 2000/XP grayscale smoothing (TrueTypeRasterizer, CoverageModel.GdiGray4): 4x4 point samples per pixel, i.e. the 17 levels of GGO_GRAY4 (GetGlyphOutline documents GGO_GRAY2/4/8 as 5/17/65 levels), written as (level * 255 + 8) / 16, with no gamma (none is documented for grayscale smoothing; the contrast setting is ClearType only) and no gasp switch (none of the 17 shipped fonts has a gasp table). Documented: the level counts, grayscale smoothing as overscale and downsample of a grid-fitted outline, gasp semantics, the absence of a grayscale gamma. Unverified against a GDI capture: that ANTIALIASED_QUALITY uses exactly 4x4 sampling (inferred from GGO_GRAY4; Microsoft states no factor), the sample positions and edge rule, the hinted outline (the fonts carry hinting programs, and OpenTPW has no TrueType bytecode interpreter, so no hinting is applied), the dropout control the fonts request (prep SCANCTRL 0x1FF, SCANTYPE 1; not applied), the level to byte mapping on the 8-bit DIB (its palette and GDI's colour matching), and the Windows version the game ran ona captured original sign texture (the text DIB or the composed halves), or the GDI rasterizer of the Windows version the game ran on
COMPAT-004Sign textThe gate is composed from its decoded board with the park name as two lines and the stored paint (a 60 % black shadow under dark relief stone text, as in the video); board placement and relief strength are compared with a 720p capture onlynative-resolution gate capture
COMPAT-018Sign textThe native wavelet container and board alpha blit are implemented for ride signs. tp.exe compares the BILZ chunk tag at 0x6193D0 (the inflate step); everything after it is read and ported instruction for instruction at the x87 precision of the main thread (24 bits after the Direct3D device is created, which precedes the wavelet codec's registration at 0x564B20 and every sign board decode): the header scale multiplies each dequantised coefficient (0x592B80, and inlined in 0x592E60), the D4 coefficients are the 53 bit static initialisers 0x591600..0x591690 stored as float32, the row inverse 0x592C50 (short, steady, last-pair and wrap forms) and the column passes 0x5933A0 (colour) and 0x592E60 (alpha) add in the original's operand order, the colour conversion 0x5935A0 forms the chroma terms once per 2x2 block and rounds each sum through the 1.5 x 2^23 magic number into the 512-entry clamp table, and the alpha conversion is the clamp and truncation at 0x593301; the header floats feed the planes in the order Y, Cb, Cr, alpha: the PC board reader 0x5E7990 (called by the sign reader 0x5EC3A0) passes the four floats in file order to the codec's 0x592000 (vtable 0x7026B8 slot 3 through the thunk 0x5987B0, which runs the colour decode 0x592730 or the alpha decode 0x592E60 by a flag argument), once for colour with the first three as the Y, Cb and Cr scales (0x5935A0 reads plane 1 as luma and planes 2 and 3 as the 1.772 and 1.402 chroma) and once for alpha with the fourth; a constant opaque alpha plane decodes to 254 on even and 255 on odd rows, which is the float32 rounding of the original's D4 taps (their sums differ in the last bit and 0x593301 truncates), not an orientation fault; the board is blitted into the 256 x 256 composition surface forward and top-down (0x5E7D70) and packed bottom-up into the two 128 x 128 halves (0x5ECB40: composition row y at destination row 127 - y, format 1 = 32 bit at 0x5ECF2C, format 2 = A4R4G4B4 at 0x5ECFCE); the original reduces the halves to A4R4G4B4 by truncation (A, R and G with and 0xF0, B shifted, 0x5ED011..0x5ED04D) unless the option TEXTURE32 (0x7858AC: bit 0x400000 of [0x7A1A8C], 0x44DB6A..0x44DB88; the format index is 3 only with it, 0x44E1EB; the software renderer forces 8888, 0x58DACA) is on; every shipped preset has TEXTURE32 0 and OpenTPW's board stays 32 bit, [EXT:texture32-always] (user-approved 2026-11-04: the original's presets low, med and high.sam all set TEXTURE32 0, so the original draws A4R4G4B4 textures; OpenTPW keeps 32 bit); still open: the GPU upload of the packed halves (not found: the lock at 0x58B810 and 0x587130 are generic) and the sign mesh's V direction, so the on-screen row orientation rests on the compensating shader flip (docs/reverse/SIGN-BOARD-ORIENTATION.md), and original-platform board pixels (a machine whose Direct3D driver lacks DrawPrimitives2 would run the codec at 53 bits: [EXT:hardware-d3d-path], user-approved 2026-10-30, not part of this ID)the GPU upload of the packed halves and the sign mesh's V direction, independent native bitmap pixels and an original ride-sign capture
COMPAT-033Sign textA Hangul sign (the Korean CD names gulim.ttc in every sign) is laid out as Latin: usp10's itemizer (0x65112330) gives U+AC00..U+D7A3 script 12, whose routine row (0x65108E74) is the generic shaper 0x6511325C and placer 0x65113458 (one glyph per UTF-16 unit by the cmap, per-glyph advances summed, no jamo composition or kerning), and tp.exe passes UTF-16 with flag 0x80 only (no SSA_FALLBACK, 0x5EACE0). usp10 takes each advance from GDI as an integer pixel width (gmCellIncX, 0x6510EB3E) and GDI draws Gulim hinted; OpenTPW scales the hmtx advance and rasterizes the unhinted outline.a capture of an original Korean sign
COMPAT-034Sign textA sign whose text holds Hebrew (the gate's park name in the Hebrew language) is laid out in logical order. No font of fonts.wad has a Hebrew glyph, so each letter is a .notdef box in both games, but tp.exe hands the line to usp10's ScriptStringAnalyse (0x5EACE0, flag 0x80), which resolves bidi levels, and ScriptStringOut draws visual order, so the boxes of a Hebrew name's words trade places there. Whether usp10's Hebrew engine draws boxes at all for a font without the script is not read; the interface text's own right-to-left pass (0x6ae4b0) does not apply to signs (docs/LANGUAGES.md, "Hebrew"). The localisation pack has no fonts.wad; whether the Hebrew CD shipped Hebrew sign fonts, as the Korean CD ships Gulim, is unknown.a capture of an original Hebrew gate sign, or the Hebrew CD's fonts.wad
COMPAT-010Graphicstp.exe's state decoder 0x567620 sets stage 0 from each primitive's state word: 0x20000 -> MAGFILTER point (else linear), 0x40000 -> MIPFILTER none (else the device's mode 1-3 chosen at 0x566840 from DAT_008BD550 bits 0x2, 0x8 and 0x10 and the device's caps), 0x400000 -> wrap addressing with a linear MINFILTER (else clamp with a point MINFILTER). The state bits come from the face, not from an option: bit 0x20000 from bit 0x8000000 of the mesh record's first dword (0x5817D8; no shipped mesh has it, Md2StateFlagCorpusTests), bit 0x40000 from texture flag 0x100000 (0x581841; the writer is not found: 0x4343EB sets 0x100000 in a 0x104-byte game object, not in a texture, and the texture flag words built at 0x5757FD and changed at 0x590404, 0x58CA7B and 0x5902BE do not set it), and bit 0x400000 from texture flags 0x30000, which an MD2 slot's flags 0x10/0x20 set (0x575EA1, 0x575EB3, 0x575E9C, 0x581847); OpenTPW wraps or clamps each slot by it (TextureSlotAddressing). The option names bind to their variables through the record table at 0x7442C0 (stride 0x3C: a type, the name, the exclusive maximum at +0x28; the constructor 0x401030 gives the k-th ranged record the slot 0x785870 + 4 k): TEXTUREQUALITY 0x785874, TEXTUREFILTERING 0x785878, SPRITESHADOW 0x785898, MIPMAP 0x7858A4, RENDER32 0x7858A8, TEXTURE32 0x7858AC, FIRSTPERSONVIEWDISTANCE 0x7858B4 (read, no longer inferred). SPRITESHADOW is no filter option: its engine flags 0x20000 (value 0) and 0x40000 (value 1) (0x44DA97-0x44DADB) are tested only by the scene pass and the sprite flush (0x576D10, 0x58A7A1, 0x58AA54, 0x58AA5F). The preset's filter is TEXTUREFILTERING: 0 and 1 clear and 2 and 3 set bits 0x18 of DAT_008BD550 (0x44D8F0), MIPMAP sets bit 0x2 (0x44DB1E; with it clear the device mip mode stays none), and the device set-up 0x5669CC..0x566A4A gives a mip mode of linear (bit 0x8 and the caps) or point, a MAGFILTER of anisotropic (bit 0x10 and the caps) or linear, and a MINFILTER of point always. OpenTPW's Veldrid sampler modes stand in for these states ([EXT:texture-filter-samplers]), the per-face bits 0x20000 and 0x40000 are not applied, and a clamped MD2 slot keeps the preset's MINFILTER where the original's decoder and device both give a clamped face a point MINFILTER: the difference is covered by [EXT:texture-filter-samplers] (user decision 2026-11-04), as is OpenTPW's 32-bit texture format by [EXT:texture32-always].the writer of texture flag 0x100000 (not found) and which meshes carry mesh flag 0x8000000

Extensions by design (not approximations): [EXT:COMPAT-GFX-ENHANCED] Enhanced preset values, [EXT:COMPAT-GFX-ANISOTROPY] anisotropy degree, [EXT:COMPAT-GFX-VIEWDISTANCE] view-distance scale, [EXT:COMPAT-FIX <id>] each fix. Pre-existing OpenTPW values outside this slice (e.g. the fog formula in test.shader) are not listed here.

October 14, 2026 (tp.exe): COMPAT-005 is retired: the .sgn slot field at file offset +324 (memory slot base + 8, loader 0x5EC3A0) scales each character's width as width × percent / 100, truncated (0x5EAD01–0x5EAD2C and in the font-size fit loop); SignTextLayout.ScaledAdvance applies it (the original's integer natural widths are not reproduced, COMPAT-002; at 100 percent the advance is left as it is). The baseline hashes of the 71 of 75 composed signs whose percent is not 100 were re-pinned for it. COMPAT-017's calls are traced: the object text's NAME/SIGNA/SIGNB are parsed at 0x413600, SIGNA/SIGNB are copied into each placed object as two 32-character lines (0x413020/0x4130B0 at 0x4DB6F9/0x4DB70D), and the sign rebuild 0x468500 (types with flag 0x8000000) reads line 1 through 0x4E2860, which drops the last dash of a trailing "--" (it terminates the copy at length - 1), and line 2 through 0x4E2920; BonusNames now does both. October 14, 2026, second round (tp.exe and Theme Park Inc data): COMPAT-017 is retired with a code change. The sign lines come from the selected language's file only (no English fallback); a file without SIGNA or SIGNB shows "MISSING STRING", which the original sets for NAME, SIGNA, SIGNB and +0x500 before it parses (0x413600, 0x41360D–0x41361D); without a language file the definition's text pointers stay NULL (0x412C65; the sign code's handling of a NULL line is untraced and OpenTPW draws the display name); the "both empty, keep the .sam name" rule is gone. The line-1 fallback 0x78A374 is a never-written .bss buffer, the empty string, so an empty line 1 stays empty (0x4E2860). Both getters (0x413020, 0x4130B0) read the OBJECT_NAMES row (table 0x7488D8, +4 and +8) when the id is listed, and otherwise def+0x4F8 (SIGNA) and def+0x4FC (SIGNB). COMPAT-011 (the localized-string fallback order) and COMPAT-012 (the UniToMB encode rule: the original converts wide text with WideCharToMultiByte, 0x424DB0, and Encode has no runtime caller) are OpenTPW decisions or helpers now: [EXT:locale-fallback] and [EXT:text-encode-helper] (COMPAT-031, the cream gate paint, was an OpenTPW decision too and is contradicted by the video, see COMPAT-004). The original opens one language folder (Data\Language\<selected>, 0x419710) and has no English-then-identifier chain; the missing-id result of the table lookup (0x6ACB70) is untraced. COMPAT-019 is ported (APPROX:COMPAT-019 retired, and the former [EXT:tpi-lake-drained] with it, November 21, 2026: the lake is the obstacle object 1703 and, once drained, 1704, things of the world; TPI-MISSIONS.md §6): Theme Park Inc's Data/Objects.txt lists 1703 "New Science Lake Obstacle" and 1704 "New Science Drained Lake Obstacle", levels/science/obstacles/ holds lake.wad and dlake.wad, terrain.wad holds dlake, dlakem, lake, lakem1 and lakem2, and missions/miss01.sam sets Obstacle.Type 1703 # lake, cleared by one gardener with ability 10 ("Water Drainage"); so "dlake" is the drained lake, not a finished one. COMPAT-006 (kerning) is retired (APPROX:COMPAT-006, October 17, 2026): tp.exe imports only ScriptStringAnalyse, ScriptStringGetLogicalWidths, ScriptStringOut, ScriptString_pSize and ScriptStringFree from USP10 and no kerning or ABC-width call from GDI32, and the shipped usp10.dll (1999, SHA-256 58863df8...06d8) places a Latin run (ScriptPlace 0x6510CEDE, the generic routine 0x65113458 that every Latin entry of the script table at 0x65108E74 names) by summing per-glyph advances from its width cache (0x6510F241, filled by 0x6510EF97 through GDI width calls): no kern table is ever requested (GetFontData has six call sites, for JSTF 0x65110255, maxp 0x65110478, cmap 0x65110C95, OS/2 0x65111022, GSUB 0x65114CA9 and GSUB/GPOS/GDEF 0x65124809, the last three kinds of layout call belonging to the script entries 0x65124049..0x651249C9 and not to the Latin ones; the image holds no kern tag, as bytes or reversed, and imports no GetKerningPairs; the flagged fallback 0x6511308F sums GetTextExtentExPointW extents), so sign text is not pair-kerned, as OpenTPW draws it ([BIN:USP10-DLL:0x6510CEDE ScriptPlace]). A later Windows copy of Uniscribe loaded in place of the shipped one is not among the files and is not read. COMPAT-001 is retired (APPROX:COMPAT-001, October 17, 2026): the text DIB is read at 0x5EAB70 (an 8-bit gray DIB twice the mask's size, top-down, text colour white on black; each mask pixel is the sum of the four bytes of its 2x2 block shifted right by 2, 0x5EAFC3..0x5EAFE5), and the surface is composed 256 rows high with two 256x256 masks, of which 0x5ECB40 packs only the top 128 rows (0x5ECF2C), so the rows below 128 now feed the blur, morphology, shape and relief neighbours and the relief's measured text extent as they do natively ([EXT:sign-text-mask-width] is gone: the 256-wide mask is the original's). The baselines of the 75 corpus signs moved for this; see the progress note of October 17, 2026. COMPAT-018 needs a ride-sign capture, COMPAT-003 and -004 native-resolution ones; the 0x2D palette ([EXT:fsh-0x2d-palette], APPROX:COMPAT-015 retired) has no reading in Theme Park Inc's FSH loader to match, so its A1R5G5B5 decode is OpenTPW's choice. COMPAT-008 and COMPAT-013 are OpenTPW design decisions: [EXT:gate-sign-depth-lift] (the gate sign faces' depth lift) and [EXT:graphics-preset-cpu] (the processor clock taken as 450 MHz or faster). October 16, 2026 (user approved): COMPAT-009 is retired: APPROX:COMPAT-009 became [EXT:sign-text-antialias] (16 sub-scanline coverage instead of GDI ANTIALIASED_QUALITY). Parts of three more IDs became extensions and the IDs were narrowed (COMPAT-001 once too, [EXT:sign-text-mask-width], and COMPAT-003 once too, [EXT:sign-coverage-precision], both retired October 17, 2026): [EXT:sign-fractional-advance] (COMPAT-002), [EXT:texture-filter-samplers] (COMPAT-010, the Veldrid sampler choice, also for the original's point MINFILTER on clamped faces) and [EXT:texture32-always] (COMPAT-018, COMPAT-010, UI-086: 32-bit textures although the presets set TEXTURE32 0). [EXT:sign-face-alpha-blend] is removed and COMPAT-032 retired (October 28, 2026): the composed sign faces take the original's own state, alpha type 0x200 (0x575C60, 0x575DAB).

Not done#

Source: docs/COMPATIBILITY.md in the project repository.