OpenTPW

Original user interface: evidence and implementation#

October 9, 2026. Status: an original-style front end (3D lobby + menus), in-game HUD, options screen and pause menu are implemented with original UI models, textures, BF4 fonts and string tables, and run by default. They are approximations of the original screens. Windows TP.ICD remains encrypted, but static analysis of the identified Feral Mac executable now supplies original layout tables, widget allocation and model binding evidence (see PPC UI findings). Most screen/controller/rendering choices below remain OpenTPW approximations. No original captures were compared, so visual fidelity is not verified.

The CD's autorun launcher window is documented separately in AUTORUN.md.

Inventory#

All counts from read-only listings of the installed English data.

SourceContentsUse
ui.wad278 .MD2 UI models; 459 textures/*.wct and 462 stexture/*.wct (low-detail copies, plus chatpan2, mb_gobuy[d]); qickload.txt listsButtons, panels, windows, HUD
lobby.wadlobby.txt, jungle/fantasy/hallow/space.txt; terrain/ 38 MD2 (Base heightfield + sea, four *_isle/*_gate with M1..M3 animations, butterflies, bats, golden ticket) + 4 .sgn + 167 textures; globe/ 6 MD2 (online world globe, plane, pins) + 28 textures3D front end
ui/cursorsC???.tga 4-frame strips + Windows .ani/.curnot drawn yet (system cursor)
Init/<400..1024>per-resolution splash/legal/welcome TGAs per languagenot used
postcard/, 2dmap/postcard art, map spritesthe per-theme 2dmap.tga is the map terrain image; sprite layers are not drawn yet
Language/<lang>/UITEXT.str (473), UIHELPTEXT.str (589 popup help lines), THEMENAMES.str (4), OBJECT_NAMES.str, 33 BF4 fontsall text
level rides/<ride>.wadP<name>.MD2 preview model (Rides.sam Info.PreviewAnimType "m", PreviewAnimNum 1)build-menu icons
Rides.samInfo.WhichUIType 0 rides, 1 shops, 2 sideshows, 3 featuresbuild categories

No loose .sam or text layout files for these screens were found. The Mac executable contains embedded layout command tables; 55 identified tables have been decoded as metadata, independently of the currently authored screens.

Original drawing model registry#

UiModels now resolves original drawing keys from each decoded model's actual root-node name: signed-byte XOR followed by multiplication by 47, modulo 2^32. Root names retain case and spaces. For example, mainpanel.MD2 binds base, panel.MD2 binds pan_money, and f_optpanel2.MD2 binds optpanel2. The filename is an explicit presentation asset alias, not an original drawing key.

The 278-model corpus has 277 ordinary bindings: both shadow1.MD2 and w_small_shadow.MD2 store wshadow1. The original loader has an exclusion for w_small_shadow.md2, compared with case-sensitive strcmp; whether its input was lowercased first remains untraced. The selected-corpus registry applies that specific exclusion, and the asset stays available through explicit lookup. Other duplicate root hashes fail with both conflicting assets named; filename aliases also fail when ambiguous instead of selecting whichever member appears first. Existing widgets can still request unambiguous filename aliases, so this change does not rewrite screen layouts or alter custom resolutions, upscaling or interface scale.

Verification: a differing-filename/root regression failed before the fix; eight binder cases plus the all-278-model corpus test now pass. The complete UI suite passes 56 tests with zero skips. Original visual fidelity remains unverified.

The UI model coordinate space (resolves the MD2-MODELS.md open question)#

Lobby data (lobby.wad)#

lobby.txt: ISLANDFOV(100), SPINSPEED(0.02), SPINRADIUS(70), VERTICALOFFSET(20), GLOBERADIUSOUT/IN, ISLANDCAMERAPOSITION(i, x, z) for ten slots. Theme files: ISLAND(index, dir, island, gate, name, angle, height) (jungle 0 at 90°/12.5, fantasy 1 at 270°/17.5, hallow 2 at 180°/38, space 3 at 0°/35), FLYINGMESH, SKYCOLOUR, RAINY, LIGHTNING. Islands are ~50 units across around their origin; Base.MD2 holds the 111×110 heightfield and the sea meshes, which scroll through the terrain clip Basem1.MD2 (200 ticks, one texture repeat towards −U and −V per cycle, MD2-MODELS.md, "Terrain clips"). The angle is the island and gate models' yaw in degrees and the height the Y of the island's camera target (tp.exe 0x5dfa60, 0x5e1210). The island view's eye orbits that target at SPINRADIUS and VERTICALOFFSET above; its angle advances by SPINSPEED radians per tenth of a second (the lobby step is the frame's milliseconds, at most 500, × 0.01; 0x5d5c50, 0x5e0727), the eye and the target move 0.1 and 0.2 of the way to their goals per step (0x5e1210), and the field of view is ISLANDFOV (0x5e13ed; the globe's is 60, 0x5dd034), applied by the camera's method at 0x5d8cb0 to the projection 0x578be0 and the view gamut 0x56b790; it is vertical, inferred from 0x582eb0/0x56b790 (the gamut divides only the x extent by height/width). The projection is the park's (OriginalProjection): the camera method builds it with the park's builder (near 0.1, far 1000) and the screen matrix of 0x5781d0 multiplies it, so the visible half height at unit depth is 0.5 x tan(ISLANDFOV / 2) (0.596 at 100 degrees), half of a plain vertical field of view, and the far plane is the span selection's farthest corner distance (0x56bb00 -> 0x578ca0); the online globe (60 degrees, far 1000) goes through the same method. The glide is a share per frame, as in tp.exe, stepped at the 60 Hz reference frame rate ([EXT:frame-driven-at-60hz], docs/COMPATIBILITY.md "Frame-driven timing"), so it converges at the same speed on every display; the spin is linear in time.

Implementation#

Code: source/OpenTPW/UI/Original/ (canvas, models, batch/renderer, widgets, screens, options), FrontEnd/, Hud/, World/Lobby/LobbyScene.cs, Client/GameFlow.cs; shader content/shaders/ui-batch.shader.

Front end (default start)#

bash scripts/run.sh --game-path … opens the lobby. --load-original-level, --sandbox (the former default sandbox) and plain --smoke-test bypass it; --front-end --smoke-test tests it.

Button text fitting#

Button labels shrink to fit their button (UiTextFit, [EXT:fit-button-text]). The candidates are the role's font and the smaller sizes of the same BF4 family (MENUBIG → MENUMED → MENUSMALL, TITLE…, SESH…, GAME12AA → GAME10AA → GAME8AA, GAMEBOLD12 → GAMEBOLD10), each at every whole text scale up to the current one so glyphs stay pixel-exact; the largest that fits wins. When the family has no size that fits, the body fonts smaller than its last size (GAME12AA/GAME10AA/GAME8AA) join the list. Only when none fits on one line is the label wrapped at its spaces, in the largest size whose lines keep every word whole and fit the box height (UiTextFit.ChooseWrapped); a box too small even for that shows the smallest size on one line, centred. Earlier the wrapped fallback broke words between characters in a box of a few pixels (one letter per line on the online screens' 83 and 154 unit buttons).

Fitting uses the drawn pixels, not the BF4 line box: glyph offsets put ink above and below the line box, so a label measured by its line box could hang out of the button. Horizontally the label's own ink is centred; vertically the font's letter box (capitals, ascenders, descenders) is centred, so neighbouring buttons share a baseline. Vertically, drawn pixels count only where they leave the BF4 line box: the MENU, TITLE and SESH fonts keep the rows between the line top and their capitals for diacritics (MENUSMALL's letters start 9 rows down; French î, Swedish and Danish å, Polish ń and Hebrew lamed reach rows 4 to 7), and the original's text library stacks lines a line height apart (0x6ae1c0), so such a mark never meets the line above. Counting it once dropped "Boîte de réception" and its kind to a plain body font at 720p, smaller than their neighbours and on a lower baseline. The purple_button texture holds two button ends, not two whole buttons: the upper half is a bar with a rounded left end (normal), the lower half a lighter bar with a rounded right end (focused/pressed); each bar fills 48 of the half's 64 rows and is cut flat at the other end. A button is drawn as that piece plus its mirror image, rounded caps at their own aspect and the body stretched to meet in the middle, so both ends are rounded. The label is fitted inside the bar with a margin off the rim and the rounded ends.

Options (Game Options, 314)#

The page follows the options table of the Mac build (authored 2048x1536 coordinates, 57 controls; OptionsScreen). The f_screen root (frame plus tiled wave background) covers the 4:3 area; all elements are centre-anchored, so wider outputs show the lobby beside it. The title (UITEXT 314) is in the yellow title font. Labels are small black text (colour (0,0,0,255) at 0x4a441e/0x4a44fe, drawn with the sprite state 0x7060556, 0x58a010) inside the light-green bars, left aligned, label and value in one string without shadow, fitted to the bar (UiLabel.Fit, so long translations shrink).

Row (panel model)ControlWired to
3D card rendering (f_optpanel, 120008)b_on2, disabledfixed: OpenTPW always renders on the GPU ([EXT:options-fixed-rows]: the PC lets players change it, disabling it is OpenTPW scope)
Videocard: Primary (f_optpanel, 120010)b_on2, disabledfixed ([EXT:options-fixed-rows])
Screen resolution (f_optpanel3, 120021)slider over IDisplaySettings.GetResolutionspending display size; OK applies it with the keep-or-revert flow
Graphics quality (120022)slider over IGraphicsSettings.PresetsLow/Medium/High, then Enhanced (OpenTPW extension, [EXT:COMPAT-GFX-ENHANCED], last step), Custom only while current; applied on OK, restart notice when RestartRequired
Audio quality (120032)slider, disabled at 100 %fixed ([EXT:options-fixed-rows]): OpenTPW has no audio quality setting
Sound effects / Music / Speech / Movie volume (f_optpanel2, 120024-120030)slider 0..100 (percent, shown as " %d %%"; defaults 75/60/75/100; the 1 % step is the original slider's granularity, tp.exe 0x66b47d) + b_on mute toggleGameOptions volume and *On; GameOptions.*Gain is 0 while off
Advisor, Tutorial, Popup help, Confirmations, RMB cancel (f_optpanel, 120011-120015)b_on toggleGameOptions bools
Rotation (Smooth / 90 degs), Scroll (Pushscroll / Right button) (120016, 120017)b_on2 cycle buttonGameOptions.Rotation, Scroll
OK (b_okay), Cancel (b_exit) on !f_plain (120031)buttonsOK applies, Cancel/Escape/right click discard

b_on draws its normal and highlight frames as ON (upper indicator lit) and the down frame as OFF, so a toggle is a UiButton with Selected = () => !isOn. UiSlider draws the b_scroller ball on the track; clicking or dragging inside the hit region sets the value from the mouse x, the wheel and Left/Right step it (UI-036).

Wired today: every row has its effect — volumes and mute toggles set the audio mixer's channel gains, Advisor and Tutorial gate the automatic advisor, popup help gates the hover help, Confirmations gates the delete/dismiss dialogs, RMB cancel gates the tool right-click cancel, Rotation and Scroll feed the park camera, and movie volume its mute toggle the start-up movies; screen resolution/size and graphics preset apply on OK. Options files from older versions get the defaults (all on, 90 degs, pushscroll).

Option labels share one size per page (UiLabelGroup, UI-039): the family size and whole text scale whose letter box (capitals, ascenders, descenders) is closest to 58 % of the label rectangle height without exceeding it - the capture's labels are about 26 of 1536 units tall in 45-unit rectangles. A label uses it when the widest text it can show (all values of its row, in the current language) fits its rectangle, so the size does not change while a value changes; only a label that does not fit drops, alone, to the largest smaller size that does (in English every label has the page size, in German only a few long ones are smaller). The title keeps its own font.

The "OpenTPW" button (purple text button left of the OK panel, [EXT:opentpw-page]) opens a second page built from the same original pieces: an f_screen page titled "OpenTPW" (title font and position of 120020) with f_optpanel bars in two columns (left x 57..690, right x 1331..1964, rows every 156 units from y 167, the authored right column's panel size and pitch), each with a dark label in the shared size and a b_on2 cycle button. The left column holds the four display rows, window mode (windowed / borderless / exclusive "Full screen"), upscaling (Native/Linear/Nearest), render scale (Native, presets 77/67/59/50 %, others labelled with the original " Custom") and the frame rate limit (the original " Off", 30 or 60 fps; FrameLimiter caps drawing only, the simulation keeps its fixed clock); the right column interface scale (Automatic or 1x-8x), enhanced textures (see below), language, wide zoom (wideZoom, [EXT:wide-zoom]: the park camera's zoom range, On or Off) and, [EXT:periodic-autosave], "Autosave: On/Off" (the periodic autosave, on by default; GameOptions.Autosave, stored with the other game options). Clicking the button or wheel up/Right cycles forward, wheel down/Left backward, both wrapping. The effective internal/output size and fallback reason are small dark text below the rows. Game files is a purple button where the main page has its OpenTPW button, and Back is the b_okay button in the OK place on the !f_plain panel (Escape and right click also go back). It edits the same pending state: Back returns to the original page with the edits still pending, and OK on the original page applies both pages; Cancel/Escape there discards everything.

The enhanced-textures row (enhancedTextures, [EXT:texture-pack]) cycles "Original" (the game's own textures), "Enhanced" (the local enhanced pack when one is built), then every other installed texture pack (a directory under <config>/texture-packs with a valid pack.json; see TEXTURE-PACKS.md): detailed is labelled "Detailed" (translated in all eleven interface languages), other pack names are shown as they are. Its popup help explains the choice and that switching runs in the background. The choice is applied on OK, without a restart and without a loading screen: the options close and the game loop swaps the textures of the running game in place while the player keeps playing; a non-blocking line at the top centre ("Updating textures in the background... n / total" with a thin bar, OptionsScreen.DrawTextureSwitchProgress) shows the progress and disappears when the switch is done. No restart notice appears for a texture pack.

A park chosen in the front end, loaded or visited is built over several frames while the lobby (or the park being left) keeps drawing and playing, and input waits ([EXT:park-build-over-frames], BROWSER-PERFORMANCE.md). The same kind of line shows "Building the park..." (in all eleven interface languages) with the construction's progress.

OK saves save/opentpw-options.json. Size/window-mode changes use ApplyWithConfirmation (15 s) with the original UITEXT 400 question showing the display's countdown - Yes -> Confirm, No -> Revert, and on No or the timeout the original 401 message; upscaling, render scale, UI scale and the frame cap use Apply. A language change (and a graphics change that needs a restart) shows UITEXT 402 (RESTART GAME). StubDisplaySettings is only for tests/headless use. Audio code reads volumes via GameOptions.Current (MovieGain etc.).

The sixth row of the OpenTPW page's right column is Day cycle ([EXT:evening], GameOptions.Evening, saved with the other options): the pace of the evening and night extension's day cycle, 10, 20 or 40 minutes of play or always day, dusk or night (EVENING.md). The page's "effective size" text is narrower (to x 1300 of the 2048-wide authored layout) so the row's panel, which ends at y 1096, does not cover it.

Local art overrides#

UiArtOverrides ([EXT:art-override]) lets a player replace an original UI element with their own sharper art: a PNG at <config>/art/<name>.png (on macOS ~/Library/Application Support/OpenTPW/art). Nothing uses it now that the lobby has no logo (the original lobby has none, UI-014); the lobby logo used tpw_logo.png is drawn, aspect-fitted, in the tpwlogo model's box instead of the model, whose 128×128 texture holds the logo in about 90×28 pixels. OpenTPW ships no override art; without a file the original is drawn. The CD's autorun archive (Autorun/general.tre) holds a sharper copy of the logo (about 215 pixels wide) in data players already own.

Lobby button panel#

f_lobbutbg maps ipan through a texture slot with flag 0x2; w_dialog and f_train map the same texture without the flag. ipan and smallguage (the ride gauges) have an alpha plane and a zero alpha byte, which makes them cut-outs: the original's state word for such a texture is 0x2756, an alpha blend with an alpha test at 0xF0/255, whatever slot or model draws it, so the loader (UiImages.Load) drops the texels below 0xF0 and the panel's dark background and the gauges' edges come from the texture's own plane. Before the decoder read the plane of a texture with a zero alpha byte, ipan decoded opaque and a soft black key (UI-034) stood in for it. A UI model's nodes reach the screen through the scene's batcher (the walker 0x576910 marks them, 0x581CD0 appends their parts, 0x581DB0 gives each part the state word of its texture's alpha type through 0x581790), so the 0xF0 test of a cut-out interface texture is the original's own, read statically. The slot flag 0x2 has no reader and OpenTPW ignores it: state bit 0x800000 of 0x581790 is bit 0x2 of the material word +0xC, which no shipped material sets; the bit's only reader is the sort-key override at 0x58109E, so it would change only the draw order (UI-034 retired).

Text controls and the title shadow (UI-007 retired)#

Every text control draws its string into its own bitmap and submits it as sprite quads of the fixed state word 0x7060556 (0x58A26C; blend SRCALPHA/INVSRCALPHA, alpha test 0x10, stage 0 colour = texture MODULATE the control colour, point filters, clamp). The text library is in mode 0 (0x6AD790): a glyph sample of coverage c becomes a texel of alpha 17 x c with the colour's RGB (class 0xFB1EF0, blitters 0x6B24B0 and 0x6B21F0), so the quads blend the control colour with c / 15. The eleven plain classes (draw 0x48F830, vtables 0x6FF320-0x6FF500) draw it once and have no shadow. The title class (constructor 0x491920, vtable 0x6FF530, draw 0x491AB0; window, screen and lobby titles and, through 0x48C150 -> 0x492F60 at 0x49309A, the pause menu lines) first writes the string in grey (128,128,128) with colour alpha 0x80 on the rectangle moved by (-2, +2) pixels (texel alpha 17 x floor(c x 128 / 255), nothing at level 0), then the white string over it in the same bitmap (texels written, not blended), and the quads modulate the whole bitmap by the title colour; Theme Park Inc's title class (0x515DC0, draw 0x515FE0) does the same with colour alpha 0xC8. The bitmap is the control's box (slot +0x28 = 0x48F3D0 -> 0x588940; width ((R - L) x W) >> 11, height (B - T) x H / 1536, truncated, 0x48F47B-0x48F4C5), so both passes and every plain string are cut off at it, and the text is aligned inside that size (0x48F830: the right and centre bounds are the bitmap's width, 0x48F8BA, 0x48F943). One integer box serves the placement and the clip (UiContext.TextBox: the rounded left and top, because the quad sits at the rectangle's unit position, which the sprite draw 0x58A010 turns into whole pixels with fistp (0x58A15F, 0x58A1C6: round half to even), and the truncated width and height). The margins +0xDE / +0xE0 are zero unless the node's attribute word has 0x4000 / 0x8000 (0x48FCB4-0x48FCCD; the constructor 0x48FDE0 zeroes them), which the HUD cash control (node 0x2F, attribute 1) does not have, so its balance starts at the bitmap's left edge and the first glyph's one-column left offset is cut off, as in OpenTPW. UiTitleBitmap composes the title bitmap on the CPU (cached, bounded by count and 16 MB, never dropped in the frame that draws it: one frame counter per frame, in the game flow), and UiBatch.AddTitleText / AddText clip to the box. An original option label wider than its rectangle is wrapped into it (0x6AEC80: breaks at spaces and tabs only, a longer word broken between characters; UiLabel -> DrawTextAt), at the largest size whose wrapped block stays inside the rectangle ([EXT:option-label-fit]); when the wrapped block is taller than the box at every size, the label stays on one line, uncut (also [EXT:option-label-fit]). The wrap triggers on the label's ink width, where 0x6AEC80 compares pen advances with the bitmap width (a pixel or two apart). OpenTPW texts that are wider than their box opt out of the clip: the "not simulated yet" value of the object window and the attractions list ([EXT:strings]), the online screens as a whole ([EXT:ONLINE-UI]: their labels, label buttons, text fields and list headers, several of which are original UITEXT in original boxes), the text field widget ([EXT:ONLINE-UI]: its template is not decoded, so its text inset is OpenTPW's, and it also draws the original dialogs' name and price fields), the options page's OpenTPW rows ([EXT:display]), the speed buttons ([EXT:speed-buttons]), the confirm dialog's messages that are not original UITEXT (UiDialogs.Message, [EXT:strings], or [EXT:ONLINE-UI] for the online screens' messages; the original ones, MessageOfOriginalText, and the original message box are cut off, although the confirm dialog's text box is read off the video, so its clip is not the original's) and the fitted-label fallbacks ([EXT:fit-button-text]). Probe of the front end and the Jungle HUD window cycle in 11 languages: the only clipped ink left is that first glyph column of the HUD balance.

Text colour sites (UI-006)#

A text control starts white (255, 255, 255) with its font's own glyph colours off (constructor 0x48F6A0: +0x48..+0x4A = 0xFF, flag +0xDD = 0; nothing in tp.exe sets that flag, 0x65C54A has no caller), so a control that is never coloured is white, and the colour 0x65C5D5 sets (message 0x40000 of the property handler 0x48FC40, kept at +0x48 and as ARGB at +0x78, 0x48FD07) is the diffuse colour of its glyph quads (0x58A010, 0x58A019). The 134 call sites sit in 62 builders; the window and control ids below come from the instruction scan (a push of a window control id before the call; the register cases resolved to their last write in the builder). A button draws its text through 0x668AD3 from the state 0x668820 returns (1 disabled, 0 normal, 2 checked, 3 checked with the pointer, 4 pressed, 5 hover): normal and checked with +0x14C at (0, 0), pressed with +0x14C at (2, 1), hover and checked with the pointer with +0x154 at (1, 1), disabled unchanged. Only the list header builder sets +0x14C / +0x154 (0x668F5A / 0x668F7B); every other button keeps the constructor defaults (0x668952..0x6689AC: +0x14C white, +0x154 black, offsets +0x158 / +0x159 = 1, 1), which UiButton draws for the model buttons with text.

BuilderWindow or controlColour (r, g, b)
0x486660 (59 callers)list column header buttons: All Visitors 0x493530, attraction lists 0x494250, 0x494C70, 0x494EC0, 0x495110, All Staff 0x496620, hire 0x49BC80, loans 0x49FB30, buy 0x4ACC70, 0x4B46A0, online lists(255, 239, 0) from the callers (UiColors.ListHeader); press and hover set to the same
0x492D20 (15 callers)window titles, and the lobby island name 0x4B8520 (sites 0x4B8604, 0x4B8685)title (234, 239, 102); island name (252, 232, 7)
0x4B8CA0key panel create (site 0x4B8E62)(252, 232, 7)
0x48B220, 0x48B2A0pause menu lines (0x492F60 makes them: grey (128, 128, 128) default, then a hover ramp from 0x48B255)(0, 175, 190), the ramp from the grey
0x4861E0object window status text (table 0x74FB50)the table's colour per status
0x47F020message box textthe descriptor's bytes +4..+6
0x4A43B0, 0x4A4490options labels and slider labels(0, 0, 0)
0x4A52A0park information window: the Top 3 Thoughts title 0x4A68CE (UITEXT 0x9C) and the caption of the happiness bars 0x4A68CF are labels; the series toggles 0x4A68BC..0x4A68C0 and the period buttons 0x4A68C3 (1 year), 0x4A68C4 (3 years) and 0x4A68C2 (12 years) are buttonslabels (0, 0, 0) (UiColors.Ink); the buttons are set black here but their SetText override 0x668D5F (vtable 0x705A50 +0x24) calls 0x668AD3 right after (0x4A551B) and reapplies the white default, so they draw white
0x49AC60finance window: the eleven period and series toggle buttons 0x12274..0x1227E (font slot 0xB)set (0, 0, 0), then overridden white by SetText 0x668D5F -> 0x668AD3 (0x49ADC6): they draw white as model buttons
0x498D80ticket price window 0x4F3AE, 0x4F3B0 (font slot 6)(0, 0, 0)
0x4A6E40window with controls 0x70A (255, 255, 255), 0x70D, 0x70E (0, 0, 0)as listed
0x496F90, 0x4AD720, 0x4AFAA0, 0x4B0ED0status banners ("chev" texts, font slot 8) of the object windows(0, 0, 0)
0x4B75A0, 0x4BB8000x3734; 0x5B82, 0x5B83 (UITEXT 0x10C)(0, 0, 0)
0x4AA480research window: the five fluid cells' texts (font slot [0x754BC8])(224, 86, 86)
0x49FB30loans window: four texts, 0x12C4C6, 0x12C4C7, 0x12C4C9 and the one at 0x49FF69(255, 0, 0)
0x4B2750staff training window: five rows 0x2E7, 0x2EA, 0x2EB, 0x2EC, 0x2ED(0, 0, 0) (the zero register); 0x2DF, 0x2E0, 0x2E1, 0x2E6 (255, 0, 0)
0x4B0640, 0x4B1B50, 0x4AE980procedures of their own, apart from the refresh routines 0x4B01D0 and 0x4B16C0 around them: shop window 0xC07E..0xC085, ride window 0xA08F..0xA0A7, 0x3E31..0x3E33(0, 0, 0) (the zero register)
0x4A1D70HUD builder: the counter rows 0x36, 0x37 and control 0x2F (site 0x4A2218) (255, 255, 255); the tool cost 0x30 (UiColors.CostText); the date 0x20 (UiColors.Ink)(255, 255, 255); (255, 255, 0); (0, 0, 0)
0x4A0AB0HUD balance text (refresh), control 47table 0x752E30, six entries picked by the balance (ParkHud.CashColor)
0x4A6000, 0x4A61D0, 0x4A6580postcard window: 0x4A6000 (site 0x4A6193) takes its colour from the bytes 0x7540C0, 0x7540C4, 0x7540C8 (236, 162, 4), 0x4A61D0 (site 0x4A6273) is (255, 0, 0), and the five texts of 0x4A6580 (0x7A14, 0x7A19..0x7A1C, font slot 5) pass the same three bytes in rotating order(236, 162, 4) in rotations; (255, 0, 0)
0x49BC80hire window: the title (white) and the four counters 0x248A..0x248D (sites 0x49C422, 0x49C4A3, 0x49C6B3, 0x49C786)(255, 0, 0) with the builder's zero register; the title (255, 255, 255)
0x4ACB70buy list row control, message 0x403 (site 0x4ACC4E, the row index in the argument): a negative argument (231, 239, 75); a ticket-gated item ([info+0xC4] set, 0x4D4B70 false) (255, 224, 0) or (255, 0, 0) by 0x4D4B90; otherwise white while the item's price ([+4]) is within the bank balance, red above itas listed
0x4A0710loan list row control, message 0x403 (site 0x4A0751): (255, 255, 255), and (140, 0, 60) for a negative argumentas listed
0x4C23F0control 0x2241 (site 0x4C255C, font slot 6)(0, 0, 0)
0x4955E0, 0x4BE730, 0x4BE7C0roster cell and the chat name cells (pushed from 0x4BF748, 0x4BF8B8): the colour arrives in the caller's argumentsfrom the callers
0x4BA980the two direct sites 0x4BAAFB, 0x4BABC3 (controls 0xE, 0xF, font slot 6)(255, 255, 255)
the other builders0x480DD0, 0x48D2E0, 0x48D370, 0x492180 (help box), 0x499060, 0x4990F0, 0x49F170, 0x4A8140, 0x4A8420, 0x4A8C00, 0x4ACC70, 0x4AD340 (buy list rows), 0x4AE7D0, 0x4B3CF0, 0x4B6110, 0x4B9A70, 0x4BA200, 0x4BAD70, 0x4BB070, 0x4BCCA0, 0x4BF810(255, 255, 255)
0x5F0B40site 0x5F0C91 pushes 0xFF, 0xFF, 0 (the zero register)(255, 255, 0)

Not read: the list row classes' text, selection and disabled colours, and the backdrop colours, which are not 0x65C5D5 sites.

Retired in round 11 J. UI-008: no PC screen draws a model-less text button (the list headers are the !cbut model, UiContext.DrawListHeader), and the purple_button plate of the buttons without a model sits only on OpenTPW's own screens, each under its approved label ([EXT:ONLINE-UI], [EXT:own-window-sizes] (the online screens' log in/out, online menu, visit, unpublish, listed, players, share and login-form buttons), [EXT:mods-ui], [EXT:SETUP], [EXT:tpi-viewer], [EXT:opentpw-page], [EXT:tpi-text-hud], [EXT:load-chooser], [EXT:speed-buttons], [EXT:pools-waves], [EXT:theme-continue], [EXT:save-extension-switch], [EXT:overview-select-button], [EXT:staff-employee-view]); the ticket price window's park name is clickable title text (0x4F3AF, 0x485D20). UI-914: the park information window's series mask (0x753C48) and period (0x7CB39C) are written only by its procedure and kept for the process (ParkInfoChoice, shared between parks), the stay ring takes the integer turns since the arrival stamp (0x4FD950), the model objects' handlers (0x476F10, 0x477310, 0x477640) never show a hidden icon again, the graph's pixel size is [EXT:graph-pixel-adapter], and the Theme Park Inc statistics' saved-clock continuation is [EXT:tpi-history-fresh-start] with a validation item for the TPI restore work.

Resolution independence#

The UI is built in drawable pixels in the renderer's overlay pass (after world upscaling, so render scale never blurs it). The canvas fits the 2048×1536 layout to the pixel size; BF4 text uses the requested integer UI scale up to the existing display policy's reference-layout fit (UiScaling, 1280×720). An oversized manual request falls back to the largest fitting integer (at least 1); the request stays saved, the fallback is logged, and options show requested and applied values. Thus 1280×720 with a requested 2× uses 1×; 2560×1440 uses 2×. This is an OpenTPW extension (EXT:interface-scale-fit), with no claim about original game scaling. The font tier is picked from the fitted logical size, so a HiDPI output shows the same layout and fonts as its logical size with every glyph texel a pixel-exact 2×2 block (verified with OPENTPW_TEST_PIXEL_SCALE=2). Mouse input is converted from logical to pixel units.

OpenTPW supplementary strings#

Labels the original tables lack (window mode, upscaling, render/interface scale, frame rate limit, language, autosave, back, date format, read-only/save/build messages, "not simulated yet") are in UI/Original/SupplementaryStrings.cs: repository-owned, clearly OpenTPW additions, translated for English, Danish, Dutch, French, German and Swedish (native-language names for the language row). They render with the original BF4 fonts; tests check that every used original and supplementary string has a glyph in all 14 UI fonts of each language.

In-game HUD#

Interfaces for other slices#

InterfaceOwnerStub
Hud.IHudParkStatus (money, date, speed, price/availability)economyEconomyParkStatus binds to Level.Park (looked up on every access, so a loaded park save is followed): balance, IParkClock date and speed; Level.PlaceObject/object removal own TryBuild/Sell; NoEconomyStatus for the economy-less sandbox; StubParkStatus for tests only
Hud.IBuildCatalog (BuildItem: category = WhichUIType, OBJECT_NAMES index, cost, preview model, texture dirs)rides/objectsOriginalBuildCatalog adapts Level.Objects.Catalog, with original names, preview models and Upgrades[0].CostOfUpgrade; TotemBuildCatalog remains a test fixture
Hud.ObjectInfo/ObjectStat for the info armrides/guests/economyParkHud.SelectedInfo follows OriginalObject
IDisplaySettings (real: the renderer)displayStubDisplaySettings (tests only)
GameOptions.Current volumes, mute toggles and gameplay switchesaudio, camera, tutorial/advisormovie volume only; the rest is stored (see Options)

GameFlow.StartLevel binds the HUD; guest admissions reach the balance through the economy's guest bridge.

Coaster tool panel#

While the coaster tool is active the HUD shows the original's slide-out panel (tp.exe table 0x751530, click handler 0x4982a0, docs/COASTERS.md "The tool panel"): the green drawer art (panel) with two !f_plain boxes and nine buttons of the cb_* models (cb_track, cb_loop, cb_move, cb_loft, cb_swapup, cb_rotate, cb_incline, cb_swapdown, cb_dellast) at the table's rectangles, carried out of the HUD arm by the arm drawer like the camera panel (end place left 486, top 1145: a shift of (−373, +229); 0x4988c0, 0x4a2590, 0x4a14f0). The selected button shows its pressed frame, a disabled one its grey frame (the enable mask 0x445910); the tooltips are help 564, 306 (308 on a flume; the table's 565 until the panel's refresh 0x4987f0 replaces it), 296, 297, 302, 300, 569, 303 and 304 and a click on build, loop, move or demolish shows help 0x125, 0x126/0x127, 0x121 or 0x124. The panel slides out and in with the arm's drawer, and the park's pointer handling (press, drag, release on pylons, the blueprint-marker cursor and placement area) is ParkHud.CoasterPanel.cs.

Verification#

Control inventory#

Every visible control of the original-style HUD, its windows and the front end, against its handler (October 2026 audit from the code, not the historical matrix). "Test" names the suite that exercises the action end-to-end or its model effect; the native front-end smoke test (FrontEndSmokeTest) covers the click flows with the real assets. Approximation tags refer to the register below.

Main HUD (Hud/ParkHud.cs)#

ControlActionStatusTest
b_buy panel button (469), key Bopens/closes the buy window; disabled in a read-only visitwiredFrontEndSmokeTest, HudScreenShortcutTests
b_info panel button (470), key Iopens/closes the park information windowwiredFrontEndSmokeTest
b_money panel button (471), key Fopens/closes the financial information windowwiredFinanceWindowTests
b_resrch panel button (472), key Ropens/closes research; Instant Action shows its original unavailable messagewiredManagementUiTests
b_map panel button (473), key Spaceopens/closes the map windowwiredMapViewStateTests
b_camera panel button (474)opens the camera slide-out panel: camcorder (C) and postcard (Ctrl-P) (UI-042)wired (host approx)CameraControlTests
speed buttons (pause/×1/×2/×4), numpad +/−/*set/step/reset the park clock scale ([EXT:speed-buttons], [EXT:time-key-speeds])wiredHudScreenShortcutTests
happiness gauge (477)cropped vertical meter from the sampled visitors' mean (UI-901); shell help association retainedwired; rendered verification pendingHappinessGaugeTests, HudScreenShortcutTests
date display (478), balance (465), cash change, golden tickets/keyslive economy readoutswiredFrontEndSmokeTest
park clicksselect the object of the clicked grid cell; selection opens the object windowwiredFrontEndSmokeTest
comma / full stop while a blueprint is pendingadd 90° / 270° to the build angle (one / three RotateBuild steps)wiredUiRegisterRound2Tests
Ctrl+S / Ctrl+Vopen the staff / visitor locator panels; staff radios use independent persisted role order, visitor radios use the live ThingPool chain, and the camera follows when position is available (UI-091)wiredLocatorPanelTests, LocatorStaffRoleOrderTests, StaffRoleOrderTests, LocatorVisitorOrderTests (new role-order C# coverage awaits exact-head CI)
key Vopens/closes the All Visitors window (plain V pans nothing; Ctrl+V stays the locator)wiredOverviewWindowTests

The buy window's preview#

The buy window's turning model (Hud/PreviewIcon.cs) is drawn the way tp.exe draws its preview object, on the CPU up to the screen and then with a depth buffer:

PreviewDepthOrderTests compares the drawn image with a depth-tested reference over all 346 preview models (the 274 of the four themes and the extensions') at 16 turns: no pixel differs. The painter's order the preview used before put the wrong face in front on 3.2 % of the covered pixels, in 332 of the models.

Ground plates ([EXT:preview-ground-plates]). The user's decision, October 20, 2026: "Grondplaten toch tonen (EXT)". The plates of the Space Racers and The Blobulator previews (Pgokarts.md2, PWATERIDE.MD2, two triangles of the material PURPLE_BASE each) face down, so tp.exe's face test drops them when the preview is seen from above; the preview draws every PURPLE_BASE triangle whichever way it faces. Eight other previews use that material (the Halloween and space previews 2150, 2160, 2180, 2185, 2190, 3180, 3185 and 3190), all facing up, so the face test keeps them anyway and nothing changes there; every other triangle keeps the original's test (PreviewDepthOrderTests.TheSpaceRacersAndBlobulatorGroundPlatesShowAtEveryTurnAndEveryOtherFaceKeepsTheOriginalsTest). The Jurassic Tours preview (Tourride.MD2) has another downward pad (JF_pad3, six triangles under about four fifths of its footprint); it is not part of this exception.

Object window (selected object)#

ControlActionStatusTest
name and stat rowslive catalogue values; unknown statistics say "not simulated"wiredFrontEndSmokeTest
status banner (chev)the object's status (0x485f60): condemned, track, service, breakdown, queue and closed statuses in the original's colours; none for an open objectwiredObjectWindowStatusTests, RideStateRulesTests
b_door open/close (12)closes/opens the attraction through the reopening guard; disabled for non-attractions and read-only visits; a ride's greys for the track statuses and while the guard refuses its reopening, and a condemned ride's is hiddenwiredFrontEndSmokeTest, ObjectWindowStatusTests
b_erase delete (15)sells and removes the object (confirmation when enabled); fixed items and read-only visits cannotwiredFrontEndSmokeTest
b_move (14 / 32 / 44)the Move tool ("The Move tool"): demolishes the object as b_erase does, without the confirmation, and arms the same type at its angle; a kart or water ride needs one arm on each tile beside its station; fixed items and read-only visits cannotwiredMoveToolTests, SandboxSmokeTest
b_okay tick (1)closes the windowwiredFrontEndSmokeTest
b_ride it! (16)enters/leaves the first-person ride view of a rideable ride (UI-094/95; the E key is [EXT:ride-view-key])wiredFrontEndSmokeTest
b_arup / b_ardown (21, 20), b_allthings (17)step through the objects of the type; open All AttractionswiredOriginalLayoutTablesTests

Ride view (camcorder on a ride)#

Source: World/RideCameraMode.cs, World/RideSeat.cs, Hud/ParkHud.RideView.cs, World/Level.RideView.cs. Traced in tp.exe (UI-093/094/095):

Pause menu (Escape)#

The actual builder checks read-only visits first: Resume Game, Exit To Lobby and Quit Game. Otherwise a bankrupt park gets Load, Restart Park, Resume Game, Exit To Lobby and Quit Game, in that order (0x48C150). Save, Publish Park, Options and Go Online are absent from the loss branch; a park without an economy keeps the ordinary menu. Missing Load/Restart hooks disable those rows. Resume and Back retain bankruptcy, cash and the configured speed; existing child dialogs and the stale Exit callback guard are unchanged. LostParkPauseMenuTests exercises the constructed menus, child actions, cancellation, visit precedence and pause scale. The loss window, its gate camera and the hidden-HUD overlay are ported (ECON-030).

ControlActionStatusTest
Resume Gamecloses every stacked screenwiredFrontEndSmokeTest
Restart Park / Publish Parkrestarts an Instant Action park after its confirmation / opens the online publish flow; disabled without their host actionwired (host)HudScreenShortcutTests
Savewrites the owning game flow's park save (own-format world save); a read-only visit has no Save entrywiredFrontEndSmokeTest
Loadopens the Load Park screen; disabled when the host provides nonewiredHudScreenShortcutTests (entry enable logic)
Optionsopens the options screen; disabled when the host provides nonewiredOriginalUiTests
Go Onlineopens the online screens when builtwiredonline suite
Exit To Lobby / Quit Game (confirmation)leave the park / quitwiredFrontEndSmokeTest
(open menu)stops the park simulation while the menu or a screen opened from it is open, as the original's pause menu pauses the game (Mac 0x10198514 → 0x10110518); the speed setting is kept, so the park resumes at the same speed (the other pausing screens are under "Pause owners")wiredParkPauseTests, FrontEndSmokeTest

Pause owners (UI-096 retired, ADVISOR-017)#

The game pause object (0x786B68) is paused by eight callers of 0x4092A0 and toggled by the P key (0x409350, which freezes the same timer 0x785970, 0x402DD0). ParkHud.ClockPaused is its flag: the clock the advisor's speech, the advisor's queue turns and the crowd's steps follow. The simulation's time scale (SimulationTimeScale, TimeScaleFor) follows the same owners. Only these stop it: besides the callers below the pause menu's own children (the load, save and Game Options windows), the map and the postcard also pause; the research, finance, loans, object and visitor windows do not.

The sound side of the pause is ported (UI-096 retired): a game pause pauses the advisor's speech and raises the listener, the deactivation pauses the mixer; docs/AUDIO.md, "Pause sound".

Caller of 0x4092A0ScreenOpenTPW
0x48C87Ethe Escape menu 0x48C830 (it also clears the enable word 0x786BA4)pause
0x49EFBA, 0x49F29F, 0x4A3A6Cthe load window, the save window and the Game Options dialog, opened from that menuthe screens above it
0x5F0B7Fthe map window 0x5F0B40map
0x4A93D7the postcard 0x4A9380: hides the HUD, runs the advisor's stop path 0x5996D0 and sets the park state 0x7CC150 to 3 (game type 1 takes 0x4BCEC0 instead of the pause)sendPostcard
0x47F26Cthe generic message box 0x47F020, while the enable word is 1 and [0xF82884] is 0 (it is 0 in every park, logged in or not: its one write, 0x54E66C in game state 1, is cleared at 0x54E7E6 before a park loads)the screens of IsPausingMessageBox, in every park but a shared one or a visit
0x46B74Cthe application's deactivation in the window procedure 0x46B600 (pause with the P window, in every park; the mixer is paused too)the focus-loss latch (ObserveApplicationFocus; not in a shared park or a visit)

The 27 call sites of the message box 0x47F020:

Call sitesWhatOpenTPW
0x48CD65the delete confirmation of an object (UITEXT 0x18C), also from the attractions windowconfirmDelete, confirmDeleteAttraction (pause)
0x4B5EACthe employee dismissal (UITEXT 0x18D)confirmDismissStaff (pause)
0x48AAC2, 0x48AC06the Instant Action completion message (UITEXT 0x1D7), after the winning screen's Escape or right clickwinningMessage (pause)
0x4AA533, 0x4AA596the research window's refusals: Instant Action (UITEXT 0x1D4), no scientist hired (UITEXT 0x1D3)researchRefused (pause); OpenTPW posted the first to the message tube and opened the window for the second
0x48B85B, 0x48B8AA, 0x48B8FC, 0x48BABA, 0x48BF77, 0x48C08Bthe questions of the pause menu's handler 0x48B6A0 (quit, restart, select new player, ...)confirmQuit, confirmRestart ...: above pause, which holds the pause
0x49EBA2, 0x49F66A, 0x49F6FE, 0x49F7ADthe load and save windows' questionsabove pause
0x4A60C9, 0x4A6234, 0x4A753E, 0x4A7A5D, 0x4A800Fthe postcard and e-mail sending messages (invalid addresses, sending, failures)postcardRecipients, postcardFailed, above sendPostcard
0x4238CDthe "restart the game" notice (UITEXT 0x193) of the display optionsthe options' restart box, above pause
0x47F76Ethe alert queue 0x47F620, fed by 0x47F410 (33 callers: login, chat, mail and FTP code with ERRORMSG.str and chat table ids)alertBox: the postcard composer's refusal (0x4A8C00 queues ERRORMSG 0x4E at 0x4A8C89 when 0x5B6460 on the online object returns 0, reached from the postcard close 0x4A91D0-0x4A9265) is shown as this pausing box; the other producers run in the lobby or online
0x4B9E16, 0x4BC5D1, 0x4EDB3Donline park window, FTP and voting noticesonline screens, no offline pause
0x5D5949"You have postcards in your outbox" (UITEXT 0x1D9), at the lobbythe lobby's own notice

A box nested above a pause owner pauses nothing more and its close resumes nothing (the enable word is 0 while the owner holds it): the set of open screens does the same. A box that did pause resumes the game when it closes (0x47EED0, 0x47EFAC-0x47EFDA), which also ends a P pause opened before it and destroys the P window (ParkHud.UpdatePausingBoxes). While the P backdrop is up it holds the focus (0x47EE67): no HUD shortcut or Escape works until P resumes. OpenTPW's loan boxes (loanConfirm, loanFunds, loanFailure) are not call sites of 0x47F020: the loans window has none, so they do not pause. In a shared park no box and no deactivation of one player stops the lockstep clock: [EXT:online-coop-lockstep] the new pauses are gated off there (tp.exe has no such case, [0xF82884] is 0 in every park), and the level's own time scale ignores every screen of a session (GameFlow.SessionTimeScale). A logged-in player's own park pauses on its boxes as tp.exe does.

Windows#

WindowControlsStatusTest
Buy (ParkHud.BuyWindow.cs)list select/sort/scroll, category buttons, purchase via row activation, staff button, all-attractions button, exit/BackwiredBuyWindowTests, FrontEndSmokeTest
Staff (ParkHud.Staff.cs)role filters, name/wage sort, hire on a left click (hover highlights), employee view ([EXT:staff-employee-view], a click opens the employee window), scroll, locators, all-visitors and all-attractions buttons, exitwiredManagementUiTests, MapStaffControlTests, FrontEndSmokeTest
Employee (ParkHud.EmployeeWindow.cs)table 0x756f48: clickable name title and original rename dialog, stats frame (4 s refresh), dismiss with confirmation, pick-up, patrol toggle, ThingPool cycle arrows, all staff, locate (staff identity independent of coordinate availability), tick (UI-092 portrait residual)wiredStaffWindowTests, EmployeeWindowControlsTests, EmployeeLivePortraitTests, EmployeePortraitGeometryTests, OriginalStaffImportTests, FrontEndSmokeTest, sandbox smoke (pick-up)
Attractions (ParkHud.AttractionsWindow.cs)the original tables (window 0x7508e0, lists 0x750ab8/0x750ba0/0x750ca0): category tabs, per-category columns (rides: users, excitement, repair, life; shops: customers, profit last month, total profit, satisfaction; sideshows: customers, excitement, profits, satisfaction; features: number owned) refreshed every 2 s, any column sorts, scroll, the tick, the park information, all-staff and all-visitors buttons, an object window opens its own category with its object (UI-905), a left click opens the info panel and keeps the list, a right click locates and closes, delete ([EXT:overview-select-button]) with the original category confirmations; the sandbox developer Totem is listed beside the catalogue rides and its delete goes through the prototype removalwiredOverviewWindowTests, FrontEndSmokeTest (list/activation/sell, prototype list/activation/remove with healed selection, visit open + read-only refusal)
All Staff (ParkHud.AllStaffWindow.cs)table 0x750e10 (generated by tpw_exe_layouts.py): five role tabs (cleaners, mechanics, entertainers, guards, scientists; the tab is kept for the session, 0x7ca16c), five sortable columns (name, current status, monthly wage, skill bar, happiness bar; a header press re-sorts the rows in their current order, equal rows keep their place; the status, skill and happiness cells refresh every 2 s, name and wage stay as the row was added), rows in the role chain's order (newest first among equals), scroll, a left click opens the employee window, a right click centres the camera on the member and closes, the frame with the tab's role and all-staff average happiness bars (taken when the window opens and on a tab press), park information / all visitors / all attractions buttons, tick/Back, advisor help 285; opened by the info windows' all-staff buttons, the employee window's (on the member's role with the member selected) and the HUD info button while it was the last info window (0x4a0810, 0x4a098a); no S key (the host camera pans with S), no delete flow (the original window has none)wiredAllStaffWindowTests
Visitors (ParkHud.VisitorWindow.cs)table 0x7506c8: six sortable columns (number, cash, time in park, rides, thought icon, happiness bar; values refreshed every 2 s), 56-unit rows, scroll, a left click selects, a right click locates and closes, park information / all staff / all attractions buttons, tick/Back, V key (UI-907)wiredOverviewWindowTests, VisitorsWindowTests, HudScreenShortcutTests, FrontEndSmokeTest (list/scroll/sort/Enter-locate)
Map (ParkHud.Map.cs)pan, zoom, four category filters, track/visitor/staff/metric layer toggles, closewiredMapViewStateTests, MapStaffControlTests
Finance (ParkHud.FinanceWindow.cs)1/3/12-year periods, eight series toggles (the bank balance and park value can show together and exclude the six cash-flow series, as tp.exe's 0x49a2e0 masks do; the series colours are its records), loans/staff-cost/entry detail buttons, exitwiredFinanceWindowTests
Loans (ParkHud.LoansWindow.cs)Available/Outstanding tabs, six sortable columns, list select/scroll, take/repay with confirmations and balance checks, summary rows, navigation buttonswiredFrontEndSmokeTest (loan flow), model in economy suite
Research (ParkHud.ResearchWindow.cs)per-category effort sliders, workload knob (UI-064), item previous/next when selectable, exitwiredManagementUiTests
Entry price / staff costs (ParkHud.Management.cs)± adjustments, park door toggle (b_door), exit; read-only visits cannot changewiredManagementUiTests
Park information (ParkHud.InfoWindow.cs)the original's table 0x7537d0 (window3 frame, title 0x4a68c5, close) with the traced Top 3 Thoughts ranking and frame (toughts, help 186; title UITEXT 0x9c; three ti_hungry icons with the thought's THOUGHTS.str text as hover help, refreshed every second as the original's timer 0x80083 does; an icon hidden by an empty slot stays hidden), the line graph with its five toggles and 1 / 3 / 12 year buttons over the monthly statistics rings (ParkStatisticsHistory, filled at the month step as 0x4c7720 does), the counts frame, the two happiness bars (hap.wct / sad_undec.wct) and the three navigation buttons (a visit shows the published statistics instead; the series and period choice lives in ParkInfoChoice and persists for the process, as the original's 0x753C48 / 0x7CB39C); with opentpw.guest-insights on, the refusal counters ([EXT:guest-insights])wiredTopThoughtsTests, FrontEndSmokeTest

Theme Park Inc front end (FrontEnd/ThemeParkIncFrontEnd.cs)#

Theme Park Inc data starts at an OpenTPW Personnel File screen instead of the Theme Park World lobby: the window, slots, name box, buttons and mugshot at the rectangles of Theme Park Inc's layout table 0x9c0fbc, drawn from its own ui.wad models with its UITEXT.str ids and the PERSONNELFILE fonts, plus the quit confirmation (table 0x9b18bc). It uses the same widgets as every screen here (UiScreen, UiButton, UiModelImage, UiLabel) and the tables are generated by tpi_exe_layouts.py. Scope, one-player behaviour and what is not verified: THEME-PARK-INC.md.

Front end (FrontEnd/FrontEndMenu.cs)#

ControlActionStatusTest
previous / enter / next island buttons (343-345)wrap through the theme islands; enter asks for the game modewiredOriginalUiTests
Game Mode dialog (Instant Action / Full Simulation, 358/359, tick)the toggles latch; the tick (or Enter, the original's 0x802 from the name field) starts the park in the chosen modewiredOriginalUiTests
Load (202)lists shipped and own saves and loads themwiredOriginalUiTests
Optionsopens the options screenwiredOriginalUiTests
Go Onlineopens the online screens when builtwiredonline suite
Quit Game (confirmation 9)quitswiredOriginalUiTests

Not implemented (no screen exists; their keys stay unhandled): F1 advisor help speech, player profiles, online world, golden keys. The All Attractions (A) and All Staff (S) keys stay with the camera's WASD pan by policy; the attractions window opens from both the buy window and the staff window's visitor corner (so it stays reachable in a read-only visit, where the buy window is disabled), the visitors window from the staff window and the V key.

Project rule: every UI value or rule that is not original data or hard evidence is tagged at its site with // [APPROX:UI-NNN] … — evidence needed: … and logged once at startup ([APPROX:UI-NNN] warnings from UiApproximations.LogOnce). Original values carry // [DATA:<file>:<field>], OpenTPW extensions (display/upscaling/ language rows and their supplementary strings) // [EXT:…]. Paths are relative to source/OpenTPW/; line numbers are as of this commit.

IdSite(s)Current value / ruleEvidence needed
UI-003UI/Original/UiModel.cs:142a UI control model's states are the nodes down the first-child chain from the root, the k-th for state k, and a state past the chain selects nothing (0x476E80; the constructor 0x476A90 hides every chain node, the selection shows one; ported as UiModel.TryGetState); each node's world matrix composes its local matrix with its ancestors' (0x57A530) and the window angle (+0xE2) is DrawFrame's turn (0x476C50). The chain index is settled: the control base constructor 0x6597B0 zeroes +0xA and +0xC as 16-bit stores (0x659814, 0x65981D; the same offsets mean something else in the widget hierarchy, where 0x65BCAD writes a rectangle there); 0x476E80 writes +0xC from the message's word +4 under bit 0x1 and +0xA from the message's word +0xA under bit 0x80000; the button class sends bit 0x1 with the 0x668820 state to the model control at [button+0x98] (0x668A58, 0x668C55 and 0x668D06, whose flag word starts at 1 at 0x668CB8), and the slot 3 of that control, 0x476F10, forwards flags and message to 0x476E80 (0x476F5D). The model attach itself sends flag 0x57 (bit 0x1, index 0, 0x65D14E), and the sibling slot-3 overrides 0x477310 and 0x477640 of the vtables 0x6FEE38 and 0x6FEE60 pass the flags through, so every model attached through 0x65D070 is driven this way. The only site that sends bit 0x80000 as a control message is 0x66160C (0x66162D, 0x661659), which nothing references — no call, jump or pointer to it in any section — and no other site sends that bit as a control message (a constant search near the indirect slot-3 calls, not a full data-flow trace); the model-control variants also write +0xA (0x477226, 0x477555, 0x477845, 0x477AD2, 0x477B5C, 0x477848) but only under a flag word no live caller sets. The base therefore stays 0 and the button state is the chain index. The 0x4C000 flag word of the applier 0x668AD3 goes to a different control: [button+0x9C], a text control whose slot 3 is 0x48FC40 (shared by the vtables 0x6FF320, 0x6FF4D0 and 0x6FF530), so it sets the label's per-state appearance, and 0x4C000 is exactly the three bits that routine consumes. Its table 0x668BD4 holds three bodies plus a shared tail, states 0 and 2 emit two zero words and the dword at +0x14C, states 3 and 5 the button's bytes +0x158/+0x159 and the dword at +0x154, state 4 the byte +0x158 plus 1, +0x159 and +0x14C, while state 1 and any state above 5 send the zero flag word and no descriptor field — the msg+0x10 pointer is still published (0x668AF6) into uninitialised stack, harmless because the zero flags make 0x48FC40 return at 0x48FC4C. 0x48FC40 carries the descriptor's +0xA to text +0xDE, +0xC to +0xE0 and +0x10 to +0x48, the label's RGBA colour, decomposed over 0x48FD0A..0x48FD91. A button asked for a state its model lacks keeps the first frame here (GetFrame) where tp.exe's control draws nothinga button's own sends (0x668A23, 0x668BEC, 0x668C99) carry the 0x668820 state, 0 to 5, but the base-class frame setter 0x65D3A3 also sends bit 0x1 with the caller's own word — 32 call sites, some with computed or script-supplied values (0x4B35D6, 0x65EB6B) — and whether any of those targets a button is not checked, which widens the past-the-chain question; and whether the widgets reproduce the per-state label offset and colour that 0x668AD3 sends (UI-006)
UI-004UI/Original/UiModel.cs:193a UI control model's vertices all end at depth 0 in tp.exe (the control matrix 0x476c50 stores m22 = 0 at 0x476cbf; the part carries flag 0x2000000 from the model flag 0x200 set by 0x476ad3, so 0x579690 maps z to [0x8bcc20] x z = 0, with ZFUNC less-or-equal at 0x57360f and no bias: the submit order wins), the model's z orders nothing, and the items are the material runs in material order with their triangles in file order, the triangles that are not strictly clockwise dropped (the face test 0x581320, ported as UiModel.IsClockwise and the parts' DrawIndices: 422 of the 6,310 ui.wad triangles); an item whose texture has an alpha byte (state 0x556) is stashed (0x565746) and its surviving triangles sorted by depth sum, all 0, so the original's tie permutation (0x565490, OriginalDepthSort) is drawn; opaque and cut-out items (states 0x1256, 0x2756) are drawn at once. Read since (ORACLE.md X79, ui_scene_oracle.py): the order instances reach the part list. Showing a control (0x476bf0, slot 5 of the control vtables 0x6fee10, 0x6fee38, 0x6fee60) adds its instance through 0x45bd30 with the third argument 0, which selects category 0x20 (scene list +0x18; a nonzero argument selects 0x10, list +0x14, and 0x45bd00 adds with 0x70, list +0x2c); 0x576410 -> 0x576270 puts an object whose vtable slot 2 answers 2 (every model instance, 0x40f260) at the head of the list after the leading run of objects answering 1, so a list is newest first, and hiding (0x45bdd0 -> 0x576540) unlinks without reordering; the instance registry 0x5775d0 is never read (only 0x5775d0 and 0x577600 touch it). The frame draw walks the lists 1..6 in category order (0x576b86) and calls each instance's draw (slot 1, thunk 0x57ac60 -> 0x57a750), whose parts 0x581cd0 appends in that order, so the batcher's part list is the scene list, newest shown first, and its last-to-first walk undoes that: controls on pages of their own are drawn in show order (the first shown first), the mechanism is read; OpenTPW draws each screen's fixed element list, filtered by visibility, with screens bottom to top, so its order equals the original's only for controls shown once, in listed order: a control hidden (state 0, 0x45bdd0 -> 0x576540) and shown again goes to the newest end, while a nonzero to nonzero state change does not reorder (the duplicate check 0x5762a6), and the per-window show sequences (the arm drawer reveal against the drawer 0x4a14f0, slot 0x14 at 0x4a1734, the HUD economy, ticket and key toggles, the info-arm and message elements, the object-window rows) are not read, so the call order is kept. The original differs from call order only where items share a cache page (drawn in list order, the control shown last first: a panel on the page of its button would cover it) or a texture (one node at its oldest user's place, newest first inside it). Read 2026-11-09: no texture is ever placed on a page in this build. The manager 0x58F190 selects a class only when a class's used count is below its limit at +0x1818 (0x58F1C9..0x58F1E4), and neither that array nor +0x1830 is ever given a non-zero value by any code found: the constructor 0x58D0F0 zeroes +0x1800 and +0x1830 (0x58D1B8..0x58D1CC), the driver 0x58F940 clears +0x1830 each frame, and a full .text scan finds no writer of +0x1818 at all. Run in the oracle harness the constructor, the initialisation 0x58DA40 and the class walk 0x58D670 all complete with a stubbed device and write nothing there, and 0x58F190 with one pending texture returns -1 after 122 instructions. The frame driver is still entered every frame (0x576C5A loads [0x8C4B44] and calls 0x58CF40 unconditionally), so the page system runs and can never place anything: the shipped build draws its textures directly and the page grouping cannot reorder a single pair. So the page clauses below are moot rather than unported. Not ported, and still meaningful: the batcher groups items by the texture's cache page (the node key 0x581e68 is [slot+0x1c], the page surface, 0x590671..0x590678, used with slot flag 0x1000, which the page placement 0x590350 sets for every texture a scene draws: 0x590401..0x590404, reached 0x576c60 -> 0x58cf40 -> 0x58f940 -> 0x58f190); the pages split by width class (0x590cf0: > 128, > 64, > 32, > 16, > 8, smaller, or the slot's own class bits when [slot+8] & 0x30 is 0x30; 0x58f190 takes the page from the class's own list, 0x58f1c9, with the full-class fallback 0x58f1e6; the page size is 256, 128 or 64 by device, 0x58db0c) and the nodes are drawn in creation order from the last part and last material (0x58204d..0x58213b); which textures share a page is decided by the placement of the frame's pending textures (0x58f190 with 0x58eae0, 0x58eca0, the eviction 0x58e790 and a halving of a texture that does not fit, 0x58cb40) together with the world's textures, so it is not ported; on a scratch dump of the batch (not committed) of the Jungle HUD, the buy window, the staff window and the pause menu, one page per texture flips no overlapping pair, merging equal textures flips 5 pairs (buy window: the list's tick boxes), 7 (staff window: the role icons of a second window and OpenTPW's own staff-view button would go under their frames) and none on the pause menu, and one page per width class flips 56, 68 and 18, among them the HUD panel over its buttons, which the PC v2.0 gameplay video contradicts; the stashed items of a whole frame leave 0x582ad0 in the tie permutation of their count (0x5829e0, descending, not stable) after the immediate ones: the 0x38 byte records at [display+0x44] without flag 0x10 form one index array (0x582b2b..0x582b9e) that holds the world's stashed records with their real depth keys too, so the partitions, and with them the permutation of the UI's tied records, depend on the world; applying the tie permutation of the translucent items alone to the buy window flips 56 overlapping pairs, so that reading is not applied and the call order stays; the sprite batches (the control text, flushed at 0x58a660 before the scene flush 0x582170 at 0x576dbe) keep call order here; the outcode drop of a clipped part (0x580e68..0x580e76) is not applied (the permutation count n is the survivors); the x87 transform class 0x579690 was read, the CPU-feature classes 0x5f525f and 0x5f4a46 (chosen at 0x578224 by [0x8bd534] bit 0x2000000 and 0x579a80) and the 3dfx ordering 0x5828f0 (device flags 0xc and 0x20000000, 0x566c22) were not comparedthe per-window show sequence and the hide and re-show reordering against the fixed screen order (0x476bf0 -> 0x45bdd0/0x45bd30), which textures share a cache page (the placement 0x58f190 with 0x58eae0 and 0x58eca0 for the frame's pending textures, shared with the world's textures), the order and the keys with which the frame's stashed records, the world's included, reach the sort (0x582ad0 -> 0x5829e0), and which sprite flush (0x58a630, 0x58a720, 0x58a660) the control text of 0x58a010 goes through relative to the scene flush 0x582170
UI-006UI/Original/UiText.cs, Hud/ParkHud.InfoWindow.cs, Hud/ParkHud.cstext colours: the object windows' labels and values white, green values elsewhere, a highlight for selected list rows, grey disabled, the texture-switch progress bar track and backdrop colours (the video's 720p chroma is good to about +-15 per channel). A text control is white by default (0x48F6A0) and 0x65C5D5 sets the diffuse colour of its glyph quads; all 134 call sites are assigned to their window builders in the table of "Text colour sites (UI-006)" above. Read and ported: the options labels (0,0,0), the buy list rows (255,255,255), the pause menu lines (0,175,190), the title colour (234,239,102) (fifteen builders), the lobby island name (252,232,7), the list column headers (255,239,0) (59 callers of 0x486660, UiColors.ListHeader), the HUD cost text (255,255,0) (UiColors.CostText), the black labels of the park information (title, caption) and ticket price windows (UiColors.Ink; the park information and finance toggles are buttons that reapply white), the red cost rows (255,0,0) of the hire, training and loans windows (UiColors.Negative) and the list row control that turns (140,0,60) on message 0x403 with a negative argument (0x4A0710)the list row classes' text, selection and disabled colours behind OpenTPW's Highlight, Value and Disabled, the research fluid cells' (224,86,86) and the other black and red window texts of the table that no OpenTPW control draws yet, and the backdrop colours (not 0x65C5D5 sites)
UI-018Client/GameFlow.cs, World/Lobby/LobbyEffects.cs, World/Lobby/LobbyFlyingMeshes.cs, World/Lobby/LobbyScene.cs, World/Sky.csthe lobby draws the engine sky (the scene's one view has the flags 0x1F31, whose bit 0x10 makes 0x576A00 draw the sky in every frame, 0x576C6D; cloud layer sky.tga coloured by the eased island colour) over the fog-coloured clear (render flag 0x4000000, 0x5D8BEA), without fog (the lobby's range 50 to 300 is set but the scene clears the fog bit, 0x5d8bf9; RenderFog, UI-107); while the globe is up the islands screen is deactivated (0x5E23C0 -> 0x5E2550, 0x5E1BD0), which frees the island models, their clips, the flyers and the signs (0x5E25E2, 0x5D8A10), and only active screens update (0x5E40E0), so nothing of the islands component 0x5e0470 (lightning, thunder, rain, the nearest-island sky target) runs and no flyer or clip steps: OpenTPW steps none of them and builds the lobby scene afresh when the globe closes (GameFlow.RebuildLobbyScene, the activation 0x5E23F0 -> 0x5E3210), while the scene keeps easing the sky towards the globe's own target (0x5d96c0, 0x5DCFE0); the enter sequence is built (the camera turns to the island angle + π, the gate plays M1, the camera zooms under the black fade and the park starts below radius 8, 0x5e0490 states 1 and 2) and Escape ends it as the original's handler does (0x5E41C0 -> 0x5E1890, 0x5E2360, the base 0x5e1350: sub-state 0, the opened gate closes with M2, the menu is back); tp.exe's lobby code has no key-award animation: the key panel (0x4B8CA0, 0x4B9340, 0x4B90F0) is a static counter with the sparkle effect 0x61 (LobbyKeyPanelEffect) and a won ticket is a text popup in the park (0x4D4BC0, 0x4D4FA0); the CRT's process-wide rand() stream (the island constructors', the flyers' and the lightning's draws) is replaced by a local clock-seeded stand-inwhether the rain the islands update held keeps falling behind the globe (the count is read by the weather draw, 0x57efd0), the second islands screen's Escape branch (0x5E2360, [[0x48B390]+0x384]), what the globe screen D (vtable 0x702E20) is for, and the original's rand() stream
UI-025Hud/ParkHud.MessageTube.csthe message tube is the original's tag window system: ten slots, no eviction, no help (the add routine 0x48eb20, cap word 0x750610); every post names a tag whose record (content/data/message-tags.toml, the table 0x75eca8) decides its text entry, replacement, icon, actions and lifetime (30 s for most tags, 90 s for the offers, none for the progress rows; the expiry timer 0x80080 and the warning timer 0x80081 five seconds earlier run on the UI clock, 0x661fe5, and a pause suspends them, 0x48a6e0); a row is kept until it is deleted, answered or expired (0x48d9c0 stops an armed non-offer tag's timers and removes nothing); a deleted, expired or answered row leaves 500 ms later with the decline run first for an offer (0x4a13e8, 0x48db94, 0x48e269); a replaced row leaves at once; a right click on the tag the panel is still sliding out for does nothing (0x7ca094) and one on the tube's body removes every row 100 ms apart (0x4a1190, 0x100003); the panel's buttons come from the tag's actions (buy with its entry preselected, hire, loans, research, park information, staff costs and entry price windows, locate a thing or a cell: 0x48e610, 0x48e0f0); the first show starts the burst 0x5a and the warning the retained particle 0x5b at the icon's centre, ended by a read or the removal (0x48dfbe, 0x48de1a); the tube is saved with the park and an original save's tube is imported (0x48ee50, 0x48ef70); the tube art remains an extensionthe locate actions' operands: the original fills the context words (the advice builder 0x59b590 takes the thing id and the secondary word as its arguments 2 and 3; the scan callbacks leave words at the scan object +4 and +8, which the speech copies into the record when they are not 0, 0x59b6cf-0x59b6e4; they reach the tube through 0x59b7d4 -> 0x40f740 -> 0x509bf0), which OpenTPW's scan callbacks now store as the original's do (the dirty toilets 86-89, the unconnected queue 113, the big busload 140's second-bus-stop cell word, the scary rides 141 and the shop lines' handle and figure; AdvisorController.SpeechCheck hands them to the speech; the scan's own record carries 0 as the original's does, 0x59a5fd), a generic cell word of 0 does nothing here where tp.exe jumps to an unclamped target; that case is unreachable for 140 with shipped TPW/TPI settings, which all name BusStopBPosX/Y, and 0x4d8650 would still pass the nonzero packed word (Y << 7) + X + 1 rather than using 0 for a missing stop, the place of the 0x5a burst (the window's rectangle before the tube positions it, 0x4a12e3, is not read: the icon's centre is used), the icons' bounce animations (tables 0x7502f0 and 0x752e48), and writing the original's own tag block (OpenTPW's resume save keeps its own JSON part)
UI-026Hud/ParkHud.BuyWindow.cs, Hud/PreviewIcon.cs:28build icons: the preview model (P.MD2, else the main model) is drawn depth tested in its own image ([EXT:preview-icon-cpu-projection]) with the original's placement, camera and face test: the fit and footprint terms of 0x4689f0, the matrix 0x468e50 rebuilds each frame (the yaw and the -π/4 tilt through the sine table, the offsets, x scaled by 0.75 and depth by 0.1), the instance's own view diag(1, -1, 1, 1) (0x45bd30, 0x57a260, used for model flag 0x200 by 0x57a750), the viewport mapping with depth × 0.1 (0x579690 mode 2), the clockwise-only face test (0x581320) and LESSEQUAL depth (0x567620, 0x57360f), its turn of 0.0004 rad a millisecond running on across selections (0x46908a, 0x468e2f), and animation 5 started on each new preview (0x4732a0: m1, else m, looping); but the original lights the preview's vertices in its 3D object pipeline and OpenTPW draws them unlit: 0x57aa10 clears the light list 0x879dec, relinks the lights of the scene's two containers ([0x87a6d0] + 0x30 and + 0x2c) through 0x576230 and lights each vertex with 0x574660 → 0x5741b0 (the ambient words 0x879dd8, 0.15 grey by default, 0x573fd0, plus for each directional light, type nibble 2 of +0x50, its colour × max(-N·d, 0) in the model's space, for a point light, 4, (r² - d²) × 1/r², clamped to bytes with alpha 0xFF; the option LIGHTING, bit 0x800 of [0x8bcbc8], takes the unlit colour [+0x2c] instead), which is read; the footprint grid (8×8 cells coloured by cell type in control 0x1eb, 0x4ab1b0, record 0x754d50) is built (BuyFootprint) and its cell rectangles' edges match 0x4ab1b0 (round 11 package I); the object windows' previews keep a 30° tilt and 0.8 rad/s; sign faces use the object's rendered sign textures (ObjectSigns)which lights the scene holds while the buy window is open: the advisor adds its own white directional light (0.6, -0.6, 0.2) at 0x429bc9..0x429d15 to the same scene, the light script engine (0x458102, 0x4582d4) adds model lights, and the source of the park's own sun (ThemeEngine.DirectionalLightLevel, LightNormal in the theme's Standard.sam) was not traced to a scene light, so the lit colour of a preview vertex cannot be computed yet
UI-031Hud/ParkHud.cs:503exactly Ctrl at the placing click keeps the build tool armed (0x5253b8; the Move tool's 0x5259e2), a ride with an entrance takes the queue tool after its placement whatever the modifier (0x52f580(3, 0)), and the queue tool's last click ends the tool whatever the modifier (0x5275b1..0x5275f2: 0x52f200(0, 0) sets mode 0 and replaces the build tool object, its mode 4 or 0x3b with its type, by the default tool), the tool's angle returning to 0 when it is left (0x52f3b6); the kart and water line tools (0xB, 0x10) take the queue tool when their circuit closes only while the placement's queue start 0x8186c0 is pending (0x526f95, 0x527004), from the cell the last placement stored (0x7639b8/0x7639bc), and the handover takes it (0x527056), as build and Move clicks on an accepted ghost (a click on a refused ghost returns at the latch first, 0x524a63), the Move pick-up and path or queue commits drop it (0x524b53, 0x5253f3, 0x525e5a, 0x527483), a path start cell ending the queue tool at once (0x52712f), and with no queue start exactly Ctrl keeps the line tool without a start (0x527146) and any other word ends it (0x527156); the Ctrl word 0xC at 0x5259e2/0x5259f4 is Ctrl alone (the modifier builder 0x46b420: Shift 3, Ctrl 0xC, Alt 0x30) and a placement that 0x52fab0 reports as entrance-bearing (the sub-record flag +0x40) takes the tail 0x5259ae: the queue re-evaluation 0x4de1f0, the words 0x763ac0 and 0x763ac4 back to 0x80, then the map cell record +0x29c (the cell's type word, +8 of the 0x44-byte record at +0x294) of the queue's start cell that 0x52a050 gave decides at 0x5259cf: type 1 (a path cell) ends the tool through 0x52f200(0, 0) whatever the modifier, which returns the angle to 0 as well (0x52f3b6); for any other start cell the mode stays the queue tool 3 that 0x52f580 set before, exactly Ctrl keeps the angle through it (0x525a06) and any other word runs 0x52f1b0(0, 0), which resets it (OpenTPW keeps the angle through the queue tool whatever the modifier and resets it when the queue tool ends); the coaster sub-mode (0x52faf0 = 3) takes the same tail and skips only the kart and water station line (0x52521e), so a coaster's placement enters the queue tool as well, its pending start consumed at 0x5252ea, and the coaster's track tool (mode 0x15, 0x497d20 for a track that 0x441910 reports incomplete, else the edit entry 0x4474d0) is entered only through 0x4988c0, never in 0x524960: by the ride window's track button (0x4af275), by a press on a marker cell of the coaster (map type 0x15, cursor mode 6, 0x487eeb) and by the panel's build button (0x498333), which OpenTPW does the same, except that the panel's build button calls 0x497d20 directly (0x498337, with help 0x125 at 0x498348) and the first two go through 0x4988c0, which posts no advisor help (0x486b00 is not called; its complete branch only sets the status text 0x4a2aa0(0xc), not shown) and which OpenTPW answers with the same panel for a complete and an incomplete track; its completion hands over to the queue tool when the pass 0x81 returns 0 (0x526525) only while a queue start is pending (0x52656e, taken at 0x526680) and otherwise ends the tool (0x5266bc): a coaster's own placement consumed its start (0x5252ea, reached when the queue start differs from the two locals compared at 0x5252a9 and 0x5252b9 or 0x820a8c is 1; 0x525296 zeroes it just before), so the completion ends the tool, and a start another placement left pending (a kart or water ride's) is handed over (the global is cleared by the build, Move, pick-up and path or queue clicks 0x524b53, 0x5253f3, 0x525e5a, 0x527483, not by a tool's exit); which OpenTPW placements end at 0x5259cf is not mapped; Level.PlaceObject owns purchase/guest linkage and its removal handler owns scrap creditswhere the original's coaster placement enters its track tool, if it does (OpenTPW enters it at the placement; the callers of the tool builder 0x46c580 and of 0x4988c0 are not traced), what the coaster click's pass 0x81 returning 0 stands for, which of OpenTPW's placements have a path cell as the queue's start, and whether a tool armed while the queue tool runs (a buy-list item) keeps the angle exactly Ctrl kept at the placement (0x52f200 resets it only on its way to mode 0; OpenTPW starts that tool at 0)
UI-042Hud/ParkHud.CameraPanel.cs, Online/OnlineScreens.cs, World/CamcorderWalk.cs, World/FreeWalkCameraMode.cs, World/Level.FreeWalk.csthe camera button's slide-out panel (table 0x751720) slides in and out as the arm drawer 0x4a14f0 does (ten 20 ms steps, cat_ui 0x1C and 0xC2, help 0x131): the drawer places the panel at the arm's left less the panel's own width and a horizontal gap of 50 (0x4a1631, the width read by 0x659e3e), centred vertically on the arm (the arm's top plus half the arm's height less half the panel's, 0x4a163b-0x4a1647) and then moves it right by a tenth of (the HUD window's right edge - the arm's left + the panel's width + 100) each step (0x4a16e5, the step 0x4a1704, the tick 0x4a19e7), the step being the integer quotient by the tick count 10 and the ten ticks adding it, so the panel ends at its start plus 10 times that step (the camera panel at left 482, top 1206; the message panel through the same drawer at left 486, top 1112) with the arm's art (bar, pane and handle) growing out from under the HUD; the camcorder button arms the camcorder tool as the C key does (button 99, 0x498ad0 → 0x481a10 → the tool 0x46cff0, vtable 0x6fead0), and the tool's click (0x46d0d0, on the press) boards the ride under the cursor or starts the walk (0x42ae70): the camera update 0x42b1c0 in mode 2 with the original's keys (the arrows and numpad 1, 3, 7, 9), pointer steering, cell-edge stepping with the mask-2 walk test (0x4d8750) and eye (ground + 5 units), matched to the executable by an x86 oracle (ORACLE.md X58); the postcard window (table 0x7540d8) keeps its photo frame empty and its preview button disabled (the 640×240 camcorder photo 0x4a9280 and the preview redraw 0x4a84c0 are not ported); its address book (table 0x7542b8, 0x4a8140) and its sending through OpenTPW's own server are not part of this ID ([EXT:online-postcard-address-book], user-approved 2026-10-30); the original has no view-cycle button, so OpenTPW has none (0x751720 holds only the two buttons; no window control changes the zoom or yaw, and the locate jumps 0x42aab0 pass null zoom and yaw)the photo and its preview; host rule: a lost window focus or a pointer outside the window drops the walk's keys and pointer offset (the walker still coasts on its velocity, 0x42B1C0)
UI-060Hud/ParkHud.FinanceWindow.cs, Hud/ParkHud.InfoGraph.cs, UI/Original/GraphBackdrop.csfinance and park information share the original's graph drawer (0x47fe90): the black backdrop, RGB (0,100,0) grid and RGB (0,200,0) axes/step labels (bitmap plot L=T=4, R=W-20, B=H-20: 0x4806a0, 0x47fb50), ten horizontal divisions and twelve labeled vertical spans for 12/36/144 samples with stored-float accumulation and integer truncation (0x47fcd0), count-based span lengths, and the signed zero-axis placement (0x47fc50). The finance series are placed as the park information series are (0x480460, 0x47fe90): n = min(period samples, months held) + 1 points from the left over steps of width / samples summed as floats, a 0 before the first month while the ring holds no older one, whole-pixel columns and rows cut to the plot, a box round each segment end below 144 samples (0x47ffe0), the last value at the line's end, and a scale over the samples 0 to the period inclusive (0x49a7b0, 0x49a8f0, 0x4801d0, 0x480380). The pixel size is the host adapter ([EXT:graph-pixel-adapter], user-approved 2026-10-30; one pixel two canvas units and at least one framebuffer pixel) and the label font follows [EXT:ui-font-tier-by-scale]. Empty histories and deselected series retain the backdrop. Safe signed 128-bit arithmetic for long financial values and background-only handling of unsupported periods/tiny host rectangles are host adaptationsthe original's 32-bit wrap of a financial span above about 8.9 million; a rendered composition of the graphs against the original's raster
UI-082Hud/ParkHud.Staff.csthe hire figure uses the traced inner rectangle, integer feet (626,362) and nominal 2.4 canvas units per reference pixel; it is the script's own sprite (0x74F758, flags 0x51000, heading 5) made at the selection (0x49BA00) and stepped by the sprite scheduler on the even substeps, with the native delayed first frame, the unknown-applicant and close epochs; the employed-tab figure deliberately shares the hire-box layout as EXT:staff-employee-view, not native applicant sourcing; evidence and limitsthe control depth word and exact viewport/raster parity
UI-086Hud/ParkHud.Map.cs, Hud/ParkMapCanvas.cs, Hud/ParkMapLayers.cs, Hud/ParkMapDots.cs, Hud/ParkMapLine.cs, Hud/ParkMapLevelCells.csthe map window's cells, layers, items, tracks and pointer follow tp.exe 0x5f2050 (the class writer: cells 10, 11 and 12 for paths, queues and unowned land, 9 for a fence post, structure type 0x19 (0x536450), the class of the owner thing for an object cell, 0x4dd4e0 +0x4ac), 0x5f2380 (the renderer: the layer word, the staff role and the value mode, the 5 × 5 pixel grid from (15, 42), the fills and the outline pass 0x5f2a94 (with its cell-width quirk) blended with the alpha of their colour (out = d + ((s - d) * a >> 8), 0x5f23cd, so an opaque fill still loses 1 where it is above the base), the staff areas as one pixel frames (0x6025c0, each pixel once, alpha 200) and the coaster track polylines through the anti-aliased line 0x5efb10, oracle X54), 0x5f3940 and 0x5f44d0 (the six sprite images, the item filters, the colour kinds, the staff patrol areas, the happiness ramp 0x5f09a0 and the repair, excitement 0x4e0860 and satisfaction 0x4e1e30 value modes) and the pointer's nearest-item pick within five pixels with its text panel; 0x5f2fd0 is the track layer (called at 0x5f2d99 under layer bit 0x10), and the pointer pick is 0x5f198e..0x5f1a96 (dxanddybelow 5.0, 0x703040); not ported: the sprite size follows the display height in the original (the quad is the image width × the item scale × 0.00078125 of the display height) and OpenTPW uses the 640 × 480 reference size, as for the pick's 5 pixel radius, which is in screen pixels of the original's display mode; the surface's pixel format: the original takes its D3D format from the table 0x8bd558[[0x8bd554]] (A4R4G4B4 when the option TEXTURE32, bit 0x400000 of [0x7a1a8c], is 0, as in its default presets, else A8R8G8B8: 0x5f1f81..0x5f1fcc, 0x44e1eb..0x44e202; the software renderer forces 8888, 0x58daca), and OpenTPW's textures are always 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)), so the 4444 surface (a 16 bpp surface: the original draws its fills, outlines and frames with the 16 bit drawer, vtable 0x703680 set at 0x617390, as well as the line) and the 8, 16 and 24 bit line variants (0x5edad0, 0x5ee580, 0x5ef040, jump table 0x5f3218) are not ported; whether the item colour modulates or replaces the sprite texel; the pointer's click-through, drag pan and camera-centred initial view and the hover text beyond the item's name; and a per-pixel comparison with a capture of the originalthe sprite size follows the display height in the original (the quad is the image width × the item scale × 0.00078125 of the display height) and OpenTPW uses the 640 × 480 reference size, as for the pick's 5 pixel radius, which is in screen pixels of the original's display mode; the surface's pixel format: the original takes its D3D format from the table 0x8bd558[[0x8bd554]] (A4R4G4B4 when the option TEXTURE32, bit 0x400000 of [0x7a1a8c], is 0, as in its default presets, else A8R8G8B8: 0x5f1f81..0x5f1fcc, 0x44e1eb..0x44e202; the software renderer forces 8888, 0x58daca), and OpenTPW's textures are always 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)), so the 4444 surface (a 16 bpp surface: the original draws its fills, outlines and frames with the 16 bit drawer, vtable 0x703680 set at 0x617390, as well as the line) and the 8, 16 and 24 bit line variants (0x5edad0, 0x5ee580, 0x5ef040, jump table 0x5f3218) are not ported; whether the item colour modulates or replaces the sprite texel; the pointer's click-through, drag pan and camera-centred initial view and the hover text beyond the item's name; and a per-pixel comparison with a capture of the original
UI-091Hud/ParkHud.LocatorPanel.csstaff radios use independently persisted and validated role chains (+0x210), with explicit whole-role fallback for malformed original chains and read-only compatibility projection for older own saves; visitor radios project live guests onto the ThingPool used chain, with an explicit ascending-ID fallback only for pool-free fixtures; visitor position failure still clears the selection, while staff identity survives unavailable coordinates; the panels slide out of the HUD arm and back in as the drawer 0x4a14f0 does, started by 0x4a2590 (ten 20 ms ticks, geometry of ArmDrawer, the visitors' panel waiting in the arm's slot 2 until the staff panel is away, retract button shown with the slide out), and the camera follow has no smoothing of its own (the per-frame matrix blend of 0x42b1c0 runs only for the mode bits 0x3c of 0x790ab0, of which the camera setter 0x42ab20 sets only the ride bit 4: it belongs to the ride view, UI-094)retained visitor position-loss behavior; what the close message 0x1001d8 does when the arm retracts a locator panel inside 0x4b3f60 (the panel procedure zeroes the mode word 0x7cc2f0 after 0x4b3f60 set it, so opening a locator while one is out may leave its radios dead; not ported, a locator opened while one of its kind is out keeps the panel out without retracting it); exact-head C# validation and real-data visual comparison
UI-100UI/Original/OriginalPointers.cs, Hud/ParkHud.Cursor.csthe path and queue line previews choose the link pointer (validator code 8, flag 0x816d60), the end pointer (code 0xb, flag 0x816d4c: the line's last cell is an existing path cell, or the ride's own queue cell) and, for a refused line (the latch 0x816d48 behind 0x527950), the no-place pointer; the cash pointer follows the money stop and wins last (0x52f950)the end pointer of the kart and water track lines (0x53a1c6), the 0x539fb6 cash flag of a chooser call that does not refuse, and the crosshair art (CCro.tga)
UI-092Hud/ParkHud.EmployeeWindow.csemployee arrows use the existing all-staff ThingPool chain; title rename captures its target in the original 32-unit dialog; staff locator selection survives missing coordinates. The portrait is the independent clone: the refresh's full copy (0x486530), the partial copy of every update (0x486610), its own due time and interval, no clone for a member without a source and none bound later, and the close's delete (0x486630). Employee-only inherited inner bounds (386,280,264,264), integer feet (526,476) and nominal 2.4 preserve the outer frame art; UI-082 owns hire sizing onlythe staff's sprite placement (the source's position and heading words), the window depth word, saved sprite records of an original save (SAVE-013) and exact viewport/raster/real-data visual parity
UI-094World/RideCameraMode.cs, Hud/ParkHud.RideView.cs, Hud/EyeModeStaticTransition.cs, Hud/RideStaticNoise.csthe ride view takes the camera seat (the ride model's seat node, 0x42a560: a ride without one is not rideable, as every shipped coaster car and ride model with one) and the shared OriginalProjection; the seat's rotation is blended with the previous frame's as 0x42ca0d does (a = (1000 - dt) x 0.0005 with the original's frame time: whole milliseconds plus one, 100 above 200) and the free look is applied after it, the view axes being the camera matrix rows (0x56b940: direction the third, up the second); static now resets to 300 ms on an observed Boolean ride/walk edge, with positivity latched before elapsed-time subtraction (0x54faf7, 0x54fb20), the scene being replaced by the static while it lasts, the mask 0x16 naming only the walk and ride bits (no writer sets bit 0x10), and its noise 0x53e760's (320 x 240 pixels, black three in four, white and grey 150 an eighth each); the right click leaves on the click message of its release (0x488a00 with message 0x10006: within 200 ms and 8 px); the crowd sentence counts around the hover cell 0x7b05cc, the cursor ray's cell clamped to the edge cell for an off-grid hit, which the overview refreshes and the ride keeps (Level.HoverCell, 0x45d560, 0x54f875); host adaptations remain for single-sample monotonic timing and frame eligibility/initialization (a new HUD starts from the camera it finds, where the original's last-mode flag 0x878e84 outlives a park), and the fallback frame of the sandbox's prototype ride, which has no modelOpenTPW orthonormalises the blended view where the original leaves its rows as blended (a length of the cosine of half the frame's turn, at most 0.13 percent at 0.1 radian a frame, 0x42cc7c); its first ride frame starts unblended where the original blends it with the last ride's matrix or the camera init's identity (0x42a9ee; hidden under the static); exact-head C# and real-data visual validation
UI-095World/Level.RideView.csleaving the ride view restores the camera it was entered from: the park camera as it was (a ride entered from the park view relocates nothing: 0x42ab20 answers 1 only for a ride entered from the walk, flag 0x400, and 0x42a190 calls 0x42a1d0 only then), or the camcorder walk, whose walker is put at the centre of the exit cell of the ride whose entrance holds its cell (0x42a340: the owner thing of type 3 with CannotRide 0; its mExitPos is read at 0x42a22e; x and z are 5 + 10 per cell) with the original's look direction (0x42a1d0: the link byte (+0xd) of that cell, a 0x44-byte record at *0x7cf6ec + 0x294, masked with 0x55: 1 gives pi, 4 pi/2, 0x10 0, 0x40 3pi/2) and only the position and yaw; the byte of an exit cell is written by the placement commit (shape type 10 through the switch 0x529164: 0x5292b2 by 0x5227e0, an entrance's own by 0x5293c3) and by the track editor and the cell reset (0x5227f0 from 0x53b280, 0x536490), which ParkCellMap.WriteFootprint and the track code carry (QueueLinkAt), so the yaw rule fires for placed rides; the park camera's eye height, pitch and zoom range are the original's (0x42b1c0 park branch) while its motion model is OpenTPW's owndivergent saved mExitPos values and the native order of overlapping things in a cell's list; the walk's starting velocity (the words 0x790a88..0x790a90 are the park pan's velocity too, and neither 0x42ae70 nor 0x42ab20 clears them: a walk entered while the park camera still pans starts with that velocity, where OpenTPW's park camera has no such velocity and the walk starts at rest); the park camera's motion model of 0x42b1c0 (the pan velocity ramp, the yaw easing 0x7909e0 at dt x 0.007143 up to 140 ms, the pointer's edge scrolling beyond 0.95 of the view scaled by 10, the right button's pointer-offset scrolling and the damped map limits)
UI-107World/Sky.cs, World/Level.Sky.cs, Client/GameFlow.cs, Render/RenderFog.cs, World/Particles/ParticleRenderer.cs, content/shaders/particle.shaderthe park's sky is built (World/Sky.cs): the cloud layers (sky.tga over the 16 x 16 grid, 1, 2 or 4 by SKYQUALITY, scrolling with the frame time) and the backdrop cylinder (sky_cyl.tga), all camera-centred with no depth and each with the alpha test of its state word (0x10 of 255: the clouds 0x401D56, the cylinder 0x1D56, the objects their texture's 0x556 with 0x401800), over the viewport clear, which is the level's ThemeEngine.FogColour only with the fog bit 0x2000 of the render flags [0x8BCBC8] (the first-person views, toggled with them by 0x54FAD7) or the lobby's bit 0x4000000, else black (0x5737AA: the park overview clears black; RenderFog.ClearColour; the Theme Park Inc executable picks [0xBE20C0] (FogColour) with the flags 0x4002000 and [0xBE20BC] otherwise, 0x6D697A and 0x6D72EB, copied from the ThemeEngine block's first two words at 0x4288F0 to 0x428915, whose six ThemeEngine fields are bound by the real constructor 0x41B320 -> 0x418F60, resolver 0x4192C0 and parser 0x419CD0 (oracle X90; BackColour row 0x99C69C, name at +4), so a Theme Park Inc park clears to ThemeEngine.BackColour, 0 in its shipped shared settings and unchanged by its online settings, without the fog; Sky.BackColour); the other bits read: 0x2000000 is the globe's (set 0x5DD072, cleared 0x5DD2E2) and the globe's sky draws as 0x5863C0 makes it under that flag (Sky.Draw globe, run in the x86 oracle, finding X78): the layer grid a second time with x and the height negated, the same indices, colours and texture coordinates (0x586810 to 0x586A8A), and the cylinder's V rows 0.99, 0.69, 0.51, 0.99 and 0.49, 0.19, 0.01, 0.49 (0x586B03 to 0x586C3C), 0x4 and 0x8 are toggled only by the bound command 0x40C830 (key table entry 0x748324: key 0x74, modifier word 0xC), a hidden debug key OpenTPW does not offer (it would draw the single opaque sky layer 0x401A56, skip the sky objects, 0x5860EC, and run the reverse sort 0x5828F0), bit 31 (no colour clear) and 0x100 are never set, and 0x4000 and 0x8000000 are the vendor workarounds below; the sky objects (the moons of the hallow and space levels: moon.tga, moon2.tga, Standard.sam SkyObjects) draw as 0x5860d0 builds them: the point through the clip matrix, a screen-aligned square of Size x 0.5 in clip space turned by the camera roll, FrontFlag choosing the pass before the clouds or after the cylinder, only with SKYDETAIL 1 (flag 0x400000), with the state bit 0x1000 (drawn at once) and 0x800 (no depth write) their state word gets from 0x5861E5; a sky object takes the textured path unless its texture pointer [edi-0x18] is null (0x586150 to 0x586163), which draws the opaque 0x1256 quad without texture coordinates (flag 0x1000 of the texture only selects the page handle [tex+0x1C]), and its page values +0x20..+0x2c are that placement's scale and offset, which map the quad's 0 to 1 onto the texture's own rectangle, so the texture is drawn on its own; the vertex colour mask (DAT_0087a248 + 0x2c) is all ones (its only writers are the anaglyph mode); objects, terrain, water, particles and kid sprites fade into the level's fog colour (RenderFog, the shaders' g_vFogColor; 0x4080e0 copies it to [0x8bd47c]) over the original's linear range, in the first-person views (ride, free walk) only, as in the original, where the park overview, the lobby and the globe have no fog (RenderFog, docs/LND.md, Fog and far plane: FIRSTPERSONVIEWDISTANCE 0-3 picks start and end 50-60, 100-110, 135-150 or 230-250 original units = 0.2 world units each times the preset's view distance scale, 0x44d8f0 -> 0x583280 -> SetFog 0x567ad0 every frame, D3DRS_FOGTABLEMODE linear with FOGSTART/END, no range fog; measured in the projection's w, sin(fov / 2) x the view depth, 0.7071 at the park camera's 90 degrees: the vertex projection 0x579690 stores 1 / w as the rhw and the engine's start and end of 50 to 250 original units cannot be the depths of the device's 0 to 1 range, so the device's table fog is the w fog (the z of the engine's own clip space, 0x578BE0, differs from w by at most sin(fov / 2) x the near plane 0.1); the front-end screens' 50-250 are not mapped); the fog bit 0x100000 is added to every batch 0x565F90 submits (the model faces 0x58179F, the particles, the sprites, the sky objects, whose clip-space quads have w = 1 and so no fog), to every batch 0x566220 submits and to the terrain cells (0x570E9A), each while bit 0x2000 is set, and not to the cloud layers and the cylinder, which 0x5863C0 makes with 0x565240 directly, nor to the weather, whose batches all call 0x565240 themselves (the rain 0x57F1A7 and 0x57F1BB, the bolts 0x57ECCC, the snow 0x57FB94; only the lightning's flash quad goes through 0x565F90, 0x57EE19), so weather is never fogged (WeatherRenderer); the park view's far plane is the span selection's farthest corner distance (0x56bb00 -> 0x578ca0 -> 0x578be0), which a frame uses one frame late as the original does (0x576A2C composes the matrix, then 0x576ADD -> 0x56BB00 -> 0x56BD3E -> 0x578CA0 sets the far for the next composition; Camera.ParkFarPlane), except that the first park frame after a ride or walk view would use the far plane 0x56ED79 last set through 0x578CA0 (that view's box depth), where OpenTPW continues from the last park frame's far (not ported), and the ride and walk views keep the default far plane 1000: 0x56EA90 composes the view matrix again right after its argument 1000 (0x56EAC0, 0x56EAC5) and only afterwards sets the farthest box depth through 0x578CA0 (0x56ED79), which reaches the weather's depth split (0x583220) but no matrix; the vendor workaround that turns the table fog off while a bit of 0xC000 is set in [0x8bcbc8] (0x566a92 to 0x566b45: old S3 and ATI devices) is not part of this ID ([EXT:hardware-d3d-path], user-approved 2026-10-30); 3d.shader's own 80-200 fog is used only by the sandbox terrain (Material.Default), not by a parkthe hidden debug key 0x40C830 (render flag bits 0x4 and 0x8: the single opaque sky layer, no sky objects, the reverse sort 0x5828F0), which OpenTPW does not offer, the first park frame after a ride or walk view uses that view's far plane in the original, and whether the Theme Park Inc executable toggles the fog flag with the park's view mode as tp.exe does (0x54FAD7), which the ported clear (BackColour without the flag, FogColour with it) assumes; the options apply clears both 0x6000 bits of [0xBE1808] (0x49FC3D to 0x49FC53), which supports the black overview
UI-901Hud/ParkHud.cs, Hud/ParkHud.Gauge.cs, UI/Original/UiVerticalGauge.csthe happiness gauge now uses the traced vertical meter.wct halves in child (85,1100,59,224), cropped at value/1024 with white tint; the shell uses its native rectangle and established two-second byte-mean sampling is unchangedactual rendered shell/meter composition and alpha verification at representative values; independent review and exact-head CI for this implementation; generic renderer fidelity remains separately qualified
UI-910Hud/ParkHud.VisitorInfoWindow.csthe visitor portrait is the independent clone of the selected visitor's body sprite (full copy at the refresh, partial copy of every update, its own due time and interval, none for a visitor without a body, deleted with the window); the guest body player stands for the sprite VM and is drawn from the visitor's kid-set bank at literal camera yaw zero. Inner-rectangle integer feet (598,450) and visitor-only nominal 3.6 canvas units per pixel are applied before host canvas scaling. Arrows retain the shared live used-chain projection and pool-free host-only fallback; the four-second timer still refreshes statistics onlythe body sprite's flags and opacity words, the window depth word and exact viewport/raster fidelity remain unimplemented or unverified; nominal geometry is not pixel parity

UI-101 is retired: the park camera is tp.exe's (World/ParkCameraMode.cs, World/OriginalProjection.cs). The zoom value 70..130 (110 at Home) sets the pitch (45 to 65 degrees) and the eye's distance and height (0x42b1c0), the yaw 0 looks along +Y, Home targets the entrance cells (475, 175), and the projection shows a half height of 0.5 at unit depth (the pick frustum 0x56b790, and the matrix 0x578BE0's tangent of 1 meets the screen matrix 0x5781D0 of 2 x the aspect word and -2; the width follows the window aspect), checked against the PC video's first park frame. The pan speed is the original's settled speed (0.02 x sqrt(zoom) per millisecond), the rotate and zoom key rates and the wheel step (10) are its constants; the pan ramp, the yaw easing, the velocity lean (0x46f870 mode 9) and the edge-scroll curve are not ported.

Wide zoom ([EXT:wide-zoom], user-approved 2026-10-18; GameOptions.WideZoom, the Wide zoom row of the OpenTPW page, on by default, saved with the other options in opentpw-options.json, also in the browser): tp.exe clamps the zoom value to 70..130 (0x42c621-0x42c6a1, constants 0x6fde08/0x6fde0c) but with the camera mode flag 0x200 it clamps to 40..300 (0x74c9d8/0x74c9dc); the flag is toggled by 0x42a520, a handler in the camera key set (0x748158; entry 0x748298, key byte 0x20, probably Space, with modifier word 0x3f, whose meaning and so whether a retail player can press it is not verified), so the range is a hidden hotkey of the original rather than an option. With the option on the camera uses that range, but its far end is chosen by the extension (user-decided 2026-10-26, still [EXT:wide-zoom]): the largest zoom value at which the ground at the top centre of the screen is still inside the cells the span selection lists (ParkCameraMode.WideMaximumFor: the hull of the corner rays on flat ground with the ray distance of FIRSTPERSONVIEWDISTANCE, at most 2500 cells, from the pitch, the ray distance and the window's aspect), never below the original's 130 and at most 300; the park overview has no fog, so the ground beyond the list shows the clear colour. At 16:9: 130 at setting 0, 282.75 at 1 and 183.75 at 2 and 3 (4:3: 130, 282.75, 229, 213.75); a changed setting or window shape applies at once and clamps the zoom. The pitch (0x42c742) and the eye (0x42c96d) read the zoom value alone, so the same formulas run over the wider range: the pitch line continues to 35 degrees at 40 and to 84.27 degrees, the original's clamp 0x42c7c0 (1.4707963), from a zoom value of about 188 up to 300, where the eye is 298.5 original units up and 30 behind the target (an almost vertical view). Inside 70..130 the camera is unchanged, Home is still 110, and the wheel (10 per notch) and the zoom keys (0.05 per millisecond) keep their steps; with the option off the range is 70..130 and switching it off while zoomed out brings the zoom back to 130. What follows from zooming far out (checked with silent offscreen captures in Jungle at 40, 70, 110, 130, 200 and 300, and at the map corners): the far plane and the span list are the original's (docs/LND.md, "Fog and far plane"): the park view's far plane is the span selection's farthest corner distance and there is no fog in the overview, and the wide range ends where the top of the screen still shows ground the list reaches; the culling is the view frustum's and the far plane's; the terrain beyond the park edge is the level's own surrounding ground and the skirt shows as a thin edge line, with no hole at any corner; the cursor pick (TerrainRayPick) works over the whole range because the optical axis meets the ground at the target at every zoom (WideZoomTests); the pan speed keeps the original's 0.02 x sqrt(zoom) per millisecond, which is slower on screen the farther out the camera is (a screen takes about 1.6 times longer to cross at 300 than at 110, the original's own rule with the flag); the sky and its backdrop cylinder never come into view because the pitch keeps the view at least 8 degrees below the horizon; the rain field stays around the eye as in the original; the sounds follow the original's listener at the midpoint between eye and target, so they are quieter zoomed out. FIRSTPERSONVIEWDISTANCE (0x44D8F0, the part at 0x44DBB0) sets the ray distance of the span selection (overview) and the fog range of the first-person views, the ride and free walk cameras (UI-107). The frame time at zoom 300 is in docs/ENGINE-PERFORMANCE.md and docs/BROWSER-PERFORMANCE.md.

UI-027 is retired: a park click selects the owner of the hovered cell (the hover handler 0x486d90 sets cursor mode 4 for a hovered cell of map type 4, 9 or 10 with an owner, and the click dispatcher 0x4879d0 opens that thing's window through 0x486920), and the hovered cell is the cell of the cursor ray's nearest hit, the terrain's or the first object model's that the ray meets walking the cells from the camera (0x45bf90 → 0x45d560; World/Original/ObjectRayPick.cs, World/Objects/ObjectPickModel.cs), so a click on the visible top of a tall ride, shop or feature picks that object and not the terrain behind it. The sprite pick (0x5890e0 → 0x532bd0) is the people's only: its owner search accepts thing types 1, 4 to 8 and 0x12 (visitors and staff), and the sprite scripts' FRAME op 0x476940 makes their sprites pickable (+0x114 through 0x540b90). The ray's hit instance [0x7a1cd4] selects nothing: its only readers copy it to the camera control block 0x79c6ac (0x443aab, 0x443d23). What the pick does not port (a track tile's piece model, grouped instances, the normal refresh 0x473c30 and the hover highlight 0x469180) is APPROX:RIDES-021's (OBJECTS.md).

The park gates (and the lights, created with them) cannot be hovered or clicked in the original, and OpenTPW matches; every fixed item has kind 4, so none of them opens a window either way. A gate is a placed thing of type 3 whose kind word is 4 (Info.WhichUIType 4), and the object window dispatcher 0x486920 opens nothing for a kind above 3 (cmp ecx, 3; ja 0x486a89 at 0x486948). It never gets that far: the hover handler sets cursor mode 4, and the cell lookup 0x452ae0 names an object for the ray's model test, only for a cell of type 4, 9 or 10 whose owner word leads to the object (0x527e80), and nothing gives the gate such cells. World setup creates the gates and the lights through the attraction constructor 0x4db090 (0x5156a0), which stamps no cells; the cell stamping 0x528a70 is reached only from the build tools (0x524960, 0x524790, through 0x5234d0), whose menu never offers a kind-4 item (the filler 0x4aaf70 lists a tab's kind, 0 to 3); and the world init 0x536490 gives a level's cells only the types 0, 1, 2, 7 and 30 from its MAP bytes. The saved data agrees: the gate's record stands at cell (0, 0) (its model is authored in park coordinates), and in the shipped Jungle save none of the 49 cells with an owner word names that cell, while the cells under the Jungle gate (around (45..50, 12..21)) are the fixed walkway (30), paths (1) and no-terrain cells (7) without an owner. A click on a gate's model therefore goes to the cell behind it, as the ray then meets no object model: the walkway or path there, where a path cell starts the path tool. (The eleven Nexus park saves read no type-4/9/10 cell and no owner word anywhere, not even under their rides, so their cell records are not decoded for these fields and were not used.)

UI-907 is retired: the All Visitors list's rides column is left-aligned as the original's. The rides cell's constructor 0x48fde0 stores 0 (left) in the alignment byte +0xd8 (0x48fe28), and the row factory 0x4939d0 sends the alignment call 0x65c428 with 1 (centred), 2 (right) and 1 (centred) to the number, cash and time cells but none to the rides cell it makes at 0x493b38; VisitorRidesAlignmentTests covers the drawn row (docs/VISITOR-RIDES-ALIGNMENT.md).

UI-102, UI-103, UI-104 and UI-105 are retired: the park camera's middle-button turn, the map window's edge scroll, the Move tool ("The Move tool" below) and the buy list's golden-ticket rows are built from the original's routines.

Closed as OpenTPW design choices (October 16, 2026, approved by the user): the former APPROX:UI-002, APPROX:UI-005, APPROX:UI-012 and the own-window sizes of APPROX:UI-013 are now [EXT:…] labels at their code sites (UI-013 itself is retired since round 10: the measure 0x4929f0 is matched and its font bank pick is [EXT:ui-font-tier-by-scale]), and UI-025 and UI-026 keep only their original-behaviour parts as register rows. Behaviour is unchanged.

EXT nameFormerWhat it is
ui-font-tier-by-scaleAPPROX:UI-002The BF4 size tier follows the output scale (thresholds 0.36 / 0.6) and the role fonts are OpenTPW's pick; the original chose one of four font banks by its fixed screen modes (0x419710) and named a bank slot per control (0x485a70: menu lines 0, HUD cash 1, HUD date 3, window labels 6, list rows 7), with no rule for other output sizes.
ui-linear-filteringAPPROX:UI-005The pink (255,0,255) key with neighbour colour bleed lets UI images scale with linear filtering at any output size; the original drew at its few fixed modes.
ui-modal-right-click-backAPPROX:UI-012A right click backs out of OpenTPW's modal screens (and its other windows) when RMBCancelOn is set, with hover focus following the pointer; the option's only direct readers in the original are the park view, the camcorder and the ride views.
own-window-sizesAPPROX:UI-013 (part)The sizes of OpenTPW's own windows (UiDialogs.CenteredWindow), which have no original layout table.
challenge-offer-repostAPPROX:UI-025 (part)An offer the tube refused (full) or that a loaded park lacks is posted again so the challenge system never stalls; a deleted or expired offer is declined as the original does.
message-tube-artAPPROX:UI-025 (part)The tube body is drawn as rectangles and its icons as discs.
preview-icon-cpu-projectionAPPROX:UI-026 (part)Build and object icons are projected on the CPU and their kept triangles drawn with a depth buffer into an image of their own, which the interface draws in its pass, rather than as instances in the engine's scene draw. The buy window's projection is the original's (see "The buy window's preview"); the object windows keep OpenTPW's orthographic 30° view centred in their frame.
preview-ground-plates—The Space Racers and The Blobulator previews draw their downward PURPLE_BASE ground plates, which tp.exe's face test (0x581320) drops; the user's decision (October 20, 2026): "Grondplaten toch tonen (EXT)".
fit-button-textAPPROX:UI-032 (part)The small-font fallback for a long single-line label. The rest of APPROX:UI-032, the formatter's greedy wrap (0x6aec80) and its glyph classes (0x6aeab0), is matched and retired.
options-slider-stepsAPPROX:UI-036 (part)OpenTPW's option sliders step through its own presets and 11 volume steps. The rest of APPROX:UI-036, the original slider class (value to thumb 0x66b088, truncated drag 0x66af19, page click 0x66b8aa) and the options page's 0..100 range (0x4a455a, thumb left where it was dragged, 0x4a2e90), is matched and retired.
option-label-fitAPPROX:UI-039 (part)Option labels are sized by a shared 58 % letter box with a per-label drop to a size that fits, where the original does no fitting and lays an overflowing label out through the text library (wrapped into its rectangle, 0x6ae930, 0x6aeb10, 0x6aec80), so this size choice stays a deliberate difference; OpenTPW ports the wrap itself (0x6aec80, at the largest size whose wrapped block fits the rectangle) and, where no size's wrapped block fits, keeps the label on one line, uncut (it also skips the text clip). The rest of APPROX:UI-039, the original's slot-6 label font (0x4a443c, tier pairing under ui-font-tier-by-scale), is matched and retired.
pause-menu-hover-focusAPPROX:UI-013 (part)The pause menu line's hover ramp is driven by OpenTPW's pointer focus (the original's line procedure 0x48b2a0 takes messages 0x10001 and 0x10002, read as the pointer entering and leaving); the user approved it as a design choice.
coaster-drag-reference-mode—The coaster tool's drags count whole pixels of the original's default 640 x 480 display mode on every screen: the original stores the pointer as integers of the selected display mode (0x42a760: hiword x * [0xfaa5c4] / 2048, loword y * [0xfaa5c0] / 1536), OpenTPW has no display mode, so the pointer is scaled uniformly by the canvas's 4:3 fit to 640 x 480 pixels (the original's units are square); user-approved 2026-10-31.
coaster-cursor-no-node-writesFormer: APPROX:COAST-033 (retired)The coaster build cursor never writes node state: the original's rebuild of an unfinished chain includes the cursor's spare node, so hovering moves the last pylon's stored bank and half turn, but the hover is local to each player and OpenTPW keeps it out of the shared track. User-approved 2026-10-31.
list-row-pitchAPPROX:UI-044The buy, loans and load-park lists use a fixed pitch of 41.4 units; the original's pitch (34 to 42 units) follows font slot 7's line height and the screen height, which OpenTPW's resolution-independent output sizes cannot copy.
online-globe-audioAPPROX:UI-942The online globe's music and ambience (cat_globallobbysfx 2 and 3) replace the lobby's, which OpenTPW stops while the globe is up and restarts after it. The globe belongs to the online extension.
visitor-info-windowAPPROX:UI-091 (part)The visitor info window that Ctrl+V tests is not ported; a click on an All Visitors row or a visitor picked in the park stands in for opening it.
restart-snapshot-per-startAPPROX:SAVE-012 (part)Restart Park returns to the park being played: OpenTPW retakes its restart snapshot at every park start and load (GameFlow.TakeRestartSnapshot). The original's writer 0x550B30 opens restart.INTS for reading (0x550C0F) and saves only when that fails (0x550C14), and nothing deletes the file between parks, so it keeps the first park of a theme folder as the restart point forever. User-approved EXT, 2026-10-17.
no-launcher-machine-classAPPROX:GUEST-020 (part), APPROX:GUEST-017 (part)OpenTPW always follows the graphics preset for how many staff banks and kid sets a park loads. The original's launcher machine class (the flags word 0x79D86C bit 0x4000 from dialog.tcf, with the memory sub-classes of 0x44A5D0: 8, 0x10 or 0x20) sets, under class 0x4000, the staff limit to 2, 2 or 1 (0x41AA40) and the kid-set limit to 8, 6 or 4 (0x41A9D0, 0x41A9E1 to 0x41A9F4) for the memory words 8, 0x10 and 0x20, and depends on the player's PC (user-approved 2026-10-30).
hardware-d3d-pathAPPROX:ECON-059 (retired), APPROX:COMPAT-018 (part), APPROX:UI-107 (part)OpenTPW models the hardware Direct3D path only. The original's software renderer path (0x8BD524 = 4, 0x44DD50..0x44DDE9) leaves the C runtime's 53-bit x87 precision (the shop's cost of goods, the sign wavelet codec on a driver without DrawPrimitives2) and the vendor fog workaround for old S3 and ATI devices (0x566A92..0x566B45) switches the table fog off; both depend on the host's graphics hardware. User-approved 2026-10-30.
texture32-alwaysAPPROX:COMPAT-018, APPROX:COMPAT-010, APPROX:UI-086 (part)OpenTPW keeps 32-bit textures always. The original's presets low, med and high.sam all set TEXTURE32 0, so it creates A4R4G4B4 surfaces (format table 0x8BD558[[0x8BD554]], 0x44E1EB, 0x5F1F81; the sign board halves are truncated by and 0xF0 at 0x5ED011, the map surface is drawn with the 16 bit drawer 0x703680); OpenTPW's boards, map surface and textures stay 32 bit. User-approved 2026-11-04.
original-undefined-readsAPPROX:MD2-901 (retired), APPROX:COAST-026 (part), APPROX:PTCL-908 (part)Where the original reads undefined memory OpenTPW's behaviour is defined: a texture-frame key outside the slot's frame names is ignored (0x470C90, 0x575F90), a coaster run position outside the sample list stays clamped to the last run, and a type-2 particle effect with a negative key (its direction buffer is unset in the original, 0x556B90) starts nothing. User-approved 2026-10-30. Since 2026-11-21 it also covers a Theme Park Inc camera flight of thing 0, whose start would read the thing table's null slot 0 (0x5D0448): the flight is refused, and a mission controller that asked for it stays waiting for message 0x29, so that mission cannot complete (only reachable with no current obstacle, which no shipped mission reaches). Since 2026-11-26 it also covers Theme Park Inc's native guest states (hidden switch --tpi-native-guests, TPI-GUESTS.md): a guest arriving at a litter bin target that no bin holds (state 9, 0x616F10) reads it as a thing without a script or history, so it counts as full, and a guest walking to or queueing for a ride target that no hosted attraction holds (states 13, 14, 16 and 17, 0x616ADE, 0x6176C0, 0x617FB7, 0x61A22B; phase P3b added 16 and 17) reads it as no target and goes idle. In both cases the removal message 0x60D120 has already cleared the target before the thing goes, so the original never reaches them with an empty slot.
fade-poll-host-timingAPPROX:AUDIO-040 (retired)The FADEOBJ fade poll's start phase and its order against the main thread's group refresh follow OpenTPW's clock (one scan per due callback, then 100 or 250 ms from now), where the original's Sleep(100/250) worker depends on the host operating system's scheduler; a missing host SoundQuality takes the loaded SAM DEFAULTQUALITY, since OpenTPW does not read the user's saved preference. User-approved 2026-10-30.
legacy-save-arrival-wavesAPPROX:ADVISOR-028 (part)A legacy OpenTPW save without ArrivalWaves takes five zero-size arrival groups when the park has had admissions, because the real sizes cannot be recovered; the original's saves always hold its ring (0x4CE660). The Theme Park Inc advisor remainder stays in ADVISOR-028. User-approved 2026-10-30.
unknown-research-droppedAPPROX:SAVE-007 (retired)A saved research project of an object the level archives do not define, or a current project absent from its category's table, is dropped and reported; this concerns saves of other data (mods, other builds), not the original's own. User-approved 2026-10-30.
delimiter-split-for-toolsAPPROX:SAVE-011 (retired)A payload split without the park's coaster types (a tool, a synthetic payload) finds its Coasters block by the delimiter's bytes, rejecting an ambiguous split, where tp.exe's loader runs each block's reader (0x415270). The park import passes the types and ends the block where its reader stops. User-approved 2026-10-30.
coaster-pylon-fallbackAPPROX:COAST-015 (retired)A coaster definition built without game data (tests, tools) takes fMinHeight and fMaxHeight as the pylon mesh heights; the original always has its pylon models. User-approved 2026-10-30.
m3-gate-walk-boundAPPROX:GATE-006 (retired)The M3 gate's queue walk bound (C = 27 per cell, N x C + 2 x w2) comes from an enumeration of the walk as OpenTPW ports it: a test-harness tolerance, not original behaviour. User-approved 2026-10-30.
untyped-harness-worldAPPROX:QUEUE-003, APPROX:QUEUE-010, APPROX:QUEUE-012, APPROX:ECON-049 (parts) and APPROX:ECON-050 (retired)The gates and test rigs have ride entrances that are not typed map cells with a link byte and no placed cells, so they keep the host's one-cell queue fallback, the front/nearest-path relocation, their own route rules and the permissive entrance connection answers; tp.exe's world is always typed. User-approved 2026-10-30.
track-tool-owner-leasesAPPROX:RIDES-011 (part) and APPROX:ECON-050 (retired)Defensive owner and generation leases keep OpenTPW from committing into another ride's cells, where the original commits unconditionally into whatever ride the track tool's stale globals name (0x7639E0..0x7639EC), a bug OpenTPW does not copy. The sticky globals themselves are ported (TrackToolGlobals: the last select's, tool start's or Buy Land start's exit and entry tiles decide which tiles a demolition's record clear spares); they are the issuer's client-side state, carried by the demolishing and selling commands (ToolTiles) so every peer and a replay agree. User-approved 2026-10-30.
graph-pixel-adapterAPPROX:UI-060 (part)The finance and park information graphs draw one bitmap pixel as two canvas units and at least one framebuffer pixel, an adapter to the host's resolution, where the original draws at its display mode's pixel size. User-approved 2026-10-30.
staff-drop-occupancy-refusalAPPROX:GUEST-013 (retired)A world that keeps the cells it was given (a read-only visit) has no footprint cell types, so the staff drop refuses every cell under a placed object or the prototype ride by occupancy; a park that types its footprint cells needs no object list (0x528A70). User-approved 2026-10-18.
online-park-record-copyCOMPAT-007 (retired; this part stays)Renaming the park does not copy the two lines into the original's online park record (0x409410, 0x5B0940/0x5B0970, +0x34/+0x76 of the 0x50-byte record, unless GameType is 1): OpenTPW's online extension keeps its park records on the server and publishes the name from the park. User-approved 2026-10-30.
online-postcard-address-bookAPPROX:UI-042 (part) and APPROX:ADVISOR-009 (retired)The postcard window's address book (table 0x7542b8, 0x4A8140; its help 308) is not ported and its button stays disabled: recipients are typed (player names or addresses) and the postcard is sent through OpenTPW's own server, not the original's outbox. User-approved 2026-10-30.
online-postcard-helpAPPROX:ADVISOR-009 (retired)The postcard window's help 307 (posted by 0x4A8C00 outside game type 1) has no producer: OpenTPW's postcard composer is its own online window and posts no advisor help. User-approved 2026-10-30.

Data-backed (tagged [DATA]): the 2048×1536 canvas and authored rectangles of placed models (ui.wad roots/bounds), button state frames and texture order, V flip, lobby.txt/theme files, balance, prices and research availability (the economy's .sam data), Totem price (Totem.sam), build category (Rides.sam), excitement level (Totem.sam/ Rides.sam UsageInfo.ExcitementLevel), every UITEXT/UIHELPTEXT/THEMENAMES/ OBJECT_NAMES string, BF4 fonts.

Design choices closed from the register (2026-10-16)#

These register IDs were closed as OpenTPW design choices, with the label at the code site; behaviour did not change.

Open#

Original screen positions of code-placed elements, menu flow details (profiles, online), cursor drawing, button/arm animations (b_door etc. have no animation members; arm slide-in is not reproduced), sounds, original thousands separators and currency handling in French/German, D3D11/Vulkan runs, captures from the original game for comparison.

The developer prototype Totem shares the ordinary objects' per-tick economy synchronization: its visitor bridge receives the linked instance's wear, age and sideshow terms, while its script supplies open and broken status. PrototypeEconomySyncTests checks this without original assets or a GPU.

The All Visitors window consumes the plain V edge only when the registered Ctrl+V visitor-locator chord is not down. The locator retains its existing park, modal and ride-view gates, while plain V retains the existing window toggle behavior. HudModifierShortcutTests checks both physical Ctrl with injected V and a fully injected chord through actual button rebuilding; Ctrl+S remains the staff locator (plain S stays unhandled here), and Ctrl+P remains excluded from the pause key. Global bindings and help shortcuts are unchanged by this fix. These are synthetic model/input checks, not rendered or original-game parity.

Ctrl+P opens the existing postcard composer directly from a Theme Park World park, including a read-only visit. It keeps plain P as pause and follows modal, text, ImGui, build/removal/cell/coaster and ride-view input ownership. An unavailable host callback or edition sharing capability reports the existing unavailable message. The chord opens a form once; it never sends a message automatically. The existing composer, local outbox and map-thumbnail attachment are reused (EXT:online-postcard-photo still qualifies the photo). A simultaneous park press/release belongs to the opened composer, without activating a path or selecting a visitor/object. PostcardShortcutIngressTests exercises actual injected button rebuilding and the full HUD frame, including the GameFlow composer and a temporary local outbox. Original assets, native/GPU layout and network delivery are not qualified here. Ctrl+P does not change the selected simulation speed. The composer retains the existing modal pause while open; closing it removes that modal pause. The registered default uses left Ctrl; right Ctrl+P remains excluded from plain P pause but has no postcard action under the existing global bindings. Independent full-frame tests also cover held chords after a capture owner releases input and a simultaneous press over a pickable visitor, followed by release and a new click.

The park view's pointer: press, drag and release (tp.exe 0x4881A0)#

The park view's mouse procedure (0x4881A0) hands the left button to the current mode object as messages 0xF0 (0x46C210): a press calls slot +4, a release slot +8; the right button is 0xF1 (slots +0xC and +0x10, both empty for every park mode). A mode object never gets a left press and a left release for different cells: every handler reads the hover cell 0x7B05CC at its own moment, and the hover cell is refreshed every frame from the pointer's ray (0x54E2B0 -> 0x45BF90 -> 0x45D560), whatever lies over the park. A drag does nothing but move the hover (the drag slots +0x1C/+0x20 of the tool object are empty).

Mode object (vtable)Left pressLeft release
idle (0x6FEA10)the click dispatcher 0x4879D0 runs first (the call at 0x488768, after the hover refresh 0x486D90), by the hovered thing: enters the path tool (cursor modes 1, 2: 0x46C580(1)), edits a queue (3: tool 0x14), opens an object's window (4; with Ctrl, either key, it arms a copy instead: the build tool of the object's type at the object's angle, after the buy row's price test, which plays the error cue and arms nothing when the balance is below the price; a guest of a shared park is asked for its build rights at the placement as for every placement), enters a track tool (5), opens a guest's window (7) or a staff member's (8 to 0xC)nothing (slot +8 is ret)
tool object (0x6FE9E0): placement (modes 4, 0x3B), path and queue (1, 3), kart and water lines (0xB, 0x10) and their edit modes (0xE, 0x13, 0x1A, 0x19), buy land (0x39), clear land (0x3A), patrol (0x36), coaster build (0x15)0x524790 sets the press latch 0x8186D8; only coaster mode 0x16 acts (0x446300(1): the edit buttons pick a pylon up)the click: 0x524960, at the hover cell of the release
staff hire (0x6FEA40) and carry (0x6FEA70)the placement (0x46C8E0, 0x46CC40)nothing
coaster drag (0x6FEAA0)0x446300(1)0x446300(0)

The release handler tests the refused-ghost latch 0x816D48 before its mode dispatch (0x524A63): behind the press latch it plays cat_ui 0xAF at the cell (0x524AA7), then its own mode table (0x527694 -> 0x52766C) ends modes 1, 3, 0xB, 0xE, 0x10, 0x13 and 0x36 (SetMode(0, 0) at 0x5266A3), while 0x19, 0x1A, 0x15, 4 and 0x39 to 0x3B stay (0x52765B: the build modes place nothing) and mode 0x16 goes to 0x446050. OpenTPW: the path, queue, kart, water and patrol tools end on the refused ghost; the track edit modes 0xE and 0x13 take the latch from the first-tile hover only (0x527960 -> 0x53AAC0(mode | 0x100) at 0x527B00 while no tile is picked, 0x5370E0 -> 0x539760 answering 1 -> 0x527940(1) at 0x537A30; a picked tile clears it, 0x527C48, and the money latch skips them, 0x539F72), so a refused first tile (TrackEditWriter.RefusesFirstClick) plays 0xAF at the release and ends the tool, while a refused second tile ends it through 0x526ADC with no cue; the bumper modes 0x19 and 0x1A are not implemented; placement, the rectangles and the coaster build stay. A tool has two clicks (a start and an end) because each release is one click: the path, queue, kart and water lines, both land rectangles and the patrol area store their first corner at one release and finish at the next. There is no drag-to-lay anywhere, and the park view has no double-click message (the pair of presses and releases is two clicks).

A release goes to the window that took its press (0x658B7F): pressed on the park and let go over a window, the click is the park's, at the cell under the pointer; pressed on a window and let go over the park, the park sees nothing. OpenTPW: ParkHud.DispatchParkPointer (ReleaseOwners for hand-fed frames, the pointer router for ordered events), Level.WorldClicksOnRelease, ParkHud.UpdateCellTool, UpdatePatrolTool, UpdateBuyLandTool, UpdateAreaClearTool, UpdateCoasterTool; the idle press is the object, queue and path entry of DispatchParkPointer and TrySelectWorldVisitor. The path tool is entered by the press (Level.BeginPathTool, no start); its first click is the release (Level.ClickEnteredPathTool), at the cell under the pointer there. A press on a queue cell chooses that ride's queue edit and the release starts it (pendingQueueEdit, [EXT:queue-click-at-back-cell] still qualifies the whole gesture). A release the platform made up (a browser blur or visibility change: UiInput.LeftReleaseLost) ends the press with no click, the latch and the press's choices ending with it; so does a release an overlay takes (ParkHud.AbandonLeftGesture). A tool armed between a press and its release takes that release as the original does (its handler needs no press; only the press latch, and so the cue, is missing); the one exception is [EXT:online-coop-commands]: a tool the host's answer starts for a guest in between (CompleteMove, CompleteQueueEdit, Level.HostToolStarts) takes none. A press made in the ride view or while walking is not the park's, so its release after leaving is nobody's click, and without a routed batch a release acts only when the park took its press (Level.ParkOwnsRelease). The staff tools, the visitor pick and the object pick keep acting on the press; the pool tool ([EXT:pools-tool], no original) keeps its press-drag-release strokes. A refused placement now plays the refusal cue at its release as the line tools do (Level.BuildClickRefused); [EXT:cannot-build-sound] is narrowed to the message text and to the error feedback 0x1D where no 0xAF sounded (a refusal the host sends back; the original's cue is skipped only during a layout replay, 0x785A2C, which OpenTPW has none of; a guest's locally refused ghost plays 0xAF like any other, and a placement still waiting for the host takes no click and so no cue, under [EXT:online-coop-commands]).

The right button. With RMBCancelOn (0x78D911, default on) a right press the park view took is held back from the camera (0x74FC2C cleared, 0x7C2500, the time 0x7C2504, the position 0x7B5344/0x7B9774): the first frame tick (0x1E) finding it older than 200 ms, or a move beyond 8 px on either axis, forwards it to the camera as its drag (0x42A760, 0x48828B); a release before that is a quick click and ends the mode (0x52F200(0, 1) at 0x488434), wherever the pointer is. The press itself changes nothing. OpenTPW: UiInput.RightClicked (UiInputSource.RightClickMilliseconds and RightClickSlop; the ordered router stamps it per event, a blur-generated browser release is no click), taken by ParkHud.parkRightClick for every park tool and the build tool, and ParkCameraMode.ArmRightDrag for the held-back drag; with the option off the drag starts at once and nothing cancels. The windows' own right click (UiScreen.RightCancels, [EXT:ui-modal-right-click-back]) is not the park view's and is unchanged.

Interface buttons. The original's buttons and windows act on the click message (0x10006, posted by the release within 500 ms and 6 px, 0x65F6D1/0x65FA33), so OpenTPW's UiScreen already acts on release; list rows that open on a press (the All Visitors list) keep their traced press. Nothing here changes them.

Not changed: the hover cell is still the ray's cell with no hit off the grid, where the original clamps it to the grid (0x45D560, RIDES-021), so a release beyond the park's edge acts on nothing here and on the border cell there.

Visitor selection in the park view#

A genuine left press on a visible in-park visitor opens the per-visitor window (0x4b79b0) on that visitor in the original's visitor pick states only: Shift alone with no locator panel out, or the visitor locator panel out with no modifier (0x487013; the hover handler 0x486d90 sets cursor mode 7 only then, and in that state it sets no object or cell mode, so objects are not selected either). In every other state a press on a visitor acts like a press on the ground under it. Picking uses the current guest renderer's interpolated DrawX/DrawY terrain position, selected animation frame/hotspot, mirroring, camera axes and UnitsPerPixel. Overlapping rectangles choose the nearest projected depth, then the lowest visitor id; on an original level the chosen visitor must then stand on the cell of the cursor's terrain hit or one of its eight neighbours (0x532bd0, the offset table 0x81ED40), otherwise no visitor is picked. A successful press consumes the existing tool/release latch before automatic path activation; a miss preserves ordinary path input. The roster's existing live selection healing applies when the visitor leaves.

UI-930 qualifies this host rectangle policy: the original tests a circle round the sprite's projected anchor in its sprite pass (0x5890e0: radius squared 0.0002 x (width squared + height squared) in clip units, nearest clip w wins, the first drawn keeps a tie, no alpha test), which the port does not reproduce, and partially near/far-clipped sprites are refused; transparent pixels and terrain/object occlusion are not tested. The original picks in the render pass (the pick block 0x7b05a8 is opened and closed around the draws by 0x46c100/0x46c110 in the frame routine 0x54e2f7, and the thing under the pointer lands in 0x7b05ac; the hover handler 0x486d90 reads its kind and the Shift/Ctrl/Alt state and the click 0x4879d0 opens the visitor window 0x4b79b0 or the employee window 0x4b6080 on it). No GPU parity is claimed. Hidden/removed/outside-park visitors and invalid/nonfinite/behind-camera projections are refused. Overlay/HUD controls, text entry, ImGui capture, build/removal/cell/coaster tools, ride view and its exit frame own their input. Read-only visits may inspect visitors without simulation or finance mutation. The public HUD update samples native capture flags at its existing point; an internal explicit-capture overload runs the same frame body in synthetic tests.

The window's opener plays cat_kids event 129 (GameAudio.PlayVisitorClick, the sound 0x81) when it opens; there is no hover/held/release audio trigger. Original assets, native geometry/occlusion and rendered interactions remain unqualified.

Live-map legend allocation (2026-10-13)#

The satisfaction legend now counts the current eligible visitors directly instead of grouping them into cells, allocating an array, and summing it. The drawn overlay still uses its existing per-cell groups. Both paths share the same visibility, thought and coordinate predicate, and totals are recomputed on every call; no result cache or invalidation policy was added. Map layers, category/role controls, projection, clipping, zoom and pan are unchanged.

MapOverlayAllocationTests drives the real map view and legend label through the CPU UiBatch, with 1,500 synthetic guests on a 32×32 sandbox map and visitor, happiness and satisfaction layers enabled. In the same Release/.NET 10 fixture, with tiered compilation disabled and draw buffers warmed, allocated bytes changed:

MeasurementBeforeAfter
Map draw plus legend492,144 bytes/frame327,656 bytes/frame
Legend alone165,168 bytes/call680 bytes/call

The allocation regression requires less than 2 KiB per legend call, with generous headroom above the measured result. Live tests independently check hidden guests, outside cells, changed thoughts, removal/return and metric toggles. Existing map projection/control tests remain green. These are allocation measurements, not wall-clock or browser/GPU/original-player performance claims; ordinary tiered-JIT runs can report different allocation counts. Per-cell overlay grouping remains an explicitly measured source of allocations for a separate bounded pass.

The independent map allocation review records fresh marker/legend lifecycle coverage and matched managed red/green measurements.

Outcome-cell allocation measurement#

The satisfaction overlay now reuses view-owned coordinate/index and struct-count scratch collections, cleared and rebuilt from current guests on every draw (including clearing while disabled). First observed-cell encounter order, visibility/bounds/thought filtering, checked per-cell counts, colours and existing geometry remain unchanged. Scratch stores no Guest/Level references and uses tuple coordinates, with no width-linearized keys or result cache. The visitor/happiness grouping and all other map layers remain unchanged.

A warmed Release .NET 10 synthetic 1500-visitor/32×32 map draw with tiered compilation disabled allocated 327,656 bytes/frame before and 176,672 after: 150,984 fewer bytes/frame. Satisfaction enabled minus disabled fell from 152,240 to 1,256 bytes/frame, while the old isolated grouping measured 150,984. Actual UiBatch output tests preserve ordered reaction rectangles/colours through live movement, thought/state/bounds changes and off/on/empty redraws. These are managed allocation measurements, not browser timing, GPU results or original overlay parity. Remaining visitor/happiness grouping allocations require a separate measured slice.

Independent scratch tests compare every visitor state/thought and fixed-point edge against the prior grouping, including empty/negative and very large numeric bounds. Reordered and replaced sources, non-observed first encounters, disabled frames and empty redraws preserve fresh counts and order. The returned scratch list is borrowed for the current draw and changes at the next rebuild; its collections retain peak capacity for the view's lifetime, without retaining visitors.

Explicit theme continuation#

Entering a TPW theme with a readable matching application-owned world save now offers Continue saved park, New park, and Back ([EXT:theme-continue], host UI). Continue uses the existing opentpw-{theme}-world.json manual slot, preserving its start kind, Full Simulation/Instant Action mode and easy-layer choice. New opens the existing mode chooser and leaves that file alone until a later explicit manual Save. A theme without a valid matching slot keeps the existing new-game mode flow. There is no profile progression/key gate or native-save writer in this ingress.

[EXT:periodic-autosave] (user-approved 2026-10-18): the automatic entry between Continue saved park and New park reads the newer of two own slots. After Exit To Lobby it is "Continue automatic save" (opentpw-{theme}-automatic-world.json, the exit checkpoint). After a crash or a closed window the park may hold a periodic autosave (opentpw-{theme}-autosave-world.json, written every 5 minutes of play) that is newer than that checkpoint and than the manual save; the entry then reads "Continue autosave" and activates that slot through the same staged resume. An autosave that is not newer than the manual save is not offered (the manual save is the player's latest word), and a damaged one is skipped. The label comes from OpenTpwText.ContinueAutosavePark, translated into all nine languages.

The menu reads the existing own codec's structural metadata; it does not load or hash game assets. Activation re-reads the trusted generated slot and rejects missing/corrupt files or changed theme/start/mode/easy metadata. The existing ResumePark performs complete trusted-asset validation and builds the staged candidate before old-world retirement. Failure shows the existing-style error dialog and preserves the live world and manual slot; it never silently starts an empty park. The ordinary Load picker and native original-reference import remain separate. TPI's layout checkpoint continues to start a new experimental session and is never offered as TPW continuation.

Synthetic tests drive actual Enter/Continue/New/Back dispatch with a tiny own-world file, pass its restored economy and saved clock/guest metadata through the real continuation handler, and exercise the real resume path refusing missing synthetic assets before replacement. Other-theme, deleted/corrupt, changed-mode/easy and TPI refusal controls preserve live references. Original-data/GPU/browser resume and native profile/theme-entry parity remain unqualified; retirement callback exceptions retain the existing staging limitation.

The Load chooser owns its dispatch: Back/Escape or right-click cancellation wins over activation in the same input batch, and combined mouse release plus Enter loads at most once per update. Removed chooser list, Load and Back callbacks cannot load stale entries or remove a fresh screen. Separate valid updates and a retry after a refused loader remain available; selected entry references and metadata are unchanged. These are bounded host chooser rules ([EXT:load-chooser]), not changes to generic screen input or qualified native navigation.

Camcorder walk (C)#

In a Theme Park World terrain park, press plain C (or the camera panel's camcorder button), then click: the click is the camcorder tool's (0x46D0D0, the press slot of its vtable 0x6FEAD0). A ride under the cursor (a placed object whose type's Info.WhichUIType is 0) is boarded as the ride window's button does (0x4E15B0); on the ground the cell must be owned (or an entrance-area walkway) and hold no park fence post, and the walk (camera mode 2, 0x42AE70) begins at the hover point when the cell's type is empty ground, a path, a queue, an entrance or a fixed walkway; a refused cell keeps the tool. C or Escape leaves the walk (or disarms the tool); a right click leaves it too when "right click cancels" is on, on the click message of the release (within 200 ms and 8 px, 0x488A00). Theme Park Inc and the terrain-free sandbox refuse entry.

The walk is the camera update 0x42B1C0 with the camera flags 2 (CamcorderWalk, matched bit for bit to the executable by an x86 oracle run, CamcorderWalkGoldenTests, ORACLE.md X58): the Left key or numpad 9 and the Right key or numpad 7 turn by 0.0012 radians per millisecond of the frame time, the Up key or numpad 1 and the Down key or numpad 3 walk forward and back, the right mouse button held walks forward, and the pointer steers (beyond 0.4 of the half width it turns by twice the excess, below -0.4 of the half height it looks down by the excess, above 0.2 up by 1.2 times the excess); the Home key and numpad 5 put the walker back at the park's entrance. The speed is half the sum of the last velocity and 0.02 times the square root of the park camera's zoom value times the wanted velocity per frame; a frame's move is taken cell edge by cell edge, an edge the walk test (0x4D8750 with mask 2) refuses stops that axis at the cell's edge, and the eye stands 5 units above the ground height (0x452560). The HUD is hidden and the viewfinder and eject button shown (0x4A2AC0), with the static of the ride view on entering and leaving. The cell the walker reaches is tested for a ride's entrance: it takes the walk into that ride, and leaving the ride puts the walker at the centre of the ride's exit cell looking along the exit's link byte (0x42A1D0).

The park camera's target and yaw are untouched by the walk (the original saves and restores them, 0x42AE70); its zoom value is the one number the two share (the Home key sets it to 110).

The keys, pointer and button are read only while the window has the focus and no modal, overlay, text entry or captured input owns them; both Control keys exclude C and the click, and existing Ctrl+C park closing stays separate. Blocked C holds and mouse presses are consumed through release, including current-frame injected keys and a hold spanning new HUD creation (host input ownership, not native input parity). Walking owns park tool and selection clicks and the exit frame. On level disposal the owned camera is released without replacing another world's camera. Not ported: the camcorder's photo and the postcard's preview of it (UI-042).

FreeWalkCameraTests and FreeWalkCameraReviewTests pin the HUD ownership, the tool's cell rules, the exits and the return chain.

Selected shop and sideshow price#

In an editable Theme Park World park, the shop and sideshow windows show their price box (tp.exe 0xc085, 0xa08f) with the window's price; b_minus and b_plus step it by one within 0–500, and a click on the box opens a modal editor that starts with the current mapped instance price. Enter a decimal whole value from 0 through 500 (the price boxes' range, 0x4b0735, and the range the original loader clamps a saved price to) and press the existing OK button or Enter to apply; Escape, right click or the exit button cancels; cancellation takes priority over a simultaneous confirmation. Invalid input remains in the editor with a localized explanation. Typing and cancellation never change the price.

Apply revalidates the selected object, its live Level economy-instance mapping, category, and the exact economy/record captured on opening. Deleted, remapped, replaced or read-only targets are refused. Editing changes Price at once and the window's own price with it, so the window's apply on close keeps it: no immediate payment, open/close command, quality/cost-of-goods or prize-chance change. Existing visitor-payment and economy save/restore paths consume and retain that price. Two copies of the same catalogue item remain independent. Captured input, text entry, overlays, building/removal tools and ride/non-orbit cameras block entry; a retained hidden/retracted or retired dialog action cannot apply. Theme Park Inc/no-economy inspection and rides have no price action. Ride tickets and park entrance fees are separate from this shop/sideshow API.

[EXT:shop-price-editor] qualifies the typed editor behind the price box and at most ten-digit invariant decimal validation. A bounded larger text buffer preserves oversized pasted numbers for rejection instead of silently applying a truncated price. The original's box has no typed entry; the window's other settings are its own controls (below). No new price formula, balance policy or save schema is introduced.

Independent CPU controls drive mouse entry and Apply for the second of two identical catalogue owners, then verify its actual visitor payment, instance statistics and ledger; an unaffordable visit leaves the ledger unchanged. Separate controls retain staged input across mouse/keyboard/text capture and retry after capture ends, and check all six localized error bindings with invariant decimal validation under a French process culture. These synthetic controls do not qualify original fonts, GPU drawing or native price controls.

All Attractions shows the original per-category columns (tp.exe tables 0x750ab8/0x750ba0/0x750ca0): the mapped ride users and shop/sideshow customers last month, profit last month and total profit come from the exact economy instance, the bars (excitement, state of repair, remaining life, satisfaction) use the object window's values, and features show the number owned of their type. The HUD takes each row's cells when the window opens, the category or order changes and every 2 s (the original's timer 0x80083), keyed by attraction ID; cell reads do not revisit the object list or hold mutable economy records. Counts use invariant digits (centred), profits the existing localized money formatter (right-aligned). Read-only visits, TPI, missing economies and mismatched bindings retain the unavailable fallback. This adds no payment, monthly rollover, RNG, save fields or native accounting/UI equivalence claim.

The existing money formatter computes signed integer magnitudes through exact decimal conversion so accepted signed 64-bit profit values, including the minimum, cannot overflow while being displayed. Currency labels, invariant grouping and accounting values are unchanged.

Offline focus-loss pause#

Visible offline TPW parks pause after an observed focus loss and wait for an explicit resume. Offscreen runs, read-only visits and logged-in sessions are excluded. User speed and named modal pauses keep their own state. This is a host adaptation of the pause that tp.exe's deactivation takes (0x46b74c); see offline focus-loss pause for boundaries and tests.

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