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.
| Source | Contents | Use |
|---|---|---|
ui.wad | 278 .MD2 UI models; 459 textures/*.wct and 462 stexture/*.wct (low-detail copies, plus chatpan2, mb_gobuy[d]); qickload.txt lists | Buttons, panels, windows, HUD |
lobby.wad | lobby.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 textures | 3D front end |
ui/cursors | C???.tga 4-frame strips + Windows .ani/.cur | not drawn yet (system cursor) |
Init/<400..1024> | per-resolution splash/legal/welcome TGAs per language | not used |
postcard/, 2dmap/ | postcard art, map sprites | the 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 fonts | all text |
level rides/<ride>.wad | P<name>.MD2 preview model (Rides.sam Info.PreviewAnimType "m", PreviewAnimNum 1) | build-menu icons |
Rides.sam | Info.WhichUIType 0 rides, 1 shops, 2 sideshows, 3 features | build 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)#
Full-screen models (
f_chat,w_map,f_screen) span exactly x 0..2048, y 0..−1536: UI models are authored in a 2048×1536 virtual screen with y up (negative downwards).f_viewfinderis centred at (1024, 768).Models are either placed (root translation = on-screen centre: e.g.
mainpanel(238, 1245.7) bottom-left,date(284.4, 1084.1) on it,gauge,panelarms (668.4, 1281.6),islandlobby(254.3, 1318.6),f_tagl/m/rmessage tags,cashtrend,b_ejectbottom-right) or code-positioned (root at the origin: generic buttons, windows, list frames). Several buttons share one placed position (b_buy,b_info,b_map,b_resrch,b_cameraall at (229.3, 1181.2)), so the code moves them; their final places are unknown.Child nodes are alternative state frames, not parts: buttons have six meshes named e.g.
b_buy, disable, hilite, heldown, hidown, down, each child translated about one button width along x from its parent. The native selected mesh path composes its matrix through every ancestor, transforms that mesh's two stored bound endpoints, orders X/Y, then fits the result to the control. A common XY translation of vertices and endpoints cancels during this fitting; composition alone does not make the states march off screen. Header bounds describe exporter geometry and are not the selected control's fit bounds.UiModelFrame.FitBoundskeeps those selected-mesh endpoints separate from the tight corner AABB.DrawFramefits by this box andUiModelImage.CoversPointinverts the same mapping. The geometricMinX/MinY/MaxX/MaxY, size, center, authored layout queries and direct-originAddModelFramesubmission stay as before. Missing or invalid fit metadata falls back to valid geometric bounds; when neither is usable, drawing and shape picking produce nothing. This is host robustness, not an inferred native malformed-input rule.Ancestors (UI-003, narrowed): each frame's geometry and stored endpoints use the node's world matrix, its local matrix times its parent's world matrix with the translations kept, as the instance traverser
0x57a530accumulates them (the root starts as its local matrix times the caller's; the identity set at0x57a55bis overwritten). Inui.wad168 of the 278 models chain their state frames (depth up to 5) and no child node carries a rotation or scale, only translations (UiHierarchyCorpusTests); those translations cancel in the selected-mesh fit, so every state frame still draws over the root mesh's place (ButtonStateFramesAreDrawnOverTheRootMesh) and only the frames' geometric bounds moved. The window angle (+0xE2) isDrawFrame's turn (0x476C50). The state of a control is the k-th node down the first-child chain from the root (0x476E80: k = control+0xC++0xA; the constructor0x476A90hides every chain node, the selection shows one) and a state past the chain selects nothing:UiModel.TryGetState, which agrees with the old breadth-first frame list for all 278 models (none has a node with two children,UiStateChainTests);GetFramestays the k-th drawable frame (the first for an index past them). The base constructor0x6597B0starts both terms at 0 (0x659814,0x65981D), the button class writes the state into its model control's+0xC:0x668A58,0x668C55and0x668D06send bit0x1with the0x668820state word to the model control at[button+0x98](whose slot 3,0x476F10, forwards it to0x476E80at0x476F5D), while the base class's general frame setter0x65D3A3also sends bit0x1with the caller's own word from 32 call sites. The only site that sends bit0x80000as a control message,0x66160C, is referenced by nothing, so the base stays 0 and a button state is the chain index (UI-003).Draw order (UI-004, narrowed): a control model's vertices all end at depth 0 (
0x476CBF), so the z of the HUD models' node translations decides nothing andUiModelno longer sorts by it: one part per material in material order, triangles in file order, the triangles that are not strictly clockwise dropped from the draw (0x581320,UiModel.IsClockwise,UiModelPart.DrawIndices; the file's triangles stay for picking); a translucent texture's surviving triangles take the tie permutation of the original's triangle sort (OriginalDepthSort, ORACLE.md X70). The order between items is the call order; the mechanism behind the original's is read: showing a control adds its instance at the head of the category list, after the leading type-1 run, (0x476BF0->0x45BD30->0x576410->0x576270, newest first), the batcher walks that list last to first and so draws controls on pages of their own in show order (ORACLE.md X79,ui_scene_oracle.py); OpenTPW's fixed screen order equals it only for controls shown once in listed order (hide and re-show moves a control to the newest end; the per-window show sequences are unread). Only where items share a cache page or a texture does the original differ (list order inside a page); which textures share a page is the narrowed residual of UI-004 (the page placement0x58F190is shared with the world's textures). See the selected-mesh fitting scope.Frame order and textures: frames 0–2 (normal, disabled, highlight) use the plain art, 3–5 (pressed states) the
…dart (b_door: open door normally, closed door when down).panel.MD2stores four arm variants (pan_money, pan_info, pan_buy, pan_staff) the same way.Missing state art: the disable frames (1) of
b_callmech,b_callhandyandb_upgradenameb_callmechg,b_callhandygandb_upgradeg, andb_loantog's pressed frames (3–5) name art too, thatui.waddoes not ship (pinned byOnlyTheCallUpgradeAndLoanToggleStateFramesNameMissingTextures). Drawn as is they come out as untextured white squares;UiButtondraws the normal frame instead, greyed (160, 160, 160) when disabled ([EXT:missing-state-texture]). The original's texture binder0x46EAD0(called by the UI model loaders0x488D20,0x488EE0,0x489060) logs "Could not load texture '%s'" and binds entry 0 of its texture table instead; which texture that entry holds at run time is not known, so the original's look of these frames is not known either.Texture V runs bottom-up as in the 3D shaders: button UVs span v 0.42..1 while the art occupies the top 58% of the texture. Pure pink (255, 0, 255) fills every unused texel and is the transparent key.
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.
One scale helper (
UiCanvas): the 2048×1536 canvas scales uniformly to fit the framebuffer times the user UI scale; each element keeps its authored distance to an anchor edge, so corner HUD parts stay in corners on wide screens (4:3 reproduces the authored layout exactly). BF4 fonts come in SMALL, MED and BIG versions; the tier is chosen by scale (< 0.36, < 0.6, larger) and text is drawn at an integer scale (2 on HiDPI and from 2560×1440). Both are inferences from the shipped files. Above 1× each glyph is magnified with Catmull-Rom and its edge tightened with a contrast curve instead of doubling pixels, which turns the fonts' anti-aliased edges into staircases (FontSmoothing,[EXT:hidpi-glyphs], a design decision: the original only drew its fonts at 1×); at 1× the original coverage is drawn unchanged.Rendering:
UiBatch(CPU triangle list) →UiRenderer(one alpha-blended pipeline; images linear filtered with the pink key bled to neighbour colours, font atlases point sampled at one texel per pixel after smoothing). Model frames are stretched into element rects.Input: hover focuses, press+release on the same element activates (buttons react on release), wheel/arrows change option rows, Up/Down move focus, Enter activates, Escape goes back/opens the pause menu, P pauses. The HUD handles input before
Level.Updateand setsLevel.UiCapturesMouse, so clicks on the HUD never build; park clicks use the same ground pick asLevelplacement to select the ride.Popup help shows the original UIHELPTEXT line of the hovered element (top-centre box: placement/background are OpenTPW choices).
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.
3D lobby: terrain/sea + four islands and gates at their ISLANDCAMERAPOSITION, turned by the ISLAND angle; the camera orbits the selected island at SPINRADIUS/VERTICALOFFSET and glides between islands; the backdrop is painted with the cloud layer's eased colour as a stand-in (the original clears to the fog colour 0x44DDFF and tints only its clouds), and rain and lightning come from the weather renderer. Flying meshes (
LobbyFlyingMeshes, tp.exe0x5DA200): every FLYINGMESH line spawns its instances over the first frames (one more per draw until a draw ends in 1 of 8), each flies at its speed toward a random point of its box (centred 50 above the island's camera target), turning 0.1 × step of the way per frame and picking a new point within √500 of it, and plays its<mesh>m1wing cycle in a loop; all draws come from the lobby generator. Island clips (tp.exe0x5E11D0): every island model whose clip has under 1 ms left plays itsM1orM2at random (Crand() & 1, a local stand-in stream), once. Signs (tp.exe0x5E1A44,0x409B10,LobbySigns): the four models withsign1/sign2faces (Jun_isle,Hal_isle,Fan_gate,Spa_gate) show their theme gate's default lines (the gate's OBJECT_NAMES row, not a saved park name) drawn with their own<model>.sgn; they are composed one per frame from the lobby's second frame on, the selected island's first and none during the zoom into a park, show a plain board until then (or when one cannot be drawn), and are kept for the session, so a later lobby binds them at once. Enter sequence (tp.exe0x5e0490states 1 and 2,LobbyCameraMode.BeginEnter): choosing a start in an island's menu hides the lobby UI, turns the camera to the island's angle + π at 0.05 × step a frame the short way round, plays the gate'sM1clip, then zooms in (radius × (1 − 0.07 × step), height × (1 − 0.6 × step)) under a black fade that eases an eighth of the way a frame to the closed share of SPINRADIUS − 8; below radius 8 the queued park starts (0x5e1e50). Not rendered: the cloud layer (coloured from SKYCOLOUR), the fog and the key-award animation; the early-leaveM2gate close plays only when the enter is abandoned (the park it was to start was refused: the orbit resumes, the fade eases out and the menu returns); the browser's level copy starts when the sequence does and the park waits for both.Menu: the
islandlobbypanel +f_lobbutbgand the globe (b_worldview, 346; opens the online world), enter (b_entpark, 345), previous and next (b_lobleft,b_lobright, 343, 344) buttons at the rectangles of the original lobby table (tp.exe0x757f60, generated intoUI/Original/OriginalLayoutTables.csbytools/ppc-analysis/lanes/ui/tpw_exe_layouts.py), and the island name (THEMENAMES, large yellow) in the field (477,1282)-(1571,1457) of the companion table0x757d88. The original lobby has no logo, no title and no right-hand menu column (UI-014 retired): Escape opens its menu, a frameless list of cyan text lines (Go Online, Resume Game, Options, Quit Game as in the original's lobby menu, plus Load Park,[EXT:lobby-load]; there are no player profiles, so no Select New Player). Choosing Go Online, Load or Options closes the menu before opening its screen.Enter park → Game Mode window (the original's name dialog
0x753f50: 239; Instant Action 240 / Full Simulation 241, tooltips 358/359): the two toggles latch in one group with none chosen at first,e_joyshows while Instant Action is chosen, and the tick starts a new park on the original level of the island, in Instant Action only when that toggle is chosen (0x4a6d00). Instant Action adds theEasy_balance layer and the shippedEasymode.TPWIseed where the level has them and gates tickets, challenges, loans, the research lab and upgrades; Full Simulation starts with the standard balance and no seed (traced in the Mac binary, see reverse/FINDINGS.md and docs/ECONOMY.md, "Game modes").--load-original-leveland the Load Park entry keep the read-only reference start (shipped save, Full Simulation rules) whatever mode was chosen before ([EXT:no-player-profiles]; UI-041 is retired, user-approved 2026-10-18). The original fixes the mode per player and resumes each theme's autosave; OpenTPW has no player profiles, so every entry starts a new park ([EXT:no-player-profiles], a design decision; the original's GameType is derived from flag bits 0x2000000/0x1000000 of 0x7a1a8c, tp.exe0x550ca0). The enter-park sound (cat_globallobbysfx4) plays when the park starts, and the screen-space particle effect 0x62 starts over the key panel with it (LobbyEnterEffect, docs/PARTICLES.md), except in Instant Action (game type 2), which skips both.The lobby's key panel (tp.exe
0x4B9340,0x4B90F0; layout Lobby0x757F60, the contract) shows the saved OpenTPW Full Simulation key count in the original top-rightgkey/count slots when positive, and above them the key frame with the selected island's cost digit (s_key,s_X1): gold while the keys meet the island'sglobal.samKeys.CostToEnter(and the screen-space effect0x61runs), grey below it. The count is sampled after the previous park is saved and detached; missing or invalid progress hides the panel without creating a profile. The panel is refreshed when the lobby is built and on each island change (with the stored count, as0x4B90F0does); the original's other refresh, the timer of the lobby advisor's key advice (response 393), is not reached: the line belongs to a new player's first key, which OpenTPW publishes only when the lobby is retired for the park (ADVISOR-025).The lobby has the original's advisor (
FrontEnd/LobbyAdvisor.cs,docs/reverse/LOBBY-ADVISOR.md): the global advisor shows bottom right over every lobby screen while a line plays, lit by the screen's ambient, and says the idle line (response 394 or 395) after 90 s of silence. It is off with the advisor option, and with--no-advisor.Load Park (202): own saved parks, original Easymode parks (read-only) and the OpenTPW sandbox save. The shared lobby/pause chooser is tp.exe's load dialog (table
0x7523f0, built by0x49efb0):window2, the title (202), thef_loadlist whose rows have the buy list's slot-7 pitch, so twelve show (0x49f0b0,0x663718), its scroller and arrows only while the rows do not fit (0x664495) andb_exit; the rows show the park's name and, right-aligned, the save file's local date and time (0x49ec80, UITEXT0x1c0; UI-013). The wheel scrolls; Left/Right selects and keeps that row visible. A first click selects, Enter, a second click or the localized Load Park button activates that exact entry; Back closes without loading. Reopening starts with fresh entries and selection. The Load Park text button, at the place of the name field the original hides when loading, is OpenTPW's ([EXT:load-chooser]). Because that button acts on the selection, the list does not select on hover or load on one click as the original's does (attribute 0x81:0x6656a0,0x6655a2); that flow is[EXT:load-list-select-then-load], user-approved on 2026-10-17 (APPROX:UI-108is retired).LoadChooserScrollTestsandLoadDialogTableTestscover actual chooser and HUD pause input, beyond-twelve selection, 0/1/8/9/13/17 boundaries, entry metadata, cancellation, fresh state and the table layout. Quit asks with the original confirmation (9).Not implemented: player profiles (Create/Select New Player), online world, golden tickets/keys, credits. (The start-up movies now play before the lobby: docs/TGQ-MOVIES.md.)
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) | Control | Wired to |
|---|---|---|
3D card rendering (f_optpanel, 120008) | b_on2, disabled | fixed: 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, disabled | fixed ([EXT:options-fixed-rows]) |
Screen resolution (f_optpanel3, 120021) | slider over IDisplaySettings.GetResolutions | pending display size; OK applies it with the keep-or-revert flow |
| Graphics quality (120022) | slider over IGraphicsSettings.Presets | Low/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 toggle | GameOptions volume and *On; GameOptions.*Gain is 0 while off |
Advisor, Tutorial, Popup help, Confirmations, RMB cancel (f_optpanel, 120011-120015) | b_on toggle | GameOptions bools |
| Rotation (Smooth / 90 degs), Scroll (Pushscroll / Right button) (120016, 120017) | b_on2 cycle button | GameOptions.Rotation, Scroll |
OK (b_okay), Cancel (b_exit) on !f_plain (120031) | buttons | OK 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.
| Builder | Window or control | Colour (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) |
0x4B8CA0 | key panel create (site 0x4B8E62) | (252, 232, 7) |
0x48B220, 0x48B2A0 | pause menu lines (0x492F60 makes them: grey (128, 128, 128) default, then a hover ramp from 0x48B255) | (0, 175, 190), the ramp from the grey |
0x4861E0 | object window status text (table 0x74FB50) | the table's colour per status |
0x47F020 | message box text | the descriptor's bytes +4..+6 |
0x4A43B0, 0x4A4490 | options labels and slider labels | (0, 0, 0) |
0x4A52A0 | park 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 buttons | labels (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 |
0x49AC60 | finance 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 |
0x498D80 | ticket price window 0x4F3AE, 0x4F3B0 (font slot 6) | (0, 0, 0) |
0x4A6E40 | window with controls 0x70A (255, 255, 255), 0x70D, 0x70E (0, 0, 0) | as listed |
0x496F90, 0x4AD720, 0x4AFAA0, 0x4B0ED0 | status banners ("chev" texts, font slot 8) of the object windows | (0, 0, 0) |
0x4B75A0, 0x4BB800 | 0x3734; 0x5B82, 0x5B83 (UITEXT 0x10C) | (0, 0, 0) |
0x4AA480 | research window: the five fluid cells' texts (font slot [0x754BC8]) | (224, 86, 86) |
0x49FB30 | loans window: four texts, 0x12C4C6, 0x12C4C7, 0x12C4C9 and the one at 0x49FF69 | (255, 0, 0) |
0x4B2750 | staff training window: five rows 0x2E7, 0x2EA, 0x2EB, 0x2EC, 0x2ED | (0, 0, 0) (the zero register); 0x2DF, 0x2E0, 0x2E1, 0x2E6 (255, 0, 0) |
0x4B0640, 0x4B1B50, 0x4AE980 | procedures 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) |
0x4A1D70 | HUD 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) |
0x4A0AB0 | HUD balance text (refresh), control 47 | table 0x752E30, six entries picked by the balance (ParkHud.CashColor) |
0x4A6000, 0x4A61D0, 0x4A6580 | postcard 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) |
0x49BC80 | hire 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) |
0x4ACB70 | buy 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 it | as listed |
0x4A0710 | loan list row control, message 0x403 (site 0x4A0751): (255, 255, 255), and (140, 0, 60) for a negative argument | as listed |
0x4C23F0 | control 0x2241 (site 0x4C255C, font slot 6) | (0, 0, 0) |
0x4955E0, 0x4BE730, 0x4BE7C0 | roster cell and the chat name cells (pushed from 0x4BF748, 0x4BF8B8): the colour arrives in the caller's arguments | from the callers |
0x4BA980 | the two direct sites 0x4BAAFB, 0x4BABC3 (controls 0xE, 0xF, font slot 6) | (255, 255, 255) |
| the other builders | 0x480DD0, 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) |
0x5F0B40 | site 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#
Placed originals at their authored places (anchored bottom-left):
mainpanel,gauge(tooltip 477 "Happiness of the park visitors"),datedisplay with the date (478), the bank balance (465; the bare absolute balance as the original'sswprintf "%d"shows it, without grouping or prefix, in a colour that steps from red to white with the balance (table0x752e30);i_dollarcarries the sign), thef_tagl/m/rmessage tube with its slide-out panel (UI-025,Hud/ParkHud.MessageTube.cs: pending messages stack as icons in a red tube left of the panel, a left click opens one in the panel drawn frommessagel/m/rat the rectangles of table0x7501a0, a right click deletes it (500 ms later, as every removal; a right click on the tube's body removes all rows 100 ms apart); a row stays in the tube when read and lives for its tag's lifetime (content/data/message-tags.toml, round 11 N); the panel'smb_erasebutton and up to two action buttons with themb_locate,mb_callmech,mb_resrch,mb_buy,mb_acceptormb_declineart of their action's kind, taken from the tag's actions (the offers'mb_acceptandmb_decline; buy, hire, loans, research, park information, staff costs and entry price windows; the call-mechanic action 23 is in no tag record); OpenTPW's own feedback lines are a separate status line above the help box), and the object window (below).Panel buttons at the original rectangles of the Mac main HUD table (
data:0x4ab38, controls 38-43), staggered along the panel's curve:b_buy(469),b_info(470),b_money(471),b_resrch(472),b_map(473) andb_camera(474). Buy, Info, Finance, Research and Map open their windows; the camera button (474) slides out the panel of table0x751720with the camcorder (b_1person, 479) and postcard (b_postcard, 480) buttons (UI-042; the original has no third view-cycle button): the arm drawer0x4a14f0moves it in ten 20 ms steps from behind the HUD with the drawer sounds (cat_ui0x1C, and 0xC2 when it is back in), its buttons show once they pass the arm's left edge (0x4a1440), and it posts advisor help 0x131 (305) while it is out (0x498bb0/0x498bd0). Buy is disabled in a read-only visit; the others stay available (their windows are read-only views there).The date text is drawn in black inside the date region (182,1061)-(383,1103) (table control 32), in the date font slot 3 (
DATETINY/SMALL/MEDby tier; only official Patch 2 and the Mac version ship these, the 1999 data falls back to the Small font, which is the same file asDATESMALL). The bank balance is not on the panel: the table puts it at the top left of the screen (control 47, (258,60)-(720,260), white cash font slot 1, drawn with the shippedCASHSMALL/MED/BIGfonts; the original then resizes the box to the width of "999999999" and the text height + 16, centred oni_dollar,0x4a2082, which the HUD does every frame). Beside it the same table places thei_dollaricon (50), the change text (48, yellow, right-aligned under the balance) with thecashtrendmodel (rootgreen_up, 49), always shown, whose frame is 1 (red, down) when the last closed month spent more than it took (0x4a0e30); the yellow text under the balance (control 48) is the cost of the build action under way (held blueprint price, path or queue line so far, coaster segment), hidden outside the build tools (UI-047, retired in round 11: the coaster panel's edit modes show it only while bit 0 of0x79c658is set, which only the height press sets,0x441a5d,0x447990), and at the top right the golden ticket (gtick, 53) and key (gkey, 52) icons with their counts (55, 54). The ticket count is the player's earned tickets less the spent count while the park is part of its player's progress, the park's own unspent golden tickets in the sandbox, a co-op session and a visit; Instant Action reads the account too (UI-051 retired; the sandbox and co-op fallback is[EXT:sandbox],[EXT:online-coop-snapshot-join]); each counter shows only while its count is not zero, as the original's"%d x"(0x4a0fb0), and the keys are the player's: the attached player ticket ledger's earned tickets / 3 plus its extra keys (0x5af680), the park's own earned tickets / 3 while no ledger is attached, and none in Instant Action, where the original skips the key row.The Mac build has 55 such layout tables, including Buy (
data:0x4cd94), Financial Information (data:0x49ee4), Available/Outstanding Loans (data:0x4a79c), the money arm (data:0x496c4), Research (data:0x4c652), the staff list (data:0x4a1e0), the map screen (data:0x5265e), coaster tools and ride windows. The named screens were identified by matching table drawing keys toui.wadmodel root names.Financial Information (
ParkHud.FinanceWindow.cs) placesw_park,f_graph, eightb_ltoggleseries buttons, threeb_stoggleperiod buttons and the right-side controls at their Mac table rectangles. The series useParkLedgerclosed months plus its current month: bank balance, park value, money in, gate/shop/sideshow takings, money out and staff costs. Money in includes loan proceeds, and money out includes repayments. Bank balance and park value can show together; that pair is exclusive with the six cash-flow series, as in the original control handler. The 1/3/12-year controls pick the sample count (12, 36 or 144). The graph follows the original's drawer (0x47fe90): the traced series colours/order, a scale over the samples 0 to the period inclusive that includes zero, the initial bank-balance selection, n = min(period samples, months held) + 1 points placed from the left over steps of width / samples (a 0 before the first month while the ring holds no older one), whole-pixel columns and rows, a box round each segment end in the 1/3-year views and the last value at the line's end. Its shared green-on-black backdrop uses the traced plot, accumulated grid coordinates, span counts and zero axis, including with empty histories or no selected series. The host pixel adapter ([EXT:graph-pixel-adapter]) and the raster composition remain qualified under UI-060; these changes do not establish pixel equivalence. The Loans button opens the separate bank window when loans are available; the entry and staff-cost detail buttons open their management screens (ParkHud.Management.cs), disabled while no park economy runs. The training-budget window's minus and plus buttons move a budget by the original spinner's step of 25 within 0..10000, and each row's gauge shows the role's employees' mean grade as a share of grade 5, one above the best grade (0..4), so grade-4 staff fill 80% (tp.exe0x4b2797,0x4c9c00, scaled at0x4b28eb); the entry-price window is a host layout ([EXT:entry-price-window]).The Loans window (
ParkHud.LoansWindow.cs) is tp.exe's table0x7525a0(window4/f_loans), six columns, Available/Outstanding tabs (the tab chosen last stays for the session,0x4a06b0), a scroll control and the four summary cells. Offers and outstanding accounts come directly fromParkEconomy. Borrowing and repayment use its existing methods, only where the game mode permits loans. Lender names come from the selected language'sLOANNAMES.str; a missing entry uses a numbered fallback, which the shipped data never reaches (LOANNAMES.strhas 18 entries and everyLendernameis 0..17). The list rows have the buy list's pitch (the same slot-7 row factory,0x4a02b0;EXT:list-row-pitch), so seven whole rows fit (0x663718); every opening sorts by lender name (a new list sorts by column 0 ascending,0x662679; text bywcscmp, equal keys in slot order,0x66403b), the top row is chosen, and the scroller with its arrows shows only while the rows do not fit (0x664495). The summary is the original's (0x49fb30), filled when the window opens, top to bottom: the last closed month's money in, the monthly repayments of the loans now outstanding, its money out less those repayments, and money in less money out.Research (
ParkHud.ResearchWindow.cs) placesw_res, fiveres_panelrows and effort sliders in the table's visual order: rides, upgrades, shops, sideshows, features. Item names, progress and effort come fromParkResearch; changing effort callsParkEconomy.SetResearchEffortonly in modes that support the research panel; Instant Action shows its original unavailable message. The main workload knob is the original's slider (0x4a96b0,0x4aac80): it sets a workload of 70 + 30 × value / limit, the limit growing with the researchers' summed ability (only part of the track is reachable with few researchers). The screen retains raw 0..1023 independently of rounded workload; a qualified completed track click moves one raw unit using the saved press point. The ball wins hit tests over the narrower track, a grab moves from its immutable press-time rectangle, and release normalizes from raw value. Only opening or a changed researcher-ability sum reprojects workload; a staffing refresh during a grab changes the current rectangle without replacing its press baseline. The existing keyboard extension moves workload one percentage point within 70..100 and explicitly synchronizes the raw knob. The existing cameo selects trunc(2 × (workload - 70) / 7), states 0..8. The staffing-capacity cylinder (effortguage.wct) fills upward at limit / 1024, cropping the right/empty half above the split and left/filled half below it. The narrow captured-click hook retains OpenTPW's existingUiInput.NotClickqualification, frame-hitch allowance and 500 ms boundary; this change does not replace global double-click/input policy. A new knob is built with raw 0 and its ball at the layout's authored top (399); the first SetPos of raw 0 is unchanged and returns before touching the ball (0x66b201), so the ball stays at 399 until a non-zero projection, a click or a release places it (0x66b088; no message 0x15 reaches the slider after its base constructor,0x65bffd). The five effort sliders are the original's generic slider with SetRange(0,100) (0x4aa6bd): a drag position is truncated to its value, not rounded (0x66afc9). Each row's fluid (res_fluid, 64 frames) animates as the original's (ResearchFluid,0x4a95b0/0x4a9fc0): a category with a project and a non-zero rate (its effort share times the staffing percentage,0x503980) fills from empty and then loops its bubbling frames at (rate + 20) / 100 × 2 frames a tick, and drains back to the empty frame when the rate falls to zero; there is no progress fill. Over each fluid the row draws its tube (res_pipe, rootpipe, orange end caps, the child of the category control in the table at file offset0x35299c). The fluids step at the 60 Hz reference rate ([EXT:frame-driven-at-60hz];APPROX:UI-066is retired). The item-navigation arrows move the category's current target throughParkResearch.MoveCurrentwhen more than one item is selectable (tested inManagementUiTests).Buy window (
ParkHud.BuyWindow.cs, Mac buy tabledata:0x4cd94): the Buy button opens the original window as a modal screen over the park (it dims the park like other windows and does not pause the game). Every element sits at its authored rectangle (Anchor.Center):w_big(rootwindow4) with two!framepanels (the turning preview, and the stats frame), thef_buyitemlist frame, title text (UITEXT 119-122 per category), the item name above the preview, the four category buttonsb_sride/b_sshow/b_sshop/b_sfeature(help 140-143; the chosen one is drawn in its down frame),b_up/b_downand theb_scrollerball on the!slidertrack (shown only while the list has more items than rows, tp.exe0x664495; the ball's top runs from the track's top to a ball above its bottom in whole units,0x66b088), andb_exit(help 2, also Escape and right click).b_allstaff(help 153) opens the staff window. The list has the three table columns: name, price (the economy catalogue price) and a third column drawingi_boxtick: frame 1 when the park owns one, else frame 2 for a recently researched item, else frame 0. Auxiliary tool rows always use frame 0. TPW retains the last three paid completion events in each of fourInfo.WhichUITyperings; upgrades and add-ons consume slots, including repeated IDs. Free initial items and free levels do not. Buying masks a star without clearing its history, so selling the last copy can reveal it again. The rings survive host and native TPW saves, including their scratch words and unused slots. Theme Park Inc's corresponding event policy is unestablished and is not enabled. The numeric cell selects frame n directly; the old text-alignment lead did not control icon state. The existing 51-unit model sizing is unchanged, and separate UI model transform approximations remain. UI-050 is retired for this TPW contract. Moving the pointer over a row selects it (the list has attribute 0x91, which includes 0x80:0x6656a0->0x66552e->0x66525c, the same selection as a click or an arrow key); the stats frame follows at once and the preview, footprint and name after the selection has rested for 500 ms (0x4ac42e,0x1f4), and the selection stays on the last hovered row when the pointer leaves the list (0x665c35handles no leave message). A left click selects the row and posts the list's message 0x400, which buys (0x6655a2,0x4ac4f9); a right click is ignored by the window and backs out. The loans list (attribute 0x91) selects on hover the same way; the Load Park list (attribute 0x81, which includes 0x80) selects on hover and loads on a single click in the original, but keeps its click-to-select behaviour here ([EXT:load-list-select-then-load]). Click a row to select it and show its preview (the originalP<name>.MD2or the main model, drawn depth tested with the original's matrix, camera, face test and animation 5, see "The buy window's preview" below, UI-026), name and stats; click the selected row again, press Enter or double-click it to buy: the window closes and placement starts (Level.PlaceObjectchecks the footprint and charges throughParkEconomy.TryBuildexactly once). The table has no OK button, so that is OpenTPW's choice. Unresearched items are greyed and refused with the "not available" message. The wheel scrolls the list anywhere over the window; Up/Down move the selection. The Name and Price header buttons sort (the original's header sort0x665a44; the sort is kept for the session,0x4ac9dd). Control 512 beside the title shows the cash balance as UITEXT0x1ca"Cash $ N" (0x1cbwith the magnitude when negative, tp.exe0x4acdae), like the hire window's control 9366. The stats frame rows are the table's five label/value rows: rides show Number owned (UITEXT 125), Excitement (126), Safe capacity (127), Reliability (128) and Working life (129), whose gauge keeps the 100 of 1024 it gets when the window is built (tp.exe0x4abae0); shops 130, sideshows 131/132 and features 133 show fewer rows. Items are the buildable objects of the theme byInfo.WhichUIType, ordered by name as the original list inserts its rows (ordinal,0x10178768). Items without aP<name>.MD2preview model (shops, among others) show their main model, as the original's preview does (0x10059F00). Tools, fixed items and standalone upgrades are excluded (ObjectCatalog.Buildable); items absent from the economy catalogue stay unavailable in original levels.Per-visitor window (
ParkHud.VisitorInfoWindow.cs, table0x7575e0, opener0x4b79b0, handler0x4b7720, refresh0x4b72a0): the window1 frame with the title "Visitor #n" (UITEXT 455; 456 "New Visitor" without a number), the portrait frame0x3722(current ordinary kid/costume body output, qualified by UI-910), the stats frame0x3723with the labels UITEXT 70 to 77 and the values cash (+0x1a0), time in park (the list's hours), rides ridden (+0x1c4), purchases made (+0x1c8), sideshows played (+0x1cc), sideshows won (+0x1d0), the happiness bar (happygrad.wct, inset 10) and the current status (KIDSTATES.strby the state word+0x220; the "Using: " record takes the attraction's name), the thought frame0x3734with the thought text (THOUGHTS.str) and the icon0x3735(the thought less one), the cycle arrows (b_arupprevious,b_ardownnext; help 98, 97),b_locate(the visitor locator on the visitor, help 99) andb_kids(the All Visitors window on the visitor, help 100). It opens from a left click on a row of the All Visitors list (message0x400,0x49351e) and from a press on a visitor in the park (cursor mode 7,0x4879d0), closing the window that is open; it plays the sound0x81and posts help0x12eas it opens, refreshes every 4000 ms (timer0x80080) and closes when its visitor is gone. The use counters are the guest's simulation state (Guest.RidesTaken,ShopsVisited,SideshowsVisited,SideshowsWon; a finished visit counts by the type'sWhichUITypeat0x4fd9b1, so a shop or a sideshow is no ride), saved as optional fields and imported from original saves; the list's rides column shows the rides counter too. Visitor arrows use the same candidate projection as the visitor locator: the ThingPool used chain filtered to live guest slots, with no visibility, in-park or camera-position filter. Riding, guard-held, queueing and hidden live visitors remain eligible; wrong-model, queued-destruction, placeholder, missing-roster and Gone claims are excluded. First positive-ID roster claims win, including Gone claims, so duplicates cannot resurrect a rejected visitor. Unsupported pool-free fixtures append active first claims in ascending ID order; used-but-rejected slots never reenter through that host-only fallback. Next follows older links and wraps to the first visitor; previous follows newer links and wraps to the last. A changed selection refreshes the title and stats immediately, while a singleton leaves the four-second refresh age untouched. A missing/Gone selected visitor refuses navigation and closes on the next UI update; locator-style stale-selection recovery is deliberately not shared. Restored and reused IDs are not chronology. The newVisitorInfoArrowOrderTestsexercise the actual arrow callbacks and snapshot/RNG/hash nonmutation; C# execution and rendered fidelity still require exact-head CI and visual validation respectively. UI-910 is narrowed in round 11 (package W): the portrait is the independent clone the original keeps, described below. The portrait is a clone of the visitor's body player (PortraitSprites, full copy0x486530when the window binds a visitor, partial refresh0x486610from the window's per-frame message 0x1E, delete0x486630when it closes), a record of the same sprite registry as the world's sprites, so the sprite scheduler (0x475360, the even-substep pass before the world update) steps it on its own due time and the refresh copies the visitor's program position, frame and output over it; a visitor with no sprite, one that goes away or one that is hidden leaves the clone running on its own clock, and a visitor that gets a new sprite is followed through its current handle. The frame is drawn from the clone's slot, frame and the kid-set draw and heading it carries (GuestRenderer.PortraitFrame); repeated HUD draws do not select or advance animation, collect ride poses, consume movement or draw random numbers. Presentation only: nothing is hashed or saved. The original helper uses the selected visitor's body source; control+0xe0 + 2is UI depth, and12.0is primary scale, not animation speed. The portrait model keeps its outer rectangle; the sprite uses the table's inner(477,281)..(704,510)rectangle. Integer shifts give feet(598,450)before host canvas scaling; the visitor-only nominal factor is3.6 × 128/Aacross and3.6 × 128/Bdown. Shared employee/hire figure defaults stay unchanged. The clone's timing, partial copying, flags and source epochs are the sprite registry's (UI-910 narrowed to rotation/depth, the exact viewport transforms and raster comparison). See the bounded portrait contract and tests.Staff window (
ParkHud.Staff.cs, Mac tabledata:0x4a1e0):b_allstaffopens thew_bigwindow over the buy window. The authoredf_staffpic,f_staffinfo,f_balanceandhirestaffframes initially show applicants fromParkEconomy.Staff.Candidates. The five role buttons filter applicants (help 154–158), the name and wage headers sort them (help 159/160; the sort is kept for the session), hovering a name selects it (the details follow the pointer, as in the video; the employee view, an extension, only highlights) and a left click on a name hires the applicant throughParkEconomy.Hire(help 161; list message 0x400 →0x49b988, which here starts the Place tool; Enter hires too,[EXT:staff-enter-hire]). The video never shows a click on a name; the original's own advisor line ("click on the name of the person you want to hire", 11:54) and the list's 0x400 message (0x6655a2/0x6656fa) settle the trigger, so UI-083 is retired. The list scrolls and takes the buy list's row pitch (APPROX:UI-080retired: the hire list's row factory0x49bbb0is the buy list's0x4ad240formula on font slot 7, so it shows 11 rows); the details are a Vaardigheid gauge (UI-081) and a mini balance of the last closed month, taken when the window opens, that includes the selected candidate (hovering a name selects it, a left click hires; tp.exe0x49c53dreads the newest entry of the monthly sample rings), the portrait box shows the selected role's sprite-bank figure walking on the spot, facing direction 5, as the original's figure script0x74f758does (the hire-local nominal geometry uses its inner rectangle, integer feet(626,362)and 2.4 canvas units per reference pixel; UI-082 retains scheduling, rotation/depth and viewport/raster qualifications). Control 9366 is the plain cash label ("Cash $ N", UITEXT0x1ca/0x1cb). A labelled extension button ([EXT:staff-employee-view]) toggles to employed staff, showing tracked state, wage, skill and happiness (the original's employee list is the separate All Staff window, ported inParkHud.AllStaffWindow.csand opened by the info windows' all-staff buttons; this view stays as an extension until the user decides about it). As in the All Staff list (row message 0x400 →0x4b6080), a left click on an employee (or Enter) opens the per-employee window (ParkHud.EmployeeWindow.cs, table0x756f48) in place of the staff window: the employee's name as the title, the stats frame (employed for "N days", monthly wage, skill, happiness and energy bars, current status with itsstaffstaticon, refreshed every 4 s by timer0x80080),b_fire(dismiss; with the Confirmations option[0x78d90f]the window closes and the yes/no box asks first),b_pick(pick up), theb_routepatrol toggle (help 86/87: set an area with the patrol tool, or clear it), the cycle arrows over all staff in the current ThingPool used-chain order (hidden with fewer than two employees; reverse-roster fallback for pool-free members),b_allstaff(back to the employee list on the role),b_locate(the staff locator panel on the employee) and the tick (UI-092 for its remaining gaps). The employee title opens the original rename table0x7572e8(0x4b6110, title UITEXT 195): one initially selected field of 32 UTF-16 units, Apply/Enter and Cancel/Escape/right-back. The dialog captures its employee and owner, cannot duplicate or retarget after a selection change, and closes when its employee leaves or its parent closes. Read-only visits are guarded at open and apply; stale callbacks and replaced identities cannot write. Blank and whitespace names are explicit names, retained on original import and host save/resume; null alone selects the generated name. Name index, variant and other simulation fields do not change. Text selection highlighting/caret and keyboard access use the existing host text-field presentation, without original pixel-parity claims. Employee arrows join current members to matching live ThingPool roles, omitting queued/placeholder slots. In malformed mixed fixtures, unsupported members follow valid pooled members in reverse roster order; ids never imply chronology. Navigation does not reorder the roster/pool or consume simulation randomness. Locator radios use the separate persisted per-role order described below; employee arrows retain this global traversal. The employee locate button and Ctrl+S select staff independently of coordinate availability; a current member retains its name strip and follow request until its position returns, and actual removal clears it. Ordinary carried staff retain their last coordinates; no cursor position is invented. The locate button retains the host park-camera guard, and visitor position-loss behavior is unchanged. The employee portrait is the same kind of clone (UI-092 narrowed):PortraitSprites.CloneStaffcopies the member's sprite source when the window opens or cycles (0x486530, scale 8.0, depth + 1),Refreshfollows it each frame (0x486610), closing the window deletes the clone (0x486630), and the clone continues on its own clock after the source is gone; the hire window's figure is its own source (0x49BA00, program0x74F758, flags0x51000, deleted by0x49B7B4). See EMPLOYEE-PORTRAITS.md.b_allthingsreturns to Buy (help 162). The nearbydata:0x4e45cstaff and visitor locate buttons use their authored positions; each is enabled while a live actor of its role (or any visible visitor) can be focused, and the click focuses the host park camera on that actor's world position (UI-091). The keyboard locators Ctrl+S and Ctrl+V open the original's locator panels in the HUD arm (ParkHud.LocatorPanel.cs, tables0x756950and0x756ad8;0x4b3f60,0x4b4280): the staff panel's five role radios and the visitor panel's radio locate the role's first actor, the chosen radio again steps to the next one, and the strip above shows the actor's name with the staff state icon or the visitor's thought while the camera follows the actor until the player moves it (0x4b3790,0x4b3490,0x4b3640); the info arm, a message, the camera panel and the arm's red X put the panel away. Ctrl+V with the per-visitor window open (a row of the All Visitors window clicked, or a visitor picked in the park) locates that visitor at once, as the original does with its visitor info window (0x4817c0), and Ctrl+S orb_locatewith the per-employee window open locates its employee (0x481790,0x4b5f07); without an actor the keys keep the strip with its last name, as the original does (UI-091). Staff radios read the current roster throughParkStaff's five independent role-ID sequences, including carried members and members without world positions. A fresh hire prepends to its role; firing splices that member out without reordering survivors, the roster or the global ThingPool. Original imports validate each complete saved role chain (world heads0x1DA73C–0x1DA744,RoleNextIdat+0x210) and map ThingIds to member IDs in that exact order. A malformed role is reported and uses a whole-role saved-global-order fallback; no valid prefix is installed, and other valid roles keep their own chains. Own-format saves persist all five arrays inStaffData.RoleOrder. Missing/null legacy data uses a read-only live-pool projection, then reverse-roster order for unsupported members, until hire/fire materializes the order. Repeated pool attachment cannot overwrite an explicit or materialized order. Reads/capture do not materialize it or consume randomness; capture still records the effective order. These compatibility projections are not proof of the original role-chain order. Staff identity and its name strip/follow request survive unavailable coordinates; following still needs a safe finite world position and the existing park-camera guard. No cursor-based position is invented. The visitor radio follows the guest simulation's live ThingPool used chain (0x482757,0x516130/0x516160), including riding and guard-held visitors whose sprites are hidden. The current candidate's successor is selected; a tail or stale selection wraps to the current head. Reused low-number slots and restored chains keep their actual order. Missing guest objects, wrong-model slots, queued destroys, placeholders and Gone visitors are excluded. Unsupported pool-free fixtures follow pooled visitors in ascending ID order, once each; the first roster claim for a duplicate ID wins, even if Gone. This fallback is a host compatibility policy, not original ordering evidence. Selection does not mutate the roster, pool, RNG or save. Follow needs a finite converted world position; a missing park or unusable position leaves the camera unchanged, and the next update clears the visitor strip/follow request under the retained host policy. Staff's identity-preserving missing-position behavior is unchanged. The staff state control now draws no mesh for frame 9, using the same bounded frame control as the employee window; valid frames 0–3 draw normally again. Generic model frame fallback is unchanged. Locator open/close already posts and withdraws advisor help0xc6/0x11f; those calls are not missing sound events. The panels slide out of the HUD arm as the drawer does (0x4a2590into0x4a14f0, tick geometry ofArmDrawer, the arm's retract button shown with the slide; a key pressed while a locator panel is out retracts it first, and its close message zeroes the mode word the key had set, so the panel that comes out ignores its radios, except after Ctrl+V without a visitor,0x4b4280) and the follow has no smoothing of its own (the0x42b1c0matrix blend belongs to the ride view, UI-094); the retained visitor position-loss fallback and real-data visual verification remain UI-091. See the bounded implementation.The All Attractions and All Visitors windows' lists (attribute 0x291) follow the original's list control: the pointer highlights the hovered row (the original selects it), a left click selects it and opens the row's info panel (the info arm for an attraction, which keeps the list; for a visitor the per-visitor window
0x4b79b0, below, which gives the list way) and a right click centres the camera on the row and closes the window (list messages 0x400 and 0x402, tp.exe0x6655a2/0x66563d; button 0 is the primary, left button: DirectInput button 0 becomes code 0xf0,0x634963,0x486ca1). Enter and the select/go-to buttons keep the older select-and-close behaviour ([EXT:overview-select-button]). A release is a click only within 500 ms of its press with at most 6 px of movement on each axis (0x65f6d1,0x65fa33;UiInputSource); a longer press or a drag is no click. Each list keeps its last sort for the session (ListSortMemory, the original's global sort words,0x6659af).Map window (
ParkHud.Map.cs, Mac tabledata:0x5265e): the HUDb_mapbutton opensmap_winwith its table-positioned pan, zoom, object-category, layer and close controls. The shipped per-themelevels/<theme>/2dmap.tgasupplies the terrain image. Current path and queue cells and placed-object footprints are drawn above it. Each category button toggles its own layer (independent bits, each category drawn from its own bit; only the rides layer is on when the map first opens, the original's layer word 1, tp.exe0x5f06a9and the map table0x774da0; paths, queues and unowned land use the original's records); zoom steps half a unit within 1.0–3.0 and a pan moves the centre one map cell, independent of zoom. Live cells use the original's grid on the 512-pixel image: 15 + column × 5 and 42 + row × 5 pixels for a 96 × 85 park (tp.exe0x5f2380), one pixel left of and above the art's own terrain cells. The generic sandbox draws its grid and heights in place of theme art ([EXT:sandbox-map], OpenTPW content); a missing original theme image is reported. The layer buttons set the original's layer word, the staff role and the value mode (ParkMapClasses; the debug HUD takesmap:layers=,staff=,value=): the track layer draws every coaster pair as ten Bezier samples joined by the anti-aliased line0x5efb10(ParkMapLine, the coverage walk and the surface blendParkMapLine.Blendported bit for bit against the oracle, X54; the track pixels are composed into the map surface with it, coverage 0 included, and the surface is baked into one texture on each render event,ParkMapBaker), the visitor and staff layers the sprite items0x5f44d0(the six/2dmap/*sprite.tgaimages, colours by kind, the happiness ramp for a guest, a staff member's patrol area while his item shows), and the value modes 2 and 3 the excitement and satisfaction ramps over the object cells; hovering an item or a cell names it (UpdateMapHover). Escape, right click andb_okayclose the map. Default placed-object cells now use the current object's state of repair: the PC+0x44float identified bySaveAttraction.StateOfRepairand imported intoParkObjectState.Repair. The map converts back to that stored float domain, truncates, masks with 255 and then clamps to the 0..100 ramp. The ramp uses a 16.16 integer fraction and arithmetic channel shifts, with RGB (248,0,0), (248,200,0), (48,252,0) at 0/50/100 and alpha 255 (tp.exe0x5f2602,0x5f09a0). Missing, read-only, stale/mismatched or unsupported malformed repair state keeps the old (207,67,198,235) fill. The classes, layers, value modes, outlines, items, tracks and pointer are the original's (UI-086, round 11 package I; the residuals are in the register row). See the bounded implementation contract. The map window pauses the park while it is open, as the original's0x5f0b40calls the game pause (0x4092a0; see "Pause owners").Object window for the selected original object (picked by occupied grid cell): the window of the original ride, shop or sideshow table (tp.exe
0x755150,0x755908,0x755e80; UI-024 is retired, round 11 package I: the local happiness gauge reads the thing cell, the anchor plus the rotatedInfo.MapOffsetX/Y(OriginalObject.ThingCell); onlyjungle/5x5rckandjungle/mammtunnhave an offset, (0, 1)):w_medframe (248,30)-(1800,1007), the name in yellow, a preview, the stats frame with white labels and values (Users last month, Age, and the four gauge rows Excitement, Reliability, State of repair and Remaining life, Scrap value), the round buttons open/close (b_door), delete (b_erase), call mechanic (b_callmech), upgrades (b_upgrade), Ride it! (b_ride it!, rides that can be ridden), the arrows (b_arup,b_ardown) that step through the objects of the type, the list button (b_allthings, All Attractions) and the tick that closes the window. The status banner (thechevcontrol:0x3e25rides (300,275)-(828,462),0xc06dshops,0xa0a3sideshows;RideWindowStatus,ParkHud.ApplyObjectStatus) lies over the preview and shows the object's status of0x485f60with mode 2, the first that applies: CONDEMNED; TRACK INCOMPLETE (a track ride whose track is not valid, or a coaster without a complete circuit); TRACK INVALID (a coaster that crosses itself); an upgrade or a called service by its mechanic or, for a toilet's call, its handyman (none hired, on strike, on the way, at work, waiting; at work is a world mechanic in state 13 or a handyman in state 11 on the object,0x5065d0); BROKEN DOWN (REPAIRS IN PROGRESS while the mechanic works); QUEUE NOT CONNECTED (open or closed); CLOSED; nothing for an open object. The text is the UITEXT entry (364-389), centred and wrapped in font slot 8 in the status's colour of table0x74fb50(CLOSED grey, broken down and condemned red, the service statuses blue, the queue, exit and track statuses orange); the colour goes to the text only (0x65c5d5), the chev art keeps its own frame. The ride window's refresh (0x4ad4e0) hides the door, queue, track, call, move, Ride it! and upgrade buttons of a condemned ride, greys the door for the two track statuses whatever its open word and while the ride is closed and the reopening guard refuses (0x4df290); the shop and sideshow windows show the banner without door logic. EXIT NOT CONNECTED is shown by the exit test0x4de5a0(ParkGate.ExitConnected: the exit cell's link byte, the cell in front of it and the edge test0x4d8750in the three directions that do not lead back;APPROX:ECON-049keeps the permissive answer for untyped exits). The gauge rows are the original's: UI-028 retired. The window refresh0x4ade40sets each gauge to(byte << 10) / 100of 1024 with the window's own slider values, so a drag moves them before the window applies it: excitement is0x4e0560(a ride's data level, or its track controller's base, times the speed and duration ratios clamped to 0.75..1.25 and truncated in extended precision; a sideshow's20 + win × sqrt(prize margin) × 0.08; a coaster's50 + ½ excitement), reliability is100 - trunc(9 × wear)of0x4df640at the window's speed and capacity, and repair and remaining life are the truncated floats at+0x44and+0x48; the shop and sideshow windows' local happiness gauge is the mean happiness byte of the guests on the 3 x 3 cells around the object (0x4cd880). The queue (b_queue), track (b_track) and apply-all (b_applyall) buttons start the queue tool, the coaster or water track tool, and copy the window's settings to every object of the type (0x4b0ae0,0x4b20f0). The upgrade button (b_upgrade, enabled in every ride window but mode 3,0x4ad6b4) opens the ride's upgrade list (0x4ae560), laid out from table0x755750:wdialogw(500,233)-(1516,830), the title UITEXT 31 "Buy Upgrades", the listupgrades(603,406)-(1334,731) whose rows the pointer selects (attribute 0x81) in font slot 7 with the name left and the price right, its scroll bar (b_up,b_scroller,b_down) andb_exit(rows: ECONOMY.md). A click on a track add-on in the park opens its ride's window, and the arrows skip add-ons (0x486920, TRACKS.md). The Move tool (b_move, controls0x3e2c,0xc080and0xa0a8; UI-104 retired;Level.BeginMove,ParkHud.MoveObject). The ride window's refresh (0x4ad4e0) enables the button with0x52c2b0: always, except for a kart or water ride (type track word+0x9c1 or 2), whose two tiles beside the station (the thing's cell plus the exit offset (4, 1), (1, -5), (-5, -2) or (-2, 4), and the entry offset (-2, 1), (1, 1), (1, -2) or (-2, -2) by the angle) must each hold exactly one arm (0x522790: the set bits of the cell's connection byte,Level.MoveEnabled); the shop and sideshow windows' button has no test. The click (0x48cfa0) is the erase button's (0x48cd10) without its confirmation: the thing is picked up (0x48c940,0x5276d0), a type with a footprint saves its queue corners (0x530120,0x52fc30), interface mode0x33and the click handler0x524960run the very erase0x527ee0that the demolition runs (last argument 0), so the scrap credit, the queue and the track clearing are the demolition's; then the tool0x46c5a0(0x3b, type)is built, the mode0x3bset and the angle0x52f1b0(+0x10)kept, and the window closes. The saved corner words0x81b14cand the thing0x81b3acare written and read nowhere: a move keeps only the type and its angle, the new object starts with no history, queue, track or settings of the old one, and cancelling the tool leaves the object gone. Mode0x3bplaces like mode 4 (0x5253d5after0x524b35:0x528a70with the type 4 and the angle, the same follow-up into the queue tool, a kart or water ride's station line first, the same Ctrl test); the only price it skips is the cells the placement lays (0x8186d4: the path and queue cell creators0x5346d0and0x538fc0charge only with the flag clear, and mode 4 sets it as well). The ride itself is paid by the constructor (0x4db4e2..0x4db4f6, the type's+0x1b8), so a move costs the whole price again less the credit of the pick-up; neither the buy list's availability, research nor a balance test applies (ParkEconomy.CheckBuild( moving )): mode 4's hover refuses a price above the balance (0x523658) and raises the cash pointer, mode 0x3b's hover (0x523940) stores the price (0x52fb90) and has no compare, no flag and no golden-ticket test, the click has none and the debit0x4d01f0tests nothing (a move may leave the balance negative; no refusal in the UI layer above0x524960was found, the click's callers being the replay dispatcher0x4045b0and the tool entries). The ghost, pointer (placing pointer 7, never the cash pointer) and Ctrl rule are the build tool's. The queue tool a moved ride with an entrance opens (0x52589c; a kart or water ride's once its station line closes,0x5254bd,0x527004) ends the tool at its last click whatever the modifier, as after a bought ride (0x5275b1..0x5275f2:0x52f200(0, 0)reads no modifier, sets mode 0 and replaces the tool object, mode0x3bwith its type, by the default tool0x46c6a0): neither the Move tool nor the build tool comes back, and the co-op command layer ends the move (EndMoveCommand) as that queue tool opens. The click handler's modes (0x524960(x, y, modifiers, replay), read October 17, 2026; a click records itself for the replay,0x403c20for a plain click and0x403c80with the modifiers, unless the latch0x816d48is set, and a click while the hover has set that latch leaves the tool in the modes 1, 3, 0xB, 0xE, 0x10, 0x13 and 0x36): mode 0 only picks the thing under the cell (0x5276d0); 1 and 3 the path and queue tools (first click validated by0x535670, then the segments of0x536100); 4 the build tool and 0x3B the Move tool (0x528a70, above); 0xB and 0x10 the kart and water line tools (the segments of the line walker0x53aac0, sound0xCE); 0xE and 0x13 the track edit sub-modes (TRACKS.md "The track edit sub-modes"); 0x14 the queue edit click (0x530120,0x4de1f0, then mode 3); 0x15 and 0x16 the coaster's pylon and move tools; 0x19 the hoarding line of the fence builder0x5323f0; 0x33 the erase (0x527ee0, the demolition of the object's window and the Move tool's pick-up); 0x36 the patrol area (0x506e50); 0x39 Buy Land (0x531a50,0x5327e0); 0x3A the area clear (0x424ec0,0x52bdd0). Not identified: the one-click and two-click modes 0x32, 0x34 and 0x35 (a single op0x32of0x536100or0x53aac0) and 0x1A (a pick of two tiles snapped to even cells of a ride's track layer that continues in mode 0x19). The settings controls are at their table rectangles: the ride window's speed, capacity and duration sliders with their labels ("Speed : 60"; the capacity slider only whenUsageInfo.MinCapacityandMaxCapacitydiffer, the duration slider only with anInfo.DurationUnit, its label Duration, Laps, Cycles or Repetitions) and the red line of the speed and capacity sliders; the shop window's quality slider (three steps, the lampsl_low/l_med/l_high), the ingredient slider (0–100, only forUsageInfo.SpecialIngredient1–4, labelled fromINGREDIENT.str) and the price box; the sideshow window's chance-of-winning slider and prize box (hidden forUsageInfo.NonWinnableSideshow, whose price is the price of entry) and price box. The controls edit the window's values, which the window applies when it closes or steps to another object (tp.exe0x48d200): the ride's SetSpeed, SetCapacity and SetDuration (0x4af440), the shop's ingredient amount, quality (50 × the step) and price (0x4b0aa0), the sideshow's price, win chance and prize (0x4b20b0).b_moveis not drawn. Escape, and the right click with RMBCancelOn, close the window. Open/close is disabled for non-attractions; fixed items cannot be deleted. Unknown statistics remain labelled as not simulated. The shop rows are labelled UITEXT 32–38 and the sideshow rows 41–48 (0x4afc10,0x4b1040); the sideshow's second row is the winners gauge (0x4e1f20). The developer prototype's repair gauge follows its linked economy instance, including wear and mechanic repair, in both the info arm and the attractions overview. Without a linked economy record, the bridge retains its last gauge. Read-only visits disable build, open/close, delete and Save; callbacks also reject direct mutation attempts using the existing localized online message.Speed control (OpenTPW addition, bottom-right): pause, ×1, ×2, ×4 set the economy's
GameSpeed(its clock runs Speed ticks per fixed tick); pause also stops rides and guests (Level.SimulationTimeScale).Happiness gauge: the
gaugeshell uses the native control rectangle (67,1080,96,265). Its independent childgaugeFilloccupies (85,1100,59,224), with the existing bottom-left canvas anchor applied once. The HUD samples the in-park visitors' byte-truncated mean happiness every two seconds (0x4c7bb0,0x4a1cd0), keeping the original 0..1024 integer calculation:ftol(mean × 1024 × 0.01f), so 50 gives 511 and 100 gives 1023. The builder attaches the verticalmeter.wctmodel (0x477870) to child 0x1f; its message-8 handler (0x477f4e) moves a shared geometry/UV boundary, without selecting animation frames.UiVerticalGaugecrops the upright empty right half above that boundary and filled left half below it, using white tint and the image's alpha. Null, closed park and no guests draw the empty half. Existing image-load failures skip the image without synthetic replacement art.HappinessGaugeTestscovers CPU composition, sampling and missing/malformed images;HudScreenShortcutTestsretains the numeric mapping tests. UI-901 remains open for actual rendered composition/alpha verification; no original-runtime comparison is claimed. Shell help477 remains associated, but generic tooltip routing is outside this drawing change.Original keyboard shortcuts (
ParkHud.ScreenShortcuts.cs): the game's key table (theInputButtondefaults; the research and map tooltips themselves say "(R)" and "(Space)") opens the HUD windows: B buy, I park info, F finance, R research, Space map, L loans, T staff training budgets, G entry price, H staff applicants and V all visitors. Space activates no hovered button (Enter does, as for a text field) so the map key never co-fires with the panel under the pointer. The All Staff key S and All Attractions key A stay unhandled: the host camera pans with S and A (WASD), and one press cannot be both; the All Attractions window opens through a round button above All Staff in the buy window (and one in the staff window) instead, wearing the window's rides tab iconb_srideswith "All Rides" as its popup help: the shippedb_allthinginfoart has no texture, and a text label does not fit the round slot. A second press of a window key closes the window ([EXT:window-key-toggle]); dialogs and the pause menu keep the keys. The shortcut letters come from the language'sKEYBOARD.str(21 entries,Input.ApplyKeyboardStrings; the Dutch buy key is K and research is O), except a plain letter that is a camera-pan key (W, A, S, D), which keeps its default, and in the browser build the Ctrl+W/T/N chords the browser reserves ([EXT:browser-reserved-chords]); a plain shortcut never fires while Ctrl is held (Dutch research O vs Ctrl+O) (the Dutch hire letter A, UI-012). The time keys (numpad +/−/*) step and reset the four-speed clock model ([EXT:time-key-speeds]; the original scales the clock by ×0.8/×1.25 within 0.25–2.0 and * resets to 1.0), comma adds 90° to the pending blueprint's angle (oneLevel.RotateBuildstep) and full stop adds 270° (three steps; tp.exe0x40c120/0x40c150), holding exactly Ctrl at the placing click keeps the build tool armed (Escape or a right click leaves it), except for a ride with an entrance, which takes the queue tool whose last click ends the tool whatever it holds (0x5275f2), and leaving the tool resets the angle to 0 (0x5253b8,0x52f3b6; UI-031), and Ctrl+S / Ctrl+V open the staff and visitor locator panels (UI-091). The keys wait while a menu, dialog, text field or the ride view owns the input; window keys keep acting over their own window. Camcorder terrain-walk ingress and postcard ingress use their dedicated full-frame actions below. Ctrl+H flips the global Popup help option (options byte +0x36, tp.exe0x40c5d0→0x4817f0stores0x78d90e) for every screen and the host persists it; it never activates the H staff window. Both Ctrl keys work, held chords toggle once, and input owners consume blocked presses. The help box is the fixed rectangle (574,1520-h)-(1474,1520) drawn withf_helpbg(tp.exe0x492180, UI-010 retired); its height follows the small font. Both physical and injected taps accept either Ctrl key.ParkHudHelpTestschecks actual input dispatch and synthetic hover-help draws without original assets or a GPU. Mapping and gating are pure functions (ParkHud.ShortcutFor,WindowShortcutsAllowed,SteppedSpeed), tested inHudScreenShortcutTestsandOverviewWindowTests. The native smoke test presses the real keys:Input.InjectKeyDownqueues a physical key for the next frame's button rebuild only (Input.UpdateButtons), so V and B run throughInput.Pressedand every gate above exactly like a keyboard tap — the injection never enters the persistent keyboard state or the WASD pan axes (InputInjectionTests). Cancellation belongs to the returned scope, so disposing a consumed tap cannot cancel a later tap of the same key.Pause menu (Escape): a frameless list of cyan text lines (white while focused), each as wide and high as its text in the menu font plus the original's margins and stacked from the top (
0x492f60, UI-013), in the original order: Load (3), Save (4), Restart Park (10; reloads the snapshot taken when the park started or was loaded,[EXT:restart-snapshot-per-start]; offered in every original park of a theme but the read-only visit, Full Simulation included, as0x48c150lists it for every game type but the visit, and the player-wide ticket ledger is kept), Publish Park (5; the online publish flow), Options (6), Go Online (1,[EXT:pause-menu-go-online]), Resume Game (7), Exit To Lobby (12), Quit Game (8, confirmation 9). Confirmations are the window of table0x7583e8with the tick and X buttons stacked at its right (UI-013). Save writes the owning game flow's park save (the own-format world save for sandbox and front-end started original-level parks; a read-only visit has no Save entry).--load-original-leveland--sandboxkeep the ImGui developer panel and the sandbox BF4 panel next to the HUD; games started from the front end hide them.
Interfaces for other slices#
| Interface | Owner | Stub |
|---|---|---|
Hud.IHudParkStatus (money, date, speed, price/availability) | economy | EconomyParkStatus 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/objects | OriginalBuildCatalog adapts Level.Objects.Catalog, with original names, preview models and Upgrades[0].CostOfUpgrade; TotemBuildCatalog remains a test fixture |
Hud.ObjectInfo/ObjectStat for the info arm | rides/guests/economy | ParkHud.SelectedInfo follows OriginalObject |
IDisplaySettings (real: the renderer) | display | StubDisplaySettings (tests only) |
GameOptions.Current volumes, mute toggles and gameplay switches | audio, camera, tutorial/advisor | movie 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#
Tests (
OriginalUiTests, no assets): canvas mapping/anchors/font tiers, mouse and keyboard navigation, option rows, modal covering, front-end island/ game-mode/quit flow, load screen labels, lobby file parsing, option labels, cancel/confirm/timeout-revert/restart flows, stub display, options file, supplementary string coverage and placeholders, stub park status, pink key, glyph batching.Asset tests (
OriginalUiAssetTests): all 278 UI models flatten; full-screen frames span 2048×1536; button states coincide with the root; every model and texture the screens use exists; the four lobby islands; Totem price/category and preview textures; all four theme menus expose every buildable catalogue entry, excluding fixed items/tools/upgrades; UIStrings ids pinned against English; every used string has glyphs in every UI font of all six languages.--front-end --smoke-test(Metal): lobby + menu capture, mouse click (next island), keys (left, Escape, Enter), options open/adjust/cancel, game mode, original jungle load, HUD capture with bank balance and date verified texel by texel against the BF4 atlas, build-page navigation, research refusal, Totem purchase (−3,250; research marked complete as smoke setup) with one paid economy object linked to guests, info arm, economy pause, sale (+1,625), a second naturally researched catalogue object, exact charges, overlap refusal without a charge, selected-object open/close, the developer prototype Totem listed beside the catalogue rides in All Attractions (status following its door, row activation, delete through the prototype removal with the economy record gone and the selection healed), the window keys V and B pressed as real keyboard taps throughInput.InjectKeyDown, pause menu, own-format world save (verified on disk), lobby; a prepared read-only visit verifies disabled build/open/delete/save controls and their direct callbacks without mutating the park or writing a save; the visit exits to the lobby and jungle starts again in Instant Action (seed imported, no staff invented, research unchanged over 60 days, loans/research effort/upgrades refused, bank balance read back; English, 1280×720, 288 frames). The earlier UI flow passed in all six languages; the economy integration was verified in English (1280×720, UI scale 1) and, before reference-fit limiting, Dutch at 1920×932 drawable/UI scale 2 with nearest upscaling at 50% render scale (the desktop clamps the requested 1920×1080 window). The smaller 1280×720 Dutch/nearest/50% case with requested UI scale 2 also verifies the explicit 1× fallback and full glyph readback. Captures:artifacts/native-smoke-<language>-*.png.
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)#
| Control | Action | Status | Test |
|---|---|---|---|
b_buy panel button (469), key B | opens/closes the buy window; disabled in a read-only visit | wired | FrontEndSmokeTest, HudScreenShortcutTests |
b_info panel button (470), key I | opens/closes the park information window | wired | FrontEndSmokeTest |
b_money panel button (471), key F | opens/closes the financial information window | wired | FinanceWindowTests |
b_resrch panel button (472), key R | opens/closes research; Instant Action shows its original unavailable message | wired | ManagementUiTests |
b_map panel button (473), key Space | opens/closes the map window | wired | MapViewStateTests |
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]) | wired | HudScreenShortcutTests |
| happiness gauge (477) | cropped vertical meter from the sampled visitors' mean (UI-901); shell help association retained | wired; rendered verification pending | HappinessGaugeTests, HudScreenShortcutTests |
| date display (478), balance (465), cash change, golden tickets/keys | live economy readouts | wired | FrontEndSmokeTest |
| park clicks | select the object of the clicked grid cell; selection opens the object window | wired | FrontEndSmokeTest |
| comma / full stop while a blueprint is pending | add 90° / 270° to the build angle (one / three RotateBuild steps) | wired | UiRegisterRound2Tests |
| Ctrl+S / Ctrl+V | open 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) | wired | LocatorPanelTests, LocatorStaffRoleOrderTests, StaffRoleOrderTests, LocatorVisitorOrderTests (new role-order C# coverage awaits exact-head CI) |
| key V | opens/closes the All Visitors window (plain V pans nothing; Ctrl+V stays the locator) | wired | OverviewWindowTests |
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:
Placement and fit.
0x486410passes the preview frame to0x4689f0as left, bottom, width and height in normalized units ((x − 1024) / 1024,(768 − y) / 768of the 2048 × 1536 canvas).0x4689f0scales the root frame's matrix by the fitmin(width · 2/3 / half diagonal, height / |max − (min x, 0, min z)|)(its three axis rows only,0x46fad0) and keeps that as the base, with the footprint's half extents,|max − ground centre|and the share|max − ground centre| / (|max − ground centre| + half diagonal).The matrix. Every frame
0x468e50turns the base about y by the yaw and about x by −π/4 through the engine's sine table (0x46f420,0x46f240), addsleft + width/2 − 0.75 (sin·hd + cos·hw)to x andbottom + height/2 − 0.35 · share · reach + 0.7 (sin·hw − cos·hd)to y, scales x by 0.75 and the depth column by 0.1, and turns the yaw on by 0.0004 rad a millisecond. The offsets put the footprint's centre near the middle of the frame for a model whose origin is its footprint's low corner, as the original models' is; the preview is not clipped to its frame.The camera. The preview has no park camera.
0x45bd30gives the instance its own view, an identity matrix that0x57a260multiplies bydiag(1, −1, 1, 1), and the scene draw0x57a750uses it for a model with flag0x200(set by0x45bed0) with the draw flag0x2000000. The viewport transform0x579690then maps x and y with the viewport's half size and centre (0x582f70) and, in that flag's mode 2, stores the depth as the matrix's depth × 0.1 ([0x8bcc20], set by0x582ddf) without a perspective divide: an orthographic view from the −z side, 45° from above.Faces and depth. The primitive builder
0x580530keeps a triangle only when its corners run clockwise on the screen (0x581320, the determinant of x, y and w); Direct3D's cull mode staysD3DCULL_NONE(0x566957) because the engine has dropped the other faces itself. The draw's state word turns the depth test and depth writes on (0x567620) and the device init0x573080sets ZFUNC to LESSEQUAL with the depth test (0x57360f). OpenTPW draws the kept triangles into an image of their size (UiDepthImage,UiRenderer.PrepareDepthImages, shaderui-depth.shader) with a depth buffer cleared to the far value and LESSEQUAL, keyed texels discarded, and the interface draws that image where the preview stands ([EXT:preview-icon-cpu-projection]). The two preview models whose base plate faces down (PURPLE_BASEof the space go-karts, Space Racers, and of the space water ride, The Blobulator) would lose that plate to the face test, as in the original; the preview draws those plates anyway ([EXT:preview-ground-plates], below).Animation. Each new preview starts animation 5, variant 0 (the member
<model>m1, else<model>m), looping at speed 1 (0x4732a0from0x4689f0); the clip moves the nodes below the root, whose matrix is the preview's.Left open (UI-026). The original lights the preview's vertices in its object pipeline (
0x57aa10→0x574660→0x5741b0: the ambient plus the scene's directional and point lights, see the register row); which lights the scene holds while the buy window is open is not traced, so the preview is drawn unlit.
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)#
| Control | Action | Status | Test |
|---|---|---|---|
| name and stat rows | live catalogue values; unknown statistics say "not simulated" | wired | FrontEndSmokeTest |
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 object | wired | ObjectWindowStatusTests, 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 hidden | wired | FrontEndSmokeTest, ObjectWindowStatusTests |
b_erase delete (15) | sells and removes the object (confirmation when enabled); fixed items and read-only visits cannot | wired | FrontEndSmokeTest |
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 cannot | wired | MoveToolTests, SandboxSmokeTest |
b_okay tick (1) | closes the window | wired | FrontEndSmokeTest |
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]) | wired | FrontEndSmokeTest |
b_arup / b_ardown (21, 20), b_allthings (17) | step through the objects of the type; open All Attractions | wired | OriginalLayoutTablesTests |
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):
Eye. The first dummy-attribute record whose type has bit 0x1000 and whose value is 1 (0x44b220 through the ride camera 0x42a560); its node's world translation is the eye, copied exactly. About 58 object models carry one (rides, but also the security cameras, gates and End features, which are not attractions and cannot be ridden here). A coaster uses the camera seat of the car 0x436880 selects (controller +0x124, the train with the smallest position, then train +0x34: car 0, or car 1 behind a front car of another type than the seats';
CoasterCarRig.CameraSeat).Orientation. The per-frame camera update 0x42b1c0 blends the three rotation rows of the seat matrix with the seat's matrix of the previous frame:
a = (1000 - dt) * 0.0005(about 0.48 at 30 frames a second),row = node * (1 - a) + previousNode * a, and stores the node's matrix (not the blend) for the next frame, so it is a one-frame average, not an accumulating ease.dtis the millisecond clock difference of two frames plus one, and 100 when that is above 200 (0x42b2a0, 0x42b2c7). The view's direction is the camera matrix's third row (the seat node's local Z), its up the second row (0x56b940 carries the corner rays (x, y, 1) through the matrix by 0x578d20), and the blended basis is not made orthonormal again in the original (OpenTPW's is, a difference of the order of the square of one frame's turn). It belongs to the ride view only: the park overview and the locator follow build their matrix directly (0x42cbe9, 0x42cc02) and no writer sets the mode bits 8, 0x10 and 0x20 of 0x790ab0 that the blend's test 0x3c and the static mask 0x16 name besides the ride bit 4.Free look. The pointer's offset from the view centre (-1..1 over the window, Y up) turns the view: yaw
(x -/+ 0.2) * 3.5radians outside a dead zone of 0.2, pitch(0.2 - y) * 1.2above 0.2 and-y - 0.4below -0.4 (rotation about X, then about Y, axis string "XY" at 0x74daa4). There is no easing in the look itself; a pointer at the screen edge turns about 160 degrees. The directions (right and down turn right and down) follow from the rotation code (0x46f350,0x46f650: standard left-handed X and Y rotations) and agree with the video; the pointer's reference is the full-screen park window (0x489f50).Screen. The viewfinder model at (170,170)-(1878,1366) and the b_eject button at (1916,1404)-(2018,1506) (table 0x74fa98, help 468), the HUD hidden (the ride screen hides the screens below), the crosshair pointer drawn as a yellow plus, and the static transition described below. Existing HUD/advisor/cursor layering is unchanged.
Exits. Escape (no modifier), the C key, the eject button, and a right click when "right click cancels" is on (the ride view's procedure
0x488a00, branch0x488aa1-0x488ab7: RMBCancel andgui_CameraFlags & 0x16, no clock; the 2000 ms guard of0x48a7bdbelongs to the finale and loss windows, procedure0x48a740). E also leaves ([EXT:ride-view-key]).Leaving. A ride entered from the park view leaves the park camera where it was; a ride entered from the camcorder walk (the walker reached its entrance cell) returns to the walk, which resumes at the centre of the ride's exit cell (the thing's
+0x38,0x42A22E) looking along the exit cell's link byte (& 0x55: 1 pi, 4 pi/2, 0x10 0, 0x40 3 pi/2;0x42A1D0,0x522850):0x42AB20answers 1 only for a ride entered from the walk (flag 0x400) and0x42A190relocates only then (UI-095).Static timer. The traced timer (
0x54faf7) resets to 300 ms on either observed Boolean edge of(gui_CameraFlags & 0x16) != 0. A true-to-true mode change does not restart it. Positivity is tested before the elapsed wall interval is subtracted (0x54fb20,0x54fb46), so an already-latched static frame remains visible even when that interval exhausts its budget. The next eligible frame sees the nonpositive budget and renders normally.EyeModeStaticTransitionprepares this once after the HUD's input callbacks and shortcuts; drawing only reads the prepared decision and noise key.Host timing and lifecycle adaptations (UI-094). Only this level's current ride camera or camcorder walk counts as active (the walk is native terrain camcorder mode 2); arming alone does not count, and native mask bit 0x10 has no invented host mode. Walk-to-ride and ride-to-walk remain true-to-true. A new HUD snapshots its current camera. A single monotonic
Stopwatchsample per eligible HUD update replaces the native two post-drawGetTickCountreads; it does not reproduce their uncharged interval or wrapping arithmetic. Simulation pause/zero UI delta does not freeze this timer. Finale-owned updates hide the prepared static and skip observation/accounting; an update skipped by the host does not refresh the stamp. Eligible resume first latches a positive budget, then charges elapsed wall time, unless a newly observed edge resets it. Native enclosing flags and full session initialization are not mapped; this is an explicit host eligibility policy. The noise's seed is the host clock at the first static frame and its generator is private to the HUD (the original's stream is the CRT's shared one, seeded once at0x54DDE3).Static noise. The static is
0x53E760's: a 320 x 240 source regenerated with every invocation, black three times in four, white an eighth and grey 150 an eighth (one CRT draw whose low two bits are 0 makes a pixel white or grey by the low bit of a second draw), stretched over the screen (RideStaticNoise: one fill per prepared HUD frame from one persistent generator state; the seed is the host clock at the first static frame, since the original seeds the CRT's shared stream once from the tick count,0x54DDE3, and draws it on every frame the static lasts). The crosshair is generated ([EXT:ride-crosshair]: CCro.tga is absent from the data); the projection is the park camera's original one (OriginalProjection).--debug-hud "ride:<name>"andride:look:x,y(Debug builds) board a ride and hold the look pointer for captures.
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).
| Control | Action | Status | Test |
|---|---|---|---|
| Resume Game | closes every stacked screen | wired | FrontEndSmokeTest |
| Restart Park / Publish Park | restarts an Instant Action park after its confirmation / opens the online publish flow; disabled without their host action | wired (host) | HudScreenShortcutTests |
| Save | writes the owning game flow's park save (own-format world save); a read-only visit has no Save entry | wired | FrontEndSmokeTest |
| Load | opens the Load Park screen; disabled when the host provides none | wired | HudScreenShortcutTests (entry enable logic) |
| Options | opens the options screen; disabled when the host provides none | wired | OriginalUiTests |
| Go Online | opens the online screens when built | wired | online suite |
| Exit To Lobby / Quit Game (confirmation) | leave the park / quit | wired | FrontEndSmokeTest |
| (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") | wired | ParkPauseTests, 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 0x4092A0 | Screen | OpenTPW |
|---|---|---|
0x48C87E | the Escape menu 0x48C830 (it also clears the enable word 0x786BA4) | pause |
0x49EFBA, 0x49F29F, 0x4A3A6C | the load window, the save window and the Game Options dialog, opened from that menu | the screens above it |
0x5F0B7F | the map window 0x5F0B40 | map |
0x4A93D7 | the 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 |
0x47F26C | the 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 |
0x46B74C | the 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 sites | What | OpenTPW |
|---|---|---|
0x48CD65 | the delete confirmation of an object (UITEXT 0x18C), also from the attractions window | confirmDelete, confirmDeleteAttraction (pause) |
0x4B5EAC | the employee dismissal (UITEXT 0x18D) | confirmDismissStaff (pause) |
0x48AAC2, 0x48AC06 | the Instant Action completion message (UITEXT 0x1D7), after the winning screen's Escape or right click | winningMessage (pause) |
0x4AA533, 0x4AA596 | the 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, 0x48C08B | the questions of the pause menu's handler 0x48B6A0 (quit, restart, select new player, ...) | confirmQuit, confirmRestart ...: above pause, which holds the pause |
0x49EBA2, 0x49F66A, 0x49F6FE, 0x49F7AD | the load and save windows' questions | above pause |
0x4A60C9, 0x4A6234, 0x4A753E, 0x4A7A5D, 0x4A800F | the postcard and e-mail sending messages (invalid addresses, sending, failures) | postcardRecipients, postcardFailed, above sendPostcard |
0x4238CD | the "restart the game" notice (UITEXT 0x193) of the display options | the options' restart box, above pause |
0x47F76E | the 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, 0x4EDB3D | online park window, FTP and voting notices | online screens, no offline pause |
0x5D5949 | "You have postcards in your outbox" (UITEXT 0x1D9), at the lobby | the 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#
| Window | Controls | Status | Test |
|---|---|---|---|
Buy (ParkHud.BuyWindow.cs) | list select/sort/scroll, category buttons, purchase via row activation, staff button, all-attractions button, exit/Back | wired | BuyWindowTests, 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, exit | wired | ManagementUiTests, 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) | wired | StaffWindowTests, 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 removal | wired | OverviewWindowTests, 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) | wired | AllStaffWindowTests |
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) | wired | OverviewWindowTests, VisitorsWindowTests, HudScreenShortcutTests, FrontEndSmokeTest (list/scroll/sort/Enter-locate) |
Map (ParkHud.Map.cs) | pan, zoom, four category filters, track/visitor/staff/metric layer toggles, close | wired | MapViewStateTests, 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, exit | wired | FinanceWindowTests |
Loans (ParkHud.LoansWindow.cs) | Available/Outstanding tabs, six sortable columns, list select/scroll, take/repay with confirmations and balance checks, summary rows, navigation buttons | wired | FrontEndSmokeTest (loan flow), model in economy suite |
Research (ParkHud.ResearchWindow.cs) | per-category effort sliders, workload knob (UI-064), item previous/next when selectable, exit | wired | ManagementUiTests |
Entry price / staff costs (ParkHud.Management.cs) | ± adjustments, park door toggle (b_door), exit; read-only visits cannot change | wired | ManagementUiTests |
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]) | wired | TopThoughtsTests, 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)#
| Control | Action | Status | Test |
|---|---|---|---|
| previous / enter / next island buttons (343-345) | wrap through the theme islands; enter asks for the game mode | wired | OriginalUiTests |
| 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 mode | wired | OriginalUiTests |
| Load (202) | lists shipped and own saves and loads them | wired | OriginalUiTests |
| Options | opens the options screen | wired | OriginalUiTests |
| Go Online | opens the online screens when built | wired | online suite |
| Quit Game (confirmation 9) | quits | wired | OriginalUiTests |
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.
| Id | Site(s) | Current value / rule | Evidence needed | ||||
|---|---|---|---|---|---|---|---|
| UI-003 | UI/Original/UiModel.cs:142 | a 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 nothing | a 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-004 | UI/Original/UiModel.cs:193 | a 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 compared | the 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-006 | UI/Original/UiText.cs, Hud/ParkHud.InfoWindow.cs, Hud/ParkHud.cs | text 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-018 | Client/GameFlow.cs, World/Lobby/LobbyEffects.cs, World/Lobby/LobbyFlyingMeshes.cs, World/Lobby/LobbyScene.cs, World/Sky.cs | the 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-in | whether 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-025 | Hud/ParkHud.MessageTube.cs | the 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 extension | the 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-026 | Hud/ParkHud.BuyWindow.cs, Hud/PreviewIcon.cs:28 | build 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-031 | Hud/ParkHud.cs:503 | exactly 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 credits | where 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-042 | Hud/ParkHud.CameraPanel.cs, Online/OnlineScreens.cs, World/CamcorderWalk.cs, World/FreeWalkCameraMode.cs, World/Level.FreeWalk.cs | the 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-060 | Hud/ParkHud.FinanceWindow.cs, Hud/ParkHud.InfoGraph.cs, UI/Original/GraphBackdrop.cs | finance 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 adaptations | the 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-082 | Hud/ParkHud.Staff.cs | the 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 limits | the control depth word and exact viewport/raster parity | ||||
| UI-086 | Hud/ParkHud.Map.cs, Hud/ParkMapCanvas.cs, Hud/ParkMapLayers.cs, Hud/ParkMapDots.cs, Hud/ParkMapLine.cs, Hud/ParkMapLevelCells.cs | the 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 ( | dx | and | dy | below 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 original | 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 original |
| UI-091 | Hud/ParkHud.LocatorPanel.cs | staff 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-100 | UI/Original/OriginalPointers.cs, Hud/ParkHud.Cursor.cs | the 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-092 | Hud/ParkHud.EmployeeWindow.cs | employee 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 only | the 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-094 | World/RideCameraMode.cs, Hud/ParkHud.RideView.cs, Hud/EyeModeStaticTransition.cs, Hud/RideStaticNoise.cs | the 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 model | OpenTPW 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-095 | World/Level.RideView.cs | leaving 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 own | divergent 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-107 | World/Sky.cs, World/Level.Sky.cs, Client/GameFlow.cs, Render/RenderFog.cs, World/Particles/ParticleRenderer.cs, content/shaders/particle.shader | the 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 park | the 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-901 | Hud/ParkHud.cs, Hud/ParkHud.Gauge.cs, UI/Original/UiVerticalGauge.cs | the 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 unchanged | actual 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-910 | Hud/ParkHud.VisitorInfoWindow.cs | the 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 only | the 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 name | Former | What it is |
|---|---|---|
ui-font-tier-by-scale | APPROX:UI-002 | The 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-filtering | APPROX:UI-005 | The 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-back | APPROX:UI-012 | A 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-sizes | APPROX:UI-013 (part) | The sizes of OpenTPW's own windows (UiDialogs.CenteredWindow), which have no original layout table. |
challenge-offer-repost | APPROX: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-art | APPROX:UI-025 (part) | The tube body is drawn as rectangles and its icons as discs. |
preview-icon-cpu-projection | APPROX: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-text | APPROX: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-steps | APPROX: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-fit | APPROX: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-focus | APPROX: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-writes | Former: 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-pitch | APPROX:UI-044 | The 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-audio | APPROX:UI-942 | The 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-window | APPROX: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-start | APPROX: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-class | APPROX: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-path | APPROX: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-always | APPROX: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-reads | APPROX: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-timing | APPROX: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-waves | APPROX: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-dropped | APPROX: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-tools | APPROX: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-fallback | APPROX: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-bound | APPROX: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-world | APPROX: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-leases | APPROX: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-adapter | APPROX: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-refusal | APPROX: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-copy | COMPAT-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-book | APPROX: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-help | APPROX: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.
APPROX:UI-061is[EXT:entry-price-window]: the entry-price window is a host layout over the economy values with the original's range and one-pound step.APPROX:UI-940is[EXT:frame-driven-at-60hz](first[EXT:lobby-fixed-step], at 30 ticks a second, now merged into the 60 Hz reference label, docs/COMPATIBILITY.md "Frame-driven timing"): the lobby effects advance at a fixed 60 Hz, independent of the frame rate.UI-041(retired October 30, 2026),UI-100,UI-905,UI-907andUI-941(retired: the lobby generator is clock-seeded,0x5D57CD) kept their IDs for the original behaviour that remained (UI-905 and UI-907 are retired since); their design-choice parts are[EXT:no-player-profiles],[EXT:software-pointers](the pointer art drawn by the UI),[EXT:list-selection-by-id]and[EXT:frame-driven-at-60hz](the islands and the flyers now step at the same 60 Hz).APPROX:UI-044is[EXT:list-row-pitch],APPROX:UI-942is[EXT:online-globe-audio]and the visitor info window ofUI-091is[EXT:visitor-info-window]; see the EXT table above.
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 press | Left 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:
| Measurement | Before | After |
|---|---|---|
| Map draw plus legend | 492,144 bytes/frame | 327,656 bytes/frame |
| Legend alone | 165,168 bytes/call | 680 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.