Execution status — October 12, 2026#
This is a development prototype, not the complete offline game. The full plan and final acceptance remain unchanged. The user approved publishing the plan, progress, and verified code to the fork. Git history records the published snapshots; original assets, native binaries, captures, and local agent runtime files remain outside that publication.
Theme Park Inc: the advisor's queue (November 26, 2026)#
Theme Park Inc's advisor now has the original's queue, and every advice goes through it: the weather forecasts and the notification letters so far. This is the first phase of the advisor port (TPI-ADVISOR.md).
The advisor thing (
0x718190) runs in the world tick, at the advisor's place in the thing pass. It holds eight advice records and plays the best one once the last one's window has passed.Acceptance (
0x718B40) follows the executable for all ten message groups: the repeat intervals by play count, say-only-once, the slaps that discard an advice, the TutorialOn option, the help-button bypass, the pending-duplicate limit and the variant rule. A full queue replaces the first lowest score but never a letter (0x718E90). Letters are chosen before any other advice (0x718F80). The cancel (0x718990) clears an advice and undoes it while it plays.The history of every advice is the player's, in the career file (
mHistory), so it carries over from park to park as the original's does.The descriptor table ships as
content/data/tpi-advisor-descriptors.toml: all 664 rows and 606 messages. A new oracle checks it against the executable's initializer, and checks 82 acceptance cases and the replacement, selection and cancel scenarios that the tests repeat.Timing. The window runs on an advisor clock that moves on by each world tick's real time, 248 ms divided by the park clock's rate (the player's speed, or a camera flight's), as the original's unscaled sub-clock does against its rate-scaled world ticks. A pause freezes it, and a load sees the same windows (
[EXT:tpi-advisor-tick-clock], user decision). The window help delay, a wall-clock delay in the original, is measured on the same clock. Until the advisor's presentation comes (P2), the window holds the response's voice length, now read from the speech data in the simulation, plus 1000 ms. The original holds the clip sequence plus the closing clip plus 2000 ms; P2 replaces the voice length with that.Letters. A bank or challenge letter's advice now waits in the queue and is spoken by the advisor, as the original does, instead of with the letter.
Saves. The Science continuation save keeps the advisor (
TpiAdvisor); its history is in the career. A Science save from before, holding the old forecast queue or no advisor, is refused before its assets are checked. A Theme Park World save that holds it is refused.Corrections.
TPI-ADVISOR-FORECAST.mdis superseded. The condition table is used (one row every world tick), the table has 664 rows and 606 messages, the variant rule is at row+0x2C, and the window is not the voice length plus 1000 ms.
Labels: [EXT:tpi-advisor-tick-clock] is new (approved by the user on 2026-11-25). [EXT:tpi-capability-gates] now covers the condition scan (off until P3), the speech duration and the senders not ported yet. No approximation is added, and no CRT rand() draw is reached: the three presentation draws come with P2.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the advisor's playback and presentation (November 26, 2026)#
The second phase of Theme Park Inc's advisor port (TPI-ADVISOR.md §4). The advisor now speaks with the original's timing, and its captions arrive as Message Centre letters.
The pause after an advice is the original's: the advisor's animation sequence, its closing clip and 2000 ms. Before, it was the voice length and 1000 ms. The sequence is generated (GenerateAnimSequence
0x715AB0) or canned (0x715BC0), from the clip lengths of the level's advisor model. On Science a forecast holds the advisor for 5.2 seconds.The presentation runs in the simulation: the speech (
0x716230), the per-frame advisor (0x716ED0: the delayed voice, the LIP walk and the talking mouth) and the stop (0x716950). They run once per 31 ms substep, on the advisor clock. A voice longer than its sequence keeps the advisor talking, and an advice due then is not said, as in the original.Its three random draws (the animation clips, the mouth shape and the stop sound) come from a random stream of their own, seeded from the session seed, saved and hashed. They never touch the world's generator (
[EXT:tpi-advisor-presentation-rand], user-approved 2026-11-24).No voice. A missing voice takes the length the original reads for a voice that does not play (1 ms); nothing is invented. With AdvisorOn off, only the help button's advice is said.
Captions are Message Centre letters. Each forecast and letter advice files an unread row from its tag record (
0x635D80, branch 0x18), with the advisor as sender. The forecast caption line is gone.Sound. The voice plays when the presentation starts it. A cancelled advice ends with one of the three stop sounds.
Saves. A load starts the advisor silent, as the original's does (its advisor init runs before the park file). The save gains the presentation's random stream and the AdvisorOn option; saves from the first phase still load, with a fresh stream.
Oracle. A new oracle runs the sequence builders, the speech, the stop and the per-frame advisor on the executable, with
rand()replaced by a seeded generator. Its 69 cases are the tests' cases.
Labels: [EXT:tpi-advisor-presentation-rand] is new (approved by the user on 2026-11-24). [EXT:tpi-advisor-tick-clock] now also covers the per-frame advisor's substep pacing and the voice's length on the advisor clock. No approximation is added, and no other CRT rand() is reached. The advisor model is not drawn on screen yet; that comes as a client change of its own (P2b).
The original game was not launched, and no binary or data is included.
Theme Park Inc: the advisor on screen (November 26, 2026)#
The client side of Theme Park Inc's advisor port (TPI-ADVISOR.md §4.4). While the advisor speaks, its model now stands over the bottom right of the screen, as in the original.
The model and its place. A speech shows the model its response names: the level's advisor for the forecasts and the letters (on Science the bug with the science helmet, holding the forecast letter), the global one otherwise. It stands where Theme Park Inc's model slots put it (
0x464E7F: further right than Theme Park World's advisor), over the experimental HUD.Clips and mouth. The model plays the clips of the sequence the simulation chose, each for its own length, and starts no clip after the frame that ends the speech (
0x716F7B,0x717067). Its mouth is the one the simulation's per-frame advisor drew. Each clip start applies Theme Park Inc's own update (0x715ED0) and accessory table (0x715CF0), which differ from Theme Park World's; the level's theme costume comes from itsStandard.sam.Shown and hidden. A camera flight, accessory
0x29Aor a stop hides the advisor, as in the original (0x7163C3,0x4650B0); after its last clip the model goes.Only a reader. The view reads the simulation and never writes to it: a test plays a forecast with and without the client's reads and compares the saves. A drawn frame shows the advisor at its own point of the world tick, so the clips move smoothly between ticks. A model that cannot be read is logged once and not drawn; the models load at the first speech that shows them, also in the browser.
Theme Park World's advisor shares the drawing code, which moved into
Advisor.DrawRigandAdvisorImageTargetunchanged.Smoke and capture. The Science smoke posts a rain forecast and requires the level advisor on screen with clip 25 and a mouth, then gone.
--debug-tpi-forecastnow waits for the arrival flight to end, since a flight hides the advisor's head.Review follow-ups of the playback phase. TPI-ADVISOR.md lists the co-op prerequisite on speech data; a test shows the world generator ends the same with and without speech data; the response rows are read-only; the save test of the first phase's advisor shape uses the save's own JSON options.
Labels: no new approximation and no new extension label. [EXT:tpi-advisor-tick-clock] covers the drawn frame's point of the tick, [EXT:tpi-text-hud] the advisor drawn over the text HUD, [EXT:advisor-aspect] the width outside 4:3, and [EXT:tpi-capability-gates] the award ribbons' texture swap and the clip-bit screen effects, which no ported response uses. No new rand() is reached.
The original game was not launched, and no binary, data or screenshot of original art is included.
Theme Park Inc: the advisor's first event senders (November 26, 2026)#
The fourth phase of Theme Park Inc's advisor port (TPI-ADVISOR.md §9). The advisor now hears the Message Centre, its windows and the mission controller, and every one of its 606 messages has a recorded producer.
Producer inventory.
content/data/tpi-advisor-producers.tomlclassifies every message once: 217 scanned, 15 scanned with a zero score, 168 posted by game code, 67 window help and 139 with no poster found. Each row names the posting addresses and whether OpenTPW says it.The executable's tables. All 994 advisor responses and the scorer's whole
Advisor.samschema now come from the executable (a new oracle checks both), so any posted advice speaks with its own voice and sequence, and the 194 score callbacks that read oneAdvisor.samkey score as the original's.Unread mail. The third unread letter makes the advisor mention the Message Centre (
0x198), the sixth, twelfth and so on again (0x15D).Window help. The Message Centre, the mission window and the two wage windows say their help after the panel delay when they open, on their help button, and cancel it when they close. F1 repeats the last tutorial advice.
Missions. The researched obstacle, the removed or opened obstacle, the promotion and the mission window's close are posted; the end of a camera flight cancels the obstacle advice.
Challenges. Accepting a challenge and its time-out cancel its sender's advice, and a challenge loss that costs the job says the firing letter twice, as the original does.
Still gated (
[EXT:tpi-capability-gates]): the mission panel's advice, which speaks the presenter's voices; the go-to hint, whose score needs the first-hour clock (P7); the tool-switch cancels, as the tool mode is not modelled; the help of windows OpenTPW does not have; the challenge mails; the award advice (D-7); and the senders of P5.
No new label or approximation is added, and no CRT rand() is reached. The original game was not launched, and no binary or data is included.
Theme Park Inc: the guests' own state machine, phase 3b (November 26, 2026)#
The guests of Theme Park Inc's own state machine (the hidden switch --tpi-native-guests, still off by default) now visit an attraction as Theme Park Inc's guests do: they are loaded, wait for the ride's script, ride under its control, pay, take the use's effects and are let off. Phase 3a's bridged boarding through Theme Park World's rules is gone. With the switch off, Theme Park Inc and Theme Park World behave exactly as before. TPI-GUESTS.md has the details.
Being loaded (state 16,
0x617F80): the walk to the stand point, the price test, the umbrella shop's weather reaction armed in the queue, AdmitPerson, and the rejoin of a refused guest.Waiting for the script (state 17,
0x61A21D): the entry's chance roll0x5E7A00(one world draw against the thing's win byte, into+0x21Band the script's VAR_PARAM); the guest keeps its list place until the script has taken it, and the ride's head step forces such a guest onto the ride (0x6182A0).Under the object's control (state 20): the entry
0x61A77Eputs a balloon and an umbrella away, plays a teleporting ride's beam and posts the admission's challenge events.The exit (
0x619980) and the use routine (0x6118D0): the used history, the visit counts, the fee recorded at the call (+0x1B4) and paid at the exit (0x6126D0), the customer, the fatigue, a scripted result, and the outcome0x612740: the excitement match, the type's effects, a shop's own terms, the small portions, the special ingredient, a balloon, a costume or an umbrella from a shop, a relief object's visit, a won play's gain, the mood with its thought and animation, and the perception records.Being unloaded (state 19,
0x618380): the walk off, the old major destination (and the photo booth's, unreachable without add-ons), and the mood or shrug animation. With Theme Park Inc's navigator (--tpi-native-walk) the sprite placement that the entry calls for a teleporting ride (0x61A70B) raises the stamp counter and clears a stranded mark below it, before the beam, as the guest constructor's does (NV3).The removal message now gives a rider its model back (
0x60D120, state 20), and the balloon prank (state 6's case 5) bursts the balloon of a guest on the prankster's cell.A lost balloon's litter: the umbrella's opening in the rain (
0x61413A), state 20's entry at an umbrella shop and the balloon prank (0x613D00(1)) drop Theme Park Inc's burst balloon (the litter types 9 to 12, by the balloon's colour through0x9D0614) on the guest's cell through the common drop0x5D8C80, which reseeds the world generator with the cell and draws twice; Theme Park Inc's litter sprites draw them from its ownSPR_LIslots 8 to 11.A balloon's colour is drawn modulo the loaded balloon bank's slot count (
0x690394, the ESP's slots with frames), and a won play's gain takes its logarithms at full precision, as the x87'sfyl2xdoes, rounding only the quotient, the ratio and the product.
Labels:
[EXT:tpi-capability-gates]now covers the toilet prank's priming and its victim (phase P4), the attraction history's rings the visit raises besides the declined ring, the analyser's balloon, costume and umbrella counters; it no longer covers state 6's balloon prank, OnAdmittance's fee word or the removal message's rider.[EXT:tpi-no-maintenance-wear]covers a relief visit's toilet wear (0x5E78E0).[EXT:tpi-twp-guest-rules]no longer covers the boarding.
Open: a guest let off while still in state 17 (a script that takes it and lets it off before its own update) is not yet handled. The original keeps a ghost of it in the ride's queue list; OpenTPW ignores the let-off for now, so the guest stays stuck and a later save of the park is refused. It is under research before a decision.
No new approximation or label is added, and no new CRT rand() site was found.
Saves: the native block gains five optional members (the fee, the use flag, the balloon colour and a costume's sprite words), without a new schema. A native guest may now hold a balloon. A guest saved in states 16, 17, 19 or 20 restores. A phase 3a save's bridged guest restores while it was still walking to the stand point; one waiting, riding or leaving is refused, because the bridged boarding never saved the chance roll, fee and mode its native state needs. A Theme Park Inc park's litter may hold the burst balloons 9 to 12.
Review follow-ups: ThemeParkIncX87Single is folded into ThemeParkIncX87; the deferred items (a native oracle round for case 3, the guest's sex from its own sprite words, the cell's thing chain order of the minor decision, WorldRng.Next(0)) are recorded in TPI-GUESTS.md.
Verified with these checks:
The new native oracle
tpi_guest_visit_oracle.pyfound no mismatch at control word0x7Fover 1000 cases each of states 16, 17, 19, state 20's entry and the use routine with its outcome (with sideshow prizes and prices up to 100,000); the phase 1 to 3a oracle still agrees.New tests (
ThemeParkIncNativeVisitTests) for the fee and its payment, the chance roll, the use routine of a balloon shop against the oracle's reading, a lost use, a won play's gain, the head step's force, the removal of a ridden ride and the balloon prank; the oracle's reading of the use routine for a sideshow won and lost, a costume put on and taken off, an umbrella shop and a relief visit; the balloon litter's reseed after the prank and in the rain; the stamp counter at a teleporting ride's unloading with the navigator; an exhaustive check that the won play's ratio rounds as the x87's does for every quotient; saves of a guest mid-ride and the refusal of a phase 3a bridged rider; a Science play test where native guests board a ride, ride it and are let off. The native rigs also pass with Theme Park Inc's navigator (OPENTPW_TEST_TPI_NATIVE_WALK=1).The Theme Park Inc and Theme Park World suites pass with their data, and the determinism pins do not move.
The silent, offscreen Science smoke passes with the switch off and with it on.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the navigator's edge rules (November 26, 2026)#
The first phase of the Theme Park Inc navigator port (NV1): the walkers' edge test, behind a hidden switch.
The edge test. Theme Park Inc's
0x5D7B60is Theme Park World's with three rules that persons meet: an obstacle's walkway cell (the obstacle flag+0x24) is no walkway fast path, unowned land blocks after the path and walkway rules, and terrain holes (type 8) block.WalkEdges.Blockedreads them underWalkEdgeRules.ThemeParkInc, which the park's cell map carries; the step commit and the route search follow. Masks 2 and 3, and the rules only they reach, are unreachable in Theme Park Inc: every writer of the walk mask stores 0 or 1 and the camera passes 0 then 1.The switch. The hidden option
--tpi-native-walk(off by default) selects the rules for a Theme Park Inc park. A Science save records the setting in an optional member (switch-off saves are unchanged), and a save made with the other setting is refused in both directions. Off, every walk is as before, so no determinism pin moves; the Theme Park Inc pins move once, when the port's last phase turns the switch on. Theme Park World's walk is unchanged.Separation. The gardener is already one of separation's neighbours, as in Theme Park Inc's neighbour query
0x63F1E0; a test pins it.The oracle. Three new x86 targets run Game.exe's edge test, step commit
0x63F5D0and route search0x640C50on synthetic maps with holes, obstacle walkways and unowned land: they agree on every input with the Python statement of the port (the C# meets Game.exe's results directly on one map), and Theme Park World's rules differ (docs/reverse/ORACLE.md, X25).Notes. docs/reverse/TPI-NAVIGATOR.md describes the navigator, the edge test rule by rule and the phases still to come.
No new approximation or label is added, and no C runtime rand() is reached.
Verified with unit tests that hold Game.exe's own results on one map (every edge for masks 0 and 1, six searches, diagonal commits and a whole walk that keeps off unowned land), the save switch's refusals in both directions, the gardener test, the new oracle targets and the existing X25 targets, the Theme Park World walk, guest and pin suites, and the silent, offscreen Science smoke with the switch off and on.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the navigator object (November 26, 2026)#
The second phase of the Theme Park Inc navigator port (NV2): the walk object now holds every member of the original's navigator, shared by Theme Park World and Theme Park Inc.
The members. OpenTPW's walk gains the navigator members it lacked: mass, the radius as a member, the speed caps (moved into the walk object; the guest and Theme Park Inc's staff member forward to them, while Theme Park World's staff compute and pass their own), the local axes the steering step writes after each commit, the formation position and force (no simulation writer; passed through), the five subpath distances of the set-up, which follow_path now reads as the original does, the written waypoint slots and the whole progress history word.
The record. The navigator's 177-byte serializer (Theme Park Inc
0x63AD30, Theme Park World0x50D150) has one reader and writer: every member in alphabetical order with its exact width. The walk maps onto it both ways, and this is the record the native park writer will store.Theme Park Inc's arithmetic. Theme Park Inc's walk takes its square root as the game thread's 24-bit x87 rounds it, which differs by one unit on some lengths and axes. Theme Park World's walk keeps its exact root for now, so its results, digests and saves do not change; its oracle ran at a wider precision than the game thread's, and reading it at 24 bits is a recorded follow-up.
The switch. Under the hidden
--tpi-native-walkthe new members join the digest and the guest and staff saves carry the navigator's record in an optional member, also while a guest stands or rides, since the original saves its one navigator object whole; a record that disagrees with the walk, or one in a save without the switch, is refused. Off, nothing changes.The oracle. New x86 targets run Game.exe's navigator constructor, set-up and steering step through whole walks (every byte of the record after each step), avoid_walls, the square root and both halves of the serializer; all agree with the port. The C# meets three of Game.exe's walks directly, and Theme Park World's steering oracle now compares every member too.
No new approximation or label is added, and no C runtime rand() is reached.
Verified with unit tests that hold Game.exe's records for three walks, load and save each record unchanged, continue a loaded walk, load and write back the navigators of the shipped Jungle save and eleven more original saves byte for byte, and resume native guests (mid-walk and standing) and a native handyman with identical digests; the new and existing oracle targets; the Theme Park World walk, guest and pin suites; and the silent, offscreen Science smoke with the switch off and on.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the walk step and the native stamp counter (November 26, 2026)#
The third phase of the Theme Park Inc navigator port (NV3), behind the hidden --tpi-native-walk switch: guests and staff now take Theme Park Inc's own walk step, and the stamps a walk and a stranded guest hold are the original's own counter values.
The walk step. One step routine for the guests and the staff, as in the original: the steering step, the cell chain, the stranded mark cleared, then the result. On arrival it now writes the heading as well (the original's angle word), and only kids and guards run; a grown-up guest walks with a speed bonus too. The sprite interval is computed at the game thread's 24-bit precision.
The speed step. Theme Park Inc's per-update speed is Theme Park World's value for value; it now carries its own address, and the drawn position's interpolation starts from the copy the speed step takes, as the original's does.
The route requests and the staff route. The requests to a cell or a point, the stranded test around the guest's cell or its queue's back, and the staff route with its closed-park refusal and walk mask are verified against the original.
The native stamp counter. With the switch, the cell map's counter counts every simulation call of the original's counter routine in its order: the route requests, the walk set-ups, the wander's gates and stranded mark, the guest constructor's sprite placement and the edits. The original also raises it once per person per rendered frame, which makes its stored stamps depend on the frame rate; OpenTPW counts the simulation's calls only, under the new user-approved label
[EXT:tpi-stamp-counter-sim-only]. The advisor's stranded-person scan is not ported, so it raises nothing. Counting every call changes no comparison: a Theme Park World park keeps its edit-only counter, and a test replays a Theme Park World guest park under both modes, tick for tick alike.Saves. Off, nothing changes. On, the layout writes the counter in an optional member even while no block is stamped.
Review follow-ups from NV2. The save documentation now describes the optional navigator record and why switch-on saves without it still load; the local axes are computed only for a native walk; and loading an economy refuses a staff navigator record without the switch, as the resume file already did.
No new approximation is added, and no C runtime rand() or world draw is reached from the walk step, the speed step, the route requests or the staff route.
Verified with new x86 oracle targets for the walk step (40 whole walks of every person kind), the speed step, both route requests with every kind of stranded mark, and the staff route, all agreeing with the port; unit tests that hold Game.exe's walk steps for a kid, a grown-up, a guard and a handyman, compare the navigator records including their stamps, replay a Theme Park World run under both counting modes and check the level's switch; the native-guest tests with both switches on; the Theme Park Inc and Theme Park World guest, walk and pin suites; and the silent, offscreen Science smoke with each switch combination.
The original game was not launched, and no binary or data is included.
Saves keep an imported park's untouched statistics history (November 26, 2026)#
A fix for the Theme Park Inc Science smoke, which failed about two runs in three on main with "Science economy continues as in the uninterrupted park".
The cause. The Science park imports its prebuilt analyser's monthly rings. No month has run, so every ring is empty, but their unread slots keep the prebuilt's
0xCDCDCDCDfill as raw words (the ring loader reads every slot raw). A save left the history out whenever no ring had an entry, so the continued park restored zeros in those slots. Once a guest arrived within the smoke's continuation window, the uninterrupted park's history was no longer empty and its save carried the raw words, while the continued park's carried zeros. Whether an arrival landed in that window decided the outcome.The fix. A save now leaves the statistics history out only when it equals a fresh park's: no entry, every slot word zero and no arrivals this month (
ParkStatisticsHistory.IsFresh). A Theme Park World park that never had history still writes nothing, so its save bytes and run hash are unchanged. An imported park whose rings are untouched but hold saved words now keeps them.Saves. PARK-SAVES.md notes the rule. An older Science save without the block still loads, with a fresh history as before.
No new approximation or extension label is added.
Verified with new tests that save and restore an entry-less imported history with filled slot words (a synthetic Theme Park World analyser, and the retail Science park with OPENTPW_TPI_PATH), both failing before the fix, and that a fresh park still saves no history; the full test project with Theme Park Inc and with Theme Park World data; and the silent, offscreen Science smoke five times in a row.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the guests' own state machine, phase 2 (November 24, 2026)#
The guests of Theme Park Inc's own state machine (the hidden switch --tpi-native-guests, still off by default) now idle, wander, play their spot animations and get rid of their litter as Theme Park Inc's guests do. With the switch off, Theme Park Inc and Theme Park World behave exactly as before. TPI-GUESTS.md has the details.
Idle (state 6,
0x614A40) runs in full. It takes one world draw first, then, in the original's order:the mood animation of a happy guest (by generation and the sprite bank's gender) and the vomit of a sick one, both through the spot animation
0x60FB30;the litter urge, with Theme Park Inc's bin search
0x618D10(the bins' script variables and their stand point) or litter on the cell;the leave gate, which goes on to the later steps, as the original's does;
the turn towards a show and the reaction to a performing entertainer (
0x614D41), which the entertainer's port had left gated;the prank gate on Standard.sam's prank words and the prank switch: the stinkbomb, the toilet prank and the litter prank, with the prank report as an event; the bin prank's search and the start of rumours and whinging, which end the update as the original's do;
the four-way decision: the can't-decide pause, the wander, and the two
rand()draws towards an infodesk or another guest, which are world draws.
Wander (state 7) and the walk to a bin (state 9) run, with the wander flag, state 7's entry and the bin's
VAR_USE, capacity and fire tests.The removal message
0x60D120sends a guest whose target is demolished back to idle.The freeze
0x60FF40is UI only (the park view's input handler) and is documented, not ported.
Labels:
[EXT:tpi-staff-crt-rand]now also covers the two draws of0x615318and0x615328, asworld.Next(0x8000) < 0x3FFF(the lead's decision of 2026-11-23).[EXT:tpi-capability-gates]covers:the prank switch's state entries of the bin prank (phase P4) and of rumours and whinging (phase P5), the plant search (phase P4) and the balloon burst, which no native guest can meet before phase P3 (a restore refuses a native guest holding a balloon);
the major decision's ride scan (phase P3);
the infodesk and the walk to another guest (phase P5);
the prank thought 0x15;
the removal message's ride and queue branches.
The entertainer reaction is no longer under it.
[EXT:tpi-no-maintenance-wear]keeps the bins' fill: a dirty bin's RegionFX rows are not changed.[EXT:tpi-twp-guest-rules]keeps the wander destination, the walk and the route search.[EXT:original-undefined-reads]covers a bin walk whose target no bin holds any more.
No new approximation or label is added, and no new CRT rand() site was found.
Saves: the native block gains one optional member, the wander flag +0xE8, which phase P1 did not hold; the guest snapshot schema does not change. States 7 and 9 now restore.
Verified with these checks:
The native oracle
tpi_guest_states_oracle.pyruns at the game thread's 24-bit precision. It found no mismatch over:1000 cases of state 6 over the prank codes 0..8, with the searches stubbed;
3200 spot animations and 3000 mood cases;
1000 cases of the dispatch in states 7 and 8;
1000 cases of state 9;
the phase P1 routines.
New tests for the idle branches, the entertainer reaction (also against a hired and performing Science entertainer), the pranks, the decision, states 7 and 9, the removal message and the save.
The Theme Park Inc, save, resume and guest filters pass with the retail data, the Theme Park World guest and determinism filters pass with its data, and the determinism pins do not move.
The silent, offscreen Science smoke passes with the switch off and with it on; its walk check no longer sends the idle guests home first, because idle guests now act.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the guests' own state machine, phase 3a (November 24, 2026)#
The guests of Theme Park Inc's own state machine (the hidden switch --tpi-native-guests, still off by default) now choose a ride by Theme Park Inc's score, walk to it, join its queue, move up and are called to the stand point as Theme Park Inc's guests do. With the switch off, Theme Park Inc and Theme Park World behave exactly as before. TPI-GUESTS.md has the details.
The ride choice. The attraction score
0x6101E0is ported with its gates (a special ride awaiting its activation, read from the economy's special-ride table as the Theme Park World rules do; a gender; the balloon and umbrella shops), Theme Park Inc's weights and new-ride words, the golden-ticket and upgrade scales at the game thread's 24-bit precision, the weather and generation percentages and the history divisions. The major decision0x610080uses it, so state 6's ride scan, gated in phase P2, now runs; the minor decision0x6114B0runs while the guest walks.The walk to a ride (state 13,
0x616AC0), the queue (state 14,0x6176C0) and the queue step (state 15,0x61A1DB) run, with the full branch tree of state 14: the call to the stand point, a worn relief object, the umbrella shop's weather reaction, the move-up and its delay, the limit, a refusing coaster or track, the happiness bands 80/20/10, the toilet, the boredom after 100 turns and the head's turn (two world draws, one turn in ten).The queue functions (
0x5DFF50,0x5E0100,0x5E0280,0x5DFDD0,0x5DFE00,0x5DFF10,0x5E0520, FindQueueDestination0x619530and the dismissal0x619700) are Theme Park World's with the field offsets moved, so the queue list is the ride bridge's; the guests' words+0x2CC/+0x2CEfollow it.+0x21Bis the guest's place in the queue states and the ride's roll from state 17 on.The ride's side: the call (OnAdmittance
0x619670), the closed or broken ride's head step, the queue edit's re-evaluation0x6197F0and the removal message's queue branch.The boarding (states 16, 17, 19 and 20) is phase P3b's. A called guest enters state 16 as in the original and then boards, rides and leaves by Theme Park World's boarding (
[EXT:tpi-twp-guest-rules]), coming back idle. Every world draw up to the boarding point is the original's; the known differences after it (state 17's missing entry roll, Theme Park World's balloon reseeds, sideshow tail and small-portion draws) are listed in TPI-GUESTS.md. The end of a bridged ride writes the thing id into the used history with Theme Park Inc's shift (0x6118E9), the fare's happiness term reads the happiness at the join (+0x234), the ride skips the pre-update's thought draw as state 20 does, and the bridged step first runs on the update after the one that entered state 16.
Labels:
[EXT:tpi-staff-crt-rand]covers the CRTrand()at0x61795E(the delayed weather reaction in an umbrella shop's queue), asworld.Next(SlowestWeatherChangeResponse).[EXT:tpi-capability-gates]now covers the information desk's score (phase P5), the attraction history's ring 10 (no reader) and OnAdmittance's fee word; it no longer covers the major decision's ride scan.[EXT:tpi-twp-guest-rules]covers the bridged boarding from state 16 on until phase P3b.
No new approximation or label is added, and no new CRT rand() site was found.
Saves: no new field. A native guest in states 13 to 16 now restores, including a guest saved mid-ride in the bridged boarding; a guest in a queue state must be in the list of the ride it names. TPI-GUESTS.md states how phase P3b will map or refuse such a mid-ride guest.
Verified with these checks:
The native oracle
tpi_guest_states_oracle.pyfound no mismatch at control word0x7Fover 1000 scores, 1000 cases of the queue functions and the limit, 1000 cases each of states 13 and 14, state 15 and the earlier phases' routines; a separate run of 5000 scores agreed too.New tests (
ThemeParkIncNativeQueueTests) for the score, the limit, a guest that chooses, queues, boards and comes back idle, the links and places, the refusals, the needs bands, the head's turn, the umbrella shop's weather draw, the removal message and saves of a queued guest and of a guest mid-ride; a Science play test where native guests queue and ride the prebuilt rides, and one for the level's attraction view (choosable and hosted); a native guest never chooses a special ride awaiting its activation.The Theme Park Inc, save, resume and guest filters pass with the retail data, the Theme Park World filters pass with its data, and the determinism pins do not move.
The silent, offscreen Science smoke passes with the switch off and with it on.
The original game was not launched, and no binary or data is included.
Theme Park Inc: special rides and the first share-prize challenges (November 24, 2026)#
Theme Park Inc's special rides now await their activation, and the first share-prize challenge types are measured. These are the steps toward the last mission, miss17, which needs 51 % of the company's shares from thirteen share-prize challenges. Three of them, the Science rows 8, 14 and 22 (2900 shares), can now be offered and won in play.
Special-ride table. A placed special ride (
Info.IsSpecial1) gets a record of the staff itsSkillSet[n].Numkeys ask for (0x623DC0). A member whose training ends takes a slot that asks for his staff type and new ability (0x623FB0), and leaves it when he goes to train again (0x6241B0). The prebuilt Science park's four records are imported as saved.Activation. Selecting a special ride that awaits its activation shows its staff slots, the golden tickets it needs and the note on undiscovered abilities, in the game's own words, with an Activate Ride button. The button is enabled once every slot is filled and the career holds the ride's
UsageInfo.GoldenTicketCost(0x6243C0). It spends the tickets, marks the ride activated (mBeenActivated) and empties its record (0x5E8230,0x624280). Guests skip a ride that awaits its activation (0x6101FD). The prebuilt park's attractions keep their saved open word, so the special rides start closed, and a selected ride offers the ride window's open toggle (0x57FF8E,0x57D370) as a HUD button.Trigger. The share challenges' availability reads the target ride's activation, or the research lab's current project while the ride does not stand (
0x5C3828,0x61E6A0: slot 1 counts only when slot 0 holds no project). Type 46's trigger reads the park analyser's breakdown count, which is never raised in play (0x5C3927).Types. 17 (riders on a special ride), 46 (the worst ride's repair,
0x5B7D30), 52 (riders and the ride's repair) and 58 (riders as a percentage of the guests in the park) are measured. A guest admitted onto a Theme Park Inc ride counts for 17, 52, 58 and the first value of 57, as the native guest's admission does (0x61A77E); a refused boarding posts nothing. A win's share prize reaches the shares game.Saves. The table and the activated rides go into the Science continuation save; a Theme Park Inc save from before them is refused before its assets are checked, and a Theme Park World save that carries them is refused.
Labels: [EXT:tpi-twp-guest-rules] covers the admission events on the boarding of Theme Park World's guest, which the native guests' state 20 will take over. [EXT:tpi-capability-gates] now also covers the trigger's branch for a target that is not special, the activation's camera fly-over and track tool, the advisor's lines when a ride can be activated, and the share types still unmeasured: 48 and 56 (the mood rings), 50 and 55 (the guests' top three thoughts), 53 (the track-ride rating), 51 (the Arabian palace coaster, a special ride no OpenTPW world places) and 57 (the photo booth's users). [EXT:tpi-text-hud] covers the activation lines and button in place of the native activation window, and the open toggle's button in place of the ride window. No new approximation or label is added, and no CRT rand() draw is reached.
Verified with these checks:
New tests for the record builder and its staff types, the slots' assign and release on owned land, the Activate Ride test and the activation (the ticket spent, the flag, the refusal without staff or tickets), the trigger with the research lab's fallback, each new type's value, win test and failure test, the admission events (and none for a refused boarding), the guests' refusal of a pending ride, the activation lines' heads and words, a won riders challenge's shares, the save round trip, the refusal of an older save and of a Theme Park World save that carries the table, and, with the retail data, the prebuilt Science park's four records against the builder.
The Theme Park Inc slice smoke test selects the prebuilt Water Ride, checks its activation lines and disabled button, fills its slot, activates it with a ticket, and checks that it stays closed and offers its open toggle, enabled only while its queue joins a path.
The original game was not launched, and no binary or data is included.
Theme Park Inc: park awards and the shares game (November 23, 2026)#
Theme Park Inc's park awards and its shares game now run, and the last mission's statistics (miss17: six park awards and 51 % of the company's shares) are measured. The 51 % needs every one of the thirteen share-prize challenges won, and OpenTPW offers none of them yet: their types (17, 46, 48, 50 to 53, 55 to 58) are not among the measured challenge types (2, 25 and 41, ThemeParkIncChallenges.IsPorted), so until those types are ported, 51 % is reachable only through the cheats extension's "Win the game...".
Award check. Every 100th world tick, after the calendar, the check
0x606BE0measures the park againstlevels/Standard.sam'sParkAwardthresholds in its order and decides at most one award (0x5D6600). Six of the eight measures are ported: the cleanest park (0x5B80D0,0x5B8E70), the most decoration (0x5B5680), the best security (the guards' patrol areas0x5B8A70plus the secured cells0x5B8D10), the best staff training (0x5B3460,0x5B2F40), the go-kart track's longest straight (0x5B6D20) and the water ride's sections (0x5B6FA0). The storage0x74C760marks the career, makes the current zone the holder and moves an award to the zone that beats its holder's value.Shares game. The shares game
0xAA0128is kept with the career: the reset0x621210, the start-up's 1000 shares at a price of 100 (0x620930), a won challenge's share prize (0x621CE0) and price effect, a slot's first loss's price fall (0x621D30), and the annual report's score and price step (0x621F50). The thirteen share prizes add up to exactly the 15300 shares miss17 needs.Exit statistics. Types 6 (the awards held,
0x74C860) and 7 (the shares owned × 100 / 30000,0x5EFF9F) are measured and decided.HUD. The text HUD's challenge panel shows the shares owned, the percentage, the price and the awards held, and an award decided becomes a note, in the game's own UITEXT words.
Cheat. The cheats extension adds the debug menu's "Win the game..." (
0x53835D): 51 % of the issued shares.Saves. The shares go into the player file (as the original's 182-byte section) and the Science continuation save; a Theme Park Inc save from before the shares game is refused before its assets are checked.
Labels: [EXT:tpi-capability-gates] now also covers the two coaster awards (their measure needs the attraction window's byte +0x3F, the month byte +0x40 and the coaster track record), the annual report at the year change (it reads analyser rings OpenTPW does not keep), the award advice (the advisor's descriptor rows for its ids are not read) and the end-of-game letter of "Win the game...". [EXT:tpi-text-hud] covers the panel line and the notes in place of the native share portfolio and Park Awards panels. No new approximation or label is added, and no CRT rand() draw is reached: the shares panel's colour draws (0x5813A1, 0x581ABE) belong to the native panel, which is not ported.
Verified with these checks:
New tests for each award measure at its threshold, one award per check, the 100-tick gate, the storage's won, held and moved rules, the share price on a win, a loss and the annual score, the share prize and the percentage, miss17's statistics 6 and 7, the cheat, the player-file and park-save round trips and the refusal of an older save; with the retail data, the bound Standard words equal the keyed thresholds and the thirteen share prizes reach exactly 51 %.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the guests' own state machine, phase 1 (November 23, 2026)#
Theme Park Inc guests can now run Theme Park Inc's own state machine instead of Theme Park World's rules. A hidden switch, --tpi-native-guests, turns it on. It is off by default, so the default Theme Park Inc park and every Theme Park World park behave exactly as before. Tests turn it on. TPI-GUESTS.md has the details.
The machine. A native guest carries its own record of the constructor's fields. It has:
the state setter
0x61A540with its entry table and the dispatch0x619FF0;the name table, the guard's catch test
0x614720and the queue predicate0x61AC40;a projection of its state onto the shared guest state for the HUD and the statistics.
The pre-update
0x619B50is ported, with:the phase gate, the exit counter, the region words and the needs;
the thought draw and pick
0x60FC60, and the balloon countdown;the history shift, including its overlapping copy;
Theme Park Inc's own weather rule
0x611050: the generation's row, the heat wave included, on every phase update of a qualifying day.
Arrival and leaving.
The guest is built at the vehicle's stop. Off the park it makes two draws that the original discards, then walks to a ticket booth.
At the booth: Theme Park Inc's verdict (its products rounded once to single precision, as the x87 does), the wait for the gate (state 3), the walk to the entrance with the visitor number, idle.
Leaving: the walk to the bus stop (22), the wait for the pick-up (30), and the bus takes the guest.
The vehicle dispatch builds a new bus, heli or mono each time.
In this phase, idle (state 6) runs only its leave gate.
Settings. The guest states read Standard.sam's words by their addresses in the Standard object, and a test checks each address against its key.
Saves. The guest snapshot stays at schema 9. A native guest saves an optional block with all of its fields, and the save records the switch in an optional member written only when it is on, so a save made with the switch off is unchanged, and so are the hashes and pins. A restore refuses a save made with the other setting (in both directions), and a native guest in a state this phase does not run.
Labels:
[EXT:tpi-staff-crt-rand]now also covers the guests'rand()sites. Its text was widened on 2026-11-22 (user decision). The weather delay0x613F18is the one this phase reaches.[EXT:tpi-capability-gates]covers:the state 6 stub and the entries of the later phases' states;
state 5's tutorial tips;
state 30's tag mark;
the balloon's litter.
[EXT:tpi-twp-guest-rules]keeps the walk, the route search, the speed, the thought bubble's timing and the analyser's litter blocks.[EXT:tpi-bus-from-setup]now holds only on the default path.
No new approximation or label is added, and no new CRT rand() site was found.
Verified with these checks:
The native oracle
tpi_guest_states_oracle.pyruns at the game thread's 24-bit precision. It found no mismatch over:the catch test for every state word from -1 to 40;
the setter's phase 1 entries;
1000 pre-update cases;
1000 cases of the booth's verdict.
New tests for:
the tables and the switch;
the constructor's draws and the walk from the stop into the park;
the setter's entries, the pre-update and the weather rule;
the booth's verdicts, the leaving states and the vehicle dispatch;
the save block and the settings' addresses.
The Theme Park Inc, save, resume and Theme Park World guest and determinism filters pass with the retail data.
The silent, offscreen Science smoke passes with the switch off and with it on; with it on, its walk check sends the idle guests to the bus stop, because idle runs only its leave gate in this phase.
The original game was not launched, and no binary or data is included.
Theme Park Inc: review follow-ups (November 23, 2026)#
A small clean-up of the non-blocking points from the reviews of the Theme Park Inc mission window, camera and facilities work.
Zone global files are read once. The career keeps each zone's
global.samload (and a failed load, logged once) instead of reading and parsing it on every zone-record lookup, as the original loads it once per record (0x7509C0). The mission window's refresh asked for the record several times per frame.The mission window's refresh fails once. The refresh throws on incomplete data (a current zone without a record, a zone past the name table, an exit statistic past the table). The open still shows the failure; the tick now logs it once and keeps the last texts instead of throwing every frame.
Documentation.
0x5013C0has a second branch (it closes the window held in[0xA5E890]and sends no message 5); the Objectives key refuses in game mode 3 (0x42F04B), which OpenTPW never runs (its Theme Park Inc slice is the single-player career, mode 0), so nothing is ported for it; the mission window opens on the update after a zone-arrival flight ends (the countdown0xA9D258is 3 in that update); the letter go-to comment and theRIDES-040row no longer say the obstacles are not world things.Already fixed on main, so not touched: the player-folder link resolution (it shares
PathLinks.ResolveLinks), the source-contract and symbolic-link tests, the helper test for the replacing-park flag, the staff panel under the pause menu and the save-path tests,PressThemeParkIncMissionComplete(the mission window's Proceed calls it), and the Science build list's research note. The net-worth routine was read against0x5AFFB0earlier. Extension objects (pools, umbrellas, winter, torches) and mod objects are not loaded in a Theme Park Inc run, so none can vanish from its build list.
No new approximation or label is added.
Verified with these checks:
New tests for the single
global.samread and for the refresh that stops after its first failure; the Theme Park Inc, save and resume filters pass with the retail data.
The original game was not launched, and no binary or data is included.
Theme Park Inc: wage demands, the wage negotiation and strikes (November 23, 2026)#
Theme Park Inc's staff now demand rises, the player negotiates them, and unhappy staff go on strike in the park.
Wage demands. A member's demand on his demand day is filed in the tag tube as an unread "Urgent Wage Demand" from Miss Moody (
0x628CA0,0x5CEFB0), replacing the HUD note; an older demand of the same member goes. The training letters (finished, suspended) are tube rows too.The wage demand window. The row's go-to opens the window (table
0x9C9F64, generated bytpi_exe_layouts.py, whose parser now reads the varibox's layout command 19) with the member's statistics and an offer box that starts at the demand and steps byWageStepbetweenMinWageandMaxWage. OK negotiates the offer, the close and cancel buttons an offer of nothing, and the fire button dismisses the member (0x59A900).The negotiation. The results dialog (table
0x9BE518) answers with the decision0x559E00(the sums, then the single-precision ratio against100 − PercentageForBadWageDecision); closing it raises the salary by the offer, or, after a refusal, by the demand ("Accept the demand") or dismisses the member ("Let them leave").The dismissal (
0x629040) pays one more salary, clears the strike when he was its only striker, deletes his tube rows and destroys his thing: the staff HQ, the research lab and the objects he claimed let go of him, and his claims and cell effect go.Strikes. The staff HQ's month consideration now runs in the park (before the paydays). A role on strike walks to the strike area (
0x62BBA0, four world draws), stands there (states 4 and 5, all six roles, the strike template) and walks back to the entrance when the next month ends the strike or the park is closed and empty. The verified expected-wage expression matches the port's.Saves. The Science continuation save keeps the strikers, the strike records and the demand and training rows (
TpiWages); a Science save from before is refused before its assets are checked.
Labels: [EXT:tpi-capability-gates] now also covers the advisor's wage demand message 0x1C8 and the strike messages (noted, not said); [EXT:tpi-park-open] covers the strike join's gate test; [EXT:tpi-text-hud] covers the training letter's go-to. No new approximation or label is added, and no new CRT rand() draw is reached.
Verified with new tests for the decision's boundaries, the tube deletes, the windows' buttons and the dialog's close, the demand row and its member, the dismissal and severance, the strike walk, wait and end, the closed-park end, the save round-trip and the refusal of older saves; the silent, offscreen Science smoke files a demand, opens it from the tube and negotiates a raise.
The original game was not launched, and no binary or data is included.
Theme Park Inc: entertainers and guards (November 22, 2026)#
Every role of Theme Park Inc's staff pool can be hired and dropped now. The Entertainer and the Guard run Theme Park Inc's own state machines, and the guard's chase and first aid are not ported.
Entertainer. States 0, 1 and 0x17 (idle, walk, performing) follow
0x5D1E20: the idle voice and the idle end, the walking voice and walk step, and the performance with the work duration (Entertainer.MinWorkDuration10 toMaxWorkDuration75) and sound 0x87 at its end. The search (0x5D1A30) takes the gate, the tired test, the radius (alwaysMaxActiveRange5), a world draw divisible by 3 and a guest in the clipped square (the finder0x5B1B20, kind 1); the tail idles on turns divisible by 4 and patrols otherwise. His setter (0x5D1D30) draws once from the world whatever the state; for a performance the draw's remainder by the bank's performance count, the park's theme index (arabian,science,water,wIntro) and his look pick template 0x13 to 0x16, which are four new sprite programs of the table0x9CDA94.Guard. States 0 and 1 (idle voice 0xA7, patrol voice 0xA6, the decision
0x5D3C10: the gate, then the patrol on three turns in four, else idle) and the training states; he learns ability 9. The setter0x5D3E70clears his speed bonus before the common setter. His start draws the world once for his sprite variant (0x5D3253→0x6902F0(0xB),(R >> 2)modulo the banks), ignoring the candidate's byte; the entertainer keeps it.Cell effects. The constructors put the entertainer's row 0 and the guard's row 3 down on their cell, and the pre-updates (
0x5D1960,0x5D3B40) move them when the cell changes, both times with the radius the member's experience gives (MinActiveRange2 to 5,MinDetectionRange5 to 10) through the region writer0x5D7770, which takes the radius as an argument. The guests' needs phase reads the grid, so the entertainer cheers the cells around him. A removal with a larger radius than its add leaves its difference in the grid; the guard's security row shows it, and the park save keeps it as the environment residue.Rest. With the staff rooms buildable (#988), a tired entertainer or guard rests like the other roles: the byte tables send states 2 and 3 to
0x629EF0and0x62A1C0(the entertainer's0x5D1F70through0x5D1F05and0x5D1F11, the guard's0x5D3DD8through0x5D3D67and0x5D3D71), and 0x23 lies above both tables and goes to the common handler0x6287A0, whose case is0x62CA90. Both dispatches run the three rest states and a save holding one is accepted.Sprites. The entertainer is drawn from his theme's folder of
esprites.wad(two banks each forArabian,Science,WaterandwIntro), the guard fromGeneric\Guards. The staff renderer now draws every role but the researcher (it skipped the gardener too).Saves. The Science continuation save keeps the performers' state, the performance start and the cell effect (cell word and radius). A Theme Park Inc save made before this is refused with a start-again message before its assets are checked (the standing refuse-and-document policy for older Science saves, not a fidelity necessity), and a save holding a guard in a chase state, a claim by either role or a patrol area smaller than the map is refused.
Texts. The Staff panel's note and the slice's limits line are updated in all 11 languages; the role-refusal line is gone (every role is hired).
Not ported, and why: the guard's chase, carry, after-release walk and first aid (states 0x1A, 0x1C, 0x1D, 0x1E) are entered from the staff HQ's prank message and a first-aid loop and decide on the guests' own Theme Park Inc states (the catch test 0x614720 reads the guest's +0x2C0; the first aid's patient is a guest in state 0x1B), which a park's guests (Theme Park World's rules, with Theme Park World's state numbers) do not carry. The release points are known (KidRelease at 0xA02638, the entrances at 0xA025D0) but the states stay out until the guests' states are ported; [EXT:tpi-capability-gates] covers this. Also not ported: the guests' turn towards a performing entertainer (0x614D41 in the guest's update, amounts unread; [EXT:tpi-capability-gates], because Theme Park World's own turn towards a performer reads Theme Park World's staff and sees none here), the effect's removal by the destructors (staff cannot be fired yet), the visual spawn of 0x60B700 (presentation, no draw) and the patrol area 0x6256A0. The two roles' shared helpers (SearchPeriod, IdleTerm, the working step) stay at 53 bits, as the gardener's; no new formula of theirs has a float. No rand() call is reached (the world draws include the guard's variant draw), and no label or approximation is added.
Verified with these checks:
New tests for the theme table and template choice, the shipped settings and banks, the hire and the rows on the grid, the effect's move and the residue a larger radius leaves, the search's draws (one for the
% 3test, one for the setter), a performance and its end, a tired entertainer, the rest of both roles in a staff room with a save taken mid-rest that goes on alike, the wait beside a full room, the guard's decision, the ported states, and a save round-trip with the residue, both refusals (an older save, a world save before its assets) and the invalid saves; the Theme Park Inc, save, staff and resume filters pass with the retail data.An x86 oracle (
tools/ppc-analysis/oracle_x86/tpi_performer_oracle.py) runs the executable's pre-updates over the real region writer, the entertainer's search and setter and the guard's decision natively: no mismatch.The silent, offscreen Science smoke hires an Entertainer and a Guard, drops them in the park, sees them updated with a sprite frame showing, and finds their rows on the grid.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the facilities and the rest areas (November 22, 2026)#
Facilities in the catalogue. The object and economy catalogues read each zone's
facilitiesfolder (Science spells itFacilities) with itsfacilities.sam, which gives every facilityInfo.WhichUIType5 (ObjectCategory.Facility). Each zone has eight: two toilets, a litter bin, an info kiosk, a security camera, a staff room, a research room and a training room. Science's female toilet reuses Arabian's id 3417; each zone has its own catalogue, so the ids never meet.The fifth tab. Theme Park Inc's build panel calls its list builder
0x57CA20for the tabs 0, 1, 2, 3 and 5 (0x57A482, buttons0x32DF,0x32DE,0x32DD,0x32E0,0x32E1), and the builder compares the type's+0x600, the type loader's copy ofInfo.WhichUIType(0x43D014), with the tab.ObjectCatalogEntry.IsBuildableaccepts type 5 for a facility andBuildCategory.Facilitiesis 5; the text HUD's build window has a fifth button (in all eleven languages). The list keeps the mission gate and the research gate, so Science's mission 0 lists the two toilets, the bin and the staff room; the research room comes with mission 1 and the training room with mission 2 (or mission 1 after the obstacle research).Theme Park World's buy window.
BuildCategory.Facilitiesexists for both editions, but Theme Park World's buy window has its four tabs (ParkHud.BuyTabs): the perf build scenario, the debug captures and--debug-hud buytabwalk those,buytab:facilitiesis refused with a warning, and the window's title tolerates a category without a tab.Economy catalogue lookup. The economy catalogue now finds a category folder and its defaults file without regard to case (Science's
Facilities), as the object catalogue does. It tries the exact path first, which Theme Park World's folders and defaults files (Rides.sam,SideShow.sam, ...) always match, so Theme Park World's results are unchanged.Single instance. The row activation
0x57CF60refuses a type withUsageInfo.SingleInstance1 (the research and training rooms) while its control's built count (+0x18, raised by the constructor0x5DBA8A, lowered by the destroy0x5DE7B4) is above 0, with the sound 0x1D; the text HUD refuses it with a note.Research gate. A type whose object control is not researched stays hidden (
0x57CB66); now that the research room can be built, research unlocks it. After a park file's load the original gives every type of the zone without a control a new one (0x43F900→0x5CFEB0, researched whenUpgrades[0].CostOfResearchis 0), so it never meets a type without one. No OpenTPW object can enter a Theme Park Inc zone: the official extensions stay off under Theme Park Inc and a mod'sobjects.jsonmust name one of Theme Park World's four themes. So no extension or mod object vanishes from the Theme Park Inc build list, and thetpi-ridesmod's science bin (a Theme Park Worldspacefeature, id 40003) is never listed beside Theme Park Inc's own (1422).Rest areas. The staff rooms (Science 1400, Water 2420, Arabian 3418) set
UsageInfo.ChillsYouOut, the thing flag+0x42bit 2 the rest-area finder0x62BA20tests. Ported for the handymen, the researchers and the mechanics (ThemeParkIncStaffWorld.Rest.cs): the finder (nearest open area by squared cells, first on a tie), the tired gate's walk (0x62BCA9), the slack test of state 1 (0x62D650), the low-motivation rest (0x62D866), state 2 with the capacity test and the customer count (0x629EF0), the rest (0x62A1C0) and its end (0x62C230), the search beside a full room (state 0x23,0x62CA90: its closing draw is taken on every branch but "no area", which the WP4 notes missed) and a rest area's removal (0x626638). The member's rest area (+0x248) is saved.Mechanics rest too (a change to the merged mechanics, #985). The mechanic's dispatch byte table
0x5DA358sends state 2 to0x629EF0and 3 to0x62A1C0, and state 0x23 (above 0x16) to the common handler0x6287A0, which sends it to the rest search0x62CA90; #985 had left these states out because no rest area existed. With the staff rooms buildable a tired mechanic would have entered state 2 and stayed there, so the mechanic's dispatch andIsPortedStatenow take them (testAMechanicRestsLikeTheOthers).Gardeners rest too (a change to the merged gardeners, #987). The gardener's dispatch byte table
0x5D2B68reads00 01 02 03for the states 0 to 3, so states 2 and 3 take the jump-table entries 2 (0x5D2B26→0x629EF0) and 3 (0x5D2B2F→0x62A1C0); state 0x23 lies above 0x20 and goes to the common handler0x6287A0(0x5D2B41), whose byte table0x628B10sends it to0x62CA90. #987 had left them out ("not reached") because no rest area existed; a tired gardener would have stopped in state 2 and his save would have been refused. The gardener's dispatch andIsPortedStatenow take them (testsAGardenerRestsLikeTheOthersAndARestSavedMidwayGoesOnAlike, a save taken mid-rest that goes on as the uninterrupted run does, andAMechanicOrAGardenerBesideAFullRoomWaitsInTheRestSearch, which pins both roles' rest-search case beside a full room).The finders walk the object list. The rest-area and room finders now walk the economy's Theme Park Inc object list (#985), the order
0x62BA20walks (world+0x1EAB88), instead of the thing pool's. The walk builds its thing lookup once, so it stays linear in the list and the placed objects.Limits line. The slice's limits line (all eleven languages, the setup note, the start-up notice, the web page and RUNNING.md) no longer says that no research room can be built: research and training wait only for the missions that offer their rooms.
Toilets and bins. The toilets are placed and used; a use still wears nothing and the bins' fill is not kept (
[EXT:tpi-no-maintenance-wear]). A new litter bin's script now takesStandard.sam's construction words (VAR_CAPACITY20,VAR_DIRTY15,VAR_FIRERISK5).Saves. The asset manifest pins
facilities.samwith the folders' archives. A layout checkpoint is version 5 and version 4 is refused by its version; a Science continuation whose manifest pins no facilities is refused with the start-again message before the asset comparison.Data quirk.
tools/test_web_inputs.mjsnamedlevels/Arabian/Facilities/litbin.wad, which the data does not have (Arabian's bin isfacilities/littbin.wad); the fixture now names the archive thetpi-ridesmod reads,levels/science/Facilities/litbin.wad.
Not ported yet: the info kiosk's UsageInfo.IsInfoDesk and the camera's ConstrainCamera (no reader), the build list's grey row (0x57A399) and its built and new marks, the first-build message of the constructor (0x5DBA0D: message 0xE to 0x13 by type, which marks the advisor's mail), message 0xF's interface list (presentation), and the +0x65C word of the list builder. Open question: ThemeParkIncStaffMember.Rest, the moving step and the daily gain follow the x86 oracle at the control word 0x27F (53 bits), while the research step reads the game thread at 0x7F.
Verified with these checks:
The Theme Park Inc, park save, catalogue, staff and resume filters pass with the retail data, as do the HUD, buy window and perf tests. New tests cover the buy window's four tabs, the single-instance refusal, the level's rest areas in object-list order with their open word, the real Science manifest's facilities and the continuation's refusal without them, the facilities tab and its mission gate, the staff rooms as the only rest areas of the three zones, the finder's order and open word, the tired gate's walk, the rest to full energy and its end, the full room's wait and draws, the slack test, the low-motivation rest, a removed room, a resting researcher's save round trip, the version-4 checkpoint refusal, and the catalogue's litter bin with its script's construction words.
The silent, offscreen Science smoke exits 0; it now opens the facilities tab, checks its mission-0 list, builds the staff room beside the cleaner, sends the tired cleaner to it, and builds the litter bin, whose script holds the construction words.
The fidelity register stays at 76 unresolved IDs (no new approximation or extension label). The browser build with the determinism pins builds.
The original game was not launched, and no binary or data is included.
Theme Park Inc: gardeners water the plants (November 22, 2026)#
A Theme Park Inc park's plants now wither by their own script, and the player can hire a Gardener to water them. The Gardener is hired and dropped like the Cleaner and the Mechanic and runs Theme Park Inc's gardener state machine.
Plants. A thing that needs watering runs
data\levels\vegetation.rse(0x5DE61A), so the Standard words the constructor writes (TimeBetweenWaterings,TestAnimationand the scale 1000) now land on a script. The script's timer moves the plant from healthy through two dry conditions to dead; water brings a dry plant back. The engine's plant update (0x5E4CB0) writes the weather's wither rate (Vegetation.HeatwaveWither,RainWither,StormWither,SnowWither) into the script's scale, sets the plant's gauge from its condition and moves its RegionFX row (rows 10 to 13 of Theme Park Inc's fifteen); the constructor puts row 10 down and the destructor takes off the row of the live condition (0x5DB675,0x5DE9D3), also when the player sells the plant (the level keeps it linked until the sale has read its script).The gardener. States 0, 1, 0x1F and 0x20 (idle, patrol, to the plant, watering) follow
0x5D2A60,0x5D2C70and0x5D2ACE; the training states go through the common handler. His pre-update (0x5D2820) searches from idle every search period. The search (0x5D28C0) runs the gate, the tired test and the chooser (0x5D2DC0): over the object list, a plant whose claim is free or his, one that asked for maintenance and is nearer than the best, or a dry one within his detection range, neither burning, with a route to the path cell beside it (the drop's fallback0x5E9320); the last dry plant in the list wins whatever its distance, as in the original. He claims it, asks for its maintenance and walks there; his own claim lets him water it for the work duration, and the watering's end (0x5E31B0) writesVAR_WATER, fills the gauge and clears the claim word and the request. A claim lapses after 100 turns when its gardener no longer targets the plant; removing the plant sends him idle (0x5D2480).Training. A Gardener learns the abilities 10 to 14 and fills the staff HQ's slots that ask for them (needed by mission 1's obstacle).
Sprites. Gardeners are drawn with Theme Park Inc's own gardener sprites (
Generic\Gardeners); a Theme Park World level does not look for that folder.Saves. The Science continuation save keeps the gardeners, their plant and stamp, and the plants' scripts. A Theme Park Inc save made before this is refused with a message before its assets are checked. The thing pool takes the gardener's model 20 only in a Theme Park Inc park, and a save whose gardener targets or claims something other than a plant (or whose mechanic claims a plant) is refused.
The mechanics. This branch builds on the mechanics (#985): the gardener shares their object list, claim word and maintenance request.
Known divergence: the gardener's search period and moving step use the handyman's shared 53-bit helpers (SearchPeriod, member.Step at 0x62B4D0), while 0x5D2820 runs at the 24-bit x87 control word; with MaxExperience 100000, experience 34000 gives a period of 32 here and 33 in the original. The planned 24-bit precision change moves the shared helpers for every role.
Labels: [EXT:tpi-capability-gates] no longer covers the gardener; it still covers the entertainer and the guard, the advisor's notices and a patrol area smaller than the whole map (0x6256A0). Not ported, inert: the gardener's facing while watering (0x609E60, presentation), the destructor's claim release (staff cannot be fired yet) and the guests' fire prank on plants. No new approximation or label is added, and no CRT rand() draw is reached.
Verified with these checks:
New tests for the plant script in the VM beside the plant update at the turn rate (wither, watering 2 to 1 to 0, death; at every tick the row a save would restore is the row on the cells) and its construction words, a plant sold through the level's remove path, the plant update (rows, gauge, wither scale), the destructor's live-condition row, the dry and on-fire tests, the watering's end, the hire and drop, the chooser (range, requests, burning and dead plants, the last-in-list quirk, claims and their lapse), a tired gardener, the search period, the removal message, training into an HQ slot and a save round-trip and refusal; the Theme Park Inc, save, staff and resume filters pass with the retail data.
An x86 oracle (
tools/ppc-analysis/oracle_x86/tpi_gardener_oracle.py) runs the executable's plant update and chooser in an emulator: 3000 cases, no mismatch at 24-bit and 53-bit precision.The silent, offscreen Science smoke hires a Gardener, drops him in the park and sees him updated and drawn, and checks that every plant runs the vegetation script.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the tag tube files the letters (November 22, 2026)#
Theme Park Inc's letters now land in the tag tube, the game's mail list, and the player can read them in its "Message Centre" window.
Rows. The tag system files every letter the slice posts as a row, as the row builder does (
0x635D80): the zone arrival's first briefing (0x5CD6E0(0x5C, 5, 1), now composed: "Welcome!") and each "Objective Complete!" letter (0x5CEAE0) are unread rows; the bank's red-month letter and the challenge system's firing letter are filed read, and their letter window still opens at once (0x5CD060). The objective letters no longer wait in a list nobody reads. Game inserts go to the head and can supersede an older row, rows expire by their own timers and the player's delete takes effect at the tag thing's next pass (0x636880,0x636A40,0x635AB0).Unread counter. The counter keeps a total and four categories and doubles its threshold (3, 6, 12, ...) each time the total reaches it (
0x54F1A0,0x54F320).The window. Table
0x9BBC84is generated bytpi_exe_layouts.py. The window lists the rows by date, newest first (the header buttons sort by subject or turn the direction), shows the selected row's sender, addressee, subject, picture and body, reads it after 2.5 seconds (or when another row is shown or the window closes after half a second), deletes it with Delete on the next tick and runs its go-to. A click on a row never opens the letter window: the original's only caller of that window is the row builder. It opens with the M key (0x42EED0) and a text HUD button that stands in for the native mail panel and shows the unread count ([EXT:tpi-text-hud]). Opening it closes the HUD's other window, and a letter or the mission window closes it.Senders. The play senders are the mission controller (
0x5EF991), the arrival's end (0x5F18DA), the bank (0x5C0969) and the challenge system (0x5C48DD); the wage demands and training letters come with the staff work. The letter posts in0x535xxxand0x538030are buttons of the debug menu (0x531BC0, opened by HUD control 0x4F and F12): not ported, and therand()%200at0x5382A2is that menu's test wage demand, not a play path.Saves. The Science continuation save keeps the tube's rows (each row's letter, numbers, read flag and date); a load appends them and recounts the unread ones silently, as
0x6355D0does. A Theme Park Inc save from before the tube is refused with a message before its assets are checked.
Labels: [EXT:tpi-capability-gates] now also covers the advisor's unread-mail messages (0x198, 0x15D) and the go-to hint (0x211), whose descriptors are read but whose responses and speech choice are not, and the native mail panel's picture and chime. [EXT:tpi-text-hud] covers the window's HUD button. No new approximation or label is added, and no CRT rand() draw is reached by the ported paths; the advisor playback the unread-mail advice would need draws rand() at 0x715AC4, 0x716A2C and 0x717175 and waits on the user's decision.
Verified with these checks:
New tests for the insert order, the supersede rule, the counter's threshold and advice, the delete and the pass, the expiry, the save and silent recount, the rows the letters file, the economy's bank letter and the refusal of an older save, the layout table, and the window's sort, header presses, read deadline, close, delete and go-to; the Theme Park Inc, save, resume and cheat filters pass with the retail data.
The silent, offscreen Science smoke completes a mission, sees the objective letter filed unread without a letter window, opens the tube with M, selects the letter, reads it at its deadline, deletes it and closes the window.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the game thread's 24-bit x87 precision (November 22, 2026)#
Theme Park Inc's economy, staff and arrival routines are now ported at the precision the original's game thread really runs at. Game.exe asks DirectDraw for DDSCL_FPUSETUP (0x6BF33F, 0x6BF5A8), so the Direct3D device sets the x87 control word to 0x7F (24-bit significand), as in Theme Park World. A static read of the executable finds nothing on the game thread that puts 53 bits back: _fpreset and _control87 have no caller after the start-up, the renderer saves and restores the word around each frame, and its extended-precision restore needs a render-state bit that nothing sets. The earlier "53 bits" convention for these routines ([BIN:TPI-EXE:0x5BCD60 precision]) is withdrawn; the rounding is covered by the existing [EXT:hardware-d3d-path].
Switched to single-precision steps (
ThemeParkIncX87, which rounds an exact integer-and-single result once): the staff wage review, daily experience gain, moving and working step, rest and meter add; the handyman's and gardener's search period and every role's idle wait; the shop cost of goods; the arrival group; and the scrap percentage of a plant. The guest base speed (#975), research, ride wear, plants and weather were already single-precision.What a retail park sees. With the shipped
Arrivalwords a group is one guest larger without weather and in rain and snow (100 × 0.01f rounds to 1.0). A plant whose script condition is 0 sells for 101 percent (3 × 33.333332f rounds to 100.0). A staff member with 34000 of 100000 experience searches every 33rd turn instead of every 32nd. The staff meters move only in their last bits.Smaller fixes on the way. A staff meter whose sum is not a number is stored as 0, as the original's unordered compare does; the research lab's cash and cost products round from the exact integer; the arrival keeps the low 32 bits of a group of 2^31 or more, as
_ftoldoes. The rounding helpers take allocation-free paths for the usual small operands.Not switched. Theme Park Inc's loan offers share Theme Park World's loan arithmetic; the shipped offers are the same at both precisions.
Verified with these checks:
The x86 oracles now run the routines at
0x7Fwith0x27Fbeside:tpi_staff_formula_oracle.py(now also the idle term and the search period; 2000 cases, no mismatch at either word),tpi_goods_cost_oracle.py(400 cases each), the newtpi_scrap_percent_oracle.py(416 counts) and the arrival target X7 (532 inputs; the oracle's Theme Park Inc tests pass). The price, candidate, weather-roll, performer, advisor-forecast and theme-engine oracles give the same answers at0x7F, and the price golden is unchanged.New tests pin the native answers at
0x7F, among them the cases where 53 bits differ (ThemeParkIncX87Tests), the arrival and the plant's scrap percentage; the Theme Park Inc, save, Theme Park World staff, guest, save-world, original-park and simulation filters pass with the retail data, and the Science smoke runs.
Theme Park World's routines and pins are unchanged. The original game was not launched, and no binary or data is included.
Direct3D 11: whole-buffer writes into dynamic buffers (November 21, 2026)#
Issue #829's newest report: after an NVIDIA driver update on Windows the park view flickered. Frame-by-frame, the reporter's video shows the bottom help box ("Left-click to build a path" / "to extend this path") vanishing and coming back from one frame to the next while the camera and the cursor stand still, sometimes leaving a thin dark line. A probe through the ordered pointer pipeline kept the help id (441) steady over frames with, without and with empty pointer events, so the help state was not what changed; the draw was.
The likely cause is how dynamic buffers were written on Direct3D 11. Almost every per-frame upload (the interface's vertices, the text, guests, staff, thoughts, balloons, litter, particles, weather, sky, pools, the per-draw uniform block of every material) writes only part of a BufferUsage.Dynamic buffer. Veldrid 4.9 maps a dynamic buffer only when the update covers all of it (D3D11GraphicsDevice.UpdateBufferCore, D3D11CommandList.UpdateBufferCore); a partial update goes through a staging buffer and CopySubresourceRegion into the dynamic buffer. The D3D11_USAGE reference ("Resource Usage Restrictions") gives D3D11_USAGE_DYNAMIC no GPU write access and documents copies only to and from staging resources or between resources of the same usage; Map is the intended way to write a dynamic buffer. A staging-to-dynamic copy is outside those paths, so its result is up to the driver; older drivers evidently kept it.
DynamicBufferUpload.Update now does every buffer write. On Direct3D 11 a partial write into a dynamic buffer is widened to the whole buffer from a scratch copy, which Veldrid writes with Map(WRITE_DISCARD), the path the usage is meant for. Metal, Vulkan and the browser's WebGL keep the caller's byte count, so nothing changes there. A source contract test keeps any new .UpdateBuffer( call (generic ones included) out of source/OpenTPW, OpenTPW.Common and OpenTPW.ModKit outside the helper.
The same issue's lightning report (the island select flash is "a negative picture") needs no change. tp.exe draws the flash quad with state 0x9A1 (0x57ED75), and its state setter 0x5679B0 passes source blend INVDESTCOLOR and destination blend ZERO to the device with no capability fallback. The only override is the anaglyph pass's additive blend (0x57714E..0x57717C), which normal play never uses. A recording of the original PC v2.0 shows the same one-frame negative of the Halloween island.
Verified: the new DynamicBufferUploadTests and the ordered pointer, UI and model tests (84 passed), the browser build against the WebGL shim, and the five native smokes on Metal. Not verified: a run on Direct3D 11 with an NVIDIA driver; there is no Windows machine with that driver here, so the reporter's check decides whether this was the flicker. Still open: the Veldrid.ImGui package's renderer (the editor overlay and the first-run setup wizard) writes its own dynamic buffers partially and is not routed through the helper. No APPROX ID; the D3D11 rule is a platform contract, not a game rule.
One ImGui key map (November 21, 2026)#
Since #971 the ImGui overlay renderer (ImGuiOverlayRenderer.SetOpenTKKeyMappings) fills io.KeyMap at the ImGuiKey values ImGui.NET 1.87 reads, when it creates the ImGui context. The developer editor, created right after it on the same context (Renderer, then new Editor), then wrote the same 19 entries again in Editor.InitIO (Editor.SetKeyMappings). The copy is gone, so the renderer's map is the only one, for the game's overlay and the setup wizard alike.
No behaviour change: the entries and the context are the same, and nothing changes the entries the editor wrote between the two writes (the constructor's ImGui.NewFrame only rebuilds 1.87's reverse entries from them; InitIO only sets the config flags and loads the ini settings). ImGuiOverlayRendererTests.TheRendererFillsTheKeyMapAtTheIndicesImGuiReads now pins the renderer's map at the 1.87 indices (Direct3D 11 on Windows CI, Metal here). Verified: the ImGui overlay and buffer-upload tests (7 passed on Metal), the browser build with and without the determinism pins, and the five native smokes.
The ImGui overlay's buffers on Direct3D 11 (November 21, 2026)#
The Direct3D 11 dynamic-buffer fix for issue #829 left one writer outside it: the Veldrid.ImGui package's renderer, which draws the editor overlay and the first-run setup wizard. Inside its Render, right after ImGui.Render(), it wrote each ImGui draw list into its dynamic vertex and index buffers at the list's own offset. Every one of those is a partial write, which Veldrid 4.9 turns into a staging copy into the dynamic buffer on Direct3D 11. Nothing outside the class can reach those writes.
OpenTPW now draws ImGui with its own copy of that renderer, ImGuiOverlayRenderer (source/OpenTPW.ModKit/ImGui). The copy is Veldrid's v4.8.0 source, the code the 5.72.0 package was built from, kept under its MIT notice. It still reads the package's embedded shaders. Its buffer change copies all of a frame's lists into one contiguous CPU block and uploads that from offset 0 as a single write through DynamicBufferUpload. On Direct3D 11 that becomes a whole-buffer Map(WRITE_DISCARD); on Metal, Vulkan and WebGL the byte count is unchanged. The draw calls, their offsets and the projection matrix are unchanged.
One behaviour changes, in the setup wizard only. The package was compiled against ImGui.NET 1.72, so it filled io.KeyMap at the old key indices 0..21, which the ImGui.NET 1.87 this repository uses ignores. Compiled here, the same SetOpenTKKeyMappings fills the ImGuiKey values 1.87 reads (512 and up). In the game this changes nothing: the editor (Editor.SetKeyMappings, created right after the renderer) already filled the 1.87 values, so Tab, the arrows and the editing keys already worked in the online panel and the editor's file browser; only the stray writes to indices 0..21 stop. The setup wizard has no editor, so its folder field now gets Tab, the arrows, Backspace, Delete, Enter, Escape and Ctrl+A/C/V/X/Y/Z for the first time. Editor.SetKeyMappings is now redundant with the renderer's own mapping and can go in a later cleanup.
DynamicBufferUpload moved to OpenTPW.Common so the ModKit renderer can use it. The device's backend is now recorded where the device is made (Renderer.CreateDevice), for the game and the setup wizard alike; WholeBufferWrites reads that record instead of Global.Device, so a test that makes a Direct3D 11 device without Renderer.CreateDevice gets no widening unless it sets DynamicBufferUpload.Backend (as ImGuiOverlayRendererTests does). The browser keeps its stub, now named ImGuiOverlayRenderer in DesktopOnly.cs, and the source contract test covers the copy too.
Verified: ImGuiOverlayRendererTests draws two lists, the background band and a foreground rectangle, on a real device and reads them back over two frames. It runs on Direct3D 11 on Windows CI and passed here on Metal. Also checked: DynamicBufferUploadTests (now also the package's shader names for every backend), the browser build with and without the determinism pins, and the five native smokes. Not verified: Direct3D 11 on the reporter's NVIDIA driver.
The per-draw uniform buffer is 784 bytes (November 21, 2026)#
Every material wrote its per-draw uniform block into a 2048-byte dynamic buffer (Material.ScratchBuffer, 16 * 128). Since #969, a partial write into a dynamic buffer on Direct3D 11 is widened to the whole buffer (DynamicBufferUpload), so every draw uploaded 2048 bytes there, about seven times the usual 272-byte block. This came up in #969's integration review.
The buffer is now Material.ScratchBufferBytes, 784 bytes. That is the largest block a draw uploads, the lit block with all 16 point lights (LitObjectUniformBuffer: 272 + 16 x 32). It is also the largest uniform block any shader declares (test, pool-deck and pool-basin; the other shaders declare 236 to 272 bytes), so a bound buffer still covers every block its shader reads. Material.Set<T> now refuses a block larger than the buffer instead of writing past it.
MaterialScratchBufferTests pins the size to the lit block and its upload size with every light. It also reads every shader source's uniform blocks (the *.shader files and the includes) in std140 layout and checks that the largest equals the buffer exactly. NativeWorldShaderRenderTests draws through a material buffer of the shipped size and now writes it through DynamicBufferUpload, as Material does, so on Direct3D 11 (Windows CI) it covers the widened write. docs/LIGHTS.md and PointLightTests no longer speak of 2048 bytes. Verified: the material, point-light, shader and dynamic-buffer tests (94 passed), the native render tests on Metal (22 passed, the 4 Direct3D 11 cases run on Windows), the browser build with and without the determinism pins, and the five native smokes on Metal. No behaviour changes: every block a draw uploads is the same as before.
Theme Park Inc: the park boundary and its growth (November 21, 2026)#
A Theme Park Inc park now owns only Theme Park Inc's own land, following the static trace in docs/reverse/TPI-BOUNDARY.md.
Starting land. The prebuilt Science park keeps the ownership its save stores (1259 owned squares; OpenTPW used to treat every square as owned). A new water or arabian world runs the executable's own steps: every square but the NoModify ones becomes unowned, the gate strip beside the entrance is opened, and the zone's
hoardings.mapis applied with the land loader0x678B00. That loader reads the file x-major, skips the map border and only ever adds land. A fresh Science world built this way matches the prebuilt park's flags on all 16,384 squares.Growth.
Level.ApplyThemeParkIncExtentappliesextents/extent.NNNwith the same loader, ready for the mission controller. The owned counts per zone after each extent are science 1259, 3030, 4391, 6360, 7500; water 1330, 2456, 4042, 6225, 7500; arabian 2323, 3476, 4723, 6325, 7500. The campaign plan's higher counts include the files' border zeros, which the loader skips.Rules. Paths, queues and objects are refused on unowned land, as the executable's cell validator refuses them. No fence is laid, because career mode lays none, and the land is not drawn darker, because Theme Park Inc's boundary drawing is not read yet. There is still no Buy Land.
Catalogue. The build list applies the catalogue's gate. The four special rides of the Science park are hidden in every mission. Thinking spaces appear from mission 1, and training rooms from mission 2 (or in mission 1 once the obstacle research is done); until the career runs, the mission number is 0.
Saves. The Science continuation save and the layout checkpoint keep the ownership as one bit per cell, and a load does not re-apply any land file. A save written before this change would own every square, so it is refused with a message asking to start the park again. Layout checkpoints now have version 3; a version 1 or 2 checkpoint is refused with a message that names its version and asks for the layout to be saved again.
Verified with these checks:
New tests cover the loader's byte order, border and short-file rules, the new world's init and gate strip, the prebuilt equivalence, every zone's counts through its extents, the fence-post refusal, the bit-map save and the refusal of older saves, the path tool's refusal and the catalogue gate. The Theme Park Inc test filters pass with the retail data.
The silent, offscreen Science smoke exits 0. It now arms the Bellows, because the special rides are no longer listed, and checks that a save without its owned land is refused.
The original game was not launched, and no binary or data is included.
Theme Park Inc: obstacles as things of the world and the camera flight (November 21, 2026)#
Obstacles as things. The object catalogue reads Theme Park Inc's
obstaclesfolders (ObjectCategory.Obstacle). The prebuilt Science park now builds its obstacles and camera path (1702, 1701, 1700, 1703, 1750, 1798) as fixed items with their models, scripts and saved thing ids; the lake 1703, the one attraction without a scene record, comes from its thing. A loaded Theme Park Inc park's objects keep their saved thing ids where the slot is free, so the World variableCurrentObstacle(thing 29) names the 1700 gate's object.Obstacle cells.
ParkCellMapkeeps Theme Park Inc's obstacle cell flag (map square+0x24); the prebuilt saves it as the last dword of each 56-byte map cell. The level takes the prebuilt's obstacle cells (type 8 or 5, the anchor's owner word, the flag), and a layout snapshot keeps the flags (TpiObstacles).ThemeParkIncObstaclesports the placement rule (0x647BF0, tested against the prebuilt's saved cells) and the opening (0x5E8BD0:AfterShape, the map-edge rule,ReplaceWithID,DeleteAfterUse, gates untouched) with Theme Park Inc's square writer (0x67CB70, type word only).Camera flight.
ParkEconomy.TpiCutsceneports the cutscene thing (0x5D0400,0x5D02F0,0x5D0840): the ride view on the target's seat 1, the trigger in script variable 0, the end when the script sets variable 1 (the Science camera path flies its 500-tick clip in 16.4 s), the clock at 1.0 (0.7 in mode 1), the HUD hidden under the input window, the mode-2 skip by Escape or the right button's release, message 0x29 with 0 or the trigger, the arrival briefing (0x5F1760) and the mission window's countdown. The controller's cameras now fly and its completion comes at the flight's real end. A new game's Science park opens with the zone arrival's flyover (0x6A43D8, first day only). The continuation save keeps the flight's thing. For the mission window package:PressThemeParkIncMissionComplete(the complete button,0x55BD79) andMissionWindowRequests; the 1750 gate's zone switch is recorded inZoneSwitchRequests.The lake.
[EXT:tpi-lake-drained]is gone: the level no longer drawsterrain.wad'sdlake.MD2; the lake is 1703's model and after its opening 1704's.Correction. The setter of a script variable,
0x6B0780, has 89 call sites through its thunk0x4028EC(the camera flight among them); the reading of November 10 that nothing calls it (RIDES-045's retirement) missed the thunk. Among them the attraction constructor (0x5DB7D5..0x5DB88F) sets a new litter bin'sVAR_CAPACITY,VAR_DIRTYandVAR_FIRERISKfromStandard.sam'sLitterBinwords (20, 15, 5) and a plant'sVAR_TIMEOUT,VAR_TESTandVAR_SCALEfrom itsVegetationwords and 1000. A new object in a Theme Park Inc world now takes them (ThemeParkIncConstructionWords). Theme Park World's constructor (0x4DB090) writes none of them, so RIDES-045's retirement stands for Theme Park World with the corrected reason (docs/OBJECTS.md).With the mission window (#982). The arrival flight's countdown opens the first briefing one update after the flight ends (
0x5D0369), and the window's Proceed starts the camera flights: an obstacle mission's 0x24 flies to the obstacle and opens it at the flight's end, and a mission with anObstacleOpenedorCutsceneObjectthing completes at the end of its flight.Review fixes. A Science save or layout checkpoint from before the obstacles is refused with the start-again message (the park save's validation, before the asset comparison; the checkpoint format is version 4 and refuses version 3). The pause key stays reachable under a flight, as the original's key binding "pause" (
0x42F420) is dispatched past the input window, so a flight started while paused waits for it instead of locking the game. A flight of thing 0, whose start would read the thing table's null slot, is refused ([EXT:original-undefined-reads]). The square writer lets a type-0 write clear any square, the flight leaves the walk camera too (0x50B4E0), and the asset manifest no longer pins terrain.wad's unuseddlake.MD2.
Not ported yet: the plants' script (0x5DE61A loads vegetation.rse for a thing that needs watering; OpenTPW gives a plant no script, so its construction writes have nothing to land on), the facilities folder (litter bins and the other facilities are not in the catalogue yet), the construction words on objects restored from a layout checkpoint (which starts a fresh session but restores its objects without the constructor's writes), the placement in a world built without the prebuilt (the object-info order 0x647BF0 walks is not read, so Water and Arabian build no obstacles or camera path), the pick and cursor help over obstacle cells, the tile refresh of type 8, the flight's fog range and camera words, the advice classes admitted during a flight, and the 1750 gate's zone switch (recorded for the zone package). The mission window and its Proceed are a separate package; completion in play still needs it.
Verified with these checks:
The Theme Park Inc, catalogue, layout, cell map, resume, park save and ride view filters pass with the retail data. New tests cover the placement rule against the prebuilt's saved cells, the level's obstacle cells and thing ids, every opening variant (stays, deleted, replaced, gate, the map edge), the layout round trip of the flags, the flight's natural end and skip with their 0x29 payloads, the clock rate, the first-day arrival, the save round trip, mission 0 from the window's button to mission 1 with the gate's opening, and the lake's drain to 1704 at its flight's end. Review tests cover the refusal of older saves and checkpoints, the pause and the right button under a flight, thing 0, the 1750 gate's zone switch, the arrival's first-day boundary, a restored flight's script-driven end, the type-0 square write and the litter bin's construction variables (retail Standard.sam and bin script, and a synthetic placement in both editions).
The silent, offscreen Science smoke exits 0; it now checks the obstacles and the camera path in the world, flies the zone arrival (the ride view on the camera path's seat, the HUD hidden, the clock at 1.0) and skips it with Escape.
The fidelity register stays at 76 unresolved IDs (no new approximation or extension label). The browser build with the determinism pins builds.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the career, the mission files and the Global Master Save (November 21, 2026)#
A Theme Park Inc park now runs on the executable's career object (0xBFC484), and the player's progress is saved as the original's Global Master Save. The layout is in TPI-CAREER.md.
Mission files. The generic SAM binding is ported: the slot rule
0x418F60, the reset0x419830, the parser0x419CD0and the resolver0x4192C0. The mission object (schema0x9A0C68) reads all 18 shippedmiss00..17.sam. Array overflows, range errors and malformed values stop the parse as in the original.Career.
ThemeParkIncCareerports the reset, the mission load and advance (with the region table), the promotion, the golden tickets, the abilities, the zone records and the career side of the completion tick. The challenge system now reads its mission counter and firing line. A won challenge's tickets, promotion and zone count go to the career.Global Master Save. OpenTPW keeps every section of
.GMS, writes the file and reads it with the original's lenient rules: a marker that differs is a successful load that stops there, and trailing bytes are ignored. The three corpus files write back byte for byte.Player file. The career is saved as
opentpw-tpi/users/1New Player/New Player.GMSin OpenTPW's own save folder, never in the original Theme Park Inc'ssavefolder (user decision). Saving the Science park writes it, and leaving a park runs the full save (the player file, then the Science park save). Enter Game and Load A Game take the career from it. A Science save from before the career is refused with a message (user decision). A player file whose current zone has a park number outside the zone table is refused while the Personnel File is still open. Nothing is saved when Continue saved park or Load layout replaces the park, and the check that keeps the player file out of the game folder also coversOPENTPW_SAVE_DIRand resolves symbolic links.Cheats. With
opentpw.cheatson, the challenge panel offers the executable's debug buttons Skip Mission and Get Promoted.
Verified with these checks:
The Theme Park Inc, save, resume and front-end filters pass with the retail data and the corpus saves.
The silent, offscreen Science smoke exits 0.
The browser build with the determinism pins builds.
The mission controller, the mission window and the zone switch come in later work packages. The original game was not launched, and no binary, save bytes or data are included.
Theme Park Inc: the challenge system runs in the park (November 21, 2026)#
A Theme Park Inc park now runs the executable's own challenge system, not Theme Park World's objectives. It follows the static trace in docs/reverse/TPI-CHALLENGE-SYSTEM.md, whose new section 10 lists what is ported, what is gated and what is still open.
Slots. The level's first ten
ChallengesInThisLevelentries are row numbers ofData/Challenges.sam. Each row goes into the first free slot of ten (0x5C7630), and then the follow-up filter runs. The Science slots hold types 2, 35, 25, 46, 36, 41, 56, 17, 48 and 17, in list order.State machine. The system runs once per world update. It switches on once the park is open and the mission counter reaches
MissionNumberForFirstChallenge. After that, each turn it either works out which slots have become available (CalcAvailTime) and offers the lowest due slot at most everyDaysBetweenOffersdays, or it runs the accepted slots. An accepted slot goes into a grace period or straight into its timed phase. It can win early, fail while days are left, or be decided on its final day without the failure test. A closed park loses it. The clock arithmetic is the executable's: once an update passes the finish by a day or more, the days left stay negative and the slot never times out.Outcomes. A win pays the cash prize through the bank and adds the golden tickets to the career. A loss returns the slot to its offer. On that slot's first loss the firing line drops by one, and once the line is spent every loss brings the firing letter. The system draws no random number.
Measured types. Type 2 (hot dogs: a fat shop triggers it, and paid sales are counted), type 25 (the least happy staff member) and type 41 (no strike). Every other type is never offered (
[EXT:tpi-capability-gates]), because its trigger or value reads park state OpenTPW does not model. The shares, promotions and the level record's challenge counts are left off under the same label. A new career's mission counter is 0 and missions are not ported, so the Science park offers nothing in play yet: its measured rows need mission 2.Saves. The Science continuation save keeps the slots, the offer delay, the switch, the firing line and the career's golden tickets. A Science save written before the challenge system is refused with a message that asks the player to start again, and the file and the running park are left untouched (user decision): a new challenge system would not be the park that was saved.
HUD. A Challenges button (top right, below Staff) lists every challenge that has been offered, accepted or won, under its
CHALLENGE_TITLES.strtitle. It shows the days left and the progress value, plus the firing line and the golden tickets. Clicking an offered challenge accepts it only while the park is open, as the original's mail does. The new texts are in all eleven languages.
Verified with these checks:
The Theme Park Inc, challenge, determinism and save filters pass with the retail data. New tests cover the loader (including the retail Science list), every state transition, the offer gap, accept and grace, the Science types' win and failure tests, the outcomes, the save round trip and the HUD's accept.
The silent, offscreen Science smoke exits 0. It now offers the hot-dog challenge, checks that a closed park refuses the accept, and accepts it with the park open.
The fidelity register stays at 76 unresolved IDs. The browser build with the determinism pins builds.
The original game was not launched, and no binary or data is included.
Theme Park Inc: guest base speed and status texts after the bank-mail PR (November 21, 2026)#
A Theme Park Inc guest now walks at its profile's speed. The constructor multiplies the drawn base-speed word by the profile's SpeedMultiplier and truncates the product to a word (0x60C712). The product is taken at the 24-bit precision the Direct3D device sets on the game thread ([EXT:hardware-d3d-path]), which for 20 of the 120 retail type and word pairs gives one more than 53 bits would. The routine was already ported, but nothing applied it to a live guest. In the retail data, the grandparents' rows hold 0.33 to 0.47 and the parents' 0.81 to 0.95, so they walk at about a third and nine tenths of a child's pace. The guest creation site now cites [EXT:tpi-twp-guest-rules]: beyond the constructor, the guest walks, decides and animates by the shared Theme Park World rules.
ARRIVAL-008's text now says what the desktop slice already ports: rain and snow drawing, the precipitation audio, and the storm's lightning and thunder. What remains is the spline snow branch (0x6ECC50), the browser's precipitation drawing, the sky scroll and overcast values, and one guest-effects path. The website's Theme Park Inc pages no longer list the advisor as unavailable. They name what runs: the money, the weather, the advisor's weather forecasts and the bank's "Game Over" letter.
Two continuation questions from the review are answered in code comments rather than with save fields:
A letter can never be open when the game saves, because the pause menu that saves does not open over it.
The challenge firing line changes only when a challenge is lost, and the slice runs no Theme Park Inc challenges yet. The challenge port must save the line and the set of challenges lost once.
Verified: the Theme Park Inc, guest, resume and save filters pass (2410), including a new test that a live guest's base speed is the drawn word times its profile's multiplier and survives a snapshot (the guest and Science save validators now accept the scaled words, and the unscaled words of older saves). The silent, offscreen Science smoke exits 0. The site status tests pass after regenerating the front page.
Theme Park Inc: handymen sweep the park's litter (November 21, 2026)#
A Theme Park Inc park now has its first working staff: the player hires a Cleaner (the handyman) from the Staff panel and drops him in the park, and he walks, idles and sweeps litter by Theme Park Inc's own state machine. The guests drop litter for him by Theme Park Inc's own litter step.
Hire and drop. Activating a Cleaner's row in the Staff panel puts him in the hand; a click on the park drops him on a cell the executable's drop tests accept, or, on an object's cell, at the object's entrance, exit or nearest path cell (
0x4D4EB0), and right-click or Esc cancels. The other roles are refused with a note ([EXT:tpi-capability-gates]).The handyman. A separate Theme Park Inc staff world runs his pre-update (
0x5D5000, with the day counters of0x628050) and his states 0, 1, 0x0F and 0x10 (idle, walk, to litter, sweep), with his search (0x5D52A0), the gate before it (0x62BBA0, read in full for a handyman), the litter finder and claim, the work duration and the meters. Members are updated in the thing sweep, newest thing first.Economy. The day message now runs the members' daily routine (experience and wage demands, shown as notes) and the month message pays their salaries and reviews their wages.
Guests' litter. The litter step follows
0x614B71: a one-in-four world draw, the bin search, the type drawn before the cell is tested, and an occupied cell keeps the urge. The litter's sprite lies 3 to 6 tenths into its cell.Sprites. The handymen are drawn with Theme Park Inc's own handyman sprites (
esprites.wad,Generic\Handymen), the look picked from the candidate's sprite draw as0x6902F0does, and they stand, walk and sweep as their states ask. Theme Park Inc's sprite templates were checked to be Theme Park World's programs under other numbers.Saves. The Science continuation save keeps each placed member's thing and walk, and the members' cell-chain entries.
Labels: the handymen walk with Theme Park World's walk, wander and speed step ([EXT:tpi-twp-guest-rules], now approved for the staff's walk); Theme Park Inc's toilet wear and bin fill stay unported, so the handymen sweep litter only ([EXT:tpi-no-maintenance-wear]). No new approximation is added. The rest-area finder finds none, exactly (no Theme Park Inc object is a rest area); strikes in the park, the wage negotiation, the other roles and the thought bubbles come in later packages (docs/reverse/TPI-STAFF.md §11).
Verified with these checks:
New tests for the litter step, the litter offset, the handyman's drop, search, walk to litter, sweep, the claim taken away, the tired gate, the base-speed table, the search period, the display categories, the day and month messages and a save mid-walk; the Theme Park Inc, staff, litter, save and determinism filters pass with the retail data.
The silent, offscreen Science smoke hires a Cleaner through the staff list, drops him on a linked path, sees the park's turns update him and the staff renderer draw him, and continues a saved park with him exactly. A world capture of the cleaner was checked by eye (not committed).
The original game was not launched, and no binary or data is included.
Theme Park Inc: the "Game Over" letter loses the park (November 21, 2026)#
Theme Park Inc's bank letter and its challenge firing letter are the game's two ways to lose, not just text. Both reach the tag system as a type-25 notification (ids 8 and 7), which builds a record with the subject TAG_SYSTEM.str 165, "Game Over - You Lose!", the sender row's name and title (173, 174), the player's name, the park date and the body 166 or 167 with a signature (0x5CEF20, 0x5CD0D0, 0x5CD14D, 0x5CEF60, 0x5CD1C0). It then opens the letter window on it: the layout table 0x9B4854 (builder 0x526CD0) with To/From/Subject/Date fields, the sender's mugshot and the body frame. Closing the letter with any control but help (0x526960) calls 0x649E60 with reason 0 (the bank's category 0x5E) or 1 (the challenge system's 0x5F). That routine writes the lost world state 4 (0x649E92) and opens the loss window 0x50AFC0, Theme Park World's loss scene with the caption "BANKRUPT!" or "Fired!" (UITEXT 921, 922). The earlier reading that a Theme Park Inc park is never lost had mistaken the letter window's message 5 for a level teardown's event.
OpenTPW now opens the letter window over the Theme Park Inc HUD in place of the advice-line caption, and closing it loses the park (ParkEconomy.LoseThemeParkIncPark, ThemeParkIncLossReason). The window's labels are dark blue and its values black, as the builder sets them (0x84A6BB); the body keeps the text class's own white (0x5123A3). The date is the park turn's date as day.month.year through UITEXT 956 (0x6089C0, 0x7D91E0, 0x518C30); the addressee is the Personnel File's "New Player" ([EXT:no-player-profiles]). A lost park restored from the economy snapshot comes back lost, captioned as a bankruptcy because the reason is not saved (0x64C2EC, 0x50B1DE); the Science continuation save itself still refuses a lost park, so no file reaches that path yet. The park trades on while the letter is open, as the original's letter window requests no pause, and a further mail waits until the open letter is closed (what the tag system does with a second notification then is not read). The loss scene follows in the Theme Park Inc HUD (ThemeParkIncHud.Loss): the gate's camera seat under the caption, centred on the canvas in font slot 0 and white (0x53EE30), with no animation. Escape, or a right click more than two seconds in with RMBCancelOn (0x50ACE0), leaves it for the hidden-HUD overlay, which keeps the caption. The overlay's Escape opens the lost park's four lines, Load Game, Resume Game, Select A New Player and Quit Game (UITEXT 768, 771, 774, 772; 0x50D3F3), centred as a block. That menu pauses nothing, and the P key cannot pause a lost park, though it still resumes one that was paused when it was lost (0x42A17C, 0x42A27C). A reloaded lost park goes straight to the overlay (0x50B1C0). The seat routine's extra writes and a few closed panels are not ported (ECON-030, whose text now describes the letter path and the scene).
The challenge firing line is corrected. A career starts at a fixed 5 (0x74BDD1, rank 1). Only a promotion raises it, to that rank's FiringLineForRank[n].Limit (0x74C450), so retail rank 0's 255 is never a starting value. Only a challenge's first loss takes one off (mChallengeLost, 0x5C4857), and every loss with no line left posts the firing letter (0x5C48B6). The whole challenge system is now traced in docs/reverse/TPI-CHALLENGE-SYSTEM.md: ten parallel slots, a grace state, offers every DaysBetweenOffers with no randomness, no decline and no time warning. The level's ChallengesInThisLevel values are row numbers of Challenges.sam, not types. Its port is still to come.
Verified: the native Science smoke (--tpi-smoke-test) now ends with the bank's letter: the window opens, Okay loses the park, the loss window shows UITEXT 921, Escape leads to the overlay with the caption and to the four-line menu without pausing, and the run quits through that menu. The Theme Park Inc, economy, challenge, loss and layout filters pass with the retail data (OPENTPW_TPI_PATH), including the new letter tests (the generated table, the fields and buttons on synthetic strings, the retail texts and date template, and a headless draw over the real models). tpi_exe_layouts.py --check matches the regenerated layout file, the advisor oracle still matches, and the register check passes with 76 open IDs. The original game was not launched, and no binary, data, save bytes or disassembly are included.
Theme Park Inc: mechanics repair the rides as they wear (November 21, 2026)#
A Theme Park Inc park now wears its rides down and breaks them by Theme Park Inc's own rules, and the player can hire a Mechanic to repair them. The Mechanic is hired and dropped like the Cleaner and runs Theme Park Inc's mechanic state machine.
Ride wear. The object update (
0x5E4790) runs the wear tick (0x5E25B0) every eighth turn while the ride is open: every 64th turn the ride loses its wear (0x5E21A0, from the riders, the speed, the maximum capacity and speed and the level's red lines and wear rate) from its state of repair, and a fiftieth of it from its life gauge unless it is special. Below the type'sWarnPlayerline the ride is worn. A ride whose repair or life has run out breaks down (VAR_BREAKSTAT), and loses 5 of its life unless that is already 0. The relief below 25 follows0x5E3990. The game thread runs at 24-bit x87 precision, so the wear is computed in single precision.Starting life. A new ride starts with the type's
WorkingLifeas its life gauge (0x5DB53A); the prebuilt Science park's saved gauges match it.The mechanic. States 0, 1, 0x15 and 0x16 (idle, patrol, to ride, repairing) follow
0x5DA280,0x5DA650and0x5DA7C0. His search (0x5DA3D0) runs the gate0x62BBA0, the ride finder0x5DAAD0(a cursor on the HQ walking the objects newest first, broken and requested rides first, nearest by squared distance), the route to the ride's entrance, the claim (0x5E3780) and the maintenance request below the type'sImminentline (0x5E3400). A claim lapses after 100 turns when its mechanic no longer targets the ride (0x5E37F0). The repair timer is(100 - repair) * WorkDuration / 100(0x5DA150), and the full repair (0x5E2910) restores the ride and reopens it with the closing tail of the repair (queue link, challenges 42 and 46, park closed, weather, coaster test). Removing a ride sends its mechanic back to idle (0x5D9DD0).Sprites. Mechanics are drawn with Theme Park Inc's own mechanic sprites (
Generic\Mechanics).The object list. The finder walks Theme Park Inc's object list (world
+0x1EAB88, a new object at the head,0x64F3E0). The prebuilt Science park's saved list (the World variableFirstObjectand each attraction'smNext) differs from OpenTPW's import order and holds seven things without an economy record (the obstacles 1700 to 1703, the gate 1750, the camera path 1798 and the tool entry 1710), which the cursor steps over. The economy now keeps that list: a park built from the save takes its order, with those things as their negated thing ids; an obstacle's replacement enters at the head and an opened obstacle leaves; the continuation save keeps the list, and its cursor follows a thing id as the original's HQ word does (a sold ride's id taken by a new one, or an obstacle's). The prebuilt's tool entry 1710 keeps its thing slot.The level. A Theme Park Inc park runs no park gate, so the level now wires the ride events itself: the economy's script writes reach the ride, a maintenance request closes it, a finished repair runs the closing tail over the reopening guard (
ParkGate.MayOpen), and a cancelled request (0x5E3400(0)) opens it whatever its guard and sends its claimant idle. The native ride panel's call and cancel controls are not in the text HUD ([EXT:tpi-text-hud]); the shared maintenance command runs Theme Park Inc's request and cancel in a Theme Park Inc park, and its call is allowed while a mechanic is placed (the panel button's state,0x5511FB).Saves. The Science continuation save keeps the mechanics, their ride and timer, the ride wear, the claims and the object list. A Theme Park Inc save made before this is refused with a message.
Labels: [EXT:tpi-no-maintenance-wear] now covers only the toilets and bins, and [EXT:tpi-capability-gates] no longer covers the mechanics. Still not reached: the ride upgrade job (a mechanic now trains, Ride Upgrading included, but no Theme Park Inc ride reaches the upgrading state, because the economy sells no upgrade); still gated: the advisor's ride messages, and a patrol area smaller than the whole map (0x6256A0, WP15). No new approximation or label is added, and no CRT rand() draw is reached.
Verified with these checks:
New tests for the type keys, the starting life, ten wear-amount and eleven wear-tick goldens from the oracle (a clamped repair, a clamped life and worn rides among them), the wear tick, the breakdown, the object list (the prebuilt's order, its save and the cursor over a placeholder), the level's request close and repair tail (challenges 42 and 46, a closed park, a cut-off queue, the weather and coaster re-closes), an obstacle replaced on its opening, the relief object's
VAR_WORN, the world-save refusal, the Imminent request (including the finder's cursor quirk), the claim lapse, the full repair, a ride removed under its mechanic and a save round-trip and refusal; the Theme Park Inc, save, ride and staff filters pass with the retail data.An x86 oracle (
tools/ppc-analysis/oracle_x86/tpi_ride_wear_oracle.py) runs the executable's wear amount, wear tick and repair timer in an emulator: 3000 cases, no mismatch at 24-bit and 53-bit precision.The silent, offscreen Science smoke hires a Mechanic, drops him in the park and sees him patrol and drawn, and checks that the loaded park's object list is the saved chain.
The original game was not launched, and no binary or data is included.
Theme Park Inc: the mission window and the "Objective Complete!" letter (November 21, 2026)#
Theme Park Inc's "Current Objective" window is ported from the executable (ThemeParkIncMissionWindow; builder 0x55A7F0, procedure 0x55BA70). Its layout table 0x9BE808 (34 controls) and the Challenges tab's own table 0x9B54CC (30 controls) are now generated by tpi_exe_layouts.py. The window is letter-like: the title, the Objectives and Challenges tabs, the mission's OPERATION.str title and picture (0x9BECCC), Mr Maybury as the sender, a briefing page and a details page. Details are in TPI-MISSIONS.md §7.
Briefing. Mission 0 shows
MISSION_DESC[0]with its first statistic's target ("get 40 people"). A later mission showsMISSION_DESC_GOTPROMOwhen its required rank is already held, except mission 2, andMISSION_DESCotherwise. Mr Maybury's signature follows.Details. Every exit statistic gets its requirement and status line through the table
0x9BED18. The page also lists the promotion line or its hint by counter and zone, the required challenges, the golden tickets, the research lines of an unresearched obstacle and the zone hint in another zone. It keeps the original's quirks: a removed obstacle leaves the last text with one more line feed on every refresh, up to the 0x9C4-character buffer, and a counter without a hint repeats the requirements heading.Proceed. It is enabled when the controller's MetRequirements holds. It posts message 0x24 for an obstacle mission or runs OnMissionComplete otherwise, then closes the window. Four seconds after the first opening every tick refreshes the window; only Close and Cancel stop that. The window pauses nothing.
Opening. The key table's Objectives key, a plain O without Shift, Alt or Control (
0x9A8A14), and a text-HUD button that stands in for the native HUD's ([EXT:tpi-text-hud]) open the window. Like the builder's message 5, opening first closes an open letter. The first briefing's opening after the zone-arrival camera flight belongs to the flight's own package."Objective Complete!" letter. The letter
0x5CEAE0is composed with TAG_SYSTEM 168,OBJECTIVE_COMPLETE[completed], the signature and the go-to target of0x5CED9C. The letter window's go-to button is enabled by a target and opens the mission window or the challenge panel. The original files this letter as a tag-tube row rather than opening it (0x5CD060accepts kinds 6 to 8 only), and the slice has no tag tube, so the controller's letters still wait.
Not ported: the body's scroll text, the interface sounds, the advisor panels the window opens and closes, the Proceed sparkle, the staff list's rows (the staff HQ's slots are not modelled), the native challenges window, a letter go-to's camera move and kind 0x12.
Verified: the Theme Park Inc Science smoke (--tpi-smoke-test) opens the window with the Objectives key, finds mission 0's Proceed disabled and closes it. The new tests cover the generated tables, the briefing rule, the details lines, the hints, the obstacle lines, Proceed per branch, the refresh timer, the letter and its go-to on synthetic strings. They also check the English retail texts and a headless draw over the real models with OPENTPW_TPI_PATH. tpi_exe_layouts.py --check matches, and the register check passes with 76 open IDs. The original game was not launched, and no binary, data or disassembly is included.
Theme Park Inc: the mission controller and the obstacle types (November 21, 2026)#
A Theme Park Inc park now runs the executable's mission controller (park thing class 21, OBJH). The details are in TPI-MISSIONS.md.
Exit statistics. The start in the viewed zone (
0x5EEF60) takes each type's baseline, and the test runs once a game day on every fourth world tick (0x5EF520,0x5EFF00,0x74C670). Types 1, 2, 3, 5 and 8 are measured from the park: cash less loans, challenges won and the guest census. Types 4 (last month's takings, whose ride and facility rows OpenTPW's ledger does not keep), 6 and 7 are never decided, so miss17 cannot be completed.Requirements. IsMissionComplete (
0x5F0600), MetRequirements (0x55A620) and the obstacle state (0x5F01D0). The staff HQ's obstacle slots are not modelled, so an obstacle mission's requirements are never met.Completion. The wrong-zone refusal (
0x5F0770) and the completion tick (0x5F0940): tickets, the extent for the counter before the advance, the theme, the advance, the next obstacle (0x6476F0) and the new statistics. Skip Mission now runs this whole tick.Messages. 0x23 to 0x29 drive the state machine. Promotions from challenges and the Get Promoted cheat go through 0x25. The objective letter is recorded; its window is not built yet.
Save. The Science continuation save keeps the state, the thing and the current obstacle, which a new park takes from the prebuilt (the 1700 gate). A load registers the research again and drops a pending research message, as
0x5F03C0does. A Science save written before the mission controller is refused with a message that asks the player to start again, because a controller that never started its statistics would not be the park that was saved; the file and the running park are left untouched.Obstacle types. Each zone's
obstaclesarchives are read with the map grid parser0x41AD90and its symbol table0x98DF88.
No mission completes in play, except through the cheats extension's Skip Mission. Nothing calls OnMissionComplete, because there is no mission window or Proceed control. Its camera flight is not ported either, and the flight's end is the only sender of message 0x29, which completes the mission. An obstacle mission also needs the research (message 0x23) and the staff HQ's obstacle slots, which OpenTPW does not run. The obstacles are not things of the world yet, and their opening 0x5E8BD0 is not ported.
Verified with these checks:
The new controller tests cover each exit type, the completion branches, the wrong zone, the messages and the save round trip.
An end-to-end test over the shipped Science data takes miss00 from 40 guests to mission 1. It checks the 1700 camera request, extent.000 (1259 to 3030 owned squares), the lake as the next obstacle and the catalogue's thinking spaces.
The Theme Park Inc, save and cheat filters pass.
The silent, offscreen Science smoke exits 0.
The original game was not launched, and no binary, save bytes or data are included.
Theme Park Inc: refused Science saves from before the staff pool are documented (November 21, 2026)#
The Science continuation section of docs/PARK-SAVES.md now explains why Science saves made before the staff hiring pool (PR #974) cannot be continued, and what happens to them. The pool draws from the same world generator as the rest of the park, so a park saved before it existed cannot go on exactly. The game shows a message and leaves both the file and the running park untouched. This documents the user's decision of November 21, 2026 to refuse these saves rather than migrate them. The refusal itself ships with #974.
Theme Park Inc: staff HQ slots, training and research (November 21, 2026)#
The staff HQ's twenty obstacle slots, staff training and the research lab with its researchers are ported (docs/reverse/TPI-STAFF.md §12). In play none of it can start yet: the research lab (1404) and the training room (1440) are Facilities, which the slice's catalogue does not load, and the prebuilt Science park has neither room, so no researcher reaches state 24 and no training starts.
Staff HQ (
ThemeParkIncStaffHeadquarters): the slot table from the mission'sObstacleStaff(0x634600), ability-only assignment (0x634B00), release and replacement on message 0x2A (0x634730; its message 0x21 listener has no sender in OpenTPW, as no member leaves the park), the trained-staff counts and assignment on 0x2B, and the rebuild on 0x23/0x24 (0x634D20). The mission controller's MetRequirements (0x55A620) now reads these slots; the prebuilt keeps its saved slots. The staff type codes are the role order (r7 had guard and entertainer swapped).Training (
ThemeParkIncTraining, staff world states 7 and 8): abilities by role (0x62B6C0), the career's discovered abilities and 10000 experience (0x639B20), the room capacity of three (0x639F40), the walk to the training room with message 0x2A, 300 updates (SkillIncrement10 toProgessUpperLimit3000), the reward (motivation 100, +5000 experience, the agency's percent), the finish with message 0x2B, and the cancel on a removed room. The text HUD's staff panel opens a hired member's ability list.Research (
ThemeParkIncResearch): the prebuilt's lab and object controls, the tick every sixth world tick from listed scientists in state 24, the cash per brain point, message 0x11 (the career's CDK flag, a Park Expansion's 0x23), the obstacle project (0x61CBF0), the consultant pick, the catalogue's researched gate, and the panel's rules as text HUD rows. Researchers are hired and placed with their start, look for work, room finder and states 25/24.CRT
rand()decisions (user, 2026-11-21): the level project after a completion (0x61FE70) is ported and takes no draw for the discardedrand()at0x61FF1A(always 1 cash per brain point); the training walk's stuckrand()only picks a thought bubble that is not drawn, so no draw is taken. A new zone's lab fill (0x61FD50,rand() % 2 + 1) is not ported: it waits for the user's decision at the zone package.Review fixes: a Science save from before the HQ and the lab is refused by its missing HQ with the start-again message, before any asset check (docs/PARK-SAVES.md); the staff route
0x62EB10(the closed park's entrance refusal and the walk mask) and the cell steer0x60B7F0are ported, so a refused walk to the training room searches again with mask 1; the handyman's litter route and patrol-entry route now go through the staff route too, which changes the merged handyman package: a closed park refuses the entrance cells (47, 17) and (48, 17), and a walk from or to an empty cell takes the walk mask 1; the lab tick, the advance's cash, the percent done and the researcher's step round every x87 operation to a single (control word 0x7F after DDSCL_FPUSETUP,0x6BF33F); a destroyed staff room's messages reach the lab (0x21) and the staff (0xA) at the click, as0x637C40delivers them at the demolish (0x4D30F8→0x660D80→0x666DA0), not at the turn's deferred free; the lab's save keeps the object types' research words, so a headless economy completes projects; the staff-destroyed listeners0x61DAD0and0x634730are removed (no member leaves the park in OpenTPW); the mission window's Proceed sends message 0x24 through one economy entry point (ParkEconomy.PressThemeParkIncMissionComplete), so the staff HQ rebuilds before the controller hears it, and the window reads the lab's Park Expansion progress (0x61E5E0) and the HQ's slots.
Verified: new ThemeParkIncStaffHqTests, ThemeParkIncTrainingTests and ThemeParkIncResearchTests, the Theme Park Inc and save filters, and the silent, offscreen Science smoke (which now checks the HQ slots, the seeded lab and the research row).
Theme Park Inc: follow-ups from the stack review (November 21, 2026)#
Small corrections after the Theme Park Inc staff, challenge, boundary, career and mission stack (#974 to #980) was merged.
One link resolver. The check that keeps the player file out of the game folder now uses the same symbolic-link resolver as the sign export (
PathLinks.ResolveLinks, moved out ofSignExportso the browser build has it too). The copy inGameFlowis gone, together with its wrong comment about link cycles.Tests without game data. The folder tests (the symbolic-link case, skipped on Windows, where creating a link needs a privilege) and the source contract that only the replacing teardown tears a park down for Continue and Load layout now run without
OPENTPW_TPI_PATH. A new test checks that the replacing teardown holds the flag the leave's save tests, and releases it when the teardown throws.Docs.
THEME-PARK-INC.mdandRUNNING.mdno longer say the slice runs only money, cleaners and challenges: the career and the mission controller run too, and the player file is the one native format written. The economy section's anchor is now#theme-park-inc-economy.Net worth. Theme Park Inc's own net-worth routine
0x5AFFB0was read against the cell-point rule the slice shares with Theme Park World. It skips unowned squares with the same bit 0x40 (0x5B0017), scores the same cell types, skips condemned objects (0x5E3970) and adds the same upgrade values; only the square size (72 bytes) and the cache offsets differ.
Verified: the player-folder, player-file and sign-export tests pass, the register stays at 76 open IDs, and the progress and CI contract checks pass. The original game was not launched, and no binary or data is included.
Theme Park Inc: the staff economy model (November 21, 2026)#
Theme Park Inc's staff are not Theme Park World's graded staff with new numbers. They have experience instead of grades, a salary they negotiate, an agency, three meters (happiness +0x230, motivation +0x234, energy +0x238), a sixth role (the gardener, kind 0x14, which borrows the handyman's pool keys) and their own strike rules. The static trace is in docs/reverse/TPI-STAFF.md. This change ports the economy side of it as a model, checked against the executable, without the staff walking in the park yet.
ThemeParkIncStaffSettingsreads every staff key ofStandard.sam, including theStaffAgenciesrows, and ports the helpers it needs: the interpolation0x62C900(an empty range divides by zero, as the executable'sidivdoes), the expected wage0x62CD30and the experience-driven work duration0x62E4C0.ThemeParkIncStaffCandidates.Generateis the candidate constructor0x6302C0, which draws the agency, look, experience, wage, name and timeout in the executable's order.ThemeParkIncStaffkeeps the 32-slot hiring pool. It ports the opening pool0x631F30and the update0x631B40: expiry after four times a candidate's timeout, a refill after four timesTimeBetweenStaffUpdates, theMaxInParkflags0x631490and the minimum top-up0x631690, which stops after a pass that adds nothing instead of looping forever. Name checks compare texts (0x631A30), and hiring holds the candidate while it is placed (0x630D10,0x6319E0).ThemeParkIncStaffMemberports:the wage review
0x62CDA0and the salary setter0x62D160;the day counters
0x628050, the daily experience gain0x629650and the counter reset0x62D1A0;the step cost
0x62B3E0, the rest0x62A1C0and the tired test0x62B3B0.
The month message pays each member its salary and then reviews it (
0x6265DE). The day message adds the experience and lets a member demand its shortfall on its demand day (0x628CA0). The demand is type 0xA for a grieved role in a park younger thanMinMonthsForStrike, else 0xB, and there is at most one demand per 30 game days across all staff (0xAA07F4). Both messages reach the staff in ascending thing-handle order, because the broadcaster keeps an ordered set per message (0x436E97).The strike rules port the grievance
0x633740(energy, happiness or motivation below its threshold with at leastMinStaffOfTypeForStrikeof the role) and the month's escalation0x6330B0.
The executable draws the candidate's agency and the wage-demand day with the C runtime's clock-seeded rand(). With the user's approval on 2026-11-21, both draws come from the park's world generator ([EXT:tpi-staff-crt-rand]).
Verified: tpi_staff_formula_oracle.py runs the lerp, expected wage, work duration, wage review, step, rest and experience gain natively on 2,000 random cases each with no mismatch, and tpi_staff_candidate_oracle.py runs the candidate constructor on 500 cases with no mismatch. The 28 ThemeParkIncStaffTests pin the retail keys, the formulas, the pool order, hiring, strikes, payday order and the wage demands against OPENTPW_TPI_PATH. Still to come: the role state machines in the park, training, the wage negotiation dialog, the hire list, saving the pool, and lifting the slice's refusal of Theme Park Inc staff. The original game was not launched, and no binary, data or disassembly is included.
Theme Park Inc: the staff hiring pool runs in the park (November 21, 2026)#
A Theme Park Inc park now keeps the executable's staff hiring pool, so the pool's random draws come at the same points as in the original. Hiring is not possible yet, so the pool has no members.
Opening pool. A new park builds it at once (
0x630CB0, called by the new-world init0x6482BA), before the layout loads.Turn update. Every turn, after the thing loop and before the calendar, the world update's tail runs the pool update (
0x649868→0x5D65E0→0x631B40): candidates expire, the pool refills and the minimums are topped up. The update draws from the world generator and runs in every world state, the lost one included.Promotion rank. A new career starts at rank 1 (
0x74BDC7), so candidates come from the agencies of rank 1. OpenTPW has no promotions yet.Name test. The pool's name test compares texts. No retail language holds a staff name twice across the six name tables (a new language test checks all five), so role and index decide that test exactly.
Saves. A Science continuation save keeps the pool: its slots, the members' state and day counters, the strike records and the last wage demand's day. A Theme Park Inc save from before the pool is refused, because the pool's draws share the world generator.
The experimental Theme Park Inc HUD has a Staff button (top right) that opens a panel listing the hiring pool's candidates in slot order (role, name, experience and monthly wage) and, under a heading, the hired members. A one-line note says that hiring comes in a later version. The panel only reads the pool: it does not pause or change the simulation and draws from no random generator.
Role names come from STAFF_TYPES.str, which holds each role's singular and plural name as consecutive entries, so a role reads entry 2 * role. Candidate names come from the per-role *_NAMES.str tables (35 entries each, no leading header entries), indexed by the candidate's name index directly, as the executable's name formatter (0x62FFB0) passes the candidate's name-index word (+4) to the string lookup 0x8934A0.
Verified with these checks:
The Theme Park Inc, original-UI, save and economy filters pass with the retail data (1558 tests). They include new tests for the snapshot round trip, for refusing foreign snapshots and for the name tables.
The silent, offscreen Science smoke exits 0.
The browser build with the determinism pins builds.
The original game was not launched, and no binary or data is included.
Theme Park Inc bank: the red-month mail (November 18, 2026)#
A Theme Park Inc park that stays in the red now says so. The bank's six-months test (0x5C0C99) does not itself lose the park, but its event value 2 comes back to the bank as a type-19 message (0x5C091F), which posts a 36-byte type-25 notification (0x435DF0, record 0x5CEE50: id 8, group 1, the null tag 0x97). Exactly one subscriber takes type 25: the tag and mail system (0x635A72), whose handler (0x635D80) builds a record from it and hands it to the mail window (0x526CD0, window procedure 0x526960). The record carries advice message 0x1A2 — response 749, speech event 869, tag 0x5E, TAG_SYSTEM.str entry 166 — and that entry is the bank's closure letter: it tells the player the banks are forcing the park to close after six months in the red. Dismissing the letter is what loses the park: the letter window's procedure (0x526960) calls 0x649E60, which sets the lost state and opens the "BANKRUPT!" loss window (0x50AFC0); OpenTPW does not port that window or the loss yet. Of the other two messages the same builder can carry, id 6 (0x1A1, null tag) has no sender and id 7 (0x1A3, tag 0x5F) is the challenge system's lost-challenge mail.
ParkEconomy hands the client ThemeParkIncAdviceMail.RedSixMonths at each month end where MonthsInRed has reached six, and the desktop slice plays its speech from the global catalogue and puts its TAG_SYSTEM.str entry on the advice line (the line the forecasts already use; the original lists the mail in its mail window, which OpenTPW does not reproduce). Nothing new is saved: the mail follows MonthsInRed, which the save already carries. The same handoff carries ThemeParkIncAdviceMail.ChallengeLost (advice 0x1A3, response 750, speech 870, tag 0x5F, entry 167 — the second closure letter, this one about failed challenges) once the career firing line is used up: the original starts it at a fixed 5 (0x74BDD1), takes one off per lost challenge (0x5C4857) and posts the mail on every loss that leaves it at zero or below (0x5C48B6), so the fifth loss and each one after it bring the letter. The current slice refuses the challenge system for Theme Park Inc, so that mail only appears once Theme Park Inc challenges run.
Verified: a new economy test walks a park into the red and asserts no mail before six months, the mail on the sixth, its one-time handoff and its return on the next red month, and that a Theme Park World park has none; 342 Theme Park Inc tests pass with the retail data (3 skipped). The native checks live in tpi_advisor_forecast_oracle.py, which now also reads the three red-month descriptor rows, their three response rows and the tag-94 caption entry. Nothing was launched and no binary, data or save bytes are included.
The advisor's scoring names InTheRedSixMonths, InTheRedThreeMonths, InTheRedMonthLeft and Bankrupted (0x982598, 0x98264C, 0x982700, 0x9827B4) sit in a table that no immediate or pointer in the file references, so no consumer of them is traced. The notification's payload constructor has three callers: the bank at 0x5C0969 (id 8, modelled), a window-module path at 0x53530C (id 8 again, after destroying a window) and the challenge system at 0x5C48DD (id 7, logging Lost the challenge!!!), so id 7 carries the challenge-lost advice message 0x1A3 and nothing builds an id-6 record. Promotions, which raise the line to FiringLineForRank[n].Limit (0x74C450), are not modelled; the challenge system itself stays outside this slice. The full chain is in docs/reverse/TPI-BANK-MAIL.md.
Update (November 21, 2026): the advice-line caption and the unported loss window described above are superseded. The mail now opens the original letter window, and closing it loses the park (see "Theme Park Inc: the \"Game Over\" letter loses the park").
Theme Park Inc weather forecast advice (November 18, 2026)#
The original rolls the next weather spell in its month handler and posts advice for the rolled kind: heatwave 0x154, rain 0x157, storm 0x15B and snow 0x15A. Each descriptor row carries response 642/645/649/648, a speech event (763/766/769/938) and a tag whose TAG_SYSTEM.str entry is 127/130/156/133. The four rows share message group 0, and the shipped Advisor.sam gives that group its repeat intervals. A second identical forecast is admitted while an earlier one is pending; the descriptor's duplicate limit is 255. On a full queue the original replaces only a strictly lower score and still reports success on a tie.
ThemeParkIncForecastQueue ports the eight slots, the per-kind history, the strict score floor, first-slot selection, the consume-then-recheck order and the playback window of the speech's length plus 1000 ms. ThemeParkIncForecastSettings reads the score floor and the group's four repeat intervals from the mounted Advisor/Advisor.sam; without a mounted file the park simply has no forecast advice, as the original has no advisor without it. The economy posts the spell the month handler returns, at the world tick shifted by two, and the queue is saved as an optional TpiForecast payload that the edition validation accepts only in a Theme Park Inc park. The desktop slice ticks the queue on the scene clock, plays the response's speech event from the global cat_speech catalogue and shows the caption on a line that holds until the next forecast.
Verified: 10 queue tests including the round trip and the rejection of foreign rows; the economy's month test now asserts that the rolling month posts exactly one forecast and that it survives a save and restore; 81 targeted Theme Park Inc economy, weather, play, language and forecast tests pass with the retail data. All four forecasts were played in a running retail Science park through --debug-tpi-forecast, each with exit 0 and no missing caption: heatwave response 642 with speech 763, caption 127 and a 5,758 + 1,000 ms window; rain 645 with speech 766, caption 130 and 5,526 + 1,000 ms; storm 649 with speech 938, caption 156 and 5,909 + 1,000 ms; snow 648 with speech 769, caption 133 and 4,783 + 1,000 ms. The speech came from the global catalogue (1,136 events), and 0 of 18 object scripts stood faulted. The native oracle now replays 28 score cases and the 72 class admissions of the eligibility matrix alongside the descriptor, response, caption, queue and playback cases, and 341 Theme Park Inc tests pass with the retail data (3 skipped).
The eligibility check is now traced. 0x71B7E0 finds the descriptor row by message ID and asks 0x71BDC0 whether that row's class is one the current advice context selects; the oracle patches the heatwave row's class through 0 to 7 in each context and shows that the default mode word admits classes 0 and 2, mode word 1 class 2, mode word 2 classes 1 and 2, mode word 3 class 3, the game object's byte +0x2E class 5, +0x2F class 7, and the animation word classes 6, 5 and 4 for its variants 0, 1 and 2. The mode word is a four-valued static at 0xC65B80 derived from four bits of the packed option dword at 0xA2CA84 (0x6A5EF0, setter 0x6A5FF0, called from the settings loader); the two bytes belong to the global object at 0xA6E158 and are written from sixteen sites with literal 0 or 1; the animation word at 0xA9D230 belongs to the animation module, which also stops the advisor from taking in advice (0x718227) while it is set, as does +0x2F. Since the four forecast rows are class 2, they are admissible whenever the mode word is not 3 and none of those contexts is active, which is what ParkEconomy.TpiForecastEligible reports for a running Science park. What the game calls those contexts is still not established; the classes they admit are.
Not yet verified, and not claimed: the four kinds have not been driven from a natural freak month rather than the debug post, and the original's mail panel and row actions are represented by one caption line.
Theme Park Inc precipitation counts (November 18, 2026)#
The Theme Park Inc weather state now advances its precipitation count on each park turn and preserves it on Science continuation. Rain and storms use the rain quality endpoints and snow uses its own. A dry spell clears the count immediately. Twenty-one isolated native cases cover the target calculation (0x642A80) and the per-turn update (0x642230), including the strict step boundary and the difference between the clamped renderer count and the raw audio request. These updates consume no random draws. The desktop slice now drives both original rain voices: the weather thing's flat ambient sentence in rain and storms (0x642F40), and the global level-driven sentence with parameter 8 (0x657200), which also follows the drop count in snow. A silent mixer test exercises the voice lifecycle, and the retail-data test verifies the event and its sample bank. The spell-start fixtures also verify modes 0 (rain and storm), 1 (snow) and 2 (off), and fall speeds 2.5, 4.5 and 0.8 for rain, storm and snow respectively. The simulation now takes the original world-generator draw at each spell start and stores its new wind angle in Science saves. Earlier saves without an angle start from 90 degrees. Seven additional native fixtures cover reflection at zero, the remainder at 360, the clamped force and the exact angle/force pair passed to the renderer at 0x642D45, with identical results at all three tested x87 precisions. Twelve native cases also verify the normalized fall vector (0x6EA9A0) at both 24-bit and 53-bit x87 precision; several of the results differ. The desktop renderer now draws ordinary rain and snow using TPI's original textures, six-unit field, wind and spell speed. Three additional native cases verify the scroll and parallax handoff at 0x6ED800. OpenTPW uses the 24-bit hardware reference for the fall vector; this does not identify the runtime precision of every original driver. The silent Science smoke checks rain and snow submissions and verifies that dry weather submits none. The spline snow branch at 0x6ECC50 and browser presentation remain separate. Separate storm helpers match nine native timer cases (0x6422FE) and eight strike-coordinate cases (0x642550, at both tested x87 precision settings). The timer keeps the existing thunder position when thunder is pending and then skips its re-arm draw. A strike uses four coordinate draws, one countdown reset draw, and a sixth draw only if thunder is armed. The geometry helper leaves the precision setting explicit; these tests do not establish which display mode selects which setting. The storm's timers and bolts were connected in the storm entry of the same day. The TPI sky remains separate work.
Theme Park Inc storm lightning and thunder (November 18, 2026)#
The weather thing's storm timers now run on the park turn with the precipitation step, drawing from the world generator in the native order. The four controls come from levels/science/Standard.sam: WeatherEffects.LightningCountdownSpeed 10, LightningCountdownFrom 500, ThunderStartsThisFarAway 10 and ThunderRandomiser 2, the same numbers the executable holds at 0x0A0252C–0x0A0253C; LightningTime 2000 sets how long a bolt is drawn. A strike's geometry spans the map's cells (0x642550), the thunder keeps the bolt's top until its countdown reaches zero (0x6423AB), and both are saved with the weather as an optional Storm record that older saves simply lack.
The desktop slice draws the bolts through the existing weather renderer's lightning.tga ribbon and plays the ambient thunder event at the bolt's top. --debug-tpi-storm puts a Science park into a storm for observation and is deliberately not combined with the slice smoke, which asserts a dry park.
Verified: a storm test drives one turn through the wired path with a scripted draw sequence (four geometry words, the thunder countdown's and the re-arm's) and checks the bolt, the round trip and the presentation-only strikes; 401 tests across Theme Park Inc, weather and audio pass with the retail data (6 skipped). In a running retail Science park the storm produced five bolts with thunder at each of them, e.g. a bolt from (106, 355) to (82, 300, 341) and its thunder, from the park's own timers.
The thunder's event is the ambient 0x20 in Theme Park Inc too: 0x64241C pushes 0x20 with the converted top point, so reusing the Theme Park World event is not a substitution. The strike coordinates use the same 24-bit hardware reference as the fall vector, which does not identify the active control word of every original driver. The weather draw picks a white tint on one branch (0x6EC606, +0xA19C = 0xFFFFFFFF, +0xA1A0 = 4) and otherwise a grey from rand() & 0x3F ORed into the colour (0x6EC5D2), then draws through the textured-quad routine at 0x6EC260; the vertex record it builds carries state 0x9A1. That is a tint choice for the drawn quad, not an established full-screen flash, so no flash is claimed for Theme Park Inc. A natural storm spell is now covered too: with storm-only seasons the roll produces the spell, its start makes the state a storm and the following turns strike and swing the thunder countdown to zero, as one test asserts. The visual storm was started through the debug restore.
Theme Park Inc Science continuation and year-end bank report (November 17, 2026)#
The Theme Park Inc calendar dispatches the month message at 0x60859B before the year message at 0x6086B3. The analyser closes December before the bank posts its batch credit and loan instalments, and before the attractions pay their running costs. The bank's year handler at 0x5C0A36 then clears its signed profit accumulator.
OpenTPW's Theme Park Inc YearEnded event now reports the bank's profit and balance after those December postings and before the reset, instead of deriving annual profit from the analyser's closed months. The analyser history and Theme Park World reporting are unchanged. The regression exercises a December close with a pending batch credit, a live loan and attraction running costs.
The host economy snapshot also now keeps the Theme Park Inc rules profile, booked monthly object costs, the plant script condition, price counters and the active and pending weather spells. Restoring it into another edition is refused. Missing weather fields and malformed cost or counter values are rejected. The desktop Science pause menu can save and continue a solo park in a separate OpenTPW slot. Loading validates the assets and builds the candidate before replacing the live park. The save preserves whether a ride was closed by the weather and which spell has already been delivered. A TPI save without a tour controller does not create one on load: the legacy repair consumed five extra draws in the Science smoke. .tpilayout still starts a new session, and no native save import or export is enabled.
The tests compare continued finance and weather against uninterrupted runs across month boundaries, including a Science economy built from retail data. The offscreen desktop smoke exercises the pause-menu save, cancel and continue actions, checks that a malformed save does not replace the live park, and compares the resumed guest and economy states after 180 fixed ticks with uninterrupted play. The same smoke returns to the Personnel File, verifies that Load A Game is disabled without a slot, rejects a corrupt slot without leaving the menu, then resumes the saved Science park with Polar Zone selected. A separate two-process smoke saves a played park, exits, then starts a new process at the Personnel File and verifies that loading restores the guest and economy digests. The pause menu freezes simulation without discarding the selected speed, and Science continuation does not repair missing queue links during registration. Theme Park World saves omit the new fields and retain the existing rules and year report.
A separate guest-initialization building block reproduces the TPI constructor fragments at 0x60C58F–0x60C911. Thirteen synthetic native replays verify the profile (type, generation, starting cash, exit counter, preferred excitement and boredom threshold), starting needs, the selected prank code and the generator state at both boundaries. Six further cases verify the thing-ID reseed and the ordinary and forced appearance paths. The isolated SAM loader verifies the guest-profile settings bindings. Data-backed tests load the 24 profile rows in each supported world and verify the matching body and head banks for children, parents and grandparents. New TPI guests now use the native profile draws and initial meters in the live simulation, including the selected row's excitement preference. The native prank code is saved separately, including zero, so older guests remain on their saved legacy profile. The body and ride-head renderers select paired sprite banks within the guest's generation. The native loader sorts filenames at 0x68F1E0 and applies the preset's kid limit at 0x68F46A; the separate staff limit does not apply to parents or grandparents. Speed scaling is verified in isolated replay at both x87 precisions but is not enabled in the live constructor until the device precision is established. Native prank actions and the remaining arrival behavior are not enabled by this change.
COAST-032: the slot-n copy is not a divergence (November 12, 2026)#
The entry listed three things that were not compared with an oracle run. Two are rendering-only: the posed track tags of a pylon model and the cars' curve point and pose. The third — a car or release walk that reaches slot n past the sample list, where the original reads the sampler's pre-rating copy of the last sample (0x441783) and OpenTPW reads the rated sample — is not a divergence at all.
The copy is made before the rating pass, and the only field its reader takes is the position, used in the car point's lerp (0x43cf6c for the current point, 0x43d10d for the half-sample point). The rating pass rewrites speeds, forces and flags but never a sample's position: no assignment to a sample's position exists anywhere in the coaster path. So the pre-rating copy and the array's last sample carry the same position, and CoasterRide.Slot answering with the last sample is the same answer.
That leaves COAST-032 with its rendering-only items, which need a loaded model in the oracle rather than a port change.
QUEUE-015: what the queue tool's stack actually decides (November 12, 2026)#
The entry's residual named three things: the Move pick-up's stack copy and second walk, the per-click select re-map, and the tool entries' starting stack. Reading the executable narrows all three, and two of them turn out not to matter.
The stack at 0x820A8C is read by exactly three things: its count getter 0x52FBE0 — the "click on the start with more than one point" test — Back 0x52FE50, and the copy 0x52FC30. That copy's four globals 0x818D98, 0x818D9C, 0x820A90 and 0x820A94 are referenced only inside 0x52FC30 itself, and the return byte 0x81B14C is written at 0x48D00E and read nowhere. The second walk at 0x527F9A resets the count and refills it, so the first walk's stack is discarded regardless.
So neither the copy nor an unseeded stack can change an acceptance, a refusal, a cell type or a link byte. What is genuinely left is narrower: a ride placement enters mode 3 with the stack the placement click left, at least two points (0x5259AE..0x525A06), so clicking the start cell ends the tool there, while this port starts a queue edit with one point and lays a one-cell line. The per-click select 0x5276D0 is real for the track tools' selection and orientation globals but changes no queue decision, and the Move gesture itself belongs to UI-024.
The declaration now says all of that, so the next reader does not go looking for a behavioural gap in dead state.
COAST-004: what a loaded park does with the saved collision lists (November 11, 2026)#
The entry's open question was whether the saved collision lists and their two marks are what the original re-tests from. They are not re-tested: the loader 0x437B60 restores the flag word and the ids, rewrites every slot through 0x43E520 (0x438262..0x4382A3), and nothing on the load path marks a node dirty — the only chain-wide 0x200000 setter is 0x43AFA0, reached from 0x436A39 and 0x43B2DF. So a loaded park keeps the saved lists verbatim until an edit dirties a node.
OpenTPW instead re-derives them on the rebuild that the load itself triggers. That is not a fidelity loss, because the only consumers are the drop 0x43AD50, the save writer, the section builder's count test 0x43F4FB and the guest predicate 0x441970 ([ctl+0x140] != 0), and the count is recomputed from the same geometry — importing the saved lists would change nothing observable.
Two smaller corrections come with it. The list is eight slots at +0xB4..+0xD0; the comment said "up to +0xd4", which the pass, the drop and the writer never touch. And the three load sites the entry called ambiguous — 0x43B159, 0x43B3E5, 0x43B63F — are confirmed to be a ring buffer of another object (capacity at +0xB0, cursors at +0xC4/+0xC8), pushed and popped as peep ids, exactly as the comment already said.
The pass itself needed no change: the cut-end branch (0x439B72, drop only, never tested) and the 0x439C40 cut-end skip are both already ported.
RIDES-011: the coaster tool's entry writes the sticky tool globals (November 11, 2026)#
The entry's residual was that the coaster marker tool does not model its share of the native sticky globals 0x7639E0..0x7639EC — the exit and entry cell pairs that the select 0x5276D0 writes.
Reading the executable shows the coaster tool has no writer of its own: its share is the select at entry. All three ways into it run 0x5276D0 first — the ride window's track button 0x4AF200, the marker-cell press and panel entry 0x4988C0, and the track tool 0x497D20 — and each stores the selected coaster's anchor mapped through 0x52A3A0 and 0x52A420. The pylon and panel clicks themselves never touch the pair.
BeginCoasterToolEntry now calls NoteToolSelection(station) the way the kart and water tools already do, so a later bulldoze, ghost or link walk that reads the pair sees the coaster's cells instead of the previously selected ride's. That matters because the pair is not inert: the demolition clear 0x53B280/0x53B54A spares the named tiles, the walk 0x52A970 and the ghost 0x532DD0 read it, and the bulldozer path deliberately selects nothing first.
What stays open is the type-3 tail of the click handler (0x5251F5 and 0x525838 write the raw anchor when 0x52FAF0 answers 3), whose reachability from a coaster marker tool rather than a coaster-track add-on could not be shown.
RIDES-011: the type-3 tail gets its test (November 11, 2026)#
The branch that stores the clicked thing's raw anchor while a coaster track add-on is armed was implemented without a test, because the test park applies its extra settings globally and so leaves no catalogue entry an add-on. The fixture is possible with the synthetic entry the coaster tests already use: an ObjectCatalogEntry built from settings text carrying AddOn.UpgradesId at the ride's info id, AddOn.UpgradeType at the track type and Bumper.WhichTrackType 3.
ACoasterTrackAddOnSelectStoresTheRawAnchor arms that add-on with BeginAddOn, runs the select and asserts both pairs hold the ride's raw anchor rather than the mapped station cells. Removing the branch fails the test, so it pins the behaviour rather than the setup.
RIDES-011: the type-3 tail of the click handler is reachable (November 11, 2026)#
The previous change closed the coaster tool's entry half of the sticky tool globals and left one clause open: the type-3 tail of the click handler, whose reachability from a coaster marker tool could not be shown. It is reachable.
At 0x5251F5 and 0x525838 the handler writes the selected thing's raw anchor into both pairs, skipping the 0x52A3A0/0x52A420 mapping, when 0x52FAF0() answers 3 — the coaster track type. The way in is the ride window's track button 0x4AF200: it arms the build tool at 0x4AF33E (0x46C350) and then calls the click handler 0x524960 at 0x4AF34B, and again at 0x4AF40F, so a coaster-track session does reach that branch.
OpenTPW maps on every path, so after a coaster-track add-on it leaves the mapped station cells where the original leaves the raw anchor. That is the remaining half of the entry: the declaration now records the branch, its trigger and the reachability, so the change is a known one rather than a question.
The reachability was established with the Ghidra provider rather than byte scanning: the plain e8 sweeps had found no caller of the button's handler because the path runs through the tool arming first.
RIDES-031: Theme Park Inc's line validator is the same routine (November 10, 2026)#
The entry's last open clause was "Theme Park Inc's own validator twin of 0x535670". It is not a twin in the sense of a second implementation to port: it is the same routine, and every difference between the two builds is data.
In Game.exe it is 0x67E320 (0x67E320..0x67EAA6), the same __thiscall with ret 8, reached through the import thunk 0x401ACD from the same five kinds of call site — the first-click start check with modes 1 and 3, the SetCell collapser, the ghost, the ghost-refused path and one internal call. The branch graph, the record offsets (+0x00, +0x08, +0x0E, +0x0F, +0x10), the sticky refusal latch and the special cases all map one to one.
What differs is data:
| Theme Park World | Theme Park Inc | |
|---|---|---|
| end of line | 0xB | 0xE |
| ignored | 0xD, for mode 0x3A | 0x10, for 0x3A, 0x3D and 0x3E |
| queue connects onto a path | 8 | 0, with the same two link globals set |
0x22 | — | 8 |
0x88, 0x89 | — | 0 |
0x36 | 1 when the latch is set | always 0 |
0x1B, 0x17 | — | remapped to 4 and refused outright over an object cell |
| owner overwrite priority | record +0x54 | record +0x7C |
OpenTPW collapses the answer to allow, refuse, ends-the-line or sets-the-link, and drives the pointer and ghost from the flags rather than from the integer — so the changed codes are invisible to it. What a port would actually need is TPI's mode table. The declaration now records that, and the entry's clause is no longer an unread question.
RIDES-045 retired: Theme Park Inc's engine never writes a script variable (November 10, 2026)#
The entry said a Theme Park Inc object brought into a Theme Park World park keeps the variables that only Theme Park Inc's engine writes at 0, so the branches they guard never run. The follow-up was to model those writers. Reading the executable shows there are none to model.
The script instance allocates its variable array and zero-fills it at load (0x6AEC50), and the only writes afterwards are the interpreter's own operand-destination tails — seventeen of them from 0x6AB48D, each storing the accumulator when a destination operand's high byte is 0x40. The engine-side setter exists: 0x6B0780 checks the subsystem flag, the null script, the index against the count at +0x8C and stores through the array at +0x1C — but no code calls it: no e8 target in the executable, no entry in the plugin thunk table, no data word holding its address. The sibling getters and field setters are equally uncalled.
So the read-only slots — capacity, duration, ride-closed, worn, break status, special, the staff room's closed — stay 0 in the original too, and the scripts only ever clear the ones they also read (VAR_BOMB, VAR_FPBYPASS, VAR_USE, VAR_EMPTY). The FastPass bypass, the stinkbomb arming and the capacity protocols are therefore vestigial in the shipped executable; the behaviours themselves are native.
OpenTPW already keeps the slots at 0, so nothing changes in behaviour. The entry is retired: the declaration now records the finding as [BIN:TPI-EXE:0x6B0780] and the register loses one ID.
The corpus scan behind this is recorded here rather than in the code: 287 compiled scripts in 248 archives declare VAR_FPBYPASS at slot 12 in all 69 that have it, VAR_SPEED and VAR_SPECIAL both at slot 10 in their 22 and 15, and the three litter bins put VAR_BOMB at slot 2; the slot number is per script family, so it cannot be mapped globally.
SAVE-921: the track controller flags have no reader (November 10, 2026)#
The entry said the track flags (wire 0x4..0x100, controller +0 bits 0x20..0x800) are not modelled by the coaster runtime beyond the trains-set-up bit 0x800. Re-running the repository's own scan — tools/ppc-analysis/controller_flag_readers.py against the identified tp.exe — reports PROBLEMS: none, and every candidate it lists is dismissed with the reason it gives, that the base is not a controller pointer in the flow.
So nothing outside the saver and the loader reads them, and modelling them would add state no one consumes. What the entry actually costs is a round trip: the original's loader restores the bits and its saver writes them again, while OpenTPW drops them on import and would not write them back. The import already reports them, so the loss is visible rather than silent.
That reframes the residual for whoever picks it up: the work is to carry the raw word through import and re-save, not to give the bits behaviour. The declaration now says so.
ARRIVAL-008: the Theme Park Inc weather thing read (November 9, 2026)#
The register said the weather thing's per-turn effects — "the sky quality +0x74, drops, lightning and thunder" — were not modelled. The routines are now read, and one of the four names was wrong.
The thing is constructed at 0x641420 and its per-turn update is 0x642230, reached by the thing sweep through the type-15 case 0x637720. The month handler 0x641F60 applies a pending spell and rolls the next one; both were already ported in ThemeParkIncWeatherSpells.
Drops need no random draw: the target
+0x48comes from the spell's band arithmetic, and the update moves+0x44towards it by SpeedOfChange 20 per turn, writing the renderer's drop count.Lightning and thunder hang off
+0x50(countdown),+0x54(bolts this period),+0x58(thunder arming) and the strike point+0x5C..64. A strike takes six world-LCG draws in a fixed order — x, z, dx, dz, the thunder arm and the countdown reset — so enabling them changes every later guest and staff draw.+0x74is not a quality: it is a sky-texture scroll angle in degrees. The constructor0x64149Bsets 90.0, a spell nudges it byr-45wrapped to 0..360, and the sky renderer0x687420reads it once per frame. The overcast scalar is+0x78, used only at spell start.
So the item should be split rather than kept as one: the drops with the per-turn state are self-contained and testable now; lightning and thunder are one unit but need a determinism decision because of the six draws; and the sky angle can be stored but cannot be verified until a Theme Park Inc sky and light path exists in the slice.
The declaration in GuestSimulation and the summary row in docs/THEME-PARK-INC.md now record the read behaviour. No behaviour change in this PR.
Theme Park Inc's attraction serialiser read (November 9, 2026)#
SAVE-006's residual in the current tree is small — an imported attraction takes its name from its type's sign because OpenTPW has no Rename Item dialog (0x48D370), its open word comes from the level, and staff claims are imported as saved — but the field set behind it was not recorded anywhere.
The object's loader and writer are the two halves of 0x5DC430, and the operating fields sit +0x14 above the Theme Park World layout: speed +0x6C, capacity +0x71, duration +0x70, mCanLoad +0x7C, the claimed staff id +0x72 and its turn +0x74, the two name lines at +0xA8/+0xEA, and the three gauges at +0x60, +0x58 and +0x54. Theme Park World's third gauge at +0x4C is mFirstInQ in this build.
The loader stores every one of them into the live object without validation, and each has a reader except the third gauge — which only its constructor, the writer and the loader touch. That confirms the register's "no reader found" for the field of the same meaning, so importing it would round-trip a value nothing reads.
docs/THEME-PARK-INC.md now records the offsets, the writer and loader sites, the readers and the gauge verdict.
BLUEPRINT-001: Theme Park Inc raises the terrain too (November 9, 2026)#
The register said a Theme Park Inc world "keeps the unraised terrain", and OpenTPW's BlueprintMarkers comment repeated it. That is wrong: Theme Park Inc applies the same type-gated, quantised terrain raise for its ghosts.
Its placement handler 0x67AD00 (6010 bytes, reached through the import thunk 0x403DEB from 101 sites, so a direct e8 scan finds none) does exactly what the Theme Park World side does. The gate helper 0x67AC80 tests the record types 0xB, 0xC, 0x10, 0x11 and 0x19; the handler then tests the map types 7/0x1E and 4/9/10; the raise is ceil(h/10)*10 of the cell ground, read through 0x4A8760, the twin of tp.exe's 0x452AE0 — same 10-unit cell pitch, same view rotation, and the same byte-per-cell height grid scaled by 0.392157 (the only occurrence of 100/255 in the binary, at 0x93AFC4). Unequal neighbouring raises are filled in steps of 10.
Two corrections follow for the record. The earlier "Theme Park Inc keeps the terrain" was an OpenTPW limitation described as the original's behaviour, so the register text no longer says it; what stays open is only whether OpenTPW's own Theme Park Inc path supplies those cell and record types to BlueprintHeights, which is a data question for that slice. And the register's type list belonged to tp.exe's 0x5330CA..0x533F69 family, not to the tile ghost's 0x536CA0, which tests only 0xB, 0x10 and 0x19.
The [APPROX:BLUEPRINT-001] text and docs/reverse/BLUEPRINT.md now record this. No behaviour changes in this PR: the port itself depends on the type question above and would be a separate change.
UI-004: no texture is ever placed on a cache page (November 9, 2026)#
The register row described the batcher's grouping by cache page as a fidelity gap. It is not one: in this build the page manager can never place a texture at all.
The class pick 0x58F1C9..0x58F1E4 takes a class only while that class's used count is below its limit at +0x1818, and neither that array nor the used array at +0x1830 ever receives a non-zero value. The constructor 0x58D0F0 zeroes +0x1800 and +0x1830 (0x58D1B8..0x58D1CC) and nothing else there; the driver 0x58F940 clears +0x1830 every frame; a full .text displacement scan finds eleven references to +0x1818 and every one of them is a read (the trimmers 0x58EA20 and 0x59001A clamp a negative limit to zero and release the pages above it). The initialisation 0x58DA40 writes the per-class budgets at +0x1860 but never the limits.
Run in the oracle harness with the device singletons stubbed, the constructor, the initialisation and the class walk all complete and write nothing at +0x1818, and 0x58F190 with a one-texture pending list returns -1 after 122 instructions. The frame driver is nevertheless entered every frame — 0x576C5A loads the cache global [0x8C4B44] and calls 0x58CF40 unconditionally — so the page system runs and can never place a texture.
So the shipped PC build draws its textures directly, and the page grouping, the page identity and the between-page draw order cannot differ from the call order because no texture is ever on a page. The row now says that, and keeps the half that is still unported: the per-window show sequence, the hide-and-re-show reordering and which sprite flush the control text uses.
The virtual-page plan in OpenTPW-notes/plans/ui-virtual-pages-plan.md loses its premise: it would have modelled a path that does nothing in the shipped game. Its tests and probes are recorded there so the finding can be reproduced rather than re-derived.
A Theme Park Inc park is never lost (November 8, 2026)#
Theme Park Inc has no loss scene. Its bank's month tick 0x5C0B10 stamps the turn the balance first goes negative (+0x128), converts that stamp to months, and at 0x5C0C99: cmp eax,6; jl — six or more months in the red — builds CMsgEvent(2) and broadcasts it on the global bus 0xA09728. That is the bank's own message: the player's close sends CMsgEvent(4) (0x64F7C3) and the open sends 3, and this site is the only one of the eight construction sites in the executable that pushes 2. It writes no state, opens no window and loads no asset, and the bank module holds no file name.
The lost state the register described is Theme Park World's. In Theme Park Inc, state 4 has a single writer, 0x649E94 inside the level-teardown routine 0x649E60, whose callers are the result branches of the event-5 handler; no economy or bank code writes it.
EndMonth therefore skips the lost state under Theme Park Inc's rules: the bankruptcy message is raised, IsBankrupt stays false, the park stays open and no purchase, hire or admission is refused — which is what an original that blocks nothing on bankruptcy does. Theme Park World is unchanged: the change touches only the Theme Park Inc branch.
SixMonthsInTheRedLeaveTheParkTradingInsteadOfLosingIt and ThemeParkIncNeverEntersTheLostState pin it (no lost state, the park open, no Bankrupt or ParkClosed event, a build not refused), and TheBanksMonthComesBeforeTheObjectsDebits keeps its ordering claim with the message and the absent lost state asserted. The economy, ledger, bank-word, advisor and Theme Park Inc selection passes (921 passed, 0 failed, 109 skipped).
The [APPROX:ECON-030] text records the read rule and narrows the residual to what is still unknown: who consumes the 36-byte notification the bank broadcasts as message type 25 (0x5C09D9), whether a level script writes mWorldState itself, and the advisor's own Bankrupted and InTheRed* lines. RestoreState also refuses to restore a lost state under Theme Park Inc's rules, so a save an earlier build wrote with one loads trading instead of permanently unable to open or buy (AStoredLostStateIsNotRestoredForThemeParkInc). The economy, save and Theme Park Inc selection passes (1308 passed, 0 failed, 162 skipped).
Theme Park Inc's month order: the analyser closes before the bank (November 8, 2026)#
Theme Park Inc delivers the month message to its listeners in ascending thing-id order through an id-keyed tree walked in order (0x436DD0, successor 0x407EA0 → 0x437EF0), and the level setup 0x648070 gives the analyser id 5 and the bank id 9, with the model-3 objects from 14 up. The analyser's handler 0x5AF220 therefore runs before the bank: it closes its rings, samples the bank balance through 0x5C0740 (return [bank+0x14]) and zeroes the accumulators, all before the bank credits the batch and takes its instalments and before the objects debit their running costs.
OpenTPW closed the ledger and sampled last, so a month's batch credit, instalments and running costs were counted in that same month instead of the next. ParkEconomy.EndMonth now routes the analyser block through CloseAnalyserMonth, called last under Theme Park World's rules and, under Theme Park Inc's, after the staff headquarters' own month work — staff HQ is thing id 1, ahead of the analyser's 5, so wages, training and the strike check keep their closing month while the analyser's close and sample precede the bank's credit (id 9). It samples the bank balance there instead of NetWorth(0); the twin handler 0x004C7720 in tp.exe reads a different getter (0x6AD810, [park+0xC]), which is why the value is rule-dependent.
ThemeParkIncClosesTheAnalyserMonthBeforeTheBankCreditsTheBatch pins three things: the batch appears in the month that opens under Theme Park Inc's rules and in the closing month under Theme Park World's, and the month's sample is the bank balance rather than the net worth — a park holding an object with a scrap value makes the two differ, so reverting the sample fails the test. The economy, ledger, bank-word, advisor and Theme Park Inc selection passes (921 passed, 0 failed, 109 skipped).
Still open in ECON-060's own text: the rating byte's monthly rings stay Theme Park World's daily 30-day rings, which is a separate item. The +0x1818 page limit setter that UI-004 needs is unrelated to this change.
Original texture page rectangle allocator (November 8, 2026)#
Ported tp.exe's rectangle allocator 0x58ECA0, rank refresh 0x58CB40 and unsigned-key sort 0x57D090/0x57CED0 as an internal managed building block (OriginalPageAllocator). An independent, identity-gated x86 oracle runs the original routines without stubs on 376 synthetic cases, including a rank boundary that distinguishes single- from double-precision arithmetic; numeric golden rows check placements, partial failures, the 127-item cap, leftover 8/9 boundaries, alignment/padding, reduction and signed-rank reinsertion, unsigned free-key ties and float rank boundaries (ORACLE.md X91, section 7.43).
No renderer calls this helper yet; this standalone building block does not retire or narrow UI-004 by itself, and the register is unchanged. The exact pending/existing merge, shared world/UI page orchestration and lifetime, control visibility order and joint deferred-sort inputs remain required before changing UI-004's runtime ordering. Width classes alone are not page identities; no shelf-packing replacement, new APPROX/EXT, save field or determinism pin is introduced. Filtered golden/adjacent UI tests and source/evidence checks verify this non-rendering milestone; full game suites, native smokes and browser preview cannot exercise its unconnected runtime path and are not claimed as verification.
Page-list merge before texture packing (November 8, 2026)#
Ported tp.exe's pre-packing list merge 0x58EAE0 as an internal managed building block (OriginalPageListMerge, on top of OriginalPageAllocator). It merges a pending list with an existing list whose records must carry flag 0x40000000, drops device-dependent records, orders the result descending by two signed ordering words and returns the emitted area. An independent, identity-gated x86 oracle runs the original merge and its predicate with no stubs on 141 synthetic cases, including every filter, the one-shot leading skip, tie and negative ordering, and an area sum that really wraps; the oracle also reads every input record back after the call to measure that the merge leaves both lists unchanged (ORACLE.md X92, section 7.44). The managed port reproduces every native row.
No renderer calls this helper yet, and this standalone building block does not retire or narrow UI-004 by itself; the register is unchanged. Still required before any runtime page grouping: the orchestration 0x58F190 with its real page sizes, shared world/UI page membership and texture lifecycle, and the persistent control show order. The two ordering words are ported as the routine reads them; what fills them in a running scene is not established here, so no width-only grouping or other substitute is introduced. No new APPROX/EXT, save field or determinism pin. Filtered golden and adjacent UI tests plus source/evidence checks verify this non-rendering milestone; full game suites, native smokes and browser preview cannot exercise its unconnected runtime path.
UI-003 button state selection read (November 8, 2026)#
Settled the register's open question the other way round: a model button does drive the first-child chain index. The base constructor 0x6597B0 starts every control's +0xA and +0xC at zero (0x659814, 0x65981D); 0x476E80 writes +0xC from the message's word +4 under bit 0x1 and +0xA from the message's word +0xA under bit 0x80000; and the button class sends bit 0x1 with the 0x668820 state to the model control at [button+0x98] (0x668A58, 0x668C55, 0x668D06, whose flag word starts at one at 0x668CB8). That control's slot 3, 0x476F10, forwards flags and message to 0x476E80 at 0x476F5D. The model attach sends flag 0x57 (bit 0x1, index 0) at 0x65D14E and the sibling slot-3 overrides 0x477310/0x477640 pass the flags through, so every model control is driven this way. The only site that sends bit 0x80000 as a control message is 0x66160C, which nothing references; no other site sends that bit as a control message, and the model-control variants also write +0xA but only under a flag word no live caller sets. The base therefore stays zero and the button state is the chain index, which is what UiModel.TryGetState already does.
The 0x4C000 send of the applier 0x668AD3 is a different message to a different control: [button+0x9C], a text control (vtable 0x6FF320, slot 3 0x48FC40), so it sets the label's per-state appearance rather than the model. Its table 0x668BD4 holds three distinct bodies: 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 one, +0x159 and +0x14C; state 1 and any state above five send the zero message word without any descriptor field. 0x48FC40 carries the descriptor's +0xA to text +0xDE, +0xC to +0xE0 and +0x10 to +0x48, the label's RGBA colour, decomposed at 0x48FD0A..0x48FD44.
The register entry now records that reading and narrows the ID to its true residual, widened by one finding: a button's own sends carry the state (0 to 5), but the base-class frame setter 0x65D3A3 sends bit 0x1 with the caller's own word from 32 call sites, some computed or script-supplied, and whether any of those targets a button is unchecked. So a control asked for a state past its model's chain keeps its first frame here where tp.exe draws nothing, and whether a shipped button ever asks for such a state is not established. No runtime behaviour changes, no APPROX ID is added or retired, and no save or determinism data moves.
UI page-grouping frontier recorded (November 8, 2026)#
Documented the orchestration that still stands between the ported pure helpers and a runtime change: the frame driver 0x58F940, which clears six width-class counters and, when no class has room, resets a texture's working size from its authored size and drops it unplaced from that frame, and the manager 0x58F190 with its page table (6 x 256 entries), per-class limit/page-count/used arrays, the two distinct paths (merge-and-pack for ordinary textures; for device-dependent ones on device kind 1, shrink-to-fit, optionally one class up, evict the entry's previous occupants, then the whole page), the eviction of a page's previous occupants, the placement sort and the free-share class tests.
Several corrections came out of the review of this note and are worth recording because they change how the ID reads:
A page is not sized from the first non-fitting texture: its size is its width class's own size, 256, 128, 64, 32, 16 or 8 square, from the table at
0x7022E8, capped at 256 pages per class. The driver's-1branch drops the texture unplaced, matchingdocs/MD2-MODELS.md.The budget is not a constant:
0x58D400asks the device (vcall+8on[0x8BD52C],0x58D41B) and falls back to[0x8C1620]or 32 MiB only when that returns zero; the figure funds a probe of 256x256 pages whose measured cost becomes the total, and the real per-class budgets are that total times share floats at+0x187C..+0x1890, which are constants in the constructor0x58D0F0(0.5, 0.25, 0.17, 0.065, 0.012, 0.003; sum 1.0).0x58D670then cascades each class's leftover into the next and returns class 5's into class 0 for a second pass. A page costsbpp x size^2withbppfrom0x7022D8indexed by the texture format[0x8BD554](not the device kind[0x8BD524]), and(4 x bpp x size^2) / 3when the alignment gate exceeds 1.+0x10/+0x12are the authored size and+0x14/+0x16the working size the halving rewrites; and0x58EAE0's ordering follows from its comparisons at0x58EB62/0x58EB71, so it is largest-authored-first.0x58EA20(the 2x free-share test) is called only from the merge-and-pack path; the device-dependent path uses an inline comparison without the factor.0x590350writes the page handle into the texture's+0x1C(0x590678), and0x58DB0C's0x40/0x80/0x100are overwritten with0x10at0x58DB34, so neither is a page-size policy.
Also corrected two allocator notes from the earlier review: the 0x57CED0 comment no longer calls the routine OriginalDepthSort (it is a separate integer quicksort that shares the partition structure), and the free array now uses the native capacity of 128 records. No allocator behaviour changes and its goldens still pass. UI-004 stays open; no APPROX/EXT, save field or determinism pin changes.
Advisor scan context words (November 5, 2026)#
The advisor's scan callbacks that name a thing or a cell now hand it to the speech, so the message tube's locate buttons work for them (UI-025 narrowed, ADVISOR-009 text corrected). tp.exe's lookup 0x59C0A0 zeroes the scan object's word +4 and dword +8 once a row is found (0x59C10F), then the callback may store its subject: the dirty toilets 86-89 the dirtiest toilet's thing id (0x4CA220: newest thing first, strictly greatest 100 minus the condition byte, stored before the filth thresholds so a low filth still leaves it), the unconnected queue 113 and the scary rides 141 their thing ids (0x4CCB00, 0x4CCD10), the big busload 140 the second bus stop's cell word (0x4D8650 with the flag 1), and the shop lines 238-257 their handle and figure (passing side only, a negative figure as an unchecked word). The speech copies the nonzero ones into the record (0x59B6CF) and the tag actions 3 and 4 read them. OpenTPW's AdvisorScan.ScoreOf clears the context before every callback, the callbacks store the words, and AdvisorController.SpeechCheck returns them with the score; the scan's own record keeps both words 0 as the original's does (0x59A5FD). The level names its objects by thing id (ParkEconomy.ObjectThingId) because an economy instance id is not a thing id, and GuestSettings.BusStopB reads FixedItemInfo.BusStopB. The shop helpers now walk the things newest first (the economy ids descending), so the first met of equal figures is the newest, as 0x4CADF0 takes it; before, the oldest was taken. Nothing is saved (the record already keeps the words), no random draw is added and the determinism pin does not move. Left open: a generic locate-cell word of 0 does nothing instead of the original's unclamped jump (UI-025). This is unreachable for big-busload advice with shipped TPW/TPI settings: all name BusStopBPosX/Y, and 0x4D8650 still passes their nonzero packed word (Y << 7) + X + 1, not a missing-stop sentinel of 0.
Theme Park Inc ThemeEngine loader binding (November 5, 2026)#
Closed round 11's ThemeEngine loader research follow-up. The generic settings constructor, schema resolver and SAM scalar writer were traced in the identified no-CD Game.exe. The bounded x86 oracle X90 (ORACLE.md section 7.42) runs those routines on the real schema and proves the six named fields' destination words, including BackColour at 0xA027CC and FogColour at 0xA027D0; the binding no longer rests only on schema-table order.
The oracle also checks zero initialization, reset versus overlay loads, repeated assignments, case-sensitive group lookup, signed procedural offsets and high-bit integer colour words. Only allocation is stubbed; the original C-locale character classifiers and their table run, including on controlled tabs, CRLF and inline/commented-out fields. Full SAM grammar and other locales are not claimed. The five available TPI Standard.sam files were inspected: the shared file supplies BackColour 0, with theme files overriding other ThemeEngine fields. The online loader branch was traced too: its five online_Standard.sam files have no BackColour assignment, leaving the initialized word 0. The existing runtime binding is correct and is unchanged; no determinism pins, save fields, extensions or APPROX counts change.
UI part order (November 5, 2026)#
Round 11 follow-up 1 reads, in tp.exe (REA, the x86 oracle; the Mac decomp only pointed to the code), the order in which UI instances reach the part list that the batcher 0x581DB0 groups, and keeps the draw order as it is.
UI-004 (narrowed further, no rendering change): showing a control (
0x476BF0, slot 5 of the control vtables0x6FEE10,0x6FEE38,0x6FEE60) adds its instance through0x45BD30(third argument 0: category 0x20, list scene + 0x18) and0x576410->0x576270, which puts a model instance (vtable slot 2 answers 2,0x40F260) in front of the other instances, so a list is newest first and hiding (0x45BDD0->0x576540) unlinks without reordering. The frame draw walks the lists 1 to 6 (0x576B86) into the instance draw0x57A750, whose parts0x581CD0appends in that order: the part list is the scene list, the control shown last first. The batcher's last-to-first walk undoes it, so controls on pages of their own are drawn in show order, which equals OpenTPW's call order only for controls shown once in listed order (hide and re-show moves a control to the newest end and the per-window show sequences are unread, so the call order is kept); the registry0x5775D0is read by nobody and was never the order. Inside one cache page the list order holds (the control shown last first), and one texture is one node at its oldest user's place; which textures share a page is decided by the placement0x58F190for the frame's pending textures together with the world's, and the frame's stashed records sort together with the world's (0x582AD0->0x5829E0), so neither is ported. On a scratch dump of the Jungle HUD, buy window, staff window and pause menu one page per texture flips no overlapping pair, merging equal textures flips 5 and 7, one page per width class flips 56, 68 and 18 (the HUD panel over its buttons, which the PC v2.0 video contradicts). The register text now names exactly that: the page sharing, the stash order and keys, and the sprite flush of the control text.Oracle:
ui_scene_oracle.pyruns the real insertion and the real batcher on a frame's shows;UiSceneOrderintest_x86_oracle.pypins eight readings (duplicate add, remove then add, the width classifier 0x590CF0; the removal and classifier runs follow the independent trace of ecb3177fa) (ORACLE.md X79, section 7.41).Determinism and saves: no pin moves (presentation only), no save field.
Sky, fog and particle passes (November 4, 2026)#
Round 11 package L reads the render-flag word, the sky draw, the particle submit path and the lobby screens in tp.exe (REA, the x86 oracle; the Mac decomp only pointed to the code).
UI-107 (narrowed): the viewport clear follows
0x5737AA: the fog colour only with the fog bit 0x2000 of[0x8BCBC8]or the lobby's 0x4000000, else black (RenderFog.ClearColour); the sky's states, alpha tests and the sky objects' page values are as0x5863C0and0x5860D0make them. The globe's sky variant (flag 0x2000000) is ported from an oracle run of the draw (finding X78,sky_oracle.py): the layer grid again with x and the height negated, and the cylinder's other V rows. The park view's far plane is used one frame late as the original does (0x576A2Ccomposes before the span selection0x576ADD -> 0x56BB00 -> 0x578CA0sets the next far). The weather never takes the fog bit (its batches call0x565240directly:0x57F1A7,0x57F1BB,0x57ECCC,0x57FB94; only the flash quad goes through0x565F90,0x57EE19), whichWeatherRendereralready matched. The Theme Park Inc clear takesThemeEngine.BackColour([0xBE20BC],0x4288F7,0x428915; its property table0x99C6A0lists BackColour first, read by table order) without the fog and the fog colour with it (0x6D697A,0x6D72EB). Left: the hidden debug key0x40C830and the Theme Park Inc executable's own fog-flag toggling, not traced.UI-018 (narrowed): while the globe is up only the globe screens update (the islands screen is deactivated), so the island weather, flyers and clips stop and the lobby scene is rebuilt when the globe closes; Escape during the enter sequence ends it as the original's handler does; tp.exe has no key-award animation (the key panel is a static counter). Left: rain behind the globe, the islands screen's second Escape branch, the globe screen D.
PTCL-905 (narrowed): particle batches carry the original's state words (
0x57C6FAto0x57C71B, render flags0x57C7C8): textured frames are always0x556(0x5882E0), untextured ones0x1256or0x556by the alpha byte, additive templates0x200522/0x200552; the non-opaque ones are kept (0x565590) and drawn far to near with the translucent world faces by0x582AD0. The particle shader takes the alpha reference and the fog block like the world's. The screen-space quads are drawn after the late group with no depth test, so they stay on top; the deferred quads are copied in sorted order into a second buffer, so a run of one kind is one draw whatever the camera direction. The 0x20000 point filter is COMPAT-010 ([EXT:texture-filter-samplers]). Left: the weather is not in the deferred list and the key tie order.
The stale advisor.json web shader was regenerated with the particle shader. No pinned hash moved (presentation only). Old saves and command logs load and replay as before.
Message tube, pause window and UI particles (November 4, 2026)#
Round 11 package N reads the message tube's tag windows, the P window and the UI particles in tp.exe (REA, dis.py; the Mac decomp only pointed to the code).
UI-025 (narrowed): the tube is the original's tag window system. Every post names a tag; the tag table (
content/data/message-tags.toml, the 32-byte records from0x75ECA8, written bytpw_exe_tables.py) gives the replacement, icon, actions and lifetime (30 s for most tags, 90 s for the offers, none for progress rows). A row is kept when it is read (0x48D9C0removes nothing; it stops an armed non-offer tag's timers) and leaves only by delete, answer, expiry or replacement; a delete, expiry or answer removes it 500 ms later (0x4A13E8), a replacement at once. A right click on the tag whose panel is still sliding out does nothing (0x7CA094), one on the tube's body removes every row 100 ms apart (0x4A1190,0x100003), the bomb is hidden on offers, and the panel's buttons come from the tag's actions (0x48E610,0x48E0F0: buy, hire, loans, research, park information, staff costs, entry price). The tube is saved with its tags and an original save's UI block (count, then 0x21C-byte records,0x48EE50/0x48EF70) is imported; the loader's open byte is never read, so every row restarts its timers (an earlier note said otherwise). The locate actions 3 and 4 jump the camera (0x4867B0,0x4868D0) and the buy window preselects its entry (0x4ACD17). Left: the operands of the locate actions (our advisor passes 0 words: the builder 0x59B590 and the scan callbacks' words at +4/+8, copied at 0x59B6CF-0x59B6E4, are not ported), the place of the0x5Aburst, the bounce animations and writing the original's tag block.ECON-058 (narrowed): the tag timers are the original's UI timers (
UiTimer,0x661FE5: interval, origin, enabled, signed 32-bit differences, a disabled timer's origin still advances, resume resets every origin). The pause owners suspend them as in tp.exe: the focus loss too (0x4092A0(1)->0x481440->0x48A6E0->0x662411), which the earlier mapping left out; the P key toggles the window and suspends or resumes by it (0x409350->0x481460->0x48A720).PATH-017 (narrowed): the P window is drawn (the full-canvas
lolightmodel over the windows that existed, then thepausedbanner of table0x752E00animating by table0x752ED0), and as it holds the focus no key, text or wheel reaches the screens below it. The click dispatcher0x4879D0(14 cases over the hover kind0x7C24F4) takes no coordinates: it acts on the pick word0x7B05CC, which the world frame0x54E2B0rewrites every frame from the pointer (0x45BF90->0x45D560; skipped while0x790AB0 & 0x16: bits0x04ride eye,0x02walk eye,0x10unnamed; dispatcher table0x488168), so a click acts on the previous world frame's pick; the alternate buffered-input mode and the dispatcher's cases are not read.PTCL-908, UI part (narrowed): the tag windows' effects are wired. A first show starts the burst
0x5A, the warning timer starts the retained0x5Bfive seconds before the expiry; both at the icon's centre in the level's pool, hidden, moved and ended with the window.
No pinned hash moved (tube and particles are HUD state outside the hash). Old saves and command logs load and replay as before; the tube's new row fields are optional and validated.
UI depth and render state decoder (November 4, 2026)#
UI-004 (narrowed, ported in part). Every vertex of a UI control model ends at depth 0 in tp.exe: the control matrix 0x476C50 stores m22 = 0 (0x476CBF; run unpatched, its z row is zero), the control constructor 0x476AD3 flags the model 0x200 so the instance draw adds 0x2000000 to its parts, and 0x579690 maps such a vertex to 0.1 x z = 0. The z of the HUD models' node translations therefore orders nothing, and UiModel no longer sorts by it: one part per material in material order, triangles in file order. An item whose texture has an alpha byte is stashed and its triangles take the tie permutation of the original's triangle sort (0x565490, same Hoare quicksort as the record sort 0x5829E0, ORACLE.md X70, OriginalDepthSort, 64 tie orders and 60 key sets golden). The triangles that are not strictly clockwise are dropped from the draw (0x581320, 422 of 6,310). The batcher 0x581DB0 was run with synthetic parts: it groups by the texture's cache page (the page surface, slot flag 0x1000 set by 0x590350; pages split by width class, 0x590CF0, 0x58F190), nodes draw in creation order from the last part and the deferred chain keeps list order within a page. Left open: the order instances reach the part list (it decides the sign of the between-page order; the add into [scene+0x2c] was not found), the packing within a width class (0x58EAE0, 0x58ECA0), the permutation of a frame's stashed items among themselves and the order against the sprite batches (flushed at 0x58A660 before the scene flush 0x582170).
UI-003 (narrowed, ported in part). The state of a control is the k-th node down the first-child chain (0x476E80); a state past the chain selects nothing (UiModel.TryGetState; for all 278 models the chain is the old frame list). The button applier 0x668AD3 sends 0x4C000 to 0x476F10, which reads the state index only with bit 0x1 or 0x80000 and the button sets neither: which caller does for model buttons is open, so the widgets keep the first frame for a missing state.
COMPAT-010 and COMPAT-018 (narrowed). The option names bind through the record table 0x7442C0 (variable 0x785870 + 4 k, read, no longer inferred); the per-face filter bits and the device's MIN point are read; the writer of texture flag 0x100000 is not found. The board is packed bottom-up and reduced to A4R4G4B4 unless TEXTURE32 (all shipped presets: 0); OpenTPW keeps 32-bit textures under the new approved [EXT:texture32-always] (all shipped presets set TEXTURE32 0), and the point MINFILTER of clamped faces stays covered by [EXT:texture-filter-samplers] (user decisions of November 4).
Objects with a map offset keep their thing and owner word (November 3, 2026)#
Review finding on round 11 package I (#937), tp.exe read with REA: the placement passes the constructor 0x4DB090 the anchor plus the type's rotated Info.MapOffsetX/Y (0x529F74..0x529FD5), which the base 0x50AFE0 stores as the thing's bytes +5 and +7 (the thing cell), while mTopLeft (+0x34) is the anchor itself (0x4DB2DA..0x4DB30A) and the owner words on the cells get the thing cell (0x528F13..0x528F26 -> 0x539210 at 0x529138). Two shipped objects have an offset, (0, 1): jungle/5x5rck and jungle/mammtunn.
Import:
OriginalParkImport.FindAttraction(and the Theme Park Inc join) matched a saved attraction to its RideSystem record on the thing cell, so it found none for those two objects: they lost their thing id and economy state andObjectsInChainOrderfell back to record order for the whole park. The match is now onmTopLeftagainst the record's anchor word(y << 7) + x + 1(OriginalParkImport.AnchorWord).Owner word:
Level.OwnerWordreturns the cell word ofOriginalObject.ThingCellinstead of the anchor, as tp.exe writes it, so the owner words OpenTPW writes and the map's owner lookup agree with an original save for those two objects.Corpus: none of the eleven original saves of
OPENTPW_TPWS_SAVES("All Researched Saves") holds a placed object (only fixed items), so no corpus save contains these two objects; the new tests are synthetic.Guest registration: the position cell handed to
RegisterWithGuests(the cell the thing stands on, +5/+7 at0x4DB33C, which the near-the-route window of the guest decision compares) is the thing cell too.Docs:
TPWS-PAYLOAD.mdandSaveThingRecords.csno longer say the thing cell equals the record cell.Coaster sections: the attraction things of the coaster-section join are keyed by their decoded
mTopLefttoo (the records hold the anchor), so that residual is gone (a synthetic coaster section on the anchor cell now joins an offset thing).Legacy queue repair:
RestoreLegacySavedQueuematches the shipped save's record on the anchor word and the cells on the thing cell's owner word.Pins: for an object without a map offset (every shipped object but the two) the thing cell is the anchor, so the match key, the owner word, the position cell and the legacy-queue anchor are identities; no pin scenario and none of the eleven corpus saves contains an offset object, so no pin moved.
UI text, buttons, graphs and locator from tp.exe (November 3, 2026)#
The finance graph now places its series as the shared graph drawer does (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 in the 1 and 3 year views and the last value written at the line's end; the rings hold the closed months only (month close 0x4C7720 pushes them), so the running month is not drawn and a new park shows one 0 point labelled "0"; the scale scans the samples 0 to the period inclusive (0x49A7B0, 0x4801D0, 0x480380), including the max scanner's read of the slot after the head when nothing is above 0 (0x480263). The park information graph uses the same series renderer, so the two graphs no longer differ in column rounding. The pixel size stays the host adapter
[EXT:graph-pixel-adapter]. UI-060 is narrowed to the 32-bit wrap of a very large financial span (OpenTPW draws the true value) and the raster composition.
List column headers wear the widget model !cbut (the b_header plate) with the colour (255, 239, 0) that the header builder 0x486660 gives them from its 59 call sites, and their text shifts by (1,1) on hover and (2,1) when pressed (0x668AD3); model buttons with text draw white, black on hover and shifted as the button class does. No PC screen draws a model-less text button, so UI-008 is retired: the purple_button plate sits only on OpenTPW's own screens under their approved labels, and the ticket price window's park name is clickable title text. All 134 call sites of the text colour setter 0x65C5D5 are assigned to their window builders in docs/UI.md; the exact red of cost rows, the HUD cost text's yellow and the black window texts replace video estimates (UI-006 narrowed).
A locator key pressed while the arm carries a locator panel now retracts that panel first, and its close message zeroes the mode word the key had just set, so the panel that comes out ignores its radios while still showing the pressed radio; Ctrl+V without a visitor sets the word after the arm call and stays live (0x4B3F60, 0x4B4280, 0x4A2590, 0x1001D8). A deleted located visitor makes the locator ask the arm to put the panel away (0x4B3620 from the thing event listener 0x50CA50). The roster's posts are read: the guest constructor's message 0x1C and the deletion's 0x1B reach the listener that adds and removes the visitors list rows (GUEST-920 narrowed to the seconds-based fallbacks). UI-091 is narrowed to the visitor position-loss fallback. UI-914 is retired: the park information choice persists for the process (a shared host object), the stay ring takes integer turns, and the TPI saved-clock continuation is [EXT:tpi-history-fresh-start].
Review round 2: a disabled button keeps its last applied text colour and offset (0x668AD3, no grey) and a checked pressed button is state 3 (hover colour at (1, 1), 0x668820); the park information and finance toggles are buttons whose SetText override (0x668D5F) reapplies white after the black set, so they draw white, and the UI-006 table got the missing builders (0x4B8CA0, 0x4A2218, 0x5F0B40 (255, 255, 0)); the maximum scanner's slot after the head is the raw saved word for an imported ring (0x4C5D70) and uninitialised heap [EXT:original-undefined-reads] for a new park; the finance ring head counts closes since the ledger started; the stay of a guest without the integer stamp is [APPROX:GUEST-920]; the park name click is silent as in the original (only the button class sends message 0x100, 0x6691EB); the UI-008 label list is complete.
Review round 3: a checked button is state 3 only with the pointer over it and never takes the pressed state (0x668820); the park name turns white while hovered (0x499060, messages 0x10001 and 0x10002); the single ring's float-to-integer is the low dword of a truncating 64-bit conversion (0x67A830), so a non-finite unread word is 0; the ledger's start month is kept in an optional ledger field written only when it differs from the one the history gives, which removes the finance ring head residual after an import; HudHost.ParkInfoChoice is required; the finance rings an original save carries are named under SAVE-010; period labels, UI-006 attributions and the UI-008 label list are corrected.
Advisor records, All Staff window and lobby advisor (November 1, 2026)#
Round 11 package V reads the advisor's records, the All Staff window and the lobby in tp.exe (REA, dis.py; the Mac decomp only pointed to the code).
GUEST-007 (retired), ADVISOR-009 (retired): the queued advice record keeps the two words
0x59B590stores (id word +0x0, dword +0x4): through the queue, an own park save (optional, written only when not 0) and an original save, with the producers filling them as the original's call sites do (the prank handler0x59B25F..0x59B3F4: the guest's id and the cell word y x 128 + x + 1; the ride lines0x4DF8BE,0x4DADC0,0x4DA6C5: the ride's id and its type id; the research lines0x59B0C6: the project's id word). Their readers are the speech and the caption formatter. The speech (0x59B620) scores a scanned message again through0x59C0A0(0x59B6BE), says nothing belowMinScoreForConsideration(0x59B6C3, signed: a score equal to it passes) and copies the nonzero words the callback left into the record; the F1 replay's score-overridden byte (+0x16,0x59B870) skips the check and is now kept. The category-24 message carries the words to the tag system, whose formatter0x509E10reads them: the advisor's response rows use the tag kinds 0 (no arguments), 2 (the object type named by the dword's low word: the ride lines 66, 68, 69, 70 and the research lines 93-97) and 5 to 8 (the golden ticket wins, which read the park's thresholds0x785790,0x785794,0x7857A0,0x7857A4/0x7857A8, not the record), so the 36 captions with parameter slots (194-206, 248-256, 316-317, 434-463) are posted now with their arguments (content/data/advisor-captions.tomlhas the kind column, written bytpw_exe_tables.py). The scan callbacks' own words (messages 86-89, 113, 140, 238-256) reach rows of kind 0 or without a caption, so nothing reads them. The researchers' flag message is of type 0x13 with the value 5 or 6 (0x40F630): the advisor's handler0x59AE20ignores both (jump table0x59AF98: only 0, 2, 3, 4 and 10 act), so the lab flag reaches no advice; the type-5 case of0x59B060queues the record a golden ticket message carries. The breakdown handler's second site for advice 70 (a mechanic already on the ride, the ride not called for:0x4DAEE1,0x4DAF7E) is ported inAdvisorRideEvents.ForBreakdown. No pin moves (the advisor is presentation, not hashed).All Staff window (help 285): the original's separate window (
0x496620, table0x750E10, now generated bytpw_exe_layouts.py) is ported (ParkHud.AllStaffWindow.cs,AllStaffRoster.cs): the five role tabs (kept for the session in0x7CA16C), five sortable columns (name, status, monthly wage, skill, happiness; row adder0x496320, the selection sort0x6628F4keeps equal rows in place, the 2000 ms timer rewrites status, skill and happiness in place), the frame with the role's and all staff's average happiness bars (taken when the window opens and on a tab press), a left click opens the employee window (0x4B6080), a right click centres the camera and closes, help 285 posted on open and withdrawn on close (0x496BA3,0x495F3B). Entries: the info windows' all-staff buttons, the employee window's (on the member's role, the member selected), and the HUD info button, which now opens the info window that was open last (0x4A0810,0x4A098A); the S key stays with the host camera, the window has no delete flow. The hire window's employee view ([EXT:staff-employee-view]) stays until the user decides about it. The producers table counts 285 as wired (blocked 3 to 2).ADVISOR-025 (narrowed), PTCL-908 (lobby part retired): the lobby's key panel is ported (
FrontEndMenu.KeyPanel.cs,LobbyKeyPanelEffect, the contract): the key frames_key(EA) and its cost digits_X1(EB) are gold while the player's keys meet the selected island'sglobal.samKeys.CostToEnter(Jungle 1, Halloween 1, Fantasy 3, Space 5) and grey below it (0x4B9340), the screen-space effect0x61runs while they do (created once, ended below the cost and with the lobby), every island change repeats that step with the stored count (0x4B90F0), and the counter's icon is at the frame the creation sets (3,0x4B8D65), with"%d x"written only for keys above 0.ADVISOR-005 (retired): the original runs and draws the advisor in every frame of the front-end state (
0x54E5EC,0x54E6DF,0x54E6E6,0x54E7F5), lit by the active lobby screen's ambient words (black in the lobby scene's setup, 0.267 grey on the island screens0x5E1924/0x5E13A9/0x5E2445, 0.125 grey on the globe and city views0x5DCFE0); the mesh draw state builder0x581790takes the fog bit from flag0x2000(the island screens fog from 50, the globe does not), and the advisor's vertices at depth about 0.2 sit inside the fog start, so nothing is drawn fogged. OpenTPW's lobby now has the advisor (LobbyAdvisor,LobbyAdvisorQueue, the account): the speech queue of0x5D5F70,0x5D5F80,0x5D6110,0x5D61A0and0x5D6060with the idle line 394 or 395 after 90 s of silence (the draw is a local presentation generator; the player is always current,[EXT:no-player-profiles]; the queue and its cleared "spoke" word are made on every lobby entry,0x5D5F70, and its 90 s timer is the program-start clock0xFA71E0,ProgramClock),advisor.shaderreads the screen's ambient, and a response still playing is cut off with the slap as the front end is left. Not ported, because OpenTPW has no counterpart of the triggers (ADVISOR-025): 393 (fixed sequence 28, said when the first player's dialog closes,0x4A6B4F; OpenTPW writes its starter key only as the lobby is retired for a park), 390/391/398 and 570 (the player-select and name dialogs), 592-597 (the online postcard windows,[EXT:online-postcard-help]), 598 and 600.
Blueprint and build tools (November 1, 2026)#
Round 11 package F reads the build tools' ghosts in tp.exe (REA, dis.py, the x86 oracle; the Mac decomp only pointed to the code) and replays the walkers 0x536100 and 0x53AAC0 against the ports (ORACLE.md X50 to X52).
BLUEPRINT-001 (narrowed): the raise of a marker is ported for a typed TPW world: the ghost cell routine
0x532FC0takes 10 x ((int)H + 9) / 10 of the cell lookup0x452AE0for a map type 4, 7, 9, 10 or 30 and a record type 0xB, 0xC, 0x10, 0x11 or 0x19, and the tile ghost's0x536CA0takes the last writer of the tile's four cells; the walls follow from the neighbours. Left: untyped harness worlds, Theme Park Inc and the ground of a fence post's own cell.BLUEPRINT-003 (narrowed): a path or queue line cell takes the validator's answer (
m_link,m_end, also for a cell that already holds the line's type,0x535670after0x5358B5), the kart and water lines and the Buy Land fence draw the tile chooser's0x539760tiles (blue, red,m_end; the fence over four edge passes), a footprint's track end getsm_directand the kinds '@', '+' and '#' no front arrow.garrow.MD2andrarrow.MD2are never drawn by tp.exe. Left: the refused access markers' wider cases, the area clear's edge cells andm_inout.UI-100 (narrowed): the track chooser's end word
0x816D4C(answer 0xB at0x53A1C6) and cash word0x816D5C(test0x539F95, write0x539FB6) now give the kart and water lines their end and cash pointers; only the crosshair art (CCro.tga, absent from the game data) remains.UI-031 (narrowed): the pass 0x81 returns 0 for a line whose last cell met an existing path or queue cell (
0x5340A5, the flag0x820ABC, which0x5345ADsets only while the last-cell word0x820AB8is nonzero (the gate at0x534584..0x534593) and the cell is a path or queue cell), which takes0x526568(the handover to the queue tool while the queue start0x8186C0is pending, else the tool ends at0x5266BC); any other result falls to0x526527. The original's coaster placement enters the queue tool; its track tool (mode 0x15, coaster sub-mode 3,0x497D20) is entered by the ride window's track button (0x4AF200to0x4AF275to0x4988C0), by a click on the coaster in the park (class 6,0x487E56to0x487EEBto0x4988C0, while0x441910says the track is not complete) and by the coaster window's button 0x1F (0x498333); OpenTPW still enters it at the placement. A tool armed from the buy list starts at the angle the placement kept: the buy click arms it (0x46C350 at 0x4AC65E, before the ride check at 0x4AC683, which only chooses the help line 0xC9 or 0xCE) and calls no angle setter, its activation 0x46D5A0 runs the hover 0x5234D0 (which calls the setter only for a track add-on, 0x5237F7) and SetMode(4, 1) (0x52F200 resets the angle only for mode 0, 0x52F3B6), and the other writers of 0x81D7A4 are the park-start reset 0x52F050 (called only at 0x457D34) and the setter's seven callers. Left: porting the coaster flow (a design decision for the user) and the path-start queue cell.Review findings, left as residuals of BLUEPRINT-003: the kind 23 commit branch
0x5295F7..0x52965Cand its link to the cell beyond (0x4D8C20,0x4D97E0) were not replayed against the executable, the face adder0x53DDD0's terrain flag is not matched per texture for the m_direct face, and the press-side readers of the refusal word0x816D48(0x5247F0,0x52482C,0x5249E0) are not mapped (UI-100).
Cameras and picking (November 1, 2026)#
Round 11 package Q reads the camera and picking items in tp.exe (REA, dis.py, the Unicorn oracle; the Mac decomp only pointed to the code).
RIDES-021 (narrowed): the creation tail of every instance, fixed ones included, refreshes the face normals of every node (
0x4638F7..0x463937: node flag0x10000on all nodes, model flag0x40000, then0x473C30/0x473A40); the picker uses those normals, computed at the instance's first model test from the creation-time vertices. Open: the group flag0x80000the coaster code sets (0x434060at0x43428B;0x447790,0x4477D0hand the pick the group's member models), the node bits0x20and0x8000a save can carry (saver0x464140, loader0x4647A0; the eye views set0x8000,0x42AD82), the picker's refresh after a coaster pylon re-conform (0x45CED9), the track-tile piece instance (0x53BF30) and the hover highlight (0x469180).UI-930 (narrowed): the result is published two frames behind the sprite pass (
0x532C17,0x540B30,0x540B6E..0x540B7E,0x46C110to0x7B05AC); equal clip W keeps the first sprite visited (0x5890E0). A question about the host quad size is recorded, not changed.UI-094 (narrowed): the ride camera blends the seat rotation with the previous frame as
0x42CA0Ddoes and takes its axes from the matrix rows (0x56B940); the static follows the walk/ride edge with the 300 ms timer (0x54FAF7,0x54FB20) and the original's noise (0x53E760, 320 x 240; one persistent generator state per HUD, seeded once, one fill per HUD frame, as the original draws the CRT stream seeded once at0x54DDE3), which retires[EXT:ride-static]. The right click leaves on the click message of its release (0x488A00).UI-095 (narrowed): a ride entered from the park view relocates nothing (
0x42AB20,0x42A190); a ride entered from the walk puts the walker at the exit cell with the original's yaw from the link byte (0x42A340,0x42A1D0,0x42A22E). The park camera's motion model of0x42B1C0is split off as the open part, with the walk's starting velocity (0x790A88..0x790A90, shared with the park pan and not cleared on entry).UI-042 (narrowed): the camcorder tool acts on the press (
0x46D0D0) and enters the walk at the hover point (0x498AD0->0x481A10); the walk is the original's camera mode 2 (0x42B1C0, keys0x787C14, mask-2 edge test0x4D8750, ground height0x452560) and matches the Unicorn oracle bit for bit (oracle finding X58,docs/reverse/ORACLE.mdsection 7.36). The Home key and numpad 5 (key word bit0x100,0x42B518) set the zoom to 110 and the pose to (475, 175), yaw 0, and the oracle replays them; a lost focus lets the walker coast. Walking onto a ride entrance boards it (0x42C093,0x42C290). This retires[EXT:camcorder-first-person]. The postcard photo (0x4A9280) and preview (0x4A84C0) stay open.
Original coaster placement flow (November 1, 2026)#
Round 11 follow-up F2 ports the original's coaster flow (UI-031). Read statically in tp.exe (REA, dis.py); the Mac decomp only pointed to the code.
Placement. A placed coaster takes the placement tail like every ride with an entrance: the queue start comes from
0x52A050(0x525264, stored at0x8186C0), the tail calls0x52F580(3, 0)at0x52529Eand clears the pending start at0x5252EA. The kart and water station line0x525219..0x525256is skipped for a coaster (0x52FAF0 == 3, test at0x52521E). The coaster tool (mode0x15, entry0x497D20) is never entered from the dispatcher0x524960. OpenTPW'sParkHud.FinishPlacementno longer enters the coaster tool: the queue tool opens, the coaster is not being edited and the log holds the placement alone.Track tool entry.
0x4988C0asks0x441910(flag word+0x3C: bit 0 set, bit 1 clear means complete): an incomplete track enters0x497D20(0x498947, tool0x15via0x46C580,0x46C350, sub-mode 3 by0x52FAD0), a complete one0x4474D0(thing, 1), the edit entry; neither calls the advisor help0x486B00, so the entry posts no advisor help (OpenTPW used to post0x125); the complete branch only sets the status text0x4A2AA0(0xC), left unported under UI-031, and0x441910also needs the controller from0x436860to exist; the port opens the same panel for a complete and an incomplete track. The panel's own build button is not routed through0x4988C0: it calls0x497D20directly (0x498337) and posts help0x125(0x498348). Three routes lead in: the ride window's track button (0x4AF200to0x4AF275), a press on a marker cell of the coaster (the hover handler0x486D90maps map type0x15to cursor mode 6, switch0x4875AE, mode set at0x48772B; the click dispatcher's case 6,0x487E56, calls0x4988C0on the cell's owner thing at0x487EEB, opening no window) and the panel's own build button (control0x1F,0x498333, which calls0x497D20itself). The press enters the tool and its release is delivered to the new tool (0x46C610to0x524960), so on an incomplete track it is a build click. OpenTPW had the first and the third; the press on a marker cell is new (Level.CoasterAtMarkerCell).Completion. The coaster tool's click takes the pass
0x81zero result to0x526568(0x526514), which hands over to the queue tool only while the queue start is pending (0x52656E, taken at0x526680); the placement consumed it, so the tool ends (0x5266BC).Level.FinishCoasterToolkeeps the handover only for a pending start (placedQueueStart, a kart or water ride's): the global is cleared by the build, Move, pick-up and path or queue clicks (0x524B53,0x5253F3,0x525E5A,0x527483, the same points as OpenTPW) and not by a tool's exit, and a coaster's own placement consumed it at0x5252EA(0x52FAF0returns 3 for a coaster: the build tool's activation0x46D653stores the type's+0x9Cthrough0x52FAD0while0x8187F8holds the item;0x525296zeroes0x820A8C, whose only writers of 1 are line-tool code, so the clear is reached whenever the start differs from the two locals compared at0x5252A9/0x5252B9).Co-op and determinism. The claim stays at the tool entry (
BeginCoasterToolEntry, so now at the track button or the click on the coaster); the entry stays a command of its own (BeginCoasterToolafter its claim), one tool per peer and theHostToolStartsfence are kept. Old command logs that hold a placement followed byBeginCoasterToolstill replay (test). No pins move.UI-031 (narrowed). The coaster parts are ported; left: the status texts of the mode 6 hover (help
0xB) and of the tool entry (0x4A2AA0with0xC), the path-start queue cell (0x5259CF) and which OpenTPW placements end there.
Map and object windows (November 1, 2026)#
Round 11 package I reads the map window, the object window's local gauge and the build preview in tp.exe (REA, dis.py, the x86 oracle; the Mac decomp only pointed to the code).
UI-086 (narrowed): the map window is the original's renderer. The class writer
0x5F2050and the renderer0x5F2380give each cell its class 1 to 12 (paths, queues and unowned land 10 to 12, a fence post (structure type 0x19,0x536450) 9, an object cell the class of its owner thing,0x4DD4E0+0x4AC), the layer word, staff role and value mode decide what shows, the fills and the outlines (with the cell-width quirk of0x5F2A94) follow the cell grid from (15, 42), the sprite items (0x5F3940,0x5F44D0: six/2dmap/*sprite.tgaimages, colours by kind, the happiness ramp0x5F09A0, staff patrol areas) show while their filters hold, the value modes 2 and 3 (0x4E0860,0x4E1E30) colour the object cells, and the coaster track layer draws ten Bezier samples per pair through the anti-aliased line0x5EFB10(ORACLE.md X54, 108 golden cases). The pointer picks the nearest shown item within five pixels (the pick is0x5F198E..0x5F1A96;0x5F2FD0is the track layer, which the register text had called a priority order) and shows its name. The old host overlays are gone. The track pixels are composed into a CPU map surface with the original's blend (0x5EFD21, coverage 0 included) and the surface is baked into one texture whenever a render event changes its inputs, so a frame submits one quad and the dots. The fills and outlines are blended with the alpha of their colour (0x5F23CD: out = d + ((s - d) * a >> 8), so an opaque fill loses 1 above the base) and the staff areas are one pixel frames (0x6025C0). Left: the 4444 surface of the original's default presets (a 16 bpp surface, so the original draws the fills, outlines and frames with the 16 bit drawer, vtable0x703680set at0x617390, as well as the line) and the 8, 16 and 24 bit line variants (0x5EDAD0,0x5EE580,0x5EF040, jump table0x5F3218); OpenTPW's textures are always 32 bit (GraphicalOptions.TEXTURE32 is not applied). Also left: the sprite size follows the display height in the original (OpenTPW uses the 640 x 480 reference), whether the item colour modulates or replaces, the pointer's click-through, drag pan and camera-centred initial view, and a per-pixel comparison with a capture.UI-024 (retired): the object window's local happiness gauge reads the thing's own cell (bytes +5 and +7: the anchor plus the type's
Info.MapOffsetX/Yrotated by0x4D9CC0,OriginalObject.ThingCell). Two shipped objects have an offset,jungle/5x5rckandjungle/mammtunn, both (0, 1); the old comment claimed none did. The preview is the approved[EXT:preview-icon-cpu-projection].UI-026 (narrowed): the footprint grid's cell rectangles match
0x4AB1B0(record0x754D50). The preview's vertex lighting is read (0x57AA10->0x574660->0x5741B0: ambient plus the scene's directional and point lights per vertex, in the model's space), but which lights the scene holds with the buy window open is not traced (the advisor adds a white directional light of its own, the light script engine adds model lights, and the park's sun in the theme'sStandard.samwas not tied to a scene light), so the preview stays unlit.Determinism: no pin changes. The map, the hover text and the thing cell are presentation only; the debug HUD takes
map:layers=,staff=,value=.
Theme Park Inc readings, round 11 (November 1, 2026)#
Theme Park Inc's guest price test (ECON-062 narrowed). The routine
0x6120C0of the no-CD Theme Park IncGame.exeis ported (ThemeParkIncPriceTest) and replayed on the executable in the x86 oracle (finding X62, 490 cases, no mismatch; 98 rows pinned inThemeParkIncPriceGoldenTests): a ride, shop or sideshow with a price is refused when the price lies above the guest's willingness to pay (Info.ExpectedPrice, scaled by needs,RipOffOK, happiness and the rating byte's fit to the guest's expected byte) or above its purse, the perception statistics are recorded (category 10 for a sideshow, 1..4 and 6..8 for a shop) and the attraction's cheap, expensive and declined rings rise. Theme Park Inc's own shops and sideshows no longer go through Theme Park World's formula (115 percent, sideshow addend). Left: the rating byte's coaster and ride-handle branches and the guest type draw.Theme Park Inc's month message order (ECON-060 narrowed). The month message reaches its listeners in thing-id order (a per-message-type ordered set, walked in order), and the prebuilt park's ids are staff HQ 1, mechanic HQ 2, advisor 3, tag system 4, park analyser 5, research lab 6, weather 8, bank 9 and the attractions 14 and up: the bank's whole month handler (
0x5C0B10: batch credit, the eight loan instalments, the red-month test) therefore runs before any object's debit and month roll. OpenTPW's Theme Park Inc month end now does the same (it paid the running costs between the batch credit and the instalments, and rolled the object months before the red-month test). Left: the park analyser's handler (id 5), which still closes the ledger after the objects, and the monthly rings' readers.Theme Park Inc's weather (ARRIVAL-008 narrowed). The object
0xA06558that the arrival routine reads is the startup dialog's theme selection (Arabian 0, Science 1, Water 2, Intro World 3; the radio group0x498940..0x4989CA, the setter0x42A360): mode 3, the Intro World (levels/wIntro), has no arrivals, so the guest simulation takes anIntroWorldgate (no OpenTPW level sets it: the front end draws no Intro World). The three words after the Seasons rows are read: the settings loader writes the array count (4 for the files' four rows,0x419FB4) and the online-only keys stay 0 offline. The attractions' weather closing (0x5DED90) is ported and runs once per spell start for every live attraction (the message is built only at0x641FF3, right after the spell start); no shipped object setsClosedDuring*, so only a mod sees it. Left: the weather thing's own presentation and per-turn effects (sky quality, drops, lightning, thunder).The umbrella day gate's age (UMB-003 retired).
Game.exe 0x611050subtracts two 32-bit world turns (the world object's turn and the guest's creation stamp+0x1FC, which the constructor0x60C589writes once), cuts the difference to a multiple of four and converts it at 3750 seconds a turn; the gate, the rain mood and the cold rule now read that integer difference (Guest.DisplayTimeInParkTurns, which GUEST-920 keeps) instead of the floor of the seconds. Seven extension pins move (docs/DETERMINISM.md); the fixed run does not (the brolly shop pin moved later, with the hashed display age: see docs/DETERMINISM.md).The umbrella's placement (UMB-004 retired, decision D8). The drawn umbrella is placed as
Game.exe 0x60B236places it: the hand's two ground coordinates move 10 % of the way to the camera's and the height is lifted by (camera height - 40) x 0.1 (UmbrellaRenderer.PullAndLift), instead of a sight-line pull with a shrunk quad; the sprite is moved and not rescaled, as the original does.[EXT:umbrellas-pull-cap]still limits the ground pull (only the two ground modifiers scale with it; the lift does not) and the hand anchors stay OpenTPW's own ([EXT:umbrellas-content]). Presentation only: no pin moves.Theme Park Inc attraction history rings (SAVE-940 narrowed). The info word
+0x21CisUsageInfo.AppearanceEffectand the guest thresholds0xA01B1C..0xA01B44arePeepInfokeys (the key tables at0x9A4520and0x996774:HappyDiffForVGood/Good/Poor/VPoor,Perfect/Good/OKExcitementMatch,PerfectRide/GoodRide/OKRide,ComplainAboutThisQuality), so every ring's condition is named by real keys now; the declined ring counts four unlike conditions and the need-check ring a literal 30, so the ring names stay descriptions. Ring values still need a played save. The end-of-visit step also records the visit's happiness change as a perception statistic (categories 11 to 14, 16 to 18 and 20), which OpenTPW's Theme Park Inc run does not record.
RIDES-031: typed footprints in a Theme Park Inc world#
Level.TypesFootprintsno longer excludes Theme Park Inc; objects placed in a session stamp typed cells throughParkCellMap.WriteFootprint, the port of the twin commit ([BIN:TPI-EXE:0x668552], tables0x6691D8/0x6691FC).A layout restored from a Theme Park Inc checkpoint is stamped again at connect (an older checkpoint also gets its access links repaired). Still not ported (narrowed RIDES-031): the coaster marker case
0x6688F0(no TPI coaster in the slice), the commit's preview flag modes and effects, and TPI's own validator twin of0x535670.
RIDES-040, RIDES-045, QUEUE-010#
RIDES-040: re-checked, nothing new; the only decoder of a thing's position bytes remains the camera-target setters
0x503490/0x5A1100, so the text stays as narrowed in round 10.RIDES-045: the no-CD
Game.exehas no variable names, only the numbered slots (VAR_%.2ld); the writers have to be found by slot index through each script's name table. Narrowed in the text, not ported.QUEUE-010: the untyped relocation now applies only to a read-only visit (and the harness EXT), since Theme Park Inc objects carry typed cells (RIDES-031).
Review round 1#
Merged origin/main (X62 is now section 7.37 of docs/reverse/ORACLE.md).
The integer turn age and the display clock phase are hashed state while umbrellas, the rain mood or the winter cold read them (
ReadsDisplayAge); pins moved only for those parks (docs/DETERMINISM.md).The umbrella lift is no longer scaled by
[EXT:umbrellas-pull-cap]; the cap limits the ground pull only.RIDES-031: a restored Theme Park Inc layout is stamped again at connect,
TypesFootprintsno longer depends on the layout; an Arabian integration test covers the road sign and a queue ride.ARRIVAL-008: the attractions' weather closing (0x5DED90) is ported; guest reactions point to
[EXT:tpi-twp-guest-rules]; the sky quality is listed.ECON-062: the cheap ring's product wraps as the 32-bit imul does; the end-of-visit perception categories (0x6118D0) are listed as not ported.
Review round 2#
The weather closing runs once per spell start for every live attraction (not per turn, never on the placement prototype):
ThemeParkIncWeatherSpells.SpellStarts, read inLevel.SyncObjectEconomy.ECON-062's reason is reworded (+0x234 inside 0x612740, the rated byte +0x21B at 0x61198C); the stale "TPI layout keeps untyped cells" texts are fixed; a no-data checkpoint test covers the restore stamp; a guest with only seconds hashes their floor.
Turn sweep, camera gate and the guard's booth route (November 1, 2026)#
Round 11 package S reads the turn sweep and the guest and staff leftovers in tp.exe (REA, dis.py; the Mac decomp only pointed to the code).
DET-014 (retired): a guest's update (
0x5019F0through0x50B360) is called from the park turn's thing sweep (0x516380) only, newest thing first; the turn then frees its destroys and ends with the arrival update (0x4D7B20).GuestSimulation.Tickis that turn for every simulation: on the tick that starts a turn the sweep, the destroys and the arrival update; between two turns only the seconds counters and the drawn point (and the per-tick steps of OpenTPW's own pool, change-room and vehicle-less states). Pins moved: the cross grid's guest run0xC9C26F6E02212726to0x80062E4FE1518012(61 admissions to 59), the Easymode Jungle's0x08FB6348EBBF4D68to0xD94697972908500C(23 to 22) and the pool slides' fixed run0x641364DF12DED0F7to0x8A2B0B14564A3D55(docs/DETERMINISM.md).Slide tower order dependence (fix): the tower's line (
PoolSlideActivity.RankInLine) gave a guest swept after a launch one place too far forward, so two waiting guests could share a spot; the launched guest now counts as first in the line.GUEST-006 (retired):
0x50BE80skips the bubble work while a bit of0x16of the camera word0x790AB0is set. All 85 references to the word were read: bit 4 is the ride camera (0x42AB20mode 4, called at0x42A6BA; the test0x42A410beside the followed ride0x790A44), bit 2 the walk camera (mode 2,0x42AF26from0x42AE70), and no store through the word's address sets bit0x10. The Level gates the guests' bubbles while the ride view or the free walk is open, and now the staff's too. A show's row 7:0x4E0B90removes it and writesVAR_STATUS2 whenever the variable is 1, but both show scripts (Firework.RSE,slaser.RSE) writeVAR_STATUS1 once and the shows are not choosable (Info.IsChoosable 0), so the admission writer0x4E0900never meets one: the row comes off once. A park saved after that (variable 2) now marks the show spent, as the destructor0x4DD0A0reads it (row 7 only while the variable is below 2).ECON-022 (narrowed): the stranded stamp (
+0x198) is a guest field: the wander's dead end (0x4F9D77) sends the staff (kinds 4 to 8) to the patrol area search0x506F30and stamps no one but a guest, and both callers of0x4FA670clear it, so the staff are never stranded (no change, now recorded). The guard's catch routes to the booth cell of the turn's side only, first with his mask, then with+0x188 = 1(0x4D6954,0x4D699C), and sets the guest down when both fail (0x4FEB50): the entrance fallback is gone. The animation counts (0x541FA0) were ported by package A; the fix animation wait isVAR_BROKEN. What is left: the strike walk over the original's cells, the staff's access cell+0x36and a lifted entertainer's or guard's row.Review round 1: the tower's launch test reads a swept rider with its counter of the start of the turn (a two-guest test swaps the order);
GuestSimulation.Tick's turn branch has its own pinned run (DeterminismTests.GuestsTickRunHash) and a newest-first order test; a standalone simulation frees its destroys in the turn only; a staff dead end is tested by behaviour; the online route0x5166B0and the replay of older logs (a mismatch at the first checkpoint after a guest update, no version marker, as in earlier rounds) are documented in docs/DETERMINISM.md and docs/COOP.md.Round 2 fixes: the pinned
Guests.Tickrun is documented as the pooled Level's turn and a standalone run asserts the owned-pool destroys at the turn tick only; the cell-list unlink comments say the request unlinks (0x50B780through0x4D9280) and only the id free waits for0x516641; the guard's booth comes from the level's gate data (IGuardGuests.TicketBooth) even when the lane is rejected; the slide tower reads the simulation's own set of guests updated in the tick (UpdatedThisTick) instead ofStepTick.
World presentation (November 1, 2026)#
Round 11 package O reads the world's presentation routines in tp.exe (REA, dis.py; the Mac decomp only pointed to the code) and ports what it finds.
RIDES-032 (narrowed): the drawn reset of the list pass's return (
0x44E380->0x4726D0) is kept until the next writer, as tp.exe keeps it: the reset changes the instance's own state words and nothing puts them back, so a node-state bit, a texture slot's frame or a vertex pose stays as the reset left it until a toggle track's sample, a key or a bind writes it (ObjectAnimator.BeginWrite/EndWrite; saves, picks and the hash still see the simulation's own state, so no pin moves). The render callback belongs to the whole mesh object (0x57A750calls it before any mesh test,0x57A7E6..0x57A7FC): a part offers it before its own hidden and view tests and the object is in view when any of its parts is (OriginalObject.PresentIfInView). Left: the original's scene pass offers the callback to the objects of the terrain cells the view covers (0x576910), which is coarser than the parts' view bounds.PTCL-908 (narrowed): the first-draw beam 15 is every vehicle's (
0x549DB0sets flag0x4000000at0x54A009, the per-vehicle draw0x546280clears it and raises the beam at0x546A89..0x546AC7, no family check), raised in the tick's pose phase and not at creation; boats and bumper cars beam too. A guest made off the park cells beams at creation (0x4FAEC0at0x4FB26A: every arrival vehicle's guest), a guest boarding the arrival vehicle beams as it goes (0x500BD0state 21,0x500C35) and a dismissed employee beams (0x505790,0x5059C3): particle 19 at the thing's place (0x4FA470). The 25-guest population (0x516700, caller0x516791) belongs to the online chat handler. The scoped message after the build effect (0x51C640) is read to the sound library (a four-float record in a list sorted by its fourth float,0x6C49B0); its readers are not.PATH-015 (retired): the queue models' animation clips are loaded and played in the original, so they are here: the loader reads the
mmember of every model (the letter table0x6FE6BC, group 5;0x4623A2,0x4623D1), the creation flags0x33Aleave the idle restart of0x473C70armed, and every frame an idle channel starts group 5 (0x473CAB): fresh the first time from the none animation 12 (0x472FBB), later restarts keep the overshoot as a carry (0x47300E,0x472C12), so a cycle is exactly the clip's duration. The fire0 to fire04 torches of queend and quebin1/2 and Space's scrolling coordinates now play, cells made in one frame share one player and one dynamic batch (QueueClipPlayer,QueueAnimationGroup: a Space queue of 1,024 cells went from about 24 ms to 18 ms per frame and from 224 to 23 drawn parts in an offscreen run), and the cells a path edit remakes (exactly the queue cells the tile refresh0x5365D0re-creates: a line commit's span with its anchor, the linked queue neighbours of the path link writer and the clear, the corner walk's pair, the fence fill's dirty scan blocks and unmarked posts, and op 0x81 on a fence post) start again as a group of their own (QueueBirths; presentation only, nothing in a save or a hash). The twoquedeadrows (flag word0x100, flags0x112423) register their instances for the colour pulse (0x469580,0x469840from0x54E301): one colour for every vertex, red full and green and blue255 * triangle(x)withx = fmod(x + 2 dt, 2), lit by nothing, so a dead end blinks between red and white once a second (QueueModelPulse,TextureSlotAddressing.PulseFlag,ModelEntity.PulseTint,test.shaderand its web build).MD2-901: already retired (
[EXT:original-undefined-reads], #921); nothing to do here.
No saved field changes and no hash input changes: the first-draw state is in no save and no hash, the pulse and the drawn reset are presentation. Old saves and command logs load and replay as before.
Audio: the pause's sound side, the group enable and the Doppler reading (October 31, 2026)#
The pause's sound side (UI-096 retired). A game pause (the pause menu and the screens opened from it, the map, the postcard, the message boxes, the P key) now pauses the advisor's speech and lifts the listener 10000 units, so every positioned sound goes silent while the flat voices and the land's ambient rectangles do not (
0x4092A0,0x598960,0x51C1C0,0x51C1D0). The window losing focus pauses the whole mixer instead, in a park (0x46B74C) and in the front end (0x46B70A), and the resume undoes what the last pause did, quirks included (a focus loss over a P pause leaves the listener up until the next level start).GamePauseSoundandParkHud.ObservePauseSoundcarry it;AudioMixer.PauseandAudioVoice.Pausedkeep the samples where they are. Docs: "Pause sound" indocs/AUDIO.md.The group enable (AUDIO-038 narrowed). The sound service's on-flags (music, speech, effects) now stop the voices of a switched-off group and start them again from the beginning when it is back on, with fresh draws, as the pool tick
0x6BC760does; a chain makes no child while its group is off. The flags come from the options screen's OK, leaving a park and a save's Sound block, not from a toggle, which sets only the volume. The look-ahead of a stopped sentence is read in its structure (blocks of0x2400bytes,0x6BB510,0x6BB590) but not to its depth, which is QMixer's mixing lead.Doppler (AUDIO-018 narrowed, still off). Read again, no gate found. New in the register text: the channel class's vtable confirms that a recompute ends in the update
0x18005830and the frequency stage;0x1800bd40is the end-of-stream test, not a readiness gate;0x6C64F0copies a loop count and gives no non-loop route; and the library's volume goes through the table0x782e40(100 is 0.787).The volume chain (AUDIO-018, review). Every voice of the sound event system now takes the original's chain in place of the master and channel gains: its percent times the group floats of its mask (
0x6BB860, rounded to even), the driver's table (0x6D2980: 258 times the index, 32767 for 127; an index outside 0..127 sends nothing), QMixer's/32767(0x18007A1C) and one decibel quantisation of volume times distance gain (0x1800586B,0x1800CA40; flat voices use distance gain 1). A voice at 100 percent is now 0.787 before the quantisation, about 2.1 dB quieter than before, and group volume changes move the index at the next mixed block.Round 2: the advisor's clip is played as the event voice it is in tp.exe (volume 100, mask 0x10005), the speech duck truncates the option times the duck percent as the sound service does, and a channel whose first index is refused holds QMixer's default 10000 / 32767.
Review fixes: P ends a focus-loss pause in one press, a park drops the front end's focus latch, the pause object is reset between tests, and the smoke now requires the pause menu to have paused a running advisor speech.
No pin moves; saves are unchanged.
Coaster rating pass, train placement and ride motion follow tp.exe (October 31, 2026)#
Rating pass, step and final. The coaster's rating pass (0x43c450), its step (0x43dc50) and final (0x43df90) now run in the order tp.exe's x87 code takes at the thread's 24-bit precision, with no fused multiply-adds: the force is a x v x 0.1, the speed step multiplies the height difference by the modifier and the per-height factor before the add, the step sums the vertical and depth force first and adds the inverted term u where the Mac added a stale force, the final keeps a negative zero and the train count divides by the release rate times 0.001. Compared bit for bit with isolated tp.exe runs in the Unicorn oracle (ORACLE X46, 2,909 rows in all, 1,488 of them for the validator's turn).
Train placement and motion. The placement after the pass (0x43c1f0 and the layout) and the motion tick (0x43ce20: car points, the start and half point of each car, the braking blend, partial hops, the collision test, the bumped flag) are single-precision ports too, and the trains wrap by the controller's end coordinate (+0xa8) instead of the sample count. Compared with 231 placement and 150 tick oracle rows.
Validator, link test, collision keys. The placement validator's turn angle and distance window (0x434740) are single steps (1,488 oracle rows including the verdict at limits a few ulps from the angle). The link test skips a pair whose end node shares its cell descriptor with the other link's first node or the reverse (0x439c5f..0x439c81; the descriptor is the cell's pylon column, so stacked pylons share it), the
asTrackCollisionPoints[i].fCollisionX/Ykeys are read, and the four unread loads (0x430867, 0x43420a, 0x443087, 0x44309c) are a position pair of a pylon control or cell descriptor, not the collision list.Register. COAST-014 retired. COAST-032 narrowed to the cars' curve point and pose, the pylon tags' pose engine and slot n past the sample list. COAST-004 narrowed to the sampler across a demolish cut. COAST-034 and PTCL-900 narrowed with the call scans (every clip starter call in the coaster code; every store of an object's +0xC8). COAST-026 keeps its clauses; the texture cache's holder counting (0x575ad0) answers how long a preview's wrap bits last.
Pins.
BuiltCoasterRunsArePinned0FE29AA5CBF09FDBto9F260909CADDDC29(reopenE71F6F7026ACA2B3to564523CD91FD6C57);AnImportedSyntheticCoasterRunsDeterministically010C244879E72489to5BCB719E357F5EA7. The BuildSteps economy digests are unchanged. No save changes.
Queue corner walk and cell rules (October 31, 2026)#
Fidelity round 11, package D (the follow-up of #901, #909 and #923). The queue tool's corner walk and a ride's queue demolition are now the executable's own, replayed against it in the x86 oracle (docs/reverse/ORACLE.md, findings X44 and X45), the track tool's sticky exit and entry globals are ported, and a typed world stops answering the opening guard, the exit status and the queue validator with OpenTPW's own rules. The tp.exe reads are mine; the tpw-decomp research only pointed to the code.
QUEUE-015 (narrowed).
QueueCornerWalkis0x530120: the stack (0x401 points at most), the counters of the cells it visits, the link clear where it ends on a path (not when the cell before is the entrance), the line start, the foreign-owner and no-link endings and the wrap of the 16-bit cell word past the map's edge; 82 oracle cases agree on every stack and cell. Its callers are the queue edit click0x52610A, the Move pick-up0x48D006and the ride's demolition0x527F9A, so the placement, the ride window's button and a completion run no walk in the original either. The Move pick-up copies the stack (0x52FC30at0x48D013) and then clicks (0x48D03D, mode 0x33 to0x525E7F), whose demolition runs a second walk; neither is ported, and the cells a Move strands (a stranded cell stays as a stray cell of the ride's owner word, as after any demolition). A typed ride's demolition replays0x527EE0(QueuePaths.DemolishQueue): the walk, Back with the forced-clear flag while the cached size is above 0, the cell remover's credits (only for cells whose owner cell is not empty; the remover leaves the neighbours' links), one cell's debit, and the cells the walk does not reach stay (a stray cell of the ride, everything beyond a junction): 42 oracle cases agree. A ride whose front holds no queue cell pops its front twice and is debited one cell, as the original does. Left: the stack the placement's, the window button's and a completion's clicks leave. Also left: the click handler re-runs the select0x5276D0(0)on every tool click while the refusal latch0x816D48is 0, which re-maps the current selection into the track tool's globals; OpenTPW writes them where the selection changes (the 19 callers) only. The Move pick-up copies the stack (0x52FC30) and then clicks (0x48D03D, mode 0x33 to0x525E7F), whose demolition runs a second walk: neither is ported.ECON-050 (retired). The queue is cleared by the corner stack replay as above. The track tool's globals
0x7639E0/E4and0x7639E8/ECare a level-wide state (TrackToolGlobals) that a select (Level.Selection, an add-on selecting its ride), a track tool start and the Buy Land start write and nothing resets; the record clear spares the tiles they name, whichever ride that was, so selling an add-on on a ride's exit tile destroys the tile unless that ride was the last one selected. The globals are the issuer's client-side state, kept across park loads in one process run and in no save; the five demolishing and selling commands carry the issuer's tiles (ToolTiles, command format 7), the commands' execution applies them, so replays and peers agree (no co-op fallback). The placement commit resets the exit to (-1, -1) and selects only where0x528F36/0x5296EAdo, Buy Land's select takes the gate-post branch (entry(post.X - 2, post.Y + 1)), and only the 19 callers of0x5276D0select; the owner leases against the original's commits into other rides' cells stay[EXT:track-tool-owner-leases]; a map without a level and the harness worlds are[EXT:untyped-harness-world].QUEUE-003 (narrowed). The cached back and size (
+0x3A,+0x40) are kept by the host's own syncs (the queue commands' pre-edit sync, the walk's and the demolition's reads, the one-click removal's lookup) and dropped only where the executable calls0x4DE1F0; the legacy per-cell builder and the access-cell re-resolution still recompute.QUEUE-012 (narrowed). A typed world asks the cell validator
0x535670alone (it reads no terrain); Theme Park Inc layouts, visits and harness worlds keep OpenTPW's terrain rule on top.ECON-049 (narrowed). In a typed world the opening guard reads the executable's cells: a queue ride's cached back cell is tested whatever its type (a path front is tested on its own link byte, an empty one is unconnected), a ride without a queue needs its access cell's link toward the rotation's path cell and that cell's link back (no owner word or entrance type read), and the exit status compares the exit with the access cell. Theme Park Inc layouts and untyped worlds keep the permissive answers; a sideways step off the map's edge wraps the 16-bit cell word as the original does (a word inside the array is read); only words outside the array, odd rotations and the null reads at
0x4D97E0/0x4D96F0are answered connected under[EXT:original-undefined-reads]. Refunds follow the demolished ride's owner word, each cell at its owner's scrap percentage.Determinism: see docs/DETERMINISM.md. New save fields: none; old saves load.
Save import remainder (October 31, 2026)#
Round 11 package C reads what an original save still holds that OpenTPW did not import (REA, dis.py; the Mac decomp only pointed to the code).
ARRIVAL-001 (retired): the world loader
0x5179C0reads the cached bus, seaplane and Ferry handles (+0x1DA72C/E/30) and the vehicle at work (+0x1DA72A) as raw 16-bit words (0x00517A56..0x00517B8A), and nothing checks them afterwards. A handle is the thing id of the vehicle object (0x0051A2F0stores the created vehicle's handle at+0x1DA72C + 2 x kindand at+0x1DA72A; the status read0x0051A690goes through the thing), so an imported park takes its scheduler together with the vehicle at work: the cached handles must equal the thing ids of the park's own bus, seaplane and Ferry fixed items, and the vehicle at work is the cached one it equals (the Fantasy corpus saves hold a seaplane at work). The vehicle stands at the status its saved script holds. The saved arrival rate, target capacity and gates-open words have no reader in0x004CF3E0,0x004CF5B0or0x004CF720. A handle that names the wrong thing refuses the scheduler import with the reason.COMPAT-007 (retired): the secret name's
0x4053C0(1)posts a message of type0x15(0x40F6D0builds it, vtable0x6FD6C8, type slot0x405530) to the message centre0x788D3C, which keeps one subscriber list per type (29 lists; subscribe0x40F9E0through the accessor0x415E00, delivery0x40FB10). All 43 subscribe sites of tp.exe (read one by one, the type is the first pushed argument) use the types 1, 2, 5, 7, 8, 0xA to 0xF, 0x11 to 0x14 and 0x17 to 0x1C, never0x15, and no other writer of a list exists (the save and load of the lists,0x40FD60/0x40FC80, only copy them), so the post reaches nobody and nothing needs building. The gate lines of an original save are the park name as saved, blank included (the rename dialog's OK0x4993E0tests no emptiness); the online record copies stay[EXT:online-park-record-copy].SAVE-010, camera (narrowed): the loader
0x42CEC0reads zoom, yaw, flags, the required and the saved point and the saved yaw, clears the flags, copies the yaw to the smoothed yaw0x7909E0and, while the options page's Rotation toggle (0x78D912,0x4A3480case0x1D4C6) stands on " 90 degs", turns the target yaw to the nearest quarter turn with single-precision arithmetic (0x42D03F).ParkCameraMode.SnapToQuarterTurnports it and a loaded park's camera applies it in the 90 degree mode (OpenTPW's default); the 585 rows of the new oracle golden (X49,camera_snap_golden.py, tp.exe's own tail run in Unicorn) agree bit for bit. Left: the smoothed yaw's ease from the saved value to the target (OpenTPW's camera turns at once).GUEST-006, the environment table (narrowed): the original saves it. The cell manager's serializer
0x4D7EA0writes a status byte per cell (bit 1 the map cell, bit 2 the track cell, bit 4 the region effect record, set when its ten bytes differ from the default,0x502470) and the records the bits name; the region record0x502490is five two-byte words in memory order (the grid at+0x1B1104, ten bytes a cell), and the loaded things add no row again (their constructor0x4DB090does not run). OpenTPW read the extension as raw bytes and rebuilt the grid from its sources. Now the entertainers and guards take the cell their saved+0xCCword names (mLastRecordedMapID,0x4F9460, the cell the pre-updates0x4D4660and0x4D6360last saw) as their row's cell, the sources spread again as before, and the words the saved grid holds beyond them are a residue that reads with the grid, is never touched by a later add or remove and is written to OpenTPW's own saves (optionalEnvironmentResidue, validated, absent when empty). On Easymode (250 saved cells, a guard at (39, 28), an entertainer at (47, 25), toilets and cameras) the rebuilt grid equals the saved one in every cell, so the residue is empty there. Left of GUEST-006 for package S: the bits0x16of0x790AB0and the show row 7 rule.ECON-022, the object chain (narrowed): an original save keeps the object list the constructor builds by head insertion (
0x00519D80): the world's first-object word (+0x1DA746) and each attraction'smNext(+0xC), newest first, whatever thing slots the objects took (the Fantasy saves' ferry, made last, sits in slot 19 below the seaplane's 22). The import numbers its objects and the economy's records in the chain's age order, oldest first (OriginalParkImport.ObjectsInChainOrder: the chain read backwards, gates and lights before the rides built after them, vehicles where they were made), so the "newest first by id" searches (toilets, rest areas, bins, shows, the mechanics' cursor, the choice loop) meet them as the original does; a chain that does not name every record once keeps the record order and the evidence line says why. Easymode's chain (a bus as the newest, then the rides by descending slot, then the lights and the gates) now puts the gates and lights first in the import, as in a new park.SAVE-006, sign names (narrowed): a player-named non-gate attraction exists in the original: the object window's panel handler
0x0048D2E0answers its message0x10006on control 0 by calling the window's virtual slot 14 (0x0048D370), which opens the Rename Item dialog whose handler0x0048D640stores the lines (0x004E2950,0x004E2A50) and redraws the type's sign (0x004682B0writes the type record's sign and sets its flag0x8000000), so every object of the type shows the new name. After a load the sign rebuild0x00468500walks the object chain and redraws each such type from every object's lines in turn (line 1 through0x004E2860, which drops the last dash of a trailing--), so a type keeps the lines of its oldest object. OpenTPW now draws a type's sign from them when they differ from the type's own name (ParkObjects.SavedSignLines,ObjectSigns.Get(entry, lines)), keeps them in its own layout saves (optionalSignLines, validated) and applies them to objects of the type built later; none of the eleven corpus saves holds a renamed type. The dialog itself is not built (OpenTPW's windows rename the park gate only). The claim query0x004E0220was read too: the claimant thing's0x00506580is true only for a mechanic whose ride word+0x218or a handyman whose toilet word+0x21Anames the attraction and false for any other thing (an error is logged), so a claim whose slot a guest took lapses as OpenTPW's negative claimant word does: that clause leaves the register text.SAVE-010, the mechanic HQ and the two receivers (narrowed): the mechanic HQ's serializer
0x004DA960writes the thing base and one word,mNextObject(+0xC), the mechanics' cursor into the object list, the thing id of the object the last search started at (the ride finder0x004DAA90: found in the list, the next search moves to its next, else it takes the head, so a word that names nothing is 0). It is imported as the economy object of the thing it names (ParkEconomy.MechanicCursor; Easymode's names a ride). The tag system and the UI message receiver (0x00509BC0) serialize the thing base alone (8 bytes), so they hold nothing to import. Pin: the Instant Action economy digest ofBuildStepsTestsmoves from4DCABA51A693C7D7toF47B8CB2D4CB42B1(the seed's objects now follow the saved chain's age order and the cursor is imported; docs/DETERMINISM.md, round 11 package C); the fixed run and the Full Simulation digest stay.SAVE-010 narrowed to a precise inventory. The remaining unimported words are listed with their tp.exe addresses: the weather thing's words (0x00512010), the park analyser's grid words, block cells and trackers, world states other than 0 and 4, the calendar session start (no reader), the advisor controller's own words and the camera's smoothed yaw. The tag system and UI message receiver hold only their thing base (0x00509BC0).
Review round 1. An imported park keeps CreationSeed in the save's record order (the seed has no original counterpart; the chain only decides the object and economy numbering), pinned for Easymode. The chain positions and the mechanics' list positions are looked up in a dictionary instead of
IndexOf. The jungle smoke no longer requires Belly Bounce to move between two fixed sample frames (phase dependent): it requires its run-wide moved-frame count, and logs the sample. On main the Bus and Belly Bounce moved in more frames because main left the arrival scheduler fresh (first bus at once); the imported scheduler waits out the saved timer (661) as the original does.ARRIVAL-001 evidence. Readers searched for the arrival object's rate (+0), target capacity (+8) and gates-open (+0x11) words: the update 0x4CF3E0 reads only +0x10 (offloading), +4 (timer) and +0xC (people); the group size 0x4CF5B0 reads the world and the analyser (not the object); the guest maker 0x4CF720 reads none of them. The arrival walk (states 0-5) is GuestSimulation.ArrivalWalk.cs and the leaving guests' state 19 walk is covered by StopWalkTests.
Review round 2. The jungle smoke now requires Belly Bounce to move in at least a quarter of the run's frames (observed 36 to 43 %) and logs the arrival timer: started at the saved turn 661, park turn about 1063 at the check, first group due at turn 1264 (
(timer >> 2) + 151units of four turns; tp.exe 0x41A990 returns the game clock at world +0x1DA70C and the timer, both shifted right by 2, against 0x785314, the time between arrivals), no group started. The guests that board the imported objects are therefore the save's own guests. The object import places a record by one shared condition with its creation seeds (IsImportedObject), and a test pins that the chain order is a permutation of the record order. Readers of the arrival object and the vehicle handles were listed in full (see the PR).
Sprite clones and the guest sprite clock (October 31, 2026)#
Round 11 package W reads the sprite registry's open items in tp.exe (REA, dis.py, the x86 oracle; the Mac decomp only pointed to the code).
UI-092, UI-910 (narrowed): the employee and visitor portraits are clones in the sprite registry, as the original makes them: the full copy
0x486530when the window binds a person (an earlier clone deleted first; a person with no sprite binds nothing), the partial refresh0x486610from the window's per-frame message 0x1E (the person's program position, frame and output copied over the clone), the delete0x486630on close. The clone is stepped by the sprite scheduler0x475360on its own due time, so it keeps running when its source goes. The renderer-call clock publication of the old portraits is gone (PortraitSprites,StaffSpriteCloneCopy,VisitorSpritePlayer.Copy/RefreshFrom). Open: rotation/depth, the exact viewport transforms, raster comparison.UI-082 (narrowed): the hire window's figure is a record of its own (
0x49BA00: script0x74F758, flags0x51000, deleted by0x49B7B4) on the scheduler (StaffSpriteProgram.HireFigure), not a renderer-call loop.GUEST-017 (narrowed): the balloon passes run on the even substeps after the RSSE tick and before the world update (
0x54F56B,0x54F5FB) and a held balloon of an original save comes back with the deadline of its script record (SavedSpriteScripts.Balloon). Open: the bursting balloons no guest names at a save (the corpus holds none).HEADS-007 (narrowed): the BOUNCE frames are stepped by the scheduler on the sprite clock (the sampled clock is the approved fixed-60Hz one), and an imported guest's player is its saved record.
HEADS-004 (retired):
0x44B510is reproduced operation by operation (OriginalHeadMath): single operations at the 24-bit control word, the engine's LU matrix inverse0x470040(0x46FE20,0x46FD40) and product0x4702D0, the frame walk through the sine table (the 7 by 8 table is a walk of rotations, not a table), the up and right vectors,fpatan. The x87 facts the port needs: the extended exponent range of the register chains (a singular node's 1e20 guard makes 1e40 squares), ordered compares, a zero-pivot test that reads a NaN as equal and a pivot row that is never reset between columns. 511 oracle cases (head_oracle.py,head_golden.py, finding X48) match bit for bit, the sine table equals the oracle's 4096 entries; the stale "no costume heads" clause is dropped (costume heads are chosen).TOUR-011 (retired): BOUNCE takes the first free entry for any guest (
0x555736), the walk update0x557AB0/0x557D80runs once per rendered frame after the substeps with the clamp of0x557E56/0x558010, WALKGET hands out state 4 only, the bodies step through the sprite player (steppers0x476940,0x476020), the node flag 0x10 negates the orientation (0x556B90) and the height of a body without the height bit is the ride model's sampler (0x4511A0after the mode0x450EA0picks,+0xA0in every mode;Level.WalkerGroundOf). The walk update runs after every fixed tick ([EXT:fixed-60hz-clock]), so a rider whose walk-off ends between two script slices comes out at the script's next slice, about 8 substeps later. A node missing from the model leaves the original's stack words undefined ([EXT:original-undefined-reads]). A point no model face covers is the face sampler's -100 plus +0xA0 (0x4512A7, used unchecked by0x558131).SAVE-013 (narrowed): the Scripts block's guest, staff and held-balloon records are applied (
SavedSpriteScripts): program counter and entry as word offsets from0x74DAB8(the widths of the staff programs checked against the table: each program ends one word before the next), run state, stack, due time against the saved game clock rebased onto the host sprite clock, period, output; a record the bounded players cannot represent is reported and rebuilt as before. The corpus holds 22 guest records (stand and walk shapes) and no staff or balloon record, so those two rest on synthetic records. Litter stays drawn from the cell; the effector clause stays open.
Pins. See docs/DETERMINISM.md (round 11, package W). No saved byte changed for a park without riders.
Track layer, walk records and heights (October 31, 2026)#
Round 11 package E reads the track layer's open items in tp.exe (REA, dis.py; the Mac decomp only pointed to the code).
GUEST-013 (retired): the staff drop (
0x46CC40) and the place click (0x46C8E0) refuse a cell whose second-layer record is of a track kind:0x5363F0follows an extension record (kind 12 or 17,0x53AD90) to its parent word and answers the kind test0x53AD30(kinds 0xB, 0xD, 0x10, 0x12 and 0x19) on it, and0x536450is the same walk for the hoarding kind (a subset). OpenTPW reads the record through the structure type the queue validator already uses (QueueCellValidator.StructureTypeAt: the track layer, and the fence post with the three cells beside it), so a path or queue cell over a straight or stub tile, and the cells next to a fence post, no longer take a staff drop. The occupancy refusal of worlds that keep the cells they were given stays[EXT:staff-drop-occupancy-refusal].WALK-005 (retired): the edge test
0x4D8750reads its target's structure record at0x4D89C3:0x5363F0(kinds 0xB, 0xD, 0x10, 0x12 and 0x19; an extension 0xC or 0x11 answers through its parent word, none when it is 0), then the flag nibble0x53AD20of the record0x4D89E4..0x4D8A0Ftakes. The parent word is the cell index plus one, so OpenTPW's parent index 0 (cell (0, 0)) was wrongly read as no parent. The fence is part of the second layer, so a post (kind 25) and the three cells beside it now block a step onto them whatever the walker stands on, unless the post's flag nibble is set (a post at the water);FenceLayer.TrackRecordFlags. The types the tests read are the map cell's own (PrimaryTypeAt), since the type op0x538FC0writes the record's type and never the cell's. Kind 17 has no writer in tp.exe (every caller of the type op passes 12, a tool's type, 7 or 0 (the type reset 0x53AF00 passes 7 at 0x53AF35, else 0)), and the underground link byte+0x22is read only while the land tools' flag0x81B4CCis set, inside straight-line land routines (0x532408..0x532622,0x532814..0x5328CB,0x53AF51..0x53AF60) that run no walk.0x5102F0is the separation neighbour query (WALK-003, retired earlier). Mask 2 stays the camera's alone (0x42C093,0x42C290, package Q) with its type-9 rule ported.RIDES-018 (retired): the placement's per-cell validator is
0x535670with mode 4 for body cells (the codes0x204and0x104of0x532FC0; entrance and exit footprint cells never reach it as modes 9 and 10). Its branch0x535BB3..0x535BD0refuses a cell whose structure record is of a track kind (0x53AD30, an extension through its parent) unless the upgrade selection0x8187F8is set, so a path or queue cell lying over a straight or stub tile, and the fence post and the cells beside it, now refuse an object body (Level.ConfigureObjectHooks,IsReserved); the corner and junction tests0x53AE00/0x53AE90at0x535BD7run for a body cell only on a record of no track kind, which holds no arms, and decide the path and queue tools (QueueCellValidator). The build tool's enter0x46D5A0hands the type'sBumper.WhichTrackTypeto the type setter0x52F880only when its+0x288(AddOn.UpgradeType) is 1 (0x46D605), and the queue option0x52FAB0answersInfo.HasQueueonly while that selection is 0 (ObjectCatalogEntry.QueueOptionOnBuild; every shipped upgrade of kind 1 has no queue, so the data never tells). The placement commit0x528A70..0x52A047holds no code that finds or moves a person (its calls are the cell ops0x532FC0,0x5348D0,0x53A510, the owner and link writers, the creation0x529E10and the sound0x51BFC0), so a guest inside a new footprint keeps its cell and walks out by the edge test, which lets a walker out of a type 4 cell over a path, another type 4 cell or open ground; OpenTPW no longer sets such guests down at a placement (SetDownOffCellsstays for the access cells the player removes,[EXT:removable-access-cells]).TRACK-002 (retired): a scan of every
[reg + 0xCC]access finds exactly four readers of the height map an instance holds: the cell height0x452AE0(the per-cell maxima+0x10only), the instance box0x466B70(x and z from the packed cell rectangle at+0xC0/+0xC4, y from the header floats+0x1Cand+0x28plus the instance height; its callers are the script, sound and effect anchors and the effects' spawn volumes), the ride preview0x4689F0(the six header floats) and the mesh creation0x463060, which reads only the map's width and height as loop bounds; the entries it writes into the landscape cells (bit0x80of 4-byte entries at the model record's+0x18) are the model's, not the map's flags, which the register had wrongly said (and most catalogue object maps do hold nonzero flag bytes, which nothing reads, as nothing reads the profile samples+0xC). The owners of the callers keep what they still lack (TOUR-005, PTCL-900/908, UI-026, BLUEPRINT-001, RIDES-021).TOUR-005 (narrowed):
0x0053BF30answers the record's instance word for any kind, an extension through its parent word (a parent word of 0 logs and answers none); the park fence's posts are the family 5 records (0x0053AFA0calls0x00522F20, table0x00763608:ho_fos1,ho_end1,ho_fob1), and every hoarding mesh of every theme ships its 2 x 2 map, so no rebuild0x00451880runs for them; OpenTPW draws no park fence mesh and so has no hoarding instance to sample (open). Station tiles (kinds 13 and 18) take family 1, for which0x0053AFA0builds nothing, so a station cell has no instance of its own. Open: the fence's instances, and the expected map size the mesh loader0x004629D0hands to0x00451640for track pieces.TRACK-010 (narrowed): the track type op
0x538FC0never writes the map cell's type (0x539017..0x53908C), so a path or queue under a kart or water tile stays in the map layer; only the type op of a line's last step (0x820AD0,0x5390CE) removes the paths of its four cells, and only when each is empty ground or a path (0x53915A..0x539188). OpenTPW did the opposite (every tile cleared the paths and remembered them in its own flag 0x20). The bridge state is made by ops on the second layer: the base op0x538A92(a tile with at most two arms and no corner assigns the whole flag word 1 when one of its four cells holds a path or queue, and clears the low nibble when all four are empty,0x538B0B..0x538BDB), the path tool's two ops (0x534115assigns 1 to a tile whose nibble is clear,0x5341A2walks round the tile's ride) and op0x86(0x538BF0), which runs the forward walk0x52C6F0from the station's exit and, when it does not return to a station tile of the ride, the reverse walk0x52CCB0from the entry; both assign the straights' whole flag word 1, 2, 8 or 4 from the walk's own heading. The ride's tile list never stores a direction, so the old flow-link rule and the closed-circuit correction are gone.TrackBridgesports all of it;bridge_walk_golden.pyruns the walks and the line's path clearing in the x86 oracle on 700 random layouts and 120 track tool lines (finding X47) andTrackBridgeWalkGoldenTestsreplays every flag word. Taking a path off a tile runs no op (0x5367A0calls none). Residual in TRACK-010: a walk that runs past the structure array reads other game memory in the executable and ends false here, and a walk that never ends in the executable (it circles without reaching its station) is ended after two map sizes of steps; the hoarding rule of the base op (0x538A97) isParkFence.MarkWater's and the walks read the fence's records. A save from before keeps its flag words (a stray 0x20 stays); the fidelity register entry is narrowed, not retired.
Lobby sky and buy-window previews (October 30, 2026)#
The sky is no longer cut by the far plane. Since the lobby takes its span selection's far plane (#910), that plane is often nearer than the sky's cylinder. On Direct3D and Vulkan the cylinder's front was clipped there, so the island screen showed a trapezoid of flat clear colour in the middle of the sky (reported in #829). tp.exe never clips the sky by the far plane: its sky draw (
0x5863C0) passes the clipper the mask that leaves the far plane's outcode out. The clouds and the cylinder now take the view's projection without its far plane; the moons keep the view's own.Buy-window previews keep their shape while their clip plays. A clip's vertex animation moves a mesh's stored positions, which its corners share. The preview read them by corner, so meshes with fewer positions than corners (the balloon shop, many others) turned into scrambled polygons. Each corner now takes the position it was built from, as the park's parts already did (reported in #829).
Coaster presentation follow-ups (October 30, 2026)#
The track mesh reads its cross section from the original's run table (COAST-026 narrowed). The builder
0x4402D0steps the sample coordinate in 0.25 and writes a run at every change of the select answer (0x43E9C0, now with the speed, direction, pitch and bank windows of the sam's selects), with the transition sections of a type whose sections blend: the Jungle flume's dry and wet sections blend their points over the run's length (0x43FD60), the slice lists hold the run keys (0x43F030) and the previous ring is emitted again when the run moves. The run table is compared bit-exactly with isolated tp.exe runs in the Unicorn oracle (ORACLE X42,CoasterRunsGolden, 60 rows including the merge of two blends that meet). Chains with no sample list here (cut open by demolish) keep the per-segment pitch selection. The pylons' clips now also add their texture-coordinate keys (0x4745C0), so a lofted pylon's texture coordinates run past 1 along its height and wrap or clamp per the shared texture's accumulated flags (0x575870,0x575E10,0x575C60: one cached texture object per directory and name, wrap bits never cleared, so a model's wrap slot wraps the same texture in every model of the ride).The bend car's tables are compared with tp.exe (COAST-034 narrowed).
CoasterCarBend.Tableswrites the rear count and the yaw, pitch and elevation entries of0x438AB0bit for bit (ORACLE X43,CoasterBendGolden, 120 rows: the angle lerp0x43E480and the PC acos at single precision were off by an ulp before). The sockets of riders stay unbent (the bend writes only the body mesh's vertices), and no PC bend car has a vertex beyond its tables. Open: the flume boats' own clips (no clip start behind the bend flag was found) and the culling bounds a bend type widens.
Coaster texture wrap follows the shared texture object (October 30, 2026)#
COAST-026 stays open, reworded (wrap per shared texture). The texture cache
0x575870hands out one object per directory and frame name,0x575E10and0x575C60OR the wrap bits into it and nothing clears them, so a clamped slot of one model of the ride wraps when another model of the same ride wraps the same texture. The pylons and cars now take their wrap or clamp from the union over the ride's archive models (CoasterAssets.WrapNames), resolved only when a renderer builds the rigs; the definition loader leaves the models unparsed. Open: whether a preview texture object outlives the build menu, and whether the object renderer's models share the cache.
Doppler gate and the upgrade restore (October 30, 2026)#
Upgrade request over a breakdown (follow-up of #913). A save written before #913 can hold a ride that is both broken and upgrading. The bridge's state-word setter and a bridge snapshot restore copied the breakdown back under the upgrade request; both now keep the upgrade (
0x004E0E60,0x004E0086: state 2 overwrites a breakdown). Old saves still load; no pin moves.Doppler (AUDIO-018) stays narrowed and off. Another read of
tp.exeandQMixer.dllfound no gate that makes the original skip the Doppler factor, and ruled out several candidates (default channel flags, the start path's flag mapping, the listener velocity bookkeeping, the voice-to-channel update chain). The request word's0xc0(0x6bc2af) with the reverb test (0x6b9acb) feeds a second EnableChannel (0x6c5690), but it runs before the start's own (0x6d2380) and is replaced by it. The capture-based evidence and the off-by-default switch are unchanged; the register text lists what is still open.
Theme Park Inc readings (October 30, 2026)#
Umbrellas, from the no-CD Theme Park Inc
Game.exe. UMB-002 is ported and retired: the scheduling and the carrying out of an umbrella change stand down for a guest on a kart or water track cell (0x67F890,0x685680), and a shown umbrella there is closed (0x60AF32);UmbrellaRules.OnTrackCellis tested over every record type. UMB-003: the inside words are read (0x61A540state0x14sets+0x3Cfor every attraction and+0x38for a type with a nonzero+0x1C4, state0x13clears both), so "inside" is the state Using, plus the pools extension's own swim states; the clock scale is read (15000 from0x607EB9); only the seconds-based age remains. UMB-004:YAdjustCamerais 0.1 (levels/Standard.sam). UMB-001: the C runtime'srand()is seeded once bysrand(GetTickCount())(0x6A151B) and shared with 96 call sites, so the original's delay is not reproducible even by the original; the user approved the time-seeded draw as[EXT:tpi-time-seeded-rand](UMB-001 retired).Theme Park Inc scrap value (ECON-061 retired). The thing flag
+0x43bit0x10comes from the type'sUsageInfo.RequiresWatering(0x5DB654: the bushes, trees and flower beds), and the count behind the 100/67/34/0 percent is variable 0 of the thing's script,VAR_CONDITIONofvegetation.RSE(0x6B0740,0x6B0C90).Theme Park Inc money (ECON-060, ECON-062 narrowed). A sale or a won play books its cost of goods to the object's month accumulator (
+0x938,0x5E60E0) and debits nothing; the month message debits the running cost and that accumulator as one debit per object (0x5DEFFF). A shop's cost of goods is the executable's own routine (0x5E6260, checked in Unicorn on random inputs). Rides chargeInitPricePerUseat each use and refuse a guest without the cash (0x6126D0, called at0x61193Binside0x6118D0,0x61243A); the willingness test of0x6120C0is not ported.Ride fares settle at the exit. The fare, goods and prizes of a Theme Park Inc ride move when the guest leaves (
0x6126D0from0x6118D0); a use cut short pays nothing, and the purse refusal applies to rides only. A won sideshow prize goes to the purse.Theme Park Inc weather (ARRIVAL-008 narrowed). The spell machine of
0x642770runs at each month message (quarter row ofSeasons, years gate, kinds heat, rain, storm, snow) and feeds the arrival percentage; the draws use the economy's world stream ([EXT:tpi-weather-spell-seed], user-approved 2026-10-30). Left: the four modes of0xA06558, the offline values of the three words after the table, the spell effects.Footprints, fixed models (RIDES-031, RIDES-040 narrowed). The footprint commit is the twin of tp.exe's (
0x668552); a thing's position bytes are decoded only by the camera-target setters.
Coaster tool, fidelity round 11 package G (October 30, 2026)#
Package G read the coaster tool's open items in tp.exe (REA, dis.py, Unicorn-free static reading; the Mac decomp only pointed to the code):
COAST-035 (retired): the auxiliary dispatcher
0x447a10is the layout replay's action0x38(its only caller is the replayer0x4045b0at0x40463e; the replayer0x785a08rebuilds a downloaded online park from its recorded actions), so OpenTPW, which runs no layout replay, has no counterpart. The controller/definition flag-2 gate is the definition's loop bit: the definition builder0x42fad0sets definition+0bit 2 when pylon control 1 (the loop pylon) has a mesh (0x42fd57), and0x442cd0,0x442d10,0x444c00,0x444c50,0x444c80and0x4445b0test it first.CoasterBuilder.LoopUnlocked,LoopPairPendingandStartOrResumeLoopPairapply it. The loop button itself follows the ride's level only (0x4980D6,0x4987f0), so a coaster without a loop pylon shows and enables it and its selection just picks the build mode (OpenTPW used to hide it, COAST-028).UI-047 (retired): bit 0 of
0x79c658(the HUD cost line's gate for the coaster panel's edit modes,0x447990) is written by exactly one instruction,0x441a5din the height handler0x441a00; the rotate press sets bit 1 (0x441edd), the tilt press bit 2 with0x2000(0x44205b) and the stack handlers their own bits, so the cost line shows for a height drag only, as OpenTPW did. A button selected during a drag runs the sub-mode's second action through the switch of0x446fa0's deselect path (0x44700e;0x447032calls0x441a00for the height drag;0x442220does the same for the build and loop buttons, and the tool's exit0x447520), the same commit as the release;CoasterToolPanel.Selectalready ends the drag that way (a test covers it). A move drag is not in that switch (bit0x100), which only a keyboard path could reach.COAST-028, the panel's slide (narrowed): the tool's entry
0x4988c0puts the panel window0x7ca1c8(built by0x498790from table0x751530with the handler0x4982a0) into the HUD arm (0x4a25f0(1),0x4a2590: message0xbretracts the panel the arm carries, message 10 slides the new one out), so it uses the same drawer as the camera and message panels (ArmSlide,ArmDrawer.Shift): the 675 x 274 root ends at left 486, top 1145 (the offset measured from the video, (-372, +232), was this (-373, +229) within a pixel or three). The tool's exit and the arm's retract button slide it in, and another panel that takes the arm ends the tool (the drawer sends the carried panel message0x1001d8before a slide out,0x4a17dc;0x4982a0answers it with the tool's exit). The loop button's model and hover help follow the flume flag at the panel's refresh (0x4987f0:cb_troughand help0x134, else help0x132; the table's 565 is replaced).COAST-028, the area's texture (narrowed): the placement area's face type
0x11f(0x5243a6->0x536100->0x532fc0) takes the verdict0x535670(0x1f, 0)= 2, slot 2 of the dynamic texture table0x763b38:orange.tga. The register's "not on the PC CD" was wrong: every level'sdynamic.wadholdsorange.wctintexturesandstexture(the generic folder has none), so the generated yellow and black checker is gone andBlueprintMarkersloads the level's own texture (low-detail set first when it is on). All records of the table carry texture flags 7.COAST-028, the pointer units (narrowed): the drag handlers count the pointer in whole pixels of the selected display mode, not of a 1024-wide screen: the mouse handler
0x42a760stores hiword x *[0xfaa5c4]/ 2048 and loword y *[0xfaa5c0]/ 1536 as integers (the words0x46b600takes from the screen mode, 160 x 120 up to 2048 x 1536, 640 x 480 by default) and the handlers copy and subtract them (0x441b00,0x4433ad..0x4434e5). OpenTPW has no display mode, so the HUD hands the tool the pointer scaled to the default 640 x 480 mode with the fraction dropped on every screen ([EXT:coaster-drag-reference-mode], user decision, October 31, 2026).COAST-028 per-frame rebuild and COAST-033 stored half turn (narrowed): every edit handler sets the controller's dirty bit (
0x4346c0), and each frame0x435a30rebuilds every dirty controller through0x43eb70: the knot pass (which stores the auto-bank, yaw, pitch and the half turn0x10000000in the nodes), the sampler, the rating pass0x43c450(its train placement0x43c1f0included, and its lift marks, node flag0x800, on any chain it draws, finished or not) and the collision pass. OpenTPW now refits a finished track's controller on every step of a drag instead of once on the release (CoasterBuilder.AfterEdit), draws the lift marks of an unfinished chain and of a track being dragged live (CoasterRide.ChainWinchSections; the lift hills show while they are built), and stores the knot pass's results in the nodes at every builder edit (CoasterBuilder.Revalidate; a loaded unfinished chain gets them at its first frame,ImportOriginal), so an unfinished chain's nodes hold their auto-banks (a tilt drag counts from them). What stays: the build cursor's node takes part in the original's rebuild of an unfinished chain (the last pylon's stored bank and half turn follow the hovered cell), and only the controller of a finished track is rated on every step.COAST-033, the pylon's ground node (narrowed): the pylon models are loaded with flag 1 of
0x1013405(0x42fcbf->0x4629d0), so the type loader's ground-vertex count (0x46a5a0->0x469a80) picks a ground node (model+0x2c; every PC pylon has one with four ground vertices).0x432df0conforms it to the terrain for a bottom node (0x469940with the descriptor's ground height) and hides it on a stacked node unless the pylon has flag0x10, which0x42ec47sets frombDontDisableBaseOnStack(no PC coaster sets it).CoasterPylonRignow conforms the four ground vertices to the cell corners' heights and hides the node on stacked pylons; the part flag only hides its own mesh (0x57a5e3,0x4723f9), as OpenTPW already did. Left of COAST-033: the build cursor's node taking part in the rebuild of an unfinished chain.Demolish range preview and the move marks (ported): while a cut waits for its second end,
0x443340takes the pylon under the pointer each frame and marks the range with node flag0x1000000(0x444090sets it on[low, high),0x444040clears it): the first end itself takes its neighbours (a loop pair widens by its partner), another pylon takes the range between it and the first end (ordinal 0 standing for the last node, a loop pair's first widening to the node before it and its second to the node after), and no pylon clears it.0x43f4e0draws a marked link with the marker variant[0x7925d0](1 =m_erase), red when the node is also invalid, and before the crossing marks; the move press (0x446d50) marks[prev, next)with variant 3 (blue) and the release (0x445a70) clears it. OpenTPW holds the range asCoasterRangeMarkon the ride (presentation only, never in the track or its saves) and draws it throughCoasterRenderer.LinkMarker.COAST-028, the model pick (narrowed): the picker
0x45bf90hands the model under the pointer to0x443ee0, which maps the handle through the table0x7a4610to the node. The HUD now tests the cursor ray against the faces drawn for each pylon (CoasterRenderer.TryPickPylon, either side), a nearer terrain point or object winning as in the picker; a pointer beside the model picks nothing. A coaster without drawn pylon models (no game data) is still picked by its cell, and a stack's pieces are not tested as a group (0x447790).COAST-033 (retired): the build cursor's spare node takes part in the original's rebuild of an unfinished chain, so hovering moves the last pylon's stored bank and half turn. The hover is local to each player, so OpenTPW keeps it out of shared state:
[EXT:coaster-cursor-no-node-writes](user decision, October 31, 2026). Nothing else of COAST-033 remains.Drag unit (design choice): the coaster drags count whole pixels of the original's default 640 x 480 display mode (
0x42a760: hiword x *[0xfaa5c4]/ 2048, loword y *[0xfaa5c0]/ 1536), scaled from the canvas on every screen, because OpenTPW has no display mode:[EXT:coaster-drag-reference-mode](user decision, October 31, 2026).Review round 1: the move marks match
0x446d50(the end node has the next ordinal and a null next link, so moving the last pylon marks[prev, node]; pinned by a test); a refitted finished track's drag draws its collision and winch results from the controller instead of computing them twice per step; the COAST-028 register text lists only the real residue; the panel's per-frame arrays are gone.
Register conversions of round 11, package X (October 30, 2026)#
Eleven fidelity IDs are retired and a dozen more are narrowed by moving the parts the user has already decided out of the register and into [EXT:...] labels. No behaviour changed and no pin moved: only tag comments, register texts, docs rows and tools/fidelity_retired.txt were edited, plus one source-text contract test.
Retired as EXT: ARRIVAL-006 (
[EXT:fixed-catch-up-cap], approved 2026-10-18), DET-015 ([EXT:headless-economy]), UI-041 ([EXT:no-player-profiles], approved 2026-10-18), UI-051 ([EXT:sandbox],[EXT:online-coop-snapshot-join]), ECON-059 ([EXT:hardware-d3d-path], D1), MD2-901 ([EXT:original-undefined-reads], D2), AUDIO-040 ([EXT:fade-poll-host-timing], D3), SAVE-007 ([EXT:unknown-research-dropped]), SAVE-011 ([EXT:delimiter-split-for-tools]), COAST-015 ([EXT:coaster-pylon-fallback]) and GATE-006 ([EXT:m3-gate-walk-bound]), all D4. The last register of the MD2 area is empty now and says so.Narrowed: SAVE-012 (the snapshot is
[EXT:restart-snapshot-per-start]and a storage-only format; the advisor's first pending record stays), WALK-010 (prototype, online persons and imported placeholders are EXT; the attraction id question stays), GUEST-013 ([EXT:staff-drop-occupancy-refusal]), SAVE-002 ([EXT:guest-event-ring]), SAVE-006 ([EXT:original-engine-state-dumps]), PTCL-908 (avatar beams under the presence labels, the type-2 negative key under[EXT:original-undefined-reads]), COAST-026 (the out-of-sample read), COMPAT-018 and UI-107 (hardware parts, D1), ADVISOR-028 ([EXT:legacy-save-arrival-waves]; the TPI advisor stays), QUEUE-003, QUEUE-010, QUEUE-012 and ECON-049 ([EXT:untyped-harness-world]), ECON-030 (co-op and visits keep the economy refusals,[EXT:online-coop-money], D5), RIDES-011 and ECON-050 ([EXT:track-tool-owner-leases], D6; the port of the sticky tool globals stays open) and UI-060 and UI-914 ([EXT:graph-pixel-adapter], D7).Online parts (user-approved 2026-10-30): COMPAT-007's park record copies are
[EXT:online-park-record-copy], UI-042's postcard address book and sending are[EXT:online-postcard-address-book], and ADVISOR-009's postcard help is under that label (308) and[EXT:online-postcard-help](307). UI-914 keeps its other residuals (TPI clock continuation, the carry-over of the window's choice), so it is narrowed, not retired.Docs: the new labels have rows in the design-choice table of
docs/UI.md, and the register rows of the retired IDs are gone from the area docs. The generated register now lists 104 unresolved IDs (115 before).
Riders import (October 30, 2026)#
An imported original save now brings its riders back onto their rides. The ride script's walk, bounce and head tables are read from the RSSE block (loader 0x5597A0), checked against the ride's header and put on the saved game clock, and the guests they name are seated as riders of the attraction (state 16). Coaster riders, bump-ride vehicles and riders, the RSSE object lists, NAME, TRIGWAITANIM tokens and child or sound child scripts are imported too.
SAVE-002 is narrowed: riders, walk, bounce and head tables are applied; the state-16 update stays a no-op as in tp.exe.
SAVE-920 is retired (coaster riders), TRACK-032 and SAVE-921 are narrowed, DET-013 and HEADS-007 texts are narrowed.
No corpus save holds riders, so the import is tested on synthetic saves.
Review round 1 changes: a coaster car list that names a guest the import did not seat drops that train's lists instead of refusing the park; sound child scripts are found by the parent's +0x14 edge (their own parent word stays 0 in a real save); riders of a ride without restored carrier state (rider tables that did not read, tour cars, track rides whose vehicles were refused) are put off the ride and reported; the TRIGWAITANIM token is kept only when a restored channel shows its animation; duplicate bounce entries are accepted as tp.exe's BOUNCE leaves them; and a snapshot taken before the first host step validates the called head the tables name. Side effect of the new import order: the scripts are imported before the guests, so a script's CloseLoaded no longer clears an imported mPersonBeingLoaded.
Review round 2 changes: the saved TRIGWAITANIM token is kept as tp.exe keeps it (the instruction's own channel, decoded at the saved program counter) and is cleared only where the object's saved scene gave that channel no restored control; a coaster car list keeps its valid riders and drops only the stray entries; the track drop covers every kart or water ride whose vehicles were not imported; and the guard sweep runs again after the drop.
Review round 3 changes: a bumper ride uses the same bump module and chunk layout as a kart ride, but OpenTPW applies none of a bumper ride's chunks, so its state-16 riders are put off the ride like those of any ride whose vehicles were not imported (TRACK-032 now lists a bumper ride's chunks as not imported); and a coaster car list that loses a stray entry says its later riders move up one socket.
Staff sprite sources and the carry cursor (October 30, 2026)#
Staff now have the original's sprite wrapper and source (StaffSpriteState, StaffSpriteEvents) on the bounded sprite VM, replacing the renderer's own clip player (GUEST-016 retired). The state setters, the walk step, the pre-update, the drop, the pick-up, the guard's catch and release and the entertainer's performance queue and apply templates as tp.exe does; the sprite scheduler (0x475360) steps the sources on the even 31 ms substeps. The carry tool's dangling person is a source of the same scheduler and its height adds the terrain's, as the sprite pass does (GUEST-021 narrowed). The stored sprite draw is reduced by the loaded banks at creation and, for members, at every load (GUEST-020 narrowed; the launcher machine-class path is filed under [EXT:no-launcher-machine-class]). UI-092's world sources are done; the employee-window clones and saved scripts stay open. Nothing new is hashed and no pin moved (a pool made before the banks load takes the draw modulo the folder's banks, so the stored draw equals the variant and is saved only where it differs: the economy digests of BuildStepsTests stay); saves gain optional validated fields.
Remove the dead path-oracle workflow (October 30, 2026)#
The dispatch-only workflow .github/workflows/path-render-oracle-artifact.yml was a bootstrap for a diagnostic whose files (tools/web-path-render, tools/PathOracleAudit) never reached main: its first step requires them and fails. The diagnostic itself was dropped from the path-art refresh work (#883), so the workflow is removed. Nothing else referenced it; no ordinary CI gate changes.
Theme Park Inc science smoke runs again (October 30, 2026)#
Floor art decodes by file type. The floor composites under a placed object read each texture slot's art through
OriginalObject.DecodeSlotArt, which sent every game-data file to the WCT reader. Theme Park Inc's slots resolve to.fshand.tgafiles (the science Log Mill'sns_cnr04issharetex/ns_cnr04.fsh), so the science world stopped loading with "WCT dimensions must be positive". The art is now decoded by its extension, as the object textures already were; a game-data.wctstill goes through the texture pack lookup. A with-data test decodes every texture slot of the three Theme Park Inc worlds this way.No staff role is read without a handyman. The slice has no staff world, so each park turn ends in the headless handyman dispatch, which read the handyman role before looking for a handyman. Theme Park Inc's settings hold no staff roles, so the first turn threw. The dispatch now returns when no handyman is free; Theme Park World parks behave as before.
The slice HUD's limits line matches the capability note again. The note gained "in-game interface (only its Personnel File start screen)" with the Personnel File screen, but the HUD's translated line kept the old wording, so
--tpi-smoke-testrefused it. All eleven languages now say it, and a unit test pins the English line to the note.
Web performance harness test race (October 30, 2026)#
Upgrade refusal test no longer races the freed place. The harness test for bounded upgrade refusals runs with one forwarding place. The local server frees an upgrade's place only once its own end of the socket has closed, which can come just after the client has read the whole answer. On a slow runner the next upgrade sometimes arrived first and was refused with 503 (no place left) instead of the expected 502 (seen once on macOS CI for PR #910). The test now waits until the server holds no connection before each next upgrade, so it still checks that every answer frees its place. The server logic is unchanged.
Coaster upgrades (October 29, 2026)#
Coasters can be upgraded again (issue #903). Every shipped coaster has two researchable levels (Temple Of Gloom:
Upgrades[1]and[2]at research 750 and 500), but the catalogue-tier binding excluded coasters, so a coaster's upgrade list never listed its researched level and showed "no upgrade has been researched". tp.exe lists the level for every ride (0x004AE140) and its installation (0x4df8f0) has no track-type branch, so coasters now bind their tier like any ride. This also lets the coaster panel's loop button work, which needs level 1 (0x4980D6). A with-data test checks that every coaster binds its tier and seeds its level's capacity into its ownCoaster.RSEvariables, and a coaster rebuilt from a save of its upgraded record takes the saved tier.
Harbour waves and flags (October 29, 2026)#
The harbour moves (issue #829). tp.exe builds two dynamic meshes every park frame (
0x53C3F0) that OpenTPW never drew: rolling waves from the level'sWaterStartPosout to sea, in the translucent surf texturesgby_sur1togby_sur3, and eight cloth flags with the Theme Park World logo (gte_lgo1) on the entrance's flag poles, waving and turned to the wind.HarbourDynamicsports the wave grid, the cloth grid, the sea's patches, the flags and their phases. The weather now keeps the wind's direction and strength (0x511FDF,0x512F00); the wind's turn has its own draw stream, so weather rolls are unchanged. The wind is saved with the weather. The sea's texture table draws from the game's C runtimerand()stream, seeded from the tick count at start-up as tp.exe's is, so every run draws its own sea.
Advisor inputs: the last nine scan callbacks and the researchers' flag (October 29, 2026)#
Round 10 package H reads the inputs of the nine advisor callbacks that were still blocked and ports them. The tpw-decomp research only pointed to where to look; every behaviour below was read at instruction level in tp.exe.
ADVISOR-009 (narrowed). The nine blocked scan callbacks are ported (
AdvisorInputsCallbacks): 12 (hire guards after kids chased), 19, 21 and 27 (patrol coverage of the mechanics, handymen and entertainers), 22 (build a camera) and 98 (lax security) after kids that got away, 113 (a queue that joins no path), 141 (the rides are too exciting) and 264 (many pranksters). Every computed callback of the 155 scanned descriptors is ported now; the other 21 scanned messages are the original's constant-zero stub.The chase counters (0x4C74F0). A guard's chase (0x4D6790) raises the analyser's month and lifetime words when the kid is caught (0x4D691B) and also the got-away word when the chase is given up (0x4D6A1F, the one tail every way out reaches); the month close zeroes the month and got-away words (0x4C79EB). They are
ParkEconomy.MisbehavingKidsandMisbehavingKidsEver, saved with the park (ParkSaveFile.Data.AnalyserChase) and read from an original save (SaveAnalyserCounters).The patrol coverage (0x4CD500). The rectangles of a role's staff mark the cells (0x4CD340); the four classes count the land, the built cells, the entrance cells and the path and queue cells; the percent is marked x 100 / counted (
ParkEconomy.PatrolCoveragePercent). Handymen and entertainers need one of the role, no minimum and no area test; the mechanics need the minimum and an area.The queue and the excitement. 0x4CCB00 takes the first (newest) choosable queue ride that
ParkGate.QueueConnectedcalls unconnected, the selected ride left out (Level.FirstUnconnectedQueue); 0x4CCBF0 caches the mean (while the quarter-turn age is at most 10, 40-43 turns) of the low byte of each ride's live excitement (ParkEconomy.AverageRideExcitement, saved with the analyser caches as the original's serializer does).DET-015 (narrowed). The researchers' flag 0x5041F0 runs at a researcher's hire and removal (
ParkStaff.LabActive,LabMessage): the ResearchLab byte +0x1468 (the savedmLabActive) and message 5 or 6 on a change, no draw. Only the advisor subscribes (0x599EDB) and only to 5; its handler (0x59B060, case 5) reads an advice record out of the plain message, so it takes the poster's stack frame (message id -1) for one. Whether that record enters the queue is not traced, so the reaction is not ported and stays in ADVISOR-009's evidence needed. The headless economy's first-update search remains.Unread. The subject word (+4 of the scan object) that 113 and 141 write reaches only the queued advice record's builder (0x59B6BE); its readers belong to GUEST-007 and it is not kept.
Determinism and saves. The advisor stays presentation state and no pin moves: the chase words are read only by the advisor, so the optional
AnalyserChasefield of the park save (a save without it starts at 0) is left out of the run hash like the analyser's caches (docs/DETERMINISM.md); the excitement cache is saved in the unhashedAnalyserCaches(0x4C6243, 0x4C6261, 0x4C6E62), an original save's copy is not imported (neither is the net-worth cache).
The excitement cache entry no longer changes saves without it (October 29, 2026)#
#908 added the optional Excitement entry to the analyser caches of the park save, but wrote "Excitement": null for every park, which changed the serialized bytes of every save and the economy digest pinned by BuildStepsTests.TheEconomyMadeInStepsIsTheEconomyMadeAtOnce (FullSimulation D2F1349AA44D6545 became 7876695A107A2FE7). Stepped and at-once economies stayed equal; the only difference was that line (stripping it gives back D2F1349AA44D6545).
Fix. The entry is skipped while null (
JsonIgnoreCondition.WhenWritingNull, likeAnalyserChase), so a park that never read the excitement writes the bytes it wrote before and no pin moves. The pin keeps its old value; a park that has read it still saves and restores the cache.
Coaster x87 (October 29, 2026)#
The coaster's single-precision steps follow tp.exe's instruction order (COAST-032, COAST-014, COAST-004). The knot chord, the Bezier and derivative shapes, the knot controls and norms, the node tangent
0x431660with its half-turn verdicts, the auto bank, the speed estimate, the turn fraction, the pylon height, the sampler's step lengths and lerp, and the self-intersection pass (0x43A2B0, truncating at0xC7F) are compared bit-exactly with isolated tp.exe runs in the Unicorn oracle (ORACLE X40,CoasterX87Golden). Built coasters' pins move (docs/DETERMINISM.md). The knot pass over a pylon model's posed tags, the rating pass and the ride motion are not oracle-compared and stay narrowed in COAST-032 and COAST-014; the descriptor-equality skip of the link test stays with COAST-004.
Guest follow-ups: kid sets and held guests (October 29, 2026)#
Kid sets load as tp.exe loads them. The kid and kid-head folders stop at the limit of
0x41A9D0(2, 4, 6 or 8 sets for the preset'sNUMKIDS0 to 3, so Low loads 2 and Medium and High load 6) and loadSPR_BI,SPR_KI,SPR_TAandSPR_SUfirst, the others by name after them (table0x764030, passes in0x541310). A guest's set is its creation draw (0x541F70, the first draw after the reseed with its thing id, shifted right by 2) modulo the number loaded, so the set a guest wears is its place in that order, not in the alphabetical one. The function returns the draw modulo the count and the guest stores that remainder (0x4FB1B5), which a load reduces again (0x4F93AA), so the guest keeps its draw reduced by the sets loaded (Guest.KidSetDraw, saved as an optional field, not hashed: the simulation never reads it and the constructor already took the draw, so the random stream and the pins are unchanged); a guest of an original save keeps the bank its person record holds, reduced by the kid sets loaded at every load (0x4F93AA), and a costume return redraws it. The pools extension's kid, head and swim sets take the same places. GUEST-017 loses its kid-set clause.Guests held by a guard are imported. An original save's guest in state 17 is imported held (no walk, balloon, ride or bin, as the hold
0x4FEB10leaves it), and its escorting guard (state 18, perpetrator+0x212) is imported escorting, walking on to its saved destination and setting the guest down at the booth. A held guest no guard holds is destroyed at its first update (0x501C94). No corpus save holds such a guest, so this is checked on synthetic saves. SAVE-002 narrows to the riders (state 16).Review round 1. An imported escorting guard keeps his saved walk mask (nav_mode,
0x4D6977), so an escort on the off-path route to the booth still finds it; only one guard escorts a guest and an escort of a guest the guest import did not keep held goes idle. A park without costume heads (Fantasy, Hallow) picks every rider's head by the thing id (0x4FCAC0), a costume return rewrites the kid set (0x4FE6AA), and a Custom preset reads the resolvedNUMKIDS. In such a theme every head hung on a ride also reseeds the world generator with the rider and draws once (0x44B410→0x4FCAC0), now taken at ADDHEAD, WALKON, the coaster seating, the vehicle creation and load and the tour boarding; no pin moves, as no asset-free digest covers a theme without costume heads (a new fixed-run pin covers the draw). Every guard naming a restored guest escorts it (0x4D6A50tests no state).
Lobby camera, locator panels and ride view (October 29, 2026)#
The lobby and the online globe now use the original's screen matrix. tp.exe's camera method (
0x5d8cb0) builds the lobby's projection with the park's builder (0x578be0, near 0.1, far 1000, the angle ISLANDFOV in[this+4]), and the matrix0x5781d0fills once scales every projection, so the visible half height at unit depth is 0.5 x tan(angle / 2), not tan(angle / 2). With ISLANDFOV 100 the lobby showed twice the vertical extent it should; the globe (60 degrees, set at0x5dd034in the same camera object) did too. Both cameras useOriginalProjectionnow, the lobby with the span selection's farthest corner distance as far plane (0x56bb00->0x578ca0, as the park) and the globe with 1000. The lobby's rain and bolts, whose clip scale already assumed this projection, now sit where the scene draws them.UI-091: the locator panels slide. The staff and visitors panels of Ctrl+S and Ctrl+V go through
0x4a2590into the HUD arm's drawer (0x4a14f0): ten 20 ms ticks from a panel width and 50 left of the arm's left edge (the staff panel ends at 484, the visitors' at 485, both at top 1127, not at their table places), the arm's art growing out under the HUD, the retract button shown with the slide out, and a panel of the other kind waiting in the arm's slot 2 until the first is away. The radio follow has no smoothing of its own: the0x42b1c0matrix blend runs only under the mode bits0x3cof0x790ab0, and the camera setter writes only the ride bit.UI-094: the ride view's blend and crowd count follow the code. The frame time of the blend is whole milliseconds plus one, 100 above 200 (
0x42b2a0,0x42b2c7), so a stall no longer counts as the full second. The view direction is the camera matrix's third row (0x56b940), and no writer ever sets the mode bits 8, 0x10 and 0x20. The crowd sentence's guest count (0x54f899) takes the hover cell0x7b05cc, the cell of the cursor ray the park overview refreshes every frame and the eye views keep, not the camera's target.UI-095 narrowed: the stale claim that the yaw rule fires for no ride is gone (the placement writes the exit cell's byte at
0x5292b2); the remaining residuals are divergent saved exit positions and the host camera's own pose.
Saves import: queues and leaving guests (October 29, 2026)#
A saved queue now comes back as the original left it (SAVE-002, QUEUE-003). tp.exe's loader reads an attraction's head
mFirstInQ(+0x3C) and called guestmPersonBeingLoaded(+0x6C) and each guest'smQNext/mQPrev(+0x228/+0x22A) as saved and relinks nothing (0x4DB7D0,0x4FB530). The import follows: guests in states 11 to 14, and in the idle interlude of state 11 (state 8 withmSavedState11,0x4FC800), keep their place in the chain with the saved position and move-up delay; a guest moving up or called forward routes to its saved accurate destination as every loaded person does (0x4F9407), and a head in state 14 waits for the script (0x4E0A70: the script's first variable againstmFirstInQ). A chain that is not a list of guests of that ride in the queue states is refused with its reason.Guests leaving a ride (state 15) are imported and walk on to their saved destination.
Still dropped, with their reasons reported: guests using an attraction (16) and held by a guard (17).
A saved Coasters block ends where its reader stops (SAVE-011, narrowed). tp.exe's block loader (
0x415270) runs each reader and compares the next four bytes with the tag (0x415371); the coasters' reader reads the type's train slots and cars per train (0x437B60) and nothing searches. The park import now passes the park's coaster types to the payload split (SavePayloadLayout.Parse(payload, coasterTrains),SaveCoasterBlock.TryMeasure), so a saved coaster whose riders' ids hold the delimiter's bytes no longer depends on a delimiter search. Callers without the types and a World the loader's readers do not measure (a synthetic payload) keep the delimiter search.A saved kart or water track comes back (TRACK-032, narrowed). The loader
0x543560rebuilds a ride from a chunk stream while the track itself sits in the World block's structure layer (31-byte track cells,0x4D0B30and0x50C200). The import now writes those cells (kart tiles 11 and 13, water 16 and 18, their type-12 extensions; type 25 is a hoarding post), owns each tile by reach from its ride's station, walks the circuit from them, compares it with chunk 4's section list and applies chunk 3's laps, performance and phase. Vehicles, riders and the pending and leaving lists (chunks 5, 7, 8, 9) are reported, not restored. No save available to us holds a ride or a track cell (every TrackRides block is the 44-byte build-stamp chunk), so this is tested against the saver's shapes and OpenTPW's own tracks only.SAVE-921 narrowed: a scan of the coaster module finds no user of the controller's track flags 0x20, 0x40, 0x80, 0x100, 0x200 and 0x400 besides the saver and the loader.
Review round 1. A state-14 head whose script does not hold it in
VAR_LETMEONafter the script import is demoted to a called head at the stand point (state 13). A guest of a refused or absent queue is imported deciding (as before this round, no guest is dropped for that). Saved track cells on this park's object, entrance or exit cells are skipped and counted. No corpus or Easymode save holds a guest in states 8/11-15 or a setmFirstInQ: the queue import is checked on synthetic saves only.
UI follow-ups: research knob startup, map, modes, fonts, validator pointers, moon, banner, bridge word (October 29, 2026)#
Fidelity round 10, package D2 (the follow-ups of package D, PR #894). Every claim was read in tp.exe; the tpw-decomp research only pointed to where to look.
UI-064 (retired). The research window's workload knob is the slider class whose position setter (vtable slot
0x1c=0x66b508->0x66b088) returns before touching the ball when the raw value is unchanged and the mode is not the refresh -2 (0x66b201-0x66b20d); the constructor0x66ad6astarts raw 0 with the ball at the layout's authored top 399 (row of0xd2d10), and no message 0x15 reaches the slider after its base constructor (0x65bffd). So an opening with raw 0 keeps the ball at 399 instead of the track bottom 634.UI-100 (narrowed). The path and queue line previews now carry the validator's end flag: code 0xB (
0x535AE5,0x535B3D, flag0x816D4C) is answered for the line's last cell when it is an existing path cell (a one-cell line included, so the path tool over a path shows the end pointer,0x818688/0x820AB8) and for the ride's own queue cell under the queue tool; the pointer switch0x52F950orders link, end, then no-place for a refused line (0x527950, latch0x816D48set at0x533933; a queue stopped only by OpenTPW's own length bound is no refusal), then cash. Open: the end pointer of the kart and water track lines (0x53A1C6, track chooser0x539760), the0x539FB6cash flag of a chooser call that does not refuse, and the crosshair art, which is not in the game data.ECON-030 (narrowed). The loss banner's animator is read to its cadence and clock:
0x65E72D(table, 0x23)stores the table, the interval and the clock; the frame message 0x1e is sent down the window tree by the per-frame update0x658F6C(called from0x48A5DF),0x65C357hands it to the stepper0x65E9A4, which runs a step when more than 35 ms have passed ontimeGetTime(0x65968E). OpenTPW'sUiWindowAnimationsteps once per drawn frame with the same strict rule, so the banner-timing item is closed; what remains is the co-op owner's decision for the loss scene in shared parks.UI-013 (retired). The pause-menu measure
0x4929F0is read to its font pick: the line's font slot (0 for the menus; slots 0 and 2 swap while the word at0x78b538is0x40D,0x41A850), the bank word0x78b534and the 24-byte font record at index 13 × bank + slot from0x78b54c(handle at +0x14), then the box through0x6AE1C0(0x4000 wide without the wrap flag). OpenTPW's text layout box matches that measure; which shipped font serves slot 0 per size tier stays[EXT:ui-font-tier-by-scale](the original's four banks follow its fixed screen modes), so nothing is left to approximate.ECON-023 (retired). The ride update's dispatch
0x4E0E00reads the whole state word: 0 runs the update (0x4E14E0: VAR_BROKEN, SetState(1) or (4)), 1, 2 and 4 run the head step0x4E0450and the script dismiss0x4E1410and nothing else, 3 returns at once (0x4E0E3D).RideStateWordnow carries the stored 2 and 3 next to the ride update's 0, 1 and 4 (Stored,Current; the economy'sObjectStateandStoredStateread and write it), andRideVisitorBridge.UpdateAdmissiondispatches on it: an upgrading ride never reads VAR_BROKEN or runs the admission, whatever its script reports (before, the bridge entered state 1 over an upgrade request that had been stored apart). Saves and the pinned hashes are unchanged (the stored part is derived from the type and the pending level on load, as before).UI-047 (narrowed). The mode objects are one object,
[0x7b05d8], which0x46c350replaces after the old one's exit and delete: there is no stack. The seven classes0x6fe980-0x6fead0return the types 7, 3, 1, 5, 6, 8 and 9 and no class returns 4 (the gate's type 4 is dead). Type 3, the tool-mode object (0x46c580), is also what the buy window builds for the Buy Land tool (0x39,0x4ac855), so the HUD's cost line (0x4a0cdd) shows it as it shows every build tool: the Buy Land tool's line is the validator's price of the hovered rectangle (0x532303,0x81af4c; 0 before the first click and where the validator refused before pricing, the tool start clears it,0x52f087). Before, the line was hidden there. The Clear Area (0x3a) and patrol (0x36) hovers store the hidden marker -9999 (0x523c18,0x523d68), which the refresh hides, so they show nothing, as before. Open: whether the rotate, tilt and stack edit drags of the coaster panel set bit 0 of0x79c658as the height drag does, and the commit of a height drag that a button click ends (0x447032, inWorld/Coasters, left to the coaster package).UI-107 (narrowed: the moons are drawn). The sky objects of a level's Standard.sam (
SkyObjects, at most 16, hallow one moon behind the sky, space two in front; the setup0x418C30, the add0x5850C0) are drawn as the sky draw0x5860D0builds them, its two passes0x5865B0(FrontFlag 0, before the clouds) and0x586C9E(FrontFlag 1, after the cylinder). The point goes through the sky's clip matrix (the view without its translation times the projection), a quad of half size Size x 0.5 is added round it in clip space (x scaled by the aspect word0x8BCBCC, so a screen-aligned square whose size falls with the depth), turned by the camera roll (0x578700from the camera matrix0x87AFF0, through the 256-entry sine table of0x591430), clipped and submitted white (0x565F90mode -3);Sky.TryMoonQuadbuilds it (at an internal depth along the same direction, which projects to the same picture) andmoon_oracle.pyreplays tp.exe's own run for the goldens ofSkyTests(finding X41). Only with SKYDETAIL 1 (0x44DA1Csets the engine flag0x400000; low.sam 0, med.sam and high.sam 1):RenderQuality.SkyObjects. A native capture with the sky turned to the moons shows the space level's moon with its craters at the expected size (about 56 pixel radius at 720p) and the hallow moon behind its cloud layers. Open for UI-107: the flag0x2000000variants, the flag 8 mode, the page values and state bit0x1000of the objects' textures, the fog and far-plane items already listed.UI-086 (left, text narrowed). Not ported in this package. The cell classes are read (
0x5f2050: a cell without an object takes 10 (path), 11 (queue) or 12 (unowned land), a track-record cell0x5364509, an object cell the class of its owner thing by0x4dd4e0+0x4ac: 0 -> 1, or 8 on an extension or type-0x15 cell that is not type 4; 1 -> 2; 2 -> 3; 3 -> 4, 5, 6 or 7 by the type word +0x32) and each class is shown by a bit of the map object's +0x18 or its +0x1c mode in0x5f2380, whose per-class visibility, footprints, neighbour outlines and item dots need the renderer's own pixel passes.Review round 1. An upgrade request (
0x4E0086, SetState(2)) now clears a breakdown from the shared word as the original's single word does (queued guests walk on during an upgrade,0x4E0370tests the word == 1); the hidden cost marker is -9999 (0x523c18,0x4a0d68); the moons take half of the projection's far plane as their internal depth per frame, reuse their buffers and are submitted white without the evening tint; the ECON-030 text tail is trimmed.
Staff room advice (October 29, 2026)#
The plain advisor no longer buzzes over every staff room (issue #829). The advisor's "staff rooms closed" message 263 counted each standing staff room as closed: the closed test took any state but Idle as closed, and a staff room's record holds state 3 because nobody may choose it (
0x4DB4FB). tp.exe's count (0x4CA0C0→0x4E0440) reads only the open word, which state 3 leaves alone. The message's only response (513) plays thez_errorplaceholder without a costume, the 0.4 s noise players heard. Now a staff room counts as closed only when it is closed, broken, upgrading or condemned.
Backspace takes back your own last coaster pylon in a shared park (October 28, 2026)#
In a shared park the coaster tool's Backspace now takes back the player's own last pylon of the coaster, as single player's Backspace takes the last pylon off, for the host and every guest (COOP.md, "Conflicts and undo (C5)"; [EXT:online-coop-undo]). This is the second half of C5-3, the third of three parts that reach the game together.
Your own pylons, newest first. Backspace takes back the pylons your clicks placed in this run of the tool, newest first and with no refund, as in the original; a pylon another player placed, or one from an earlier run of the tool, is not yours to take back, and Backspace says so.
As long as nothing changed it. Once a pylon of the coaster is dragged, a stack swapped or the circuit cut, the pylons placed before can no longer be taken back; the ones placed after can. A coaster whose tool closed, or that is complete, takes nothing back.
Your claim, held since. A pylon can only be taken back while you still hold the coaster's claim you placed it under; once the claim went, Backspace says why and ends the tool.
Backspace takes back your own last pool stroke in a shared park (October 28, 2026)#
In a shared park every player's Backspace in the pool tool's paint and erase modes now takes back that player's own last stroke, whole, under the normal refunds, and only while nobody else's later work depends on it (COOP.md, "Conflicts and undo (C5)"; [EXT:online-coop-undo]). This is C5-2, the second of three parts that reach the game together; C5-1 did the path, queue and slide tools, C5-3 adds the kart, water and coaster tools.
A whole stroke at a time. Backspace takes back your newest stroke, however many batches a guest's drag sent it in: painted water goes and is refunded, erased water comes back and is paid for, river marks come off. Strokes go back newest first, a paint stroke and an erase stroke each their own.
All or nothing. When another player has since painted or erased one of your cells, or someone stands where the water would come back, or the bank can pay only part of it, or a water attraction would lose the last water beside it, nothing changes and the stroke stays, with a note saying why.
Long drags in parts. In a shared park a drag of more than 4,096 cells is laid as several strokes, so Backspace takes back its last part first; single player keeps its strokes whole.
Wave machines. A guest with the attractions right can now set a wave machine's waves; the window shows the settings asked for until the host has applied them, and says so when the machine is gone meanwhile.
Backspace takes back your own last kart or water track line in a shared park (October 28, 2026)#
In a shared park every player's Backspace in the kart and water track tools now takes back that player's own last line of the ride, as single player's Backspace takes it back, under the normal refunds (COOP.md, "Conflicts and undo (C5)"; [EXT:online-coop-undo]). This is the first half of C5-3, the third of three parts that reach the game together; the coaster's pylons follow.
As in single player. Lines go back newest first with the same tiles, the same repairs at the station's exit and the same refunds as a game of one would give for the same clicks: the host follows each player's line tool from what it sends, so it knows when a line was the first on the tool's stack, which changes how the exit is repaired.
Lines that end the tool stay. A line that closes the circuit, or stops on existing track, has no take-back, as in the original; with exactly Ctrl the line tool restarts after a closing line and its next line can be taken back again.
Your claim, held since. A line can only be taken back while you still hold the ride's claim you laid it under; once the claim went (released, expired, taken by another player) or the track was cut, Backspace says why and takes nothing back.
Other players' rides stay theirs. A line or a take-back that would change the track of a ride another player is editing is refused with the claim's note, also where an older save's track has no owner marks and any ride could join it; a ride nobody is editing can be joined as before.
Read message tube saves written before the loader correction (October 28, 2026)#
The strict world-save reader now accepts the message-tube row shape emitted by #888 as well as the current #891 shape. A legacy terminal's Active flag maps to the inverse Read flag only after its complete legacy shape and timer bounds are validated. Unknown fields, incomplete legacy rows, mixed Read/legacy shapes, and inconsistent pending flags are still refused. New saves retain the current seven-field row shape; no save version or simulation digest changes.
This does not revert #891's loader policy: unread terminal rows restart both timers from the full lifetime, read rows stay stopped, and obsolete elapsed-time and pending-delivery state is not restored. Co-op join snapshots still exclude the host's tube. Staff initialization and saving are unchanged.
Synthetic raw-JSON regressions cover old plain, offer, progress and terminal rows, read-state migration, current byte stability, whole and sliced world-save loading, and malformed/unknown-field refusal. No actual user save was inspected; whether anyone saved with the short-lived older shape is unknown. Local C# compilation and MSTest execution were not possible because the SDK is absent; exact-head CI is needed. No original executable or game media was used.
Keep a pending offer decline across a park save (October 28, 2026)#
A deleted or expired challenge offer is hidden for 500 ms before its normal removal issues the decline command. Saving during that interval used to omit the hidden row while retaining the unanswered objective, so loading could repost the offer instead. The own-format save now optionally records the remaining release delay of a hidden offer that still names that unanswered objective. Loading keeps it hidden and occupied, with no message cue or immediate command; normal delayed release still performs the identity- and rights-checked decline.
Offer rows bind to the command layer's existing definition-and-offered-day identity during the current runtime. Cleanup of an already answered offer is inert and is not saved, and a pending removal cannot rebind to a newer follow-up. Visible legacy rows still have no saved offer identity. The original 500 ms runtime delay, co-op guest/read-only restrictions and exclusion of the host's tube from join snapshots remain. Hidden terminal notifications are still omitted.
OfferReleaseDelayMs is optional, valid only on an offer, and bounded to 0–500; zero is retained for a removal already due. The world envelope also requires an unanswered objective. Rows without the field keep their old bytes, and the #888 legacy converter remains strict. Older strict readers cannot load a new save that contains the field; no downgrade-compatibility claim is made.
Synthetic regression tests cover deletion and expiry, whole and sliced world loads, re-saving and overdue delay, exact-once release, hidden occupancy, stale follow-ups, ownership restrictions, malformed input and silent restoration. The C# SDK is unavailable locally, so compilation and MSTest were not run; exact-head CI is required. No original executable or game media was used.
Cells under track: path and queue cells over tiles, the demolition's record clear, the station's footprint (October 28, 2026)#
Fidelity round 10, package B (the follow-up of round 9's package H). The map's type byte and the track layer now hold both what the original keeps in two layers, the demolition clears the second layer's records as tp.exe's pass 2 does, and a kart or water station's footprint cells count as the executable's net worth counts them (docs/reverse/ORACLE.md, findings X37 and X38).
QUEUE-012 (narrowed). The type byte shows a track tile only while the cell's own type is empty (
ParkCellMap.PrimaryTypeAt); a path or queue cell laid over a straight or stub tile is the cell's type with the tile beneath it, a corner, junction or post refuses (the validator0x535670reads the record apart), clearing the cell shows the tile again, a record clear leaves the path over it, an object is refused over such a path, and the queue pass's residues and the saves accept the byte. The owner priority0x818C14(reset0x523522) and the latches (reset0x5234F2/F8,0x527C52/5C,0x52F11B/21) are read: they belong to one pass over a line, which the path tool's line walk carries, and they change no answer of the queue tool's lines. The native reducer refuses the ride's own two-link queue cell and any queue cell the ride does not own, as the validator does: the three tests that broke in PR #886 built a queue joined to a path and entered the tool without the queue edit that takes the link off, a state the original's tool never starts from; their fixture is unjoined and the ride window's queue button takes the same edit as a click on a queue cell. Still open: the per-cell route of rides without an owner word, the host's terrain source. A path or queue laid over a straight or stub tile makes it a bridge as0x538A92does (the pass reads the types 1 and 3 on the tile's four cells, and every write of such a cell re-runs it on the tile).ECON-050 (narrowed). The demolition's pass 2 now also runs the record clear
0x53B280(0, 0, 1)on the second layer's record under every cell of the object's shape: an add-on that is sold or bulldozed takes the tile it stands on with it (the earlier reading, that the sale only clears the flag, was the variant only a tile's own clear passes,0x53B703), with the refund and the arms of the tiles beside it, and a ride's demolition clears its station tiles through the same clear (TrackEditor.ClearUnderDemolition). 17 cases of both families are replayed from the executable's own run. A guest may not remove an add-on whose ride another seat claims. Still open: the queue's corner stack replay and which tile the track tool's stale exit and entry globals name at the bulldozer's click (the ride's own is taken).ECON-026 (retired). The placement commit
0x528A70stamps type 4 on the footprint cells before the station line writes the second layer, so the eight cells under a station's tiles count 0 + 50, not 2 + 50, and an add-on's four cells count as type 4 under their tile;ParkCellMap.WriteFootprintkeeps the stamped type as the tile's base type (a restored older save gets it too). Every cell and the net worth equal the oracle's (33555 for a kart station, 33547 for a water station, at every rotation).PATH-007 (retired, October 29, 2026). The fence routines run on a track tile's own record where a purchase edge or the fence's lattice crosses one (
FenceEngine): the fence and the track tool share the 0x28-byte record, so type, flow link, flags, the +0x10 word (a track origin's ride word, an extension's origin) and counter go through the tile'sTrackCelland the fence links+0x22stay in the fence layer. The ring walk0x52BA50writes the post's word and the type 0xC into the cells beside every post whatever they hold,0x538FC0never retypes a record without flag 0x40,0x539670gives a station its flow link, and the pocket grid0x532960follows an extension to its origin. About 285 seeded random layouts and 16 committed oracle cases agree. What is left is not an approximation: the refusal of a purchase on which the original crashes or hangs is[EXT:land-purchase-fault-refusal](approved by the user on 2026-10-29), the six-click bit is traced never set (a BIN note), and the fence-link storage and the old-save derivation are host storage notes (docs/PATHS.md, Land purchase).Determinism: see docs/DETERMINISM.md. New save fields: none (the saves accept a path or queue byte over a track cell); old saves load.
QMixer voices: flat placement, axis mapping, voice flags and fade arithmetic (October 28, 2026)#
Round 10 package G reads the sound path of tp.exe and QMixer.dll statically (nothing was run) and ports what it finds.
AUDIO-018 and ADVISOR-012. The axis mapping of the camera rows is read: the adapters (0x6D2640, 0x6D2A10, 0x6D2B20) hand QMixer (x, z, y) because the driver byte +8 starts as 2 and nothing writes it, and QMixer negates the third component (0x18001020) because the engine byte +4 is the inverse of bit 3 of the zeroed QSWaveMixInitEx flags. The two reflections make a rotation, so the pan keeps the side AudioListener.Azimuth already gave it; a test replays the whole pipeline over 400 random cameras. The flat voices are read too: an event with the any-distance flag 0x200 (all of cat_speechSFX.map, the advisor's speech included) is placed by 0x6BC51D through QSWaveMixSetPosition with the integers 0, 1, 0, which QMixer turns into azimuth 0, distance 9.2e-5 (0x18007ABD, 0x18009DC0): distance gain 1 and SetPan(0). AudioVoice.PlacedFlat now makes such a voice centred and never turned down by distance even when its caller gave it a place and range. ADVISOR-012 is retired. QMixer's Doppler is read (0x1800A178-0x1800A2C3, 0x18005550) and pinned on the offline mixer (AudioDopplerTests) but not applied (AudioListener.DopplerEnabled is off): voices without the loop flag would play at 1 / (1 + x), x = (direction . relative velocity) / 331.36, at most 10, from the listener velocity of tp.exe (0x6D27B0), the position change of each changed listener update with the previous place starting at the origin (so a park's first update, measured from the lobby listener at (0, 0, -50), GameAudio.UpdateLobbyListener, gives its whole place as a velocity, and the factor depends on the frame rate). The gameplay capture of the PC game shows the same lobby sentence at the same speed before and after a park, which this reading does not predict, so the gate or reset that keeps the factor at 1 is still missing and AUDIO-018 stays with that item plus the pause's listener height (UI-096), the dB quantisation of the volume product and the device-unit frequency rounding (0x1800C760).
AUDIO-003. The fixed-pitch flag 0x10000 is unreachable: SoundVoiceFlags.FromEvent mirrors the builder 0x6BBE90, every other write to a voice's flag word was scanned, and a test covers all 65,536 event words. AUDIO-003 is retired (its reverb part was already [EXT:audio-reverb]); the voice-flag questions of the sound code now go through SoundVoiceFlags.
AUDIO-040. The fade poll runs on the library's own _beginthread worker, a new thread at the default x87 control word 0x27F (53-bit precision), while the main thread is at 0x7F (24 bits). HeldSoundLifetime multiplies the group floats and the volume in doubles for the poll and in floats elsewhere (master 0.75 and effects 0.7 on 60 give 32 and 31). The worker's Sleep(100/250) scheduling and the missing saved quality preference stay, narrowed.
AUDIO-038. A sentence stopped out of range replays its segment from the beginning with fresh volume, pitch and delay draws and keeps the successor chosen ahead (0x6BDF50, 0x6BC410, 0x6B9AB0); before, it jumped to the successor. A started any-distance voice ranks in the pool at the origin of the sound space, where its sample start put it (0x6BB9F0). Still open: a stop inside the decoder's last look-ahead, the initial submission's admission and the group-enable stop and restart.
No simulation state, save or determinism digest changes; sound draws stay on the shared sound seed. Tests are synthetic.
Ride presentation from tp.exe (October 28, 2026)#
Ride objects now follow the original's list-pass and render-callback cycle (RIDES-032 narrowed, MD2-900 retired): an instance that was not called back last frame has its aggregate reset to the stored pose on return (0x4726D0), and event keys, particle requests and walk nodes read the instance's key table (0x44AB30 refresh points) rather than the live hierarchy (PTCL-900 narrowed, PTCL-909 retired: the HUD windows reach the screen after the particle pass). The track seat order and joining node (TRACK-026) are read and tagged.
The reset lives in a presentation stash the simulation puts back before its next step, so saves, joins and picks stay view-independent. Coaster trains hold their two loop sounds and their scream pass (SAVE-923 retired, its saved handles folded into AUDIO-018): speed crossfade, lift, braking and free state parameters, occupancy, the one-shot and held screams, following the sound car or the camera car, all presentation and in no hash. The clip sampler's rotation blend now uses the table sines of 0x4742A0 (COAST-033 narrowed); the pinned digest of DetMatrix.Slerp changes (D65FD1F808A2F9A0 -> 835A114DD5A79937), world pins do not move. COAST-026 and COAST-034 are not changed in this round.
Staff constructors, claims, bank limit and the hire figure (October 28, 2026)#
Round 10 package C reads the staff constructors and their neighbours in tp.exe and ports them. The tpw-decomp research only pointed to where to look; every behaviour below was read at instruction level in tp.exe.
DET-015 (narrowed). The five role constructors (0x4D4340, 0x4D5D40, 0x4D6B60, 0x4D9EB0, 0x502600) run the role's first search (0x4D46D0, 0x4D63D0, 0x4D7100, 0x4DA5B0, 0x502C70) right after the base constructor's draws.
PlaceStaffCommandnow runs it throughStaffHandsandLevel.StaffWorldright after the put-down (StaffWorldSimulation.Constructed), so its draws come at the click and the first update goes on from the chosen job instead of searching again. Headless economies keep the first-update search. Still open: the researcher constructor's last call 0x5041F0 (itsthisis the park object, 0x519550: an edge-triggered byte +0x1468 and message 5 when the researcher list, game +0x1DA742, is non-empty, 6 when empty, via 0x40FB10, received by the advisor's subscription 0x599EDB, also on a removal 0x502920; no draw) is not posted: a lead for the advisor package.SAVE-006 (narrowed). Every staff claim (an attraction's claimant word and turn, 0x4E01F0) of an original save is imported as saved, whoever the claimant is; a claimant the import does not hold is a negative word (allocated to nothing). The lazy query 0x4E0220 (
ParkEconomy.Claimant) lets it lapse 100 turns after its stamp. A stamp after the save's turn is taken as made on it. What stays open: the saved open word, the sign lines other than the gate's and the raw links.GUEST-015 (retired). The performance's script is 13 + (r mod (n - 1)) from the search's second draw (0x4D47B5..0x4D47E4); the draw is kept per member (
StaffMember.PerformanceDraw, saved only while set) andStaffSpriteRules.Performfollows it.GUEST-017 (narrowed). The burst's first frame already waits for the next due script pass (0x4FE950, 0x475B80, strict test 0x475360, created invisible 0x4758F0); the declaration now names only the host clock and SAVE-013.
GUEST-020 (narrowed). The folders handymen, mechanics, guards and researchers stop at the limit of 0x41AA40: 1 bank for the preset's
GameOptions.NUMKIDS0 (low.sam), else 2; banks sorted by name (0x541210), entertainers unflagged, loaded once per program run.StaffSpriteSet.Loadtakes the limit from the current preset when a level builds its staff; a variant draws its bank modulo the loaded count, so the simulation does not depend on a local graphics setting. The same word limits the kid sets to 2, 4, 6 and 8 (0x41A9D0), which is not ported yet.UI-082 (narrowed). The hire figure follows the native phases of 0x49BA00 and the close 0x49B7B4: a new role or variant starts a figure that shows nothing before the first due pass, an applicant the pool does not return keeps the figure, the close ends it.
Pins: none moved (the synthetic fixed runs hire through the economy, not through the placing click). Saves: the optional PerformanceDraw of a member's world state is new; old saves load.
Jungle 120-minute debug sim with the six debug staff (two handymen, two mechanics, a guard, a researcher; 11 staff in the wage line) placed first, before / after: admissions 379 / 362, guests at end 17 / 21, boardings Belly Bounce 517 / 525, Jungle Spray 407 / 431, Drinks Shop 415 / 439, Small Toilets 277, 131, 114 / 304, 164, 114 (the staff's searches draw at the click now, which moves every later draw).
UI window fidelity from tp.exe (October 28, 2026)#
The HUD arm's drawer geometry now comes from the runtime rectangles tp.exe uses (arm procedure 0x4A14F0, HUD table 0x752940): a slide-out panel starts at the arm's left less its width less 50, is centred vertically on the arm, and moves by the truncated integer step per timer tick for ten ticks plus a finalizing tick. The camera panel and the message panel share it, and the arm art is drawn under the HUD (UI-042 narrowed: the camcorder arming and postcard remain).
Message tube offers keep a 90 s timer, stay when read and are declined when removed (UI-025). Ride and shop object states 2 and 3 are stored in the economy record rather than derived, and a requested upgrade overwrites a breakdown as the original does (ECON-023). The lost-park overlay audit found no economic guard in tp.exe (ECON-030). The local happiness walk wraps on the 16-bit cell id (UI-024). UI-941 is retired (the lobby generator is seeded from the clock); the 12 year graph's 144 samples are the ring's months one to one (UI-060).
Message-tube saves keep offer rows (the offer kind already existed; the schema is unchanged). The roster membership (GUEST-920), the moon billboard (UI-107), the model objects' messages 0x80 and 8 (UI-914, UI-064) and several other rows stay narrowed; see the PR for details.
Walk chains, wander links and the sub-turn draw (October 28, 2026)#
Round 10 package A reads the walk chain, the sub-turn interpolation and the wander candidate routine in tp.exe and ports them. The tpw-decomp research only pointed to where to look; every behaviour below was read at instruction level in tp.exe.
WALK-003 (retired). One chain per map cell holds every thing, guests and staff interleaved by entry time, head insertion (tp.exe 0x4D91F0, 0x50B6A0). Positions change only in the walk step and the teleport (0x4FA2A0, 0x4FA930); riding and carried guests keep their last walked point. Staff share the chain through
StaffCellChain; both sides take entry numbers from one counter.GUEST-016 (narrowed). People are drawn at the per-frame lerp between the turn-start point (+0x190/+0x194) and the current point over 248 ms (0x4F9F00, 0x4FA030, 0x518F90); speed smoothing
(3*old + sum/100)/4with the x87 24-bit rounding and the x99/100 boost decay (0x4FA870). The sprite clock remains open.GUEST-010 (retired). Wander candidates come from every link bit of the cell with the four removals and the original's counter quirk (0x4F9490, 0x4F97E3, stranded 0x4F9D64); proven against the real routine in the x86 oracle with a C# golden replay.
WALK-010, ARRIVAL-001, GUEST-007, GATE-006 narrowed where the cell chains settle them; GUEST-007 stays open on what reads the advice record's id and cell.
Finding: following the original's links faithfully, a guest can stand on a link that leads to bare ground (7 of 188 path links in the original Jungle save) and strand. The 120-minute Jungle run shows no visible regression.
A stranded guest keeps the original's freeze exactly (the mark at 0x4F9DFC, held by 0x4FA770 until a build or edit in its block or a neighbouring one stamps the map, 0x4D8C60 and 0x4DE1F0); the release path is ported and tested.
The chain holds every kind of thing in the original (world singletons and vehicles at cell 1, objects on their own cells; only people move); the online avatar (kind 0x12) that the separation query reads is not built.
Pins (largest move of the round): the fixed run 0x5946C7CB09C6EEE7 moved to 0xB4AEC10551DF2738; every other pin, with old and new values, is listed in docs/DETERMINISM.md. Saves: the optional StaffActorSnapshot.CellSerial is new; old saves load.
Jungle 120-minute debug sim, before / after: admissions 377 / 375, guests at end 16 / 22; boardings Belly Bounce 452 / 455, Jungle Spray 348 / 341, Drinks Shop 396 / 398, Small Toilets 232, 111, 82 / 251, 113, 83.
Accented online-menu labels keep the menu font (October 27, 2026)#
The native front-end smoke failed its "drawn in the menu font family" check on the online menu in French, Polish, Hebrew, Swedish and Danish (it passed in the other six languages). The font selection was right: OpenTPW takes the menu role from the language's own MENU files, as tp.exe takes its menu slot from the language's font bank. The button-text fit was wrong.
Diacritics inside the line box no longer shrink a label.
UiContext.InkBoxcounted every drawn pixel vertically. The MENU, TITLE and SESH fonts keep the rows between the line top and their capitals for marks (MENUSMALL's letters start at row 9; French î and Swedish/Danish å reach row 4 or 5, Polish ń row 7, Hebrew lamed one row above the font's letter box). At 1280x720 the online menu's 30 px label box held the 30 px letter box exactly, so "Boîte de réception", "Logga in på TPW", "Læg park ud på nettet" and "Usuń konto" fell to the plain body font, smaller than their neighbours and on a lower baseline. Vertically the box is now the font's letter box, widened only by ink that leaves the BF4 line box (the GAME fonts' marks above row 0 still count); the original's text library stacks lines a line height apart (0x6ae1c0), so a mark inside the line box never meets the line above.Wider online menu window. Hebrew's login line is UITEXT 235, "מתחבר אל www.ThemeParkWorld.com" (the original's "Online Login"), 438 px of ink in MENUSMALL against a 407 px label box. The window is now 1280 units wide instead of 1200 (label box 948 units, 444 px at 720p); the buttons keep their 130-unit margins.
Refactor. The menu's ids and labels are a static table (
OnlineScreens.MenuEntries,MenuButtonBounds), and the purple text button's label box isUiButton.PurpleLabelRect, so the test measures the same boxes the screen draws.Tests.
OnlineMenuLabelFitTests.EveryLabelKeepsTheMenuFontFamilyInEveryLanguage(withOPENTPW_LANGUAGE_PACKandOPENTPW_GAME_PATH) draws every label, logged in and out, in all eleven UI languages at 1280x720, 1920x1080, 2560x1440 and a Retina 3024x1686. On the old code it reports exactly the five failing languages (seven label/size failures); with the fix it passes. The native front-end smoke passes in Hebrew, Polish, Swedish, Danish, French and English.Still open. Several online labels have no Hebrew supplementary text and show in English (News, Inbox, Chat, Import file, Delete account); unrelated to this fix.
Report Python test failures before later CI checks (October 27, 2026)#
A Windows CI job reported success even though its release-train tests logged six failures and seven errors. Later passing Python commands overwrote the failed command's exit code in the multi-command PowerShell step. That step now explicitly uses the supported Bash shell's fail-fast behavior, keeping every existing command and platform in the matrix.
The workflow-shell tests now launch the absolute Bash path discovered by shutil.which instead of a bare executable name, and failed assertions include captured stdout as well as stderr. Windows selecting its WSL launcher before the Bash found on PATH is the suspected launch cause, inferred from the code, runner image and failure signatures; it has not been confirmed by a Windows runtime test.
Local Linux validation passed all 31 baseline release-train tests and all 33 updated tests, with no skips. The two added mocked regressions check absolute-path dispatch and refusal to fall back to a bare name when Bash is missing. A bare-name mutation failed the new regression, and a synthetic Bash run preserved an early Python exit code 7 without running a later command. Windows validation remains pending. These are CI and test-harness changes, not game-functionality or fidelity claims.
Coaster track texture lighting uses the existing self-lit shader path (October 27, 2026)#
Implementation from proposal #569 (COAST-026). The self-lit shader path landed in #863, but the extruded coaster track still supplied only texture indices: its parsed asTextureData.bIsSelfIlluminating values and the three appended marker textures never reached that path.
CoasterRenderer.TrackVertexcarries the lighting metadata into the actual engine vertices used by both the fixed and scrolling track meshes. Ordinary textures stay lit; declared self-lit textures and them_erase,redandbluemarkers carryTextureSlotAddressing.SelfLitFlag. Geometry, normals, texture indices, UVs, scroll timing, addressing, alpha/blend and culling rules are unchanged.The existing evening policy is reused, not redefined: a declared self-lit texture also gets
LightSourceFlagonly whenTextureSlotAddressing.IsLightSourceidentifies its name. Other self-lit textures and the three build markers keep the existing night tint. No shader or light-source name list changes.Three added methods in
CoasterPresentationTestsdefine eight asset-free cases: four combinations of fixed/scrolling and self-lit/plain textures (including a named glow texture), each of the three marker textures, and invalid/missing texture metadata. The tests use synthetic settings and mesh extrusion and check the complete output flags plus preserved geometry and texture coordinates.tp.exe's texture loader (
0x42f390) sets texture flag 4 frombIsSelfIlluminating(flags 2, +4 when set, +0x20 when scrolling) and the three marker textures carry flags 7. The shader, native and the web JSON build, already honours the self-lit and light-source vertex bits; the track's wrap handling is untouched by the pylon wrap work (#918/#920).Checked with the full with-data suite on the merged tree.
COAST-026 stays open, now with a narrower clause: that the original's dynamic model draw reads texture flag 4 as unlit is not traced (0x580C51 tests the model material word +0xC bit 0x1, a different structure), so the self-lit track vertex flag is an assumption. Sample-coordinate section runs, flume dry/wet blending, marker transition topology, kept-invalid-node marker evidence, remaining scroll readers and Add-mode model UV animation remain outside this slice. No game media is included.
Guests run the rides, shops and sideshows when the host lets them (October 27, 2026)#
The host of a shared park can now give each guest the attractions right too (COOP.md, "Money and rights (C4)", "A guest's attraction windows (C4b-2)"; [EXT:online-coop-commands], [EXT:online-coop-permissions], [EXT:online-coop-claims]). This is C4b-2, the second half of C4b; staff follows in C4c.
The object windows. With the attractions right, a guest's ride, shop, sideshow and toilet windows act as the host's do: the speed, capacity and duration, the quality and ingredient, the prices and prizes, the typed price, apply-all, the door, the call for a mechanic or a handyman, and the upgrade list.
Each change goes at once. The original's window keeps its values until it closes. A guest's window sends each change when it is made instead, so the host can refuse it before anything changes, and nothing is ever lost when the window closes or the park is rebuilt from the host's. The controls show what was asked until the host's answer comes, and a drag or a held button sends its latest value once.
The host's window. The host's window still applies its values when it closes, but in a shared park only the ones the host changed, so a guest's change made while the host's window was open is kept.
In the order clicked. A guest's changes to one attraction apply in the order they were clicked, so a visitor buying between two of them pays the price that stood then.
Doors, calls and upgrades. One of these waits at a time for each attraction, and the window shows the ride as that action will leave it: a ride whose upgrade was bought shows as closed for its upgrade before the host's answer comes.
Upgrades bought twice. Each ride counts the upgrades bought for it, so a guest's cancel never cancels an upgrade the host bought again in the meantime. Old saves and session logs load and replay as before.
Claimed rides. A guest cannot change a ride another player is building; the host and the builder still can.
When a session ends early. If it ends while some of a guest's changes were still on their way, the end message says "Some of your last changes may not have been made."
The live acceptance gains a management run, checked in two native games and with the guest in the browser: the guest's purchase, the host giving the right through its dialog, a typed price and a ride's door, and a park rebuilt from the host's in the middle of a guest's change, which then goes once.
A claim keeps the path cell linked into its ride's entrance (October 27, 2026)#
In a shared park, clearing a path cell that links into a ride's entrance cell runs that ride's re-evaluation, as the original's clear does (tp.exe 0x53694B): the ride's queue is recomputed, a block is stamped, and a closed ride may open. Until now another player could do that to a ride someone else claimed, for example with a remove click or Backspace on the path in front of a claimed kart ride. Such a cell is now the claim holder's alone, as the path cell a claimed queue joins already was (COOP.md, "Building by every player" and "Claims"; [EXT:online-coop-claims]).
What refuses it. These are refused for every other player, the host included, in the claim's words ("Another player is editing this ride."):
the remove click, Backspace and the host's single-cell removal;
the undo of a path line that built the cell;
native queue segments laid over it, and their undo;
placements: the paths under them, a queue ride's first queue cell, and a fresh kart or water station's exit and entry tiles;
kart or water track lines over it.
The area clear leaves the cell standing.
Only a real link counts. The rights ask exactly what the clear does: a path cell with a cardinal link into an entrance cell whose owner word belongs to the claimed ride. These stay anyone's: a path cell beside the entrance that does not link into it, a queue cell there, the queue tool's per-cell line (it lays no queue over path), a native segment that only ends on the cell, a path line along it, and an undo or a Backspace that only counts the cell down. The last rule now also holds for the path cell a claimed queue joins: a Backspace on a cell laid more than once only removes one placement, so it takes no link off.
One helper.
CoopBuildRights.BesideClaimedEntrancewas first written for C5's take-backs, on a branch that is not merged yet. This change brings it to main with the path-cell and link conditions above. Every command that clears a path cell now asks it, except the coaster tool's cell markers (below).
Verification:
Four new tests:
a session test of the guest's remove click and Backspace beside a kart ride the host claims: they are refused with the claim's note and nothing changes; once the claim is let go, both take the cell and the ride is re-evaluated on both parks;
a rights test over every clearing command, for a guest, the host and the claim's holder;
an execution test of the area clear;
a preflight test of the fresh station's exit and entry cells, for both track families and all four rotations.
All co-op tests pass.
Each of twelve parts of the change, reverted on its own, fails at least one test.
A Codex review found two needless refusals, now fixed: a native segment's last cell, and a Backspace that only counts the cell down. The queue tool's per-cell line, which never clears a path cell, is no longer asked either.
Track lines and the fresh station's tiles are still asked as drawn, also past a tile their writer would stop at, as for a claimed queue's join.
Still open: the coaster tool's cell markers, which clear a path cell where they land, ask no claim for it, as before for a claimed queue's join.
Guests manage the staff of a shared park (October 27, 2026)#
The host of a shared park can now give a guest the staff right, the last of the five rights (COOP.md, "Money and rights (C4)", "A guest's staff (C4c-2)"; [EXT:online-coop-commands], [EXT:online-coop-permissions]). This is C4c-2, the second half of C4c.
Hiring and moving staff. A guest hires from the staff window and places the new employee with a click, and picks an employee up from its window and drops it elsewhere, as the host does. Each step waits for the host's answer; the tool appears once the host agreed, and comes back by itself after a resync.
Changing your mind. Escape, a right click or another tool lets go of the staff tool at once, also while a hire is still on its way; the park then cancels the hire or puts the employee back where it was picked up.
The staff windows. A guest renames employees, sets and clears their patrol areas, sets the training budgets and dismisses employees; the windows show what the guest asked for until the host's answer arrives.
Clear refusals. A guest without the right hears so before anything is sent; dismissing an employee another player carries says "That employee is being moved.", on the host's computer too.
Live acceptance. A new
staffscenario of the live co-op test hires, places, moves, renames, trains and dismisses a guard from a guest, with two resyncs forced along the way, on native and browser games.
Guests run the research lab and the money when the host lets them (October 27, 2026)#
The host of a shared park can now give each guest the research and finance rights besides building (COOP.md, "Money and rights (C4)", "The rights dialog (C4b-1)" and "A guest's management windows (C4b-1)"; [EXT:online-coop-permissions], [EXT:online-coop-commands], [EXT:online-coop-money]). This is C4b-1, the first half of C4b; the attractions follow in C4b-2 and staff in C4c.
A rights dialog per guest. On Build Together, a guest's button now names its rights ("Building, Finance", or "Watches"). It opens a dialog with one switch per right the host can give: building, research and finance. The dialog closes by itself when the guest leaves or the sharing ends.
The research lab. With the research right, a guest's effort sliders, workload knob and project arrows act as the host's do. A drag sends its latest value once. The control shows what the guest asked for until the host's answer comes, then the park's value again. An arrow names the project its window shows, so two players never skip a project between them.
The money. With the finance right, a guest can open and close the park, set the entrance fee, rename the park, and take or repay loans. A loan's confirmation waits for the host's answer and then closes, or says why it failed, just as the host's window would ("insufficient funds", "not available"). An accepted open or close gets the advisor's remark, as on the host's screen.
One queue for these requests. A guest's management actions go to the host in order, one at a time for each part of the park, at most five a second, well inside what the host takes. A request the host could not take anyway says so, and the player tries again. When a right is taken back while an action is on its way, the guest hears that the host has not given that right, once.
Messages the guest can read. A guest's note waits while a full-screen view, the object window or an opened message hides the message lines, and then shows for its full time. This includes rights revoked before a queued action is sent: the note survives a replaced HUD without a duplicate transient notice.
Reopening a pending rename. Both fields start from the latest requested name, even while an earlier name is on its way to the host, so editing one line preserves the other.
No surprises for old logs. The host's own records and every older session log keep their exact bytes. Only a guest's research project choices (and, from C4b-2, its upgrade choices) carry the extra "what I saw" fields, in a new version of the command format.
Without a right, a guest's click still says that the host has not given it that right, and nothing goes to the host.
Every seat of a shared park keeps its own staff state (October 27, 2026)#
The park now keeps the staff of every player of a shared park apart, ready for the guests' staff right (COOP.md, "Money and rights (C4)", "A seat's staff (C4c-1)"; [EXT:online-coop-commands], [EXT:online-coop-permissions]). This is C4c-1, the first half of C4c; C4c-2 gives guests the staff tools and windows and lets the host give them the right.
A hire per player. Each player's hire reserves its candidate, so two players never place the same one, and the pool keeps every reserved candidate until its player places it or lets it go.
One thing at a time for a guest. A guest's new hire or pick-up puts back what it was holding, as the original's tools replace each other.
Carried employees. An employee another player carries cannot be dismissed; dismissing the one you carry empties your hand. In a single-player game the carry tool of such an employee now ends at once.
Leaving. A player who leaves, or loses the staff right, has their hire cancelled and their carried employee put back where it was picked up, on every computer alike, also when the host closes the shared park.
Saves. A save made while a guest carries an employee stores that employee standing where it was picked up, while the shared park keeps it in the guest's hand.
Co-op ticket purchases reconcile at hand-back (October 27, 2026)#
A park returning from a co-op session credits its newly earned tickets before its ticket purchases enter the player's account. Global-ticket arbitration still happens first, and the account remains untouched while the park is shared. This prevents a purchase funded by the session's local tickets from being skipped as unaffordable and leaving those tickets available to spend again.
Two synthetic regressions cover an initially empty account earning three local tickets and buying item 1112, repeated hand-backs, and reloading the progress file. The expected account keeps the purchase identity, three earned and three spent tickets, and no available tickets; repeated reconciliation must not change the saved progress.
Backspace takes back your own last step in a shared park (October 27, 2026)#
In a shared park every player's Backspace inside the path, queue and slide tools now takes back that player's own last step, under the normal refund rules, and only while nobody else's later work depends on it (COOP.md, "Conflicts and undo (C5)"; [EXT:online-coop-undo]). This is C5-1, the first of three parts that reach the game together; C5-2 adds the pool strokes and the wave machine, C5-3 the kart, water and coaster tools.
Your own, your last. Backspace takes back the newest path or queue segment, or slide piece, your tool laid, one at a time, the host's and a guest's alike. A queue the tool started on, or another player's work, is not yours to take back, and says so. A line that joins an existing path ends the tool, as in the original, so it is removed with Backspace on its cells, as in single player.
Refused while others depend on it. When another player's later line crosses or joins your segment, or something stands on it (a pool bridge, an object), Backspace changes nothing and says why; once that player takes their own work back, yours can go too.
The host decides. The host keeps a journal of every player's steps and checks each take-back against it before it runs, so every computer takes back exactly the same cells, with the same refunds.
No new undo elsewhere. A placed object still leaves by its sale, as before, and a single-player game's Backspace is unchanged.
Reconcile DET-014's already implemented guest draws (October 27, 2026)#
Corrected the guest-update annotation, determinism register and approximation summary: the won-sideshow tail, balloon-recreation reseed and draws, and arrival-walk draws are already present and must not be implemented twice. The remaining DET-014 question is guest-update and RNG scheduling between park turns, separately from the pooled thing sweep and standalone simulations. Source/metadata reconciliation only: no runtime behavior, random calls, deterministic pins or save format changed, no approximation retired, and no new original-game or runtime-test result claimed.
Guests keep their destination, detour to a nearer ride and skip a ride without a front (October 27, 2026)#
Fidelity round 9, package G. This read how tp.exe keeps and uses a guest's target (0x4FCB10, 0x500900, 0x4FD570, 0x4FFBC0, 0x5012F0, 0x502305, 0x4FB360), where a thing's access cell comes from (0x4DB090, 0x4DB33C, 0x413410) and what the edge test lets a walker enter (0x4D8750, 0x42A440), and ported what it showed. GUEST-002, GUEST-004, GUEST-005 and GUEST-019 are retired; GUEST-006, QUEUE-003 and WALK-005 are narrowed.
GUEST-004, the target and the major destination. The target
+0x1DCis no longer cleared when a visit ends: it lives through the exit walk (state 15) and state 6 or 7 until the next major choice (0x4FCB21), so the removal of a ride now also reaches a guest that has just left it (the small happiness step, state 6). The leaving state's entry clears it (0x502305), as a held guest's does. A walk that finds the back of the queue moved and cannot reach the new one (0x4FFE4A) keeps the target too. The major destination+0x1DEis new (Guest.SavedMajorAttractionId): the minor decision sets it to the old target, the exit walk takes it up again and walks to its back cell in state 10 ("Left minor destination, found old major"), and the removal of an attraction clears it from every guest.GUEST-019 and GUEST-005, the access cell
+0x36. The constructor0x4DB090is the only writer of+0x36: the shape's first entrance cell, inside the footprint (the Jungle save's entry and exit words of all 11 placed objects equal the shape's cells,SavedAccessCellTests). The minor decision lists the rides on the cell their thing stands on (+5,+7) in the 4 x 4 window, measures the route lengths from the target's access cell and sends the guest to the best's access cell, where the guest stands in the footprint's entrance cell and then asks for the back cell again, as state 10 does. A guest's bin walk ends in the bin's own entrance cell. A world that keeps the cells it was given (a visit, Theme Park Inc) and the bridges without a placed object keep their entrance cell (QUEUE-010).QUEUE-003, a ride without a front. An entrance without a cardinal link bit has back cell 0 and size 0: guests neither score, choose nor join it, a guest walking to it falls to state 6 with its target kept, and its queued guests but the called one leave at the re-evaluation. The ride's saved queue gains the optional
ZeroFrontflag; a save from before loads with its old one-cell queue, which turns into the zero front at the next recompute.The queue tool and the entrance's link. Laying the first queue cell of a ride now also links the ride's entrance cell back to it (the link writer links the first cell and the entrance both ways,
0x53525A..0x535366), so a ride whose entrance lost its link when its queue was removed has a front again once a queue is laid. The sandbox smoke's tour ride is given its access cells and a path under its queue, as a player's placement would.GUEST-002. The minor decision now scores the same candidates as the major choice (a disconnected real queue back counts, a ride without a front does not). The one shipped save with a queue holds the same back cell and size as OpenTPW computes; the 11 corpus saves place no ride. A front the entry cell's link byte names counts even on empty ground, as
0x4DE130does: the route request fails and the guest is stuck on the way (tested).GUEST-002is retired: the cached back and size (+0x3A,+0x40) are kept until a re-evaluation, the untyped host-fallback back is a host-model boundary (host harnesses, read-only visits, Theme Park Inc worlds) and the smarter-guests join-cell filter is the labelled extension's explicit choice.WALK-005. The mask-2 rule for a type 9 target (the owner cell's ride must be rideable,
0x42A440, with CannotRide 0) is ported (ParkCellMap.EntranceRideOpens), but its only callers in tp.exe are the camera's (0x42C093,0x42C290), so no simulated walker meets it. The underground link byte is read only inside the land tools' calls. Type 17 and zero-parent track records remain.GUEST-006, the voice. The needs-phase thought 4 plays cat_kids
0x85on a thing id with its low nibble 0 (0x4FCA6F), a presentation event that draws nothing; the voice table gives the other two voices to thoughts 12, 13 and 15, which the pick never returns. The stale register text that said it was not played is corrected.Determinism. The pinned fixed run moves from
0x1AABD1698E2E75BEto0x5946C7CB09C6EEE7and every pin that runs a park with it (DETERMINISM.md, "Guest destinations"). The cross grid pin ofPathBuilderTestsdoes not move. No draw is added or removed.Saves and co-op. Both new fields (
SavedMajorAttractionIdon a guest,ZeroFronton a ride's queue) are optional and written only while set; old saves load. The command shapes are unchanged and every peer runs the same guest simulation.Tests.
GuestDestinationTests(the minor decision on cell lists and access cells, the detour's walk into the entrance cell, promotion and its edge cases, removal, the saves, the zero front, the bin walk, the mask-2 rule), the updated exit, refused-target, pool and typed-front tests, andSavedAccessCellTestswith game data.Review follow-up. An original save now imports both destinations:
mMajorDest(+0x1DC) stays the target of a guest in state 6, 7 or 8 andmSavedMajorDest(+0x1DE) becomesSavedMajorAttractionIdof every imported guest (the loader0x4FB530leaves both as read; states 11 to 17 are still dropped by SAVE-002, so a kept target of 15 or 16 cannot occur); the import reports the counts as evidence and is tested with synthetic saves (the 11 corpus saves place no ride).Guest.MajorAttractionIdis nowSavedMajorAttractionId(snapshot field included). The queue entrance resolver takes the shape's first entrance cell, as0x4DE040reads the link byte of+0x36; a corpus test covers all queued shapes of the four themes (72, none with several entrances) at four rotations. The removal message (0x4FB360) tests only+0x1DC, so a wandering guest (state 7) that targets the removed attraction now stops where it walks as a guest leaving a ride does.Round 2. The litter bin a guest last used stays its target (
+0x1DC) after the walk (0x4FFF20writes no+0x1DC) until the next major choice, a bin search, the leaving state or a hold; the removal message hits every holder (small step, state 6, a walking guest stops where it stands) and an original save imports a binmMajorDestfor states 6, 7 and 8. The cached back (+0x3A) and size (+0x40) of a ride are kept until a re-evaluation (0x4DE1F0): the park turn's sync, a load and a saved cache keep them (optionalCachedBackandCachedBackSizeon a ride's snapshot, written only while they differ from the queue). The first-entrance scan (0x413410, columns outer) and the placement's last entrance or exit (0x528A70, rows outer) follow tp.exe's orders; no shipped shape has two of either.ScoresDisconnectedQueuesis explicit in the smarter-guests policy.Mono interpreter hazard (test side). The browser pins (interpreter) failed in the projection helper of the guest tests: in a method called about 70 times (the interpreter's tier-up) a
finallywith afororforeachloop over an array of value tuples overwrote the low half of the locals thetryhad assigned and the method returned (a(ulong, ulong)came back as0x111122220000000B, 0x555566660000000C; every return form, with and without Jiterpreter traces; AOT and desktop were right). The helper has no try/finally any more;MonoInterpreterTryFinallyProbeTests(in the browser pin classes) keeps product-shaped controls hot (finally blocks that only call or subtract a field). Three finally bodies of the browser build did loop (Level.SimulateSweptTurn, the co-op join's slice, the pin runner): none misbehaved in the pins, but each read locals after the finally, so each loop is now a helper call, with no behaviour change and no pin moved;tools/test_no_loop_in_finally.py(in the build's tool tests) fails on a loop or LINQ call in a finally body of the browser-compiled projects.Round 3. The exit cell
+0x38is the first exit in column-major order, else the first entrance (0x4DB36B, filled by0x413410). The guests' queue re-evaluation (0x501390) runs only for edits a ride reported (0x4DE1F0), with the room the edit left; a change only the park turn's sync finds moves the host's queue cells and dismisses nobody. A ride's demolition reads the cached size as it stands (0x527FB4), and the stray-cell scan of a queue cell removal drops no cache (0x5367A0re-evaluates the owner only).
Initial track placement respects co-op claims (October 27, 2026)#
A fresh kart or water station checks its adjacent entry and exit operations before purchase or registration. The preflight covers objects the demolition would remove, claimed track owners on offset origins and extension cells, and path cells whose clearing could unlink another ride's queue. A refusal leaves the complete placement untouched, rather than skipping individual operations after buying the station.
The preflight shares the track writer's existing demolition gates: an existing origin without an add-on skips the tile, and neighboring station cells remain protected. Authorized scenery demolition remains unchanged. The optional last-line flag and legacy track-undo decoding are unchanged.
Fixed park items retain their existing empty footprint and identity-based guest-removal protection: they are not adjacent occupied-cell victims. A separate regression checks that a guest's sale of a fixed item is refused without active claims, while an accepted station placement leaves that item registered, standing and unoccupied. The no-claims fast path is unchanged.
Added synthetic regression cases for kart and water rides in all four rotations, both adjacent tiles, claimed objects, queue joins, offset track owners, atomic refusal, and an accepted placement beside a claimed station. The first native CI run compiled but exposed an invalid fixed-item occupancy assumption in the test fixture; the corrected fixture preserves all claimed-object occupancy and atomicity assertions. The corrected C# tests have not been executed in the authoring environment because the .NET SDK is unavailable; compilation and runtime validation of the correction remain required.
Path art follows texture packs and the first suspended frame (October 27, 2026)#
The procedural path compositor invalidates its decoded CPU art after a completed texture-pack switch. A pack generation distinguishes replacement pixels even when their dimensions, path tile and cell word are unchanged; every path cell is resynchronized, so an offscreen cached cell rebuilds when it returns. Cancelled/replaced switches do not announce completion, and deleting the terrain unsubscribes its cache.
An unreadable or malformed replacement is diagnosed and keeps that tile's previous art, like the GPU switch, without blocking other tiles or later subscribers. Each texture is attempted once per completed generation and retried on the next one; an explicit missing-art result removes it rather than reviving older pixels. Only out-of-memory errors escape; every other decode failure keeps the last good art or uses procedural ground.
The lazy static ground and path batches are prepared before the level snapshots its entities. Entering a camera mode that suspends procedural texturing, including the first frame after path edits, therefore includes the replacement batches before hiding the procedural cells. Queue models and object-floor composition are unchanged.
Synthetic regression coverage adds equal-sized Original → A → B → Original art, a genuinely offscreen cached cell returning to view, unchanged-refresh build counts, missing-art recovery/removal, corrupt replacement PNGs and injected decoder failures, cancellation/replacement and subscription disposal across terrains. Source-order checks cover pre-snapshot preparation. A silent offscreen native run checked a texture-pack switch and the first free-walk camera frame after a path edit; the ride camera was not run separately.
Default-off synthetic path artifact workflow bootstrap (October 27, 2026)#
Add only the manual build/audit/artifact route and this note, not the path runtime fix or its diagnostic implementation. The default-false job requires a reviewed candidate ref containing the isolated oracle and fails before SDK setup when those files are absent. Normal PR/push CI remains unchanged. No path visual acceptance or runtime release is claimed; #883 remains draft pending its separate verification.
Round 10 quick ports: saved message tube, staff variants and creation draws, Ctrl copy (October 27, 2026)#
Fidelity round 10, package Q. The tpw-decomp research only pointed to where to look; every behaviour below was read in tp.exe at instruction level and is tagged with its tp.exe address.
UI-025, the message tube is saved with the park. The tube holds ten rows and refuses an eleventh without eviction (
0x48EB20, cap word0x750610= 10); the register text still said five with eviction and is corrected. The tube is now an optional, validatedMessageTubepart of the park-resume save (0x48EE50): plain messages, challenge offers (their Accept and Decline actions are rebuilt), progress rows and terminal rows with their lifetime and read state (the loader0x48EF70adds each record again: both timers restart from the full lifetime,0x48EDBDplays the new-message cue per row, a row saved as read keeps its timers stopped); a join snapshot carries no tube. A save without the part loads with an empty tube and a park without messages saves the same bytes as before. OpenTPW writes its own JSON part and does not import an original save's tag block (UI-025 stays narrowed: offer removal, the timer queue, other action-bearing sources).QUEUE-010 narrowed. PR #876 had already ported the removal message's semantics (
0x4FB360). The last relocation left for a guest whose attraction is gone (a safety net, since the original has no such poll) now also stays where it stands in state 6. Only the bridges without placed cells (gates, test rigs, Theme Park Inc) keep the front-cell relocation.UI-042 narrowed. The arm drawer
0x4A14F0places the panel at the arm's left less the panel's own width and a horizontal gap of 50, centred vertically on the arm, and moves it right by a tenth of (the HUD window's right - the arm's left + the panel's width + 100) each step. The register no longer says the HUD's width or a vertical 50. The end of the slide and the vertical place stay the table's until the two windows' runtime rectangles are read.UI-024 narrowed.
0x4CD880was already ported (the mean over the 3 x 3 cells, the unsigned clamp of the high edge); the text keeps only the thing's byte pair and the low edge's wrap (not reproduced).GUEST-014 retired (one pin moves). The person serializer
0x4F8B10savesmSpriteIDand reduces it by the category's bank count on load, so a member of an original save now keeps his sprite variant ((SpriteId mod banks)); the name-and-id key only serves OpenTPW park saves from before the variant was kept.DET-015 narrowed. No staff constructor reseeds:
0x4F7B7Eis the online avatar's constructor0x4F7B20. A hired member now consumes the base constructor's base-speed draw (0x4F89E1, R mod 5) right after its thing id and does not keep it: the speed is 60 below grade 3 and 100 from grade 3 (0x504C20), 60 for the entertainer (0x4D43EE), and the guard constructor draws its own sprite variant (0x4D5E02). A pool-less economy takes no draw. The constructors' role searches (0x4D46D0,0x502600,0x4D5E68,0x4D7100,0x4DA5B0) still run on the member's first update, a turn later than the original's, and stay the open part of the entry. The pinned fixed run does not hire staff and does not move.SAVE-922 retired, SAVE-923 narrowed. Header
+28/+32are the station's placement cell (0x466F90), stored by0x4368F0, handed by the loader to0x436AC0, which never reads them, and written back by the saver (0x4374F7): dead data, retired. Car+0x44is the seat share0x43BA90computes, which the import's seats per train reproduce. SAVE-923 stays open, narrowed to the train loop sound:0x439780(called from0x43937Band0x43D7D8) keeps its state in train+0x38and its handle in+0x68, reads the parameters+0x5Cand+0x60and starts the loop sounds through0x51BC40, which OpenTPW does not play; the loader restores+0x38,+0x64,+0x68raw.Ctrl and a click copies an object (in a read-only visit the click opens the window instead; co-op rights are asked at the placement, covered by
CoopRightsTests). The click dispatcher0x4879D0(mode 4) tests Ctrl: without it the object's window opens, with it the object's type record is read, a balance below the price plays cat_ui0x1Dand arms nothing, else the mode 4 build tool of that Info id (0x46C5A0, as the buy row does after the same comparison at0x4AC6C7) is armed at the object's own angle (0x52F1B0) and no window opens. A guest of a shared park is asked for its rights at the placement, as for every placement.Register text. ECON-022 no longer says guests do not turn to watch performers (they do,
0x4FEFF4with the state-14 test0x4FF04A, as GUEST-010 says); ARRIVAL-006 now says the game loop catches up at most 2000 ms in 31 ms ticks (0x54F493,0x54F4C4), takes a turn on every 8th tick and runs at most 3 per pass (0x54F668,0x54F680), so a pass can drop more than 3.COMPAT-032 retired,
[EXT:sign-face-alpha-blend]removed. The sign builder sets bit0x80on the model's slot entries (or word ptr [edi], 0x480,0x467D09,0x467D69), so the binder0x575C60builds the texture from the composed 128 x 128 record (0x590A80) with the entry flags0x1000240(0x575DAB): alpha type0x200, state0x556(blend, alpha test at 0x10/255, depth writes on). The composed sign textures now carryTextureAlphaType.Translucent, so the world pass tests them at 0x10/255 and draws them after the opaque list, far to near. The bits0x40and0x1000000of the flags are read by neither0x590C40nor0x581790and change no state. A capture of the jungle gate and the Belly Bounce sign shows wood and sky between the letters (reports/r10q-sign, not committed).Tests.
MessageTubeSaveTests,StaffCreationDrawTests,StaffVariantTests(the saved variant, with the corpus),AttractionRemovalGuestTests(the orphan exit) and three Ctrl-copy cases inObjectRayPickTests.Pins. The determinism hash of the fixed run (
0x5946C7CB09C6EEE7) does not move. The one pin that does is the Instant Action economy digest ofBuildStepsTests:E19E5729D4A8EE5Ato4DCABA51A693C7D7, because the seed's imported staff now carry their saved sprite variant in the park save (the Full Simulation digestD2F1349AA44D6545has no staff and is unchanged).
The park fence, the cells a demolition leaves and the queue validator follow tp.exe (October 27, 2026)#
Fidelity round 9, package H. The fence, Buy Land, the demolition's cell writes, the net worth's structure cells and the queue tool's cell validator now run the executable's own routines or replay its answers, checked in the x86 oracle (docs/reverse/ORACLE.md, findings X35 and X36).
PATH-007 (narrowed, not retired).
FenceEngineports the click handler's mode 0x19 (0x524960) with the line walker0x53AAC0and step0x5370E0, the ring walk0x52BA50, the mark0x531040, the fill0x5311C0(the ring walk by direction bit and the stride-2 scan), the set-up0x5323F0and Buy Land's purchase0x5327E0. The fence is a layer of structure records (type, links, owner, direction), saved as before by its ring. The fourrestart.INTSsaves of the original are reproduced cell for cell, and 20 oracle cases (shapes, the six-click fence, water and no-terrain cells, merging purchases) are replayed. Found: a purchase in front of the gate that leaves the old fence outside the walk's ring makes the original's fill read past the map's edge (a crash at0x53A536) and a post-less cell makes the walk loop forever; OpenTPW refuses such a purchase and charges nothing, awaiting the owner's decision. The six-click fence (bit 0x400 of0x79D86C) is laid by the engine, but the source of the bit is not traced.ECON-026 (narrowed).
0x5363F0follows an extension to its parent and the walk types the three cells beside each post as its extensions, so a hoarding post counts a 2 x 2 block of 50 points (each cell by its own flag 0x40), not one cell; the same count feeds the big park ticket. The cell points of the Easymode save's own cells and of the 11 corpus saves equal the oracle's0x4C7DB0exactly.ECON-050 (narrowed).
DemolishFootprintis the demolition0x527EE0on the cells: pass 1 frees the NoModify path cell in front of an entrance or exit (unless two entrance or exit cells link to it or the MAP marks an initial path), pass 2 runs the cell remover0x5367A0per type (entrance and exit neighbours are unlinked now, the whole flag word, owner and links are zero, a type-3 cell refunds while its owner cell is not empty). A torn-down queue cell keeps no flag word either.QUEUE-012 (narrowed).
QueueCellValidatoris the decision order of0x535670, replayed on all 14,256 rows of the oracle's answers; the queue and the path tool refuse a hoarding post and its extension cells on owned land as well (the validator reads the structure record for both modes).Determinism: no pin moved (the shipped fences give the old fill model's cells, and a refused purchase writes nothing). New fields: none; old saves load.
Review follow-up. All 14,256 validator rows are replayed; the oracle runs the pocket-grid routine
0x532960for real (two pocket golden cases added, no mismatch); the six-click bit is traced (no instruction sets it; only a dialog.tcf settings blob could); the link-back owner test is0x539220's; the demolition's queue refund is the native credit of the ride found before removal; the layer derived from the ring equals the live layer in every golden case. Still open and reported: laying a path or queue over a straight track tile, the ECON-026 station overlap and track records on purchase edges in the oracle.
Track edit and station as tp.exe clears and samples them (October 27, 2026)#
Package R9-F. The kart and water track tools clear, cut and replay cells with the original's clear op, the vehicles sample the owner object of each probe, the station placement lays its exit and entry tiles as the original's op list does, and the edit hover is drawn as the original draws it. TRACK-001, 004, 005, 007 and 018 are retired.
TRACK-004 retired:
ClearCellis the full port of0x53B280(pair clear0x522730+ link0x522850, forced, pass (-1, -1) and line-step forms, the exit tail with its non-track branch, replay flag0x81B46C).TRACK-007 retired: the demolition and Backspace replay the corner stacks of
0x530830and0x530B70line by line (0x52FE50, mode0x35) with the station repair after every pop and the last-line flag (0x530005,0x52FF73). A junction a chain passes keeps its other arms, a full crossing takes the line step's rule. Backspace clears the station tiles a line covers, and a stack that ends at the exit keeps it twice (the zero-length line is taken back with the step (0, 0)).The exit globals:
0x7639E0/E4is the exit tile for the line tool, Backspace and the demolition and the ride's anchor cell during the edit tool's hover (0x527A17), so a cut can clear the exit tile and its repair does nothing; the repair0x52FC80fixes that tile (not the first station tile) and has its corner flag tail (0x52FD94). The undo command carries the last-line flag (UndoTrackLineCommand, one more byte on the wire; the golden pins are updated).TRACK-018 retired: the tool stack holds 1025 points (
0x52FBF0) and a full stack lets the tool go on (0x5252D9); the hover marks the pick (m_break), the cut path (m_erase) and a refused tile (red) with one 20-unit face per tile at the greatest raise of its four cells (0x536CA0) with the walls of0x5370E0, its faces glide behind the cursor (0x53C3F0,0x53DF30) and every red face blinks (hidden two frames, shown seven). BLUEPRINT-003 is narrowed to the other track symbols and the arrow models.TRACK-001 retired: a cell without a piece (no track, a station tile, an add-on tile) is sampled through its owner object (
0x452A60) and the vehicle keeps its height without one. The Halloween and space stations read their faces (node translations baked), the directed edge gate runs in host float (equal to the x87 sequence at control word0x7Ffor normal-range values), and the instance mesh (mode 4) is the faces of the ground node the type loader's search chose (0x46A5A0, the existingObjectHoardingGeometry.SelectGroundNode).TRACK-005 retired: the placement runs the station line, then 0x87, the type op, 0x80, 0x82, 0x83, 0x85, 0x86, 0x81 on the exit and on the entry. The exit's arms depend on its type op; the entry's arm and the first station tile's arm back are written whatever the entry's type op answered; the tiles are free but refused while the cash is below zero; op 0x87 demolishes the objects standing on their cells.
Determinism pins are unchanged. No save format change; the undo's last-line flag is a trailing byte written only when set, so older command logs decode unchanged.
Weather and particles as tp.exe projects them (October 27, 2026)#
Package R9-E. The rain, snow and lightning now reach the screen the way the original's code puts them there, and five register entries are closed or narrowed.
AUDIO-900 retired: the rain's 0.3 parallax factor belongs to the camera-mode bits
0x16of0x790AB0: the terrain camcorder (bit 2, OpenTPW's free walk) and the ride follow (bit 4); no instruction sets0x10.AUDIO-901 retired: rain and snow are the original's clip vertices (
0x57F1F0,0x57F490), drawn from their screen positionx / w,y / wwith the display aspect word, so sizes and spread match at any window size (about half the former flake size). The depth value is written in the scene's depth space.AUDIO-902 retired: the bolt ribbon is the emitter
0x57DD10(mitred joins, clip-space width1.3 / (depth + 1), the projection0x578D20, the quad order); the walk's emit calls were checked against the original's walk on four seeds.AUDIO-904 retired (user decision after the measurements, docs/AUDIO.md "Near-plane measurements"): the original near-plane behaviour is the only one;
[EXT:weather-near-plane]and theOPENTPW_WEATHER_NEARswitch are gone, the weather depth stays in the scene's depth space.Depth split and far argument: the original's depth value has a linear range below a clip-z threshold that follows the far argument D of the view's projection setup (
0x583220). D is the park overview's farthest corner distance (0x56BB00, no upper limit), the eye views' greatest clip z of the visible cell boxes, at least 100 (0x56EA90with0x56E7E0and0x561BC0,TerrainEyeViewFar), and the lobby's own span selection with its ISLANDFOV; rain streaks beyond the far plane are clipped at z = w and the weather vertices go to the GPU as perspective-correct clip-space positions.PTCL-904 retired: nothing rescales a frame's float +8, so textured quads are the frame's aspect times the display's width over its height wide; screen-space quads follow the original's factors.
PTCL-900 narrowed: the refresh gate is read (instance registered in the scene, table with a matrix key). PTCL-909 narrowed: the particle pass lies in the only scene view before the advisor's model; the HUD windows' place is not read.
Reference numbers for the tests come from an offline emulation of tp.exe's own instructions (analysis scripts outside the repository, no original bytes committed); the game was never launched. The determinism hash is unchanged (presentation only, no simulation stream is drawn).
Preserve the staff cursor's picked height (October 27, 2026)#
The staff hire/carry presentation now keeps the cursor pick's full engine-space terrain-or-model point, instead of reducing it to cell coordinates and sampling terrain height again, so over a ride model the person in hand no longer drops to the ground. tp.exe's tool frame (0x46C480) subtracts the constant -5.0 (0x6FE974) from the height component of the picker point (0x7A1C90), i.e. lifts it 5 height units; the sprite anchor adds exactly that along the engine height axis (ToEngine maps model height to engine Z at ModelScale, the same axis and scale as GuestRenderer.CellToEngine). Cell mapping, hover validity, drop rules, pointer admission and the cell-only terrain fallback are unchanged.
Synthetic CPU regressions cover elevated tower hits in hire and carry, model-to-terrain refresh, a miss and cancel, and stale-height clearing on cell-only updates and tool replacement. GUEST-021 is narrowed to the open question of where the original's cursor and sprite anchor land on the screen (PC video 81:30).
State-20 guest placeholder regression (October 27, 2026)#
Extended the synthetic, media-free OriginalGuestPlaceholderImportTests from #803 to cover original state 20 (WalkingToVehicle), which the current importer rejects alongside states 11–17. The added parameterized case keeps the state-6 positive control, foreign-model protection, rejection diagnostic and unchanged guest RNG assertion. The mixed fixture now includes a state-20 placeholder in a deliberately non-numeric used-list order. Both exercise pool snapshot restoration, the complete independent free-list oracle and subsequent allocations crossing the reserved IDs.
This is new state coverage, not a reimplementation of #803 or a fixture copied from the private Fantasy saves. SAVE-THINGS.md already records Fantasy guest 39 in state 20; this change documents the corresponding unsupported-state boundary. No runtime importer, RNG behavior or state acceptance changes.
The arrival-vehicle integration gate remains: importing a live state-20 walk needs restored vehicle identities and script continuation as well as validated saved destination and continuation behavior. The no-cached/current-vehicle scheduler slice does not provide that. Queue, rider and guard links remain separate missing restoration work. SAVE-002 and proposal #536 remain open.
Static source/fixture and patch checks passed. C# compilation and execution were not run because this preparation environment has no dotnet; the focused test class and repository checks remain pending. No original media or executable was read or run, and no original-runtime parity is claimed.
Title caches recover their budgets on cache-hit frames (October 27, 2026)#
The title bitmap cache retries its entry and pixel-byte budgets as each frame starts, not only when composing a new title. Temporary overflow still keeps every title used in the current or previous frame; once older entries can be dropped, repeated draws of an existing title no longer prevent obsolete entries from leaving the CPU cache. The newest bitmap remains cached even if it alone exceeds the byte budget.
Each UI renderer also retires evicted title textures at frame start, independently of new uploads or whether any titles are drawn. GPU deletion remains deferred through the renderer's existing deletion queue. The renderers start before the CPU cache's frame advances, so an eviction is retired at the next renderer frame start. Synthetic regressions cover byte and entry overflow, previous-frame protection, hit reuse and GPU-cache retirement scheduling; they require no original game files or graphics device. Native GPU disposal and live visual acceptance are not established by these headless tests.
The land outside the park is darker, as in the original (October 27, 2026)#
tp.exe sets bit 0x400 of a terrain cell's landscape word for unowned land outside the entrance area (0x450D10), and the terrain draw halves the vertex colour of such a cell's corners (0x56F670) unless the LIGHTING option is 0 (0x44DC28). OpenTPW drew all land at full brightness.
Ported for static and procedural terrain, the static path cells and the cells outside the procedural rectangle included. The map cell is clamped to the map as in the original, the live cell flags are read (a land purchase brightens the bought cells), and
test.shaderrounds each lighting channel to a level, clamps it to 255 and halves it like the original'sshr 1; and 0x7F7F7F(LandDimFlag, web shader regenerated).Presentation only. The cell map, the economy, saves and co-op are untouched; no label.
LIGHTING 0. It turns the dimming off (
0x44DC36) and draws the terrain unlit:0x574530(test of bit0x800at0x57453A) copies one white constant,0xFFFFFFFF, into every terrain colour and skips the light sum, sotest.shadershades such a corner with 1 (TerrainUnlitFlag). The evening extension still darkens that white on top. Without original detail data the dimming and lighting stay on, as the original's zeroed render flags have it.
Browser game data from an archive.org CD image, an address or a local image (October 27, 2026)#
The web start screen no longer asks for a folder first. It leads with Load from archive.org, one click, which streams the CD image of the third-party archive.org item tpworld_202508 once, keeps only the game's data files (935 files, 322 MB) in the browser's origin-private store with the usual manifest, and starts the game; the next visit shows Play and fetches nothing. Alternatives sit below it: an address of a .zip, .iso or .bin, a local .iso, .bin (+ .cue) or .zip (chosen or dropped), and the existing game folder. Nothing is fetched or read before a click. OpenTPW still ships no game data, and only data files are read: the item's other files are never requested or read, and no executable is read.
The pipeline (opentpw-cdimage.js, no dependencies) streams bytes, converts raw 2352-byte Mode 1 or Mode 2 sectors to 2048-byte user data, reads the ISO 9660 (Joliet) tree from the first sectors, and hands each wanted file to the store when its last sector has passed, so memory holds about one file at a time (at most 64 MB each, with a 128 MB budget for overlapping ones), plus the 32 MB directory head while it is read, and nothing is stored whole. A ZIP is read through its central directory when the server answers ranges (other members are never requested), else parsed in the stream and inflated with DecompressionStream('deflate-raw'). Progress, cancel, a storage-quota check, navigator.storage.persist(), restart that skips files already kept, and separate messages for network/CORS, HTTP, quota and image problems are in the page.
Research on the real item (documented in docs/WEB.md): the ZIP is deflate, the image a single MODE1/2352 track of 303,008 sectors, the disc plain ISO 9660 + Joliet with all four languages as ordinary folders (no installer archives to unpack for game data), and 843 raw sectors in front of the first file are copy-protection data without sync, outside every file. The item's ZIP download redirects to a host that answers ranges but sends no CORS header, so a page cannot read it; the per-member address streams the BIN with CORS but ignores Range. The page uses the latter.
The OpenTPW server's content security policy for the page now allows https: in connect-src (and nothing else changes: scripts stay the page's own), so a player's chosen data address works on a hosted page; pinned by ServesTheBrowserGameBesideTheApi.
Verification: 31 synthetic-fixture unit tests (tools/test_web_cdimage.mjs, in CI; ZIP, sectors, ISO, ranges, errors, cancel). With the real ZIP all 935 kept files are byte-identical (SHA-256) to an existing copy of the same CD. tools/web-archive-smoke.mjs loads it in muted headless Chrome through a ranged ZIP, an unranged ZIP, the file chooser, and a raw BIN with and without ranges (6 to 9 s each), enters the Jungle park from the kept files and starts a second visit from Play with no request to the image server; it also checks that the cross-origin failure case gives the CORS message, and --probe-archive streamed the first 15 MB of the real archive.org endpoint in the page and cancelled. Open: only Chrome was run end to end; one full real download through the page (about 713 MB, about 100 s) was not repeated beyond the probe, so the progress numbers of the default source rest on the measured 7 MB/s and the item's known size.
Guests build roller coasters in a shared park (October 26, 2026)#
A guest the host lets build can now build and edit a roller coaster in a shared park, one player per coaster at a time (COOP.md, "A guest's coaster tool"; [EXT:online-coop-claims], [EXT:online-coop-commands]). This is C3c-2, after the guests' kart and water track tools.
The coaster tool works through the coaster's claim. The track button and a placed coaster ask the host for the coaster's claim and then for the tool, and the panel opens once both answers are back. The host's own coaster tool claims its coaster too, so two players never edit one coaster.
Clicks, Backspace, stack swaps and cuts go to the host one at a time. While one waits the panel takes no other click or button and asks the player to wait; its answer moves the tool on as the host's click does, and the click that completes the coaster hands over to the queue tool. A press made while that completion waits, including one first seen in the frame that takes its answer, gives the new queue tool no release click; a fresh click builds normally.
Drags follow the host's record. A pylon's drag starts once its press is back, then sends its latest height, angle or cell at most five times a second, and its release settles the money as the host's does. The coaster's commands and the pool tool's share one small budget, so neither floods the host.
No coaster is left closed. When a guest leaves, idles for five minutes, asks for the park again or the session ends, its coaster leaves the tool: a held pylon goes back, the coaster opens again, and a capture for a resync no longer waits on the guest's own drag.
Guests place coasters and track add-ons. A placed coaster opens the coaster tool through its claim, and a ride's upgrade list lets a guest place a jump, tunnel or teleport on its own kart or water ride's track.
One tool at a time. Starting the coaster tool now ends any other tool, and starting a track tool ends the coaster tool, in a game of one as well, as the original has one tool mode.
Guest building follow-ups: claimed queues, slide towers and the session log's replay (October 26, 2026)#
These follow up on a guest's building in a shared park (C3b; COOP.md, "Building by every player"; [EXT:online-coop-commands], [EXT:online-coop-permissions]).
Claimed rides' queues. A guest no longer edits, lays, removes or backtracks the queue of a coaster or a track ride's station, draws a line across it, places an object over it, or cuts it off from its path. Nor does a guest's placement demolish an object the guest may not remove. Those rides' edits need claims, which come later, so their queues stay the host's until then.
Slide towers. A guest no longer sells, removes, clears or moves a pool slide tower, since a slide belongs to the pool tools, as bridges and pool water do.
The session log's replay. A session's own log now replays under the session's rights, and refuses to replay without them. A guest's command the session refused stays refused in the replay, so its checkpoints match.
The object window's erase button. It is now off while a guest's sale of that object waits for the host.
The attractions list. It drops a check that could never fire: the list never holds a fixed item.
A guest buys land, clears, sells and edits queues in the shared park (October 26, 2026)#
A granted guest in a shared park can now buy land, clear an area, remove path and queue cells, use Backspace, sell objects and edit a ride's queue (COOP.md, "Building by every player"; [EXT:online-coop-commands], [EXT:online-coop-permissions]). This is C3b-1, after the first tools of C3a-2.
The area clear. It is now one command for every player: the whole rectangle goes to the host as one request. The park ends up as it did when each object and path cell was cleared on its own. A guest's clear leaves standing what it may not remove, such as a coaster's or track ride's station, and still clears the paths around it.
Land, the area clear and the sell buttons end at once, as the host's do, so a guest's request goes out and the guest carries on. A refused purchase says that the land cannot be bought.
The sell buttons take no second sale of an object while its first waits. The attractions list no longer offers a fixed item for sale, just as the object window does not.
The remove click now takes the path or queue cell under it when no object stands there.
Backspace takes a path or queue cell back. A held key sends one request at a time.
The queue's edit. A guest's queue click starts the queue tool once the edit comes back, from the queue exactly as the host's click would have read it. Escape, a right click or another tool leaves the wait. If a later change sold the ride or changed its queue in the meantime, no tool starts.
Still the host's for now: pools, Move, tracks and coasters (the next slices of C3), staff and money (C4), and undo (C5).
Guest building follow-ups: the Move tool across a resync, and fewer needless refusals (October 26, 2026)#
These follow up on a guest's building in a shared park (C3b; COOP.md, "Building by every player"; [EXT:online-coop-commands], [EXT:online-coop-permissions]).
The Move tool across a resync. A guest whose park was resynced while carrying an object keeps its Move tool: the new park arms it again from the carry its snapshot holds, at the same angle. Before, the carry was ended and the object stayed sold. A placement that still waited for the host waits again in the new park and finishes the tool as it would have without the resync. When the host had already taken it into the new park's snapshot, whose result the new park cannot see, the tool comes back only if Ctrl at the click would have kept it whatever the result was.
A Move tool without its carry. When the host releases a guest's carry while its Move tool is armed (for example after a reconnect under a new member id), the guest's tool now disarms. Before, every placement of it was refused until Escape.
A host link that lost its session's state for a moment no longer counts every seat as left, so no guest loses its build grant or its carry for it.
Claimed queues refuse less. A placement next to the path cell a claimed ride's queue joins may now lay or link path there; only a queue ride's entrance, whose first queue cell would replace that path, is still refused. A queue line that only ends on that path cell, which links to it, is allowed too.
The object window turns its erase and Move buttons off for a guest on a claimed station, whose sale or move the host would refuse.
Tidying: the buy item of a pick-up goes with its dropped wait; the stray-carry throttle lives on the session; doc references and a stale known limit are fixed.
A guest moves objects in the shared park (October 26, 2026)#
A granted guest in a shared park can now use the Move tool on an object (COOP.md, "Building by every player"; [EXT:online-coop-commands], [EXT:online-coop-permissions]). This is C3b-2.
The Move button. It sends the pick-up to the host. Once it comes back, the Move tool arms with the object's type at its angle, as for the host. Escape, a right click or another tool leaves the wait. The object then stays sold, as a cancelled Move leaves it for the host.
Placements and the tool's end. A placement waits as any guest placement does, and Ctrl keeps the tool for another. The tool's end goes to the host, even when the host has taken the guest's building rights back meanwhile.
One pick-up at a time. A guest has one pick-up open at a time.
Carries without a tool. A guest whose type is carried without its tool (a pick-up left while it waited, an end the host could not take, a resync) ends that carry by itself.
Departures. When a guest leaves, or another player takes its seat while the host was away, the host releases what that seat carried and takes its grant back before the seat's next player can act.
No claim needed. Moving needs no claim: the pick-up is one step, after which the object is gone, so a second pick-up or a sale of it finds nothing.
A guest builds pools in the shared park (October 26, 2026)#
A granted guest in a shared park can now use the pools: paint, erase and the lazy river, bridges, and slide towers with their slides (COOP.md, "A guest's pools"; [EXT:online-coop-commands], [EXT:online-coop-permissions]). This is C3b-3, after the Move tool of C3b-2.
A guest's strokes go in batches. One request per cell would outrun the session's limits, so the cells a stroke crosses go to the host a batch at a time. Each cell is written as the host's own drag over it would write it. Until a batch is back, its cells show as the stroke's ghost.
The host's tool is unchanged: it still paints as the pointer moves.
A stroke reports once it is back. The lay sound plays, and the first refusal is said once, as at the host's release. The done message comes when the guest's own stroke laid the slide's splash.
At most four pool requests of a guest are open at once. The cells waiting to go form one queue for all of a guest's strokes. When the queue is full, the guest is asked to wait.
Bridges, slides and Backspace. A bridge click is a request. In the slide mode, Backspace takes back the last piece of a slide still being laid, after the pieces still on their way. Backspace with no tool on takes a bridge or a pool cell, and a refusal says why.
Slide towers are now the guest's to place, sell, clear and move, and their slide goes with them, refunded.
Still the host's: undoing a whole stroke (shared undo comes later), a wave machine's settings, and tracks and coasters.
Headless parks skip the pool water. A park with no graphics device, such as the tests' headless parks, no longer draws pool water.
A guest's windows no longer complain about clicks nobody made (October 26, 2026)#
In a shared park, a guest who only looked at a ride, a shop, the research lab or the loans window was told "Only the host can do that for now." when the window closed or opened, although the player had changed nothing (COOP.md, "Nothing the player did not ask for"; [EXT:online-coop-commands]).
The object window sends a guest's settings only when the player changed one, and only the commands for what changed (a shop's quality without its price, for example). The original applies every value on every close; for a guest that was a request the host's rules refuse. A typed price or "apply to all" is sent when clicked, and not a second time when the window closes.
The research window's workload knob shows the lab's workload on a guest's screen without writing it back, also when the lab's staff changes.
The loans window sends no offer refresh when a guest opens it or clicks a tab. The list shows the host's offers.
A change the guest did make is still sent, and its refusal is still said.
Guests build kart and water ride tracks in a shared park (October 26, 2026)#
A guest the host lets build can now lay and edit the track of a kart or water ride in a shared park, one player per ride at a time (COOP.md, "A guest's track tools"; [EXT:online-coop-claims]). This is C3c-1b, after the rides' claims; a guest's coaster tool comes next.
The track button and a placed ride claim through the host. A guest's track tool asks the host for the ride's claim first and starts once the answer is back: a closed circuit opens the edit tool, an open one the line tool from the end of its track. Escape, a right click or another tool cancels the wait.
Guests place kart and water rides. Their track tool follows the placement through the claim, and a ride with a queue hands over to the queue tool once its circuit is closed, as the host's does.
Lines, the cut and Backspace go to the host one at a time. The clicked line or cut stays as the ghost until its outcome, and the tool goes on from there: a closed circuit ends it, follows the queue, or keeps the line tool when the click held exactly Ctrl. Under its claim a guest's Backspace takes its last line back.
A claim the host lets go ends the tool. When the host frees a guest's claim (the guest was away for 30 seconds, or idle on the ride for five minutes), the guest's track tool ends with "You are no longer editing this ride.", in every language. A line refused for that reason says the same.
Taking a guest's building back frees its ride. When the host takes a guest's grant back, the guest's claim goes with it at once, so the ride is open to the others again without waiting for the five-minute lease.
Fewer needless refusals around a claimed ride. Taking back a path line that only crossed the path cell a claimed queue joins is no longer refused, and the host's track tool says "Another player is editing this ride" only when that is why its claim was refused.
Still the host's: coasters and track add-ons.
Claims keep a ride to the player editing its track (October 26, 2026)#
In a shared park, a kart or water ride's track is now edited by one player at a time (COOP.md, "Claims"; [EXT:online-coop-claims]). This is C3c-1, the first part of C3c; a guest's own track tool comes next.
A track tool claims its ride. When the host's track tool starts on a kart or water ride, it takes the ride's claim. If another player already holds that claim, no tool starts, and the host is told "Another player is editing this ride."
A claim keeps the ride from everyone else, the host included. While it lasts, nobody else can lay or cut its track, sell, remove, move or demolish the ride, put an add-on on it, or edit its queue. Each such refusal gives the same reason, in every language. Opening, closing, settings and prices are not affected.
No tool event lets a claim go. Each machine checks once per frame whether it holds the claim of a ride its track tool is not on, and lets it go. So every way of leaving the tool frees the ride, and turning the edit tool into the line tool on the same ride keeps it.
The host frees a guest's claim when the guest leaves, after it has been away for 30 seconds, and after five minutes without a command of its own on that ride. The check also runs while paused, and in a late frame.
A claim moves with its player. Claiming another ride lets go of the first, so each player holds one claim at most.
Claims are session state. A late joiner receives them, the session's checks cover them, and saves never hold them.
Track rides are ordinary rides while nobody claims them. A guest can sell or clear an unclaimed kart or water ride, or edit its queue. A guest can now also place bumper rides, whose queue tool follows.
Still the host's: a guest's track tool (next), coasters and track add-ons.
Two follow-ups to the guests' building. A guest's Backspace in the slide mode that the host's rights refused for want of a grant now says so; only an undo that met a finished slide stays quiet. What a refusal says now follows the reason the rights gave when they refused it, so a grant given or taken back since does not change it. And the exit of an object without a queue, which lays no cell and takes no queue's link off, no longer makes a placement beside a claimed queue a refusal.
Rights per seat, and one release for a seat that leaves (October 26, 2026)#
A shared park now keeps each guest's rights as five separate switches (COOP.md, "Money and rights (C4)"; [EXT:online-coop-permissions], [EXT:online-coop-speed]). This is C4a, the first part of C4 (money and permissions). The switches are building, attractions, staff, research and finance. C4a still offers only the building switch; the windows that let a guest use the others come in C4b (attractions, research, finance) and C4c (staff).
Every command has one class. The rights sort each kind of command into exactly one class: a guest's building, every player's own cleanup, one of the four management rights, the host's tools, the host's alone, or refused in a session. A test pins each class's kinds.
The host's management stays the host's. The host can still open and close a ride a guest is editing, as in C3. A guest cannot manage anything yet: no management right can be given until its window waits for the host's answer.
One reducer, two commands. A new command sets a seat's rights. The C3 build switch flips only the building bit through the same code, so old session logs replay unchanged. A hand-made command that gives a right this build does not offer is refused.
Taking building back lets go of the guest's ride claim in the same record, whichever command took it back.
One release frees a seat. When a guest leaves, one record takes its rights, its carried object and its ride claims back. The guest who next takes the seat starts with nothing.
The host's end releases every guest in its own log. These records come before the log's last checkpoint, so the host's log replays to exactly the park the host keeps playing. A coaster a guest was editing leaves the tool that way too.
New formats. A late joiner now receives every seat's rights and the pending hires seat by seat (join state version 5). The session's checks cover them (digest version 3). Until C4c only the host can have a pending hire or carry an employee, and a late joiner's park refuses anything else, as it refuses a hire whose candidate its pool does not hold.
Speed is the host's. A guest's speed buttons are drawn greyed out but still react to a click, and they show the host's speed. Every speed input from a guest says that only the host can do that: the buttons, the numpad time keys and the pause key.
A session's log ends where the park ends. A command log's last checkpoint now always shows the park when the log was taken, also when commands followed the last tick's own checkpoint, so the host's log replays exactly to its end.
Economy state and tickets follow tp.exe (October 26, 2026)#
Fidelity round 9, package R9-C. It read the ride state word, the player ticket account, the queue and exit tests, the constructor's track word and the x87 control word in tp.exe, and ported what they say.
ECON-023, one ride state word. The economy record and the visitor bridge now share one
RideStateWord(+0x19C: 0 idle, 1 broken down, 4 condemned). The ride update writes it when it reads VAR_BROKEN in state 0 (0x4E14E0, state 4 for a life gauge byte of 0), the repair and every opener writeSetState(0)(OriginalObjectRuntime.Open:0x4DE487,0x4DF438,0x4DFCB8,0x4E003C,0x4E01B6), and the economy, the guests, the object window and the opening guard read it. The guard reads the word, not VAR_BROKEN (0x4DF290), and the park points counts-test reads the word too (0x4DD920). The saved import state is kept as saved. The park save holds the word as an optional field; an older save derives it from the broken-down flag and the life gauge. The level publishes the entry into state 1 to the economy once, as before. State 2 (a bought upgrade) is still read from the pending level and state 3 from the type, so ECON-023 stays narrowed; the headless breakdown stays[EXT:headless-economy-breakdown].UI-051, the ticket account. While a park is part of its player's progress, and in Instant Action, the HUD counter and the purchase check read the player's earned tickets less the spent count (
0x5AF5D0), and a ticket purchase adds its cost to the ledger's spent count and records the item in the player's bought set (0x4D4AD0->0x5AF740,0x5AF780; the account is skipped only in game type 1, the online visit,0xFB3B7C). The older purchases of a park saved before enter the ledger once, by identity, never twice; one the account cannot afford stays the park's own record, so its next copy is paid in cash. The sandbox (no player file), a co-op session and a read-only visit count the park's own tickets; UI-051 stays narrowed to those.ECON-049, the zero front and the exit test. A queue ride whose entry has no cardinal link bit has no front, and the opening guard and the object window read it as unconnected (
0x4DE040,0x4DE130,0x4DE4A0). The object window shows EXIT NOT CONNECTED from the exit test (0x4DE5A0,0x485F60): the exit cell's link byte, the cell in front of it and the edge test0x4D8750in the three other directions. Untyped exits and entrances keep the permissive answer. The sandbox smoke's track rides are placed with their access cells and their queue is ended on a path, as a player does, instead of relying on the permissive answer.ARRIVAL-003 retired. The attraction constructor stores 1 in the track word
+0x2C(0x4DB0DF) for every ride, and only a track edit writes it: the line tool's walk (0x524D1B,0x52694F,0x526BE1,0x526F13) and its clears (0x5251B8,0x5257FB). The ride's placement walks nothing (0x529E10), so OpenTPW's placement walk now builds the station's sections without writing the word: BUMP 5 and the park points counts-test read 1 after the placement, and the controller saves the word as never written. The tool the placement starts is the line tool (0x52A050); the track button reads the word (0x5267F2) and opens the edit tool on a ride no edit has walked.[EXT:track-placement-walk]keeps only the station's sections.ECON-059, narrowed. The economy runs on one thread (the thread starters,
_beginthread0x67E050from0x5C8B7C(the helper0x5C8B70, called from0x5D1C04,0x5D219Eand0x5D22F0),0x66EFE8,0x6727DA,0x6B6102,0x6B9F0C,0x6BA362and0x6D2FCA, and_beginthreadex0x67F780from0x5FBC4Eand0x632639, lie in library code), whose control word is0x7Fafter the shipped D3DIMCreateDevice(DDSCL_FPUSETUPat0x563914and0x563B7Alets it). The renderer0x576EC0restores the word; bit 1 of0x8BD508(the extended-precision restore0x591250) is set by no writer (initial value0x3000141at0x583555). The goods cost keeps its single-precision steps and needs no oracle target on that path. The software renderer path (0x8BD524= 4,0x44DD50..0x44DDE9) creates no D3DIM device and nothing in tp.exe changes the C runtime's 53 bits there, so ECON-059 stays open for it.SAVE-007, narrowed to unknown projects. The 11 corpus labs are pinned (projects, started and researched counts, effort split, work load, current projects, highest groups and the object controls' agreement). A known saved current project is kept as saved, offered by the picker now or not, as the loader reads it back (
0x504760;ParkResearch.SelectAsSaved, also through the park save). Projects of objects the archives lack, and current project identities absent from their category's reconstructed table, are still dropped and reported. Those cases occur in none of the pinned labs; original continuation evidence or an explicit supported-save scope decision is still required, so the ordinary corpus does not retire that residual.Determinism. The pinned fixed-run hashes do not move. Co-op. The command shapes are unchanged; a shared park keeps spending its own tickets, and a command log that holds a purchase paid from the account replays only with the same account (docs/COOP.md).
Tests.
RideStateWordTests,RideStateRulesTests(the saved word, a condemned ride, an older save),PlayerTicketWalletTests(the counter with global, local and secret tickets and a moved global ticket, the spend, the save and load, the older park, a shared park),ExitConnectedTests,TypedQueueFrontTests(the zero front is unconnected),BumpControllerTests(the track word),OriginalSaveImportCorpusTests.TheElevenCorpusLabsArePinned.
Still open:
The stored states 2 and 3 of the ride state word, and the upgrade purchase overwriting a broken state (
0x4E0050) (ECON-023).The sandbox's and a co-op session's tickets, which stay the park's own (UI-051).
The entrance cells' types and link bytes on untyped geometry (ECON-049).
Unknown research object/project identities absent from the reconstructed lab (SAVE-007); known but currently unoffered cursors are already preserved.
The Jungle river and waterfall and the lobby sea scroll (October 26, 2026)#
tp.exe plays the terrain's base clip (AnimID 5, the letter M) every rendered frame: the lobby's Basem1.MD2 scrolls the two sea meshes (200 ticks, one texture repeat towards -U and -V), and the Jungle terrain's basem.MD2 scrolls the river and the waterfall (100 ticks, +1 U per cycle, eleven UV tracks on surface13 to surface17, surface22, surface23, surface25 and surface27, falls02 and Object12). A park runs it through a render callback (0x54e2b0 registered by the park load, which ends in 0x44e510 → 0x473c70), on the game's scaled clock, so the water stands still while the park is paused and follows the game speed. OpenTPW did neither; both now play, through the existing ObjectAnimator (byte-exact decoder and timing).
LobbyScene draws the lobby terrain as an animated model. A park's scrolled meshes are drawn as models of their own with dynamic vertices by OriginalTerrain, driven by the new TerrainUvAnimator on the SceneClock (presentation only; the other three themes have no terrain clip). MD2-MODELS.md ("Terrain clips") and COMPATIBILITY.md ("Animated terrain water") hold the trace.
TerrainUvAnimationTests pins both clips (tracks, nodes, corner counts, ticks, the scroll per cycle), the loop, the park meshes' coordinates moving, standing still while paused and following the speed, and a synthetic clip of the same shape; the front-end smoke requires the sea clip to be playing.
Object floors: the skirt, the edge conform, opaque skirt slots, holes, the composite and the depth compare (October 26, 2026)#
Issue 829 (ground z-fighting under rides and shops), package F steps 1 to 5 and the depth compare. The original has no "ground flattening" under a placed object; what happens where a floor meets the ground was traced in tp.exe and ported. The research is in OpenTPW-notes/plans/procedural-floors-plan.md; the oracle ran the routines (X28 to X32 in ORACLE.md).
F1, the skirt read at type load (
ObjectSkirt,SkirtReading): the footprint edge mask (0x0052C420), the best axis-aligned horizontal floor face of every edge cell and the entry{orientation code, texture slot}it gives (0x0046AA10), the node's texture coordinates after the snap, per-face shift and wrap pass (0x00467310), the base record's flag 0x40 (MD2 header+0x30bit 0x08 with a ground node, or header bit 0x80). 60/57/61/59 types per theme get cells, 394/370/437/437 cells in all (88/97/106/129 flipped), Belly Bounce's ten entries areC8 E0 90 A0 88 A0 88 80 90 E0(ObjectSkirtCorpusTests). Open question F3 of the plan is settled: the instance grid+0xCCis the object's height map (.hmp), notInfo.Shapeitself, but its size must equal the shape's (0x00451640regenerates a map of another size) and every shipped map has it.F2, the edge conform at every placement (
ObjectGroundConform,ObjectFloorMath): each ground vertex the counting walk listed (ObjectHoardingGeometry.ScanGroundnow also returns the list) is moved onto the nearest terrain grid corner, whatever PROCEDURALTEXTURING says: its ground coordinates onto the grid line and its height onto that corner's height, in the instance's own copy of the node's positions (the shared model never changes) through the original's float LU inverse, in float arithmetic: the thread runs the x87 at the 24-bit word 0x7F (COAST-032). A vertex past the last corner ends its node. The cursor pick reads the copy.F3, opaque skirt slots: the slots of the floor faces in edge cells carry the runtime slot flag 0x800 and draw with state 0x1256 (
0x00581790):WorldTranslucency.OpaqueSlotFlag(vertex bit 0x08000000) keeps them out of the translucent pass andtest.shaderneither tests alpha nor blends them; the slots0x00467310clears the wrap bits of clamp.Depth compare (F8): the device set-up sets
D3DRS_ZFUNConce, to LESSEQUAL (0x0057360F); no other code writes it (the state decoder0x00567620writes ZENABLE, ZWRITEENABLE, alpha and blend only).Material.DepthComparisonports it for every depth-tested material (Theme Park Inc's no-CDGame.exesets the same LESSEQUAL at0x006D6574and0x006D5C1E, so both games take it, and the skirt and conform too: its0x66D146mask code,0x6EFCA0slot test and the conform tail at0x4CE588are the same). In captures the floors under Belly Bounce's entrance now win against the terrain they lie in, where before they striped; some pixels elsewhere change because floors and fringe art become visible.RIDES-014 retired. The "blends the ground flat (
0x467030,0x57ACE0)" clause was wrong (0x467030places and stores the footprint box,0x57ACE0builds the floor composite),+0xF0/+0xF4are the shape size, and0x00466D70run in the oracle (tpw-exe-base-height) returnsParkObjects.GetBaseHeighton all 500 synthetic inputs. The PATH-015 text that called the loader flag 1 an.hmp"ground deformation" is corrected.Presentation only. No simulation state, world hash or save field reads an object's vertices; the conform works on copies, so
DeterminismTestsare unchanged.Tests.
ObjectSkirtGoldenTests(mask, coordinate pass, skirt reader, conform and base height against the oracle's results, bit for bit,ObjectSkirtSyntheticGolden),ObjectSkirtCorpusTests,ObjectFloorCorpusTests(every listed vertex of every type at four rotations on a sloped heightfield lands on the corner; the walk ends past the edge),WorldTranslucencyTestsandTextureSlotAddressingTests(the opaque flag, the shader contract, the depth compare),ObjectFloorBaseTests(the composite against the oracle's goldens, the orientation table, the skirt words and their turns, the landscape words, the holes' types, the composites over a box, a neighbour's cell, a slot named twice),ProceduralTerrainHoleRestoreTests(a cell that stops being a hole is rebuilt once) andObjectFloorBaseCorpusTests(the orientation and the art's rows against the shipped floors, the seam, a composite for every skirt cell). Captures before and after, Jungle and Space, flat and sloped ground, procedural textures on and off.F4, no ground under a footprint (
ObjectCellHoles,OriginalCellWords): the cell refresh (0x5365D0through the chooser0x535DD0, then0x46DF50mode 8) writes a hole word (|= 0x101,&= ~0x80) into every cell of map type 2, 7, 0x1E, 4, 9, 10 or 0x15, and the terrain cell list (0x56F090) skips a cell with bit 0x01 in both texturing modes: the ground under a ride, shop or entrance is not drawn at all, the floor stands on nothing, and the painted grass of its edge art is meant to be seen so (static) or to be replaced by the composite (procedural). The earlier reading that the static ground stays under a floor was wrong. A cell back at type 0 takes its backup word with the dirty bit: the procedural terrain draws it again and rebuilds its texture once. With the procedural textures on, the skirt cells also take their word(old & 6) | orientation | 0x281and the entry's slot (0x46336Cto0x463580; the origin cell, the turn tables0x46395C,0x463994,0x4639CC), written when the object is placed and restored when it is removed.F5, the composite (
ProceduralTerrainTexturer.Compose,ObjectFloorBase): the tail of0x55F780with a floor descriptor, run in the oracle as X33 (56 of 56 cases with 32-bit and 4444 art, every orientation word, art sizes that are not multiples of N; 42 cases asProceduralTerrainComposeGolden). One composite per skirt cell and placed instance (0x57ACE0over the footprint box, so another object's skirt cell inside the box is composed too), made once at placement, no cache slots, a texture of its own without mips (E's OPEN-3), freed with the instance. The art's rows:0x590DA0turns the art over, and the data confirms it (OPEN-F1: the base orientation word puts the base pixel of the ground under 97% of the texels of every shipped floor at every turn, the turned art is transparent along edges to open ground and opaque along edges to the floor, and the transparent edge texels are the neighbouring ground's pixels). Belly Bounce, the coconut shop and every other floor now blend into the procedural ground.Cost (level load, about 57 objects, 430 to 470 composites): 0.4 to 0.5 s in the test host, mostly the second decode of the floor art (cached per type); 0.4, 1.7 and 7 MB of RGBA for N = 16, 32 and 64 as one texture per composite, no draw call is added.
Still open:
Queue models get a skirt, a composite and a hole in the original too (OPEN-F6 answered: every queue model has the base flag and one skirt entry); OpenTPW bakes them into the path layer, where a texture per queue cell does not fit (PATH-015 names it).
Path art over procedural ground (F9): the original composites a path tile into the terrain cell's own texture, point sampled at N × N; OpenTPW draws the path as a layer over the ground.
Paths are terrain cell textures, as in the original (October 26, 2026)#
OpenTPW drew a path as a separate, lifted layer over the ground. The original has no such layer: the tile refresh writes the path tile's slot, turn bits and the art flag into the terrain cell's own word (0x5365D0 → 0x450470 → 0x46DF50), and the terrain draw treats the cell like any other (issue 829, package F9).
Procedural textures on. The path tile is composited into the cell's N × N procedural texture (
0x56F090,0x572440,0x55F780: the base read turned by the word, the art point sampled, alpha blended), and the cell is built again when its tile changes (dirty bit0x100).Procedural textures off, outside the rectangle, and in the camera modes that suspend them. The path cell is a quad of its own with the tile's texture turned by the cell word; the ground leaves the cell out and nothing lifts it, and draws opaque (the terrain pass gives every record the state
0x1256, no blend or alpha test), so the tile's transparent edge texels show their painted grass.Not changed. Queue models stay separate objects; the cell map, the simulation, saves and co-op path commands are untouched (presentation only). No new approximation: PATH-015's wording now says static batches instead of the path layer.
Evidence.
PathCellWordandPathCellArtTests; 24 new composite cases of the x86 oracle (terrain_compose_golden.py, words0x180to0x38A, 128 × 128 art with a transparent border).
Patrol areas reviewed against tp.exe, with the preview colour and the locator's highlight (October 26, 2026)#
Issue 829 asked for a route for the cleaners. The original has no routes: each member patrols a rectangle, set from the employee window. The feature was already in the game; this review traced the whole flow again in tp.exe, found it matching, and added the two parts that were missing.
How a player uses it. Click a staff member, press the footprint button in the employee window ("Patrol area"), click two opposite corners on the map. Pressing the button again ("Whole park") clears the area. Escape (or a quick right click, with right click cancels on) leaves the tool without a change; a second click on a red rectangle ends it with the refusal sound and sets nothing.
Traced and found matching. The button (
0x4B5B50,0x4B5AB0), the two clicks with the corners ordered and inclusive (0x524960), the cell-id words and their save and import, the area test and the walk into the area (0x506ED0,0x506F30,0x4F9490), and the litter and toilet searches that ignore the area (0x4D7100). docs/STAFF-PLACEMENT.md describes the flow with its addresses.Preview colour. The marked border is red when every map cell of the rectangle is unowned land or a fence post, blue otherwise (
0x5234D0,0x532A50,0x535670); it was always blue. The second click on a red rectangle now ends the tool, plays the refusal cue and sets nothing (0x524A63).Highlight. The staff locator (Ctrl+S) now draws the located member's rectangle in blue while the camera follows it (
0x4B3640). This narrows UI-091.Documentation. docs/ECONOMY.md said patrol areas are not simulated; they are.
Tests.
PatrolAreaFlowTestsdrives the real path: the employee window's button, two park clicks, the stored rectangle, the clear button, the cancel, the preview cells and colour, the locator's highlight.HandymanTestsshows a handyman sweeping litter outside his area and walking back in.--debug-hudgainedpatrol:andlocate:actions for captures (Debug builds).
Verified:
The staff window, handyman, linked-access wander and new patrol tests pass; native captures of the Jungle level show the preview border while the tool runs and the highlight while the locator follows a member.
Still open:
Every park tool acts on the left press where the original acts on the release, and the pointer pick returns no cell off the grid where the original clamps; both are HUD-wide, not patrol-specific.
Pause owners, the lost park and the first day (October 26, 2026)#
Fidelity round 9, package A (ECON-030, UI-096, ADVISOR-017, PATH-017, ECON-063).
ECON-063 retired: a new park posts its first day message. tp.exe's calendar constructor
0x4F7E80stores day cache -1 and the world init0x5156A0syncs only the month and year caches, so the first update0x4F8260posts one day message (0x40F4C0) whatever the date.ParkEconomy.PendingInitialDay, which only the restart imports and own saves made before the first turn carried, is now also set for a new Theme Park World park (Theme Park Inc keeps its synchronised start). The first turn therefore rolls every object's six rings and runs the day listeners once more than before, which moves the fixed-run determinism pins (below).UI-096 narrowed to the sound side; the pause owners are exact. The game clock's freeze (
0x4092A0) has eight callers and the P key toggles the same flag: the Escape menu (and the load, save and Game Options windows opened from it,0x4A3A6C), the map window, the postcard, the generic message boxes0x47F020(27 call sites, tabulated in docs/UI.md "Pause owners"), application deactivation and the P window.ParkHud.ClockPausedandTimeScaleForfollow them; the research, finance, loans, object and visitor windows do not pause.[0xF82884], which0x47F26Ctests, is non-zero only in the front end, so every park, a logged-in player's own included, pauses on its boxes; only shared parks and read-only visits are gated off ([EXT:online-coop-lockstep]). Research refusals are real message boxes, opening the lab with no researcher is refused as in tp.exe (UIStrings.NeedToHireScientists), and the postcard composer's refusal is the alert queue's pausing box (ERRORMSG0x4E,0x4A8C89). A box that paused resumes the game when it closes, ending a P pause and its backdrop (0x47EFAC-0x47EFDA), and the P backdrop holds the focus, so no HUD shortcut or Escape works under it. Sound/crowd keep the narrowed text (0x598960,0x51C060).ADVISOR-017 retired: the advisor queue steps once per park turn.
0x59A550runs once per thing-loop turn;AutomaticAdvisor.Updatenow serves the queue after each scan call instead of once per frame, and the postcard screen joins the silent advisor stop.PATH-017 narrowed: the P window's backdrop follows the window manager's hit test. The pause backdrop captures the mouse (
0x42A760callers) and the camera takes no input under it, wherever a later screen sits.ECON-030 narrowed: the lost-park scene is ported. A bankrupt park opens the loss window
0x7472with its gate camera, Escape or a right release (after 2 s) leave into the hidden-HUD overlay (0x4A29D0), a loaded lost park restores the overlay without the camera (0x4815E0->0x48ADB0), and Escape in the overlay opens the five-entry pause menu. The banner model and its 24-step table come from the generatedLossScreenlayout (0x74FB20,0x74FC38). Open: an audit of the direct economic guards under the overlay and the exact banner draw.Co-op gate. The new pauses (message boxes, alert queue, app deactivation) and the loss scene apply only without a
CoopSessionand outside read-only visits, so single player matches tp.exe and shared parks keep their lockstep clock until the co-op owner decides.Determinism. The ECON-063 change moves every fixed-run pin; the old -> new table is in docs/DETERMINISM.md ("First day message of a new park"). The loss state round-trips in the existing save fields; old saves load unchanged.
Save form of the walk-away history. The first day's zero entry exposed that a restored all-zero walk-away history differs from the live one at the next day roll; the saved form now leaves out the oldest zero days, so the park-resume smoke matches again and no pin moves.
Findings. UI-094's "0x48A740 ride screen with a 2 s right-click delay" was a misattribution: the ride view's procedure
0x488A00leaves on a right click with RMBCancel andgui_CameraFlags & 0x16and reads no clock (RideRightClickDelaySecondsis gone); the 2000 ms guard belongs to the loss window's0x48A740. A deactivation during the loss window gives the focus to the P window, which handles only P. Theme Park Inc has nobankrupt.MD2, so its lost park keeps the old behaviour.Focus-loss pause in every park.
0x46B74Ctests[0xF82884]too, which is 0 in every park, so application deactivation pauses a logged-in player's own park;ObserveApplicationFocusdrops itsloggedIngate and keeps only offscreen runs, read-only visits and co-op ([EXT:online-coop-lockstep]).[EXT:offline-focus-pause]is narrowed to host plumbing (per-frame sampling, the stored-speed display).
Queue models drape onto the terrain as tp.exe does (October 26, 2026)#
Issue 829, package D2, the follow-up that PR 833 (kart and water track pieces) left open. The queue models of a queue cell were baked with each vertex on the planar-shortcut ground under it plus an extra lift of 0.01 cell. tp.exe puts them there with the same routine as the track pieces, and has neither.
The original's mechanism (research in tp.exe, nothing run).
0x522900loads the eight queue models with0x4629D0and the flags0x12423(bothquedead0x112423). Bit0x2becomes loader flag0x40, which ORs0x20000into every mesh node and sets header bit0x80: the drape flag of the track kits (0x10422).0x5229E0places the model with0x463060(flags0x33A) on the footprint{1, 1}(0x816D68) at yaw360 - rotation; the instance height is0x466D70over the cell's four corners (half the sum of the lowest and highest), flag 8 runs0x469940→0x469A80: each vertex of every node goes through its chain matrix, takes(landscape - instance height) + its height there, and goes back through the inverse. The landscape is the cell's triangle chosen by the cell word's bit0x4, always split, read by index arithmetic over the(cells + 1)wide array.There is no lift, no offset and no mode: the drape has the same arguments for queue models and track pieces (the modes 1 and 2 of PR 833 belong to the vehicle height sampler, which never reads a queue model). Holes and procedural cells are no input: only the corner heights and bit
0x4are read. Neighbouring cells meet at the grid lines because both read the same two corners there.The root keeps its own matrix:
0x467030(flag0x20) multiplies the yaw into the root node's matrix (0x46F650, cosine and sine from the table0x7B0968that0x4708D0fills withN = 4096, so the cosine of 90 degrees is-8.74e-8) and overwrites only its translation. The Space bends and ends carry a quarter turn in that matrix; the first version dropped it and put them a cell off and turned. Normals use the same chain.F6, the queue cell's floor. The tile writer
0x46DF50ORs0x101into the queue cell's word and the ground draw (0x56F670, static and procedural) and0x56F090skip such cells: queue cells are render holes of the ground now. Every queue model has the base flag and one skirt entry (C8/80/E0/A0, slot 0), so the base decal draws opaque and clamped with normalised coordinates in both texturing modes (static mode is the hole with the painted decal, nothing else fills it), and with the procedural textures on the placement's skirt word and0x57ACE0's composite of the art over the cell's procedural ground go into a tile of an atlas page (QueueModelFloor, #854'sObjectFloorBase.Compose).Path cells are not draped: only the chooser's class-2 result (queue cells) places a model (
0x5365D0→0x5229E0); a path cell's result only writes the landscape cell's tile (0x450470), a ground texture. OpenTPW's quads for path cells keep their small lift against depth fights.Face normals: every face of all 28 shipped queue models (74 meshes, 1536 faces) points into the face-normal block, none into the corner block, so the refresh after the drape (
0x473C30→0x473A40) changes nothing a light reads; no node has the flag0x200that would skip it.
Port.
Consolidation with PR 854:
ModelDrape.Chain/TransformareObjectFloorMath's, the oracle reading importsskirt_reading's chain, transform and float LU, and the duplicate depth-compare test is gone; the ORACLE.md finding is X34 (section 7.23).QueueModelDrape(instance height, root placement, node chains, vertex) andModelDrape(the original's chain matrix0x4702D0, point transform0x46FC00and height0x469A80in single precision and the original's operation order, the 24-bit x87 of COAST-032);OriginalTerrain.BuildQueueModelsbakes each vertex through them. The 0.01 cell lift and the planar-shortcut sampler are gone from the queue models.LandscapeSampler.SampleDrape(shared with the track pieces) now does the triangle in single precision and reads the corners by index arithmetic over the flat array (cell word atx + z * cells): a point on the far edge weighs the corner row past it 0, a point beyond the edge reads what the arithmetic reaches, as the original does.The world materials compare depth with the original's LESSEQUAL (
0x57360F, set once by the device set-up;Material.DepthComparison), which PR 854 (floors, F8) brought; the duplicate hunk and test are dropped.PATH-015 narrows to the torches' texture-frame animation and
quedead's load flag0x100000.
Verified.
x86 oracle targets
tpw-exe-model-placement(0x4708D0then0x467030, 200 inputs, bit for bit,ModelDrapeGolden.Placements) andtpw-exe-model-drape(X34,0x469940with the routines under it executed on 400 synthetic parks): agrees bit for bit at the 24-bit control word; 268 of 400 differ at 53 and 64 bits.ModelDrapeGolden.csreplays 64 of its cases inModelDrapeTestswithout the executable.QueueModelDrapeTests: instance height, vertices on the cell floor and stacked heights at all yaws, joints between neighbouring cells at all yaw pairs, and with the PC data the node flags, the face-normal claim and a hash of every queue model's draped vertices on a synthetic hillside.Captures before and after of queues on slopes in Jungle, Halloween and Space at three yaws, procedural texturing on and off:
reports/issue829/D2/(not committed). With the textures on the planks are the composite floor at the texturer's N x N (the art point sampled, as the original does), so they look softer than the painted art of the static mode.
Not here: the animation of the torches.
The queue tool, its re-evaluation and its removals follow tp.exe (October 26, 2026)#
Fidelity round 9, package B. This read the queue tool's remaining routines in tp.exe (0x536100, 0x524960, 0x52F200, 0x52F580, 0x532FC0, 0x5346D0, 0x5367A0, 0x527EE0, 0x52FE50, 0x530120, 0x4DE040, 0x4DE130, 0x4DE1F0, 0x4DE4A0, 0x4FB360, 0x501390) and ported what they showed. HEADS-008, QUEUE-014 and QUEUE-023 are retired; QUEUE-003, QUEUE-010 and QUEUE-015 are narrowed.
QUEUE-023, the re-evaluation
0x4DE1F0, runs at every caller. A placed ride with a queue is evaluated twice (inside the placement commit at0x529890, and at the click's tail at0x52537Aor the Move tool's0x5259AE), each raising the stamp counter and stamping the front cell's block. A path cell's clear beside an entrance cell with an owner word (0x5367A0at0x53694B) re-evaluates that ride on every route that clears a path cell (the bulldozer, a queue laid over a path at a placement, an@footprint cell, a coaster marker, a kart or water track tile over a path, the guest grid's queue setter), stamping the block of the back cell only when the front the selector finds is not 0. Back re-evaluates after every undo that popped a point, also when the prior corner is a path cell and the second click is suppressed (0x52FFEC). The path tool's Back passes no ride (0x40BEB3), so it re-evaluates the selected ride (0x8186ACis the UI selection0x7C2654: placement sets it at creation0x52A02E, the object windows through0x5276D0, an add-on stands for its ride0x527831, and destroying the selected object clears it0x4DD2D6; nothing is saved). The selection is each player's own, soLevel.Selectionis the client's UI state (the HUD's selected object) and the path tool'sUndoLineCommandcarries the issuer's selected ride in its ride field (-1 for none, the shape older logs have; the bytes are unchanged, the join state and the digest gain nothing). A ride's demolition runs Back in a loop (0x527FC1,0x527FD0): every pop re-evaluates the ride with the room its shrunken queue leaves, so the guests beyond it are dismissed in place with thought 13 (ids divisible by 3) before the removal message0x4FB360(QueuePaths.ClearAll; the bridges without placed cells keep the one clear after the message). The queue edit click re-evaluates whether or not the walk cleared a link (0x526118). A placement cannot connect a queue: the outside cell is cleared and typed 3 with only the link toward the entrance. The old note that the clear of a queue cell calls the re-evaluation was wrong: only the clear of a path cell does.QUEUE-010 and QUEUE-015, the clear writes no guest. The queue tool's undo no longer sets the guests on the emptied cells down on the nearest path. The re-evaluation after it dismisses by place alone (
0x501390), in place, and a guest within the room keeps its place. A guest leaving a queue (0x5004AA, the edit's dismissal, a removed ride's message0x4FB360) stays in state 6 where it stands on every placed ride, and decides from its cell by the ported wander (0x4F9490). Bridges without placed cells (the gates, the test rigs, the Theme Park Inc slice) keep the old relocation. The labelled[EXT:dev-one-click-remove]and[EXT:queue-backtrack]keep both labels and take the original's guest policy by the user's decision: the guests stay in place and the re-evaluation dismisses them.QUEUE-015, counters, the undo and demolition. The queue edit's corner walk now writes the placement counter
+0x20(1 on a corner, 0 on every other cell it visits and on the entrance cell,0x5302C2,0x5302C9), and the tool the edit click enters takes the segments of the existing queue back through the native undo (0x52FE50, mode0x34: the second click clears the line from the popped point to the new top cell by cell, so a corner whose next segment is gone has lost its second link and keeps its counter 1 - 1). A ride whose front holds no queue cell is demolished with one cell's debit, as the original counts the chain from the front whatever its type (0x527FB4).QUEUE-003, the zero front. An entry without a cardinal link bit has no front (
0x4DE040writes 0): its demolition has no count and its re-evaluation raises the counter without stamping a block (0x4DE4A0reads such a ride as unconnected, but the opening guard keeps ECON-049's permissive answer: the sandbox smoke's track rides are placed without their access cells and rely on it, so that rule is package C's). The guests' joining and scoring of such a ride still use the host's one-cell fallback.QUEUE-014, the commit. Mode 3 always has a line start (
0x52A050after a placement,0x530120after the edit click), so the tool starting at the front or back cell is the original's and no first click without a start reaches it. The native segment route now runs the commit's overwrite pass0x87: an object of a lower overwrite priority on the line is demolished before the type pass (0x53452F,0x527EE0), where such lines used to take the per-cell route.HEADS-008. A bounce rider keeps the node its slot stored when BOUNCE filled it (
0x555742: the script's+0x70plus the index). The saved form carries the nodes only when a script changed the base while riders bounced, and the canonical hash is unchanged.#755 folded in. A queue line ending on an initial path cell stays on the native route, as the validator returns 8 for a terminal path before the NoModify test (
0x535C57..0x535C99). QUEUE-012 itself stays with package H.Co-op. The entry points and the command shapes are unchanged (
EditQueueCommand,UndoLineCommand,UndoQueueSegmentCommand,QueueSegmentCommand,RemoveQueueCellCommand). The queue edit now also writes the walk's counters, and a segment over a low-priority object is aQueueSegmentCommandwhere it used to be aLayLineCommand. Old logs decode and take the same route, but their checkpoints from earlier builds mismatch, as every recorded log is guaranteed only on the build that recorded it (docs/COOP.md).Tests.
QueueRemovalCommandTests(the path tool's Back and the selection, the placement/window/removal selection, the demolition's Back loop, the EXT removals' guest policy, the stray-cell outcome, the clear writes no guest, the re-evaluation dismisses in place, the wander from the emptied cell, the front-less demolition debit),QueueSegmentReducerTests(the demolition pass, Back's re-evaluation),QueueUndoTests(the walk's counters),TypedQueueFrontTests(the zero front, the stamp),ObjectAccessCellsTests(the placement's two evaluations, the clear beside an entrance, the guest grid's and a track tile's clear routes),AccessCellRemovalTestsandQueueStandWalkTests(the production policy: the clear sets no guest down; the deadSetDownOffQueueCellsis gone),BounceRiderTests(the stored node, the save), and #755'sQueueTerrainValidationTests.
Still open:
The undo after the tool entries that run no corner walk here (a ride's placement, the ride window's button, a track's or coaster's completion) still removes the chain from the segment's first cell on without counters (QUEUE-015).
The guests' side of a zero front, imported divergent entry positions and the cache invalidation timing of
0x4DE130(QUEUE-003).The exits of a guest whose attraction is gone, and bridges without placed cells (QUEUE-010).
Self-lit materials draw full-bright: the Gift Shop chest glows again (October 26, 2026)#
Issue 829 reported that the space between the Souvenir Shop's base and its lid is darkened instead of looking like it glows. The Gift Shops of Jungle and Hallow are treasure chests whose opening shows a gold glow and a gold interior; OpenTPW lit those parts like the wood and metal around them. This traced the vertex fill of tp.exe's mesh draw (0x580530, 0x580C51), the lighting pass (0x57AA10, 0x574660, 0x5741B0), the state builder and decoder (0x581790, 0x590C40, 0x567620) and the texture-flag builder 0x5755F0 for those parts.
The parts. Jungle
giftshop.md2: the nodejt_head1(the lid and the opening; materialsb_glow2andjt_box1a, the gold interior) andjt_head03(four faces ofb_glow2). Hallowgiftshop.MD2: the nodeglow01(14 faces ofglow2),h_glow2andtreasurein the nodechest, and the threeweb2quads. The glow textures are one flat gold (green forh_glow2) with an alpha that ramps from clear to opaque; their.wctheaders carry an alpha plane with a non-zero alpha byte, so the state is 0x556 (source alpha over inverse source alpha, alpha test 0x10/255, no additive blend), drawn in the sorted translucent pass, which OpenTPW already did right. The slots carry the flags 0x13 and 0x33, no UV animation exists, and the collect clips toggle the glow nodes' visibility only (node flag tracks).The cause. The material record's last dword (runtime +0xC,
MaterialData.Pad) has bit 0x1 on exactly these materials. The original reads it at0x580C51: with it set the corner's diffuse colour is the draw's constant colour (0xFFFFFFFF), with it clear the lit colour of0x574660ANDed with that mask. The texture stage modulates, so a self-lit texture shows exactly. OpenTPW read the word and wrote it back for its own models but nothing honoured it, so every self-lit material was shaded by the sun and the 0.4 ambient: the gold interior came out near black and the glow a dull orange.The fix.
TextureSlotAddressing.VertexFlags( material )carries bit 0x1 as the vertex flagSelfLitFlag(0x04000000) andtest.shadershades such a corner with 1: no sun, no ambient, no point light (at day; see the night rule below). The four vertex builders oftest.shaderpass the material (placed objects, the original terrain meshes in two places, the lobby model scenes). Over the corpus 920 of 12,951 materials are self-lit (11 of them the Gift Shops'); the others are in ride and sideshow models, the jungle terrain base, the lobby islands, the interface models and the advisors. The audit of every other shader that draws MD2 materials is indocs/MD2-MODELS.md("Self-lit materials").Also corrected.
docs/MD2-MODELS.mdsaid the slot flag 0x2 becomes state bit 0x800000 in0x581790; the builder tests bit 0x2 of the material word +0xC, which no shipped material sets (every word is 0 or 1). UI-034 repeated the slot-flag reading; its text now says the bit is material word bit 0x2, which no shipped material sets, and keeps the ID for the one open piece (a capture of the original lobby panel and gauges for the 0xF0 test). No label added.Captures. Silent, offscreen, 1280x720, objects placed with a local-only patch (never committed): the three Gift Shops and the jungle Inca god, the hallow candle and cauldron, the space hover bot and a night torch (whose flame is a self-lit material of OpenTPW's own,
EveningTorchTests), each before and after, inreports/issue829/glow/.Tests.
SelfLitMaterialTests: the flag from material bit 0x1 only, the slot flags kept, a free vertex bit, the shader's constants and the corpus pins (every material word is 0 or 1, 920 of 12,951; the chests' glow, treasure and gold self-lit and their wood, metal and lid lit; the glow slots' flags and textures);NativeWorldShaderRenderTestsdraws a lit and a self-lit white texel (about 102 against 255 under the ambient only; Metal or Direct3D 11).Advisor. Its models go through the same fill (0x581DB0 -> 0x580530), so
advisor.shaderhonoursSelfLitFlagtoo: the fiveMouthmeshes and the gold ticket meshes (7 materials per theme model). Its captures (jungle-advisor-idle-*,jungle-advisor-speaking-*) show no pixel difference because a mouth facing the light is lit to white anyway; the native shader test (ASelfLitCornerIsDrawnFullBrightAndALitOneAtTheAmbient, both shaders) andTheAdvisorsMouthsAndGoldTicketsAreTheSelfLitMeshesAndTheirVerticesCarryItcarry the proof.Other shaders. The interface draws through the sprite pass and the build-icon preview unlit (UI-026), the pool, water, sprite, particle and weather shaders draw no MD2 material from the data; none changed.
Review round (October 27, 2026):
Night rule ([EXT:evening], user decision). At dusk and night a self-lit material that is no light source takes the night tint of the extension's other unlit content, the pool water's (
EveningLook.UnlitTint; the sprites' tint is brighter and made the night river lighter than it was), written byModelEntityinto the camera positiontest.shadernever reads and applied only while the tinted ambient is set, without the soft shoulder. At day nothing changes: full-bright as in tp.exe. Real light sources stay full-bright: a self-lit material whose texture name containsglow,flame,fire,torch,lamp,light,coalorlava(TextureSlotAddressing.IsLightSource, vertex flagLightSourceFlag). Over the original files these areb_glow2,fire0,flame,GEM_GLOW,glow2,h_flame,h_glow,h_glow2,h_light,ig_lava2,lava2,lava2a,fp_coals,s_lights,sc_glow, and the evening extension's own torch flames (tt_*_flame) and the hallow torch'stt_hal_glow; the list is pinned over every model of the archives (SelfLitMaterialTests,EveningTorchTests) and documented indocs/EVENING.md. The fire pit's coals and the lava count as glowing fire (user decision); its stand (fp_standred) and the beams are tinted. No label added; the wording of[EXT:evening](FeatureGates.Evening) is extended.Point lights.
test.shaderkeeps its one literalif ( g_oUbo.g_flLightCount > 0.5 )(the self-lit override comes after it), soPointLightTestsholds.Mask writers. The draw mask
[[0x87A248] + 0x2C]is written only by the anaglyph stereo mode (0x577120, 0x57715D, 0x57718C) and the software renderer's 0x57AB61 (restored at 0x57AB78 before the fill); the docs and the code comment say so.0x5630B0 post-multiply. Per-corner
(c x m) >> 8runs only for a texture without an image page (the guard at 0x580D37 to 0x580D45 skips it when flag 0x1000 is set and[texture + 0x1C]is non-null). Traced: the constructor 0x590A00 zeroes both, the only page writer is 0x590350 (0x590678 hardware, 0x5904E9 software; only callers 0x58F471 and 0x58F855 in the placer 0x58F190, driven by the packer 0x58F940 from 0x58CF40, which the scene pass 0x576A00 calls at 0x576C60, before the batcher at 0x576DBE). A texture lacks its page by the fill only when the placer finds no free page of any size class (-1; 0x58F940 then clears flags with 0xFFFF0FCF); OpenTPW has no page pool, so it never has such a texture and nothing was ported for it (the pool capacity and whether a shipped park exhausts it is the one open question, recorded indocs/MD2-MODELS.md).Captures (
reports/issue829/glow/, silent, offscreen, local-only placement patch): the jungle river and terrain base day and night (jungle-river-*), the lobby (lobby-*), the Gift Shop chests, the candle and the Inca god (ride signs and cars) at night (*-night-*), and the torch at night (jungle-torches-night-*), each before (self-lit shader switched off for the run) and after.
A cleaned toilet no longer keeps its dirty look (October 26, 2026)#
GitHub issue 829 reported that closing a toilet for cleaning did nothing, and that the toilet came back open and still dirty even when a cleaner passed by. This traced the whole toilet flow in tp.exe and ran it in the game with the original Jungle data.
What the original does. The toilet window (
0x497640, refresh0x4973A0) has a door and the call button (b_callhandy). The door is a toggle (0x48CCF0: closing through0x4DF300, opening through0x4DF390); closing sends nobody. The call button (0x4DFE30) closes it too, sets the request and brings a handyman from anywhere. A handyman with no litter in range takes a called toilet, or one whose gauge byte is below 25 within his DetectionRange (0x4D7880); he never reads the open word or the patrol area. The end of his clean (0x4D73C0state 11 →0x4DFD80,0x4DF390) swaps the dirty row for the clean one, writes script variable 8 (VAR_WORN) = 0, sets the gauge to 100, clears the claim and the call, and opens the toilet. The window greys its door while the reopening guard0x4DF290refuses.What was wrong. The clean never wrote
VAR_WORN= 0, so a toilet reopened after a clean kept the worn state its script was given below a gauge byte of 25. Everything else (dispatch, walk, duration, reopening) already matched.The fix.
ParkEconomy.FinishToiletCleanand the headless handyman's clean writeVAR_WORN= 0. The toilet window's door now greys exactly while the reopening guard refuses (0x4973A0), as the ride window's does for a closed ride.Saved parks. A toilet saved with the stuck
VAR_WORN= 1 heals at its next clean; nothing in the save changed.How a player cleans a toilet. Press the handyman call button in the toilet's window (or wait for a handyman to pass a dirty one); closing it with the door alone calls nobody.
Tests.
ToiletCleaningFlowTestscovers the door, the call, the refused reopening, the clean and itsVAR_WORNwrite on a level with a placed toilet, the handyman's world (closed dirty toilet in range, clean closed toilet until called, out of range until called), the headless dispatch, the save round trip, and the shipped Jungle balance;ObjectWindowStatusTestsdrives the real HUD for the toilet door's greying.Sounds and animation, checked and matching. States 10 and 11 of
0x4D73C0play no sound (only the idle and walking voices, cat_staff 160/161,0x4FAA00), the clean sets animation 17 and the end of it animation 3 and state 0 (0x4D7330,0x4217F0,0x5054D0), the open at its end lifts the hoarding (0x4547C0), and a worn-out toilet sends the queueing guests away feeling sick; OpenTPW already does the same, and the toilet script's own sounds followVAR_WORNnow that it is reset.
Park tools act on the left release, the right quick click cancels on its release (October 26, 2026)#
Every park tool of OpenTPW acted on the left press, and the right click cancelled on the press. The original acts on the release, and holds a right press back until it is a drag. This traced the park view's mouse procedure and the tool object's handlers in tp.exe (0x4881A0, 0x46C210, 0x46C5D0, 0x46C610, 0x524790, 0x524960, 0x4879D0) and ported the timing HUD-wide.
Left button. The tool object's release (
0x524960) is the click of the placement, the path, queue, kart and water lines and their edit modes, buy land, clear land, the patrol area and the coaster build button, at the cell under the pointer at the release; its press only sets a latch. Moving between the press and the release changes the cell: the click is at the release. A path tool's press enters it with no start and its release is the first click; a queue edit is chosen by the press and started by the release.Press stays where the original has it. The idle mode's press picks (an object's window, a guest, a track or queue entry; no click-or-drag test), the staff hire and carry tools place on the press, the coaster edit buttons pick a pylon up on the press, and the pool tool (an extension with no original) keeps its press-drag-release stroke.
Release over another window. A release goes to the window that took its press: pressed on the park and let go over the interface, the click is the park's at the cell under the pointer; pressed on the interface and let go over the park, the park sees nothing.
Right button. With right click cancels on, a right press let go within 200 ms and 8 px ends the tool or mode at the release; held longer or moved more it is the camera's drag, which now starts at that moment (the press and the first 8 px or 200 ms no longer move the camera). With the option off nothing changes.
Refusal cue. A refused build click plays the refusal cue at its release, as the line tools already did (the release handler tests the latch for every mode);
[EXT:cannot-build-sound]is narrowed to the message text and to the error feedback where no cue sounded (a refusal the host sends back). A guest's locally refused ghost plays the cue like anyone's; the original skips it only in a layout replay.Lost and foreign releases. A release the platform made up (a browser blur) or an overlay took ends the press with no click; a pylon being dragged settles when its release is lost; a press made in the ride view or while walking owns no release; without a routed batch a release acts only when the park took its press.
Tool armed mid-press. The original's release needs no press, so a tool armed in between takes it (no cue); only a tool a guest's request starts when the host's answer returns (
CompleteMove,CompleteQueueEdit) takes none, under[EXT:online-coop-commands](Level.HostToolStarts,ParkHud.pressHostStarts).Track edit tools. A refused first tile plays the cue at the release and ends the tool (first-tile hover latch,
0x527B00,0x537A30); a refused second tile ends it with no cue.Pool stroke. It writes live as the pointer moves, so a lost release only ends it, as the pointer leaving the park does.
Theme Park Inc. Its HUD keeps acting on the press; the TPI executable's mouse handler was not traced.
Interface buttons. The original's buttons and windows act on the click message posted by the release, as OpenTPW's already did; no change.
Tests.
ParkToolsOnReleaseTestsdrives press, move and release through the real HUD with ordered pointer events: the path tool's entry and first click, a press dragged across cells, a line's commit, the refusal cue at the release only, a release over the interface and a press on it, the remove tool, the clear tool, and the right quick click against the camera drag;ObjectRayPickTeststhe press-time pick;CameraControlTeststhe held-back right drag; also the legacy-path ownership and blur releases, the lost-release pylon, the coaster build click and edit release, the track edit first tile, a tool armed mid-press, and the refused build click's cue against the error feedback (ObjectRayPickTests). The smoke's path step now presses, checks that no start is set, then releases.
Still open:
The hover cell has no value off the grid where the original clamps it (
0x45D560), so a release beyond the park's edge acts on nothing here (RIDES-021).The windows' own right click (
UiScreen.RightCancels,[EXT:ui-modal-right-click-back]) was not changed; the original's modal windows do not read the option.
The UI render state: sprite quads, title shadow, ancestors and the texture filters (October 26, 2026)#
Fidelity round 9, package D. This read the render state of the original's UI quads and applied what it settled (0x58A010, 0x565F90, 0x565240, 0x567620, 0x567A70, 0x566840, 0x5817D8, 0x581841, 0x58109E, 0x57A530, 0x581CD0, 0x581DB0).
UI-037 retired, the sprite quads' state. Every quad of the sprite draw
0x58A010(control text bitmaps, sprites) is submitted with the fixed state word0x7060556(0x58A26Coverwrites the alpha-type state0x590C40gave): alpha blend SRCALPHA/INVSRCALPHA, alpha test at0x10, depth test and write on, stage 0 colour = texture MODULATE the control colour as diffuse, point filters, clamp. A control colour of (0,0,0,255) therefore draws exact black:UiColors.OptionTextis (0,0,0,255) instead of the (16,16,48) read off the video.OriginalStateWorddecodes the state-word bits that are read, with tests for the sprite word, the face states and the inert bit0x800000.UI-007 retired: the text path and the title bitmap ported. The text control draws its string once into its bitmap with the text library in mode 0 (
0x6AD790): every glyph sample of coveragecbecomes a texel of alpha 17 xcwith the colour's RGB (class0xFB1EF0, blitters0x6B24B0and0x6B21F0), and the quads blend the control colour with coveragec / 15, the alpha test dropping only coverage 0 (OriginalTextTexel). The eleven plain text classes (draw0x48F830) have no shadow, and OpenTPW's navy shadow is gone from every plain text path (labels, buttons, option and spinner rows, text entry, list headers, rows and cells, all HUD text). The title control (constructor0x491920, draw0x491AB0; window, screen and lobby titles and, through0x48C150->0x492F60, the pause menu lines) draws a grey (128,128,128, alpha0x80) copy on the rectangle moved by (-2, +2) pixels, then the white string, both modulated by the title colour:UiBatch.AddTitleTextdoes the same at the text scale (UiLabel.Shadow,UiMenuItem, the dialog captions). The title bitmap is composed on the CPU as the original builds it (UiTitleBitmap, cached per atlas, layout, copy alpha and scale): both passes are plain texel writes into one cleared bitmap (the copy's texel alpha17 x floor(c x alpha / 255)and nothing at level 0, then the string's17 x cover it) and one quad blends it modulated by the title colour; above scale 1 the smoothed coverage is used ([EXT:hidpi-glyphs]). Theme Park Inc's title class (constructor0x515DC0, vtable0x93C368, draw0x515FE0, blitter0x899070; the personnel-file title and the quit caption) draws the same copy with colour alpha0xC8. Placement uses the string's own box, not the copy's. The title bitmap is cut off at the control's box as the original's is (0x48F3D0->0x588940, box from[control+0x18..+0x1E]; the quad at the box's top-left,0x491AB0): exact, because every texel depends on its own two writes. The compose cache is also bounded by 16 MB of pixels, a capped smoothing factor fills the empty texels' colour (no dark fringe), and each bitmap owns oneUiTexture. Plain text is cut off at its control box as well (0x48F3D0->0x588940; width and height truncated,0x48F47B-0x48F4C5); OpenTPW-authored texts wider than their box opt out (UiLabel.Unclipped,UiButton.Unclipped): the object window's not-simulated value ([EXT:strings]), the online screens' label buttons ([EXT:ONLINE-UI]) and the options page's OpenTPW rows ([EXT:display]); a smoke scan found no other overflow. A title bitmap is never dropped in the frame that draws it (one frame counter per frame; the count and byte budgets may be exceeded for a frame). Placement and clip use one integer box (rounded left and top, truncated width and height) so right-aligned values keep their last column; an original option label wider than its rectangle wraps into it (0x6AEC80) at the largest size whose block fits ([EXT:option-label-fit]); more OpenTPW texts opt out of the clip (online labels, text fields and headers, the attractions list's not-simulated cell, the speed buttons, the confirm dialog's non-original messages, the fitted-label fallbacks; original UITEXT messages keep the clip). The HUD cash control has no margin (+0xDEis zero unless the attribute word has0x4000), so its first-column cut is the original's. UI-007 is retired.UI-003 narrowed, the ancestors. A UI model's frame geometry and stored endpoints now use the node's world matrix (local matrix times the parent's, translations kept), as the instance traverser
0x57A530does (the root starts as its local matrix times the caller's). 168 of the 278ui.wadmodels chain their state frames (depth up to 5) and no child carries a rotation or scale (UiHierarchyCorpusTests, which also compares every frame's drawn vertices with the old root-pose shortcut); the translations cancel in the selected-mesh fit, so every state still draws over the root mesh's place and only the frames' geometric bounds moved. The window angle was alreadyDrawFrame's turn (0x476C50); the original's state-frame selection stays open.UI-004 narrowed. The UI nodes go through the scene's batcher (
0x576910sets global0x8BB624, which0x581CD0reads at0x581CF6,0x581CFFand0x581D15;0x581DB0) with state words from their textures' alpha types, so a cut-out interface texture is tested at0xF0/255like a world texture; immediate states are drawn depth-tested in file order, blended parts deferred far to near. The UI vertex depth and whether the UI shares the scene's depth buffer are not read, so OpenTPW keeps its painter order.UI-034 retired. The interface textures take the original's own states: a UI node's parts go through the scene batcher (
0x576910,0x581CD0,0x581DB0->0x581790->0x590C40), so a cut-out interface texture is tested at0xF0/255like a world texture, read statically (the capture the ID waited for is not needed). State bit0x800000(material word bit 2, which no shipped material sets, PR #863) does have a reader, the sort-key override at0x58109E, so it would only change a part's draw order.UI-008 narrowed.
ui.wadshipspurple_button.wctbut no UI model names it; the PC's labelled buttons are model-backed (b_login,b_dellog,b_loantog,b_okay,b_exit).COMPAT-010 narrowed.
[0x785898]is SPRITESHADOW, not a filter option: its engine flags0x20000/0x40000are only tested by the scene pass and the sprite flush. The state bits come from the part's mesh flag0x8000000(point magnify) and the texture flag0x100000(no mip); the preset filter is TEXTUREFILTERING[0x785878].COMPAT-032 narrowed. The sign placeholders
sign1.wctandsign2.wctare 24-bit without an alpha plane and the sign builder writes no alpha-type bit that was found; how the composed alpha reaches the draw is the open question.Tests.
OriginalStateWordTests,UiHierarchyCorpusTests, the chained-ancestor case ofUiModelFitTests, andButtonStateFramesAreDrawnOverTheRootMeshnow asserts what is drawn instead of the geometric centres.
A guest's requests to the host (October 25, 2026)#
A shared park's guests can now send the host commands to build with, and the host can grant each guest building (COOP.md, "Building by every player"; [EXT:online-coop-commands], [EXT:online-coop-permissions]). This is C3a-1, the plumbing of building by every player; the guests' tools use it in C3a-2.
A guest's park still changes through the host's stream only. A guest's command goes to the host as a numbered request, and the host applies it between two ticks at the start of its next frame, paused too, as the guest's seat.
Every command the host applies becomes a record of the stream, accepted or refused alike on every peer. A guest's record names the request it answers, so the guest learns what became of its command when the record applies in its own park.
The host refuses without a record a request that is too large, comes too fast, does not decode or comes from no guest's seat, and says why.
A request lost with a connection goes out again after the resume, and the host never applies one twice. A resync keeps the requests and settles them against the snapshot's cut.
The host grants building per guest with a command of the stream, so every park holds the same grants. A granted guest may lay paths and queues, place objects, remove a cell's object, path or queue (not a ride's station) and buy land; everything else stays the host's. A grant leaves with its member.
A guest's tools build in the shared park (October 25, 2026)#
A shared park's guests can now build with their own tools once the host lets them (COOP.md, "Building by every player"; [EXT:online-coop-commands], [EXT:online-coop-permissions]). This is C3a-2, on top of the requests of C3a-1.
The host's Build Together screen has a switch for each guest, "Builds" or "Watches", beside the removal. It shows the shared park's grant, and a click turns it over.
A granted guest's path and queue tool, its placement of an object and its remove click send their commands to the host and wait. While a tool waits, it keeps its ghost, takes no other click and asks the player to wait. When the command comes back in the host's stream, the tool goes on as the host's does: a line from its end, a placed ride into its queue tool, the build tool kept for exactly Ctrl at the click.
A command the host could not take leaves the click as if it was never made, with a note to try again. A refused line or placement says its reason, as the host's do, and each refusal is said. A tool that was switched or ended while it waited, or a park a resync replaced, turns the outcome into a message only; the session's end ends every wait.
For now a granted guest builds only what those tools do: lines, objects whose own tool does not follow them (no coasters, kart, water or bumper rides, slide towers or track add-ons), and single removals. Land, the queue's edit, the area clear, the backtrack key and undo stay the host's, as the guest is told.
Each player hears and reads only their own build: the host hears no cue of a guest's placement or demolition and shows none of its messages, and a guest hears its own when its command applies in its park.
The sharing and joining screens now say that the host decides who builds, in every language.
A co-op invitation test no longer races the server (October 25, 2026)#
One more co-op test failed now and then on CI, on its own timing (ONLINE.md, "Shared parks"; [EXT:online-coop-session]).
The test of an invitation to a player whose lobby closed its link invited at once. The server takes a closed link off its players a moment after the close, and an invitation that came first went to that link unanswered, so the test waited in vain for the server's "not online". The test now invites again until the server answers, a few times at most, well within the invitations' quota.
A dropped co-op socket always resumes (October 25, 2026)#
A shared park's link that dropped its own socket could give up instead of reconnecting (ONLINE.md, "Shared parks"; [EXT:online-coop-session]). Four co-op tests failed now and then on CI: two because of that, two because of their own timing.
Dropping a socket (a send queue that fell too far behind, a test's lost network) could race the socket's writer: the writer closed the connection normally while it was being dropped, and the link took the server's answer for a close it does not resume after. The connection is now dropped before the writer wakes, and a socket this game dropped counts as lost when its reader saw only what the drop could cause (nothing, a normal close or a broken message), so the link resumes; a refusal or limit the server sent before the drop still counts.
The open list's test of a park that ended after the list came now waits for the server to end the park before the stale row's join: a join that raced the host's leave was seated first and then heard that the host left.
The live acceptance's harness tests run on a clock of their own, so a slow first frame on a loaded machine no longer passes a step's deadline early.
The test of a leave lost before it went out shortens its link's reconnect window only once it has seen the reconnect, and lengthens it again before the last reconnect, so a loaded machine's late pump or slow reconnect no longer ends the link early.
A co-op link test that waits in vain now also says how each player's last socket ended and which states its link went through.
The jungle smoke's staff clicks no longer race the Splish Splash animation (October 25, 2026)#
The native jungle smoke (--load-original-level jungle --smoke-test) failed now and then with "the Place tool is still armed over its cell after the probes (Place, (63, 32))". The cause was the cursor pick, not a staff probe or a guest. The cursor pick tests the owner's model at its current animation pose (ObjectRayPick, tp.exe 0x45bf90). The staff phase picked cell (63, 33) at frame 8, and the ray at that pixel passes the height window of the water track's Splish Splash station at (63, 29), which the water-track phase builds just before. Whether the station's animated model crossed the ray at the check (frame 18) depended on the wall-clock time at that frame, so under load the same pixel resolved to (63, 32), an invalid cell. Diagnostic runs showed that camera, matrices, terrain and object list were identical in passing and failing runs. Only Time.Now at the check differed, and the ray hit Splish Splash in exactly the failing runs.
The game's pick is unchanged, because tp.exe also picks the model at its current pose. The smoke now uses only pointers whose pick cannot depend on a pose: the cell centres and their three probe points must have no cell on the walk that names an owner whose height window the ray passes. That test is the new internal Level.CursorPickTestsObjectModels, which runs the same walk with a stand-in shape that meets every line. It is pose-independent because only the final model line test reads the pose. The Place and Carry checks are as strict as before, and their messages now also print HoverValid and the wanted cell. Level.ComputeGroundHit's terrain step moved into Level.TerrainHit so the two share it. An independent review pointed out a second ordering gap in the same phase. The coaster checks waited only while a staff tool was active. Between the placement and the pick-up no tool runs, so a coaster check whose train left during the Place tool would run in that gap and could scroll the camera (TryClickPoint) under the drop point that was projected at the phase's start. The coaster checks now wait for the whole staff phase. In all observed runs they had run after the pick-up anyway.
A new test, ObjectRayPickTests.APointerWhosePickTestsAModelIsNamedWhateverThePose, checks that the answer stays true when the model moves off the ray, and that it is false beside the tower.
Verification under load (load averages 9 to 23 plus two to six busy-loop processes): pristine main (22a35e03d) failed 5 of 10 jungle smokes, all with this message. The fixed build passed 12 of 12 in a row. After merging main, the branch passed 10 of 10. The final commit, with main merged again (#843, #846, #849, #850), passed another 10 of 10 in a row. The smoke now picks (69, 32) and (69, 35), and neither pointer's pick tests a model at any point up to the drop (frame 38, object version unchanged).
The outbox takes tp.exe's window, and the online menu gives way to its windows (October 25, 2026)#
A player's screenshot of Unsent Postcards, opened in a Dutch park through Go Online, showed four problems:
the online menu's buttons around the outbox window;
"Geen zoekresultaten" (No search results), left over from an earlier park list;
the weather banner "Het weer: sneeuw." over the online screens;
an outbox built from OpenTPW's own pills, captions and Send button.
The outbox window. tp.exe builds Unsent Postcards from the layout table at 0x758878 (built by 0x4bc710, handled by 0x4bbc20). tools/ppc-analysis/lanes/ui/tpw_exe_layouts.py now decodes that table into OriginalLayoutTables.OutboxWindow, and the screen takes every control from it:
the frame
window4and the title (0xee9);the selected card's picture frame
!frame(0xee4) and its addresses (0xee2,list_emailaddr);the bulk buttons: mark all for sending
b_okall(0xee5), mark all for deletionb_delall(0xee6) and unmark allb_nuall(0xee7), with their help texts UIHELPTEXT 397-399;the list frame
list_outbox(0xee8), its header buttons 16-19 with UITEXT 309-312 (Title, Date, Send, Delete), its content rectangle, and its slider withb_up,b_downandb_scroller, which show only while the rows do not fit (0x664495; the load list's slider, now the sharedUiListScrollBar);the tick
b_okay(help 400).
The Mac table data:0x508bc, which the earlier screen cited, has the same 19 controls and rectangles. The earlier screen showed the recipients in the picture frame's place and the message in the address list's place, listed each card's recipients instead of its title, drew its own header row inside the list frame and started every card unmarked.
The rows follow the row factory 0x4bcbc0 and its cell setup 0x4bcca0:
A row is as high as the buy list's rows (font slot 7's line height × 1536 / screen height + 6, 0x4ad240), so it takes their fixed pitch (
[EXT:list-row-pitch]): 14 rows fit the content rectangle.The title is the row's own text, from the row's left, fitted into its column as the buy list fits its names, so a long title does not run over the date and the marks. The date is centred in the Date column and is UITEXT 447 filled with the card's day, month and year, the save list's format (0x4bca6a). Before, it was .NET's short date.
The Send and Delete cells hold the model
i_boxtick. The list sets a cell's value from the row's mark (0x6634b2, 0x4bbfbc), and the value is the model's frame (0x66da4d): the empty box for an unset mark, the tick for a set one. Each box keeps the model's 51-unit size, centred in its column, as in the buy list. Before, a set mark showed as an X and an unset one as nothing.
The marks follow the handler:
The builder adds every row with the send mark 0x1000000 (0x4bcaec), so every card starts marked for sending.
A click on a row's Send cell (column 2) or Delete cell (column 3) toggles that mark and clears the other (cell message 0x404, 0x4bbf2c).
UiScrollListgainsCellClicked,ColumnAt,HeaderRowandDrawCellfor this. A click right of the list (its slider strip) is no cell.The bulk buttons set or clear the marks of every row (0x4bbd2d, 0x4bbe7a, 0x4bbddf).
The tick applies the marks first, deleting the cards marked for deletion (0x4bbcbd, 0x4bc430), then closes the window and sends the cards marked for sending (0x4bc500). Escape closes the window without either.
Where tp.exe refused the send because the account's settings forbid the service (0x5b6460, message 0x4e, ERRORMSG 78), OpenTPW opens its login dialog over the window, because its server needs a login ([EXT:ONLINE-UI]). A card that cannot be deleted stays in the outbox, and the menu's status line gives the reason.
The online menu. OpenTPW's online menu has no original counterpart. It stayed drawn under every window opened from it, so its buttons showed around the outbox, the news, Find Parks and the other windows. A new UiScreen.HiddenWhenCovered lets a screen give way to the one above it. The menu is not drawn while another screen lies on it, and the dimming backdrop is drawn once, for the window ([EXT:ONLINE-UI]).
Status text left behind. OnlineSession.Run keeps the previous status when an action returns null. The park-list fetches ended that way, or with "No search results" (UITEXT 306), so the status line kept "Getting … Park List" or the empty result while other windows were open. That was the "Geen zoekresultaten" in the screenshot. Changes:
The park-list and news fetches now end the progress text.
Find Parks and Other Parks still show an empty result as their own row.
The city lobby has no list, so its status label now says "No search results" itself, while the lobby is on top. The desktop online panel lists parks without an empty row, so it says so itself too, and it shows how many cards wait in the outbox, which confirms a send.
The outbox send sets "Sending mails from outbox, please wait ..." (UITEXT 313) while it runs, as tp.exe's 0x4bc500 did. tp.exe's progress closes with no count (0x4bc660), so the status clears once the cards are sent. Before, it ended with "Sending mails from outbox, please wait ... 2".
OpenTPW's own windows (the menu, the login dialog, the publish form and the windows with a status line) showed "..." while a request ran, so the original's progress messages, the outbox send's among them, did not show while one of those windows was on top: the globe's status line, which shows them, is covered then (and since #837 a status line shows only on the screen on top). They now show the progress text the running request set (
OnlineSession.Progress), and "..." only while it has set none. Another message meanwhile, such as a chat connection's error, is no progress of the request.The outbox's tick clears a message an earlier window left on the status lines, so that message does not hide the send's progress.
The weather banner. The forecast banner draws in the overlay pass above every screen. Go Online in a park replaces the park's view with the online globe, whose camera replaces the park's, and pauses the park, so the banner held its line over the online windows. It now waits while the globe camera is active (WeatherForecastPresenter.ShowsOnlineGlobe, [EXT:forecast-banner], AUDIO.md).
Lists with column headers. UiScrollList draws its column headers in the first row's place, but it hit-tested clicks as if the rows started at the top. A click on a drawn row selected the row below it, and a full list overran its frame by one row. Find Parks and Other Parks had this. Clicks now find the row drawn under the pointer, and VisibleRows leaves the header row out. The row helper of ListOwnerAudioTests had followed the old mapping and now clicks the drawn rows.
Checks.
The front-end smoke:
It opens the outbox from the online menu with two cards and captures
online-outbox-cards.png. The window follows the table, each row shows the card's title, date and tick box, and none of the menu's buttons are drawn (checked against the frame's text draws).It posts a forecast of other weather in the park: the banner draws over the park, waits while the globe shows, and is back with the park's view.
The smoke passes.
OutboxWindowTests(13 tests): the table's controls, the headers, columns, row pitch and date, the starting marks and cell toggles (by call and by a click on the drawn cell, but not on the slider strip), the tick boxes' frames and places, a long title inside its column, the slider's visibility as a card arrives while the window is open, the bulk buttons, the tick with and without a card to send, the menu giving way and its status line during and after a request, and Escape.NativeWidgetTests:rows drawn below the headers are the rows a click finds, and a list without a header row starts its rows at the top and ends its columns at its edge;
a cell that acts keeps the row default out;
a covered menu draws neither itself nor a second backdrop.
WeatherForecastTests.TheBannerWaitsWhileTheOnlineGlobeTakesTheParksPlace,OnlineIntegrationTests.EmptyListsAndASentOutboxLeaveNoMessageOnTheStatusLineandOnlineIntegrationTests.ProgressIsTheTextTheRunningRequestSetAndNothingElseandOnlineIntegrationTests.ACityWithoutParksSaysSoInItsLobbyWhileTheLobbyIsOnTop.Nineteen mutations were caught: hit-testing without the header row,
VisibleRowscounting it, the covered-screen skip removed, the menu's flag removed, the tick keeping an earlier message, the banner's globe check, the tick box's frame, its centring, the column bound at the list's edge, the slider's visibility, theHeaderRowflag, the date's format, a stale progress text, a progress text kept from the previous request, the title drawn unfitted, the slider updated before the re-read, the status line's dots, every status message taken as progress, and the city's empty text shown under another screen.
Still open:
The card's picture is not drawn in its frame (
!frame, 0xee4): the postcard photo is not ported (the postcard window leaves it out too).The header buttons sort the list in tp.exe (the list's attribute 0x10, 0x665a44; UIHELPTEXT 391-394 say so), but that sort (0x6628f4) is not decoded, so the headers do not sort yet, and they leave out those help texts.
The addresses: tp.exe joins the recipients with newlines into one text in font slot 6, wrapped to the frame's inner width, with a slider (0xee3) when it overflows (0x4bc100). OpenTPW lists them a line each in the small font, without that slider.
A title too long for its column even when fitted (one word wider than the column at the smallest size) still runs over it; how tp.exe's row text treats a title too long for the row (its text property 0x100, 0x65f5b7) is not traced.
Find Parks and News still place OpenTPW's status line inside their original windows, where a message can overlap the search field and the news text.
The original's procedural terrain texturer, as a decoder and a byte-exact port (October 25, 2026)#
Part of #829 (package E, steps E1 to E3). tp.exe's option PROCEDURALTEXTURING gives every terrain cell its own N × N ground texture, built from one file per theme, terrain.wad/base.lnd. OpenTPW did not read that file and draws one repeated texture per slot. This change adds the decoder, the texturer and the oracle evidence; nothing is drawn differently yet (the renderer wiring, the visible-cell cache, the option mapping and the shader are the next steps, after #834 which also touches OriginalTerrain).
LndFile(OpenTPW.Files): version byte 3, the five (centre, width) blend parameters, the 384 × 344 weight grid at four samples per cell, and the three resolution sets (N = 64, 32, 16) of 13 images. The reader is strict and bounded and must end exactly at the file size; all four themes do. The layout is in LND.md.ProceduralTerrainTexturer:[BIN:TPW-EXE:0x0055F780]'s head. Three layers (dirt, grass and foliage in the jungle) lerped by a ramp of detail map × weight 1, two masks, 16.16 forward-differenced weight planes, point-sampled windows(N·x) % (w − N), per-16-texel run decisions (C, B, A, BA, CB, CA, CBA), the grey fallback for invalid cells, bottom-up rows. Pure CPU, deterministic, no allocation per cell.The three-layer quirk is kept.
0x0055EAA0never advances its weight 1 pointer, so all 16 texels of a three-layer run use the first texel's weight 1.Alpha is 0, as the original writes it. A renderer must write 255 (OpenTPW's shader discards low alpha; the original's terrain pass is deduced to have no alpha test, since its cache textures carry alpha 0, but the render state of
0x56F670is not traced); that is the shader step, not done here.
x86 oracle target X27 (
tools/ppc-analysis/oracle_x86): the ramp0x55E710, the weight plane0x55E780and the build routine0x55F780run in the Unicorn sandbox on synthetic levels. The ramp agrees on 600 of 600 inputs, the weight plane on 500 of 500, the build on 48 of 48 cells that reach every run mode and the grey fallback; a reading without the quirk differs on 12 of the 48.Real cells, byte for byte.
terrain_golden.pyruns the original build routine on the shippedbase.lndof the four themes for 297 sampled cells (all sizes, corners and invalid cells included) and writes only their SHA-256 hashes intoProceduralTerrainGolden.cs. The C# texturer reproduces all 297. The earlier research had compared its Python model with the emulated routine on 33,820 cells with no mismatch. No original byte or image is committed.Synthetic levels in CI (
ProceduralTerrainSyntheticTests): 27 levels from an LCG and fixed formulas (the same generator in Python and C#; not original data) with gradient weights, random ramps, every run mode, the grey fallback and N = 16, 32 and 64, 54 cells in all. tp.exe's routine ran on them in the oracle and their hashes are committed, so CI, without game data, checks the weight interpolation, general ramps, window offsets and N = 64.With-data tests (
ProceduralTerrainCorpusTests): file identity and layout of all four themes (sizes, SHA-256, parameters, image sizes, the wrap padding of every image), every non-hole heightfield cell inside the grid is valid in the weight grid (the grid marks 6 to 68 holes valid as well), and the cell edges continue into each other (seam 13.7 against 12.7 inside a cell, jungle patch at N = 32), which fixes the orientation: texel columns along +x, buffer rows along +z.
Still open:
Heightfield column 95 lies outside the 95 weight cells (the texturer refuses it); whether the original textures it procedurally or keeps its static texture is not settled.
The extent of the original's procedural rectangle, and the texture pages, mipmaps and edge address mode of its cache textures, are not traced.
The floor-art tail of
0x55F780(rides and shops, package F) is not ported.
The ground is drawn with the original's procedural textures (October 25, 2026)#
Part of #829 (package E, steps E4 to E7). With PROCEDURALTEXTURING on, tp.exe gives every visible terrain cell its own N × N texture built from the theme's base.lnd; OpenTPW drew one repeated static texture per slot. The ground of a level is now drawn the original's way, the options are applied, and the open questions of the research are answered from tp.exe or documented. Details and addresses are in LND.md.
The visible-cell cache is copied, not a full atlas (the user's decision).
ProceduralTextureCacheis the 128 × 128 key table and ring of nodes of0x572110/0x572440move for move, 1500, 2000 or 2500 slots;ProceduralTerrainAtlaspacks the slots' tiles into RGBA pages of at most 2048 texels (N = 32 with 2000 cells: 8 MB; N = 64 with 2500: 41 MB). Each frameProceduralTerraintakes the cells of the original's visible spans, looks them up (every frame, as the original does: a hit moves its node), builds the textures of the cells that took a new slot (the byte-exact texturer, written straight as RGBA with alpha 255) and rewrites one dynamic mesh. Every listed cell is built before the frame draws, on the desktop and in the browser alike, as the original does.The visible cells, the fog and the far plane are the original's.
TerrainVisibleSpansis0x56BB00and the routines under it (four corner rays, their ground points, the convex hull, the clip, the rasteriser) in single precision, operation by operation, fed what the original feeds it: the camera's pose, the 90 degree rays, the heightfield header's stored lowest and highest height and the ray distance of FIRSTPERSONVIEWDISTANCE (200, 325, 450, 700); the x86 oracle (406 cameras, every hull and clip branch) and a 66-camera golden pin it bit for bit, and a second oracle target pins the cache lookup0x572440on random frame sequences (slots, builds, ring, key table); the gate in front of the list (0x56F0A2,0x576EC0) is ported too. FIRSTPERSONVIEWDISTANCE also sets the fog range (0x44DBB0toSetFog0x567AD0: linear, 50 to 60, 100 to 110, 135 to 150 or 230 to 250 original units in the projection's depth), which is on only in the first-person views (ride, free walk; the fog enable bit 0x2000 is off in the park overview, the lobby and the globe), and the park view's far plane is the span selection's farthest corner distance (0x578CA0); the shaders fog like that in those views. The ride and walk views' far plane (0x56EA90's cell boxes) is read, not ported.Options, at the next level load. PROCEDURALTEXTURING 0, 1, 2, 3 give off, 16, 32, 64 texels and PROCEDURALTEXTURECACHE 0, 1, 2 give 1500, 2000, 2500 cells, with the memory clamp of
0x572110(below 48 MB every size is 16; below 64 MB a 64 becomes 32). The presets follow the original files (Low off, Medium and High 32 texels, Enhanced 64). The lobby and a level withoutbase.lndstay static. The support strings, the COMPATIBILITY.md rows andCompatibilityTestssay "applied".Open questions, answered.
The rectangle (OPEN-2): the cells from (XStart, YStart) to (XStart + max(0, offset) + Width, YStart + max(0, offset) + Height), inclusive, from the level's
MapInfo.Heightfield*keys (the sam parser writes them; no store to them exists in the code). That is cells 0 to 95 by 0 to 84, the whole heightfield. Column 95 is inside it, and the original builds it from the weight grid's flat reads (the last samples are the first of the next sample row); the x86 oracle agrees with the C# texturer on the shipped jungle file and on new synthetic cells. The texturer used to refuse column 95.Pages, UVs, mips and address mode (OPEN-3): the original packs its small textures into shared pages (
0x58F190,0x590350), takes the texel centre of the first and last texel as the coordinates (half a texel inset, scale 1), has no gutter, creates no mip levels for the pages (0x58B0B0), and draws the ground with state word 0x1256: clamp, linear magnification, point minification, no alpha test, no blending. OpenTPW uses the same inset and no mips and draws through the preset's sampler, the difference [APPROX:COMPAT-010] already records.Camera modes (OPEN-1): entering a view from inside the park (the mode bits 0x2 and 0x4 of
[0x790AB0]: the terrain camcorder, and the follow of a ride) switches the textures off (0x457A40,0x46DED0(0)brings the turn and mirror bits back) and leaving switches them on,0x457A00only when[0x78D8D8]is 1. Bit 0x2 is the terrain camcorder and bit 0x4 the follow of a ride (record flag 0x400000,0x4E15B0). OpenTPW draws the static ground in the ride camera and the free walk camera.Alpha (OPEN-6): the terrain pass has no alpha test, so the original's alpha 0 never mattered; the shader is unchanged and the textures carry 255.
0x562F70(16-bit pages) was read, not run, and is not ported.
Frame cost (Release, Jungle, 9000 frames, 150 guests, two alternating rounds, High preset = 32 texels, ENGINE-PERFORMANCE.md): still at the Home zoom 1.72 and 1.77 ms against the main build's 1.72 and 1.76, panning 1.51 and 1.53 against 1.39 and 1.41. At zoom 300 the original's span selection lists 2500 cells, more than the 2000 slot cache, so every frame builds 2000 textures: 56 to 72 ms against 3.4 (the original does the same with its wide zoom flag, and the view is all fog colour at the High preset). The Home view lists 898 cells and builds them in 37 ms on the first frame; in the browser (AOT) the entering frame is about 28 ms longer, once, and the steady window is unchanged.
Tests.
ProceduralTextureCacheTests(slot order, hits, eviction, dirty rebuild, overflow, key, option mapping, memory clamp, rectangle, page counts),TerrainVisibleSpansTestsandProceduralTextureCacheTestsreplay oracle-generated cameras and frame sequences,ProceduralTerrainMeshTests(cells listed, builds, a lookup in every frame, hole answers kept per version, quad corner order for both diagonals, texture coordinates, render holes, on stand-in pages without a device), the RGBA writer against the original's bytes, the column after the weight grid (81 synthetic cells and six jungle cells from the oracle), and the jungle smoke checks that the cells in view are drawn.Wide zoom follows the list (user-decided 2026-10-26,
[EXT:wide-zoom]): the wide range's far end is the largest zoom at which the ground at the top centre of the screen is still inside the cells the span selection lists (at most 2500 cells; never below 130, at most 300), from the pitch, the ray distance and the aspect: at 16:9 130 at setting 0, 282.75 at 1, 183.75 at 2 and 3 (4:3: 130, 282.75, 229, 213.75); the setting clamps the zoom when it changes; the original 70 to 130 range is untouched. At the far ends the list fits the caches and the frame cost is main's within the spread (setting 1 at 282.75: 2.92 and 2.65 ms still and panning against 2.92 and 2.46; setting 2 and 3 at 183.75: 1.4 to 1.5 ms still and up to 1.9 ms panning against 1.4; ENGINE-PERFORMANCE.md); the thrash of a 2500 cell list in 2000 slots is not reachable.The Enhanced preset gets the cache option 2 (2500 slots; our own
[EXT]preset, Low, Medium and High unchanged): with 64 texels and the longest view distance the span selection lists up to 2500 cells, which 2000 slots evict every frame. Measured Enhanced at zoom 70, 110 and 300: 1.19, 1.40 and 2.99 ms still, 1.85, 1.39 and 4.43 ms panning (ENGINE-PERFORMANCE.md).
Still open (and written down in LND.md):
The far plane of the ride and walk views is the greatest depth of the cell boxes
0x56EA90selects through0x56E7E0and0x561BC0(at least 100 original units); not ported, those views keep the default. The second span path itself draws the static ground in those modes.The device's fog depth (w or z of the transformed vertices) is taken as w, from the rhw the vertex projection stores; the vendor workaround that turns the table fog off (bits 0xC000 of
[0x8BCBC8]) is not applied.The original's mip filter field for the terrain pass and its option; the names of the two camera modes; the "not allowed" device check; the floor-art tail (package F).
Parks that use OpenTPW's own extensions can be published (October 25, 2026)#
A park with winter snow and the earmuff kiosk could not be published: the online menu's Publish park line was greyed out and said nothing. The cause was that publishing counted OpenTPW's own extensions (pools, umbrellas, winter, evening torches and the rule extensions) as mods, and a park package recorded no mods. Only community mods still refuse a publish now.
Official or community. Built-in extensions (
OfficialExtensions.All) are official; every other mod is a community mod.ParkSharing.ModsOfsplits what a park would record.ModsRefusalnames only community mods.The package records the extensions. The manifest gets an optional
extensionsmember (id and version). Only the content extensions (pools, umbrellas, winter, evening) are recorded; the rule extensions and the cheats extension change how a park plays, not how it looks. A park without a content extension still produces a format version 2 package with no new member, so older builds and servers handle it unchanged. A package with the member is format version 3. An older build cannot read it: its strict reader calls the unknown member malformed before it looks at the version. This build reads the version first, so later versions say "Park package version N is not supported", and a publish refused by an older server says the server must be updated. The server stores the package byte for byte and validates the member; the protocol version does not change.Visiting asks first. A park that uses content extensions (pools, umbrellas, winter, evening) that the visitor has off asks "Turn Winter on and visit the park?" in the confirm dialog of a park load. Confirming switches the extension on as a load does and keeps it in
mods.json; a visit never runs without it. An extension that cannot be switched on (switched off on the command line, a Theme Park Inc run, unknown to this build) gets a message and no visit;--visit-parkrefuses with the--enable-modoption. The rule extensions and the cheats extension are not needed to look at a park.The menus say why. The online menu's Publish park line and the pause menu's Publish Park line show the reason on hover when greyed: no park open, a park you only visit, a shared park's guest copy, or community mods. The online menu's status line names it too, for a keyboard or a gamepad.
Layout and status. The postcard reminder no longer overlaps Delete account (the buttons keep their menu font), and shows only while logged out; logged in it says where to send the cards. A status shows once, on the top screen, and only when it came after that screen opened, so "No search results" no longer shows twice or in a menu where nothing was searched. Login, two-step setup, account deletion and recovery leave their outcome on the screen below when they close themselves.
Verified:
The online, server, co-op, mods, front-end, pools, save-extension, park, UI and Theme Park Inc filters ran with the game, Theme Park Inc and language data: 3,855 passed, 22 skipped, none failed. The browser build with the determinism pins compiles, and
BrowserPinsExclusionTestspasses (the server tests are in their own file,PublishOfficialExtensionsServerTests).The five native smokes pass (front end, sandbox, Jungle level, park-resume capture and restore). The front-end smoke opens the online menu with a postcard waiting, rests the pointer on the greyed Publish park line, and checks that the reason is drawn, that the postcard line sits under every button and that every button keeps the menu font family. With the earlier 84-high buttons the font check fails, as the review found; run in English and Dutch.
Still open:
Co-op stays strict: a shared park's host and guests must run the same mod set, as before.
A park file's
extensionsmember does not list the extension versions' differences; a visit draws the park with the visitor's version.
The browser's park view no longer scrolls before the pointer first moves (October 24, 2026)#
In the browser, a page that had seen no pointer event read the pointer at (0, 0). That is the canvas's top-left pixel, inside the park camera's edge band, so with the default scroll mode (Pushscroll) the park view scrolled left and forward until the pointer first moved over the canvas. The co-op live acceptance's page runs (C2d-5b) found it: their driver never moved the pointer, and the view ran from the park's middle to its edge within seconds. That driver now rests the pointer at the canvas centre.
Reproduced first. The page was published from main (5c7d30a4f, interpreter build) and served with the game folder by tools/web-perf's server. Chrome 155 ran headless and muted, with a 1280×813 viewport. Jungle Full Simulation was entered through the harness's own clicks. A read-only camera probe was added to the page for this check only and is not part of the change.
| Phase | main: pointer the game read → target moved | this change |
|---|---|---|
| No pointer event at all, 8 s | (0, 0) → 168.6 engine units, to the park's extent clamp at its top-left corner | (-1, -1) → 0 |
| Pointer in the bottom-right edge band, 3 s | 126.5 | 100.8 (stopped by the clamp) |
| Pointer at the centre, 4 s | 0 | 0 |
Pointer moved out of the canvas (the canvas got its mouseleave), 8 s | (-1, -1) → 0 | (-1, -1) → 0 |
| Pointer at the centre, W held for 1 s | 41.9 | 42.0 |
| A real pointer on the top-left pixel, 3 s | 104.5 (stopped by the clamp) | 126.6 |
The suspected second case did not reproduce. A pointer that leaves the canvas does not scroll the view: opentpw-gl.js reports a leave as m -1 -1, and ParkCameraMode.Step already ignores a pointer outside the window before it reaches the edge band. Only the "no position seen yet" state was wrong.
Fix. CanvasInputSnapshot (OpenTPW.Web.Veldrid/Input.cs) now starts with the pointer at NoPointer, (-1, -1). That is the page's own report of a pointer that left the canvas, so both states without a pointer read the same, and every consumer already handled that value. It is labelled [EXT:browser-no-pointer]. The original ran fullscreen, where the pointer cannot leave the screen, so this is a browser choice, not ported behaviour. The desktop is unchanged: it keeps SDL's positions.
What else changes in a page before its first pointer event:
The camera keys rest too. The camera takes no input of any kind while the pointer is outside the window (
GuardsSuppressInputAndFocusLossRearmsDrag), as it already did after a leave. Before this change the keys did work in that state, but they fought the drift: S held for a second against the edge band's forward push moved the view 0 units.The ride view's free look looks straight ahead instead of toward the top-left corner:
RideCameraModehas its own check for a pointer outside the window.The game's own pointer is no longer drawn in the top-left corner. The screenshots of the check show the view still at the Lost Kingdom gate after 8 s, and no pointer.
tools/web-perfnever moves the pointer, so its park windows measured the view drifting to the park's corner, which in Jungle is bare grass. The view now stays where the park opens. One interpreter build of each side, Jungle, a 20 s steady window: main thread busy 15.5% → 21.2%, frame p95 2.8 → 4.5 ms. BROWSER-PERFORMANCE.md notes that park windows from before and after this change are not comparable.
Tests.
CameraControlTests.NoPointerNeverPushesButAPointerInTheEdgeBandDoes: no pointer, (-1, -1), never pushes, not even over a UI that leaves the edge band to the camera. A pointer in the band, the top-left pixel included, pushes at the pan speed, and a pointer just inside the band does not.CanvasInputSnapshotTests.APageHasNoPointerUntilItsFirstPointerEventAndAfterALeave: the browser parser's pointer, fed to the park camera frame by frame. With no pointer event yet, with key events only, after a leave and in a later frame without events, the view stays put. The top-left pixel and the right band scroll it.Three mutations were caught: the snapshot starting at (0, 0) again, the camera's guard ignoring negative positions, and an edge band that skips the top-left pixel.
The camera, input, ride and free-walk tests pass: 84 passed and 2 skipped (with-data ride camera tests).
Still open:
With no pointer over the canvas the camera keys rest, in a page that never saw the pointer as after a leave. Letting them work there would be a further browser choice, for both states.
A shared park's own chat room (October 24, 2026)#
Each shared park's session now has a chat room of its own on the server, coop:<id>, which only its members can enter (ONLINE.md, "Shared parks"; SERVER.md; [EXT:online-coop-session]). This is C2d-1, the first part of the game's own co-op screens.
A member enters by a join or by going to another member in the room. Anyone else is refused, also through
/goto.The game's chat enters the room once it hosts or joins a session (opening the chat if needed, and only on a server of protocol 8 or later), and goes back to the lobby when the session is over for it. While in a shared park, its chat belongs to the session: nothing said to a room is sent anywhere else.
A member who leaves or is removed, and everyone once the session ends, is back in the lobby before the others hear of it.
/locateonly says that a player is in a shared park; world shouts and pages from the room do not name it; and no buddy is told about it.The game shows the room under its session's title, or "Shared park", in all eleven languages.
Co-builders walk as figures in a shared park (October 24, 2026)#
In a shared park every player now walks as a figure with their name over their head, as the players of a visited park do (COOP.md, "Co-builders as figures"; [EXT:online-coop-presence]). This is C2d-4, decision 8 of the shared-park plan.
Your own figure follows your view: it walks to where you look, and jumps there when your view jumps (a locate, a map click). In the free walk it follows you; in the ride view it is hidden for the others until the ride ends.
The others see your figure and name, and you see theirs. A figure goes round what the host builds on its way, and through what the host opens.
A shared park starts in its HUD. F4 or Enter switches to the chat mode, which builds nothing: entering it ends any tool you had armed.
In the chat's name popup, Go to moves your view to that player's figure, instead of telling you to leave the park first.
Figures move only once the chat is in the shared park's room, and a shared park's figures do not sparkle, so nothing local reaches the park the players share.
Sharing the open park from the game (October 24, 2026)#
The park's pause menu now has a Build Together line that shares the open park with other players (COOP.md, "Sharing the park from the game"; [EXT:online-coop-session]). This is C2d-2a, the second part of the game's own co-op screens.
The Build Together screen says why a park cannot be shared, or asks for a login. The player then chooses the title, whether the park is on the open list, and how many players it takes.
Once the park is shared, the screen shows its code and players, removes guests (asked first), invites players by name, and ends the shared park for everyone (asked first). The park stays the host's.
The attempt prepares the park while the link opens and creates the session. It hosts the park only after the server's answer, if the park is still open and can still be shared. A cancel, a closed park or a refusal at the answer leaves the session the server made.
Logging out or switching servers now leaves a shared park at once, so guests hear that the host left instead of waiting for the away limit.
Quitting or logging out while the server is still creating the shared park leaves nothing behind on the server. A leave that has to wait for a reconnection is kept for its own server, even across a visit to another server.
Invitations go out one at a time, so a refusal always names the right player; a refused removal is no longer shown as a failed invitation.
A status line at the top of the screen shows the code and how many players are connected while the park is shared, and for ten seconds that the shared park ended when the player did not end it.
All texts are in eleven languages.
Invitations and the open list of shared parks (October 24, 2026)#
A host's invitation now reaches a player anywhere in the lobby, and the lobby can list the parks shared with everyone (COOP.md, "Invitations and the open list"; [EXT:online-coop-session]). This is C2d-3b, the second part of joining from the game's own screens.
While you are logged in and in the lobby, the game keeps its link to shared parks open, so a host's invitation can reach you on any lobby screen. In your own park the link is closed, and a host who invites you is told to give you the code instead.
An invitation shows as a dialog: Join joins the host's park, Not now puts it aside. One shows at a time; others wait for up to a minute, and a logout or leaving the lobby forgets them.
The hub's new Find a shared park line opens the open list: the parks their hosts share with everyone, with their hosts and players, and a Refresh button. A park that ended or filled after the list came is refused in words.
The game never takes the link from another of your games on its own, and never ends a park that another of your games shares. On the join screen, Use this game takes the link over, after it says that the other game then leaves its shared park.
A game that cannot join a shared park says so before anything is sent, and opens no connection for it.
A link lost for long retries now and then while you stay in the lobby, and every game's reconnects are spread out, so a server restart does not bring every game back at the same moment.
All new texts are in eleven languages.
Joining a shared park with a code (October 24, 2026)#
Players can now join a shared park from the lobby with the code its host gave them (COOP.md, "Joining a shared park from the lobby"; [EXT:online-coop-session]). This is C2d-3a, the first part of joining from the game's own screens.
The lobby's Build Together line opens a hub: share one of your saved parks, or join with a code.
The join screen takes the code (case, spaces and dashes do not matter) and shows each stage in words: joining, getting the host's park, building it. A refusal (no park with that code, a full park, another version or other mods) is said in words.
Cancelling, or going back, leaves whatever the server already gave, also while the park is being built.
A game that cannot follow a shared park says why and sends nothing: another edition is told that only Theme Park World parks are shared, and a run with developer options that change the park is told to restart without them.
When the shared park ends for a guest (the host left, a removal, a lost connection), the guest hears why over the park and goes back to the lobby; the host's park is never saved on the guest's computer.
A guest is asked before Exit To Lobby leaves a running shared park, and the guest's own status line shows the park, its host and the players.
All new texts are in eleven languages.
The browser shares a park live too, as host and as guest (October 24, 2026)#
The shared park's live acceptance now runs the browser's page as host and as guest (COOP.md, "The live acceptance"; [EXT:online-coop-session]). This is C2d-5b: native/page, page/native and page/page, through the real server with the game's data.
Each page runs in a headless, muted Chrome of its own, through a local server of its own in front of the real one. The driver checks that it is the web build under test, starts the run from the front end, and relays the page's status to the other game.
In the page, the chat's keys, F4 and the park's clicks go through the browser's own key and mouse events on the canvas, as a player's do. The driver takes each picture as a screenshot of the canvas.
The page runs found a bug: after a server restart, the browser's chat did not reconnect by itself, because the browser reports a dropped connection with its own close status. It now reconnects as the desktop's does, and says so in the chat.
The endurance run now samples the park every five seconds, and the driver checks the interval on its own clock too.
Two games share a park live through the real server (October 24, 2026)#
The shared park now has a live acceptance (COOP.md, "The live acceptance"; [EXT:online-coop-session]). This is C2d-5a: two desktop games share Jungle through the real server, with the game's data. The sharing, the join, the building, the chat and the session's end go through the game's own screens and input.
scripts/coop-live.shstarts the server and two silent, offscreen games with throwaway players. The host shares its park from the pause menu; the guest logs in from the lobby and joins with the host's code.The two games check each other: the same session, the guest's park built from the host's, the host's path line in the guest's park with its digests compared, the guest's own line refused, the figures and their names seen both ways, a chat line each way, a ride, Go to, and the end of the session.
Three scenarios: the baseline; a server crash and restart in the middle, after which both games come back and go on; and half an hour at the fastest speed.
The drivers' local server now forwards the chat and co-op sockets, so the browser's pages can take part next (C2d-5b). The browser workflow checks the co-op link through it.
Each game of an automated run can keep its saves in a folder of its own (
OPENTPW_SAVE_DIR).
Sharing a saved park from the lobby (October 24, 2026)#
The lobby's Escape menu now has a Build Together line that shares one of the player's own saved parks with other players (COOP.md, "Sharing a saved park from the lobby"; [EXT:online-coop-session]). This is C2d-2b, the second half of hosting from the game's own co-op screens.
The screen lists the player's own saved parks as the Load Park screen does. The sandbox and the shipped parks are not offered. The same choices as in the park follow: the title, whether the park is on the open list, and how many players it takes.
Share loads the chosen park, asking about its extensions first when they differ, and shares it once it is the open park, on the login that asked. A failed load shares nothing and leaves the lobby as it was, and Back gives the share up while the load still waits.
The park then opens paused under its pause menu and Build Together screen. That screen shows the code once the park is shared, or why it could not be shared, with the player's choices kept. A message says so when online play was turned off by the load.
The screen's new introduction and the online-off message are in all eleven languages.
The lobby's lightning flash is drawn under the bolts and the rain (October 24, 2026)#
Part of #829 (Halloween island flicker). On a strike the front end inverts the picture for one frame; the bolt and the rain now stay bright on that frame, as in the original.
Original: the lightning draw (
0x57ee30, reached from the rain render0x57ff60, called by the scene0x576a00at0x576dab) draws the full-screen quad first (0x57ed50, state0x9A1: source blend INVDESTCOLOR, destination ZERO), then the bolts (0x57ee4d); the raindrops follow (after0x57ffec). Call order alone does not decide the picture: the scene queues its meshes ([0x8BCBB8], submitted via0x581cd0) and flushes them at0x576dbe->0x582170->0x581db0, after the rain call, so call order alone does not decide it.[BIN:TPW-EXE:0x582ad0 deferred sort]Primitives whose state lacks 0x1000/0x2000 are not drawn when submitted (0x565590);0x582ad0draws them back to front by mean depth (+0x30, sort0x5829e0). The quad's key is about 0.001 (its z); the bolts' key is forced to 0 (0x5658c0(0)in0x57ec50) and the drops' key is 0 (0x57efd0), so the bolts and drops draw after the quad. Opaque meshes (0x1256) draw in0x581db0before that flush; translucent meshes and the sky have larger keys, so they draw before the quad and are inverted. The reverse-sort condition0x5828f0(([0x8BCBC8] & 0xC) == 0xCplus bit 0x20000000) is not verified.Before: OpenTPW drew every entity, including the lobby's weather renderer, and the invert quad after them, so the bolt and the rain came out dark.
Now: the other entities, then the flash quad, then the weather renderer (
GameFlow.RenderLobbyLayers). The strike rate and the one-frame duration are unchanged.docs/AUDIO.mdno longer says the flash is an opaque white frame.A test pins the order.
The online login dialog follows tp.exe's own table and keeps its additions inside frames (October 24, 2026)#
The login dialog's fields for the server address and the authenticator code, and its Register and Forgot password buttons, sat below the login window and covered the form and the pause menu behind it. The check button was a small square with its label, and the Back button clipped its label over a round model.
The dialog is built from tp.exe's table 0x7585a8 (
OriginalLayoutTables.LoginWindow, generated bytpw_exe_layouts.py; built by 0x4bb070 with UITEXT 0xec-0xee and 16-character fields, the twin of the dial-up details dialog's table 0x7583e8, which the generator checks and ties to the builder's push at 0x4bb08f): thewdialogwwindow, the two!framefields with their labels and insets, the title, the check button (b_okay, -1) and the cross (b_exit, -2), both bare round buttons with hover help.OpenTPW's own controls (server address, authenticator code, Register, Forgot password) sit in a framed panel of their own (
w_med) under the original window, and the status line sits in the panel under the code field (the original window has no room for a line). Nothing leaves a frame or covers an original control.The Back button of the other online dialogs (and the two-step setup dialog's) is the round
b_exitcross at the window's bottom right corner, as the original dialogs have it, instead ofb_listparkwith a clipped label.
Verified: LoginFormLayoutTests checks the table, the containment in the window and in the panel, that nothing overlaps and the Back button's place; the front-end smoke test checks the same on the live screen and captures the dialog from the lobby and from the Publish Park form.
The login dialog reports a missing server address in the game's language (October 24, 2026)#
With the server address field empty, logging in showed the .NET message "Invalid URI: The URI is empty." in English in the login dialog's status line and in the lobby's status at the bottom right, whatever the game language.
The address is checked before connecting (
OnlineSession.ParseServerUrl, used byUseServer):An empty field says "Enter the server address." and does not connect. The dialog still opens with the remembered server or the browser build's own address (
SuggestedServerUrl) in the field, but an emptied field is never replaced by it, nor refilled: the player may have cleared it on purpose, and logging in sends a password.A malformed address, or one
OnlineClient.ValidateServerUrlrefuses (no http/https, credentials, query or fragment, http:// to a public host), says "Enter a server address in the form https://server.example/ (http:// only for a server on this computer or the local network)."Both are new OpenTPW labels (
OnlineLabel.EnterServerAddress,OnlineLabel.InvalidServerAddress) in all nine languages of the online tables, with plain apostrophes in French. The same check covers "Forgot password?" and the developer panel.
Connection failures no longer append the .NET reason.
A failed or timed-out request, or a response that broke off (
HttpRequestException,TaskCanceledException,HttpIOException), shows only the original "Couldn't connect to server" error (ERRORMSG.str79). Before, the reason was appended in brackets, and a timeout showed "A task was canceled."A chat connection that fails on the network shows the original "Couldn't connect to chat server" (
ERRORMSG.str69), which OpenTPW had defined but never used. Before, it showed the raw socket message, or the general connection error with its reason.The .NET reason goes to the log at info level.
Verified: OnlineServerAddressTests (new): the labels in every language, the refused addresses, an empty address with a default server offered, and a Dutch login dialog with an empty address and with http://example.com, whose status and the lobby's show the Dutch text and whose emptied field stays empty. With the game data, 953 online, chat, co-op, postcard, presence and language tests pass (28 skipped need the language CDs); the native smokes pass.
Still open:
OnlineExceptiontexts are shown as they are: errors the server sends in its own words, and the client's English text for a chat socket the server refused (401).Other
IOExceptions of an online operation still show their message. A response that ends early is anHttpIOException, but some other transport read failures surface as a plainIOException, like the local file writes of a download; telling them apart needs the client to classify its own reads.File errors while exporting or importing a park (
IOException,UnauthorizedAccessException) still show the system's message.
The Publish Park form shows its check button and follows tp.exe's own table (October 24, 2026)#
The Publish Park form, opened from the pause menu, had no visible submit button. Its check button had no model, so it drew nothing but a faint label, and the close button's "Back" label was clipped over its round model. OpenTPW's website toggle and export button sat below the window and covered the pause menu's lines behind it.
The form is built from tp.exe's table 0x7595b0 (
OriginalLayoutTables.PublishWindow, generated bytpw_exe_layouts.py, built by 0x4c4670, handled by 0x4c4480), as the postcard window is:window2, the two!framefields with their inner insets, the title, the check button (b_okay, -1) and the cross (b_exit, -2), both bare round buttons with hover help.The original's field behaviour is ported. The name field holds 15 characters and starts with the localized theme name of the park's level; the description holds 126 and starts with UITEXT 0xdc; the title is UITEXT 0xda. Enter in the name field and Tab move the focus to the description; Escape and the cross close the form.
The check button has no enabled test, as in the original. It publishes and closes the form once the server has the park. While logged out a click opens the login dialog.
OpenTPW's own controls. The website toggle and the export button sit side by side in the strip of the window's green area below the description field; the status line moved to the free column left of the fields. No control covers an original one or leaves the window.
Mod-recording parks. The refusal text is now a localized label in all nine languages and says "exported or published".
ShowPublishchecks it before the city globe opens (a dialog), the pause menu's Publish Park line is disabled for such a park, and the form's status column shows the refusal rather than a stale status.The close buttons of the other online dialogs now use
b_exitwithout the clipped "Back" label.
Verified: the front-end smoke test opens the form from the park (English and Dutch captures, plus the login dialog a logged-out tick opens), checks the models, the limits and that the controls lie inside the window; PublishFormLayoutTests checks the table-derived layout and the localized refusal.
Every test fails when it leaves a global file system changed (October 24, 2026)#
PRs #818 and #819 fixed 32 test classes that left their own game-data FileSystem behind as the global one, so later tests passed only in the full suite. An uncommitted probe found them, and nothing stopped a new class from doing the same. Now every test runs inside a guard that fails it when it ends with another global file system than it started with.
How the guard reaches every test.
Every test class is in the namespace
OpenTPW.Tests, and C# finds a type of the enclosing namespace before one that a using directive imports.So
[TestClass]there now meansOpenTPW.Tests.TestClassAttribute(source/OpenTPW.Tests/GlobalStateGuard.cs), which derives from MSTest's.MSTest 2.2.7 asks the class attribute for the attribute that runs each test method. This one wraps it in
GlobalStateGuard, whoseExecutecovers the test's[TestInitialize], the method and its[TestCleanup], once per[DataRow].No existing test file was edited.
What it checks:
FileSystem,SaveFileSystemandCacheFileSystem, by reference, before and after each run. A new file system at the same folder counts as a leak too, because it carries its own overrides and remembered lookups.What a leak does.
A passing or inconclusive test fails. The message names the global and the folder the test left it at, for example
FileSystem was null and is now the file system at /var/folders/…/opentpw-guard-demo-VS27MJ, and says how to fix it.A test that already failed keeps its own message and stack trace, and the leak is added to its standard error output.
The guard then puts the old value back, so only the leaking test fails and the tests after it start as they would alone.
Logis not checked. ALoggerkeeps no state of its own: every instance writes through the same static methods. About 150 test files set one (Log ??= new()orLog = new()) and never put it back. A check by reference, or of null against set, would fail them, although nothing they leave changes what a later test sees except whetherLogis null.Why not something less magic.
MSTest 2.2.7 has no per-test hook for a whole assembly.
A base class or a renamed attribute would change nearly 900 test files, and every new class would still have to remember it.
Shadowing the attribute changes no test file.
GlobalStateGuardTests.EveryTestClassOfThisProjectRunsItsTestsThroughTheGuardfails when a test class escapes it, for example through another namespace or a fully qualified[Microsoft.VisualStudio.TestTools.UnitTesting.TestClass].
The proof is
GlobalStateGuardTests(13 tests).It runs stand-in tests through the guard, nested inside the real test. A passing test that leaves any of the three globals at a new folder fails, naming that folder, and the guard puts the old value back.
An inconclusive test that leaks fails and keeps its reason. A failing one keeps its own failure and gets the leak in its error output.
A new file system at the same folder is a leak. A test that puts the value back keeps its result. A runner that throws still has its leak put back.
Its own
[TestInitialize]and[TestCleanup], a plain test and each[DataRow](with its own arguments) check that MSTest runs them inside the guard.
Verified:
The with-data suite ran once, inside a slot, with the game data, Theme Park Inc data and the TPWS saves: 11,014 tests, 10,823 passed, 191 skipped, none failed. No test output carried a guard message, so with #819's fixes no test leaves any of the three file systems changed, and the save and cache checks keep the suite green.
A positive control on main (c85211222, before #819) with only the guard added: the 31 classes #819 fixed, with data. The guard caught all 31: 169 tests failed with its message, for example
FileSystem was null and is now the file system at …/theme park 2/Data. The other 48 tests of those classes, which leaveFileSystemalone, passed, and nothing else failed.An uncommitted demo class ran real leaking tests through MSTest.
Each of these failed, naming the folder: a passing test, an async test, an inconclusive test, a
[TestInitialize]that then stops withAssert.Inconclusive, and one of two[DataRow]s.A failing test kept its own message and stack trace, with the leak under "Standard Error Messages".
The other row, a test with
[ExpectedException]and a test that put the value back passed. A test after a leak saw null again.
Without data, the 188 classes that assign one of the three globals: 2,068 tests, 1,528 passed, 540 skipped, none failed.
The browser determinism pins build (
-p:OpenTpwDeterminismPins=true) compiles the two new files. It runs its tests without MSTest, so the guard does not apply there.Repository checks:
fidelity_register.py --writeand--check,progress.py --checkand the 22 tool contract suites frombuild.ymlpass.
Still open:
The guard covers the three file systems only. Other globals that tests replace, such as
ObjectCatalog.BonusDataRootandInput.TextEntryActive(#798), are not checked.A test with
[Timeout]that times out is abandoned by MSTest 2.2.7 while it still runs; whatever it changes after that is not seen. No test uses[Timeout]today.
Kart and water track pieces drape onto the terrain (October 24, 2026)#
Part of #829 ("big gaps in the JurassicKart track"). Each tile of a kart or water track was drawn as one rigid piece at the midrange height of its 3 × 3 landscape vertices, so tiles on a slope left steps and slits at their joints. tp.exe loads every one of these pieces with a drape flag and moves each mesh vertex onto the landscape.
The original's mechanism.
The kart and water kit loaders (
0x522AA0,0x522C60) call the model loader0x4629D0with the load flags0x10422. Its bit0x2becomes loader flag0x40(0x462A4A);0x461F10then ORs0x20000into every mesh node (0x462610..0x462631) and sets header bit0x80(0x4625F4).The instancer (
0x522B90) creates each tile through0x463060with flags0x33A. Flag 8 calls0x469940→0x469A80, which sets every vertex of a node with0x20000to its model height plus the landscape under the vertex minus the instance height. The landscape value is the cell's triangle chosen by cell-word bit0x4, always split: no0x800planar shortcut, no bounds test. There is no grid-corner snap (0x46A5A0needs loader bit 1).The original never levels land under a track tile (no landscape writes in
0x539760,0x5370E0,0x538FC0), so building on slopes is allowed.
Port.
TrackDrapeandLandscapeSampler.SampleDrape(newIParkGrid.GetDrapeHeight): every placed tile gets its own draped vertices per part; arm masks are applied before, as before. A tile playing its water clip animates a copy of its own draped vertices.Vehicle surface: pieces without a surface record are sampled in mode 1 at the probe (landscape at the probe + header +0xA0), not at the tile's instance height. The loader's drape flag gives every kit piece header bit
0x80, so the Splish Splash and Ooze CroozQpieces (+0xA0= 0, no record) are now mode 1 with offset 0, where they were mode 4.Pieces with a surface record (
H,H_U,H_Din every kit) are mode 2:0x44A870sets the instance block's bit 8, which0x450EA0tests, for exactly the models with a dummy record of type bit 2. The faces they read are the tile's draped copy (0x450F20reads the instance's own vertices). This settles the part of TRACK-001 that said the block's bit 8 was not read.TileHeightis unchanged (cell lookup of.hmp, bounding boxes, the tile's instance height).
Not a gap: face normals. The original refreshes face normals after the drape (0x473C30 → 0x473A40), but that routine rewrites only the entry each face's first word points to (face & 0x7FFF); all 784 kit meshes (counted per piece table entry) (21,214 faces) point into the face-normal block, none into the corner block. Vertex lighting (0x574660 → 0x5741B0) reads the corner normals, so the original lights draped pieces with their stored normals, as OpenTPW does. The refreshed face normals only feed the face sampler 0x451390, whose plane TrackSurface takes from the draped triangle.
Not ported, with evidence.
Queue models (
0x522900, flags0x12423/0x112423, which also carry the drape bit) are already lifted per vertex onto the ground byOriginalTerrain.BuildQueueModels(PATH-015). It uses the planar-shortcut sampler and an extra lift of 0.01 cell, and does not port the.hmpground deformation of loader bit 1; this is a separate follow-up in the path layer.
Verified.
New tests (
TrackDrapeTests): the drape sampler againstInCell, the far edge and negative points; the shared joint of neighbouring tiles at different instance heights; mode 1 at the probe; mode 2 bridge faces on the draped surface.Captures of
--load-original-level jungle --debug-kart-trackbefore and after: the track walls and deck no longer step at the tile joints.
The visitor portrait test passes alone again, and the lamp test no longer leaks its file system (October 24, 2026)#
VisitorLivePortraitTests.SingletonCloseReopenAndLowerScreenDrawDoNotReuseStaleDelegatesOrRequireUiUpdates failed whenever its class ran alone (--filter "FullyQualifiedName~VisitorLivePortraitTests") on main (a33f217f4, 73813b2b8 and a2c8300ac), while the full no-data suite in CI passed. The test threw a NullReferenceException in UiImages.Resolve while it drew the HUD stack.
Cause: the fixture has no UI models, so the visitor window's buttons fall back to the
purple_buttonart.UiContext.ResolveTexturedefaults toUiImages.Resolve, which lists/ui/texturesthrough the global game-dataFileSystem, and that is null when the class runs alone.Why the suite passed:
ObjectLightTests.Cleanupput the saved file system back only when it was not null. AfterTheExampleLampLoadsThroughTheModPipelineWithItsLightAndSettingsAndItsScriptDrivesTheLight,FileSystemstayed the lamp test's stand-in game folder, which the same cleanup then deletes.Every later class that saves and restores
FileSystemput that value back.In the portrait test, listing
/ui/texturesin the deleted folder threw aDirectoryNotFoundException.UiImages.Resolvecatches that, sopurple_buttonresolved to nothing. The empty listing then stayed in the shared listing cache until something reset it.
How it was found:
One instrumented run of a broad filter logged every change of
FileSystemwith the test on the stack, and the failing test's inputs. The filter held 1848 tests: the classes that assignFileSystemby its short name, plus the portrait class.At the portrait test,
FileSystemwas the lamp test's folder, and/ui/textureswas not cached yet. The lamp test made the only change from null to a file system that nothing undid.A two-test filter, the lamp test plus the portrait test, passes; the portrait test alone fails. In these runs the classes ran in name order, which MSTest does not promise.
Fix:
The portrait tests' UI context resolves no image (
ResolveTexture = _ => null), as the other synthetic HUD drawing tests do. The test no longer reads the global file system or fills the shared listing cache, and its assertions are unchanged.ObjectLightTestssaves the file system before anything in its setup can fail, and its cleanup puts it back, null included.
Verified:
The portrait class passes alone (74 tests), and so does the failing test on its own.
ObjectLightTestspasses alone: 21 passed, 1 skipped without game data.A broad filter of 2856 tests passes: 2359 passed, 497 skipped, none failed. It holds every class that assigns
FileSystem, the portrait class, and the 75 classes afterObjectLightTests(in name order) that use a UI context, the park HUD or the game flow. Those that set no file system of their own now see none, as they would alone.An instrumented run of that filter found no class leaving
FileSystemset.
Still open:
Fifteen classes still restore
FileSystemonly when the saved value is not null. They replace it only when original data is present, so the no-data suite never sees them. In a run with that data, the first of them leaves the real data asFileSystemfor the tests after it.With the game data (
OPENTPW_GAME_PATH):AudioIntegrationTests,HeldSoundCorpusTests,KeptBodyAssetTests,OriginalThingSlotsTests,ParkLandOriginalDataTests,PoolsTerrainCorpusTests,PreviewDepthOrderTests,ShopVisitAssetTestsandWinterPriceMeasureTests.With Theme Park Inc data (
OPENTPW_TPI_PATH):ThemeParkIncFrontEndTests,ThemeParkIncLanguageTests,ThemeParkIncPlayTestsandThemeParkIncViewerTests.With both:
TpiRidesEndToEndTestsandTpiRidesShippedModTests.
The with-data test classes put the global file system back (October 24, 2026)#
In a run with original data, 31 test classes left their own game-data FileSystem behind as the global one. A later test that reads FileSystem without setting its own then got that data instead of the null it gets when it runs alone, so it could pass only in the full suite. The no-data suite in CI never saw this: without the data, every setup or test that would replace FileSystem stops at Assert.Inconclusive first.
Fifteen classes put the saved value back only when it was not null. In a run that starts without a file system, the first of them to run kept its data in place, and every later one saved and restored that leaked value.
With the game data (
OPENTPW_GAME_PATH):AudioIntegrationTests(the first in name order),HeldSoundCorpusTests,KeptBodyAssetTests,OriginalThingSlotsTests,ParkLandOriginalDataTests,PoolsTerrainCorpusTests,PreviewDepthOrderTests,ShopVisitAssetTestsandWinterPriceMeasureTests.With Theme Park Inc data (
OPENTPW_TPI_PATH):ThemeParkIncFrontEndTests,ThemeParkIncLanguageTests,ThemeParkIncPlayTestsandThemeParkIncViewerTests.With both:
TpiRidesEndToEndTestsandTpiRidesShippedModTests.These fifteen are the "Still open" list of the visitor portrait entry (#818), which this change closes.
Sixteen classes replaced it and never put it back.
In
[TestInitialize]:BumperTypeCoverageTests,FileSystemTests,GuestAssetTests,GuestMeasurementAssetTests,M3GateAssetTests,ParticleSpriteAtlasTests,PathAssetTests,PrototypeRideSaveAssetTests,RideCameraTests,RidesSweepTests,TourAssetTests,TrackAddOnDataTests,TrackAssetTestsandTrackPieceClipDataTests.In two of their tests:
TourEffectTestsandVehicleEngineVoiceTests.Fixing only the first group would have left
BumperTypeCoverageTestsas the leaker right afterAudioIntegrationTests.
Fix.
Each of the 31 classes saves
FileSystemas the first statement of its[TestInitialize]; four classes get one. Its[TestCleanup]puts the saved value back unconditionally, null included.MSTest 2.2.7 runs
[TestCleanup]even after a[TestInitialize]that stops withAssert.Inconclusiveor an exception; two throwaway test classes confirmed it. Because the save comes first, that cleanup puts back the value it found.AudioIntegrationTestsandHeldSoundCorpusTestsalso restoredObjectCatalog.BonusDataRootinside the same null check. Its save moves first too, but their cleanup puts it back only when the setup changed it, because its setter also stops the catalog followingOPENTPW_BONUS_DATA.
Verified:
The with-data suite ran once on this change, with the game data, Theme Park Inc data and the TPWS saves: 11,003 tests, 10,812 passed, 191 skipped, none failed. Its sources were those of this branch after merging main with #818.
An uncommitted probe wrapped every test and logged three things: every change of
FileSystemwith the test frames on the stack, each test's reads of the value it started with, and each test that ended with a different value. All 2,335 changes were undone: every test started withFileSystemnull and ended with the value it started with.337 test runs read that inherited
FileSystemin game code, and all passed with null. Two more tests read it only to check that a CLI export leaves it alone.Almost all of these reads are
ParkHud.CursorArt; with no file system, the system pointer stays.The rest are
ModContentRoots.FileSystemOrNull,ObjectAssets.TextureDirectoriesandAdvisor.SayResponseParts.No skipped test read it.
The same 633 tests on main (c85211222, with the probe): the 32 classes behind those runs, plus
AudioIntegrationTests.AudioIntegrationTestsleft its game data behind. 291 of the 337 runs read it, and all 337 passed.On this branch they all read null, with the same result: 632 passed, 1 skipped (a language-CD test, skipped in both runs).
The 31 changed classes alone: with data, 217 of 217 pass. Without data, 42 pass and 175 are skipped, which exercises the cleanup after an inconclusive
[TestInitialize].
Still open:
Nothing stops a new test class from leaving
FileSystemset again; only a with-data run with such a probe shows it.Other global state that tests replace is not covered here. That includes
Log, and the cleanups ofTpiRidesEndToEndTests,TpiRidesShippedModTestsandThemeParkIncLanguageTests, which clearObjectCatalog.BonusDataRooteven when their setup left it alone.
The river and the harbour's glass roof draw like the original's translucent pass (October 24, 2026)#
Part of issue 829 ("multicoloured river", "harbour glass roof"). OpenTPW put every terrain mesh and every object part into batches in file order, with depth writes on, so a translucent mesh drawn before the geometry behind it hid that geometry: the Jungle river showed a flat blue sheet with the bed painted over it in patches, and the glass of the arrival and departure roofs hid the roof's supports and the plaza under it.
Original. tp.exe gives each face a state word from its texture's own alpha type (0x581790 -> 0x590C40). The renderer's mask
[[0x879AB0]+0xC]is 0x3000 (0x5667D0): the frame batcher 0x581DB0 draws faces whose state has bit 0x1000 or 0x2000 (opaque 0x1256, alpha-test-0xF0 0x2756) at once, and 0x565590 keeps the rest (0x556, 0x200552), sorting each record's triangles by the sum of their vertex depths, largest first (0x565490). 0x582AD0, called after the batcher by 0x582170 at the end of the scene pass 0x576A00, draws those records last, sorted by 0x5829E0 on the average vertex depth, largest first. The state decoder 0x567620 gives 0x556 an alpha blend with an alpha test at 0x10/255 and keeps depth writes on. Both halves of 0x582170 run on the Direct3D path (mode 1 ofDAT_008BD524, 0x44DD50).What decides translucency. The header of the
.wct: the loader 0x564C00 loads the alpha chunk only at 32 bits per pixel, 0x574D3A sets the type word 0x25 for that and 0x27 when header byte 1 is also non-zero, 0x5755F0 turns them into texture flags 0x100 and 0x200.TextureFile.ReadAlphaTypereads it (opaque, cut-out, translucent); over the 312 archives of the data, 2,488.wctmembers that carry an alpha plane are translucent and 236 are cut-outs.wr_water3andgte_rof2are translucent; their low-detail copies instexturehave no alpha plane and stay opaque.Port.
Modelclassifies its texture slots from the header and splits the faces of translucent slots into companion models, one record per (part, texture), so every consumer oftest.shader(terrain meshes, heightfield, paths, objects, coaster, track, tour, lobby) gets the pass without per-consumer code;OriginalTerraingives a mesh with translucent textures a model of its own. Companions are submitted toWorldPass, whichLevel.Renderflushes after the other entities (the lobby after its layers), farthest first by the mean clip depth z/w of the vertices; a companion sorts its triangles farthest first by the sum of the corner depths (Model.OrderTriangles, a dynamic index buffer uploaded only when the order changes). Pool spray, pool water, particles and weather draw after the sorted list (Level.SplitLate, PTCL-905).test.shadertests translucent faces at 0x10/255 (vertex bit 0x20000000), cut-out faces at 0xF0/255 (bit 0x10000000, state 0x2756) and the rest at 0.1; the precompiled browser shader is regenerated.Second review. The pool swimmers draw after the pool water again (
GuestRenderer.DrawsAfterWater, the late group ofLevel.SplitLate, whose two lists are reused each frame); the busy-park frame cost is back at the main branch's (zoom 110: 1.76/1.79 ms against 1.93/1.72, zoom 300: 3.12/3.16 against 3.20/3.14; the pass uploads every re-sorted index set before its first draw, a shared model keeps one sorted set per rotation, equal uniform blocks are written once, and--frame-statscounts the pass's records); a slot whose texture frames differ in alpha type changes pass with its frame (Material.AddSlotAlternatives,CurrentSlotType); the state bits 0x800, 0x5156 and 0x20000 are shown to be unreachable from the data (Md2StateFlagCorpusTests) and the wrap bit isTextureSlotAddressing's; interface cut-outs (ipan,smallguage) draw with the original's 0xF0/255 test (UiImages.CutOut) and the black key of UI-034 is retired, the ID narrowed to the unread consumer of slot flag 0x2 (state bit 0x800000).Before and after. Native captures of the Jungle river (
--capture-camera -18,0,30,0) and the harbour roof (-10,-76,40,-90): the river bed shows through the water and the cyan halo around leaves is gone; the roof panes show the supports, the road markings and the plaza.Verification. The rendering, terrain, object, particle, texture, model, shader, weather, sign, level, MD2, gate, UI, lobby, pool, WCT and alpha test filters with the game data (3,393 tests: 3,296 passed, 97 skipped, none failed), the rest of the test project with the game and Theme Park Inc data (7,748 tests: 7,635 passed, 113 skipped, none failed; no determinism pin moved, the change draws only),
BrowserPinsExclusionTests, the precompiled web shader test, the browser pins build (dotnet build source/OpenTPW.Web -p:OpenTpwDeterminismPins=true) and the five native smokes (front end, sandbox, Jungle level, park resume capture and restore).Tests.
WorldTranslucencyTests(header classification, the 32-bit alpha-plane decode rule, state words and the 0x3000 mask, the face split, the triangle and entity sort order, the level's draw sequence) andTextureAlphaTypeCorpusTests(every texture of the data, the named river and roof textures).
Still open:
The original's deferred particle and weather batches (0x556, 0x200552) join the same far-to-near list as the world; OpenTPW draws them after the whole sorted list (PTCL-905).
The alpha-reference index (0x10/0xF0 needs index 2, which 0x567270 sets when the device probe passes) and the reverse sort 0x5828F0 (render-flag bits 0x4 and 0x8, no writer found, and an instance flag 0x20000000 of the draw call) depend on the device and the draw call, not on the data; neither is reproduced and neither has been observed on a device.
The atlas-page grouping of the batcher has no counterpart here.
The advisor speaks without a stall after a join or a park start (October 23, 2026)#
A guest's build of a shared park now prepares the joined park's advisor as a park start's build does, and both builds decode the advisor's first lines ahead (COOP.md, "The game's join" and "Measurements"; [EXT:online-coop-snapshot-join], [EXT:park-entry-preparation]). This is the fourth part of C2c-2b-3.
The join's build reads what its advisor's first line reads: the advisor's tables, its shader, its rigs, their clip lengths and the theme costume. It keeps them in a store of its own, which the live game's frames do not drop, and the swap hands them to the advisor.
A park's build, a join's and a park start's, decodes the lines its start says first ahead in small slices: the Welcome, and in Instant Action the prebuilt park's line. The advisor plays the same audio as before, without decoding it when it speaks. In the browser such a line now starts on time instead of a few frames late. A line read before a mod or language change is decoded again.
The joined advisor's clock starts with the park's first update, as a park start's does.
On the desktop the frame that swaps a joined park in takes 70 to 78 ms instead of 168 to 228, and the advisor's part of it 5 ms instead of 106. In the page compiled ahead of time that frame takes 90 ms with its drawing instead of 110.
A browser can host a shared park in the smokes (October 23, 2026)#
The co-op join smoke's host phase now runs in the browser's game, and the desktop's join phase replays its recording (COOP.md, "The browser's host" and "Measurements"; [EXT:online-coop-snapshot-join]). This is C2c-2b-4.
The page builds and shares the Jungle park, takes two captures and records the session. The desktop guest's join, failed check, abandon, resync and every checkpoint to the end match it. A browser host and a desktop guest run one simulation, as a desktop host and a browser guest already did.
In the page a capture's cut takes 17 to 21 ms and its save serializes in slices, the longest 23 ms in the median run.
The smokes' host now runs the session digest's code once ahead before it hosts (
CoopSession.PrepareHostSteps, which the game's own sharing does not run yet), so the first checkpoint after the park is shared no longer takes a frame of about 70 ms in the page.scripts/smoke-coop-join-browser-host.shandscripts/measure-coop-join-browser-host.shrun and measure it.
The browser's own transport carries the co-op link through the real server (October 23, 2026)#
The browser's co-op link now runs end to end through the real server, not over a recording (COOP.md, "The browser's link to a real server"; [EXT:online-coop-session]). This is C2c-2b-5.
Two pages of the server, a host and a guest, log in, open the co-op socket with the token in its first frame, share a session, store and download a snapshot, and pass a frame and a message each way. Every payload is checked by its length and SHA-256.
scripts/smoke-coop-link-browser.shruns it locally, and the browser determinism workflow runs it against both of its pages. It needs no game data.CoopLinkProbeTestsruns the same check on the desktop against the loopback server.
A join's check and the level's end no longer stall the page (October 23, 2026)#
A guest's build of a shared park now prepares the check at the cut and restores the saved simulation in steps (COOP.md, "The game's join" and "Measurements"; [EXT:online-coop-snapshot-join]). These are the seventh and eighth parts of C2c-2b-3.
Both were mostly a process's first use of their code. In the page the code a call runs for the first time still costs its compilation by the browser's WebAssembly engine.
The build makes the economy digest's serializer metadata in its codec stage. A last stage then runs that serialization once over the joined park's economy, a part of its save a step. In the page the check at the cut takes 13 ms instead of 72, on the desktop 12 instead of 40.
The saved simulation's restore runs a part a step: the runtimes, the scripts, the guests' routing, the guests, the weather, the staff, the coasters, the other rides and the drawn tracks. The level's longest step takes 28 ms in the page instead of 69.
No build frame of a join in the page now reaches 50 ms.
The session digest's canonical text without a JSON tree (October 23, 2026)#
The economy part of the session digest is now written as canonical text straight from the park save's bytes and hashed a byte a step, with the same text and the same hash as before (COOP.md, "The digest's canonical text"; DETERMINISM.md, "Canonical state hash"). This is C2c-2b-4b.
A guest's check at the resync's cut takes 5.9 ms in the page instead of 7.6, and the resync's digest stage 11.8 ms instead of 23.3; on the desktop 1.1 and 2.3 ms instead of 2.0 and 7.2.
No checkpoint frame of a page host reaches 30 ms any more. The save's serialization is now the digest's largest part in the page.
Every pinned hash is unchanged; a new test keeps the old tree-built text as the reference.
Co-op: a joined park's objects restored over steps (October 23, 2026)#
A guest's build of a shared park now restores the park's saved objects one a step instead of all in one, the longest frame of a join so far (COOP.md, "The game's join" and "Measurements"; [EXT:online-coop-snapshot-join]). This is the third part of C2c-2b-3.
The first step checks the whole saved layout before it places anything, each step places one object in the saved order with its saved seed and ids, and the last restores the allocators, so the park is the same as before, object for object. A failure clears the half-built park as before; a build given up part way is dropped whole.
On the desktop the saved types' signs are composed on the sign worker before their objects are placed, as the buy window has its listed types' signs composed.
The longest build frame of a join falls from 357 to 83 ms on the desktop and from 290 to 87 ms in the page compiled ahead of time. The longest frame of a join is now the swap's: 173 ms on the desktop, most of it the advisor's first update, and 110 ms with its drawing in the page.
The native join smoke now abandons its second build at the first frame with saved objects placed, and checks that nothing of it is left in the live scene.
An ordinary resume of a saved park still restores its objects in one call; only the co-op join and resync build their park over frames.
A joined park's save no longer stalls the page while it is read (October 23, 2026)#
A guest's build of a shared park now reads the park's save over steps (COOP.md, "The game's join" and "Measurements"; [EXT:online-coop-snapshot-join]). This is the sixth part of C2c-2b-3.
The save is parsed a 32 KiB slice a step, by the serializer's own asynchronous reader fed a slice a step, and its shape is then checked in steps of their own. The value and every refusal are those of one parse, message for message.
In the page compiled ahead of time the save stage's longest step takes 15 ms instead of 91, and a resync's 3.5 ms instead of 54. On the desktop the longest step is 15 ms instead of 80.
The measuring join smoke now counts the garbage collections of every build stage and long frame, and names the parts of the check at the cut and of the level's last step: the two remaining steps of more than 50 ms in the page, both mostly a process's first use of their code.
Co-op: the swap's frame split up (October 23, 2026)#
The frame that swaps a guest's built park in no longer does the check, the swap, the first ticks and the park's first-time work all at once (COOP.md, "The game's join" and "Measurements"; [EXT:online-coop-snapshot-join], [EXT:park-entry-preparation]). This is the second part of C2c-2b-3.
The session checks the built park against the host's digest at the cut in the frame the build completes in, and swaps it in the next. A build that passed its check is swapped in even when the build's deadline passes in between.
The swapped-in park's ticks wait for the frame after the swap; a frame point that held its ticks reports no frame it follows yet, so a join's catch-up still ends at a frame point that ran ticks. Ticks are deferred, never dropped.
A last build stage,
prepare, makes the joined park's first-frame work ahead, in steps, without changing the order of anything that is drawn: the coasters' views (track, cars, models and textures), the pool bridges' assets and meshes, and the swimmers' sprite sets. A prepared coaster view starts its scrolling textures at its first frame's clock, as an unprepared one does, and a preparation that fails leaves that work to the first frame as before.In the page compiled ahead of time the swap's frame takes 119 ms with its drawing instead of 345, a resync's 39 instead of 144; on the desktop the swap's update takes 233 ms instead of 352. The longest frame of a join is now the objects' restore in both builds measured, C2c-2b-3d's.
Marks name each entity type's first update, the session's check, install, applied frames and ticks, the first commands and the pools' parts. They placed the desktop's 54 ms of shader compiles on first use in the advisor's first update, not in the entities' as C2c-2b-3a's notes had it.
A joined park's objects no longer stall the page on a type's first use (October 23, 2026)#
A guest's build of a shared park now reads what each saved type's first object reads in steps of its own, before it places the objects (COOP.md, "The game's join" and "Measurements"; [EXT:online-coop-snapshot-join]). This is the fifth part of C2c-2b-3.
The build reads every type's model first, with its sign when its parts show one and it is not the gate, whose sign shows the park's name; then its clips, its textures and its hoarding boards, a step each. In the page, which has no sign worker, a type's sign is composed over the composition's own steps and handed to its first object as the desktop's worker hands over its signs: the same pixels, its log written when the object uses it.
The restore's checks are a step of their own, and the layout's checks format a message only when one fails. The cell map's checks had made about ten strings for each of its 9,642 records, three times a join.
In the page compiled ahead of time the restore's first object takes 12 ms instead of 94 with the checks, a type's first object at most 21 ms instead of 62, and the validation stage's longest step 7 ms instead of 27. No frame of the objects' part of the build reaches 30 ms.
The measuring join smoke now records every build frame of 30 ms or more with what it was made of, so each long step can be named.
A guest's bubble from the turn's first tick no longer stops a save from loading (October 23, 2026)#
Since the guests cut their turns where the economy does (October 17), a guest's park turn is one past the turn of the guests' own tick count in some ticks of a park whose economy started ahead of them, such as Instant Action's prebuilt park. The snapshot does not hold that phase, and a restored park takes it again only on its next running tick.
A thought shown on such a tick stamps its bubble with that turn, and the guest snapshot's check refused it as a bubble from the future. A save, a co-op join's capture or a resync's taken then did not load: "Guest 52 bubble 17 at turn 856 is not a thought bubble".
The smarter guests extension's ride throughputs, meal times and complaints are stamped the same way, and their restore refused such turns too.
Both checks now allow the latest turn any phase can give: the tick count's turn, or one more unless a turn starts exactly at that tick. A later turn is still refused, and a park restored with such a bubble runs on as the original once its turns are aligned again.
The advisor's construction stamp moves for every object the game constructs (October 22, 2026)#
The advisor's days since an object was built (tp.exe 0x4C9070, read by the scan callbacks of the messages 60, 71, 73-75, 77-79 and 81) count from the park's mLastObjectBuilt (+0x21C30). The common object constructor 0x004DB090 writes it with the park time on its single exit (0x4DB7A3 calling 0x4C7680), and its five callers are all constructions: the build commit 0x529E10 (0x529FD5), which a purchase and the Move tool's re-placement both reach; the park setup's gates and lights (0x515BE1, 0x515C94, after the park init at 0x5159C8); the Instant Action finale's End (0x516B8B); and an arrival vehicle's first trip (0x51A57E). REA's callers and a byte scan for call instructions agree, 0x4C7680 has no other caller, and the loader 0x5179C0 constructs no object through the constructor but reads the saved word back (0x4C7289). OpenTPW moved the advisor's record only on ObjectBuilt, a purchase or a Move re-placement. The vehicles and End get their economy record through Level.BindFixedItemMadeInPlay (#764), which raised no event, so the first bus did not restart the count. They now register through ParkEconomy.RegisterFixedItemMade, which makes the same uncharged record and raises the new ParkEventKind.FixedItemMade, and the advisor moves its stamp on both events. The event is raised also for a type the economy catalogue does not know, which gets no record but was constructed all the same; a repeated research notification that adopts the live End constructs nothing and raises nothing. The stamp stays the advisor's own record: the event adds nothing the park save or the world state hash reads, so co-op digests are unchanged. An original save's import and a park's own fixed items at its start raise nothing; the gates and lights stamp turn 0, which the advisor derives when it attaches. The finale and arrival vehicle tests now attach an advisor through the level's own wiring and check that End and a seaplane, made a day into the park, restart its count (both checks fail without the change); a third makes both with an economy that knows neither type and checks that they stamp without a record and that the adopted End does not stamp again. Two advisor tests check that a registration moves no stamp and that a fixed item made in play leaves the park save and the world state hash exactly as a registration does. The related advisor, economy, finale, hash, co-op and resume tests pass (971, 51 skipped for want of game data), as do the CI tool contracts.
Still open: an original save's own mLastObjectBuilt is not read; the advisor derives it from the newest standing object (ADVISOR-009).
An original save's advisor counts from the park's saved construction and hire stamps (October 22, 2026)#
The advisor's days since the newest construction and the newest hire (tp.exe 0x4C9070 and 0x4C90D0, read by the scan callbacks of the messages 7, 11, 13, 60, 71, 73-75, 77-79 and 81) count from the park's mLastObjectBuilt (+0x21C30) and mLastStaffHired (+0x21C38). For a park from an original save OpenTPW derived both at attach from the newest standing object and the newest employed member, because the save's words were not read. They are now read and used.
The words. The analyser serializer
0x4C5D70writes six raw 8-byte stamps (0x4CEDE0) after the countersmMisbehavingKidstomLifetimeVisitorsand beforemMostPaidForTicket,mLargestBusLoadandmLongestStay:mLastStrike,mLastPuke,mLastPrank,mParkLastOpened,mLastObjectBuilt(0x4C6B9A) andmLastStaffHired(0x4C6BC4). Its load reads them back in the same order (0x510240,0x4C7289,0x4C72B3). The field names come from the serializer's strings.SaveAnalyserStampsreads them at body bytes 73,476 to 73,523, the 48 bytes of the analyser's16 + 48 + 12tail, andOriginalParkImport.AnalyserStampscarries them. The reader refuses a byte ring before them whose capacity is not 50, since0x4CEA00writes as many entries as a ring'smNumEntriesholds and another size would move the stamps.Nothing restamps them on a load. The loader
0x5179C0zeroes the six (0x518A43-0x518A85) and runs the serializer's load (0x518ABA, mode 0). The analyser constructor0x4C58C0, which stamps a new park's time, has its only caller in the new-world setup0x5156A0. The loader builds its staff through0x518E20and the role serializers, not the staff init0x504B90, the only caller of the hire stamp0x4C76D0, and it builds no object through0x4DB090, whose exit0x4DB7A3is the only caller of the object stamp0x4C7680. REA's callers agree with a byte scan for call instructions, and with a scan for the stamps' displacements, which finds no other access to+0x21C30or+0x21C38.Turns. A stamp is the park time
0x4F8690: the calendar'sFunnyTimeStartplus floor(turn x rate / 4) x 10^7 in 100 ns units (0x5FC530).OriginalEconomyImport.AnalyserStampTurnstakes both stamps as the turns of the save's calendar, its start and its rate, whose park time they are.AutomaticAdvisor.AttachLeveltakes them for a park from an original save, a player's own or a shipped seed. Only the calendar constructor0x4F7E80and the loader write the start and the rate (15000), so every stamp an original save holds is a whole turn at or before the park's turn, and for those the callbacks' days are exactly tp.exe's, (now - stamp) / 864,000,000,000. A modified save can hold other words. A stamp between two turns' times is taken at the earlier turn and reported in the import evidence; that can move the count by the day its seconds cross. A stamp before the calendar's start or past the park's turn keeps its turn, and the conversion cannot overflow for any saved word. The days count on OpenTPW's calendar of 3,750 seconds a turn, so for a modified save whose calendar runs at another rate than 15000 they follow the park's own calendar, as its dates do; the import reports that disagreement as before. The days since a stamp are now signed as__alldivdivides them, so a stamp still to come counts negative days where OpenTPW counted 0. The advisor snapshot of an OpenTPW save still replaces the stamps after the attach, so a resumed park keeps its own. Snapshot validation now refuses a snapshot that holds only one of the two stamps; the capture always writes both. Only an OpenTPW save from before the snapshot kept them, and a save that names no analyser, still derive them. ADVISOR-009, SAVE-010,docs/reverse/ADVISOR-SCAN.md,docs/TPWS-PAYLOAD.md,docs/SAVE-THINGS.mdand the producers'firstStampstag say so.The corpus. In all eleven private saves the six stamps lie whole turns from the calendar's start, at or before the save's turn. The four restart saves stamp turn 0. In the seven played saves
mLastObjectBuiltlies at turns 1,169 to 1,777 andmLastStaffHiredat 2,609 to 3,702. The derivation gave the hire stamp turn 0 in all of them, because no member is employed, and the object stamp 3 to 21 turns off. A side finding behind those object turns: the attraction stamp reader takes the day of the week as the hour. tp.exe's serializer writesFileTimeToSystemTime's words in the order year, month, day, day of the week, hour, minute, second and milliseconds, and its loader skips the fourth (0x4DC8A1). With that order every save's newest attraction time equals itsmLastObjectBuiltto the minute. The fix is left to its own change.
Tests: AdvisorSavedStampsTests checks the stamps' offset with independent arithmetic against the analyser body, the serializer's order slot by slot, and the refusals, a resized byte ring among them. It checks the import from two calendar starts and three other rates, a stamp between turns (also one whose seconds cross a day), stamps before the calendar's start and past the park's turn with their signed days, and the extreme words. It also checks a save that names no analyser, an advisor that takes the saved stamps over a park whose newest construction no longer stands and counts the original's days from them, the snapshot's priority, a snapshot with only one stamp, and the derivation of a resumed park. A corpus case, inconclusive without OPENTPW_TPWS_SAVES, checks the eleven saves through the economy import. An independent Codex review found nothing blocking; its three should-fix points (the byte-ring capacities, the calendar's own rate, the half-recorded snapshot) and its wording nit are in, and a second review of those fixes found nothing blocking either (its notes on a modified calendar rate and the producers' tag are in too).
An original save's attraction time stamp is read in the loader's field order (October 22, 2026)#
The eight words tv[t] of an attraction record were read as year, month, day, hour, minute, second and two skipped words. In tp.exe the attraction serializer 0x4DB7D0 writes them from 0x5FC660 (FileTimeToSystemTime, IAT 0x6FD0BC, called at 0x4DB8EE on the park time at +0x18), which stores wYear, wMonth, wDay (SYSTEMTIME +6), wDayOfWeek (+4), wHour, wMinute, wSecond and wMilliseconds into its out-pointers, and the loop 0x4DB8FB..0x4DB953 writes them in that order. Its read branch reads the eight words back (0x4DC849..0x4DC874) and calls 0x5FC5C0 (SystemTimeToFileTime, IAT 0x6FD150) at 0x4DC8A1 with tv[0], tv[1], tv[2], tv[4], tv[5], tv[6] and tv[7]: the fourth word is the day of the week, which the loader skips. OpenTPW took the day of the week as the hour, the hour as the minute and the minute as the second and dropped the seconds, and its range checks let that through, so an imported object was dated up to almost a day early or six hours late: Wonder Land's newest object (its ferry) read as 00:17:42 instead of 17:42:30, sixteen park turns early, and every park's gates and lights (Saturday 2000-01-01 00:00) as 06:00. That build time feeds the scrap refund's first 30 days (0x4E2290) and the advisor's construction stamp, which it derives for an original-save park from the newest standing object (ADVISOR-009).
Theme Park Inc's Game.exe (no-CD, SHA-256 77ea0c41...) has the same code in its serializer 0x5DC430: the write branch calls 0x7D91E0 (FileTimeToSystemTime, IAT 0xC68EA0) on +0x20 at 0x5DC56E, and the read branch calls 0x7D9140 (SystemTimeToFileTime, IAT 0xC68FD4) at 0x5DD68E without tv[3]. ThemeParkIncAttraction had the same mapping and is fixed with it.
SaveTimestamp now carries all eight words in the serializer's order, and both readers share one SaveTimestamp.Read. The day of the week is kept as read, and the converted words must lie in year 0–9999, month 1–12, day 1–31, hour 0–23, minute and second 0–59 and milliseconds 0–999. The loader itself checks nothing: a field SystemTimeToFileTime refuses leaves the thing's time as it was and writes -1 to a status word the loader never reads; OpenTPW keeps refusing such a stamp as a damaged save. SaveTimestamp.ToDateTime is the time the loader rebuilds, and the economy import's build tick is the first tick at or after it. The Mac build agrees: its serializer writes the out-words of the imported TbTimeStamp::GetTime (eight int pointers, 0x100DAFD8) in order, and its loader passes every word but the fourth to TbTimeStamp::SetTime (seven ints, 0x100DB7D0).
The data agrees. In the eleven private corpus saves every attraction's fourth word is its date's day of the week, and each save's newest attraction time equals the park analyser's mLastObjectBuilt (+0x21C30, the fifth of the six stamps the analyser serializer 0x4C5D70 writes) to the 100 ns: Wonder Land Sunday 2000-02-20 17:42:30, Halloween World Saturday 2000-03-18 03:02:30, Lost Kingdom Wednesday 2000-02-23 12:22:30, Space Zone Monday 2000-02-21 23:55:00, and 2000-01-01 00:00 in the restart saves. Each of the 24 attractions in Theme Park Inc's prebuilt save has its mTimeOfLastSurveyReset equal to its time stamp read this way; the constructor gives both one clock value (0x5DB9DD, 0x5DB9E8).
New asset-free tests pin the order in both readers, keep any day-of-the-week word and refuse an hour of 24, a minute or second of 60 and 1,000 milliseconds. The synthetic import now checks the Belly Bounce's build tick as turn 15 (2000-01-01 15:37:30). The Theme Park Inc test body's stamp moves to the real order (Tuesday 2000-01-04 09:30), and the old invalid case that put 24 in the day-of-the-week word now puts it in the hour. A with-data corpus test checks the day of the week, the newest attraction against mLastObjectBuilt and the economy import's newest build tick against the same turn, and a Theme Park Inc test checks the prebuilt's survey stamps. All seven of these tests fail with the old field order.
Still open: the advisor derives its construction stamp from the newest standing object instead of reading the save's mLastObjectBuilt (ADVISOR-009); that is now the same turn for every corpus save.
Browser pins guard: desktop-only game files (October 22, 2026)#
BrowserPinsExclusionTests now also catches a test that uses game code the browser page leaves out. The new EveryTestFileUsingADesktopOnlyGameFileIsExcluded reads every <Compile Include="$(Root)/**/*.cs" ... Exclude="..."> item of OpenTPW.Web.csproj (the game's list, Client/Game.cs, Client/SignExport.cs, Render/ShaderCompiler.cs and the rest, and Common's SdlDisplay.cs). It collects the top-level types those excluded files declare with the existing TopLevelTypes reader. A type counts as desktop-only only when no compiled file declares it (the compiled game, Common and Files sources, the page's own files, and the test files the pins build compiles): the page's own stand-ins (Browser/DeveloperPanels.cs declares ParkLayout and OnlinePanel, and there are ShaderCompiler, LegacySettings, SdlDisplay and SdlMovieAudioOutput) and partial types with a compiled part keep their type. For those shared types the guard compares members instead, so ParkLayout.DrawOriginalImport or ShaderCompiler.CompileProgram count as desktop-only, as Game.ResolveSaveDirectory would once Game is split.
A failing file gets one line, for example add SaveDirectoryTests.cs to DeterminismPinsExcludedTests in OpenTPW.Web.csproj: it uses Game (OpenTPW/Client/Game.cs), which the browser build leaves out. Uses are read as before, from code only (no comments or literals), but CodeOnly now keeps the expressions of interpolated strings ($"{Game.X()}", raw $$""" ones too). Game type names are common member names, so the guard ignores a name after a dot (park.Settings), an initializer target ({ Cursor = 0 }) and a name the test file declares where it is visible (a field or helper method in its type, a local in its block, a parameter or lambda parameter in its body, block or expression), which C# resolves first. A using static of a shared type makes its desktop-only members bare uses, and comma-declared members (int a, b;) count. With those rules the current test tree has zero hits. Taking SaveDirectoryTests.cs off the list, or adding a file that calls SignExport.Run (the two CS0103 failures of October 21 and 22), fails the guard. TheDesktopOnlyGuardTellsGameUsesFromSameNamedMembers pins the rules on small examples. Codex reviewed it in rounds and found file-wide shadowing, lambda parameters (their declarations and scopes), using static and comma-declared members, compiled test types and interpolation holes; all are fixed.
Open: a desktop-only type reached only through a fully qualified name (OpenTPW.Game.X) is not reported.
Co-op: the browser follows a join recorded on the desktop (October 22, 2026)#
The co-op join smoke's join phase now runs in the browser's game too (COOP.md, "The browser's join"; [EXT:online-coop-snapshot-join]). It follows a join that the native smoke recorded on the desktop. This is C2c-2b-2: the desktop host and the browser guest are shown to run one simulation.
tools/web-coop-join.mjsserves a published page and the game's folder on this machine and opens the page with?coopSmoke=1in a fresh, headless, muted Chrome. It copies the recorded join in, runs the adversarial join or the measuring one from the front end, and reads the evidence back.In the page, the smoke runs under the page's own loop. When the run ends, passed or failed, the game runs on. A throw out of a frame is the run's failure too, and it also stops the page's loop, as any error in a frame does.
The browser's run passes in both the interpreter build and the AOT build. Every checkpoint digest, the cut, the final digest, the world hash and the save equal the desktop host's.
A build's work by section now counts a section that ran even when the browser's coarse clock measured no time for it.
Co-op: the join measured in the browser (October 22, 2026)#
The co-op join's cost is now measured in the browser too (COOP.md, "Measurements"; BROWSER-PERFORMANCE.md, "Joining a shared park"; [EXT:online-coop-snapshot-join]). This is C2c-2b-2c: its numbers decide what C2c-2b-3 splits over frames.
scripts/measure-coop-join-browser.shrecords the host phase once with the desktop's Release build, then runs the page's measuring join phase over that recording several times, each in a fresh Chrome profile.tools/web-coop-join.mjsrecords the machine and the checkout beside the runs.tools/coop_join_timings.pycounts the reused host phase once. It also prints each frame's whole call, the frame that checked and swapped the build in, and the frame of the smoke's final check. A native run's evidence does not hold that last frame, so the tool leaves the row out there instead of showing another frame.In a page compiled ahead of time, the longest frames of a join are the save's parse (0.39 s), the swap's frame (0.36 s) and the objects' restore (0.32 s). Interpreted, the objects' restore takes 1.4 s. The native measurement's table now shows the swap's frame too (0.33 s).
Two leads for C2c-2b-3:
The wait for the level's files spends each frame's whole budget asking whether they are there, about 6.4 s of 16 ms frames on the first join of a theme.
The join's build has none of the steps that prepare a park start's entering frame.
Co-op: the game joins a shared park (October 22, 2026)#
The game can now join a running shared park itself, and a guest whose park lost the stream gets the host's park again without leaving the session (COOP.md, "The game's join"; [EXT:online-coop-snapshot-join]). This is C2c-2a: the screens that start a join (C2d) and the measurements and the browser's join (C2c-2b) follow.
The game builds the host's park from the join snapshot over frames, beside the live front end (or the guest's own park in a resync), in a construction scene of its own, and swaps it in once it passes the check at the cut. A resync keeps the player's view.
The build refuses at once when this game's simulation mods or files differ from the host's: no capture could build then.
A join keeps the host's live park exactly as its snapshot holds it: the load's repairs (entrance links, a closed coaster reopened, a fresh tour controller, the land, the park's name) do not run, and each coaster's marker cells are taken over without writing.
A park start, a load or any other teardown ends a join that is still building; the front end's rebuild for a new language keeps it; a join that ends without a park says why on the front end.
CoopJoinSessionTests runs the game's join host asset-free (the build is a replay twin); a new native smoke, scripts/smoke-coop-join.sh, hosts a Jungle with coasters, pools with a bridge and a slide, a water ride with a track edit and an add-on it sells while the guest follows, a tour and staged tool state, records its session, and joins it in a second process from the front end: a capture with a wrong digest is refused beside the front end, a newer assignment abandons the next build part way, the newer one is built and swapped in, a resync follows, and the guest ends with the host's digest, world hash and save. Four bugs it found are fixed in their own changes: a coaster's marker bit refused every save of a park with a coaster; the arrival vehicles and the finale's End had no economy record; a park started from an original save could not be saved; and a load moved a ride's entrance and exit to a path laid nearer since.
Co-op: a join's build ends a frame's slice where it should (October 22, 2026)#
The guest's build of a shared park now ends a frame's slice at the two places a park start does, and makes the save codec's metadata in steps (COOP.md, "The game's join" and "Measurements"; [EXT:online-coop-snapshot-join]). This is the first part of C2c-2b-3.
The wait for a theme's files asks once a frame and leaves the rest of the frame to the live game. A browser copies those files between frames on the theme's first use, and the old loop asked until the frame's 12 ms budget was spent, most likely keeping the copy waiting. In the page compiled ahead of time the files now arrive in 9 frames instead of 371, and the whole join, from asking to the swap, takes 2.7 s instead of 8.9.
The save codec's reflection metadata is made in steps of its own, one type each, before the save is read, as a park start makes it for its first snapshot. A process's first parse made it in one go, most of a page's 384 ms parse, which now takes 88 ms.
A construction step that announces a long one next (
Level.NextStepIsLong, from the build steps split for a park start) ends the slice, so the long step starts a slice of its own.The measuring join smoke records the named work of the frame that swaps the built park in, and of the frame after it. In the page compiled ahead of time that frame is now a join's longest: the joined park's first update of its level, the check at the cut and the advisor's first line. The save's parse is timed in parts: the JSON, the shape check and the mods check.
The tables of every co-op measurement moved to COOP-MEASUREMENTS.md, with the baseline of main and this change's runs.
Co-op: what a join costs, measured (October 22, 2026)#
A co-op join now times itself (COOP.md, "Measurements"; [EXT:online-coop-snapshot-join]). This is C2c-2b-1: the numbers decide which parts of the join are split over frames next, once the browser's are in.
The host keeps, for each capture: the cut in one frame (the digest, the session state and the save's snapshot), the save's serialization and the compression over frames, and the upload.
The guest keeps, for each build of a capture, whatever became of it (joined, resynced, failed its check, timed out, abandoned, refused, failed, or ended with the session):
the download and the decode;
every build stage with its steps, frames and longest step, and every step that alone took the frame's budget;
the build's work by section;
the check at the cut, the swap and the catch-up.
The native join smoke writes them into its evidence with every update frame of the join, and requires them whole. A measuring mode joins the untouched captures once each, and
scripts/measure-coop-join.shruns it five times in a Release build, withtools/coop_join_timings.pyprinting the medians and ranges.First results on the desktop: the guest's worst build step is the restore of the park's objects, about 0.44 s in a single frame in a fresh process; warm, the guests' setup leads with about 0.09 s. The host's cut takes one frame of 4 to 12 ms.
scripts/run.shbuilds and runs the Release configuration withOPENTPW_CONFIGURATION=Release.
Co-op: the Move tool's end is a command (October 22, 2026)#
The command layer now hears when a player's Move tool ends (COOP.md, "The command layer"; [EXT:online-coop-commands]). The Move tool's placement skips research and the balance test, so the layer accepts it only for the type the same player picked up. Until now that type stayed carried after the tool ended, so a peer's command could place it again without either test; the co-op join smoke found it as a stale carried entry in a later capture.
Whatever ends the Move tool (a placement without exactly Ctrl, the queue or track tool a placed ride opens, a cancel, another tool) issues an
EndMoveCommand, and the player carries nothing after it.While the tool stays (a placement holding exactly Ctrl), another placement of the type is still the Move tool's and is charged in full, as in the original.
A pick-up while the tool still carries ends the old move first.
Recorded command logs from before replay as they did: they hold no
EndMoveCommand, and a single-player park's world does not change.The co-op join smoke now requires its second capture to carry no Move entry, as it requires the other tool states the first capture staged to be gone.
Co-op: the join smoke's runner split from its test (October 22, 2026)#
The native co-op join smoke (COOP.md, "The game's join"; [EXT:online-coop-snapshot-join]) no longer owns its end itself. This is the first step of C2c-2b-2, the browser's replay of a join recorded on the desktop.
The smoke takes its runner's completion and failure handlers. The native runner keeps its watchdog, closes the window on completion and exits on a failure, as before.
The join phase shows the front end only when none is shown yet (a page's start shows one), and reads its captures only by flat file names in its evidence directory.
OPENTPW_COOP_JOIN_PHASE=hostruns the smoke's host phase only.
Co-op: a server that lost frames no longer ends a shared park (October 22, 2026)#
The host keeps only the frames its members may still need. A server whose stored frame number fell behind that, so that it asks for a frame no one holds any more, used to end the session. Now the host gets everyone the park again (COOP.md, "The host's trimmed frame"; [EXT:online-coop-snapshot-join]): it assigns every member a capture past its last frame, and tells the server the frames go on there (server protocol 7), so nobody needs the frames in between. Each member resyncs from its capture without leaving and without counting a failed join. The server never goes back, and only the host can skip. A stale refusal of a frame sent before the skip changes nothing, and a skip lost with the host's connection goes out again when it reconnects. The server also makes this rare: a frame number a deploy stored exactly now holds for the next run only, so a crash later in that run comes back as an unknown number, which the host fills from the frames it still holds; and a game only opens co-op on a server of protocol 7 or later. This is C2c-3; the screens that start a session (C2d) follow.
The end-of-park finale, as the original plays it (October 22, 2026)#
The finale around End.RSE is now the original's in both game types, and APPROX:RIDES-019 is retired (the end-of-park finale).
The player's record list. The original player's file keeps a record per park with a byte
mAllResearchCompleted(0x5AFF50,0x5B0D70,+0xB9); choosing a player gives every theme a record (0x5C83B0). When a park has nothing left to research, the completion handler sets the park's byte in every game type (0x5B0CA0), and the Full Simulation starts the finale (and advice 167) only when every park's byte is set (0x5B0C40). OpenTPW keeps the list in the one player's own progress file (ResearchCompleted, optional: older files load with none), as the player has no profiles ([EXT:no-player-profiles]); Instant Action marks its park there too.The winning camera. The winning screen rides End's camera seat (seat 1, node 38 of every
End.MD2), the ride window's Ride it! routine0x4E15B0→0x42A560, with the ride view's free look and its static on entry.The winning panel. The bounded screen and its Resume Game button are gone. The screen is the original's full-screen window with the language's
s_congratsbanner (table0x74FAF0,congrats.MD2of the language folder, which the UI registry now takes besideui.wadas0x4893C0does), animated by the window property table0x74FCF8(UiWindowAnimation: it squeezes, rises, turns once clockwise about (973, 470), falls and stretches, every step after more than 35 ms). It has no button: Escape and the late right click are its exits.After the dismissal. End is destroyed and the seat camera left (
0x516C10), the HUD returns, and Instant Action shows UITEXT 471 in the original's generic message box (0x47F020, table0x74F920), which pauses the park until it closes. Nothing is written to the player's file at the dismissal.Resume. The original never saves the winning handle; a park OpenTPW restores with End enters the same winning screen as a new finale.
End takes its thing slot in both game types (WALK-010 narrowed). Theme Park Inc (its twin of
0x5B0CA0has no caller) and read-only visits still never start the flow.Limits. As in the original, a park is recorded only when its research completes: a completion in a co-op session, with a reclaim pending, in Instant Action without a progress file, or before this change is never recorded later (no backfill). Builds from before this change refuse a progress file that carries
ResearchCompleted.
No pin moves: the finale needs the player's records in the Full Simulation, which no pinned run has. Tests: ParkFinaleTests, PlayerResearchRecordTests, UiWindowAnimationTests, and with the game data ParkFinaleCorpusTests. No original game files are included.
Footprint removal layer-isolation regressions (October 22, 2026)#
Added three asset-free tests for the existing ParkCellMap.ClearFootprint host contract: 192 add-on removal combinations (+/#, six track map types, all sixteen bridge-bit masks), eight mismatched-type cases also exercising four out-of-bounds coordinates and a free shape cell, and a real WriteFootprint-to-ClearFootprint '@' path-link lifecycle.
The free-cell fixture uses an empty map cell with nonzero metadata, so removing the free-type guard would clear it and fail the assertions; the out-of-bounds inputs verify no-op behavior, not an independent mutation test of the bounds guard.
The add-on matrix asserts all retained TrackCell fields, map metadata, unrelated map flags, adjacent sentinels, type counts and track counts. Repeated removal must not write the track layer when its AddOn bit is already absent. The '@' case checks reciprocal unlinking, clearing the removed map cell's owner/links/count, preserving its independent flags, and leaving the second-layer track record untouched. These deliberately synthetic removal-time states specify isolation of existing host operations; they do not claim that every seeded metadata combination is produced by original-game placement.
Production code is unchanged. Existing ParkCellOwnerTests covers basic add-on flag removal and track survival; these tests additionally protect exact preservation of the rest of each record and guarded no-op cases. Local work consisted of source inspection and static checks. C# compilation and test execution have not run; CI remains required. No .NET process, OpenCode provider, browser, original executable or game media was used.
ECON-050 and proposal #513 remain open. The native demolition helpers' per-type writes are not established by these synthetic tests, and no approximation is retired.
Guard escort admission failure regressions (October 22, 2026)#
Added an asset-free ECON-022 regression package for the existing guard state machine: six cases combine missing lanes, short lanes and an unreachable path island with two world seeds whose release-side bits differ. A successful booth-route control checks that the same fixture actually enters escort, retains its guest and draws no release side. Production code is unchanged.
The tests run StaffWorldSimulation.UpdateStaffMember, including its real navigation, state transitions, sounds and world generator. Only the IGuardGuests boundary records hold, lane lookup and release; it does not choose the guard's state, route result or random draw. The disconnected-path fixture independently verifies both walk masks fail before running the state machine. Assertions protect hold/release order, exactly one release at the guard's cell, both route-attempt masks, no draw before set-down, exactly one draw at set-down, catch/set-down sound order, and cleared chase ownership. The successful control rejects an implementation that simply releases every catch.
Source baseline: 274345b1a4d48cfd378202431240b9b5448e3b43. Existing GuardEntertainerTests covers successful escort, orphaned held guests and pickup during escort, but not failed escort admission. Guards.cs records the catch/failure sequence at 0x004D6790, the release-side draw at 0x004FEBC1 and the state setter at 0x004D65D0. These are existing repository annotations, not a newly executed original-game oracle.
Local validation is source inspection and static/Python checks only. C# compilation and execution have not run; independent review and CI are still required. No .NET process, OpenCode call, browser, original executable or original game media was used. ECON-022 and proposal #516 remain open: native booth-versus-entrance fallback, post-failure mask parity, stranded caching, imported object order, access-cell writers and pickup environment-row lifetime are not resolved by these tests.
Faster loading on hard disks: game archives stay open (October 22, 2026)#
Every read of a file inside one of the game's archives (.wad) opened the archive file again: 466 opens before the lobby and about 1,300 more for a park start. On a hard disk with a virus scanner each open costs time (issue #754). The game now keeps the archives it reads open, at most 64 at a time, and closes them wherever an archive may change on disk (a bonus import, a new game folder, the mods, the interface language, a texture pack switch) and when it quits. A start to the lobby now opens 11 files instead of 477, a park start with the build scenario 303 instead of 1,561; the bytes read are the same (ENGINE-PERFORMANCE.md, "Kept archive files").
Faster start on Windows: Direct3D shaders are compiled once (October 22, 2026)#
On Windows the game still compiled its shaders for Direct3D 11 at every start, by our estimate about a second on the PC of issue #754. The compiled Direct3D bytecode is now kept beside the other compiled shaders in the user's cache folder and reused until the shader, the compiler or Windows' own shader compiler changes; it is exactly the bytecode Veldrid made before, so the picture is the same (ENGINE-PERFORMANCE.md, "Kept Direct3D 11 bytecode").
Faster start: shaders are compiled once, not at every start (October 22, 2026)#
The game compiled its shaders from source at every start, about a third of a second on a fast Mac before the lobby could appear and more on a slower PC, and again for a few park shaders when a park started or the buy window first showed a turning preview. The compiled shaders are now kept in the user's cache folder and reused while the source and the compiler are the same, which brings the time from start to the lobby down by about 40 % on that Mac (issue #754). A damaged or missing cache file is simply compiled again (ENGINE-PERFORMANCE.md, "Kept SPIR-V").
The kart and water line tool's advisor help 204 (October 22, 2026)#
tp.exe posts advisor help 0xCC (204) when the kart or water line tool takes a click while it has no line start. OpenTPW now has the same producer (TRACKS.md, "Messages"). The producer map had listed 204 as never said, and the restored advice extension posted it as the roller coaster tool started; that restored hint is dropped, as 344's was when its real producer was found.
The trace. The line modes 0xB and 0x10 dispatch to
0x526CB3(0x525A1C). With the start0x81EDE4/0x81EDE8at −1 the click stores the clicked cell as the start (0x526D0F) and as the first corner (0x52FBD0,0x52FBF0), pushes 0xCC at0x526D41and jumps to0x527629, the queue tool's post of 0x151:0x59B590,0x5194D0on[0x7CF83C],0x59A940, the body of the help post0x486B00. Unlike 0x151 the post tests neither the replay word0x785A2Cnor the link flag0x816D60. The placement presets the start at the station's exit (0x52A1A0at0x525472) and the track button's switch from the edit tool presets it at the open end (0x530830);SetMode0x52F580keeps both. So the click is reached only after a line closed its circuit with exactly Ctrl held and no queue start pending (0x8186C0zero at0x526F95, then0x527146); the HUD's tool click passes that Ctrl since the queue end fix of the same day.No withdrawal. Neither
SetModewithdrawal list names 0xCC (0x52F245..0x52F326in0x52F200,0x52F5BF..0x52F6A0in0x52F580), and none of the 57 calls of0x486B40and0x59AA70does.ParkHud.ReportCellToolClicktherefore posts 204 at once instead of holding it behind the frame's mode change, so the tool ending before the next frame does not drop it, and the mode change leaves it pending.A refused tile posts nothing and plays no track click. The click handler tests the refused-ghost latch
0x816D48before the mode dispatch (0x524A63). Without a start the line modes preview the tile under the cursor alone (0x52453D:0x53AAC0→ the ghost routine0x5370E0, which sets the latch for a refused tile,0x537A1B), and the mode table sends 0xB and 0x10 toSetMode(0, 0)(0x5266A3). So a click on a refused tile ends the tool before the start's store and its help.CellBuildTool's refused first click, which covered the path and queue modes, now covers the kart and water line modes too, and the HUD's track click 0xCE skips a refused release, which leaves through the latch's mode table (0x524AB6) before0x526CB3plays it; the old comment that the cue 0xAF does not stop it is corrected (both found in review).Why the first map missed it. The poster search read the id pushed in each call's own block; 204's push sits ahead of a jump into another post's tail. A byte scan for
push <id>of each of the other 35 help ids that no post names finds none that leads to0x59B590.The port.
AdvisorToolHelp.TrackLineStart(204, inAdvisorToolHelp.All, so a park that ends withdraws it like the other tool help) is posted by the HUD for a kart or water line click that gives the tool a start it lacked. The inventory row ishelpandwired(content/data/advisor-producers.toml).RestoredAdviceloses its 204 entry, the coaster tool's restored tip and theTrackRideHelpconstant; its own mode withdrawal keeps the blueprint hint 202 only. The extension now restores 42 lines (thirteen of the first 55 stood down), and the counts in ADVISOR-SCAN.md, LIPS.md (with the ADVISOR-009 row), MODS.md, the README and the website follow: 236 of the 248 messages the original gives are wired and 103 are never said; the README and the website say 235 spoken, since 204 waits for the queue start below. Their figures also take in 344, which was wired before them.What players notice. With the extension on (the default), the advisor no longer says 204 when the roller coaster tool starts; 204's speech is about laying kart and water tracks, not the coaster tool. The original's moment, the click that sets a start after an exactly-Ctrl close, posts it with the extension on or off. With shipped rides OpenTPW reaches that moment once the queue start below is ported (the user chose this split: the original's moment only, the queue start in its own PR).
Still open (next PR). In tp.exe the queue tool follows a closed circuit only while the placement's queue start
0x8186C0is pending. Only placements set it, and the first handover uses it up (0x527056). OpenTPW opens the queue tool on every close of a ride with a queue, and every shipped kart and water ride has one (Info.HasQueue 1in each theme'sRides.sam), so with shipped rides the exactly-Ctrl state, and with it 204, is not reached in play yet. In the same handler a line click with a start on a refused ghost ends the tool and lays nothing in tp.exe (the same latch), where OpenTPW lays the line up to the refused tile.Tests.
TrackAddOnLevelTests, all through the HUD's own tool click:TheClickThatGivesTheKeptLineToolItsStartPostsHelp204: a kart circuit is closed with exactly Ctrl held, then clicked again; only the click that stores the start posts 204.ARefusedTileEndsTheKeptLineToolWithoutHelp204: a click on a refused tile ends that tool without help 204.TheLineToolOfAnOpenCircuitStartsAtItsOpenEndAndPostsNoHelp204covers the track button's line tool.
AdvisorToolHelpTests: both line modes post 204 for their first click and no path help after it, a refused first click ends them without it, a line tool entered with a start never posts it, and the post outlives the tool's end.AudioRegisterRound2Tests.ARefusedTrackToolClickThroughTheHudPlaysTheRefusalCueAndNoTrackClickdrives the HUD's own tool click: a refused first click plays no 0xCE and its release plays 0xAF, and an accepted one plays 0xCE.AdvisorProducerInventoryTestschecks the row.AdvisorRestoredAdviceTestschecks that a mode change keeps 204 pending while it takes the blueprint hint, and that 204 is posted with the extension off.The producer and refusal tests fail without their change.
Local runs:
filtered without game data (advisor, track, HUD, queue, path, co-op and mod filters): 2,086 passed, 86 skipped;
the same filters with game data after the review fix: 2,257 passed, 4 skipped;
the with-data suite: 10,531 passed, 183 skipped;
the native smokes passed (the jungle smoke on a rerun after its known Place-probe flake).
An independent Codex review confirmed the trace, the counts and the immediate post, and found the refused first click.
MD2-901: the texture-frame consumers are traced (October 22, 2026)#
The open question of APPROX:MD2-901, how the original consumes a texture frame outside the slot's frame list, is now answered from tp.exe. The binder 0x57A420 and the draw reader 0x580530 both pass the stored frame word to the accessor 0x575F90, which reads the frame pointer array without a count check, clamp or wrap. The writer 0x470C90 addresses the slot unchecked as well. There is no portable native outcome to reproduce, so OpenTPW keeps ignoring such frames and slots as a documented defensive divergence (docs/reverse/TEXTURE-FRAME-LIFETIME.md, docs/OBJECTS.md). No runtime behaviour changes.
Ordered pointer routing: rework after the first review of PATH-017 (October 22, 2026)#
A first independent review of the ordered pointer routing (PATH-017) asked for rework. Each point is fixed and covered by a test; PATH-017 stays open.
Injected clicks: once the park routes ordered input, a missing batch is "unknown" and starts no gesture, so the native smokes' hand-built
UiInput.Clickwas dropped. Only a frame whose platform batch could not be supplied (UiInput.OrderedUnavailable, set byUiInputSource.Poll) is now quarantined. Hand-built input is routed as injected edges (UiPointerRouter.AdmitInjected): a move, a press for a press edge or for a release with nothing held, then the release.Windows opened after P:
0x65db25picks the last-created sibling, so the P window's backdrop covers only what existed when P created it. An Escape menu, confirm box or message box opened afterwards is above it and can be clicked. The 'lolight' backdrop (0x65dd7b, flags 1) was checked in tp.exe to be an eligible receiver (flag bit 0x2 clear, byte +4 clear, bit 0x1 set).P and the focus-loss pause create the backdrop:
0x409350(the P key row0x40bf77, the window's own procedure0x4a2706) toggles the window, and the offline deactivation path0x46b74c->0x4092a0(1)->0x4a2790creates it, so losing focus offline opens it too (ported: the focus latch creates the overlay). Every resume destroys it (0x409300->0x4a27c0). The speed buttons, the numpad and a park loaded paused do not create it, so the>button stays clickable after a||pause.The camera keeps working under P: the backdrop takes the click without setting
Level.UiCapturesMouse, so wheel zoom, right-drag and edge scrolling continue.Stale hover help is cleared when the pointer rests on the park or a backdrop; P with ImGui holding the mouse still toggles the pause; a frame without platform time no longer stamps wall-clock time.
Open, not settled: whether a path or pool drag released over the HUD uses the stored hover cell; noted under PATH-017.
Click timing: the desktop observer reads each SDL event's own timestamp (widened across the 32-bit wrap) and the browser sends the DOM
event.timeStamp, so one long frame cannot turn a quick click into "not a click".Unmapped SDL buttons: an SDL button Veldrid cannot map (it files it as Left) is skipped on both sides instead of rejecting the whole batch.
Browser presses send their coordinates and time like releases do.
Memberships:
UiScreendrops a removed element's generation, and a re-added element takes a new screen-wide one.Globe: the frame path qualifies a city click with
NotClick, as the routed path does.Tests: the pointer tests use test hooks on
InputandLevelinstead of reflecting into their private fields, and cover injected input, the speed buttons, the numpad, a window pushed after P, the wheel and click timing.
Original guest placeholder import regressions (October 22, 2026)#
Added synthetic, asset-free tests for the existing SAVE-002 unsupported-state rejection boundary. Seven parameterized cases cover states 11–17 with a retained state-6 guest and a foreign-model slot control. A mixed-state case checks saved used-list ordering. Each case checks held slots, the complete free-list against an independently constructed ascending-ID oracle, pool snapshot restoration, and allocations extending beyond the reserved IDs. Production behavior is unchanged.
This removes the original-media dependency from this specific importer/allocator integration coverage; the existing Easymode corpus test remains useful separately. Source/API and static checks were performed, but compilation and C# test execution are pending. No original executable or game assets were used.
SAVE-002 and proposal #536 remain open. These tests do not restore queue, rider or guard links, prove native parity, or replace the missing linked-state fixtures and continuation contract. They only protect the current loss-containment behavior while that work remains.
Placement layer host-contract coverage (October 22, 2026)#
Added synthetic placement regression cases for a late access refusal discarding an already accumulated overwrite/path-clear plan, and for the existing station endpoint secondary-layer gate across four rotations, five origin types and both extension types. No runtime behavior is changed. C# compilation and execution remain pending; these are authored tests, not a reported runtime pass.
The host-contract research separates existing primary-layer, add-on, access and endpoint checks from the still-untraced generic secondary corner/junction predicates, access-option branch and guest displacement semantics. RIDES-018 remains approximate; no native parity or proposal completion is claimed.
One pool bridge, with a preview, built without paths (October 22, 2026)#
The buy window showed an empty panel for the pool bridge, offered separate east-west and north-south bridges, and refused to build a bridge before both outside ends had a path. There is now one Pool bridge row that builds in all four directions: the bridge in hand turns with the blueprint keys of an object, in the same sense (comma adds 90 degrees, so east turns to north; full stop adds 270), and the blueprint follows. The row's preview is the bridge's own committed Blender mesh, drawn by the ordinary buy-window preview, so the panel shows a turning bridge like every other item. A bridge no longer needs a path at its outside ends: the cell outside each end only has to be free ground, and the player lays the path later. Guests and staff enter only through an end that has a path, so a path laid afterwards makes the bridge walkable at once and a path removed closes that entrance. The bridge's own seven cells stay protected; the outside paths can be laid and removed, except that removing the last path end while someone is on the bridge is refused. The old refusal "an outside end without a path" and its text are gone in all eleven languages; the help texts mention the turn keys. PoolBridgeResult.EndNotPath was removed (the value is never serialized). Saves and the PlacePoolBridgeCommand bytes are unchanged for every direction, so old saves of either direction load, with or without end paths, and co-op replicates the same command. Bridge hashing and the save record are unchanged, and a park without bridges hashes as before.
Backspace removes pool bridges and pool water (October 22, 2026)#
With no build tool on, Backspace over a pool bridge now takes the bridge down, and over a pool water cell it erases that one cell. Both belong to the pools extension; the original game has no pools.
Bridge: same rules and refund as the old remove row (refused while somebody is on it). The bridge wins over the water under it.
Water: same rules and refund as the pool tool's erase mode (75 back; refused for swimmers, a changing room's access, water an extra or attraction needs, and water under a bridge).
Buy list: the "Remove pool bridge" row is gone, with its two strings in every language. "Remove pool water" stays for erasing a large pool in one drag. The bridge help text now points to Backspace.
Co-op: the existing Backspace command carries both, so rights and replay are unchanged.
Review fixes (October 22, 2026)#
Extension off: Backspace over pool water or a bridge does nothing (no message, no sound), instead of "You can't build here".
Held key: the auto-repeats of a held Backspace are ignored over pool targets, so the bridge and then the water under it are not both taken by one hold.
Bridge tool: the unreachable bridge-erase mode of the pool tool is gone; the removal command kind stays so old logs decode.
Docs: a path laid on an approach cell before the bridge goes after the bridge; old command logs replay only on the build that recorded them.
Verified:
Level tests for bridge, water, water under a bridge, a pre-laid path under an approach cell, occupied bridge, swimmer, changing room, extras, extension off; the HUD key (refused target, other cell, held key); a twin-park replay hash session with the pool cases.
A placed ride's queue tool ends the tool whatever its last click held (October 22, 2026)#
After a ride with an entrance is placed, the original's queue tool ends the tool at its last click, and nothing comes back, whatever the modifier (UI.md, "The Move tool" and UI-031). OpenTPW used to arm the build tool again when that click held exactly Ctrl, and for a moved ride that armed an ordinary purchase (research and the balance test included) instead of the Move tool. The question was which mode the original returns to: the Move tool's 0x3b, the build tool's 4, or neither. tp.exe answers neither, and OpenTPW now does the same.
The trace. The queue tool's handler (
0x5271b7..0x527669) never reads the modifier word. Its last click is a click on the line's start, or a commit that ends the line on a path or queue cell (0x536100(0x81),0x527517); both reach0x5275b1, which runs0x52f200(0, 0)at0x5275f2. That call leaves the mode 0 and the angle 0 (0x52f3b6), and it installs the default tool (0x46c6a0,0x46c350at0x52f46c), which deletes the build tool object that held mode 4 or 0x3b and the type (0x46c5a0). The Move tool's placement takes the same follow-up as the build tool's (0x52f580(3, 0)at0x52529eand0x5258e1). The Ctrl tests at0x5253b8,0x5259e2and0x5259f4belong to the placing click, and the one at0x527146keeps a kart or water line tool that has no queue to follow.The port.
ParkHudno longer arms anything when the queue tool ends: the queue a placement opened resets the build angle however it ends. The old Ctrl re-arm and its[BIN:TPW-EXE:0x5253b8 queue end]claim are gone, and the new evidence is tagged[BIN:TPW-EXE:0x5275f2 queue end].The track line's Ctrl click. The HUD's own tool click now passes the frame's modifiers to the line's continuation (
Level.ClickCellTool). Before, the HUD called the tool directly, so a kart or water line that closed its circuit always ended the line tool. Now, with exactly Ctrl held and no queue to follow, it keeps the line tool in play, as the original does (0x527146; the review found it). The help 0xCC (204), which the original posts at the next click without a start (0x526D41), is not posted yet: the advisor inventory and the restored advice still treat 204 as never said, and reconciling them is left for a follow-up.Co-op. The Move tool can never return after its queue tool, so the command layer's
EndMoveCommand(issued as the build tool leaves the Move mode, before the queue tool opens) is the original's outcome. It stays where it is (COOP.md).UI-031 narrowed. Its text now records the queue end, the kart and water line tools' continuation and the angle kept through the queue tool. What remains open is where the original's coaster placement enters its track tool, which OpenTPW placements have a path cell as the queue's start, and whether a tool armed while the queue tool runs keeps an angle that exactly Ctrl kept.
Tests.
ParkToolCommandLevelTests.TheQueueToolAPlacedRideOpensEndsTheToolWhateverItsLastClickHeldcovers the build tool and the Move tool. In each, a ride is placed with exactly Ctrl held, and its queue tool is then ended by clicks through the HUD's own tool click, also holding exactly Ctrl. Afterwards neither tool is armed, the angle is 0, the queue's end issued no command, and no type is carried. A move logs itsEndMoveCommandright after the placement. Both cases fail on the old code, which armed the build tool. The unit test of the old re-arm is removed.TrackAddOnLevelTests.TheHudsToolClickCarriesItsModifiersToTheLinesContinuationcloses a kart line through the HUD's click with exactly Ctrl, nothing, or Ctrl and Shift held: only exactly Ctrl keeps the line tool, and the Ctrl case fails without the forwarding.An independent Codex check of the tp.exe trace (read-only) reached the same answer with high confidence, and its review of the change found the HUD's missing modifiers, a test that left key state behind and an angle claim for a path start, all fixed.
Faster park starts: the game data's paths are looked up once (October 22, 2026)#
Every file the game read from its data folder listed the folders along its path again to find the archive it lies in: about 1,000 folder listings before the lobby and nearly 16,000 for a park start. The desktop now remembers those lookups, as the browser version already did, which cuts a park start's listings to about 700 and its time by a fifth on a Mac; on Windows, and on a hard disk, each listing costs more (issue #754). The files read are the same (ENGINE-PERFORMANCE.md, "Remembered path lookups").
A ride's entrance stays where it was across a save (October 22, 2026)#
A ride whose entrance had no laid path takes the nearest path cell as its entrance, and keeps it until a cell it uses is removed: a path laid nearer later does not move it. A save did not record it, so loading the park resolved the entrance again on the loaded paths and could move it, and the guests then walked to another cell than before the save. The save now keeps a ride's entrance and exit as they stand (PATHS.md), and a load puts them back; a save from before keeps the cells the load resolves. A shared park's join needs exactly this: the co-op join smoke found a joining guest's park differing from the host's at a coaster whose entrance a path laid nearer had not moved.
Ride scripts: the object type's own sound list (October 22, 2026)#
The last ride-script sound type is served: EVENT, EVENT_EXT, ADDOBJ and ADDOBJ_EXT of type 10 play from the object type's own sound list, as tp.exe's object dispatcher does (0x557686). The list is the cat_ride category an object archive carries next to its models: the type loader registers it when the archive holds cat_rideBANK.map, cat_rideSFX.map and BankHD.sdt (0x41F420, 0x41408D), and a type-10 sound is then submitted from it exactly like a sound of types 3-9 (the key's place, the event's own priority, range and flags; ADDOBJ keeps the handle under its slot, KILLOBJ, FADEOBJ and SETOBJPARAM reach it). A type without a list logs the original's message and plays nothing, before its key is looked at. No shipped script uses type 10; Jungle's loudspeaker is the one shipped archive with a list, so the feature is for mods (RSE-VM.md). The README's ride-script row no longer lists it as a gap, and nothing of a ride script goes to the unimplemented-effect hook except the bounce opcodes of objects that do not draw their bouncing riders.
Parks started from an original save can be saved again (October 22, 2026)#
Since the objects of an original save keep their saved animations, a park started from one (the Jungle Instant Action park and every loaded original save) could not be saved until each of those animations had started again: an animation that began before the object's own clock starts in OpenTPW has a start before zero, which the save refused as corrupt. That stopped the autosave, a save by hand, a shared park's capture and Restart Park's snapshot, which every original park takes as it starts (a loaded save then reported Restart Park unavailable). The save now keeps such a start, as far back as the original's 32-bit elapsed time reaches (TPWS-PAYLOAD.md), so these parks save, share and restart again. A corrupt saved control whose frame is beyond a float is now reported and skipped instead of stopping the import. The co-op join smoke found it.
Faster start and smoother building on Windows (October 22, 2026)#
On Windows every model part compiled its own copy of the same shaders: the lobby's islands compiled the lit object shader 146 times before the lobby could appear, and each newly placed ride compiled it again for every part. The engine now compiles each shader once and shares it, which drops the start from 156 shader compiles to 7 and leaves nothing to compile when an object is placed (issue #754: a black window for about 30 seconds before the lobby, and freezes of up to two seconds while building). The drawing is unchanged. New measurement options show where a start and a build step spend their time: --startup-profile, --hitch-report and --perf-build (ENGINE-PERFORMANCE.md, "Start and build hitches").
Shop goods cost host-precision regressions (October 22, 2026)#
Added asset-free synthetic regression tests for the current ShopGoodsCost single-precision host contract, using an independent BigInteger rational rounding oracle. Coverage includes 8,396 combinations of masked setting bytes, exact ingredient classes 1/3 versus other integer values, clamp transitions, and unsigned cost boundaries near 2^24, 2^29, 2^31 and uint.MaxValue. Dedicated anchors exercise nearest-even ties, truncation, signed wrapping, and four vectors distinguishing exact-integer multiplication from premature rounding of the cost to binary32. Production arithmetic is unchanged.
A separate Python Fraction oracle and production-shaped arithmetic model agreed on all 8,396 matrix cases and the dedicated anchors. This is arithmetic cross-check evidence, not a C# test pass: compilation and .NET execution remain pending. No native executable was run and no original game assets were used.
ECON-059 and proposal #515 remain open research: these regressions do not identify the original simulation thread's FPU precision or establish native parity. Native control-word or discriminating sale-output evidence is still required before selecting a different precision contract or retiring the approximation.
Smoother first placements: ride signs are drawn before the click (October 22, 2026)#
The first time a ride, shop or sideshow with a sign was placed, the game drew its sign (the board picture and the lettering in the sign's own fonts) on the frame of the click: 36 to 48 ms on a Mac, more on a slower PC (issue #754). The buy window now starts drawing the signs of the types it lists on a background thread, so the placement takes the finished sign; a sign that is not finished yet is waited for or drawn then. The pixels are the same either way, byte for byte, and the first placement of a ride with a sign costs about a quarter of what it did (ENGINE-PERFORMANCE.md, "Signs composed ahead").
Front page "You can / You cannot yet" brought up to date (October 22, 2026)#
The front page's two lists (tools/site_status_curated.json, rendered into website/index.html) were checked against main.
Original saves: guests standing off the paths (#690) and the rides' queue lines (#722) now load, and the ride scripts' saved animation controls are restored. What is still dropped: guests in queues, on rides, held by guards or walking to the arrival vehicle (SAVE-002), coaster riders (SAVE-920), the guests' animation scripts (SAVE-013), and the ride scripts' object lists and walk tables.
Co-op: the shared-park line now says that building together is under way. The command layer, the server's sessions and the game's link exist; no screen starts a session yet (docs/COOP.md).
The can list: twelve verified languages instead of nine, pool bridges, and the official extensions by name.
The sound and approximation lines still match the open AUDIO-018, AUDIO-038 and AUDIO-040 entries and the register, so they are unchanged.
The placement's queue start for the kart and water line tools (October 22, 2026)#
A kart or water ride the player has just placed goes on into its queue tool once its circuit closes, as in tp.exe. A later close of the circuit, with no other placement's queue start pending, is decided by the click's modifiers, and help 204 is reached with the shipped rides. OpenTPW used to open the queue tool on every close of a ride with a queue, and every shipped kart and water ride has one. A line click whose ghost has a refused tile now ends the line tool and lays nothing, also when the line has a start (TRACKS.md, "Messages"). This closes the gap left open by the help 204 port of the same day.
The queue start. A placement of a type with an entrance stores the record of its queue's start cell in
0x8186C0(0x52A050, the cell in0x7639B8/0x7639BC). Four placement sites set it:0x524DD7,0x525269,0x52544Eand the Move tool's0x5258AC. When a line closes the circuit, the handler tests it (0x526F95). While it is pending, the queue tool takes over at the stored cell, whatever the click held, and the handover zeroes it (0x527056). With none pending, exactly Ctrl keeps the line tool without a start (0x527146) and any other modifier word ends it. Other code zeroes it too:the build tool's and the Move tool's click, before they place (
0x524B53,0x5253F3). A click on a refused ghost never gets there: the placement preview0x528A70runs the object's cells through0x532FC0(0x104), whose validator refusal sets the latch0x816D48(0x533933), and the click handler tests the latch before the mode dispatch (0x524A63), which sends modes 4 and 0x3B to0x52765B;the Move tool's pick-up, a click in mode 0x33 (
0x525E5A);a path or queue commit, after its LayLine (
0x527483);the queue tool that follows any other ride's placement (
0x5252EA), and the coaster tool's own handover to it (0x526680). (Since the original coaster flow, a coaster's own placement enters the queue tool too and consumes the start, so the coaster tool hands over only to a start another placement left pending.)
The cross-reference list of
0x8186C0has no other writer.The port.
Level.EnterPlacedTrackToolopens the track tool of a placed kart or water ride and leaves the ride's queue start pending.ParkHud.FinishPlacementcalls it.Level.ContinueTrackToolhands a line's close to the pending ride's queue tool and takes the start. With none pending, the close goes to the exactly-Ctrl rule. The clicks above drop the start:Level.ClickBuildTool, the build and Move tools' click, now its own method, when the ghost is accepted (Level.BuildGhostAllowed, the rule the HUD's ghost already drew with);Level.BeginMove;a path or queue commit in
Level.ClickCellTool. A click on a refused ghost commits nothing and keeps the start, and so does a line whose command the park refused before running it (SegmentResult.CommandRefused, set by the command writers). A command that threw while it ran keeps what it wrote, so it drops the start like a commit;Level.FinishCoasterTool.
The start is local tool state of the issuer, never a command, saved or hashed. It may belong to another ride than the circuit that closes, as in the original. A start whose ride was sold since is dropped: an OpenTPW guard, since its queue tool needs the ride.
The started-line refusal. The kart and water line modes preview the line from the start (
0x52452E:0x53AAC0with mode | 0x100). The preview walks the line tile by tile and stops at the first tile the ghost routine0x5370E0refuses: its chooser0x539760returns 1, and its money test at0x539F95counts too. The refused branch sets the latch (0x537A1B→0x527940(1)). The click handler tests that latch before the mode dispatch whether or not a start is set (0x524A63), and the mode table sends 0xB and 0x10 toSetMode(0, 0)(0x5266A3).CellBuildTool.Clicktherefore ends the line tool and lays nothing for a refused tile anywhere on the line, as it already did for the path and queue tools and for the line tool's first click. Before, it laid the line up to the refused tile, or up to the money.What players notice. Right after placing a kart or water ride nothing changes: closing its circuit goes on into its queue tool, Ctrl or not. Once that start is used up, or dropped by another placement, a Move pick-up or a queue line, a later close (through the ride window's track button, for example) no longer opens the queue tool. Exactly Ctrl keeps the line tool, any other click ends it, and the kept tool's next click gives the advisor's help 204. As in the original, the start a kart or water ride's placement left pending takes the next close to that ride's queue tool, whichever circuit closes. A line that crosses a blocked tile, or that the park cannot pay for in full, is not built at all, and the line tool ends with the refusal cue. The README and the website now say 236 of the 248 messages are spoken.
Documentation.
UI-031's text (
UiApproximations.csand the docs/UI.md row) gives the line tools' handover with the pending start.UI-031 also notes that the coaster tool's click, when its pass 0x81 returns 0 (
0x526525), hands over to the queue tool only while a start is pending (0x52656E) and otherwise ends the tool (0x5266BC). What that pass stands for is still open, and OpenTPW's coaster flow differs, as UI-031 already records. No new APPROX ID.docs/TRACKS.md("Messages"),docs/TRACK-LINE-CONTINUATION.md,docs/LIPS.mdand ADVISOR-SCAN.md drop the "not reached yet" notes.
Tests.
TrackAddOnLevelTests(the newTrackAddOnLevelTests.QueueStart.cs), on the asset-free kart level:a placed ride's close hands over to its queue whatever the close held (no modifier, exactly Ctrl, Ctrl+Shift), and the handover uses the start up;
with no start pending, a ride with a queue keeps the line tool for exactly Ctrl and ends it otherwise;
an accepted build click, a queue commit, a queue command that throws after a write, and the Move tool's pick-up each drop the start; a build click on a refused ghost, a refused queue click and a queue line whose command the park refuses (through the real command writer) keep it;
a kart ride the HUD places through the build click and its command (
ParkHud.OnObjectPlaced,AfterIssue,FinishPlacement) gets its track tool with its start pending, and its close goes into the queue tool;a line with a start across a queue cell, or across more tiles than the park can pay for, lays nothing, charges nothing, issues no line command and ends the tool.
TheClickThatGivesTheKeptLineToolItsStartPostsHelp204also runs for a ride with a queue.AudioRegisterRound2Tests.ARefusedTrackToolClickThroughTheHudPlaysTheRefusalCueAndNoTrackClickalso covers a line with a start: no track click 0xCE, and the refusal cue 0xAF on release.AFollowingQueueWinsOverExactlyCtrlis replaced: the track button's line tool has no queue start pending.Each part was taken out once to check that a test catches it. Without the start set at placement, the HUD's call of it or its deferred end of the placement, its use at the handover, any one of the three drops, the refused-ghost gate of the build click, the refused-click or refused-command exception (or with a command that threw counted as refused), or the started-line refusal, its own tests fail. With the old rule, which follows the queue on every close, eight tests fail.
Wave machine window tests no longer depend on the test order (October 22, 2026)#
The two wave machine window tests (PoolsAttractionsLevelTests.TheWaveMachineWindowSetsOnOffHeightAndIntervalAndCancelLeavesThemAsTheyWere and TheWaveMachineWindowsChoicesFitItAndAreNamedInEveryLanguage) passed alone but failed in a broad filtered run on main (4bfd2d255): ParkHud.OpenWaveSettings returned without opening the window, so the first test saw the HUD screen on top and the second threw a NullReferenceException.
Cause:
NativeWidgetTests.FieldKeepsFocusOnHoverAndTabMovesBetweenFieldsandTextFieldTypesUpToItsLimitAndSubmitsOnEnterfocus a text field, so the screen's update sets the staticInput.TextEntryActive. Only the game's frame clears it, and those tests left it set. The window's gate (ParkHud.WaveSettingsAllowed) stays shut while text is typed. The save-and-restore cleanups of the HUD tests that run in between (ObjectRayPickTests,ParkFinaleTests,ParkHudHelpTests,HudToolClick) faithfully put the leaked value back.How it was found: one instrumented run of the broad filter did two things. It logged every change of the flag with the test on the stack, and it dumped each part of the window's gate when the window stayed shut. Every part was open except the text-entry one, and the last unreset change came from the
NativeWidgetTeststest. A three-test filter reproduces it: the leaking test plus the two wave tests. In these runs theNativeWidgetTestsclass ran before the pools tests; MSTest does not promise that order.Fix:
NativeWidgetTestsclears the flag in a[TestCleanup], asChatPanelTestsalready does.The wave tests' gate helper (
WindowGates, formerlyParkCamera) sets the keyboard state the window needs, as it already did for the camera, and restores both.Each change alone fixes the three-test reproduction.
Verified:
The broad filter (4155 tests) passes: 3886 passed, 269 skipped, none failed. Before the fix, two failed.
Each wave test passes alone.
The
NativeWidgetTestsclass passes alone.An instrumented sweep of the 827 tests in the classes that type into text fields (chat, online, employee, postcard, park name, shop price, mods, options, front end, original UI) found no other test leaving the flag set.
The browser's AudioMixer memory does not grow per park visit (October 21, 2026)#
The browser memory notes reported the AudioMixer root growing by about 4.6 MB per park visit (18.7 -> 23.3 MB between two lobbies). Six visits on the published AOT build show it does not grow: the 4.6 MB were a sentence's sample decode caught in flight (the lobby music's long segments are decoded a few MPEG frames per browser frame, and until a decode ends it holds its MPEG input and its doubling PCM buffer), and the root also counted the file system's 11.3 MB of cached archive members, which the sound categories reach. Sampled after the decodes end, the root is 20.0-20.2 MB in every lobby.
The switch scenario now waits for no sound decode to be in flight before each point, takes --visits <n> for longer runs, and reports what the mixer reaches by the field holding it (PerfAudioBytes, soundDecodesInFlight, soundVoices, soundVoiceSampleBytes). The root walks no longer read ConditionalWeakTable entries, which crashed them in the AOT runtime once a key was collected. GameAudio.Counts gives the sound system's holdings, and the with-data test AudioParkVisitTests checks that five lobby-park-lobby visits leave the same holdings as the first. Details: docs/BROWSER-PERFORMANCE.md, "The AudioMixer root across visits".
Smaller park build steps, the lobby's enter-park button and the park door (October 21, 2026)#
The browser's park start no longer has build steps of 70-85 ms (published AOT build, Jungle, medians of three runs).
The largest construction step fell from 79 to 34 ms. The frames over 33 ms from the click until 5 s after the park is ready fell from 8 to 2: the entering frame (68 to 56 ms) and the step that reads the advisor's model (about 35 ms). The park is ready about 150 ms later, because the build now spans 63 frames instead of 40.
The CPU profile named the long steps:
the economy: the whole object catalogue was read inside it, because the official extensions count as mods;
the gate sign's composition;
the ride script handler table, compiled at once on the first object's script;
the guests' and staff's sprite sets and renderers;
the warm-up of the economy capture.
Each now runs in smaller steps, with the same work in the same order:
the economy per object archive;
the sign per mask, effect and 16 relief rows;
the handler table a few handlers at a time;
the guests, staff and terrain per sprite set, renderer, mesh and texture;
the capture's parts one by one.
A step known to be long starts a frame of its own. First calls of the entering frame are made in the build where they change nothing: the blueprint markers, the player progress file's serializer, the sliced serializer and the advisor shader's program. The HUD's first update fell from 15 to 5 ms.
The lobby's enter-park button: in a session that starts with saved parks, the first click read them with the world-save codec's metadata still unmade. That took one frame of about 0.40 s before the theme start showed. The lobby's idle frames now make that metadata in 4 ms steps, and the first click takes about 0.13 s. Later clicks take 0.05-0.07 s, as before.
The park door: the first opening has no hitch (worst frame about 10 ms). The wait for visitors after it is the original's arrival schedule: the first group is due at turn 604 of the park's clock, counted from the park's start, not from the door. In the measured run the first guest came 146 s after the click.
The harness has new door and lobbyEnter scenarios and a --cold-mark-ms option, and reports the cold start's frames over 33 ms. Tests compare the economy, the signs and the opcode table built in steps with the same built at once. The front-end smoke also compares the gate sign's pixels of the park built over frames. Details in docs/BROWSER-PERFORMANCE.md, "Build steps".
The park census reads the cell a guest stands on (October 21, 2026)#
After closing a park with guests inside, the gate stayed open until the guests boarded the bus: in a test run the census stayed at 13 from turn 860 to 1050 with everyone already outside. OpenTPW's walk step moves a guest's stored cell only onto path and queue cells, so a guest on the approach road kept the entrance cell, and the census counted it there.
What. The census (
ParkGate.CountedInCensus, used by the gate retry and every guest statistic that walks the census) reads the cell of the guest's walk position,GuestNavigation.Cell. tp.exe's predicate0x004FA990reads the thing's cell bytes, which every walk step rewrites whatever the cell type (0x004FA2A0→0x0050B6A0) and the teleport0x004FA930sets; OpenTPW's cell lists already follow that position.Effect. A guest walking home leaves the census as it steps off the park onto the gate's road, so the retry (
0x00516380, every 30 park turns) shuts the gate at the first boundary after the last guest walked out. Riders still count at the stand point they walked to.Fidelity. UI-914 is narrowed: the park information ranking and the census now read the same cell, and the only callers of the cell move
0x0050B6A0are the walk step and the teleport (a byte scan of theE8calls), so a queueing guest counts where its queue walk stands and a rider at the stand point it walked to.Tests.
ParkGateTests.AClosedParkShutsItsGateAtTheFirstRetryAfterTheLastGuestWalkedOutcloses a park with four guests inside and checks that the gate shuts on the first 30-turn boundary after the census emptied, while the guests still wait outside; the census tests put the guests' walk positions on their cells.
A park with a coaster can be saved again (October 21, 2026)#
Since the coaster cell markers (#736), a coaster station's head marks its marker cell with the original's bit 0x100 (tp.exe 0x4343B3), and that value is also a pool wave height bit. The save's check that pool river and wave bits sit only on pool cells therefore refused every own-format save, autosave, restart snapshot and continuation of a park with a coaster ("carries pool river or wave flags but is no pool cell"); the co-op join smoke found it, since a join loads the host's park the same way. The check now leaves exactly that bit on a coaster's marker cell (type 21) and still refuses any other pool bit there and the bit on any other cell. A new test places a coaster station, saves and restores the cell map, and checks both refusals.
Co-op: the command funnel's checks before sessions (October 21, 2026)#
Two checks the co-op session needs before it streams a host's commands (COOP.md, "The command layer"; [EXT:online-coop-commands]). A command whose run throws is now a logged rejection that carries the exception, with what it wrote before the throw, so a replay or a peer that throws at the same place stays in step and the game loop goes on; the exception goes to the diagnostic log. And no command may be applied while a simulation tick runs, since a replay or a peer would apply it at the tick's start instead: the level marks each tick after its held commands applied. The tests and a strict developer run (OPENTPW_STRICT_COMMANDS=1) throw on a command inside a tick and rethrow a command's exception once it is logged, so neither goes unnoticed. In a game of one a command inside a tick still runs at once, as it always did, and a command that throws no longer ends the game: it is a logged rejection. The coaster tool's rule of one drag per coaster and its conflict rules now carry the plan's online-coop-claims label.
Co-op: joining a running session (October 21, 2026)#
The co-op stream can now bring a member that joins a running session, or a guest whose park lost the stream, to the host's park without leaving the session (COOP.md, "Joining a running session"; [EXT:online-coop-snapshot-join]). This is the stream's part (C2c-1): no game joins a session this way yet, since the game's own join (C2c-2) and the screens (C2d) follow.
The host takes a capture of its park at a cut of its command stream, compresses it over several frames, uploads it to the server and tells the member where it is. The member downloads it, builds it, checks it against the host's digest at the cut and swaps it in.
Every message of the stream carries the capture it belongs to, so a late message from an old stream changes nothing. A lost message, a reconnect or a slow upload is answered again, never with a second capture.
A joiner catches up within a window of its own while the park runs on. Three failed joins within ten minutes leave the session; a server that asks to wait (too many downloads, a server error) is asked again later without counting.
While a park is shared, its global golden tickets are decided by its own records on every machine. When the session ends, the player's progress takes them back by the player-wide rule.
The server limits the snapshots each session's host uploads, and the 429s of its address and co-op snapshot limits now say when to try again (
Retry-After).The session digest no longer counts whether the coaster drag set exists (version 2): one machine's read of it would have been a desync.
CoopJoinTests and CoopJoinSessionTests cover the snapshot's parts and the joins and resyncs, over the in-memory server and once through the real links and the server's snapshot store; CoopSnapshotDownloadTests covers the client's ranged download.
Co-op: the game's link to shared parks (October 21, 2026)#
The game now has its side of the co-op socket (ONLINE.md, "Shared parks"; [EXT:online-coop-session]): a link under the online login that opens the socket with the desktop's header login or the browser's first-message login, says hello with the game's release and its simulation-changing mods in load order, and offers what a shared park needs: start or join a session, the open list of the game's own release, invitations, removals, the host's frames and messages between players. A lost connection, a deploy or a silent server opens a new socket and resumes the session, so the host can resend its frames from the last one the server relayed; another game of the account stops the link until the player takes over, and a game that restarted leaves the session the server still names. Logging out closes the link. No screen or park uses it yet.
CoopLinkTests runs pumped online sessions against a loopback server: a session created, listed, joined and shared, invitations, kicks and refusals, a resume after a dropped socket, after a server restart and after the silence watchdog, two games of one account and a take-over, a restarted game leaving its old session, and a logout.
Co-op: a restart never cuts a guest off for its queue (October 21, 2026)#
A server restart stores every shared park's frame position and then closes the co-op sockets after their queues. The host's socket closes first, and the news that the host went is sent to its guests; that message could cut off a guest whose queue stood at its limit, dropping the frames whose position the restart had just stored. Every queue now stops taking messages before any closes, a closing queue is never cut off for its size, and a hello or a request that comes during the stop is turned away (the game resumes on the new server), so the stored positions and memberships stay the last. The test that restarts the server while a host streams frames also failed now and then on the macOS runners, when a slow guest was rightly cut off for slowness before the restart; its guest's queue now takes the whole burst.
Co-op: the level in a session (October 21, 2026)#
A park can now take part in a co-op session as the host's or a guest's (COOP.md, "The level in a session"; [EXT:online-coop-lockstep]). CoopSession starts the host's command stream or a guest's on the level. It ends when the park closes, when the game quits, when the link's session ends or when the host's stream ends it.
Only a running Theme Park World park is shared, in a game started without developer options or park-building smokes.
A guest's own click is refused with "Only the host builds in a shared park", in the game's eleven languages, at most once every 1.5 seconds.
The cheats, the secret park name and the developer panel's direct opening are refused alike on every machine.
The pause menu and the other screens stop no shared park.
A guest's park is never saved, restarted, published, exported or shared again, also after its session.
Entering the queue tool no longer recomputes the ride's queue on one machine: it reads the queue from a copy, and the queue commands bring it up to date on every machine.
The digest's cost and the frame sizes at the fastest speed were measured (COOP.md, "Measurements"). A faster park now takes its digests once a second of real time.
The session's own recording reuses the digests' world hashes and records the session's rules (command log format 3), so its log replays offline.
No screen starts a session yet: the join and the screens follow.
CoopSessionTests covers each rule and each end of a session, and the guest's message in its HUD. It also runs a host and a guest through the game's real links to a loopback server, with a lost socket on each side, to equal parks.
Co-op: the server side of shared parks (October 21, 2026)#
The first part of building a park together over the network (ONLINE.md, "Shared parks"; [EXT:online-coop-session]): the server now holds shared park sessions on a new binary WebSocket, the co-op socket (server protocol 6), beside the chat. A host starts a session, listed on the open list or reachable by code and invitation only, and up to three guests join with exactly the host's release and the same simulation-changing mods in the same order; a refusal names the difference. The server relays the host's numbered frames to every guest in order and only from the host's current connection, passes messages between members at most once, and keeps the sessions on disk, so members resume after a lost connection or a server restart and hear the last frame the host relayed. Two games of one account never take turns on the socket, a slow reader is cut off and resumes instead of losing messages, and a session ends when its host has been away ten minutes. The host uploads the park a joiner starts from, and only its members download it ([EXT:online-coop-snapshot-join]). The game does not use sessions yet.
CoopProtocolTests reads back every message and refuses every malformed form; CoopServerTests runs sessions of up to four players against a loopback server: frames and messages, refusals, leaves and kicks, two games of one account, a resume after a lost connection and after a restart, a replaced connection that never relays again, a slow guest, the expiry of an absent host, the open list, invitations, account deletion and the join snapshots.
Co-op: the host's command stream (October 21, 2026)#
A shared park's guests now follow the host's park by replaying the host's commands at the host's ticks (COOP.md, "The host's command stream"; [EXT:online-coop-lockstep]). The host publishes every command its park applies in frames with a horizon and the session digest every park second; a guest runs its ticks only up to that horizon, checks every digest and every command's outcome, and stops with a desync report when one differs. A lost frame is asked for and resent, the host waits for its slowest following guest within three park seconds, a guest that falls silent or far behind no longer holds it, and the host's park holds while its own link is down. The ride scripts read a session clock the host sets with a command, so two machines with different clocks stay equal. In a session the command funnel drops a command applied inside a tick, refuses one issued inside another and keeps a guest's own clicks out of its log. No game starts a stream yet: the level in a session, the join and the screens follow.
CoopStreamTests runs a host and two guests as levels of one asset-free park over an in-memory server, through whole frames of random lengths: a build session at every speed ends with equal parks and command logs, and lost frames, cut frames, faults, refused and errored commands, stalled guests, a server restart and different civil clocks are each covered.
Textured park surfaces on Direct3D 11 (October 21, 2026)#
On some Windows machines every park surface (ground, objects, the advisor) showed one flat colour per face instead of its texture (issue #754).
Cause.
test.shader,advisor.shaderandsprite.shaderpassed their varyings in an interface block (out VS_OUT { ... } vs_out). Veldrid.SPIRV's HLSL output turns such a block into its ownmain()parameter. The vertex shader's output signature then hasSV_Positionbetween the flat varyings and the block, which the pixel shader's input signature lacks. Direct3D 11 drivers that link the two stages by register (WARP among them) handed the pixel shader the clip-space position as its texture coordinates. In a park those coordinates select a coarse mip, so each surface showed its texture's average colour. Metal, Vulkan, WebGL and drivers that link by semantic were not affected.Fix. The three shaders pass the varyings in a
struct(out struct VS_OUT, as the other shaders already do), which keeps both signatures in location order. The browser's precompiled shaders incontent/shaders/webare regenerated. Nothing else changes: same inputs, same arithmetic, same picture on the other backends.Tests.
NativeWorldShaderRenderTestsdraws the textured shaders on a real backend into an offscreen target: Direct3D 11 on every Windows machine, including the CI runner's WARP adapter, and Metal on macOS withOPENTPW_NATIVE_SHADER_TESTS=1. It checks that a checkerboard texture's cells reach the picture, using the engine's compile path, vertex layout, reflected bindings, mip-generated texture, sampler and Material's uniform buffer. Before the fix it failed on WARP for the three shaders and passed for the struct-basedunlit.shader. A source test forbids varying interface blocks in any shader.
With-data backspace refund test follows the exit-tile protection (October 21, 2026)#
The with-data test TrackEditRecoveryDataTests failed on main since #739 (Expected:<3>. Actual:<2>. DinoKarts); CI does not run it, so the twin of the unit tests #739 updated was missed.
Cause. The test laid its station through the load path (
PlaceStation), drew a three-tile line from the exit and expected backspace to refund all three. Since #739 the ordinary clear spares the exit and entry tiles, so only two refund.The game does the same. The tile clear
0x53B280spares the cells held in0x7639E0/E4and0x7639E8/EC(0x53B2EF..0x53B350). Every station placement path sets them to the exit, through0x52A3A0(rotation 0: anchor + (4, 1)), and the entry, through0x52A420(0x524CB4,0x524FC9,0x5251F5,0x5255F0,0x525838,0x52788A,0x527A17); the walk0x52A970steps back from0x7639E0to the first station tile. The station line0x52A1A0writes the first station tile there only for a moment, before the placement overwrites it (0x524DFBbefore0x524FC9,0x525472before0x5255F0).Test. It now places the station as a fresh placement does (
PlaceInitialStation: the exit and entry free), checks that the line reuses the exit and pays for two new tiles, and that backspace refunds exactly those two at each shipped kart and water ride's own scrap row while the exit stays. No game code changes.
The entering frame's first draw and park HUD (October 21, 2026)#
The browser frame that enters a park fell from 83 to 60 ms (published AOT build, Jungle, medians of five runs). Its first draw fell from 19 to 8 ms, and the park HUD's creation (7 ms) left it.
The harness first had to name the cost:
the CPU profile of a slow frame is now read over the frame the profile itself saw (its clock was 28-30 ms off the page's);
frame marks cover the draw's parts, each entity type, the interface textures made on first use and the browser's WebGL calls by kind.
They showed first-time work in the first draw: the level's sky was created on its first draw (4-8 ms), and the HUD's interface images and font atlas were decoded and uploaded (5-6 ms). The rest of the draw and the HUD's first update are the runtime's first-call work.
Two behaviour-preserving changes:
the park build now loads the sky, creates the park HUD and makes the textures of its first draw in build steps, before the park is entered; the HUD reads the camcorder key and mouse button again on entering;
the browser spreads scheduled GPU deletions over frames, at most 1 ms per frame.
The front-end smoke checks that the park built over frames is entered with the HUD a build step made, in the state of a HUD made on entering, with the same world hash.
The entering frame is no longer the largest frame of the park start; two build steps are (71-77 ms). Still in the entering frame: the advisor (about 15 ms), the HUD's first update (7 ms) and the first draws of the entities, the advisor model and the HUD (about 6 ms), all first calls, and the live capture (7 ms). Details in docs/BROWSER-PERFORMANCE.md, "The first draw and the park HUD".
Arrival vehicles and the finale's End get their economy record when they are made (October 21, 2026)#
The bus, seaplane and Ferry are placed at their first trip, and the Instant Action finale's End when the research is complete; neither path gave the object an economy record, though the fixed items at the park's start get one. The original builds all of them with the common object constructor (tp.exe 0x004DB090, called at 0x51A57E and 0x516B8B), which counts the type and stamps its first-purchase turn, and every shipped TPWS saves an attraction record for the Bus, Seaplane and Ferry. So a single-player save of a park whose vehicle had come logged a repair warning and registered the record only then, and in a co-op session the host could neither save the park nor capture it for a join once a vehicle had come ("Seaplane (attraction 24) has no economy binding, which a shared park cannot repair"); the co-op join smoke found it. A fixed item made in play now gets its uncharged record at once (Level.BindFixedItemMadeInPlay). Two new tests make a vehicle through the level's own wiring and complete the research, a day into the park, and check the binding, the uncharged record, the type's count and first-purchase turn, the build tick and that a save finds nothing to repair.
Pool bridge help: a plain apostrophe the French fonts can draw (October 21, 2026)#
The localized pool bridge strings added on October 18 used the typographic apostrophe (U+2019) in their French text. The game's French UI fonts (for example TITLESMALL.bf4) have no glyph for it, so the with-data test EveryUiStringHasGlyphsInEveryUiFontOfItsLanguage(French) failed and the help line would have shown a gap. All four now use the plain apostrophe, which every shipped font has.
The Jungle smoke finds its ride sites again after the coaster cell markers (October 21, 2026)#
The native Jungle smoke failed since #736 with "find an on-screen site for a water ride and its circuit". #736 itself is faithful: tp.exe's station placement validates the cell beyond each track end in object mode 4 (0x5295C4..0x5295DE calls the cell op 0x104, whose preview path runs the validator 0x535670 with its sticky failure globals; an off-map beyond cell sets 0x816D50 at 0x5295E8), and the coaster's pylon and beyond-station cells now hold the type 21 marker. That refused some coaster sites the smoke tried before, and its site searches depended on where earlier steps had left the camera: the coaster site test scrolled the camera cell by cell while judging a site, and the water, kart and bumper searches only looked at the cells already on screen. The coaster therefore landed at (64, 18) instead of (62, 19), which explains the lower excitement (6.9 instead of 8.4: at the old site #736 rates the same circuit 8.4 again), and no free 9 x 8 area was left in view for the water ride.
The coaster site test now only reads the view it judges, and the track and bumper phases take a free site the view shows or else scroll to the free site nearest the view's centre. The water and kart phases also expect the exit and entry tiles that the station placement lays free of charge since #739 (0x5253E9): before any line those are the only track tiles, and the three lines lay the other six of the ten-tile loop. (The matching with-data TrackEditRecoveryDataTests expectation was fixed separately in #744.) All five native smokes pass; no simulation code changed.
A texture per park visit, and the managed step after the first visit (October 21, 2026)#
Every park visit left one texture behind for the session: the blueprint markers' area texture (the coaster tool's yellow-and-black placement square, made from bytes) was not released when the park's markers were deleted. It now goes with them, and in the browser the textures held stay at 306 in Jungle and 277 in the lobby over six visits (they grew by one per visit). The texture-pack list of .wct textures, which kept a dead weak reference for every texture a park had loaded, is now pruned as it grows.
The native front-end smoke test checks that the textures not loaded by path are as many in the lobby after each park as before the first (the type signs kept for the session left out), and names the file and line of any texture left; textures made from bytes record where they were made when origin tracking is on. The harness's --runtime-roots adds the framework's statics, the shared array pools and an estimate of every object reached: the one-time 47 -> 52 MB step of live managed memory after the first visit is not reachable from any static field (the reached objects stay at 57.0 MB), and it does not grow after the second visit. Details: docs/BROWSER-PERFORMANCE.md, "Textures and live memory across visits".
Pool bridge placement hints (October 21, 2026)#
A player could not find a spot that the pool bridge accepted. The tool gave no preview, and several refusals only said "you cannot build here". The bridge tool now previews the whole bridge on the blueprint: both outside path ends and the seven bridge cells, blue when the bridge can be built. When it cannot, the cell to blame turns red, and while the line reaches pool water the hover help names the reason. The new reasons are an outside end without a path, water where an approach cell's land must be (the pool is wider than three cells there, or the pointer is not on the first land cell), something in the way (a ride, shop, scenery, slide, queue, track, fence post or protected cell), another bridge, and land the park does not own. Each has its own message in all eleven languages, as do the flat-land rule and the existing refusals; a click on a refused place posts the same message. PoolBridgeResult gains EndNotPath, LandIsWater, Blocked and BridgeInTheWay, appended after the existing values. The placement rules themselves, saves, hashes and the co-op command funnel are unchanged.
Imported objects take their saved animations (October 21, 2026)#
The imported Jungle park is open and its gate script stands in its open state, yet the gate model showed its closed rest pose, so guests walked through closed doors. OpenTPW read only the hoarding flags from each object's RideSystem scene record; tp.exe's loader (0x4647A0) also puts the record's animation time controls and node states back.
What.
ParkObjects.ImportOriginalnow hands each object's record toOriginalObjectRuntime.RestoreSavedScene: every saved control below AnimID 12 goes back on its channel with its clip, sub-animation, loop flag, speed and deferred clip, its start set back by the saved game clock minus StartAnimTime so the next update continues the saved frame (0x4735D0), and an ended control (flag 0x4) stays on its last frame. The node bits 0x10 (hidden mesh) and 0x80000000 come back when the record's node and embedded-node counts are the model's (0x464AB4).Effect. The Jungle gate saved 5/1 ended on frame 50 of 50 and now stands open at load; the Bus (5/2, ended, meshes hidden) and the Traffic Lights (5/0, looping) follow the save, as do the rides, shops and toilets that saved a running or ended clip.
Fidelity. The word layout is read from the loader's copy (
0x464BEF), the debug dump's field names (0x464580) and the binder (0x472D10,0x472CB0). DET-013 is narrowed: controls held on the first frame (flag 0x2) or on the unscaled clock (flag 0x40) are reported, not restored; no corpus save holds one.Tests.
SavedObjectAnimationTests: the decoding of a synthetic record, the channel restore, the node states, the Jungle gate, Bus and Traffic Lights, and every object control of the Easymode save and the TPWS corpus.
Sign export: official bonus rides on request (October 21, 2026)#
The PS2 version ships 14 rides that are official bonus rides on the PC; the translator needs their signs too. --export-signs now takes --bonus-data <folder> (or --with-bonus for the folder a normal start uses) and then exports each theme's bonus archives with a .sgn after its shipped objects.
Same lines and pixels as the game. A bonus sign is composed by
ObjectSigns.Getwith the lines ofObjectSigns.Lines: theSIGNA/SIGNBof the archive's<language>.txt(all 14 rides have Spanish and English files), or the display name without one. A with-data test compares every bonus texture byte for byte with the game's composer and checks the shipped signs are unchanged by the bonus objects.Opt-in. Without the option the PNGs are byte-identical to before;
index.jsongains atextSourceper sign (OBJECT_NAMES.str ids,OBJECT_NAMES.str gate row,<language>.txt SIGNA/SIGNB) and"bonus": trueon bonus signs. Mod and extension objects are never exported; the bonus folder is protected like the game data.Documented in
docs/RUNNING.md, "Sign textures (debug export)".
Sign export: replacement texts from a file (October 21, 2026)#
The PS2 translator wants the signs drawn with the PS2 disc's own Spanish names, which differ from the PC language data. --sign-texts <file> (opt-in, only read) gives the export replacement texts per sign.
Format. UTF-8 JSON: a
signsarray of{ "theme", "object", "lines": [two strings] }or{ "theme", "object", "name": "one string" }, keyed exactly asindex.jsonnames a sign (the gate is the objectgatesof its theme, the lobby's signs are themelobby). Strict: unknown or repeated members, duplicate keys, both or neither oflines/name, control characters, line/paragraph separators, invalid strings and keys that match no exported sign are errors (all unknown keys listed) before anything is written.Game rules. A
nameis trimmed and split at the space nearest its middle, the ruleObjectSigns.Linesuses for a sign with only a display name (a with-data test checks it against every shipped object's own lines); the sign is composed again from its own.sgnbySignTextRenderer.ComposeSign, and a test compares the textures byte for byte.Index. An overridden sign has
textSourceoverride (<file name>)plusoriginalText,originalLine1,originalLine2andoriginalTextSource. Without the option nothing changes; with it only the named signs differ.Documented in
docs/RUNNING.md, "Sign textures (debug export)".
Debug export of every sign texture in one language (October 21, 2026)#
A translator of the PS2 version asked for the Spanish sign textures as images. --export-signs <language> <output directory> writes them: a debug tool, no game behaviour changes.
What. For each of the four themes the park gate (its OBJECT_NAMES row, as a new park's gate starts) and every object archive with a
.sgn, plus the lobby's four island and gate signs:<theme>/<object>-1.png(thesign1texture),-2.png(sign2) and a 256 x 128 preview, withindex.json(theme, object, archive,.sgn, info id, string ids and texts, drawn lines, file, size, RGBA and PNG SHA-256). English: 84 signs, 252 files.Same pixels as the game. The textures come from the composers the level and the lobby use (
ObjectSigns.Get, the gate's lines and composition, now shared throughOriginalGateSign.ComposeHalves, andLobbySigns.Compose); a with-data test decodes every exported texture and compares it byte for byte with them.Safe to run. Headless and offscreen (no window, audio, park, mods or bonus objects); the language is found as for a normal start and a missing one is an error before anything is written; the output directory must be new or empty and outside the game and language data, names from data are sanitised and every path is checked to stay inside it.
Documented in
docs/RUNNING.md, "Sign textures (debug export)", anddocs/LANGUAGES.md. Unit tests cover naming, collisions, path containment, the output-directory rules, the preview layout, the index and the command line.
Windows x64 and x86 releases ship the pinned SDL 2.32.10 (October 21, 2026)#
Refs #754: on Windows x64 the game had almost no sound, only occasional distorted noise. The win-x64 and win-x86 zips shipped the SDL2.dll from the Veldrid.SDL2 4.8.0 package, which is SDL 2.0.8 (2018); win-arm64 already shipped SDL release-2.32.10 built from source. The game's mix (S16 stereo, 22050 Hz, queued with SDL_QueueAudio) is clean, but SDL 2.0.8's conversion to the WASAPI float 48 kHz device dropped it: a WASAPI loopback recording of v0.8.94 in a Windows 11 VM showed about 225 gaps of ~27 ms in 40 seconds, against 2 with only SDL2.dll replaced by the official 2.32.10 build.
Build. The release workflow's
nativesjob now builds SDL2 forwin-x64andwin-x86onwindows-latestwithscripts/build-native.py, from the same pinned SDL source aswin-arm64, and both publish entries take it. The script now also checks that a WindowsSDL2.dllcarries the pin's FileVersion.One copy. A library in
native/<rid>/now replaces the package's native file of the same name in the build (PreferBuiltNativeLibrariesinOpenTPW.csproj), so the output holds exactly oneSDL2.dllinstead of leaving the choice to the SDK's conflict resolution.Guard. After publishing,
tools/check_release_natives.pyfails the release if a Windows folder does not hold exactly oneSDL2.dll, built for the runtime's CPU, with a FileVersion no older than the pin;tools/test_check_release_natives.pycovers it and the workflow wiring.Unchanged. veldrid-spirv and cimgui stay from their packages on
win-x64/win-x86: those are the same versions as the pins. Linux x64 bundles no SDL2 and uses the systemlibSDL2-2.0.so.0, as before.
Windows build runs without administrator rights (October 21, 2026)#
Found while reproducing issue #754 in a Windows VM: OpenTPW.exe asked for administrator rights at every start (requireAdministrator in source/OpenTPW/app.manifest, inherited from the original upstream project). Nothing in OpenTPW needs them: it only reads the game folder and the registry and writes its settings, online files and fallback saves under the user's AppData.
What. The manifest now requests
asInvoker, so the game starts without a UAC prompt; a test guards the level.Saves. Without elevation a game folder under Program Files is usually read-only, even when its
savefolder already exists. The save folder choice now writes and deletes a probe file instead of only creating the directory, so such a folder falls back to the settings folder'ssavebefore the first save instead of failing at it. Saves, options and progress an earlier (elevated) OpenTPW wrote beside such a game are copied into the fallback once (a marker file records it, so a park or snapshot deleted later stays deleted), never replacing a file, and the originals stay. Setup now also tells a Windows player that a game under Program Files saves to the settings folder. Unit tests cover a writable folder (saves stay beside the game, no probe left behind), an existing read-only one and the one-time copy.Cache. The editor cache (
CacheFileSystem) moves from./.opentpwin the working directory, which may be a read-only install folder, tocachein the settings folder.
Advisor drawn with the original's face test (October 20, 2026)#
The advisor was drawn double-sided on the strength of tp.exe's only Direct3D cull-mode write (D3DCULL_NONE, 0x566957). The engine culls in software before Direct3D, though: every mesh is queued by the submit 0x581CD0 (its only caller is 0x57A530) into [0x8BCBB8], which the scene draw flushes (0x576A00 → 0x582170 → 0x581DB0), and the primitive builder 0x580530 keeps a triangle only when it runs clockwise on the screen (0x581320, the determinant of its corners' x, y and w). The advisor's material now culls back faces with clockwise front faces, as the park's objects do. AdvisorTests.TheOriginalsFaceTestKeepsTheAdvisorsFacesTowardsTheViewer checks all five advisor models at rest: 2,468 of 3,890 triangles are kept, no mesh is drawn inside out, and 90 % agree with their stored (smoothed) normals. docs/LIPS.md is corrected. Captures before and after are in the notes folder (winter-captures/advisor-face-test); the advisor looks the same, as its hidden sides were covered anyway. Presentation only: no determinism pin moved.
Coaster economic eligibility without weakening admission (October 20, 2026)#
The ARRIVAL-003 proposal now includes bounded static PC evidence and an economic-only host consumer of the native shared predicate. Complete, closed, non-intersecting, unedited coasters can count before samples exist; guest admission still requires safe samples. Synthetic tests cover actual level synchronization, numeric points, edits, missing controllers, reconstruction and import. Exact-head CI remains required; no native execution or full arrival parity is claimed. Kart/water first-walk timing remains unresolved and ARRIVAL-003 stays active.
Recreate range-stopped catalogue loop output (October 20, 2026)#
Traced the missing output acknowledgment for AUDIO-038: native range stop clears the sample handle through its callback while retaining the logical owner, and a later admitted tick creates fresh output. Catalogue loops now retain their control handle, selected source, parameters and pool serial separately from the released output cursor, with terminal-stop and held-fade guards. Synthetic regression coverage targets phase, random order, pool admission, held lifetime and unchanged child playback. Sentence and finite-source timing remain explicit residuals; no original-media execution or local .NET test pass is claimed.
Bounded TPW occupied blueprint heights (October 20, 2026)#
Implemented a read-only preview-height adapter for proven live TPW object owners (primary types 4/9/10), using existing rotated height-map sampling. Added native signed quantization, raised tops, neighbour-stepped side walls, and stable height snapshots so changed occupancy rebuilds topology while ripple-only updates preserve it. PC evidence and remaining coverage.
Synthetic tests cover signed/fractional boundaries, non-square maps in all four rotations with a nonzero base height, wall directions and texture policy, terrain/ripple preservation, map boundaries, height-snapshot changes and conservative unsupported surfaces. No original media or execution is used. Local C# build/tests are unverified because restore was blocked on unauthorized metadata access; no retry or bypass. Published CI results must be checked separately.
BLUEPRINT-001 stays open for unsupported/missing-map and secondary surfaces and TPI. No placement, marker-selection, track-priority, economy or save behavior changes, and no approximation retirement.
Co-op: the coaster tool and its panel become commands (October 20, 2026)#
The last tool of the co-op command layer (COOP.md, "Tools"; [EXT:online-coop-commands]): the coaster tool and its panel now hand their writes to the park's command funnel (kinds 90 to 98). The tool's entry closes the ride, gives its controller the tool's state and marks the coaster as being edited, and its exit clears the mark and opens the ride again; both are commands, so every peer keeps guests off a coaster a player edits. Each build click is a command that carries the panel's height and loop edit mode, and a click on the closed circuit's station end completes the track; Backspace takes the last pylon back through its own command. A drag in the coaster panel is a press, one command for each step of the drag (as the panel wrote the pylon each frame) and a release that settles the money; the stack buttons and the demolish button's cut are commands too. The pylon a player is editing is the level's state rather than the panel's, as the employee in hand is. The commands keep the panel's rules: a drag's steps stay within the range its press gave, the loop button's gate holds, and a panel command needs its coaster in the tool. One drag runs on a coaster at a time, as one pointer gives in a game of one: another player's press, a stack swap, the close and the completion wait while a drag runs, and a click that places a pylon, Backspace and the cut release the running drag first, so no drag settles against a track that changed under it. A HUD's follow-up of its own placement (the coaster, track or queue tool a placed ride opens) now runs after the placement's command, so the tool's entry is logged as a command of its own, and a command issued inside another takes that command's player. Single-player play is unchanged: the tool issues each command where it wrote before.
The guard now refuses the coaster builder's writes and the tool state in the tool layer, which includes the coaster panel; only the developer sandbox load stays listed, for C2. ParkCommandCodecTests pins the bytes of the nine new kinds and refuses their out-of-range fields, the fuzz test draws them, and CoasterCommandTests runs a whole coaster tool session through its commands, builds the same coaster on a twin from the log alone and fuzzes three players' panel commands on a coaster in each state the tool reaches. ParkToolCommandLevelTests builds, closes and completes a coaster in the tool on a level and completes the same coaster on a twin.
Co-op: the park after a tick no longer depends on how ticks fall into frames (October 20, 2026)#
The co-op lockstep needs every player's park after a tick to depend only on the ticks and the commands (COOP.md; phase C1b). Until now a few things a frame did outside the fixed tick could change the park, so a replay matched live play only at one tick a frame. Each of them is now audited (DETERMINISM.md, "Frame batching"):
The pools' drawing, the evening, the snow's easing, the scene clock and the update of every entity are presentation: they write nothing the state hash covers, the simulation reads or a save keeps for the simulation. A test lists the entity types that have an update, so a new one must be audited.
The ride bodies' pose phase, which asks the guests' body players for templates and creates and deletes bodies, ran once per frame after the frame's ticks. It now runs at the end of every tick. At one tick a frame (60 Hz at normal speed) nothing changes; at faster speeds a body request lands at its tick instead of at the frame's end.
The staff host's bookkeeping (a member left picked up with no hand goes back to idle, a member without a position is put on the gate path) ran at the start of every frame and changes hashed staff state. It now runs at the start of every tick, after the tick's commands. The HUD's staff locator only reads the park now.
The level's frame step is one method (Level.AdvanceFrame), which the new FrameBatchingTests drive: a scripted park without game data gives the same world hash after every tick, the same command log and the same save in frames of 1 tick, 16 ticks and seeded random sizes, with its edits issued live between frames or replayed inside them. With game data, the park-resume smoke's restore phase now continues the saved Jungle park in seeded random frames with the continuation's edits replayed inside them, and must still match the capture phase tick for tick. No pin moved.
Co-op: the land, staff, pool and track tools become commands (October 20, 2026)#
The third part of the co-op command layer (COOP.md, "Tools"; [EXT:online-coop-commands]): the land tool, the hire and the employee in hand, the pools extension's tool and wave machines, and the kart and water rides' track tools now hand their writes to the park's command funnel as ParkToolCommands (kinds 54 to 83). A tool keeps its own state between clicks and issues one command for each write it made before, at the same moment, so single-player play and every pin are unchanged. The Buy Land tool's purchase is one command with its two fence posts, checked against the fence's lattice and validated again with the money. The hire, the placement, its cancel, the pick-up and the drop are commands, and the employee in a player's hand is now the level's state rather than the tool's, so the frame's reconcile keeps a member a replayed or a peer's command picked up. Each cell of a pool stroke, the stroke's undo (in chunks when a stroke holds more cells than one command takes), each slide piece, each bridge and the wave machine window's tick are commands. A track line, its undo and the edit tool's cut are commands that walk the circuit again, while the tool's step after the walk (it ends, the queue tool follows, or a Ctrl click restarts it) stays on the issuer's machine. The line tool's walk to the track's open end sets the walked tiles' overlap words that Backspace reads, so it is a command too, and so is a track add-on's walk, now without the tool's step. A full thing pool now refuses a hire before its placement ends, where the hire threw after it.
The guard now refuses the land, staff placement, pool, slide, bridge and track writes in the tool layer; only the coaster tool and its panel are still listed for the next part, with the developer sandbox load for C2. ParkCommandCodecTests pins the bytes of every new kind and refuses each one's out-of-range fields, and the fuzz test draws them all. ParkToolCommandLevelTests drives the staff and pool tools on a level without game data and applies their logged commands to a twin that reaches the same hash; TrackAddOnLevelTests does the same for the track tools, including the line tool's reopening and Backspace after a cut, and compares the track layer and ride controller. ParkLandTests checks the land command's posts and verdict.
Cross-platform coaster pins (October 20, 2026)#
Coaster content is now pinned on every runtime. DetMatrix (source/OpenTPW/Utils/DetMatrix.cs) holds plain-arithmetic versions of the matrix product, the point transform, the lerp and the slerp (with DetMath's acos and sin). The station frame of a placed station model (CoasterStationLayout.FromModel) composes the dummy's parent chain (ObjectAnimator.LocalTransforms) and the placement with it instead of System.Numerics' possibly fused product, and the pylon rig blends its clip keys with it instead of Vector3.Lerp and the platform's acos and sin. The imported coaster's pin from #702 is back (0x8A1279434220868B, moved by the coaster hash's two new fields), and two built-coaster runs are pinned, one with a reopen and its catch-up tick. CrossRuntimeMathProbe now also reports the System.Numerics matrix product, Vector3.Transform and Vector3.Lerp and DetMatrix's; DetMathTests pins DetMatrix's everywhere; the fused System.Numerics values differ under the browser's Mono AOT build, so that comparison is informative there. The browser pin check now also runs OriginalCoasterImportTests.
Bounded ordinary-child RSSE continuation (October 20, 2026)#
Added a transactional ordinary-child graph path with exact embedded identity, full-folder matching, nested saved run state, reversed file-list scheduling, no RNG draws during import and atomic refusal for malformed, unresolved or sound-linked graphs. Optional own-save list order preserves non-ID imported order while absent fields retain legacy behavior. The partial contract and original proposal distinguish synthetic regression coverage from runtime evidence. Sound, NAME, object animation/list, node/bounce/walk and TRIGWAITANIM animation-restoration residuals remain open. Independent static source review passed; compilation/runtime CI is pending, and DET-013 is not retired.
The park gates cannot be clicked, in the original either (October 20, 2026)#
After the object-pick fix (#680) the question was whether the original lets a player hover or click the park gates. It does not, and OpenTPW already matches: docs/UI.md now records the evidence next to the UI-027 retirement. A gate is a type-3 thing of kind 4, for which the window dispatcher 0x486920 opens nothing (0x486948); and no cell names it, because world setup creates it through 0x4db090 without stamping cells, the stamping 0x528a70 runs only from the build tools, and the world init types a level's cells from its MAP bytes as 0, 1, 2, 7 or 30 only. In the shipped Jungle save the gate's record stands at cell (0, 0) and no owner word names that cell. Docs only: no code, pin or save change.
Closing a ride withdraws its call at once (October 20, 2026)#
When a ride refuses the guest it called at the stand point (closed, broken down or condemned, or its admission slot still busy), the guest now does what tp.exe's state 13 does: it walks back to its place in the queue and stands there again, or leaves the queue when no route leads back. It used to stay at the stand point and offer itself again every tick until the ride's next update sent it away, and a priced shop or sideshow ran its price test, and recorded the guest's view of the price, on every one of those ticks.
Closing a ride now also clears its call at once, as the original's close does, instead of at the ride's next update. A called guest that has not started walking waits; one on its way is turned back at a closed ride and called again once the ride reopens, or admitted straight away when it arrives after the reopening. With that, GUEST-011 is retired. Follow-up to the post-merge review of #519.
Visitor display age: bounded GUEST-920 implementation (October 20, 2026)#
The original GUEST-920 proposal now scopes an independent integer-turn display age for the existing roster and individual Visitor Info. Bounded static TPW evidence confirms the creation stamp, unsigned age subtraction and different new-row/refresh quantization. Optional display-phase metadata preserves immediate own-format restore; old unknown/seconds-only saves keep their existing behavior. Seconds, gameplay, statistics, weather gates, roster membership/order and UI cadence are unchanged. Synthetic source/runtime regressions are prepared; frozen-tree review and exact-head CI are publication gates. GUEST-920 remains open, and no original-game runtime or full-fidelity qualification is claimed.
Imported parks keep their saved queue cells (October 20, 2026)#
The Jungle Easymode import now restores the save's queue cells (map type 3) with their link byte, queue link, placement counter, owner word and NoModify flag, as tp.exe's cell load (0x4D0B30, mode 0) reads every cell record into the map. Since the typed queue front of QUEUE-003 (#540) the imported Belly Bounce's front was its entrance-linked cell, which the import had left empty, so guests could not join and the native Jungle smoke failed. The ride now has its saved four-cell queue (front (52, 22), back (49, 22), the saved mQueueSizeInCells and mBackOfQueue), and guests join from the path attached to its back. The Jungle smoke sends its visitors to such a ride from that join cell. New with-data tests (ImportedQueueCellsTests) cover the restored cells and boarding without the native smoke.
A park saved by OpenTPW before this import gets those queue cells back at load from the level's shipped save ([EXT:legacy-save-queue-cells], user-approved 2026-10-20), only where its cells are still empty ground and the ride's entrance links into them; newer saves are untouched. Saves older than the access-link fix of October 17 (an entrance with no link byte) are not repaired: they cannot be told apart from a removed queue.
A list audio test no longer leaves text entry on (October 20, 2026)#
FindParksEnterClicksOnceThroughTheSearchButton (#712) focused the Find Parks search field, which turns the global text entry on, and never turned it off. Any later test in the same run that opens the wave machine window then failed, because the window refuses to open while text is being typed. The test now restores the previous state, as the rename tests next to it already do. CI's test order did not hit this; a local with-data run did (found in the post-merge review of #712).
MD2-900: Evidence-backed texture lifecycle (October 20, 2026)#
Advanced the original proposal with a bounded PC contract: outgoing texture-clip cleanup resets all raw-flag0x40 slots, including fixed items; ended channels stay bound while held ID12 keeps its final frame but ceases writing. Added ordinary replacement/unbind/loop and held-history synthetic regressions. The existing draw reader is unchanged. Source review and exact-head CI remain required; no local runtime test or original visual comparison is claimed. MD2-900 remains for aggregate/list-pass and headerflag4 residuals.
Other Parks opens the park on the row you see (October 20, 2026)#
Opening a row in the online Other Parks list now uses the list as it is shown at that moment. Before, the screen kept a separate snapshot of the parks, so a row opened while the city's park list was still arriving could open nothing, or an older park after the list was replaced. tp.exe does the same: its list handler (0x4C1A10) reads the activated row's item from the list widget at activation time (0x4C1B05) and then opens Park Details (0x4C0AE0). Five regression tests in ListOwnerAudioTests cover an empty list that fills, a row replaced under the mouse and the keyboard, a list that shrinks, and the empty placeholder (#700; this entry was added after the merge).
Post-merge review of five approximation PRs (October 20, 2026)#
A review after merging #470, #495, #506, #517 and #593 checked their claims against tp.exe and fixed what had gone stale:
The online pause layout (UI-013): the park pause menu starts at top 10 with a gap of 5, or at 0 with no gap while the net-session field
+0x60is set (0x48c36c,0x5b6450). That field is set only by the login reply "Authorization OK" (0x5b6363) and every other store writes 0 (the other login replies, the login teardown and the session resets), so the mapping to the logged-in session is now a[BIN]label; UI-013 stays open for the menu font tier.Visitor alignment (UI-907 retired, UI-914 narrowed): the count cell's constructor
0x48fde0does store alignment 0 (left) at0x48fe28, and the visitors list's row factory0x4939d0aligns only the number, cash and time cells. The visitor info window's builder0x4b6c20aligns none of its value cells, so its cash and time values are now left-aligned like its counts (they used the list's right and centred alignment).Retained breakdown state (ECON-023): a
[BIN]label forSetState0x4e0e60: states 1 and 4 keep the object closed every tick until a repair sets state 0.Linked access wandering (GUEST-010) and directional demolition (TRACK-007): stale status text fixed. The demolition clears the same link bit as tp.exe (the line step
0x53B280clears the bit opposite to the step, and0x52FE50replays each line backwards), now a[BIN]label; TRACK-007 is narrowed to the other junction shapes.
No simulation change and no pinned hash change.
Buy preview drawn with a depth buffer and the original's camera (October 20, 2026)#
The buy window's turning preview (PreviewIcon) was a painter-sorted CPU projection: on the Orbiter, the jungle and Halloween puzzle sideshows, the Halloween Tour ride, the Fruit Shy and others, faces drew over the faces in front of them at some turns. It is now projected with tp.exe's own steps and drawn with a depth buffer. The projection was traced in tp.exe: the preview object has its own view, an identity matrix flipped in y (0x45bd30, 0x57a260), used instead of the park camera for model flag 0x200 (0x57a750); the viewport maps it straight to the screen with the depth × 0.1 and no perspective divide (0x579690 mode 2, 0x582f70); the matrix 0x468e50 rebuilds each frame now has its offset terms ported (the footprint centre placed in the frame, minus 0.35 · share · reach); and the primitive builder keeps only the triangles that run clockwise on the screen (0x581320 in 0x580530), which is why the Direct3D cull mode can stay D3DCULL_NONE. Depth is LESSEQUAL (the device init 0x573080 sets ZFUNC with the depth test, 0x57360f). Each new preview also plays the model's animation 5 (<model>m1, else <model>m, looping; 0x4732a0 from 0x4689f0).
The kept triangles are drawn into an image of their own (UiDepthImage, UiRenderer.PrepareDepthImages, the new ui-depth.shader with its WebGL2 copy), which the interface draws where the preview stands; the object windows use the same image path with their own 30° view. UI-026 is narrowed to the preview's lighting (0x57aa10, drawn unlit here) and the footprint cells' pixel edges; [EXT:preview-icon-cpu-projection] now names only the CPU projection and the separate image. No new approximation.
Measured by the new PreviewDepthOrderTests over all 346 preview models (274 original, 72 from the extensions) at 16 turns: the drawn image shows the same face as a depth-tested reference at every one of 53.5 million covered pixels; the old painter's order showed the wrong face on 3.2 % of them, in 332 models. The original's face test would drop the downward-facing PURPLE_BASE ground plates of the Space Racers and The Blobulator previews; at the user's decision ("Grondplaten toch tonen (EXT)") they are drawn anyway ([EXT:preview-ground-plates]), and every other triangle keeps the original's test. The winter kiosk's roof shows its tiles at every turn. --debug-hud buyitem: now makes a type still in the lab available first, so every preview can be captured. Captures before and after are in the notes folder (winter-captures/preview-depth). Presentation only: no determinism pin moved.
Ride-exit cell and direction, UI-095 (October 20, 2026)#
The previous camera consumer confused three distinct cells and two distinct bytes. The yaw switch was already correct; duplicating it would not fix the caller.
Independently checked native contract#
Static reads of TPW's tp.exe, without executing it:
0x42A340looks up the cell under the saved park target. Its call at0x42A36Dto0x536340requires type 9 (entrance), not any occupied cell.It follows that cell's owner word
+0x10to the owner cell's thing-list head+0x24, then selects a type-3 thing withUsageInfo.CannotRide == 0.0x42A22Ereads that ride's word+0x38. This ismExitPos, not the footprint anchor: serializer0x4DCA9Apassesride + 0x38with the string at0x75B558, literallymExitPos.SaveAttractionalready records this layout.0x42A295calls0x522850, which reads cell+0x0D(direction/queue link). The neighbour getter0x522770instead reads+0x0C. Masking with0x55selects exactly one cardinal bit; zero or several cardinal bits retain yaw.Placement's switch
0x529164(tables0x529D24and0x529D04) sends shape type 10 to0x529239. The exit's symbol direction is rotated at0x5292A7and written at0x5292B2through0x5227E0, which writes+0x0D. This is an exit producer, not an inference from an entrance neighbour link.
Bounded host correction#
The live entrance's owner identifies the live ride; its last shape exit is the same exit selected by the placement access-point enumeration. Recenter uses that exit and QueueLinkAt, never the anchor or LinksAt. Missing entrances, owners or exits do not acquire a fabricated fallback. Existing prior-camera restoration and rideability/deletion checks remain in place.
WriteFootprint writes the rotated exit direction for placement and original import reconstruction. Own park snapshot capture/restore preserves QueueLink separately from Links. Object removal clears its footprint and the direction. Synthetic actual-placement fixtures exercise all four rotations through the real camera consumer, separate entrance/anchor/exit positions, deliberately conflicting neighbour bits, zero/ambiguous direction, owner absence, import reconstruction, snapshot restoration and removal. Existing tests cover CannotRide and prior walk camera identity.
Remaining boundaries#
This does not reconstruct arbitrary native overlapping thing-list order, nor import a saved mExitPos that diverges from the reconstructed shape's exit. Original import still reconstructs the direction from the shape rather than reading every saved direction byte. The host park camera's pose/smoothing is not the original camera implementation. These are explicit residuals, not claims of full UI-095 parity. No new owner-anchor link writer is needed for this correction.
Ride hoarding: closed, broken down, condemned and upgrading rides are boarded up (October 20, 2026)#
Ports tp.exe's object model state and its fade: the boards that rise around a closed ride and sink when it opens. It was neither ported nor registered. Presentation only: nothing in the simulation or a state hash reads it, and no pin moves.
Variants. The model call
0x454550picks one of four texture sets of the level'sMiscMesh\textures(Closed, Hoarding, Condemn, Upgrade;.wctin Theme Park World,.fshin Theme Park Inc): mode 1 the closed set (unless another set stands and is not sinking), 2 the broken-down set, 4 the condemned set, 8 the upgrade set. It sets the rise rate 0.2 per second and the thing flags standing and rising; the opening's call0x4547C0makes a standing hoarding sink at 0.3 per second. The frame update0x4548F0moves the level 0..1 every frame by the frame's real time, stops a risen hoarding and takes a sunk one out of the scene, back to the closed set.Boards. The builder
0x452E70makes one board per open edge of the type'sInfo.Hoardinggrid (the map symbols of0x402720), sorted round the grid by angle, corners pulled towards the ground node's vertices, both faces drawn;0x454190sets each board's bottom on the terrain and its top 10 above; the rise0x4543C0raises the boards in a staggered wave (even boards to the full height, odd ones to 0.8). All 129 shipped types withInfo.Hoardingget one.Calls. Every closing the original pairs with the model call makes it: a new ride that starts closed, the player's close, a breakdown (broken-down set, or condemned for a worn-out ride), a blocked exit, a repair that recloses and an upgrade (upgrade set); every opening sinks it. Loads and snapshots keep the flags and level (the RideSystem record's packed bits
0x4647A0, then the restore0x4547F0), and a restore makes no model call.Presentation, also when saved. A loaded level outside 0..1 is held to it, so the snapshot stays valid; the park-resume smoke compares the runtimes without the hoarding, whose level follows real frame time (docs/DETERMINISM.md). A level builds each type's boards and loads its four textures once (
ObjectHoardingCache).QUEUE-023 is narrowed: the opening's model call is made; what stays open is the unhooked re-evaluation sites.
Documented in
docs/OBJECTS.md, "Hoarding". Unit tests cover the map parser, the board order, the corner pulls, the rise and the state machine; with-data tests pin the totem's boards and every shipped type's board count, and the textures of both games.
SAVE-013: Saved particle pool configuration (October 20, 2026)#
Advanced the historical proposal with a bounded static PC load contract. Original import and own-save continuation now carry density, capacity and low-detail semantics, even for initialized empty pools; legacy missing configuration keeps the host settings. Invalid capacity is refused before mutation, and saved emitter rates remain unchanged while future emitters use saved density. Synthetic regressions cover continuation, allocation boundaries, signed density, low-detail refusals, atomicity and compatibility. Source review and exact-head CI are merge gates; no local .NET execution or original visual parity is claimed. SAVE-013's sprite, template, flag/group and effector-identity residuals remain open.
Shared visitor frames for scripted WALK (October 20, 2026)#
Scripted WALK poses now consume the shared visitor player output rather than an elapsed-time frame loop. No emitted FRAME means no body; provider-free geometry helpers keep their fallback. Synthetic tests cover finite action prefixes, stand tails, request ordering, due equality and body-history continuation. Independent source review and Python consistency tests passed; C# execution awaits CI. TOUR-011 remains open for the documented clock, terrain, movement and attachment residuals, with no original visual-parity claim.
TRACK-032 structural decoding (October 20, 2026)#
Added SaveTrackRideBlock and synthetic malformed-input/field-preservation tests. Native evidence corrects two earlier descriptions: chunk 3 is 40 serialized bytes (0xd0 is the native ride stride), and chunk 6 selects from a distinct 0x1c waypoint chain reconstructed from chunks 3/4, not the pool-ordered raw 0xac chunk-5 records. See the updated proposal and wire contract.
The reader preserves opaque data, stream order, duplicates and repeated reference requests. Nonzero-owner waypoint keys stay unresolved. Typed payload lengths enforce the native writer's shape, explicitly stronger than the native loader's malformed-input handling. No Level.Tracks, controller restoration, fresh-walk replacement or runtime identity policy changed; TRACK-032 remains open.
Validation: whitespace/diff checks performed locally. No local .NET execution was attempted because of the known IPC restriction; compilation and synthetic test execution require exact-head CI. Static native evidence was reviewed independently before implementation; the implementation requires its own source review before publication.
Advisor review follow-up: one telling per event, a full arrival ring for loaded parks (October 19, 2026)#
Fixes the findings of the post-merge reviews of the staff (#631), queues, prices and research (#634) and tickets and challenges (#636) advisor batches.
A met challenge is told once. The restored-advice extension no longer says 319 and 320 (the double-or-nothing offer): the original's own path posts 270 for the follow-up offer and 272 for the win, so with the extension on (the default) the same event was told two or three times. The two entries, their trigger and the follow-up count are gone, and the extension restores 43 messages instead of 45 (
restoredtags incontent/data/advisor-producers.toml, LIPS.md, MODS.md, ADVISOR-SCAN.md, README.md and the website). Principle: the original's own advice wins and a restored line never tells an event the original tells. A test runs a real park with a follow-up chain throughAutomaticAdvisorwith the extension on and asserts the original's lines only.No stray first-group line after loading. 281 (exactly one arrival group in the ring) fired once after loading an established park, because the advisor's arrival ring restored empty while tp.exe's saved ring is full. A park from an original save now reads its saved ring (
SaveArrivalRing,OriginalParkImport.ArrivalGroups: the analyser serializer0x4C5D70writes it after the recent-stays ring through0x4CE660as current entry, count, wrapped byte, scratch word and five entries; the sizes come oldest first). A legacy OpenTPW save has no ring: a park with admissions takes it as full (AdvisorArrivalRing.AssumeFilled, a stand-in registered as ADVISOR-028, not a port of the original's filled flag; the unknown sizes read as 0 and real sizes replace them). Aggregate admissions cannot recover the original group count or sizes: a legacy park saved after exactly one group can lose 281, while two to four held groups would not qualify for it; hype and big-busload scores can also differ until real arrivals replace the relevant unknown values. A park without admissions keeps its empty ring, and a snapshot that has a non-empty ring is taken as saved.Ticket counts.
TicketsAftertook the later wins of a check off the player's total after the ledger had added the park's set, so a later win the ledger already held (a replayed theme) was subtracted although it was never added, one ticket too few. The later wins now leave the park's set before the ledger adds it in (AdvisorPlayerTickets.Withoutis gone), with a replay test.Docs. The scan notes now read 9 computed callbacks left (the
blockedscan rows) besides the 21 constant-zero stubs, in place of "27" and "127"; 344 is listed as the one help descriptor that is posted after all (the first challenge offer); the #636 note counts agree with the inventory (234 wired of 351, 30 scanned messages unported: 21 stubs and 9 computed); the #634 note says the booth's perception ring 0 is economy state that enters the world hash (the advisor itself stays outside).PlayerTicketLedger.csis CRLF again, as before #636.HaveEverTrainedstays in the world hash. Nothing in the simulation reads it, butDETERMINISM.mdandStaffRoleOrderTestsname it as hashed gameplay data, so dropping it is a separate, deliberate change; the doc now says so. No pin moves either way.No game data, captions or
Advisor.samvalues were added.
Signed arrival history survives park resume (October 19, 2026)#
The advisor's five-entry arrival history now accepts the signed group sizes that the arrival simulation already records. Above 1500 guests offline or 500 online, a group keeps the limit minus the counted guests. Rejecting that negative value meant a park could save its advisor state and later be refused at the advisor preflight of resume, before the live park was replaced.
Only the negative-value rejection is removed. The five-entry capacity, controller validation, speech guard and validate-before-restore order remain.
Arrival generation, ring contents and scoring stay unchanged. The hype callback reads signed values; a synthetic threshold above 100 percent distinguishes a negative newest group from a zero-clamped one.
Added asset-free C# regressions cover both arrival update paths and both limits, signed JSON and ring continuation, an absent legacy field, and rejected restores leaving all advisor state intact. A synthetic whole-park regression attaches the actual advisor, produces an over-limit arrival, saves and loads the file, and exercises the candidate's simulation and advisor resume stages. It does not run the GPU/menu shell of
GameFlow.ResumePark.The local workspace has no .NET SDK, so these C# tests require CI execution. No original software was run, original assets published, gameplay hash definition changed or approximation retired.
See the arrival-ring trace.
Every list owner traced: list rows never click (October 19, 2026)#
APPROX:AUDIO-041 is retired. The hook 0x485780 clicks (0x1F, or 0xBD under a style-0x10 parent) only for message 0x100, and the only 0x100 senders in tp.exe are the button release 0x6691eb and eight window keyboard paths. The type-7 list constructor 0x662562 is reached only from layout records: 19 lists in 18 tables, whose owners (Load, Save, Find Parks, Other Parks, visitors, overview, staff, hire, loans, buy, upgrades, the staff dialog, postcards, chat, the dial-up chooser and the IME candidate list) send no 0x100 on any row path. A still click on the scroll thumb b_scroller sends 0x802 to the slider through its own procedure 0x66bb9b, never 0x100. The keyboard clicks only where a dialog turns its text field's Enter (0x802; the save screen also Escape) into its tick, always 0x1F by the window's style 1.
Changed: UiScrollList is silent by default; the Theme Park Inc text HUD and the Extensions and mods screen (both OpenTPW's own) opt in. Enter in the park rename's second line, in the employee rename and in Find Parks' search field now plays the tick's 0x1F through the tick or search button. A refused hire keeps its message but no longer plays the error 0x1D, which the original's hire row (0x49b988) never plays; the buy and add-on refusals keep their 0x1D (0x4ac7f6, 0x4af5d6). The unused UiListItem is removed. AUDIO.md has the owner and keyboard tables. No determinism pin moved.
The room reverb is a design choice: EXT:audio-reverb (October 19, 2026)#
APPROX:AUDIO-039 is retired. The user decided on October 19, 2026: "nagalm mag EXT" (the reverb may be an extension). The original sends the 13-dword SndReverb.map record (tp.exe 0x6C46B0) to an EAX 2.0 listener property set or to the backend's vtable slot 0x50; QMixer.dll only forwards it to a COM object (+0x10C, made at 0x1800B530) and holds no DSP, so the actual reverb lives in the sound device or driver and can be neither recovered statically nor captured. ReverbUnit, its constants, its size mapping, the dry preset 0 and the voices it covers are now labelled [EXT:audio-reverb]; the preset selection (0x55A470 -> 0x51C8D0) stays ported. AUDIO.md keeps the evidence and states the stand-in is OpenTPW's own by design. The website, README and AUDIO-003's reverb reference no longer list the reverb as missing. Labels and text only: no behaviour or determinism pin changed.
Browser and desktop compute the same park: the determinism gate (October 19, 2026)#
Co-op phase C1b. Lockstep with browsers that join and host needs the WebAssembly build to compute the desktop's simulation bits.
Measured first. The asset-free tests that pin simulation results now also run inside the browser build: 632 tests covering the economy, guests, pools, umbrellas, winter, weather, smarter guests, script mods, cheats, coasters, tours, bump and track rides, staff and loans. They are compiled into the page with
-p:OpenTpwDeterminismPins=trueand run in headless, muted Chrome (tools/web-determinism). The newBrowser determinismworkflow runs them on every pull request for Mono AOT and the interpreter.Before any change, every pin already passed in the browser, and a new with-data digest (
--determinism-digestagainst tools/web-perf'sdeterminismscenario) was identical in all four themes. The digest covers the fixed park run, the run with staff, two years of weather, and the M4 scenario's 659 to 692 state hashes of rides, shops and object scripts.The C libraries behind
System.Mathstill disagree: Apple's libm and the browser's musl differ in the last bit for hundreds to thousands of 20,000 probe inputs per function.
Removed the dependency.
DetMath/DetMathFport FreeBSD msun's sin, cos, atan, atan2, acos, pow and log2 to C# with a fixed order of IEEE operations. They give the same bits everywhere and are bit-identical to the browser's musl for the trigonometric functions.About 30 simulation call sites use them: loans, coaster geometry, rating and crossing, tours, bump rides, walk and guest headings, and the sideshow tail. They are labelled
[EXT:deterministic-math](the user's decision).The start-up sine and arctangent tables, built with DetMath too, are unchanged entry for entry and keep their binary-evidence labels.
No pin moved. New pins: DetMath's results, the lookup tables, and the correctly rounded square root and fused multiply-add.
Guarded. A second source scan bans the platform's elementary functions, rotation builders,
Guid.NewGuidandParallelin every simulation folder, with a listed presentation allowlist and a[DET:presentation]line marker (DETERMINISM.md, "Browser and native").
Browser event hitches (October 19, 2026)#
The game stuttered in the browser at some in-game events. A new harness scenario, events in tools/web-perf/run.mjs, shows which ones and why. It drives a Jungle park through window opens, buy previews and builds, weather, research, the autosave, month and year ends, a coaster build, a crowd and a fast soak. For every slow frame it records the game's named work (FrameMarks) and, with --profile --symbols, the AOT functions a CPU profile found there.
Published AOT build, medians of three runs:
| Event | Worst frame before | Worst frame after |
|---|---|---|
| Entering the park | 572 ms | 147 ms |
| Largest frame of the park start | 713 ms | 234 ms |
| First Belly Bounce preview | 202 ms | 55 ms |
| Advisor line during a window open | 13-42 ms | 8-18 ms |
| Year end | 26.5 ms | 7.6 ms |
| Fast soak | 21.3 ms | 10.6 ms |
The park is ready 0.5 s sooner.
Four behaviour-preserving changes made the difference:
bit-identical faster x87 sign arithmetic, with the relief terms reused;
advisor speech decoded over frames in the browser (a line's audio may start 50-150 ms later there, and the mouth waits for it);
the first restart snapshot's JSON metadata and asset manifest prepared in steps before entering;
remembered file-system existence and listing answers for the browser's game data.
World hashes, sign hashes and determinism pins did not move.
Remaining hitches are listed in docs/BROWSER-PERFORMANCE.md under "Event hitches":
the entering frame (first draw and park HUD);
the autosave capture (37 ms);
the first preview of a ride with a sign (55 ms).
Merging origin/main added work to the entering frame, which then took 216 ms instead of 147. On builds after that merge it fell further, to 85 ms (medians of three runs):
the first restart snapshot is now validated after entering, in steps;
the capture's code is warmed during the build;
the advisor's settings, models, clip lengths and theme costume are read during the build.
The prepared advisor reads are dropped when a build starts its preparation, fails or is abandoned, when the game tears down, and when a mod or language change alters what the file system reads, so a later park never takes stale ones.
In the browser the advisor's mouth follows the late-starting audio, by the same lead as on the desktop. A line whose speech cannot be decoded after it started ends at once and reserves what a line that cannot be said reserves; the desktop skips such a line before it starts.
The restart snapshot's guarantees are unchanged: the capture still happens in the entering frame, and the pending marker still blocks an earlier park until the snapshot is committed. The first draw (19 ms) and the HUD (16 ms) remain.
Browser pins: exclusion guard and stricter reports (October 19, 2026)#
Follow-up within the browser determinism gate (co-op C1b), from the PR-watch review:
BrowserPinsExclusionTestsfails the ordinary desktop run when a test file that usesOpenTPW.Serveror ASP.NET Core is missing fromDeterminismPinsExcludedTests(the server transport test from main had broken both browser legs).tools/web-determinism/run.mjsnow also fails on a test that ends inconclusive for any reason other than missing game data, a language pack or the repository sources.compare-digest.mjsreports an M4 hash list present on one side only and themes present only on the right.DETERMINISM.mdlistsFlatRideBounceRiders.Prepareand the per-frame entity updates among the work outside the fixed tick.
Browser transfer and memory (October 19, 2026)#
Transfer: the pools sprite files (.TPC, 7.9 MB for a Jungle visit) are now published with Brotli and gzip copies (5.0 MB sent), cached for a year by their content hash (?v=) instead of being asked again by 48 requests per visit, a browser without Brotli gets the gzip copy instead of a proxy compressing the 44 MB runtime again on every request, and the page no longer asks for /favicon.ico. A cold load plus a Jungle park sends 17.4 MB in 104 requests (20.2 MB in 105 before); a reload makes 13 requests, all 304, instead of 61.
Memory: the lobby scene and the terrain released only their buffers, not their materials (and the shader copy, pipeline and uniform buffer in each), so every lobby visit leaked about 160 materials and 5-6 MB; live managed memory in Jungle fell from 72-86 MB (growing from visit to visit) to 61-62 MB (flat), and the renderer's resident memory by 63-270 MB. Equal shader sources share one string and the particle atlas drops its CPU pixels after the upload. Texture and simulation digests are unchanged. Uploading the 8-bit textures as 16-bit formats is not lossless for any real texture (34 of 8,412 are exactly representable) and was not done; GPU block compression, palette atlases and a smaller render-target footprint are measured and recommended in docs/BROWSER-PERFORMANCE.md ("Transfer and memory"), not shipped. The harness gained --upstream (the production server's transport), the reload and transfer scenarios, GPU texture and resident-memory counters, --track-origins and --gc.
Burger Shop customers stay in view (October 19, 2026)#
A user report: guests disappear in the Jungle Burger Shop and never come out. The simulation loses nobody: with its original script the shop takes a guest, holds it for one second and lets it off, in all four rotations, on laid access cells, in the M3 gate's whole park (hundreds of uses in 20 minutes) and in a native jungle run (ShopVisitAssetTests). What differed was the drawing. tp.exe keeps a shop customer's body when the shop's UsageInfo.RideHandlesSprite is 1 (state 16 at 0x50212B) and does not move it (0x4FA087), so the guest stands at the counter while it is served; OpenTPW hid every served guest, so customers vanished into the hut and popped up again on the path among the waiting guests. Customers of such shops are now drawn standing at the stand point (GuestSimulation.ShowsKeptBody); shops that delete the body and pools changing rooms still hide them. The M3 gate gained ShopFilter and ShopRotation.
Review changes: tp.exe's state-16 entry keeps the body for every object with RideHandlesSprite 1, not only shops, so the sideshows and toilets that set it now keep their guests in view as well. Their scripts were decoded: they move the kept body only through the walk table (WALKON/WALKOFF/WALKGET, already drawn), and the Small Toilets, Giant Puzzles, Strength Flower and Ufo Blaster leave it standing at the stand point. A kept body whose walk or bounce entry has ended stays where it was last placed (FlatRideBounceRiders.HoldKeptBodies, the sprite pass 0x542010), and a guest standing in place keeps its umbrella drawn. KeptBodyAssetTests runs the 17 shipped sideshows and toilets that keep the body. Presentation only: no pin moved.
The exit walk (October 20, the user's decision to port it here and re-pin). GUEST-023 is retired, so the PR adds no approximation. A let-off is now read once per park turn, by the ride update's dismiss (0x4E1410). ExitRide (0x5014E0) then puts the guest at UsageInfo.ExitCellAppearPos in the exit cell, and state 15 (0x500900) walks it to the cell beyond the exit. A queue cell there, or no route, is a blocked exit: it closes the ride (0x4DF150) and keeps the guest on it until a later ride update finds the way free. ExitRideTests covers the exit point, the reversal, the blocked exit and the cadence. Every pinned run with guests moved; the old and new values and the reasons are in docs/DETERMINISM.md, "The exit walk".
The globe's chat satellites are parks to walk in (October 19, 2026)#
A click on one of the Online World's five chat satellites now opens its chat park's details, and Enter visits its park in three dimensions: the chat mode with the room's players as figures that walk, teleport and ride, as in a visited published park. Before, a satellite entered its room in a flat overhead view.
This follows tp.exe, where the satellites were parks, not rooms of their own: they showed the parks of a city of their own (city 1's park list, entry i on satellite i; 0x5B7610), a click opened that park's details (0x4C56E0 → 0x4C0AE0) and Enter visited it like any park, in the chat mode and the park's own room (0x4C0880 → 0x5B8910, CreateRoom at 0x4E6A67). OpenTPW shows the details in the short variant tp.exe uses for such a park: the name as the title, "Theme : …" (UITEXT 271 with the theme's name, formatted "%s : %s" as 0x4C0AE0 does), the description and Enter, with the owner's action disabled ([EXT:online-chat-park-details]). docs/reverse/ONLINE-VISIT.md "Chat satellites (tp.exe)" records the traced list, counts, click, details, visit and room.
The server's chatparks.json now names, for each satellite, an original level (jungle, hallow, fantasy or space), optionally a published park and a description; a new route, GET /api/v1/chat-parks/scenes (with a login), lists them for the click. A satellite that names a published park downloads and visits it as any visit; otherwise the game builds the starting park of the satellite's level from its own data, once the level's files are there (the browser copies them only when a level is first played). The visit walks in the satellite's standing room, so its count counts it and a player on an older version, who sees the room from above, walks among the park's visitors ([EXT:online-chat-park-scene]). An older server without the route keeps the overhead view ([EXT:online-chat-park-view], now the view of a room without a park to visit).
The research also read how the original's own figure entered a park (0x4E5EF0): at the centre of entrance 0's cell (FixedItemInfo.EntranceA), placed as a teleport and sent as MovePlayer(…, 1). A visit's figure now starts there and its first place goes out as a teleport; before, it started between the entrance's two cells as an OpenTPW choice.
Tests: ChatSatelliteTests (the default and configured chat parks, malformed fields and levels that are no theme's, the scenes with a published park and after it is unpublished, the scenes route's login, the satellite's count, a satellite's details and their Enter without a visit, an older server without the route, an answer that comes after the globe closed, a satellite the server keeps no chat park for, and — with the game data — Enter visiting a level's starting park and a published park in the satellite's room through a real server), ParkPresenceTests and ParkPresenceStateTests (the entry as a teleport). The front-end smoke captures the chat park details (online-chat-park.png) and checks the theme row is drawn.
Review changes: CreateRoom is cited at its call 0x4E6A67; the docs note that tp.exe sends the entry teleport only when the entrance cell is of type 0x12; a satellite has exactly one room name (satellite:01 is refused); SERVER.md says a wrongly typed field resets chatparks.json to the defaults.
Cheats, phase K0: the original cheat mode traced and the ride capacities read (October 19, 2026)#
New CHEATS.md: the original's cheat system as
tp.exeholds it, verified instruction by instruction for this phase. Renaming the park to "Kevin the" / "Cosmic Cow" (the rename OK handler0x4993E0XORs each character with its index and compares with the obfuscated strings at0x751A54/0x751A3C) turns on the cheat mode byte+0xAof the static object0xFB3520(0x4053C0), which is saved as the two-byteCHTSchunk (0x4055D0/0x405570) and opens the "cheat" key context0x78733C: twelve Alt-only keys (table0x7484D0, mask 0x30): Alt+R makes every research item available, Alt+1 credits 10,000 as a prize, Alt+G and Alt+Num1..5 award the six local golden tickets and Alt+Num6..9 the four global ones with record 100, silently.The user's decisions of 2026-10-19 are recorded there: the original cheat mode always works, the new cheats window only with
opentpw.cheats(off by default), a cheated park is marked for good but may still be published and ranked, cheat tickets count toward keys with their provenance recorded.Ride capacities read from the data (all four themes): bumper cars 1..8 (one rider a car), karts 1..8 (CryptKarts 1..16 with two riders a kart), water rides 1..5 riders per boat (the boat count is limited only by the template's 64, so a boat cheat has nothing to raise), tours 1..27 riders (Star Tours 1..24) with ceil(capacity / 9) cars (/ 8 for Star Tours), so 3 cars at the most. The second arrival vehicle's archive is
seaplanein every theme; it is named "Plane" outside the jungle.Narrowed: COMPAT-007 (the object
0x78733Cthe flag opens is the cheat key context; left open: the listeners of message type0x15) and SAVE-010 (what the cheat bytes are). No code changes.
Cheats, phase K1: the park's cheat record, the turn-boundary queue and the cheated mark (October 19, 2026)#
A park now keeps its cheats (CHEATS.md):
ParkCheatsin the park economy holds the original's cheat mode (CHTSbyte 0, set by0x4053C0and never cleared), a record of every applied cheat (turn, kind, argument; at most 4,096 entries) and the cheats waiting for the next turn. Every cheat is queued and applied at the start of the next park turn, before the turn's thing sweep, in a fixed order of kinds and with no random draw, so a run with the same cheats at the same turns is the same run. The only kind so far is the mode itself; the original's cheats come in K2.Saves and pins. The park save holds the record only for a park that has cheated or has a cheat waiting, validated on load; every other park keeps its save bytes and its hash, with the new
opentpw.cheatsextension on or off (FixedRunHashunchanged;CheatsTestschecks both). The record joins the run hash through the economy digest only when present; no schema version moved.The extension
opentpw.cheatsis registered, off by default and not yet selectable (it gets its window in K3). It is used-only: a world save records it once the park has used one of its own cheats, and such a save needs it to load; a park cheated through the original's cheat mode alone loads without it, as the user decided that mode works with or without the extension.The cheated mark. The load and continue menus write "(cheated)" after a cheated park's name, in all eleven UI languages, and a cheated park's shared package carries the informational flag
cheated. Exporting, publishing and ranking stay allowed (the user's decision; the original refused with UITEXT 417): the sharing code and the server are unchanged apart from the flag.
Cheats, phase K2: the original cheat mode, its twelve Alt keys and the CHTS chunk (October 19, 2026)#
The original's cheat mode is ported (CHEATS.md) and works with or without the
opentpw.cheatsextension, as the user decided. Renaming the park to "Kevin the" / "Cosmic Cow" in the ticket price window turns it on (the rename handler's XOR-by-index compare,0x4993E0); the sign keeps the name. From the next park turn the twelve Alt keys work: Alt+R makes every research item's object buildable without researching it (0x503FF0), Alt+1 credits 10,000 as a prize (0x4D0190), Alt+G and Alt+Num1..9 award the ten non-secret golden tickets, the global ones with record 100 through the player's holder rule (0x5AF810,0x5AF940). A cheat fires when its key is released with Alt alone held, as in the original (0x40C990), and Alt+R and Alt+G no longer open the research and entry price windows (the dispatcher's exact modifier match).Tickets from cheats count, toward keys and theme unlocks, and are silent: no advisor line, only a short note on the screen, as for every applied cheat (four new UI strings in all eleven languages). The player's progress file marks the tickets a cheat earned (
"Cheated": true), and a file without cheats keeps its bytes.Original saves. Importing a player's original save applies the
CHTSchunk's first byte (nonzero marks the park as cheated); exporting writes the park's own chunk,01 01for a cheated park and00 00otherwise. The jungle's shippedEasymode.TPWIturned out to carry01 01(the eleven Nexus corpus saves carry00 00): a park started from it is not marked, so Instant Action parks keep their saves and pins.Alt+R survives original saves: importing a cheated save makes the objects its research cheat marked buildable again, and the export writes the mark back. With Alt alone held the keypad's 4 and 6 no longer scroll the camera (they are ticket cheats, as in the original's exact key match), and a key let go together with Alt still fires.
Port decisions recorded with labels: the shipped seed's bytes, the original's three first-use guards that clear the mode once per process run (not reproduced), the turn boundary, and the message of type
0x15(not posted; COMPAT-007 narrowed to it and the online record copies). SAVE-010 keeps only the chunk's second byte.Tests.
CheatsOriginalTests: the secret name and its transform, the rename throughLevel, the key table and the exact Alt rule, the real HUD frame firing on the release once and only in cheat mode, each cheat's effect, silent tickets and the global holder rule with record 100, Instant Action, the ledger's provenance and file, the notes, and an imported and exportedCHTS.
Cheats, phase K3: the cheats window, arrivals by vehicle and the weather (October 19, 2026)#
opentpw.cheatscan now be switched on on the Extensions and mods screen (it stays off by default). With it on, Alt+C opens the cheats window in a Theme Park World park of the player's own (CHEATS.md). It is built from the options pages' pieces and every button queues a cheat for the next park turn. Its first row turns the original's cheat mode on, as the secret park name does; the other buttons work once the mode is on.Visitors by vehicle. A bus, plane or boat brings a group at the next turn, sized into the dispatch's own bands (bus up to 35, plane 36 to 60, boat 61 or more) from the next natural group's size and cut by the park limit as every group is. It is delivered like a natural group, and waits while another group or vehicle is at work.
The weather. Clear, rain, thunderstorm or snow in every theme, applied at once as a forecast with no warning; the natural schedule goes on from it.
The original's cheats in the window too: a chosen golden ticket (the ten that have an Alt key, shown beside each), 10,000 money and every research item's object, all the same cheats as the keys, so they mark nothing about the extension.
Determinism. Every cheat still applies at a turn boundary with no draw; a cheat the park cannot take yet waits and is recorded at the turn it applies, and while an arrival waits no natural group starts and no vehicle is called for leaving guests, so it gets a free turn. A new pin,
CheatsFixedRunHash=0x5CBF8584199279AB, runs a scripted sequence (money, research, a ticket, a boat, a bus that waits for the boat's group, and rain), and a park saved before the boat, while the bus waits and after it continues identically.Strings. 34 new UI strings (the window's labels and choices, the notes of the weather and arrival cheats, the extension's name and description) in all eleven languages; a test with the localisation pack checks that every label of the window, with every choice, fits its row at the page's size in every language.
Alt+C no longer arms the camcorder (or leaves the ride view): the original matches its C key only without a modifier.
Tests.
CheatsExtensionTests: the extension and level gate, each vehicle's band, a boat that waits for a group at work, the weather in every theme, the window's rows and Alt+C, the pinned run and the save in the middle of it.
Cheats, phase K4: a ride's vehicle limit (October 19, 2026)#
More vehicles on a ride (CHEATS.md): the cheats window's last two rows pick one of the park's bumper car, kart or tour rides and raise its vehicle limit at the next park turn, to 32 cars or karts or 40 tour cars (the user's ceilings). The ride's capacity maximum grows to fill them (a bumper ride 8 → 32, CryptKarts 16 → 64, a tour 27 → 360), so the ride window's own slider reaches the new limit; the water rides are not offered, because their boats are already limited only by the module's 64.
The real scripts follow. With the game data, the jungle bumper script launches 32 cars at capacity 32, and every theme's tour script asks for and flies 40 cars; on a test loop 32 karts race and all come home, the ones past the eight grid slots starting from the station.
Saves and the original format. A raised ride writes its raised state in the world save (the ride, its bump controller's limit or its tour controller's 40 slots), checked on load to agree; every other save keeps its bytes. The original-format export refuses a park with a raised ride whose capacity is above its type's original maximum, because the original keeps a ride's capacity in a byte.
Determinism. No draw; the raised state joins the hash only for a raised ride. A new pin,
CheatsBumperRaisedRunHash=0xDF2C86E99A8FB3C0, runs a raised bumper ride's session with 32 cars.Strings. Four new UI strings (the ride row and the vehicle button) in all eleven languages, and the extension's description names the new cheat; the window's label-fit test covers the rows with every shipped bumper, kart and tour ride's name in every language.
Recheck closed rides at the stand point (October 19, 2026)#
The called guest's stand-point admission now rechecks whether the ride is open and outside its retained broken/condemned state before writing VAR_LETMEON. The guard leaves coaster/track choice tests and already-consumed boarding alone. Synthetic host coverage exercises the actual runtime close entry point and a live guest subturn before the next ride update. Immediate pending-call withdrawal remains a separate GUEST-011 residual; no approximation ID is retired, and the tests do not claim original-game execution.
Coaster clock catch-up and the speed setter's replay gate (October 19, 2026)#
A coaster's motion tick now takes as its frame time the simulation time since its last motion tick (CoasterRide.MotionClockLagSeconds), as tp.exe's 0x43CE20 takes the scaled game clock since its clock word ctl+0x120 (whole milliseconds × 0.001, no clamp, no substeps). A cut or reopened track (state 1) runs no motion tick (0x435AC9), so the first tick after it is completed again catches the whole stretch up in one tick. The fixed steps stand for the original's scaled clock as the substep scheduler maps it: they stop while the park is paused (the game pause 0x4092A0 freezes the clock) and multiply with the game speed. EXT:coaster-fixed-step is narrowed to the frame itself: one motion tick per 60 Hz step instead of one per rendered frame, and no zero-time ticks while the clock stands still.
The speed setter 0x43B2B0 (COAST 8 and the slice tail) now has its gate: a changed speed word is skipped when controller bit 0x8000 is set and no layout replay runs (0x785A2C). Only the layout replay's coaster speed action (0x447E30, action 0x45) sets the bit; OpenTPW runs no layout replay, so CoasterRide.SpeedSetByReplay stays clear. The coaster hash and the park-resume save carry the lag and the bit (optional fields); no pin moved.
The substep gate's flag 0x7A1A8C bit 0 (SimulationSubstep, docs/DETERMINISM.md) is now described as what it is: an option bit, set by default (0xC0E15), that skips the substep body while the application is inactive (0x7A1A14 bit 3 clear). The park pause stops the clock (0x4092A0), so a paused park runs no substep and its counter stands, as in OpenTPW. Comments and docs only; no behaviour changed.
Coaster save reader docs after review (October 19, 2026)#
Follow-up to the coaster save reader correction (#687) from its post-merge review: the saver skips only the station and end nodes (0x437426/0x437605 test descriptor bit 0x10; the "pylon-less nodes" were never shown to sit mid-chain), the slot allocator 0x468760 stores a saved slot other than -1 as given (no allocation, fallback or global change, so "preferred slot" is gone from TPWS-PAYLOAD.md, SaveCoasterList and the SAVE-922 text), and the loader's match path sets ctl |= 2 (0x4386BA) before |= 0x4000.
Original saves with a roller coaster load (October 19, 2026)#
A Theme Park World park saved with a built roller coaster now loads instead of being refused (S10, P1 and P2 of the coaster import). OriginalCoasterImport restores each saved coaster as tp.exe's loader 0x437B60 does:
the block binds to its station through the station's mesh instance id;
the pylon nodes get their loop pairs, flags, loft, yaw, bank, incline and loop rotate;
a complete track gets its end node, and a cut keeps its two ends;
the state, ride mode, power factor and seats are restored;
the trains in service stay at their saved positions, speeds and flags, because the first rebuild after a load keeps them (
0x43C450while flag0x4000is set).
The first frame after the load runs the controller's first motion tick, which takes no time (0x43CE85): the trains stay where they were saved, while a speed above the cap is capped, one below 2.0 decays by 0.95 and one below 0.01 stops. This is the first tick of every controller, so a newly built coaster now starts the same way (CoasterRide.MotionClockStarted).
When the station's saved script holds the coaster's slot, the script loop's speed setter applies the script's speed word after the script's first slice after the load (one pass in eight by script id, 0x5516E1, 0x5517D7). That re-rates the track and lays the trains out again, as the original's next rebuild does. A park whose coaster binds to no station, where the original crashes (0x437CD5), is refused with the reason, and so are shapes the original's editing never leaves. The riders on the trains are not restored yet: SAVE-920 is narrowed to them, and they wait for the riding-guest import (S2).
No real Theme Park World save with a coaster exists, so the import is verified against tp.exe's reader and against synthetic blocks. A test-only writer puts OpenTPW-built coasters into the original layout, and hand-made blocks cover the edge cases. The Theme Park Inc prebuilt coaster serves as a real-byte cross-check. No pin moved, and none was added: a coaster's content hashes differently on macOS arm64 and on x64 (libm), so the coaster tests assert relations.
Review change: a coaster that never ran (state 1, mode 16 or 32, power 0, as tp.exe's zero-filled constructor saves it) imports instead of being refused.
Coaster save reader corrections (October 19, 2026)#
Phase P0 of the original coaster import, from a static trace of tp.exe's coaster loader 0x437B60 and saver 0x437300. Reader and docs only: no coaster is restored yet and no pin moved. SaveCoaster.RidersOnBoard is renamed IntersectionCount (controller +0x140 is the track's self-intersection count, not a rider count), the header words gain named accessors (TypeId, Slot, TrainsInService, SeatsPerTrain), and the section "links" are now CollisionOrdinals: collision lists of chain positions, resolved by 0x43E520, bounded by the native list's eight slots (the reader refuses more, where the original would overrun the list). SAVE-922 is narrowed to the two placement values +28/+32: only +20 (the slot) reaches the slot allocator 0x468760, and the three globals are its state. docs/TPWS-PAYLOAD.md now documents the loader end to end, including that it binds each block to the controller the RideSystem loader already made through the station's mesh id and that the original crashes when none matches (0x437CD5). The queue fields are corrected too: SaveAttraction.BackOfQueueCell (mBackOfQueue, a cell id, not a guest), mBeenAdmitted as the called-forward flag, mQueuePos as the sideshow-win flag in state 14 (SaveGuest.SideshowWon), and the unsaved join happiness +0x20C that the loader zeroes (0x51861C).
Co-op C1: the winning screen and the Totem's run as commands; a ring for the command log (October 19, 2026)#
A follow-up to the command layer (COOP.md). The winning screen's exit (Resume Game, Escape, the right click) no longer removes the Instant Action finale from the HUD: it issues a DismissFinaleCommand through Level.Commands, and the developer panel's open and close button for the prototype Totem issues a SetPrototypeRunningCommand. Both have new kind tags (22 and 23, next to the prototype's place and remove; 22 is the tag the economy branch gives the same command) and pinned bytes in the schema test, and the static guard now refuses a direct call of either mutator from the tool layer. The in-memory command log is a ring that overwrites its oldest entry in constant time instead of shifting 65,536 entries on every command of a long bulldozer drag; its order and kept entries are those of the old list. A seeded fuzz test throws commands of every kind with off-map cells, unknown and negative ids, bad rotations and line modes at the executor: none throws, and every refused one leaves the world hash unchanged. COOP.md now quotes the plan's later record that the user approved the proposed online-coop-* labels. Single player and every determinism pin are unchanged.
Co-op C1: the command layer for objects and paths (October 19, 2026)#
First part of co-op phase C1 (COOP.md). Every edit of objects, paths and queues is now a serializable command (ParkCommand) applied through the park's one funnel, Level.Commands, before the next simulation tick: the build tool, the Move tool's pick-up and placement, track add-ons, the remove tool, the sell buttons of the object and attraction windows, the path and queue tools' lines and undo, path and queue cell removal, Backspace over a cell, the queue edit click and the developer prototype. The tools keep their own state (the armed entry, the build angle, the line tool's stack); commands carry everything the executor needs, so the same command does the same on every peer. A read-only visit refuses every command, and IParkCommandRights is the hook for the host's per-player rights. Commands have a versioned byte form pinned by a schema test, a command log with hash checkpoints (--record-commands <file>) and a replay; a scripted build session replays on a twin park with the same world hash after every tick. A static test refuses a direct call of a converted park mutator from the HUD, the screens or the tools and lists the mutators still to convert (economy settings, then the tools). No determinism pin moved. The co-op design decisions the user approved are quoted in COOP.md.
Co-op: the HUD windows' settings become commands (October 19, 2026)#
The second part of the co-op command layer (COOP.md, "Settings"; [EXT:online-coop-commands]): every setting the HUD's windows change now goes through the park's command funnel as a ParkSettingCommand (kinds 25 and 30 to 53). That covers the park door, the entrance fee, attractions open and closed, the ride window's settings, prices, prizes and shop settings, training budgets, the research lab, loans, upgrades, maintenance calls, the challenge answer, renaming and dismissing staff, patrol areas, the park's name, the game speed and the cheats. Each command names its object by attraction id, keeps to the window's ranges, checks what the edit would refuse and then makes the park's own call, so single-player play and every pin are unchanged. Each command keeps its control's rules, so a peer or a log cannot do what the window would not: a condemned ride takes no door, call or upgrade command and a ride with an unfinished track no door command (the ride window's refresh, tp.exe 0x4ad4e0), the ride speed keeps to its slider's range and the shop quality to its three steps. An answer names what the player saw (the challenge's offer, the loan's amount, the repayment's balance). The loans dialog's list build, which stores hashed credit tests, is a command too, and so are the developer object panel's open-all and close-all, which still open and close every object without the reopening guard. The HUD's speed status goes through the same commands, and the challenge answer no longer has a direct path around them.
The command layer's guard now refuses every converted settings mutator in the tool layer. Still listed for the next part are hiring with the staff placement, land, pools and coasters. ParkCommandCodecTests pins the bytes of every new kind and refuses each one's out-of-range fields. ParkSettingCommandTests checks every setting, its refusals and malformed text on a level without game data. ParkSettingCommandLevelTests acts on placed rides and replays a recorded session of settings on a twin park with the same world hash after every tick. Tests whose HUD had an economy other than its level's now attach it to the level, as the game does.
Score disconnected typed queue backs before routing (October 19, 2026)#
Faithful attraction scoring and major decisions now admit a real typed queue back after its connecting path is removed, with actual view facts and a false public join-cell flag. An explicit opt-in capability preserves smarter/custom host eligibility and is forwarded by script wrappers. The existing score-19 oracle is extended, and new regressions cover route ordering, observational peeks, real hooks and guest/VM JSON restoration. These C# tests are authored, not locally executed. Scope and verification keep minor decisions, extension planning and remaining queue geometry qualified; GUEST-002 remains open and no approximation ID is retired.
Employee portraits follow current world output (October 19, 2026)#
The employee portrait prefers the selected member's successfully prepared world slot, step and heading, with camera yaw fixed at zero. Work, strike, research and performance phases no longer default to the hire walk when live output is available.
Reads do not tick/restart/select animation, consume movement or retain GPU handles. Exact member/ThingId, current level/renderer, world-pass and atlas-generation checks reject stale output, including a renderer omitted from a world pass.
The pre-existing qualified hire-loop fallback and its clock/key updates remain unchanged, as does the hire screen. This is not native independent-clone or source-loss lifecycle parity; UI-092 remains open, with native VM/flag history, depth/occlusion and real-data visuals still qualified. UI-082 still owns sizing.
Added synthetic C# coverage of the actual CPU world preparation and HUD callback, including repeated reads, selection/reopen/rename/modal, mirroring, source eligibility, skipped passes and resource lifetime. Local checks pass: six Python source-integration checks, fidelity/progress/scope/release-train tooling, website-document tests after generating the fidelity register, and 21 Python evidence suites (1,537 tests reported, 595 skipped without private fixtures). The local environment lacks the pinned .NET SDK, so focused/full C# execution is deferred to exact-head CI; no GPU or original-media visual comparison was run.
See employee portrait behavior and verification limits.
Employee-only nominal portrait geometry (October 19, 2026)#
The employee portrait now uses its authoritative inherited inner bounds
(386,280,264,264), signed-integer authored feet(526,476)and nominal 2.4 canvas units per reference sprite pixel. The frame artwork stays at its existing outer bounds. Hire, visitor and generic figure geometry remain independent.The live-world accessor and existing role/variant hire-loop fallback callback are unchanged, including source/texture lifetime guards and phase timing. UI-092 remains open for independent-clone VM/state/flags, native source-loss/refresh lifecycle, rotation/depth/occlusion and exact viewport/raster parity. Corrected stale UI-092 register prose about already-implemented navigation, rename and locator behavior; UI-082 owns hire sizing only.
Added synthetic C# coverage through the actual employee callback and Draw, all six vertex positions/UVs, independent three-widget/default controls, odd/signed endpoint arithmetic, 5/8-direction banks, mirroring, unequal frame densities, multiple viewports, live non-walk/fallback phases and repeated reads/draws versus a no-read world control. Existing hire and visitor regression assertions now require the employee-specific hotspot despite the shared nominal 2.4 scale.
Local portrait source guards, Python/JavaScript tooling, evidence checks and progress/register validation were run; the .NET SDK is unavailable locally, so solution build and C# tests were not executed here. Exact-head CI and independent review remain required. No original executable or artwork was executed/rendered, and no GPU or original pixel equivalence is claimed.
The evening extension in the load switch (October 19, 2026)#
Since the torches (#665) the evening extension is a used-only content extension, so a park with a torch that is loaded while the extension is off offers "turn it on and load" like the pools, umbrellas, winter and cheats extensions (#668). The switch test, DETERMINISM.md, MODS.md and the ParkExtensionSwitch summary now name it; the two PRs merged on the same day and each passed alone, which left main's switch test expecting four content extensions instead of five.
The evening shoulder fades in with the dusk (October 19, 2026)#
The soft highlight shoulder of the evening extension (test.shader) switched on whole on the first frame below full daylight, so a lit surface dropped in one frame (a fully lit 0.8 texture from 1.0 to 0.58) twice per day cycle, and already compressed bright unlit surfaces in the middle of the dusk. It is now weighted by the ambient that has fallen away, clamp((1 - g_flAmbientLevel) / 0.65, 0, 1): nothing on the first dusk frame, the whole shoulder at full night (ambient 0.35), with the uniform block unchanged. EveningTests.TheShoulderFadesInWithTheDuskSoALitSurfaceNeverJumps checks day, the first dusk frame, full night and every 0.01 step between; content/shaders/web/test.json is regenerated. Review follow-up of #632: EVENING.md now says the pool spray and the smoke, dust and steam particles take the sprite tint too, and the lamp test allows the taller bound only for the underwater light.
The torches' flicker and flame (October 19, 2026)#
The evening extension's torches (EVENING.md) now burn: their flame moves and their light flickers, following the user's decision of October 19, 2026 ("Alleen licht en sfeer", a deterministic flicker preferred; [EXT:evening-torches-flicker]). Both are presentation only.
TorchFlicker.At(seconds, seed): a fixed sum of three sines (0.9, 2.3 and 4.7 Hz, a gentle flicker) with phases from the torch's cell, so each torch flickers the same way in every run and neighbours do not pulse together. The clock is the extension's own play time, which stands still while the park is paused and is never saved.The lamp table gains a per-light
flicker(0 to 0.5) and a per-rowflamenode. The four torch rows flicker by a quarter (the light dips in step with its flame) and name theirflamenode; every other row stays steady.EveningFlamesdraws each torch's flame node stretched (height 1 +/- 0.14) and leaning slowly (at most about 3.4 degrees) about its base every frame, scaled by the lamp level: hidden by day (an empty cup), growing at dusk, whole at night, like the light. It goes through a presentation-only transform on the drawn parts (OriginalObject.SetPresentationNodeTransform); the animator's node transforms and hidden nodes, the lamps, the snow cover and the simulation are untouched.The jungle and fantasy torch lights are stronger (1.9, 0.88, 0.24 and 2.1, 0.55, 1.6), sit 4 model units lower and reach 44 model units, because their green lawns showed hardly any pool of light at the first values; Halloween and space keep theirs.
Verification: five new EveningTorchTests (the flicker's determinism, bounds, smoothness and neighbour difference; the flame transform's fixed base, bounds and growth with the lamp level; the table's torch rows and refused values; the flame as its own render part; the flame cache following placement and removal and hiding by day), the evening world-hash tests unchanged, and captures of each theme at day, dusk and night outside the repository.
Torches for the evening extension (October 19, 2026)#
A buildable torch in all four themes, the user's request of October 19, 2026 now that parks can be dark and the only light a player could build was the pool lamp. Following the user's four decisions (EVENING.md): the torches are part of the evening extension (opentpw.evening 1.1.0 is now a simulation extension, recorded in a park save only while the park holds a torch, like the pools, umbrellas and winter extensions; [EXT:evening-torches-save]), they give light and mood only (no attraction value or bonus, never chosen by a guest, an idle script; their light is a lamp-table row on the flame), they come in themed variants (a bamboo Tiki Torch, a wrought-iron Pumpkin Torch, a metal Plasma Torch with a blue flame and a striped Candy Torch with a pink flame, OpenTPW's own Blender art from tools/blender/opentpw_torches.py and tools/evening/build-content.sh), and they are cheap: Theme Park World has no bench, so a torch costs 50, the price of its cheapest shipped scenery (space's Small Bush), with no upkeep and no research, in the Features tab with names in all eleven interface languages.
content/evening(ids 63900 to 63903 in the reserved range 63900..63999, which nothing else used) is a content root ofopentpw.eveningwhile the extension is on, not in a Theme Park Inc run; the catalog cache key now names that root. MODS.md gained a table of OpenTPW's own id ranges.The lamp table has a new match key
mod(the content root's id), so only the extension's own torches match the four torch rows (25 rows, 38 lights).A park without a torch saves byte-identically with the extension on or off; a torch records
opentpw.evening 1.1.0and the placed torches' asset keys only, and such a save refuses to load with the extension off. Exporting a park with a torch is refused like one with a winter kiosk (packages record no mods yet).The browser harness's
PerfEvening("off")used to take the extension out of the run's mod set, which a simulation extension cannot do; it now sets the run-scopedLevel.EveningLookOff, which skips the cycle and the lamps and leaves the mod set (and the catalog) alone.The browser page embeds
content/evening(347,862 bytes) with aRequireExtensionContentguard, and the server image copies the folder.--debug-torches N(Debug builds) places torches near the camera target for captures.
Verification: EveningTorchTests (10 tests), the updated EveningTests and ModsScreenTests, and the related content, save and catalog suites pass locally; the world-hash tests of the evening extension (on and off, no torch) are unchanged, and no determinism pin moved. Captures of each theme's torch at day, dusk and night stay outside the repository.
Extensions apply at the next park, without a restart (October 19, 2026)#
[EXT:extensions-apply-at-load], user-approved 2026-10-19 ("Ook ontbrekende extensie aanzetten"); follows the load dialog of [EXT:save-extension-switch].
The Extensions and mods screen. When only official extensions changed, OK writes
mods.jsonas before and the flow applies them without a restart (GameFlow.ApplyExtensionChoices): in the lobby at once, so the next park started or loaded uses them ("The changes apply to the next park you start or load. No restart is needed."), and inside a park when it is left or another park is loaded ("... when you leave this park or load another one."); a Restart Park keeps the running park's set. Never while a park simulates (a park started from inside a park while a choice waits is built in one go, as with a waiting language). A failed load switches back, while the old park is still live, and keeps the choice waiting; a choice taken back in the same park leaves nothing waiting.What re-evaluates.
ModStartup.ApplyExtensionssets the active set and the official extensions' catalog content roots (pools, umbrellas, winter; the catalog cache is keyed by them) and tells the host; every other reader already takes the set when a park is built (the guest rules and policy, the weather, the pools tool, slides and rows,PoolGuestSprites, the umbrella and warm-item renderers, the evening lamps, the snow) or reads the gate on use (the HUD rows, the cheats window, the info window). The browser fetches the pools sprite sets when pools or its guest art come on later. The load dialog and the load list plan against the extensions the next park uses.Still a restart (in the browser a page reload), documented in MODS.md "When a change applies": community data mods and their inputs (they overlay the original files, strings and catalogs read at startup; script mods are compiled at startup behind the safe-mode marker), the online extension (folders, command-line tools and the lobby button are set up at startup), extensions set on the command line for the run (
--disable-extension,--enable-mod), and switching off an extension an enabled community mod needs or switching on one a refused community mod needs. A change that includes one of these applies wholly at the next start, with the old restart notice.Docs. MODS.md (screen, "When a change applies"), DETERMINISM.md, POOLS.md, EVENING.md, WEB.md, RUNNING.md, README.md and the website's mods paragraph.
Verification.
ExtensionsApplyAtLoadTests(the screen's three notices and the community-mod fallback, the lobby applying at once, a park keeping its set until it is left, a load applying the waiting choice and a failed load keeping it, Restart Park keeping the set, the dialog planning against the next set, an in-park start built in one go with the waiting choice and switched back on failure, a choice taken back, the online extension, both command-line options, a mod's dependency and a refused mod's revival needing the next start, the notices in all eleven languages).
The park gate's sign slots no longer fall back to the shipped placeholder (October 19, 2026)#
A report showed the Jungle park gate's board with the shipped placeholder "SIGN1 SIGN2" on every new park start, in the browser with the Dutch game files. The cause was not reproduced: the browser build (headless, muted, interpreter publish, the Dutch CD layout theme park 2, no screenshots) builds the gate sign every time and binds it to the gate object, in a new Jungle park, after Exit To Lobby and a second start, from kept (OPFS) files, with the night look, and with Dutch chosen at start-up ("Verloren Koninkrijk", 11,943 text pixels, YOUNIA__.TTF); the desktop build agrees. The most likely cause is a page from before October 11 (the gate bound the shipped sign art then, commits 520eaaabc and 3d9d547da), for instance a cached older build.
What changed so the placeholder cannot come back through the paths found:
One rule for every
sign1/sign2slot (SignSlotPlan): the gate (found by the level'sParkName.GateObjectId, with the sign of its own level, which is made before the level's objects) shows the park name, or a plain brown board when its sign is missing or failed; any other fixed item draws its own sign or the board; a placed object draws its own sign. The board is one shared texture that is never released.Creating the gate sign no longer stops a park for the unexpected read failures (arguments, platform support, state, access), and a half-built gate sign entity no longer breaks its own deletion.
An object type's sign that could not be read (I/O, access) is tried again up to three times (logged once) and one whose archive had no files yet (the browser copies a theme's files when a park starts) is not remembered as missing for the session; failures that repeat (bad data, a missing key or a bad argument in the sign data) stay cached.
Track pieces, vehicles, coaster cars and tour cars are unchanged: none of the shipped ones has a sign face (
LobbySignCorpusTests).
Not changed: a placed object without any .sgn (a mod's) keeps the art it ships; that and the drawing itself (pixels) are not covered by the tests, which check the choice of texture source, the cache rule and the failure filter.
Happiness gauge uses the vertical meter art (October 19, 2026)#
Replaced the HUD's synthetic red/yellow/green fill with the source-backed vertical meter: its empty right image half and filled left image half are cropped upright at one shared boundary. The shell and child now use the decoded control rectangles, with the existing bottom-left anchor applied once. Null/zero draws the empty image, and image failures have no fabricated fallback. The established two-second sampling and byte-mean mapping, including 50→511 and 100→1023, are unchanged.
The crop helper is shared with research while preserving its art, staffing-limit value, wrapper and UI-064 state. Added synthetic C# tests for raw boundaries, actual HUD composition, mapping, sampling cadence, read-only draws and missing/malformed resources; extended research regressions. Python integration/math checks were run locally. The .NET SDK is unavailable here, so C# execution and actual renderer captures remain pending exact-head CI and a supported render environment.
UI-901 remains open for rendered shell/meter composition and alpha verification. No original executable was run, no original-runtime pixel parity is claimed, and no original media is redistributed. Generic tooltip routing remains outside this drawing change. The earlier plan-only progress entry is preserved as history.
Hire portrait inner bounds and nominal scale (October 19, 2026)#
Corrected only the hire figure to the statically traced inner rectangle
(513,202)..(723,415), signed-integer feet(626,362)and nominal 2.4 canvas units per reference pixel. The outer picture frame stays(484,179)..(748,443); A/B density, hotspot mirroring and UV reversal use the existing figure layout.Preserved the actual callback's role/variant source, clock, selection and resource behavior. The employed-tab extension deliberately shares this hire-box layout and walking loop. Generic figures, the separate employee window and visitor geometry remain unchanged.
Added synthetic actual-HUD callback/CPU-Draw coverage for all roles, two variants, both direction sets, A/B density and multiple output sizes, plus odd/signed arithmetic, navigation/reopen, missing resources, save and RNG nonmutation. Existing employee fallback-phase and visitor/generic/employee geometry controls remain.
Replaced the obsolete unknown-consumer explanation with derived evidence and remaining limits. UI-082 stays open for native delayed FRAME/start/close/invalid-selection phase, global rotation/depth and exact viewport/raster parity. No original program was run or emulated, and no original assets or private input metadata are published.
Validation: 178 local tooling/source tests and 114 JavaScript tests passed; the separate evidence runner passed 21 Python suites (1537 tests, 595 skipped). Register checks retain 165 unresolved IDs and progress checks pass. Exact base comparisons confirm the callback/lifecycle, employee/visitor/info windows, staff renderer and sprite rules are unchanged. No .NET SDK is installed locally (test invocation exits 127); focused C# tests, full CPU tests and compilation require CI on the published head. No GPU or real-data visual comparison is claimed.
Review follow-up: the draft's documentation-only fragment is removed, and the employee window's figure size (3.2 drawn where scale 8.0 gives a nominal 2.4) is now owned by UI-092 instead of UI-082.
The lobby's islands show their theme's gate sign instead of the placeholder (October 19, 2026)#
Entering a park from the lobby showed the shipped magenta placeholder "SIGN1 SIGN2" on the theme island's gate during the zoom. The lobby and globe scenes (OriginalModelScene) bound every material by name, so the four lobby models with sign1/sign2 faces (Jun_isle, Hal_isle, Fan_gate, Spa_gate) drew the shipped art.
What the original does (tp.exe, read statically): the lobby builds each island with two explicit lines that 0x409B10 takes from the theme gate's OBJECT_NAMES row (gates 1601, 2601, 3601, 4601: the lines a new park's gate starts with, never a saved park name), and the island constructor 0x5DFA60 hands them to both its island and its gate model, whose sign generator 0x467A80 draws them with the model's own lobby/terrain/<model>.sgn.
What changed:
LobbySignscomposes those lines on each sign model's.sgnand keeps the halves for the session; each lobby scene makes its own textures from them and releases them with itself. The signs are composed one per frame from the lobby's second frame on (its first frame is drawn at once; a sign costs about 0.2 s in the browser today), the selected island's first, and none while the camera zooms into a park; the faces show the shared plain board until then or when one cannot be drawn (a read that may pass is tried again, up to three times). The gates' OBJECT_NAMES texts are read once per lobby build. A lobby built again (after a park) binds the kept signs at once. The globe and every other front-end model never show the placeholder either (SignSlotPlan.ForScene).Review fixes to the gate-sign branch: the gate is found by the level's
ParkName.GateObjectId, so a failed gate sign keeps the board instead of drawing the default lines; the shared board is never released (Texture.SignBoard); a disposed object or a null argument while the gate sign is built is no longer hidden; a sign read that fails with an I/O or access error is logged once and given up after three attempts (the park HUD asks on every preview draw), while a missing key or a bad argument in the sign data (KeyNotFoundException,ArgumentException) is cached like bad data.A fixed item other than the gate draws its own type sign when it has one, as every object the original's object builder makes reaches the sign generator (tp.exe
0x4629D0->0x467A80, tagged atSignSlotPlan.For); among the shipped fixed items only the gates have sign faces, so this matters for mods.The coaster-piece and tour-car sign change of the gate-sign branch is dropped: no shipped track piece, vehicle, coaster car, pylon or tour car has a
sign1/sign2face (the corpus scan inLobbySignCorpusTests; the ride archives' sign faces are all on the station and preview models, whichOriginalObjectdraws), and the coaster assets released the shared sign textures.
Tests: SignSlotPlanTests (the lobby's choice never resolves to the shipped placeholder, the gate by its id, the failure filter and cache rules) and LobbySignCorpusTests with the game data (the four lobby sign models compose their theme's lines with text pixels, the lobby gates are the levels' gates, no renderer-loaded ride mesh has sign faces). --front-end --smoke-test now requires, in the lobby and again after Exit To Lobby, that no sign is pending and that every sign slot of the four models is bound to its runtime sign (not the board, not the shipped art); in Dutch it composed "Verloren Koninkrijk", "Halloween Wereld", "Wonderland" and "Space Zone".
Staff locator order survives import and resume (October 19, 2026)#
ParkStaff now owns five independent role sequences. Fresh hires prepend to their role; firing splices out only the removed member. Staff locator radios read current roster identities through these sequences, including carried members and members without world coordinates. Employee arrows retain their global ThingPool traversal, and the roster/global pool are not reordered to emulate a role chain.
Original imports preserve valid saved role heads and RoleNextId links exactly, mapping ThingIds to member IDs. Validation covers each entire role before installation. Cycles, wrong-role/missing/out-of-bounds links and orphaned members produce precise per-role evidence and a whole-role saved-global-order fallback; no valid prefix is partially installed, and other valid roles keep their exact chains.
Own-format saves add optional StaffData.RoleOrder: five fully validated arrays, copied on restore and capture. Absent/null older data keeps a read-only pool-then-reverse-roster compatibility projection until a hire/fire materializes it. Repeated pool attachment cannot replace explicit/materialized order. Capture always records the effective order without materializing a legacy owner or consuming randomness. Only this presentation field is excluded from the canonical economy hash; all gameplay fields, including HaveEverTrained, remain hashed. No schema or canonical pin change is required.
New synthetic C# validation targets StaffRoleOrderTests and LocatorStaffRoleOrderTests for import and native validation, copy isolation, compatibility/materialization, actual locator radio lifecycle, safe camera behavior, read/capture immutability and the narrow hash boundary. Local fidelity/progress checks, all 127 top-level Python tests and the evidence aggregate (1,537 cases, 595 skipped) pass; git diff --check is clean. The local environment has no dotnet SDK: C# tests and the full solution build await exact-head CI. tools/test_staff_role_order_contract.py is a source-integration guard, not execution or visual proof.
UI-091 stays open for camera smoothing, the retained visitor position-loss fallback, patrol rectangles, panel sliding and real-data visual verification. Existing visitor used-chain selection, blank state-frame 9, staff no-position identity behavior, UI-092 employee controls and #460 hooks remain intact. Historical progress fragments are not rewritten. See the maintained implementation and residual contract.
Locator visitor order and blank carried-staff icon (October 19, 2026)#
The visitor locator radio now follows the live ThingPool used chain, including visitors on rides or carried by guards. Selection advances by actual links and wraps to the head, so restored chains and reused low IDs keep their order. Queued destroys, placeholders, wrong models, missing guest objects and Gone visitors are excluded. Unsupported pool-free fixtures retain an explicit ascending-ID fallback with deterministic deduplication. Navigation does not mutate simulation data, pool order, RNG or saves.
The locator's staff state control now draws nothing for state frame 9 and restores the correct mesh on a valid state. The shared model frame fallback is unchanged. Source and UI documentation also stop describing existing advisor help posts 0xc6/0x11f as missing sound events.
UI-091 stays open: staff radios need their independently persisted role chains; camera smoothing, patrol rectangles and panel sliding remain. Visitor position failure keeps its existing safe policy: no invented camera target, then a cleared visitor selection on update. Staff identity behavior is unchanged.
Synthetic C# regressions cover real radio callbacks, lifecycle/fallback/restore cases, save/RNG immutability, camera guards and the actual four-frame/blank-icon Draw path. The local environment has no dotnet SDK, so these tests await exact-head CI; Python source guards and fidelity/progress checks do not establish C# or real-data visual parity. See the implementation and residual contract.
Guests lie still and along the sun lounger (October 19, 2026)#
A bug report from the user: guests behaved strangely on the pools extension's sun loungers, lying the wrong way and moving all the time. Captures of the debug lounger (--debug-extras, which stands it at rotation 90 with its side to the pool) showed three faults, all fixed:
The wrong direction. The lying guest faced the side it had climbed out on (
LoungerActivity, step 3). The placement rule lets a lounger stand with its side or head end to the water, and a guest who came in from there lay across the seat over the backrest. It now lies along the lounger's own back direction (LoungerActivity.LieDirection: the feet towards the foot end, the head on the raised end, as the model has it), and is turned so on the turn it lies down, so the first lying turn no longer keeps the heading of the step onto the seat.The constant movement. The two lying frames are two resting poses, but the swimmers' renderer played every activity slot at six frames a second, so a lying guest flapped its arms for the whole lie. A pose is now held seven seconds (
PoolSwimSlots.ActivityStep,LyingPoseSeconds); the other slots are unchanged.Hidden by the lounger. The lounger's raised head end and the front of its seat hid the head and the near side of the body. A lying guest is drawn pulled 0.75 engine units towards the camera (
PoolExtraSettings.LoungerDepthPull, as the flume riders are).
Checked on screen in all four camera yaws (captures kept outside the repository, OpenTPW-notes/pools-captures/lounger/before and after). The heading fix changes the hashed heading for a guest that climbed out at a lounger's side or head end, and for every lounger guest on the one turn it lies down; nothing in the simulation reads the heading, the pinned extras run's lounger has its back to the pool, and no determinism pin moved. New tests in PoolsExtrasTests: the lie direction, the still point and the cushion height for every rotation, the shipped models' head end, the held pose and the depth pull. Open: the kid art is longer than the seat, so the feet reach past the cushion's end.
Default map object fills use live repair colors (October 19, 2026)#
The default placed-object map fill now reads the exact current object's economy repair and uses the traced native integer ramp: red (248,0,0), orange (248,200,0), green (48,252,0) at 0/50/100, alpha 255. The host double is first converted to the original stored-float domain, then truncated and masked to its low byte before clamping. The 16.16 fraction and arithmetic channel shifts preserve the original integer rounding. The PC field +0x44 is the already-imported StateOfRepair, not an unidentified value.
The map-local guard rejects read-only visits, stale Status/current-level economy mismatches, missing bindings/records and mismatched instance/type identities. Unsupported nonfinite/out-of-int-range values also retain the prior exact magenta fill; missing state never invents a healthy value. Category filters, all occupied-cell geometry, clipping, path/queue/unowned colors and later host overlays stay intact.
Synthetic C# tests target all ramp integers and boundary/float/wrap cases, actual ParkMapView.Draw triangles, fallback/current-state lifecycle, viewport clipping, host overlay precedence and no mutation of economy/save/RNG/object state. The local environment has no dotnet SDK; these C# tests and the full solution build await exact-head CI. Six map source/algorithm guards, all 133 top-level Python tests (after generating the ignored fidelity register), fidelity/progress validation and the evidence aggregate (1,537 cases, 595 skipped) pass locally; git diff --check is clean. These checks do not substitute for executing the C# tests.
UI-086 remains open for native value modes 2/3 and controls, class/track priority, outlines, original footprints and item dots. Static algorithm evidence and synthetic draw tests are not a native runtime or pixel-equivalence claim. See the maintained implementation and residual contract. The October 18 plan-only progress entry is preserved unchanged.
Finance and park information share the traced graph backdrop (October 19, 2026)#
UI-060 is narrowed, not retired. Both graphs now use a shared bitmap-space backdrop with an opaque black background, dark-green grid RGB (0,100,0), and green axes and step labels RGB (0,200,0). The plot has left/top 4 and right/bottom equal to the bitmap width/height minus 20 (0x4806a0, 0x47fb50). The earlier register statement that the native setup draws three interior grid lines was incorrect: 0x47fcd0 draws ten horizontal divisions and twelve labeled vertical spans, labeled 1..12, 3..36 in threes, or 12..144 in twelves for the selected period.
The grid advances stored single-precision coordinates once per sample before integer truncation; its coordinates are not index-times-step approximations or forced final endpoints. Horizontal and vertical primitives use pixel counts, so their spans can extend beyond the stored plot bounds. For a nonnegative minimum the horizontal axis is one pixel below the plot; with a negative minimum in the supported zero-inclusive scale it uses the traced signed zero row without that extra pixel (0x47fc50). Signed 128-bit integer arithmetic safely widens this calculation for OpenTPW's long financial values; original signed-32-bit overflow behavior is not claimed. Wholly negative ranges, including negative flat ranges, retain the bottom axis as a safe host fallback; current finance scales always include zero and therefore do not produce those ranges.
The backdrop remains visible with empty histories, all-zero values or deselected series. Unsupported periods and tiny host rectangles get background-only rendering as a host safety guard, not an inferred native rule. Nonfinite host frames emit no vertices, and the shared adapter tells both callers when series rendering must stop as well. The shared draw order is background/plot fill, grid and labels, axes, then series. Finance retains its month selection, toggles, range selection, fractional series coordinates, colors, ordering and marker-before-line behavior. Park information retains its independent Column/Row series coordinates, series order, rating history and last-value presentation. The backdrop changes neither model histories nor persistence or RNG logic.
Synthetic regression tests cover the bounded implementation (C# and ten Python source-integration and synthetic-arithmetic guards); they ran in CI and in the post-merge review (full with-data suite 8788 passed). No rendered host check or original-runtime comparison has run for this change. Static evidence and independently authored synthetic arithmetic checks establish the backdrop contract, not complete native runtime or pixel equivalence.
UI-060 remains open for the retained two-canvas-unit pixel adapter and original display-mode calibration, financial sample-to-month correspondence and stretching of available months, and font, palette, raster and composited-output fidelity. A rendered host check remains open. This is PR #483. The proposal records the updated implementation and remaining qualification.
TPW native statistics histories and independent rating (October 19, 2026)#
Native import. The World-referenced TPW analyser now supplies the five monthly graph histories, live arrivals and recent stays through a bounded immutable parser. Full-body bounds and all preceding capacities are checked; malformed selected rings reject the bundle before runtime application. Active signed values and independent physical ring positions survive. Happiness reinterprets finite active binary32 values; inactive host slots normalize to zero without treating native garbage as samples.
Rating and continuation. Rating has its own saved statistics ring and the live graph reads it without creating financial months. Month close samples rating once for statistics and ledger. Old host saves seed missing rating once from their existing ledger; explicitly empty rating stays empty, including across subsequent saves. Arrivals and recent stays continue into the next monthly sample. Display history remains outside the simulation hash.
Coverage and limits. Added synthetic codec, identity, malformed-input, atomicity, continuation, migration, defensive-copy and graph-draw regressions, plus a gated one-month shipped-save assertion and standard Python source guards in the existing build workflow. The local workspace has no .NET SDK; C# build and test execution remain for CI. No original software was run or asset bytes redistributed. Real wrapped-save coverage, TPI history meanings, native statistics export and the other UI-914 residuals remain open. Existing icon/count wording and historical progress are unchanged.
See the bounded UI-914 proposal and save payload contract.
A click on a ride's top picks the ride (October 19, 2026)#
A player reported that a click on a shop, a facility or a ride sometimes did nothing, or laid a path behind it. The park click selected the object on the cell of the cursor ray's terrain hit, so a click on the visible upper part of a tall object went to the terrain behind it: an empty cell selected nothing, and a press there started the path tool. The cursor point now follows tp.exe's picker 0x45bf90 in full: after the terrain walk the ray walks the park cells from the camera, one cell per pass with the cell at each crossing of the other axis (the edge cells clamped as 0x45cdc0 does); a cell is tested when the cell lookup 0x452ae0 names its owner (an object with a height map) and the ray over the pass reaches down to the height the map gives and up to the model's bounds minimum, and the owner's model is tested with 0x45d090's face test (the nodes depth first, a hidden node's faces skipped but not its children, the faces material by material, the first face whose plane hit has an angle sum of at least 6.2821856); the first model met takes the cursor point when it is nearer the camera than the terrain hit (World/Original/ObjectRayPick.cs, World/Objects/ObjectPickModel.cs, Level.TryGetGroundHit). The hovered cell is that point's cell, as 0x45d560 takes it, so the park click, the path tool's start, the build cursor, the hover help, the visitor pick's neighbourhood and the staff tools' mouse point all follow the same pick, in Theme Park World's HUD, Theme Park Inc's and the browser build alike.
The reading also corrects the register: the original's pick sprites are the people's only. The sprite pass's owner search (0x532bd0) accepts thing types 1, 4 to 8 and 0x12 (visitors and staff), and the sprite scripts' FRAME op 0x476940 makes a sprite pickable through 0x540b90; a ride, shop or feature (thing type 3) is opened by the click dispatcher's mode 4 (0x4879d0 → 0x486920), which the hover handler 0x486d90 sets for the owner of the hovered cell. UI-027 is retired; RIDES-021 is narrowed to what is not ported: a track tile's second-layer piece instance (the original tests the piece's model there), the members of a grouped instance (0x447790), the node state bits 0x20 and 0x8000, the normal refresh 0x473c30 of vertex-passed nodes and the hover highlight 0x469180 of the hit instance; GUEST-021 keeps only the screen position of the person in hand. The shipped models' material face ranges are often out of the stored face order (489 of 1630 meshes), and the walk follows the ranges as the original does.
Tests (ObjectRayPickTests): the walk, the height window, the edge clamp, the face test and an object without a height map, which the walk passes over; the model walk over a built MD2; the reported click on a tall ride's top, which now selects the ride and starts no path, the same click with a terrain-only pick, which starts the path tool behind it, and a click on empty ground, which still starts the path tool; and, with the game data, every shipped model's face order, that all 250 objects have a height map and that 237 of them are met by a vertical line through their footprint. Picking is input only: no world hash, pin or save changes. The HUD, the tools and the visitor pick share one answer per frame (the same ray and objects), and the face test skips the arc cosines of faces whose angle bound already falls short.
Every automated run is offscreen (October 19, 2026)#
Tests and agents no longer put a window on the developer's display. At the user's request of October 19, 2026 (smoke tests and agent runs on a virtual screen, such as a virtual framebuffer), the native [EXT:offscreen-automated-runs] rule now covers the same automated modes as [EXT:silent-automated-runs]: besides the smokes, every --capture-*, --perf-* and --debug-* option, --offscreen, --headless, the gates, the guest reports and --validate-assets create a hidden window and render into the offscreen framebuffer, which is the virtual screen on macOS, where there is no Xvfb. Both rules read one list of automated modes (Game.IsAutomatedRun), so they cannot drift apart. --visible (new, the window's counterpart of --audible), --no-offscreen and OPENTPW_OFFSCREEN=0 keep the visible window; sound and window stay separate choices. Interactive starts stay visible, and --play-movie is offscreen only as the movie smoke.
Checked on an Apple-silicon Mac: a Jungle capture at the same size and a 60 Hz frame cap is byte-identical offscreen and in a visible window, since captures read the renderer's own textures; --debug-sim-minutes with a capture works offscreen (the headless M3 gate opens no window either way and still passes); a --perf-run measures as before (60.0 fps paced, about 4.5 ms a frame with --no-vsync). Perf runs stay offscreen by default because the baselines in docs/ENGINE-PERFORMANCE.md were taken with --offscreen; a visible run follows the display's refresh and macOS throttling and is not comparable. No game logic, timing or pin changed. Details in docs/RUNNING.md.
Review changes: an offscreen run without usable game data now stops with an error instead of opening the setup window visibly; the docs say a --debug-* helper needs --visible to be seen and that --visible keeps an automated run silent.
Reconnected riders keep movement in its room (October 19, 2026)#
Room transitions. A hide held while a reconnected visit learns the server version is discarded when that visit leaves its room. Entering a chat park on the same connection can announce its normal visible position without inheriting the ride's hide. A refused join likewise drops movement still waiting for the refused room.
Send ordering. A coalesced position cannot be appended after a later room join. Positions already queued keep their order before the join; a new room's initial movement and same-room join retries remain intact. Existing version-read retries, stale-response guards and legacy mode stripping are unchanged.
Coverage. Added asset-free loopback regressions with a held reconnect-version response, a deterministically gated send chain, new-room announcements and a refused join. Existing hide coalescing coverage also checks same-room joins. The local workspace has no .NET SDK, so C# build and execution remain for CI; local documentation and source checks are recorded separately.
See online presence and the server protocol.
Chat rosters arrive in the order a room changed (October 19, 2026)#
Root cause of the online test flakes.
SessionWalksAChatParkAndReportsBuddyEntries(Ubuntu) andADroppedBuddyAskKeepsTheBuddyList(macOS) failed now and then on CI and passed on a re-run. The chat server handles each connection's requests on that connection's own thread, andChatHub.EnterRoomtook a room's roster and queued it without holding anything. When two players entered a room together, one thread could take its roster before the other player arrived and queue it after the other thread's newer roster, so a player ended with a roster that left out someone standing in the room. A visit only draws players named in the roster, so the two visitors never saw each other (the macOS failure), and Bob's roster of the chat park lacked Ann although her steps reached him (the Ubuntu failure).Fix. The hub now holds one lock while a player connects, enters a room or leaves, and while a roster for
/whois taken and queued. Every outbox therefore receives a room's rosters in the order its membership changed. Each change builds its roster once and sends that one to everyone in the room, so the hub-wide lock does not serialize one roster per recipient. Buddy entry notices are sent after the lock is released.Regression test.
OnlineServerTests.PlayersJoiningARoomTogetherAllEndWithTheFullRosterhas twelve players join the same room at once, round after round, and fences each round with twohearingreplies instead of sleeps. While players only arrive, each player's rosters must grow and the last one must name everyone. Without the lock it failed 5 runs out of 5, within the first six rounds; with it, it passes.Waits. Every wait in
OnlineIntegrationTests(and the chat reads ofOnlineServerTests) now uses one shared 60-second deadline instead of 5 to 20 seconds. Waits still return as soon as their condition holds, and no assertion changed. Fixed observation windows that check something does not happen stay as they were. Each test already ran its own loopback server on an ephemeral port.
See the server protocol.
The browser harness's evening hook keeps the session's other extensions (October 19, 2026)#
Level.PerfEvening (the --evening option of tools/web-perf/run.mjs) activated a fresh mod set that named only opentpw.evening, so every other extension fell back to its default and the session's mods were dropped for the rest of the measured run. It now switches only the evening extension on the session's own set (ModSet.WithPresentationExtension, which refuses an extension that changes the simulation, so a run never changes what a park save records), and an unknown mode changes nothing. Review follow-up of #614; EveningTests.ThePerfHookSwitchesOnlyTheEveningExtensionAndKeepsTheRestOfTheSession.
The rest of the #614 review: the lamp cache is dropped by day, so it no longer keeps removed objects or a replaced object list alive between nights; a test covers a removal and a placement between two frames that keep the list's length (only ParkObjects.Version catches it); the docs say so; the progress entry of #614 gives the medians it measured (a quarter to a half less); and run.mjs undoes the evening hold and the extra lamps before its --zoom window, so that window measures the park as it was.
Player-ticket purchase foundation (October 19, 2026)#
Added an application-ledger purchase operation and a versioned representation of known purchased Info.Id identities. This is a tested-by-fixture foundation; live park purchases still use the existing park-local path. UI-051 remains open.
A valid positive ticket cost is charged once per nonnegative int32 Info.Id. Existing ownership and insufficient funds leave all state unchanged. Spending never removes earned tickets, keys, global holders or cheat provenance. The API has no filesystem access or runtime-owner callback; callers must eventually use the established dirty/flush and deterministic command-state contracts.
Version 1 profiles with legacy scalar spending continue to serialize without a purchase field. Known purchases use version 2 with required identity/cost records, defensive copies, unique identities and a known-cost sum bounded by total spending. Any difference between total and known spending remains unknown legacy history; no identities are inferred. New readers accept both versions. Older strict readers deliberately reject version 2, so downgrading after known purchases is unsupported. This bounded foundation does not automatically upgrade any active profile.
The synthetic tests cover exact funds, repeat/no-funds/invalid operations, earned/key/holder/provenance preservation, deterministic versioned roundtrips, legacy spending, copy isolation and malformed envelopes. These tests require current-head C# CI; source review is not execution evidence.
Remaining activation gates include the captured wallet view for replay/co-op, old park snapshot provenance without double charging, global owner dirty/flush failure handling, UI/research consistency and the established bought-object behavior after a placement handler fails. No native profile export, original visual equivalence or UI-051 retirement is claimed.
Buy preview draws back faces first (October 19, 2026)#
The winter kiosk's roof slopes showed in the buy window's preview as half roof tiles and half pale trim stripes, split along each slope's diagonal. The content was right and the park view never showed it: the preview (PreviewIcon) is a painter-sorted CPU projection without a depth buffer that sorted back faces and front faces together, so the trim underside 0.55 below each slope won over one triangle of the tiles wherever its centroid sorted nearer. The preview now draws the faces turned away from the viewer first and the faces towards it over them, each back to front (the outward normal is (B - A) x (C - A), the convention ModelFile already uses for its normals). Both faces are still drawn, as the original draws them (its only Direct3D cull-mode write is D3DCULL_NONE, tp.exe 0x566957); culling the back faces instead would have removed the ground plates of the space go-kart and water ride previews, which are wound away from the viewer. This fixes the same fault on the glühwein stall, the brolly shop, the pool objects and many original Theme Park World previews. --debug-hud buyitem:<info id>[,<yaw degrees>] (Debug builds) opens the buy window on one object type's row and holds its preview at a turn, for captures. New tests: WinterContentTests.EveryWinterShopsBuyPreviewShowsTheRoofTilesOverTheWholeRoofAtEveryTurn and PreviewIconResolutionTests.BothFacesAreDrawnAndTheBackFacesGoFirstSoTheyNeverPaintOverTheFrontFaces; both fail with the old order. No content, save or determinism pin changed.
README: the ride scripts' light opcodes are in the game (October 19, 2026)#
The README's file-format table still listed "the four light opcodes" as not yet in the game, although ENABLELIGHT, DISABLELIGHT, SETLIGHT and COLOURLIGHT have been served by the object lights ([EXT:object-lights], docs/LIGHTS.md) since the lights work: they switch, dim and colour a model's light dummies, and no shipped script or model uses them (a mod's can). The row now says so, and its "Not yet in the game" cell names what is actually still open for the ride scripts: Full Simulation's end-of-park finale around End.RSE (APPROX:RIDES-019; Instant Action already creates and dismisses it). docs/RSE-VM.md's sentence that End.RSE is never created is corrected the same way. Documentation only.
Restore saved research groups before selected projects (October 19, 2026)#
OpenTPW saves now restore retained research group limits before validating selected projects. A player can select a project in a group retained from an imported lab; previously that selection could make OpenTPW's own save fail to reload because the loader checked it against recomputed groups first.
Synthetic serialize/deserialize/restore coverage exercises this round trip and keeps unknown, completed, prerequisite-blocked and unsaved closed-group cursors invalid. The original-save import policy is unchanged; this fixes OpenTPW's own save format, not an additional original-game fidelity claim.
Ride-camera static uses the observed 300 ms timer (October 19, 2026)#
UI-094 is narrowed: the static timer now follows the traced 300 ms Boolean eye-mode edges and keeps the current static frame when its elapsed wall interval exhausts the countdown. The HUD prepares the transition once after input; repeated drawing only reads it. Entering/leaving terrain inspection is included, while switching between walking and a ride does not restart static.
The single monotonic host sample, HUD eligibility/initialization and free-walk mapping are explicit adaptations. The existing noise image algorithm and layering are unchanged; native noise sequence coupling, the invisible ride window and other UI-094 residuals remain separate in the updated proposal. Added synthetic lifecycle and actual HUD/CPU-draw regressions; local Python checks do not replace the pending C# CI execution or real-data visual validation. No approximation is retired.
Loading a park with other extensions: switch rules, turn content on (October 19, 2026)#
[EXT:save-extension-switch] and [EXT:extensions-apply-at-load], user-approved 2026-10-19 ("Ook ontbrekende extensie aanzetten"). A park save whose official extensions differ from the active ones no longer has to be refused: the load asks first.
Rule-only extensions in either direction.
opentpw.rain-mood,opentpw.winter-weather,opentpw.winter-cold,opentpw.winter-alwaysandopentpw.smarter-guests(ParkExtensionSwitch.RuleOnlyExtensionIds), each checked in its code and save handling: the weather rules leave only per-guest day marks and the weather they shaped, which every build reads with the rule on or off; the smarter guests' own section starts fresh when the extension comes on and loses the extension's state when it goes off or continues in another version (the guest identity, which script mods share and the traits derive from, stays). A switchable save is not listed as "requires mod". The dialog asks "This park was played without X. Continue with X?" (or with/without, or another version), and the park loads under the active set; its next save records that set.Content extensions the park uses.
opentpw.pools,opentpw.umbrellas,opentpw.winterandopentpw.cheats(ParkResumeMods.UsedOnlyExtensionIds): "This park uses Pools, which is off. Turn Pools on and load the park?". The tick switches the extension on for this run without a restart (ModStartup.ApplyExtensions: the gates, the extension's catalog content root and the mods' hooks; everything else reads the set when a park is built), writes it tomods.jsonlike the Extensions and mods screen, keeping the other choices, and loads. A failed load switches the extension back (while the old park is still the live one) and writes nothing. In the browser the page fetches the pools sprite sets it skipped at the start (Page.RequestPoolSprites, one fetch at a time, files already stored are skipped).Strict as before: community mods that are missing or have another version or content, script mods in safe mode,
--disable-extension, a content extension of another version, the cross-edition objects extension, the order of the mods, Theme Park Inc runs, and every replay and check (ResumeParkwithout a confirmed switch,--park-resume-smoke, the tests, online play and the original-format export). A strict reason anywhere refuses the whole load with the same message as before.Mechanics.
ParkResumeMods.UnmetItemsgives each unmet reason a kind;ParkExtensionSwitch.Planclassifies them,Applyrewrites the snapshot'sMods(and the smarter guests' section) for the switched set, and the unchanged strict validation then checks the result.ModSet.WithExtensionsswitches official extensions in the order a new start resolves. The dialog (ExtensionSwitchDialog) is the original confirm dialog with its texts in all eleven interface languages; the load list, Continue, the automatic checkpoint and the autosave all ask before the enter-park effect.Determinism. Agreeing sets take the strict path: no pin, save byte or resume test changes. A switched park is a new run from the switch point (DETERMINISM.md, "Switched parks"; MODS.md, "Loading a park with other extensions").
Verification.
SaveExtensionSwitchTests(rule-only on and off for each of the five, versions, content on for each of the four, mixed switches, every strict case, Theme Park Inc, the order a switched set takes, the content root and host notice,mods.jsonwriting, the dialog in the menu and its texts in all languages, the revert of a failed load), the browser'sserialRequestsintest_web_pool_sprites.mjs, the front-end smoke's capture of the dialog, and the native park-resume smoke's switch variant (OPENTPW_SMOKE_POOLS=1 OPENTPW_SMOKE_SWITCH=poolson the restore phase: pools off, the dialog's tick turns it on, every continuation tick equals the capture's).
Original saves keep their guests off the paths (October 19, 2026)#
Known-gaps task S5. The import of an original save used to drop a park guest (states 6–10) whose cell was not a path. tp.exe does nothing special for such a guest on load: the guest serializer 0x4FB530 reads its position and state straight in, and the person loader routes a walking guest again to its saved accurate destination (0x4FA5F0 at 0x4F9407), a walk search that starts from any cell. The guest's own state handlers then recover it: a stuck walk falls back to deciding, and the wander 0x4F9490 searches a guest without links back onto a path. OpenTPW now imports such a guest where it stands, routes states 7, 9 and 10 again with the original walk set-up (no draw at load; a failed search leaves the walk stuck and is reported as "could not renav"), imports the stranded mark as 0 (the route counter it is compared with is not saved and restarts with the process) and takes the walk mask from the saved navigation state's nav_mode (reader 0x50D150, called at 0x4F925E with ECX = person + 0xD4). A state-10 guest now also walks on to its saved accurate destination at the import, like every person in tp.exe's loader, instead of asking for the queue's back cell on its first update; the walk mask of every imported guest, a leaving one on a path included, is the saved one. SAVE-002 no longer covers park guests off the paths. The eleven corpus saves hold no such guest and their nav_mode values equal the masks OpenTPW gave before, so no pin moved.
Save import follow-ups from post-merge reviews (October 19, 2026)#
From the post-merge reviews of the off-path guest import (#690) and the saved sound volumes (#693): the stranded-mark comment now says a mark at or below the loading process's route count is kept only while tp.exe's stranded test 0x4FA770 holds and that every walk step clears it (0x4FA30B); a new synthetic test imports a deciding guest standing on a queue cell where it stands and reports its cell type 3; and the slider comment in SavedSoundVolumes names both slider messages 0x800 and 0x801 and the 0x801 handler's skip while the option's on byte is clear (0x4A2D6B).
Original saves: the Sound block's volumes play for the session (October 19, 2026)#
The user's decision (2026-10-19): a park started from an original save takes the save's volumes, as tp.exe does.
What tp.exe does. The payload loader calls the Sound block loader
0x51C400at0x415BA2; it copies the saved 84 bytes back into the sound-service globals0x803AA0, and park entry sets the dirty word after the load (0x54F3AE), so the next sound tick0x51BD70pushes the master (+0x18), effects (+0x1C), music (+0x20) and speech (+0x24) percents and the three on-flags to the mixer. The profile options (0x78D8E8) are a separate struct that the load does not touch and that the profile file is written from (0x423E90), so the options screen keeps showing the player's values. The options take over again per channel when a slider or toggle calls that channel's volume setter (0x4A2BF0,0x4A2E90; a channel the save switched off stays off until OK), for every channel on OK (0x4237F0→0x423DD0) and at park exit (state 12 of0x54E360writes the profile through0x5C8650; the serializer ends in0x423DD0). The master volume has no option (start-up sets 100 at0x54DE31), so a save's master holds for the process.Which parks. Park entry (state 9 of
0x54E360) loads the newest file in the player's folder of the park (0x5ACCF0->0x414D40): a player's own save, or for an Instant Action player the copy of the level'seasymode.TPWIthat0x5C8190makes when the player is created. Restart Park reloadsrestart.INTS(written at entry, state 150x550B30), so the start's values play again.OpenTPW.
GameAudio.ApplySavedSound/SavedSoundVolumesapply the values of the original save a park started from (Level.OriginalSaveSound: a player's own save or the shipped Easymode seed; Restart Park applies them again) after park entry and report them in the import evidence;ApplyOptionsplays them until the player's option for that channel changes, OK on the options screen, or leaving the park.GameOptionsandopentpw-options.jsonare never changed.Typed view.
SaveSoundSettings(SaveSoundData.SettingsView) names the 21 words;OriginalParkImport.Soundreads the block without ever refusing a save for it. The "QMixer chunk" is now described as what it is: tp.exe's own sound library's voice list behind three listener floats.Fidelity. SAVE-010 is narrowed (the volumes are applied; the flags, handles, crowd, rain, reverb, dirty/duck/freeze words and the voice list stay
[EXT:original-engine-state-dumps]). No new approximation.Audible change. None with the corpus: all twelve files hold the defaults (master 100, 75/60/75, all on), so with default options nothing changes. No RNG draw and no simulation state; no determinism pin moves.
Docs: TPWS-PAYLOAD.md ("Sound block"), AUDIO.md ("Volumes of a loaded original save"), the website's save sentence.
Every automated run is silent (October 19, 2026)#
Tests and agents no longer play game sound on a developer machine. The native [EXT:silent-automated-runs] rule now silences every automated mode (--tpi-smoke-test, --perf-*, every --debug-* capture option, --offscreen or OPENTPW_OFFSCREEN=1, --headless, --smoke-presence, the gates and guest reports, besides the smokes and captures it already covered), with --audible (or --smoke-audio) as the opt-in. tools/web-perf starts Chrome with --mute-audio by default, also headed, with --audible to listen; --music still exercises the game's audio decode path because muting only affects the speakers. No game logic, timing or pin changed.
Bounded staff sprite VM and exact clone-copy core (October 19, 2026)#
Added an independently testable GPU-free staff VM core with semantic program/current/restart/last PCs, 19 raw registers, a bounded descending 20-word stack, explicit output/run state and signed 32-bit due/interval semantics. Ordinary staff, guard release and all four performance graphs retain real control history, including cross-program stack returns.
Full clone copy retains every state field except the proven handle/position/primary-scale/flags overrides. Partial refresh copies only the exact allowlist and masks the clone's existing flags. It does not reset clocks/control state, infer source history or force portrait flags back on during ticks.
Added synthetic C# tests for complete 70-field sentinel invariance, deep-copy ownership, independent frame-sequence oracles, performance intro/hold loops, hybrid PCs/stacks, signed timing, output/template transitions, terminal states, diagnostics and invalid boundaries. Focused structural guards run in existing CI alongside the C# test project.
This core is not consumed by gameplay, the renderer, employee windows, scheduling or persistence yet. UI-092 remains open for the reviewed owner/lifecycle/scheduler/persistence/render integration and behavior evidence. Existing employee geometry and current callback behavior are unchanged.
Local Python structural and repository validation checks were run. The .NET SDK is unavailable locally, so compilation and C# tests were not executed here; exact-head CI and independent code review remain required. No original software execution/emulation, GPU test or native pixel comparison was performed.
Exact-head CI executed the full C# suite successfully on Ubuntu and Windows. A macOS retry exposed an existing audio fixture that reused a category after
LeaveParkhad forgotten its decoded samples; the two teardown scenarios now use independently initialized data rows. No audio production behavior or VM core changed. The corrected head still requires full CI.
Theme Park Inc arrival history without enabling the advisor (October 19, 2026)#
Bounded original-data import. A separate TPI decoder reads the referenced analyser's dynamic
ring5fields inside its exact body, validates the raw wrapped byte and signed head, and returns signed group sizes oldest first. Inactive slots and scratch values never become arrivals. Preceding variable-capacity rings move the data without requiring fixed offsets. The native format can describe smaller capacities; the five-entry host continuation deliberately rejects them rather than silently changing retention. Arrival history and existing statistics are decoded before an import candidate is exposed.Readiness, with the public boundary intact. A manually attached advisor can consume this history only with the actual TPI money runtime and a TPI source world, without fabricating a TPW economy-import object. The factory still keeps fresh money, clock and calendar state and its existing statistics import. The public TPI
GameFlowbranch still returns before advisor creation, its advisor and park-save capabilities stay disabled, and full TPI resume remains unsupported.ADVISOR-028 stays open. Native empty history is authoritative at attachment. The separate
RestoreSnapshotpolicy still uses five zero-size stand-ins for either missing or explicitly empty histories when admissions exist. A legacy pre-field host save cannot recover the original count or sizes from admission totals: exactly-one advice can differ only when the missing history held exactly one group, while hype and big-busload scores can differ until real arrivals replace the relevant unknown values. The earlier progress note has been corrected to remove its one-to-four-group claim and its implication that only the first-group line could differ.Verification boundary. Asset-free C# regressions exercise decoding, malformed input, atomic import, signed history and the actual factory/manual-attachment boundary. A focused Python source/arithmetic guard is added to the existing full build/test workflow, including the actual
GameFlowearly return and capability gates. These checks do not replace C# execution, a populated/wrapped original TPI save, or original-runtime comparison. No original software was executed, original media published or native save bytes changed.
See the arrival history and remaining advisor limits.
Theme Park Inc prebuilt history import, checked with data (October 19, 2026)#
Stale with-data assertion.
ThemeParkIncSaveWorldTests.ImportJoinsSceneRecordsToAttractionsByMeshAndInfoIdstill expectedOriginalParkImport.Statisticsto be null for Theme Park Inc. The TPI analyser history import (SaveThemeParkIncStatistics, the TPI analyser histories slice) deliberately fills it from TPI's own serializer ordinals 14/17/18/19/20 and ring50. That slice was written without a .NET SDK, and CI has no TPI data, so the failure appeared only locally withOPENTPW_TPI_PATH.Import kept, test updated. The importer was right: it uses a separate TPI decoder, never the TPW graph-history offsets. A static re-read of the TPI no-CD
Game.exemonthly producer0x5AF220agrees: 21 rings at stride 0x250, ring 17 fed from a reset counter, ring 18 a float, ring 19 the mean of at most 50 recent stays, ring 20 from0x5B81F0. The test now pins the prebuilt's real analyser (thing 5): every selected ring is empty (head -1, not wrapped) with the 144/50 host capacities; unread slots keep the0xCDCDCDCDfill as raw words and read as zero; arrivals come from ring 17'smTemp(0). TPI ring 12, the TPW arrivals ordinal, holds 2625, so a TPW-ordinal read would fail the test.Scope. No runtime code changed and no pin moved. CI cannot run this test because it needs the Theme Park Inc data.
Theme Park Inc statistics across a fresh host start (October 19, 2026)#
Bounded import. The World-referenced TPI analyser supplies people, bus arrivals, binary32 happiness, mean stay and rating from its own serializer ordinals, plus running arrivals and recent departed-guest stays. A separate named-field decoder follows variable preceding counts inside the exact thing body. It preserves signed active samples and independent physical heads, refuses malformed raw flags and active nonfinite happiness, and builds one immutable bundle before application. Selected monthly/recent rings must have the host's 144/50 capacities; valid smaller native capacities report an unsupported host profile rather than silently changing retention.
Explicit start boundary. The actual TPI money-only factory restores those statistics while keeping its existing fresh clock, calendar, economy and empty financial history. Imported partial-month arrivals join new arrivals at the first fresh host month close, then reset; imported recent stays remain the averaging window. This is a host adaptation, not continuation of the saved native month or its saved calendar rate. Historical samples retain relative order without invented dates or bank months.
Presentation and remaining work. TPI's traced native park graph selects three series: arrivals, people and rating. Happiness and stay are separately proven stored monthly measurements; the shared host five-series representation is an extension. This slice adds no graph screen to the current TPI text HUD. UI-914 stays open for native saved-clock continuation, real populated/wrapped TPI corpus qualification and its other residuals. No count-cell, icon or portrait behavior changes.
Verification boundary. Asset-free C# regressions cover dynamic offsets, all 21 distinct rings, malformed input, referenced identity, immutable/atomic adaptation, the production factory's first close and host JSON restoration. Python source/contract guards supplement the unchanged full build/test CI. The local workspace has no .NET SDK, so C# execution remains for CI. No original software was run, original assets published or native export changed.
See TPI analyser histories and the UI-914 scope.
UI-060 docs after its implementation (October 19, 2026)#
The plan-only fragment of the UI-060 draft is removed, the implementation's fragment and the proposal no longer say the C# tests have not run or that exact-head CI is still needed (they ran in CI and in the post-merge review: full with-data suite 8788 passed), and the register's evidence column in UiApproximations.cs and docs/UI.md names only what is still open: the display-mode calibration of the pixel adapter, the financial sample-to-month mapping, font, palette and raster fidelity, and a rendered composition of the graphs.
Selected-mesh fitting for original UI controls (October 19, 2026)#
UI controls retain the selected mesh's stored fit endpoints separately from geometric bounds. Drawing and inverse shape picking share this fit, preserving stored padding while authored layout and direct-origin submission keep their existing meanings. Invalid metadata has an explicit geometric fallback.
The bounded UI-003 scope records static evidence, small current-corpus effects and remaining hierarchy, control rotation and state-selection gaps. UI-003 stays open and UI-004 is unchanged. Synthetic CPU regressions were prepared for padding, picking, reflected/sheared transforms, fallback and state stability. Local .NET execution and rendered comparison were unavailable; exact-head CI and independent review remain gates.
Bounded ordinary visitor circle picking (October 19, 2026)#
The UI-930 implementation uses the source-backed strict circle only for registered ordinary kid/costume bodies with bounded, non-reconstructed scale-one history and exact canonical camera matrices. It preserves current renderer-selected frames, projected-Z depth, synchronous timing, ID ties, swimmer precedence, post-winner neighborhood rejection, HUD ownership and unsupported-source rectangle fallback. An eligible circle miss cannot retry the rectangle. Shared world sprite sizing is unchanged.
Added synthetic production-query, HUD, nonmutation and geometry tests, including actual host projection/rotated-view adapters, finite/overflow validation and fractional drawable-pointer quantization. Local source/arithmetic and documentation checks do not execute C#: the SDK and rendered-view validation remain unavailable in the authoring environment. Required runtime CI and independent review remain gates; UI-930 stays open for frame/source coverage, native result timing/order, cross-kind competition, clipping, rounding and rendered-view residuals. The original October 18 proposal progress entry is preserved.
Visitor-info arrows follow the live thing chain (October 19, 2026)#
The visitor-info window's next and previous buttons now share the visitor locator's live ThingPool candidate projection, preserving the restored/reused slot order and wrapping in both directions. Numeric IDs are no longer treated as chronology. Riding, guard-held, queueing and hidden live guests stay eligible; rejected used slots and duplicate Gone claims cannot leak back through the explicit host-only pool-free fallback.
Changed selections immediately refresh their title and stats; a singleton leaves the existing four-second refresh age intact. Missing/Gone current visitors still refuse navigation and close on the next UI update, with no locator-style stale-selection recovery. Locator/staff behavior is unchanged. The destruction-order comment now correctly places type 2 after enqueueing, before the request returns.
Synthetic real-callback C# regressions cover order, reuse/restore, filters, lifecycle, refresh and snapshot/RNG/hash nonmutation; Python source guards are wired into CI. The local environment has no .NET SDK, so C# execution and visual fidelity are not claimed here and require exact-head CI/visual validation. UI-910 remains open for the visitor portrait and independent residuals; the old portrait speed annotation is not assumed correct.
Ordinary visitor portraits follow live world output (October 19, 2026)#
The visitor window observes the selected ordinary kid/costume body's successfully prepared world slot, phase and heading at literal yaw zero. Unavailable, stale, riding and specialized sources draw nothing.
Exact guest/session, simulation/level/renderer, pass/generation and atlas/resource identity checks keep recycled IDs and retired resources out. Reads do not run animation, collect poses or consume shared RNG. Real arrows, close/reopen and the four-second statistics timer keep their existing behavior.
Corrected the original argument interpretation: UI depth plus two is not a figure ID; 12.0 is primary scale, not animation speed. The explicit inner rectangle and integer shifts produce nominal feet (598,450); visitor-only scale 3.6 preserves the shared figure defaults.
Added 27 synthetic CPU preparation/HUD test methods (69 discovered cases, plus the appearance matrix) and source guards. Local checks pass: 166 Python tooling tests; 21 evidence suites (1,537 tests reported, 595 skipped without fixtures); 112 Node/browser checks; and links/assets/anchors across 185 generated HTML pages. The local environment lacks .NET, so focused/full C# execution requires exact-head CI. No original-runtime or pixel-fidelity claim is made.
UI-910 remains open for independent native clone timing, partial source refresh/loss epochs, emitted flags/visibility, screen-space rotation/depth and exact viewport/raster behavior. No original assets are included.
Ring floaters bob in the wave pool (October 19, 2026)#
A new pool activity, waves.ring (WaveRingActivity, [EXT:pools-waves]): while a pool's waves run, a free swimmer may take one of the pool's inflatable rings and bob on the swell for 15 to 30 seconds, drawn with the lazy river's ring art, then swim on. It is offered like the other activities, at the host's cadence, but only while at least 40 turns of the wave machine's run are left, never in or beside a lazy river lane or beside the pool's steps, and only while a ring is free: one per four bodies the pool takes, counted against the wave machine (so removing the machine aborts its floaters like any attraction). A float never runs beyond the end of the waves' run. The waves rock the floater to and fro: the new PoolWaves.Sway is the push of the crest along +x +y and as much back in the trough, applied through PoolSwimming.Drift (free water, clear of the other bodies, never into a lane), and when the swell has carried the floater more than a quarter cell from the spot where it took the ring it paddles back at 1/20 cell a turn, so it bobs about its spot instead of ending at the far wall. A floater is paid by the waves as a free swimmer is (once per period) and 2 more at the end of a whole float; waves switched off or a machine taken away end the float at once, without the bonus. PoolWaves.Push is unchanged (it now shares its arithmetic with Sway), and PoolWaveSettings.ActiveMachineIn names the machine ActiveIn reads its settings from.
Integers only, one draw (the float's length, from the swimmer's own stream), no new save field (the spot is in the guest's activity fields). A pool without running waves offers nothing and draws nothing: every determinism pin is unchanged (the water-attractions run's pool is all lazy river, where no ring is offered). Checked in a silent Jungle capture of a wave pool with fourteen swimmers: several take rings and bob among the swimmers. New tests: offers only while enough of the run is left, with the machine as target, away from the steps and from a river lane, never more floaters than the pool's rings, none without waves or with them off; a floater rocked by the waves within the run, staying within two cells of its spot and paid; switched-off waves ending the float without the bonus; a save on a ring continuing identically; the sway equal to the push on the crest and as much back in the trough.
Brolly and winter shops in the browser build (October 19, 2026)#
The browser page served by play.opentpw.io had no brolly shop, winter kiosk or glühwein stall: the server image's Docker build copied content/pools/ but not content/umbrellas/ or content/winter/, so the web project's embedded-resource wildcards over those folders matched nothing and the build succeeded without them (the jungle catalog had 84 entries in the browser against 87 natively). The Dockerfile now copies both folders, and OpenTPW.Web.csproj fails the build when an official extension's objects.json is missing, so a build context can no longer drop an extension's content silently.
Always winter (October 19, 2026)#
A new option of the winter family, opentpw.winter-always ("Always winter", [EXT:winter-always]), off by default, user-approved on October 19, 2026 as the variant "Winterweer hele jaar". Every month rolls its weather from December's season row (tp.exe's roll 0x512e10 takes the row from the month through 0x4f8770; December is the row past the table at 0x7854c4, its average the count slot at 0x7854f4) and every roll is wintry, so the rain and thunderstorms of the jungle and fantasy parks are snow without lightning all year, as in a wintry December, and the Halloween park snows by its own band all year. Space has neither a rain nor a snow band, so its weather is left alone. The forecast follows the option. The winter kiosk and the glühwein stall sell at their winter demand all year (WinterRules.DemandMonthOf), and the snow cover settles whenever it snows.
The option implies Wintry Decembers with no double effect, is recorded in a save while it is on (a save made with it is refused with it off and the other way round; older saves load unchanged) and has its row, with its description in the eleven interface languages, on the Extensions and mods screen beside the other winter options. With it off every existing pin stands. New pins: WinterAlwaysTests.JungleSeed21AlwaysWinterHash = 0x71A3DF8635ACF9B9 (the jungle's weather, 378 snowy days of 400) and DeterminismTests.WinterAlwaysFixedRunHash = 0xAD0FF92A6B42F187 (a brolly shop, the winter shops and the rain mood under the jungle's real weather from May to mid-October). Details in docs/WINTER.md ("Always winter") and docs/DETERMINISM.md ("Always winter").
Review changes: in Halloween, where every snowfall has lightning, the forecast and the current-weather banner now say snow instead of thunderstorms while the option is on (presentation only; the weather's flags, the umbrellas and the rain mood are unchanged); space parks keep their month-by-month winter shop demand, as they keep their weather; WINTER.md mentions Halloween's occasional rain.
Winter kiosk price checked in a real park (October 19, 2026)#
A review of the kiosk's return rule (#663) reported that the shipped winter kiosk (price 25, cost of goods 10, happiness effect 15) could never sell, because the price test's willingness to pay peaks at about 22 for those terms, and that the measurement harness had run the shops without price terms (the price test read a price of 0). Measured in the level gate's park of every theme with game data, the report does not reproduce: the price test also multiplies by the per-type word UsageInfo.RipOffOK, which every winter shop inherits as 100 from its theme's Shops.sam, so the kiosk's willingness is 24 to 44 and only a guest below happiness 5 is refused. In snowy January parks the kiosk sold 18 to 31 times and the glühwein stall 15 to 23 times per three seeds with no price refusal, as at the game's own drinks shop. The report's 0 sales are the case without the word, which the headless harness now reproduces (0 kiosk sales, 62 refusals). No price, effect or .sam byte changed (a .sam change would break saves with a placed kiosk), and no pin moved.
The headless harness now runs the kiosk and the stall with their shipped price terms (WinterTuningMeasureTests.ShippedPrices, SyntheticPark's winterPrices), and WinterPriceMeasureTests checks with game data that every theme's merged terms equal the harness's and that the shops sell; the level gate gained M3GateOptions.ExtraObjects for such measurements. The return rule now also requires that the guest could pay the kiosk's price (QueueJoinRules.TooExpensive, the pure test), so a guest with too little money is no longer drawn back to be refused again. The tuning tables in docs/WINTER.md were measured again with the price terms, and the broken "Share dressed" bullet was restored.
Guests come back for the second winter item (October 19, 2026)#
[EXT:winter-kiosk-return], user-approved on October 19, 2026 ("Laten terugkomen"). The W6 measurement found that nobody bought a second winter item in about 1,740 guests: a guest who bought a hat or earmuffs never came back for mittens. Measured cause: right after a purchase the kiosk is the thing the guest used last, which the game's score rates 0 outright (same type as the last used), and afterwards it stays in the used history, which divides its score by 5, 4, 3 or 2; either rule alone leaves the other one in place (13 complete outfits in a snowy January only when both are skipped, 0 or 1 otherwise). While a guest's slots are not full, the winter kiosk now does not count as recently used for that guest (GuestSimulation.WinterScoreOf); the temporary history, other attractions, the umbrellas and the balloon rules are untouched, and a guest with full slots still scores the kiosk 0.
Measured over 17 snowy January days (three seeds): complete outfits 0 of 146 admitted guests before, 13 of 144 after (9.0 %); the kiosk sells 44 to 48 times and fewer guests hold an item (42 to 35), since a returning guest takes a turn at the kiosk. WinterKioskReturnTests cover the score and WinterTuningMeasureTests the before and after.
Pins: WinterFixedRunHash 0xD4E2340C99394B73 -> 0xA66540FF8C2AC6DE, WinterAlwaysFixedRunHash 0xAD0FF92A6B42F187 -> 0x5F767F69EF5CBF07 and WinterColdEverythingFixedRunHash 0xCCEA2E164DF6888A -> 0x45FCB3FC30C601FC (all three are parks with a winter kiosk; cause in DETERMINISM.md). No other pin moved.
Docs and tools: docs/WINTER.md "Share dressed" has the new numbers (a complete outfit is no longer rare), and the kiosk decision is listed under Decisions. The browser scenario winterCost now names its windows honestly (every window runs in rain, so the first is rain, not "bare"), measures the umbrellas and the warm items in separate steps (the items cost about +1.7 ms for roughly 760 items), records whether it rained and what was drawn, and takes its screenshot of a fresh dressed crowd in the open (--follow) instead of the one under the entrance canopy. WinterTuningMeasureTests: the cold test now asserts that dressed guests lose less than undressed ones, the holding column is named for what it counts, and the duplicate weather helper is gone.
Mittens: the palm of the redesigned mitten is widened from radius 0.22 to 0.24 in tools/blender/opentpw_winter_items.py (a few skin pixels showed at the mitten edges at zoom 110); SPR_WI.TPC is rebuilt with tools/winter/build-content.sh (a second run is byte-identical, ESP and anchors unchanged). Presentation only.
The winter mittens look like mittens (October 19, 2026)#
At the default zoom the winter mittens read as small cups: a round blob with a pale rim on top, held at the hand. tools/blender/opentpw_winter_items.py now builds a short, elongated knitted mitten that continues the forearm line (a rounded tip, a palm that is widest a third up, a narrower wrist), a thumb bump on the inner side and a ribbed knit cuff in the same wool tone as the body (the contrasting rim is gone; the cuff is closed on top because the forearm is drawn under it). The colourways (red, blue, green) are unchanged. The slot layout, the hotspot (the hand end point), the frame order (frame 0 the right mitten, frame 1 the left) and the sizes (about 13 x 18 pixels at 2x) are compatible with WarmItemRenderer, so no code or anchor changed. tools/winter/build-content.sh regenerates content/winter/esprites/Winter/SPR_WI.TPC byte-identically on a second run. Presentation only: no pin, save or simulation change.
Winter tuning from captures and measurements (October 19, 2026)#
Phase W6 of the winter extension. With snow, the kiosk and the stall, dressed guests, umbrellas, balloons and costumes running together, the Halloween park and the jungle with wintry Decembers were captured in day, dusk and night, near and far, with pool guest art on and off. The captures showed no fault that needed a model, anchor, draw-order or shader change (kiosk and stall scale and ground contact, hat and earmuff placement on both art sets, umbrella over hat over guest, no green specks through full snow cover, slush paths, items dimming with their wearers at night), so nothing in the shipped art or code moved and no pin changed. Sheltered-ground masking was judged not cheap and stays open.
New measurement aids: WinterTuningMeasureTests (headless, fixed seeds, nothing pinned; OPENTPW_WINTER_MEASURE=<file> writes the tables) and the browser harness scenario winterCost (tools/web-perf/run.mjs --scenarios jungle,winterCost). Findings, all recorded in docs/WINTER.md ("Tuning"): the kiosk sells 0 times in a clear July at the shipped summer percentage of 20 (the user decided to keep the shipped 20, "20% laten"; no data or pin change); snow does not lift the kiosk in the winter months because the stall's 250 % outscores it; the cold rule costs a bare guest 0.7 mood points and a dressed one about 0.1 over a snowy Halloween week; settled snow costs nothing measurable in the browser and 400 guests with umbrellas and about 830 warm items cost 3.6 ms a frame more at 59.5 fps.
The advisor's golden ticket, challenge, tutorial and park-opening lines (October 18, 2026)#
32 more advisor messages are produced, ported from
tp.exe. 18 scan callbacks (AdvisorChallengeCallbacks,World/AdvisorScanChallenges.cs): open the park (1, the guests waiting at the two ticket booths) and close it (2), the hype of a new park fading (124) and a big busload (140), the two congratulations (156, 157), the two tutorial lines (185, 282), the guest share of the people ticket in three bands (274-276), the share of ticket items built in three bands (278-280), the first-group explanation (281) and the three ticket hints (314, 316, 317). 14 posts of game code (AutomaticAdvisor.Challenges.cs): the ticket wins 215-217, 220-222 and 225-227, the first-ticket lines 311 and 315, and the challenge offer 270, win 272 and loss 273.Reading the bytes corrected the first mapping. The ring at park
+0x216D8that 124, 140 and 281 read is the five-entry ring of the last arrival group sizes (the arrival update pushes into it as a group starts), not the monthly visitors;0x4CA740is the share of the ticket items built, not a research share; a ticket win posts one of three messages by the key rule of the player's ledger (no key, a key, a key that opens a park) with the ticket's type as the response; 311 and 315 are posted together, once, when the player has exactly one ticket in all; the first offer of the challenge system posts 344 in place of 270; 272 is the win of the last part of a chain. The inventory (content/data/advisor-producers.toml) anddocs/reverse/ADVISOR-SCAN.mdcarry the corrected formulas and the schema's group order (a group's name record follows its keys).New state, all read-only for the park. The advisor keeps the last five arrival group sizes (
AdvisorArrivalRing, fed by the newGuestSimulation.ArrivalGroupStartedevent and saved in its snapshot; an original save's ring is read from the analyser thing, and a legacy OpenTPW save without the field takes it as five groups of unknown size once the park has had admissions; see the review follow-up of October 19),IParkGuestStatistics.GuestsAtGatecounts the guests waiting at the booths (GuestSimulation.GuestsWaitingAtBooths),EconomyParkStatereads the park value through the net worth's cache without writing it, the player's ledger answers the advisor throughPlayerTicketLedger.AdvisorView(the park's own tickets counted in, so the order of the ledger's own update does not matter) andParkObjectivestells which offer was the first and which tickets the last check won. The advisor's own state (the arrival ring, its snapshot field) stays outside the world hash; the price statistics' booth ring, which the advisor only reads, is economy state.Tests.
AdvisorScanChallengesTests: every callback below, at and above its thresholds, a whole scan pass through the real queue, the statistics over a realParkEconomyand guest simulation, the key rule, the ticket and challenge posts through the economy's own events (a batch of two wins, a moved ticket, a chain with and without a follow-up, a lost challenge), the arrival ring and the snapshot, and the inventory marking the rows wired. Wired in the inventory: 234 of 351 (the toml, once merged with the staff and queues batches); ADVISOR-009 narrowed to 30 unported scanned callbacks (21 constant-zero stubs, 9 computed).The restored-advice extension stands down for them. Its ticket-win lines (99, 164, 165, 218, 219, 223, 224, 228, 229) and its 344 first-challenge hint are removed, because the original's own ticket advice (215-227) and first-offer line (344) are now ported and a win must not be told twice; it keeps the award lines (230-233) and the ticket hint polls (277, 318), and restores 45 messages instead of 55 (
RestoredAdviceDriverloses the ticket and key resolution,AutomaticAdvisor.PlayerKeysgoes, the HUD's key counter is unchanged). 344 staysunusedin the inventory (kind help, posted by an event).
Stop advisor responses for map and options (October 18, 2026)#
The existing window-open event now takes the advisor's silent stop path for the map and game options. It kills delayed or trailing model/effect presentation as well as active speech, without a slap. Paused updates no longer serve the advisor queue, so a modal cannot immediately start another response. Other window/help behavior is preserved. Added GPU-free modal-routing and paused-queue regression tests. ADVISOR-017 remains open for per-turn service and other pause/lifecycle residuals. C# test execution and runtime evidence are pending in this environment.
The advisor's price, shop value and research callbacks (October 18, 2026)#
31 more scan callbacks are ported from
tp.exe.AdvisorQueuesCallbacks(World/AdvisorScanQueues.cs) scores the researcher lines (15-17), the research-more lines (61, 72, 76, 80), the two upgrade lines (63, 64), the ticket price lines (91, 92) and the 20 shop value and satisfaction lines (238-257). The callbacks read the park throughIAdvisorParkStateand the newIAdvisorQueuesState, whichEconomyParkState(now a partial class) implements from the economy without writing to it (0x4C9830,0x4C9920,0x4C9E40-0x4C9ED0,0x4CA4C0,0x4CA630-0x4CA690,0x503980and the shop scans0x4CAAE0-0x4CC090). The advisor itself stays outside the world hash, but the booth's perception ring 0 (PriceStatistics), whichGuestSimulation.PayAdmissionnow fills, is economy state and enters the hash: with game data, a park with admissions hashes differently than before (no pin moves, no-data parks record nothing).Reading the bytes corrected the first mapping. The shop figures count attractions older than 30 days (
0x4DD670is the age in days), not shops with more than 30 customers; the "value" is the walk-away share of the customers over the 30-day rings. Every shop callback scores (figure - threshold) xScorePerPointwith the figure first, so the ten "poor" lines are negative for the shipped positive multiplier and never pass (ported as they are). 247 calls the sideshow value helper where its four siblings call a satisfaction helper. 15 needs no researcher and the other research lines need one, 61, 72, 76 and 80 test no park-open state, 80 is the only research-more line without a research rate test, and 17 also needs a researcher waiting in the hiring pool.The ticket price lines needed a producer of their ring. 91 and 92 read perception ring 0, which only the booth's verdict
0x4FF5B0writes (thePeepInfo.OpinionFor*bytes of its four bands, nothing for the early fair exit).BoothVerdict.OpinionandGuestSettingscarry them (read only when the settings file has the keys) andGuestSimulation.PayAdmissionrecords them through the park's statistics; the price statistics were already saved with a park.Inventory. The 31 rows (22 queues and prices, 9 research) are
wiredincontent/data/advisor-producers.tomlwith the formulas corrected, and ADVISOR-SCAN.md and LIPS.md describe them. Not set: the handle and figure each shop callback keeps in the object's+4and+8, which0x59B590copies into the queued advice; OpenTPW has no reader for it and the lines are speech only.Tests.
AdvisorScanQueuesTests: each callback below, at and above its threshold over hand-built states, a whole scan pass through the real queue, the statistics over a realParkEconomy(the shop figures, the research counts and the upgraded ride types), the booth's opinion bytes and a with-data check of the shipped thresholds.
The advisor's staff callbacks: hiring, patrols, training, limits and the staff room (October 18, 2026)#
38 more scan callbacks are ported from
tp.exe, line by line.AdvisorStaffCallbacks(World/AdvisorScanStaff.cs) scores the hire-guards and hire-entertainers lines (11, 13, 14), the set-a-patrol-area lines of the mechanics, handymen, guards and entertainers (18, 20, 23, 26), the train-your-staff lines (28-32), the too-many-staff lines (108-112), the park-limit lines (114-123), the staff-happy and staff-trained congratulations (144, 146-150), the staff-room lines (169, 263) and the general hire, patrol and training lines (170-172). Each reads the park throughIAdvisorParkStateand the newIAdvisorStaffState, whichEconomyParkStateimplements from the staff roster, the staff HQ's training state, the object list and the guest census without writing to any of them. The advisor stays outside the world hash, so no determinism pin moved. The producer inventory marks the 38 rows wired (171 in all); the coverage rows 19, 21 and 27 and the prank rows 12, 22 and 98 stay blocked.Reading the bytes corrected the first formulas. The patrol-area lines score
(100 - percent) x ScorePerUnpatrolledPct(DontBotherIfPatrolledUponly bounds the percent); the "training in progress" word is the role's budget in the staff HQ, and the average training is the grades, not the training points; the staff-happy line lets equality pass; the park-limit words areStaffPoolInfo'sMax<Role>InPark, and the researchers' limit line compares the guards' limit, a copy slip of the original that is ported as it is.One piece of state the original read and OpenTPW did not keep. The staff HQ's
mHaveEverTrainedbyte, which the training window sets once a budget above 0 is stored and which only the "train your staff" line (172) reads, is nowParkStaff.HaveEverTrained: set bySetTrainingBudget, imported from an original save's staff HQ, and written to the park save only when set (older saves derive it from the budgets).The guest census gained one statistic.
IParkGuestStatistics.CensusPercentBelowHappinessis the original's0x4C9750: the percent of the census guests whose happiness byte is below a level (the entertainer line asks for 30).Tests.
AdvisorScanStaffTests: each callback just below, at and above its thresholds over hand-built park states with a different value per key (so a swapped key or role shows), the zero without a park, a staff view or a threshold, the scan's row order and pacing, a pass through the real queue, the statistics over a realParkEconomy, the training flag through the park save, and the guest bridge. ADVISOR-009 narrowed: 79 scanned callbacks remain (21 constant-zero stubs, 58 computed).
The README and the website say how much the advisor says (October 18, 2026)#
The README and the website said the advisor speaks "for the game events traced so far, such as a new park, Instant Action and bankruptcy", which undersold it: OpenTPW posts 133 of the 246 messages tp.exe v2.0 gives (the welcome, money trouble and bankruptcy, rides and breakdowns, litter, guest mood, staff, research, golden tickets and the help of the windows and tools; content/data/advisor-producers.toml), all with their original speech and lip sync, and the restored-advice extension adds 55 of the 105 messages the original never posts. Both texts now give those numbers. The other 113 are ported in batches (100 have every input they need, 13 wait for one).
Draft scope: ADVISOR-009: Complete advisor score producers (October 18, 2026)#
Current scope note (2026-10-19): the paragraph below records the original plan-only snapshot. This PR now also contains the bounded message-344 producer-classification correction described in ADVISOR-SCAN; nine scan callbacks and three help routes remain evidence-gated. The historical draft wording does not claim those routes are implemented or require their completion for this separate correction.
Added the ADVISOR-009 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
ADVISOR-025: the lobby shows the saved key count (October 18, 2026)#
The island lobby now shows the player's saved Full Simulation key count in the original top-right key slots (the key icon gkey and the "%d x" count, the children of the key group 0x1E0EC in the Lobby layout), as tp.exe's panel refresh 0x4B9340 does for a positive count outside Instant Action. OpenTPW has no player profiles ([EXT:no-player-profiles]), so the count is read once from the one player's saved ledger when the menu is built; missing, corrupt or other-mode progress hides it and nothing is written. ADVISOR-025 is narrowed, not retired: the advisor timer's live refresh, the EA/EB affordability art and effect 0x61 (which runs while the count meets the selected record's threshold, not when it drops) remain open. Details in the lobby key panel notes and the proposal.
Draft scope: ARRIVAL-001: Reconcile saved arrival vehicle scheduling (October 18, 2026)#
Added the ARRIVAL-001 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: ARRIVAL-003: Bound initial ride point eligibility (October 18, 2026)#
Added the ARRIVAL-003 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: ARRIVAL-006: Adjudicate booth timing clock policy (October 18, 2026)#
Added the ARRIVAL-006 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
AUDIO-038: out-of-range loops get a fresh output (October 18, 2026)#
Added the AUDIO-038 proposal on October 18; its bounded part is implemented in the same PR (#553) (see the October 20 entry): a catalogue loop that leaves the hearing range keeps its owner and is rebuilt with a fresh output when it is admitted again, as tp.exe's range stop 0x6BCA70 and owner callback 0x6BBE40 do. AUDIO-038 is narrowed, not retired: finite one-shot restart and expiry and the sentence refill timing remain open.
Draft scope: AUDIO-039: Bound device reverb fidelity (October 18, 2026)#
Added the AUDIO-039 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: AUDIO-040: Plan SoundQuality fade mode (October 18, 2026)#
Added the AUDIO-040 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: AUDIO-041: Resolve list-row click sounds (October 18, 2026)#
Added the AUDIO-041 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: BLUEPRINT-001: Raise occupied-cell markers (October 18, 2026)#
Added the BLUEPRINT-001 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: COAST-034: Align coaster car animation lifecycle (October 18, 2026)#
Added the COAST-034 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: COAST-035: Add selected-pylon loop transitions (October 18, 2026)#
Added the COAST-035 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: COMPAT-002: Verify sign width rounding (October 18, 2026)#
Added the COMPAT-002 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: COMPAT-003: Verify GDI glyph coverage (October 18, 2026)#
Added the COMPAT-003 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: COMPAT-010: Trace texture filter state mapping (October 18, 2026)#
Added the COMPAT-010 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Updated October 20: Independent host texture creation flags; native filtering/state mapping remains open. See TEXTURE-CREATION-FLAGS. Bounded host implementation and synthetic regression fixtures are now included; C# execution and visual validation remain pending, with no fidelity retirement.
Draft scope: DET-013: Specify restored script scheduling fidelity (October 18, 2026)#
Added the DET-013 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
ECON-023: Retained breakdown state on original import (October 18, 2026)#
Added the ECON-023 proposal on October 18 and implemented its bounded part in #506 (merged October 20 with exact-head CI green): an original TPW save's broken-down or condemned attraction (saved state 1 or 4) keeps its broken state on the visitor bridge after its script is attached, only for a unique matching saved, economy and runtime owner, with synthetic regressions. tp.exe keeps such an object closed every tick (0x4e0e00, SetState 0x4e0e60) until a repair sets state 0 (a maintenance request can also move it to state 2, which is closed as well). ECON-023 stays open: the one state word is still split between the visitor bridge and the economy's broken flag.
Draft scope: ECON-026: Research structure cell valuation (October 18, 2026)#
Added the ECON-026 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: ECON-030: Specify bankruptcy presentation boundaries (October 18, 2026)#
Added the ECON-030 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: ECON-049: Specify entrance connectivity topology (October 18, 2026)#
Added the ECON-049 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Added reciprocal typed no-queue entrance/path checks with synthetic regressions and explicit permissive fallback. ECON-049 remains unresolved; exit connectivity and unsupported geometry are not implemented.
Draft scope: ECON-063: Specify initial calendar day dispatch (October 18, 2026)#
Added the ECON-063 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: GUEST-002: Separate queue scoring from route failure (October 18, 2026)#
Added the GUEST-002 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: GUEST-004: Preserve full-queue refusal target semantics (October 18, 2026)#
Added the GUEST-004 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: GUEST-006: Audit thought bubble environment residuals (October 18, 2026)#
Added the GUEST-006 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
GUEST-010: Wandering from linked access cells (October 18, 2026)#
Added the GUEST-010 proposal on October 18 and implemented its bounded part in #517 (merged October 20 with exact-head CI green): linked entrance and exit start cells now use the existing wander picker and navigation path. Synthetic tests cover saved access producers, imported guests and staff callers. Generalized nonpath traversal stays open under GUEST-010. See the bounded contract.
Draft scope: GUEST-011: Specify immediate closed-ride admission cancellation (October 18, 2026)#
Added the GUEST-011 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: GUEST-017: Establish balloon burst first-frame order (October 18, 2026)#
Added the GUEST-017 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
October 20 follow-up: the bounded timing contract now records static create/rebind/scheduler evidence. The live correction uses semantic balloon producers and the existing integer sprite pass, with held and detached presentation history in own saves and synthetic lifecycle tests. Native import phase, host-clock and placement residuals remain; GUEST-017 is not retired. Runtime test results remain subject to the current-head CI and independent review.
Draft scope: GUEST-920: Reconcile visitor elapsed-time semantics (October 18, 2026)#
Added the GUEST-920 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: HEADS-007: Determine bounce run interval (October 18, 2026)#
Added the HEADS-007 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: MD2-900: Trace texture frame consumer (October 18, 2026)#
Added the MD2-900 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: PTCL-905: Complete particle render-state mapping (October 18, 2026)#
Added the PTCL-905 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: PTCL-909: Verify screen particle layering (October 18, 2026)#
Added the PTCL-909 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Updated October 20: Stable weather-only deferral after the last park particle renderer; native HUD/advisor layering remains open. See PARTICLE-WEATHER-ORDER. Bounded host implementation and synthetic regression fixtures are now included; C# execution and visual validation remain pending, with no fidelity retirement.
Draft scope: QUEUE-003: Specify queue back-cell admission topology (October 18, 2026)#
Added the QUEUE-003 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
October 20 follow-up: supported live typed HasQueue objects now derive their nonzero queue front from the entry link byte, with native selection priority. The bounded contract preserves untyped and linkless compatibility explicitly. Synthetic tests await CI; QUEUE-003 remains open for zero-front/count, imported entry reconstruction and cache-timing residuals.
Draft scope: QUEUE-010: Specify queue exit position preservation (October 18, 2026)#
Added the QUEUE-010 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: QUEUE-014: Specify free-start queue tool commits (October 18, 2026)#
Added the QUEUE-014 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
October 20 follow-up: the ordered-pass contract and bounded implementation now cover queue-tool segment failure, active undo, per-cell spend/refund, raw residue hashing, own-save/TPI migration and mixed command replay. Independent source review passed. Tests are synthetic and await current-head CI; original free-start and secondary-layer residuals remain, and QUEUE-014 is not retired.
Draft scope: QUEUE-015: Specify queue removal accounting and occupants (October 18, 2026)#
Added the QUEUE-015 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: SAVE-006: Specify attraction metadata and claims restore (October 18, 2026)#
Added the SAVE-006 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: SAVE-007: Adjudicate unusual research save states (October 18, 2026)#
Added the SAVE-007 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: SAVE-010: Specify residual runtime import ownership (October 18, 2026)#
Added the SAVE-010 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: SAVE-011: Specify bounded structural coaster block parsing (October 18, 2026)#
Added the SAVE-011 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: SAVE-013: Specify sprite and particle state restore (October 18, 2026)#
Added the SAVE-013 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: TOUR-011: Match walker frame progression (October 18, 2026)#
Added the TOUR-011 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: TRACK-002: Audit height-map consumers (October 18, 2026)#
Added the TRACK-002 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: TRACK-004: Complete junction clear links (October 18, 2026)#
Added the TRACK-004 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
TRACK-007: Directional track demolition (October 18, 2026)#
Added the TRACK-007 proposal on October 18 and implemented its bounded part in #593 (merged October 20 with exact-head CI green): a two-line full crossing whose laid flow matches the replayed chain keeps its other flow during a ride's demolition. Thirteen synthetic cases cover both collectors, kart and water crossings, saved rotation, callbacks, add-ons and the unchanged contrary-flow policy. The cleared bit matches tp.exe: its line step 0x53B280 clears the link bit opposite to the step, and the replay 0x52FE50 runs each line from the later corner point back to the earlier one, so the bit is the chain's own heading. TRACK-007 stays open for the other junction shapes and the per-line arm writes.
Draft scope: TRACK-032: Restore saved controller semantics (October 18, 2026)#
Added the TRACK-032 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-003: Trace UI child transforms (October 18, 2026)#
Added the UI-003 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
UI-013: Online pause layout state (October 18, 2026)#
Added the UI-013 proposal on October 18 and implemented its bounded part in #470 (merged October 20 with exact-head CI green): the park pause menu lays its lines out from top 0 with no gap while the player is logged in, as tp.exe does while its net-session field +0x60 is set (0x48c36c, 0x5b6450), and from top 10 with a gap of 5 otherwise. The field is set only by the login reply "Authorization OK" (0x5b6363), so OpenTPW maps it to the authenticated session the park HUD samples when the menu opens (HudHost.IsLoggedIn). See AUTHENTICATED-PAUSE-LAYOUT. UI-013 stays open for the menu font tier.
Draft scope: UI-031: Map build completion submodes (October 18, 2026)#
Added the UI-031 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-034: Resolve UI black key state (October 18, 2026)#
Added the UI-034 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Updated October 20: Preserve per-slot transparency in contiguous UI material runs without changing painter order; native black-key thresholds remain open. See UI-MATERIAL-RUNS. Bounded host implementation and synthetic regression fixtures are now included; C# execution and visual validation remain pending, with no fidelity retirement.
Draft scope: UI-050: Trace recent-item star state (October 18, 2026)#
Added the UI-050 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-051: Route ticket purchases through ledger (October 18, 2026)#
Added the UI-051 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-064: Complete research knob presentation (October 18, 2026)#
Added the UI-064 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-086: Restore map object layer colors (October 18, 2026)#
Added the UI-086 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-091: Complete locator presentation behavior (October 18, 2026)#
Added the UI-091 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-092: Resolve employee window state gaps (October 18, 2026)#
Added the UI-092 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-094: Verify ride-view residual timing (October 18, 2026)#
Added the UI-094 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-095: Trace ride-exit camera links (October 18, 2026)#
Added the UI-095 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-096: Complete modal and focus pausing (October 18, 2026)#
Added the UI-096 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-100: Map remaining cursor transitions (October 18, 2026)#
Added the UI-100 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-901: Trace happiness gauge model response (October 18, 2026)#
Added the UI-901 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
UI-907: Visitor rides alignment (October 18, 2026)#
Added the UI-907 proposal on October 18 and implemented it in #495 (merged October 20 with exact-head CI green): the All Visitors list's rides column is left-aligned, as the rides cell's constructor 0x48fde0 leaves it (alignment byte +0xd8 = 0 at 0x48fe28; the row factory 0x4939d0 aligns only the number, cash and time cells). See VISITOR-RIDES-ALIGNMENT. UI-907 is retired by the post-merge follow-up.
Draft scope: UI-910: Add visitor portrait compatibility plan (October 18, 2026)#
Added the UI-910 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-914: Scope information history residuals (October 18, 2026)#
Added the UI-914 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: UI-930: Match visitor sprite pick geometry (October 18, 2026)#
Added the UI-930 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Draft scope: WALK-005: Specify structural walk edge inputs (October 18, 2026)#
Added the WALK-005 proposal with source-checked residuals, evidence gaps, ownership boundaries and acceptance tests. Documentation only: no runtime implementation, original-fidelity qualification or approximation retirement. This remains a draft pending the specified evidence, implementation where needed and independent review.
Correct the FADEOBJ decay evidence (October 18, 2026)#
Further static inspection of the sample-parameter handler disproves the earlier fixed-60-percent interpretation: the base fade update repeatedly multiplies effective integer volume by 60 / 100 and marks stop at zero. Corrected source annotations, the AUDIO-040 register and related documentation. SoundQuality range and updater ownership are better understood, but cadence, sentence dispatch, pending-play/group behavior and retail persisted default remain evidence gates. Runtime stop fallback is unchanged; no ID is retired and no original runtime or full-binary claim is made.
Implement the bounded FADEOBJ lifecycle (October 18, 2026)#
FADEOBJ now releases script records into service-owned tails when SoundQuality is strictly above the loaded sound.sam threshold (supplied default 50, threshold 30). KILLOBJ remains immediate. One shared monotonic poll phase uses post-scan delays of 100/250 ms, integer-volume feedback includes enabled groups without applying them twice, child containers stop on their first poll, and sample-backed sentence fades survive segment/decode gaps. Pending admission, quality downgrade, stop-all, leave-park, disable and shutdown have terminal guards. The existing Audio Quality slider now persists the setting; absent options use the loaded default and Cancel restores the previous choice.
Synthetic regression coverage follows the bounded lifecycle contract, including script ownership, all seven parser subtypes, quality/config migration, shared phase, group changes, decode races and late callbacks. AUDIO-040 remains open for original x87 quantization and host scheduling qualifications; AUDIO-038 is unchanged. No original program or media was executed. Local C# tests could not run because dotnet is absent; CI and independent review remain required.
Load and online park rows follow their proved sound routes (October 18, 2026)#
AUDIO-041 is narrowed to its remaining paths. Load, Find Parks and Other Parks no longer add a generic UI click on row activation. Their type-7/base/owner routes send row notification 0x400 without synthesizing button 0x100 or a dedicated row sound: Load owner 0x49e880, Find Parks 0x4bf9f0, Other Parks 0x4c1a10, type-7 procedure 0x665c35, base 0x65f6d1, hook 0x485780. The immediate load/details paths are covered by that static audit; the audio guide records the bounded evidence.
The Load ownership guard and approved select-then-load UX remain intact. Its separate EXT Load Park button keeps its own 0x1F and no longer receives a second click from the row callback. The two online lists retain selection/activation details callbacks. Downstream loader/advisor sounds, ordinary buttons, headers and scroll arrows retain their sound policies. The reusable list default and untraced/extension callers are unchanged.
ListOwnerAudioTests adds 12 test methods / 18 expanded cases with generated 0x1F/0xBD samples, exact event sequences and real mixer voices. Coverage includes concrete Load mouse/direct/Enter activation, first-click selection, combined/reentrant ownership, stale/invalid/empty/cancelled/refused cases, the separate Load button, both online details owners, downstream sounds, wheel/track/arrow behavior and default/concrete extension lists. The earlier generic-row test is relabelled as a default-policy regression, not evidence about every front-end row.
Validation here: fidelity and progress checks passed; the root Python suite passed 108 tests after generating its required ignored fidelity-register artifact; the evidence runner completed 21 suites / 1,537 cases with 595 skips and seven declared expected failures (overall success). The first root-suite run lacked that generated artifact and reported one failure plus one error; generating it and rerunning resolved both. The .NET build and targeted C# suites were attempted, but both exited 127 because dotnet is unavailable. The 18 new C# cases are unexecuted locally and require CI, together with LoadChooserScrollTests, LoadChooserOwnershipReviewTests, NativeWidgetTests, SelectClickTests, AudioRegisterRound2Tests, AudioTriggerTests and ModsScreenTests.
AUDIO-041 stays open: other original list owners/custom row classes, TPI/mod/debug UI fidelity, still-thumb activation and general keyboard/shortcut self-0x100 routing remain separate. Host Enter tests do not establish original keyboard parity, and no whole-program or original runtime-silence claim is made. No original media, byte dumps, copied strings or private input metadata are included. AUDIO-040 mixer behavior is unchanged.
Blueprint object refusal evidence corrected (October 18, 2026)#
Static inspection of the complete ordinary-object hover/check/ghost route disproved the proposed independent-cell colour change. The hover first calls placement in check-only mode; any refused cell makes that call return zero, which sets the global force-red flag before the immediate ghost pass. This applies even to the NoModify fixed-path return that does not set the validator's sticky refusal. The Move hover uses the same two-pass pattern. The all-red ordinary footprint is therefore retained.
The BLUEPRINT-003 source annotation and register now describe that caller evidence instead of treating independent per-cell colouring as a missing feature. The ID remains open for genuine residuals, including refused outside-access markers, special shape branches, track markers, arrow models, the queue-option marker and the fence ghost. See the caller and return-chain evidence.
There is no runtime behavior change. The existing refused-footprint regression is extended to every rotation. Fidelity/progress checks and their Python suites pass; the focused .NET test command was attempted but cannot run locally because the SDK is absent (dotnet: command not found). Original software was not executed, and no original assets or disassembly are included.
Refused queued-object access markers (October 18, 2026)#
The ordinary object's failed preflight forces its entire ghost red, including the outside access cells that the ghost still stamps. The earlier independent-cell colour proposal was rejected after tracing that caller. The verified omission is now implemented narrowly: an ordinary HasQueue footprint with one entrance and one exit, wholly inside the host grid, can add its outside cells in red after a known placement refusal. An off-grid entrance omits both outside faces; an off-grid exit keeps the entrance face. The whole footprint stays red, without arrows.
Both HUDs share the pure presentation adapter and retain their existing money/colour decisions. Accepted previews and the unproven no-queue, special-symbol, tool/add-on, missing/multiple-access, partly off-grid and global-refusal cases keep their existing fallback. Placement, overwrites, path clearing, purchases, refunds and simulation are unchanged. BLUEPRINT-003 remains open for those residuals, track markers, arrow models and the fence ghost. See the bounded evidence and implementation.
Synthetic tests cover rotations, non-square bounds and access order, fixed-path/ownership/occupancy refusals, fallback output, and repeated preview/cancel without cell-map writes, object changes or ledger charges. Fidelity/progress checks and their Python tests pass. The focused .NET test command was attempted but cannot run locally because dotnet is absent. No original software was executed; no original assets or disassembly are included.
Riders' heads on the water rides' boats (October 18, 2026)#
The water rides' boats now show their riders' heads, as the karts and bumper cars do. tp.exe creates every track vehicle in one routine (0x549DB0) and hangs rider k of its rider list on the vehicle mesh's head dummy k (0x549C60). The wr_ring boats of all four water rides carry five such dummies; OpenTPW read only dummies 1 and 2 and left the water family out of the head sources. TrackRenderer.SeatHeads now reads every seat, and TrackAssetTests checks the five boat seats and the karts' seats on the shipped models.
The riders' heads on coaster and tour cars were already drawn (CoasterHeadSources, TourHeadSources), so the front page no longer lists them as missing, and GUESTS.md no longer calls them "not done".
Browser audio startup uses the guarded legacy settings reader (October 18, 2026)#
The optional reverb-map lookup added by the audio update read the desktop Settings.Default.GamePath while starting the lobby sound. In WebAssembly that initializes an unsupported configuration system and stops startup with "Could not start: Configuration system failed to initialize".
Audio now reads the existing LegacySettings.GamePath accessor once, only when no reverb map is already loaded. It returns no path in the browser, so the optional map stays unavailable and the rest of the audio initialization continues. Desktop installations retain the map lookup; unreadable legacy configuration is handled by the existing guarded reader. No saves or stored settings are removed.
The browser startup tests include a source-contract regression for this access. That check and the Web build do not by themselves qualify actual browser gameplay.
Browser settings boundary and canonical text regressions (October 18, 2026)#
The browser no longer compiles the desktop user.config settings, their GameDir helper or the unused legacy cursor, and drops its ConfigurationManager package reference. Its LegacySettings replacement returns no legacy game path; shared audio and game-files code keeps the existing fallback. Desktop sources are unchanged. FormD object-name matching and FormC mod path keys retain their existing semantics. Asset-free WASM smoke checks now verify that boundary, canonical accent/split-name matching and compatibility distinctions, twice with networking disabled after boot, alongside the postcard checks. CPU tests pin the same object-name normalization rules. See WEB.
Sending a postcard no longer stops the browser game (October 18, 2026)#
Bug. In the browser, pressing Send on a postcard stopped the game with "
NormalizationForm.FormKCandNormalizationForm.FormKDare not supported in browser environments or WebAssembly": the postcard checks its recipients for duplicates withOnlineText.NormalizeName, which folded names with compatibility normalization (FormKC).Fix. The browser client folds with FormC, which WebAssembly supports; desktop clients and the server keep FormKC, and the server stays the authority for player identities.
Browser postcard sending preserves Unicode player identities (October 18, 2026)#
Sending a postcard validated its recipients with .NET's compatibility normalization (FormKC), which is unsupported in WebAssembly. The exception escaped the postcard window and stopped the game's frame loop before the card reached the outbox. The initial browser-only FormC workaround avoided the crash but did not recognize all compatibility-equivalent recipients as duplicates.
The browser now supplies NFKC through JavaScript's Unicode normalization, after .NET validates the input. Identity casing still uses .NET's ToUpperInvariant, and desktop/server identities keep the existing algorithm. Compatibility-equivalent names remain duplicates; account keys, sender checks and recipient routing are unchanged. A platform-not-supported failure in the postcard window now shows the existing failure dialog and retains the draft instead of stopping the game.
Regression coverage includes compatibility-equivalent recipients, accented names, malformed Unicode, JavaScript module registration and draft preservation. The asset-free browser smoke test exercises the actual WebAssembly postcard path; it does not establish full gameplay with an original game installation.
Challenge progress contract correction (October 18, 2026)#
ECON-058 now distinguishes the recovered type/tag dispatch, typed message fields and existing template support from the remaining tag-record and saved-state dependencies. Progress carries the stored accumulator; same-tag text refresh differs from cross-tag removal/insertion. This corrects the former blanket offer replacement claim and the mistaken label of advice 0x160 as a text tag.
Live progress remains unimplemented. No runtime behavior, original media or private input metadata is changed or published. See the bounded evidence and acceptance contract.
Live challenge progress for all 33 types (October 18, 2026)#
Challenges now emit immutable fourth-turn progress snapshots and render their keyed localized templates into retained tagged tube rows. Raw display values survive saves/imports; close retains a row, delete removes it, and selected/full-tube refresh does not replay the insertion sound. Actual offer/follow-up/result transitions apply exact replacement identities without changing gameplay events, scoring or payouts.
ECON-058 remains open for original offer/result text, timers and removal behavior. Offer wording/buttons and the existing repost extension are preserved. The public contract documents the recovered metadata, legacy-save defaults, tests and remaining boundaries. No original strings or assets are published. All 32 Python tooling tests (fidelity, progress and CI scope), the fidelity/progress aggregate checks and whitespace checks pass. The .NET test command could not start because dotnet is absent; C# suites and runtime visual checks remain unrun. Numeric bindings were independently checked against the static evidence.
Localized challenge terminal rows and bounded UI timers (October 18, 2026)#
Success/failure captions now use all 66 recovered numeric records and the immutable localized payload. Distinct terminal instances retain read/closed rows, cancel lifetime on first read, and expire unread on an injected unscaled 30-second UI clock. Expiry/delete retain hidden occupancy for a 500 ms delayed release; exact cross-tag replacement remains synchronous. Suspend/resume restarts active origins without reviving disabled timers, and delayed release stays independent of suspension.
The terminal contract names the host pause/screen mapping and the remaining queue, focus, wrap, persistence and generic-capacity limits. Offers and their repost behavior, existing progress refresh, scoring and saves are unchanged. ECON-058/UI-025 remain open, and UI particles 90/91 remain omitted under PTCL-908. No original assets, strings or private evidence are included.
Thirty new deterministic synthetic regressions cover localization, duplicate instances, queue/read races, full-tube replacement, hidden hit-testing, clock/resume boundaries, follow-up ordering, read-only guards and timer pumping through the full-screen finale's captured-input return.
Local validation passed: fidelity/progress checks, all 108 tooling tests, committed-diff whitespace checks, and the evidence aggregate (21 Python suites, 1,537 tests, 595 skipped; the review lane has seven expected failures). C# execution was attempted but blocked because dotnet is not installed. These C# regressions still require SDK-enabled CI; no runtime visual validation is claimed.
Chat overlay follow-ups from the review of #607 (October 18, 2026)#
Four small fixes to the in-park chat overlay from the review of PR #607:
The entry takes at most 255 characters, as the original's (tp.exe
0x4BF460builds it with 255); a chat line on the protocol still carries up to 256 ([EXT:online-chat-line-limit], formerly the stray labelEXT:ONLINE-030), so older clients' lines still pass.The message list no longer cuts a row between the two halves of a surrogate pair, so an emoji at a row's end moves to the next row whole.
The overlay asks for the buddy list at most once in five seconds, counting a typed
/buddy([EXT:online-chat-person-flags]). Switching to the buddy tab again and again no longer spends the connection's request allowance and fills the chat with "rate-limited" lines, and a typed/buddyfollowed by the buddy tab keeps its answer in the chat lines. An ask without an answer in that time counts as dropped, and a new connection asks at once.The server's room change lost a condition that always held.
Tests: ChatPanelTests (the entry's limit, rows with surrogate pairs, TheOverlayAsksForTheBuddyListAtMostOnceInItsInterval) and OnlineIntegrationTests (a typed /buddy right before the buddy tab keeps its lines; the dropped-ask test lets its ask out at once).
Coaster HUD cost visibility (October 18, 2026)#
The coaster panel's HUD cost now stays hidden in idle height, rotation, tilt, stack and demolition modes, and appears during a successful height drag. Build/loop/move retain their existing cost display. Static panel callers and the height handler distinguish the original mode classes and bit lifecycle; arithmetic, spending and the separate cursor cost are unchanged. UI-047 remains open for the host mode-stack/fallback qualifications.
Synthetic HUD and panel regressions cover the mode matrix, failed/successful press, zero-cost active drag, release, cancellation, mode change and non-height drags. No browser or original-runtime result is claimed.
Resume interrupted coaster loop pairs (October 18, 2026)#
The coaster panel now resumes the second loop pylon after reopening or returning from an edit tool. The pending condition comes from the chain endpoint's node flag and survives leaving loop mode; Build stays disabled until the second pylon is placed. Repeated Loop selection preserves the pair, while selecting Loop again after a completed pair starts the next one. Disabled-selection refresh respects the existing availability and upgrade gates.
The implementation note corrects the earlier selected-pylon premise: the proven routines inspect the incomplete tail or the completed-cut predecessor, not an arbitrary mouse-picked pylon. COAST-035 remains open for the auxiliary dispatch identity and original loader gate.
Added synthetic panel coverage includes interruptions, repeated selection, preview flags, cut endpoints, unavailable controls and saved node flags. The local environment has no .NET SDK, so the C# tests and build were not run here; CI must execute them. Fidelity/progress consistency, their 23 Python tests, the 9 CI-scope tests and the Python evidence runner passed (1,537 tests, 595 skipped, 7 expected failures). No original-runtime or visual result is claimed.
Coaster wheel clips follow train-slot setup (October 18, 2026)#
The wheel-animation start time now belongs to the train slot. Non-bend cars start their looping clip when a slot is initialized (0x43be10: animation 5, sub 0, loop flag 1, initial speed 1.0), independently of first visibility or renderer creation. The rating pass initializes only newly activated slots (0x43cad6); retained slots keep their epoch. The incomplete → built state transition (0x435730, 1 → 2) restarts all slots, while ordinary open/closed/tool, power and capacity changes preserve them. Removed and reactivated slots restart even when the renderer sees the same train count.
The existing whole-millisecond, current-speed and looping arithmetic of CoasterCarRig.WheelTick is unchanged. No guest simulation, deterministic-hash or save fields change. A park restore initializes fresh presentation clips at the restored controller time; wheel-phase continuity across save/load is outside this slice.
Synthetic fixtures cover delayed first presentation versus repeated phase sampling, renderer recreation, same-count slot replacement, retained and newly activated rating slots, ordinary state changes and the existing frame arithmetic. An original-data fixture compares the wheel UV tracks loaded immediately and after setup without exporting game assets. These exercise the renderer's CPU phase query and model UV application, not a graphics-device render or native-game oracle.
Validation: Python fidelity/progress checks and their unit tests pass; the C# build and focused CoasterPresentationTests, CoasterPresentationAssetTests and CoasterTrainLayoutTests remain unrun because the pinned .NET SDK is unavailable in this executor. Independent review and an SDK-equipped test run are still required. COAST-034 remains open for bend sampling/endpoints, flume-clip invocation and unbent rider sockets.
Documentation and website refresh: extensions, mods, pools and texture packs (October 18, 2026)#
Discoverability. The README has an "Extensions and mods" section with the official extensions and their defaults (pools and pool guest art on by default), how to switch them off, data mods, script mods and local texture packs. The front page gained "You can" entries for pools and for mods, every site navigation has a "Mods" link, and the documentation index lists Extensions and mods, Script mods and Pools under "Start here"; "Enhanced textures" is now "Texture packs" there.
New content. MODS.md has a defaults table, a quick start for a first data mod and how to enable the shipped example script mod; SCRIPT-MODS.md has a quick start, a first hook and a hook quick reference; POOLS.md starts with a section for players; TEXTURE-PACKS.md has a "Make your first local pack" list.
Corrections. The README lists all nine languages, links stable (hourly) releases instead of pre-releases and notes that the pinned .NET 11 SDK is a release candidate. Water rides and go-karts are described the same way in the README, the front page and the feature matrix (they build, run and save; jumps and tunnels are missing). Original saves are described as importing guests (except queued, boarding and riding ones) and research. MODS.md says the script hooks run on the desktop (not in the browser), and its manifest examples use
>=0.8.0instead of a range that refuses every release so far. The "Not done yet" list of POOLS.md now holds only real gaps, CONTENT-KIT.md no longer calls the pools planned, the Theme Park Inc page no longer names v0.7.19 or PR #146 (the desktop edition chooser has been in every release since v0.8.0), and the front page no longer mentions an optional texture pack (none ships).
Employee navigation, rename and locator identity (October 18, 2026)#
Employee arrows now follow the current ThingPool used chain, including restored/nonmonotonic order and reused slots. They join only current matching staff, skip queued/placeholder slots and retain an explicit reverse-roster fallback for pool-free or malformed membership. They do not reorder the simulation; locator role-chain order remains UI-091.
Clicking the employee title opens the generated original rename table
0x7572e8: UITEXT 195, one initially selected 32-UTF-16-unit field, Apply/Enter and Cancel/Escape/right-back. The dialog captures the employee, suppresses duplicates and refuses stale/replaced targets or read-only visits. Closing the parent or losing the employee cancels the child. Blank names remain explicit through original import and host save/resume; null alone means the generated name. Variant and name-table index are untouched.Staff locator identity and name-strip visibility no longer depend on available coordinates. Following waits safely for a position and actual removal clears the actor; ordinary carried staff still use their retained position. The host park-camera boundary and visitor behavior remain unchanged.
Corrected the portrait evidence: UI control
+0xE0is depth, not an animation phase. No portrait rendering code changes here: live-source integration and independent-clone timing/state/flag semantics remain UI-092 work, requiring separate implementation/review, with pixel sizing still UI-082. Initial selection uses the host text-field highlight/caret style, not a claim of original rendered-pixel equivalence.Added focused synthetic regressions for order/restore/reuse, original dialog layout, captured targets, Unicode boundaries, blank-name persistence, stale callbacks, read-only changes, cancellation, locator recovery and presentation-only state hashes. Local validation covers generator reproduction, Python evidence/tool checks and diff hygiene; .NET execution and real-data rendered UI checks require an SDK/runtime-capable environment and are not claimed by static verification.
See UI behavior and qualifications.
The engine's CPU time was measured and its biggest per-tick waste removed (October 18, 2026)#
New ENGINE-PERFORMANCE.md: how to profile the simulation (the guest report's level parks,
dotnet-trace) and a native frame (--perf-run,--frame-stats), where the time goes in a busy Jungle park, what changed and what is left.--frame-statsnow splits a frame into update (with the simulation), world drawing, interface overlay, submit and GPU wait;--perf-run Nopens the park, runs it at up to four times the speed and closes the window after N frames.Finding: the simulation costs 26 µs per tick (0.16 % of a core) in the Jungle park, two thirds of it object animation; a frame costs about 1 ms of main-thread time, 0.7 ms of it in the world drawing, mostly per-draw uniform uploads that restart the Metal render pass.
Object animation no longer walks a pose that cannot change, no longer allocates per node and tick (723 MB to 86 MB over 305 park days), samples vertex poses and track keys without LINQ, interfaces or closures, and still objects skip their parts' transforms. The simulation per tick is 26 % cheaper; results are identical (determinism pins, resume equivalence and the guest report's state hashes unchanged).
Per frame the sky rewrites only its texture coordinates (byte-identical buffer), the renderers read the vertex size once instead of through reflection, and text batches no longer allocate an enumerator: garbage per frame drops from 96 KB to 43 KB.
Evening and night: the night frame no longer walks every object, and the cost is measured (October 18, 2026)#
Phase N2 of the lights-and-evening plan. The lamp source of opentpw.evening walked every placed object on every night frame (one lookup per object); it now keeps a cache of the lamp-bearing objects that is rebuilt only when the park's object set changes (ParkObjects.Version counts placements and removals), so a night frame touches only the lamp bearers, allocates nothing and lights exactly the same lights in the same order. EveningTests cover that the cache follows placement and removal, resolves once per rebuild and does not allocate while the set is unchanged.
Native: the lamp source cost per frame falls by a quarter to a half (medians) (6.4 to 3.4 us for the jungle park, 67 to 41 us for a padded 420-object park with 150 lamp lights, 128 to 99 us for 1400 objects and 500 lights, medians on a heavily loaded machine); the frame average at night is inside the run-to-run spread both before and after, and the same 3 lights are in view. Numbers and method are in EVENING.md ("Performance").
Browser: new
--evening night|dusk|day|offoption oftools/web-perf/run.mjs(hookLevel.PerfEvening, aPerfEveningexport of the web program) measures a second window in the Jungle park. Night against day against the extension off: 59.99 fps in all three, frame p95 2.1, 1.9 and 2.6 ms, main thread 12.4, 11.9 and 13.7 % busy, no long task. Night is not slower in the browser, so no shader or lamp-gathering change was made and the GLES shaders stay as generated.Still open: hundreds of lamps in the browser (no equivalent of
--debug-evening-lampsthere).
Evening and night: the open points (October 18, 2026)#
All five open points of the evening and night extension (EVENING.md), presentation only: no simulation, state hash or determinism pin changes.
Dusk. A stronger orange low sun (power 1.8 fade, glow tint 1.8, 0.85, 0.30), a lower and warmer ambient: green ground now reads as a darker, warm evening, paths and bricks glow. Day and night values are unchanged.
Ticket-booth panels. Not self-lit: opaque near-white
gte_rof3roof panels (albedo 221) of the park'sbase.MD2, lit and clipped to white by the street lamps beside them.test.shadergets a soft shoulder (brightest channel above 0.4 keeps 25 % of the excess) behind the dusk and night check; the web shader JSON was regenerated.Pool lights. First captures: the lamp and the underwater light work; the lamp's radius 55 and the underwater light's 50 flooded the lawn, so the lamp is radius 42 and the underwater light sits 14 units into the pool, 6 below ground, radius 26.
--debug-lightnow honours--capture-camera;--debug-extraslogs engine positions.Browser lamps.
tools/web-perf/run.mjs --evening-lamps <n>(hookPerfEveningLamps, shared with the native option throughLevel.SetDebugEveningLamps). AOT build, 3 runs: +50 and +200 lamps cost nothing measurable, +500 about 0.4 ms p50 and 1.2 ms p95; no code change.Particles and sky. The pool spray and the world's alpha particles take the sprite tint. The park sky is never in view at any zoom (captures at 40 and 300), so its tint needs no judgement.
Tests. Three new
EveningTests(dusk warmth, the shoulder, the particle tint); the lamp-on-model test allows the underwater light below the object's ground.
Evening and night: a day cycle and lamps that light at dusk, as an official extension (October 18, 2026)#
opentpw.evening 1.0.0 gives the park a day and night cycle. It is presentation only (AffectsSimulation is false, so no save records it and no hash, pin or simulation value changes) and on by default (the user decided after the tuning captures; it can be switched off); the extension's name and description are in all eleven interface languages on Options > OpenTPW > Extensions and mods.
Cycle: a clock on play time (real frame time while the park runs, standing still while it is paused, whatever the park speed), starting at noon; the phase is not saved, a resumed park starts a new day. The pace is a Day cycle row on the OpenTPW options page (10, 20 or 40 minutes, or always day, dusk or night; default 20, saved in
opentpw-options.json, an unknown value reads as the default). Full day is the original's look exactly, down to the bytes of the uniform block.Dark: the sun colour, the ambient (a new
g_flAmbientLevelin the padding after the sun position of the lit shaders, 0 = unchanged), the sky, the fog and backdrop, the guest, staff and litter sprites, and the pool water. The GLES shaders are regenerated.Lamps (
content/data/evening-lights.json, 21 rows, 34 lights, no model changed): the pools extension's lamp and underwater light, the original lamp posts and gates of the four themes, a few lit features (pumpkin, demon statue, plasmatrope, crystals, fountain, lava) and a few ride lights (candles of Hocus Pocus, fire pots of Aztec Mayhem, Eruption, Pumpkin Castle, beams of Escape Velocity and Star Tours), as point lights that fade in with the dusk and follow their model's animation.Evidence:
EveningTests(curves, the exact-day look, the clock, the options value and row, every interface language, registration, the lamp table and its resolution on the shipped models and, with data, on every original object it names) and a park run whose world hash is equal with the extension on and off (DeterminismTests). The look was tuned on offscreen captures of the jungle park and a pool at day, dusk and night (tinted ambient for a warm dusk and a blue night); EVENING.md ("Tuning", "Not done") lists what is still open.--evening-paceis a run-scoped override and is never saved.Also: two comment fixes from the review of the point lights (the glTF light extra's summary, and the light record type word in LIGHTS.md).
Review follow-up: the docs, the site's document list and the extension's own comment now say the extension is on by default (MODS.md said off until tuned); particles not tinted at night are listed under Not done.
Forecast labels kept out of the register's prose rows (October 18, 2026)#
Three /// doc comments of the weather forecast (#611) mentioned [EXT:forecast-presentation] in brackets, so the fidelity register listed them as three extra rows made of sentence fragments. They now name the extension in plain prose; the bracketed label stays on the // [EXT:…] lines that the register is meant to list.
Smarter guests is released as opt-in after a CPU measurement on hosted runners (October 18, 2026)#
The release of opentpw.smarter-guests waits for its CPU gate (at most 1.10 times the original guests' update time per guest-turn, docs/SMARTER-GUESTS.md "Cost and release") to be confirmed on a machine nobody else is using, and the development machine never became quiet. A new workflow, Smarter guests CPU cost (.github/workflows/guest-cost.yml), runs --guest-report --guest-cost on a hosted Ubuntu and macOS runner in four synthetic scenarios (default, food shop, litter with bins, litter with bins and food) and writes the tables to the job summary. It needs no game data, runs by hand (workflow_dispatch, repeats and variants as inputs) or on a pull request that changes the workflow, and is not part of the normal build. Nothing in the game changes.
Result, and the release. On the Ubuntu runner 1.6.0 costs 1.072, 1.091, 1.075 and 1.081 times the original guests per guest-turn in the four scenarios (1.5.0 within 0.005 of it), so the gate is met and opentpw.smarter-guests 1.6.0 is released as opt-in: PlayerSelectable: true, still off by default, on the Extensions and mods screen, in mods.json and with --enable-mod. The macOS runner was too noisy to decide on (identical code paths differed by up to 0.05); its figures are in docs/SMARTER-GUESTS.md. README, docs/MODS.md and the mods-screen tests follow.
A held scream resumes the same with or without audio (October 18, 2026)#
The opt-in water variant of the native park-resume smoke failed at the save boundary. The water ride's script held a STARTSCREAM chain, and the runtime snapshot's HeldScream was true at capture and false after the restore. HeldScream meant "the effects hold a chain", and the restore started that chain while it built the candidate park, before any audio existed, so GameAudio.StartScream returned nothing. The normal load from the front end, where audio does run, lost the scream as well: GameFlow.ResumePark enters the park's audio after building the candidate, and entering it stops every chain. The held operands and the leaked-chain count followed the chain too, so a save's content and hashes depended on whether audio ran. A rejected candidate could also leave a started chain playing in the live park.
The scream is now the script's state. OriginalObjectEffects keeps the handle as the script sees it: a STARTSCREAM with a band takes it, a second start is refused, and STOPSCREAM or the object's stop clears it. It also keeps the band, level and speed word (SCREAMLEVEL changes the level while the handle is held) and the number of handles that refused starts lost (tp.exe 0x551130 stores 0 over the handle). The refusal, the saved fields and the scream diagnostics come from this state. Both STARTSCREAM operands and SCREAMLEVEL's operand are resolved whether or not a handle is held (tp.exe 0x555E5E, 0x555FDA). So headless, muted and audible runs save the same park.
A restore brings the state back exactly and starts no sound. After GameAudio.EnterPark, GameFlow.ResumePark calls Level.ResumeHeldScreams, which starts each held scream's chain from its operands. A lost handle comes back as a count only; its chain does not scream again, and a stopped object restores no scream. Older saves load: the script's view (ScriptHoldsScream) wins, and a save without it falls back to HeldScream. A save made without audio before this change kept the handle but not its operands, so its held scream stays silent until the script stops it. GameAudio.StartScream no longer refuses on a held chain, because the script's handle decides.
Verification: HeldScreamResumeTests (new) checks that a sound service changes nothing that is saved, that a restore reproduces the state and starts no chain until ResumeHeldScream, that a stopped object or snapshot holds no scream, and both older-save fallbacks. The scream, runtime-snapshot and particle tests are updated for the new state. The full with-data suite passes (7190 passed, 131 skipped), as do the five default smokes. The water variant of the park-resume smoke passes too: the restore reproduces the boundary and all 600 continuation ticks and logs "1 held scream(s) restored, 1 playing again". Its restore now fails if a held scream does not play again after the load while the sound service runs. AUDIO.md ("Held screams in a park save") and PARK-SAVES.md describe the behaviour; PARK-SAVES.md no longer says that a screaming ride or a speaking advisor blocks a save. AUDIO.md and the STARTSCREAM comment now say that this models tp.exe with its sound running: without a sound device its chain start (0x51bfc0) returns 0 and the original holds no handle.
The hi-res guests are rendered from the original's camera (October 18, 2026)#
The pools extension's Blender guests are the default look in TPW parks: the kids on land, the swimmers and the riders' heads. The kids and the swimmers are rendered again, at 45 degrees and 11.1 pixels per unit, where they used to be at 27 degrees and 11.7. The heads keep their old scale (HEAD_PPU), at which they match the original head sets, and their seven elevation rows do not depend on the body camera, so they are unchanged.
A new script, tools/blender/opentpw_kid_elevation.py, measures the camera. It renders the standing kid over a sweep of camera elevations and scales and compares its silhouettes with the original standing frames. The .TPC banks the game draws match best at 44 to 48 degrees. The .FPC banks match at 15 degrees or lower; the old calibration had been done against them, by eye.
So the two banks differ in camera, not in scale, and the generator's "TPC scale" (11.7 / 1.25) is gone. Our guests now look filmed from above, like the originals and the staff, as the player asked.
The feet hotspot is now the floor point itself (LAND_HOTSPOT_DROP 0). It had been one pixel lower to match the FPC's soles; from the TPC's camera, a standing kid's soles end 3 to 5 pixels below the hotspot in the originals and 2 to 5 in ours, so no correction is needed.
The frames from higher up are smaller: the eight kid atlases are now 1024 x 256 each (8 MiB of RGBA, was 15), and the shipped sprites take 8.25 MB on disk (was 8.84).
Park information window review fixes (October 18, 2026)#
Top 3 Thoughts hover text. Each icon again names its own thought (THOUGHTS.str entry frame + 1), which corrects the earlier entry of the same day. The icons are control type 6 of table
0x7537D0: the factory0x65DD7Bbuilds them through0x65E057and the constructor0x66D9E0, vtable0x705C58, whose frame setter (0x66DA4D) stores the frame at+0x13Cand whose getter (0x66DAD2) returns it. Vtable0x7059F0, whose getter returns 0, belongs to type 7. The hover test now checks the text of each frame.Statistics rings in saves. A saved ring is restored with its slots, head and wrapped flag as saved instead of being replayed, so a ring that has gone round saves back to the same data. Saves written before this still load with the same entries.
Labels and notes. The lobby's clock-seeded stand-in for the CRT's
rand()isAPPROX:UI-018again (it had become an unapproved EXT label) and the UI-018 register text names it. The graph's series and period choice is kept within a park, where tp.exe's globals0x753C48and0x7CB39Clast for the process (UI-914). The happiness levels take the meter byte throughMeterMath.Byte, as0x4C9750and0x4C9670do through0x67A830. DETERMINISM.md lists the statistics history and the analyser caches among the state outside the hash, and the lightning flash note explains why the capture does not show the one-frame inversion. No pin moves.
Instant Action research-finale lifecycle (October 18, 2026)#
Completing all research in a writable Theme Park World Instant Action park now creates its fixed End object. The existing advisor still posts advice 167. Repeated notifications reuse an existing object, including one restored with a layout; binding a loaded economy never creates a finale merely because its research is already complete. Missing definitions do not substitute another object or charge the park.
The looping finale needs an exit: creating it alone would leave its music duck and the bank's winning-sequence guard active indefinitely. A bounded full-screen input owner hides the HUD, ends tools and blocks park/camera controls while the object runs. Escape without modifiers or an enabled right click after more than two seconds destroys it through normal object cleanup. An OpenTPW Resume Game button provides a visible, localized exit. The dismissal frame does not reach the park tools; object removal releases its script, held sounds, particles and music duck, and the next bankruptcy message is no longer suppressed.
This is a partial RIDES-019 implementation. Full Simulation's player-wide research prerequisite, the original winning-camera follow and panel, and the post-dismissal profile and dialog changes remain open. A resumed End receives the bounded dismissal screen, not restored original UI state. See the implementation boundary.
Asset-free tests cover the mode/edition/visit gates, name matching, missing definitions, duplicates, origin and seed allocation, restored objects, economy rebinding, bankruptcy, script/audio/particle cleanup, deferred thing destruction, and HUD input ownership/dismissal. The local .NET test command could not run because the SDK was unavailable; executable test results must come from the exact-head CI run. No original game files are included.
Lost parks use their five-entry pause menu (October 18, 2026)#
The real HUD pause-menu builder now follows the branch order in 0x48C150: read-only visits keep their three entries, then a bankrupt writable park gets Load, Restart Park, Resume Game, Exit To Lobby and Quit Game. Save, Publish Park, Options and Go Online are absent from that loss menu; healthy parks and levels without an economy keep their existing menu.
The five entries reuse the existing host callbacks, capability checks, restart/quit confirmations and Exit ownership guard. Resume and Back preserve bankruptcy, balance and the speed setting. Twelve synthetic constructed-menu test methods (29 expanded cases) cover the ordering, visit precedence, missing hooks, changed/replaced economies, repeated opens, the real load chooser, confirmations, cancellation and pause time scale. They need no original assets or network.
ECON-030 remains open for the gate-camera, loss-root/drawing-resource and input lifecycle, plus the direct economic-guard fidelity audit. Its stale warning-producer and tick-button claims are corrected: AutomaticAdvisor already produces advice 102–105 through AdvisorScan, and 0x48A740 has no explicit tick-button action. The loss layout is not proved empty. See the economy notes.
No economy, simulation, save-format, determinism or camera runtime changes. Local .NET execution is unavailable because this environment has no dotnet; the new C# cases require CI validation. Fidelity/progress validation and whitespace checks pass, as do 49 Python tooling tests and the evidence runner (1,537 tests, 595 skipped). The site-doc checks pass after generating the uncommitted fidelity-register build artifact.
Mods and extensions explained on the site and README (October 18, 2026)#
The README and the front page now have a section on extensions and mods: official extensions against community mods, the Extensions and mods screen, the pools extension (on by default, with its own textures, objects and hi-res 2x visitor sprites with swim animations, switchable off, not in Theme Park Inc runs), optional texture packs, data mods and script mods, with the reason for TPW Script instead of Lua. A new modding guide shows the folder layout, a minimal manifest, where to put a mod on each platform, a data override, a script taken from the working example mod, how saves record mods and what is not possible. The stale "hooks are not wired in yet" line of MODS.md now says that script mods run on the desktop, and the pools page no longer lists merged phases as not done. The docs index lists the guide, the mods pages and the pools page under the featured documents.
US English, Hebrew, Italian and the fan Russian from the localisation pack (October 18, 2026)#
The ModDB localisation pack (--language-data on its root, one of its folders or that folder's data) adds three verified languages and a fan translation (docs/LANGUAGES.md). US English (tp.exe's American, the pack's USEnglish) has its own speech (the US voice), Init pictures, postcard logo and ui.wad, whose Sim Theme Park logo now replaces the game's: a language's own ui.wad stands in for data/ui.wad (LanguageInterfaceArchive, [EXT:language-settings]): tp.exe reads only the fixed data\ui.wad (0x747c84), so this models an install the language's data folder was copied over. Korean from the Korean CD's own Data folder now uses that CD's ui.wad too. Italian is verified like the others. Hebrew is drawn right to left as tp.exe draws it, read statically: the tables stay in logical order, the text library reverses each line that holds Hebrew and turns Latin words back (0x6ae4b0, no bidi algorithm), the two interface text helpers swap left and right alignment (0x492750, 0x4929f0), and typed Latin letters become the Hebrew letters of the same keys (0x46b460). The fan Russian (Windows-1251 bytes in the Latin table, drawn by its own fonts) loads as "Russian (fan translation)" ([EXT:fan-translations]). tp.exe's language table (0x4193d0, registry switch 0x5c0d00) is documented with all sixteen entries; Japanese, both Chinese and Thai have no data. The Init and postcard files resolve per language (0x587380), but OpenTPW draws no loading screen yet. OpenTPW's own labels are translated into Italian and Hebrew. A Hebrew gate sign shows boxes, the shipped sign fonts having no Hebrew glyph ([APPROX:COMPAT-034]). Tests: LanguagePackTests without data, LanguagePackDataTests with OPENTPW_LANGUAGE_PACK; the front-end smoke passes in Hebrew, US English and Italian.
MTR: observed structure, no consumer found (October 18, 2026)#
The README format row for banner mesh companions is ✅, worded as observed structure, and "unused by the original" is now "no consumer found". The format link points at MTR.md instead of the old upstream page. The same open questions stay in the README, MTR.md and FORMAT-BACKLOG.md: no reader found in any allowed binary, and a runtime-built filename can't be fully excluded; why s is 0.66596/0.80645/1 and what M7 is, since no placement code was found in the inspected binaries. The backlog calls the 11 files install-media files, and says MTR is on the inspected install media, not the installed Data tree. The 2026-10-18 docs pass did not re-hash the PC CD copies: OPENTPW_MTR_PATH was unset, so the six private MtrFileTests were skipped, including OriginalMediaCarriesElevenMtrCopiesOfNineDistinctFiles. Those skips do not show that all 11 .mtr files match the 9 pinned SHA-256 hashes in MTR.md. The ModKit file browser labels .mtr as a banner mesh companion. No reader behaviour changed. Requested by Sander in #opentpw.
Review follow-up: the ✅ covers every observed file (17 copies, 15 distinct, with the Italian and Spanish banners that decode but are not pinned); the
s-baked-into-MD2 relation holds for the pinned files, not the Italianbankrupt.
Players in a visited park (October 18, 2026)#
A visit of a park downloaded from the server now shows the park's other visitors walking in it (docs/ONLINE.md "Players in a visited park"):
The park's room. A visit started from Find Parks, the park details or a city lobby carries the park's server id (
ParkVisitInfo.OnlineParkId) and, while logged in, enters the park's chat room, as the original's visit switched to chat mode (manual p. 65). Leaving the park leaves the room; a chat connection the visit opened is closed again.Figures. Every player of the room is drawn with the guests' kid sprites, walking or standing like a guest, with their name over the head (the player's own in yellow) under the HUD's windows, and sparkles once a world turn with the original's avatar effects: 53 Avatar for the own figure, 57 OtherAvatar for the others (tp.exe 0x4F7C60 / 0x4FA470, run by the online person's tick 0x50B453). The figures are presentation only: the kids'
GuestRendererdraws them after the guests (SpriteFigure), and nothing of the simulation sees them.Walking. A ground click that hits no object walks the player's figure there round water, objects and the fence (the octile cell route of the original's person route 0x50F8E0, straight when there is none); a double click teleports (manual p. 68). Its place goes to the server while it walks, on arrival and every ten seconds; the others follow the relayed places and jump on a teleport.
Chat. The room's last lines show at the original chat overlay's message list, and Enter over the park opens a chat line at its entry.
Evidence. The PC executable's
BOSS_CHAT_MOVEhandler (0x4E7265 in 0x4E6E80) is read: a relayed move names the online person and carries an 8.8 cell position and a mode (walk, teleport, hide, unhide and teleport), and every client walked the person there itself (docs/reverse/ONLINE-VISIT.md).
The chat session no longer sends joins, places and lines through the operation slot (Busy), which dropped them while a download, a vote or another request ran; they go out in order on their own chain, the newest place replacing places not yet sent. A room asked for before the connection opens is joined once it does, a reconnection returns to it, a join the rate limit dropped is sent again after five seconds, and a refused park is remembered. A roster update of the room the player is in no longer clears the room's places. The server answers each room's first movement with where everyone stands, not only a connection's first movement ever, and reports protocol version 4; visits draw figures only on such a server.
Design choices are labelled [EXT:online-visit-presence], online-avatar-look, online-avatar-walk, online-avatar-route, online-avatar-start, online-avatar-click, online-avatar-labels, online-avatar-sparkle-cap and online-visit-chat-line, each with the known original evidence in docs/ONLINE.md. Not done: hiding a figure while its player rides, the original in-park chat overlay with its people list and vote button, chat parks drawn as 3D parks, and building a park together.
Tests: ParkPresenceStateTests (routes, walks, teleports, send rules, remote figures, looks), ParkPresenceTests (connection, room, announcements, keyframes, old servers, refusals, leaving), OnlineIntegrationTests.VisitorsOfAPublishedParkSeeEachOtherWalk (two sessions against the loopback server see each other walk, chat and part), RosterUpdatesKeepTheRoomsPlacesAndAJoinDroppedByTheRateLimitIsSentAgain and OnlineServerTests.EachRoomsFirstMovementAnswersWhereEveryoneStands. The native visit smoke gains --smoke-presence: three scripted players round the entrance are drawn with names and sparkles, a HUD click walks the player's figure and its places are sent (artifacts/native-smoke-online-visit-presence.png). Its plain ride step compared a seated ride's camera with the fallback frame; it now compares it with the seat. The front page no longer lists seeing other players as missing.
Particle follow-up: register text, seat-head cache and the loading beams (October 18, 2026)#
Three low findings from the after-merge review of #425. The register text now agrees with tp.exe: 0x51BFC0 is the sound submit, and the upgrade's call to it (0x55A2E5, global cat_rides 0xB8) is the wired upgrade sound, while the scoped message after the build effect is 0x51C640, which stays unwired. The track renderer no longer allocates a seat-head array per vehicle per frame; the flags are cached per vehicle variant. The bumper and kart loading beams (0x549C60, raised only for a rider whose head dummy exists) no longer assume every rider is seated before the first draw: the controller asks a host-supplied source (SeatHeadSource, read from the vehicle mesh without drawing) and raises no beam where the dummies are unknown, such as a host that never loads the model.
Review follow-up: the vehicle mesh lookup is shared by the drawn mesh and the beam's seat heads (
TrackRenderer.VehicleMeshPath), and any failure to read the mesh for the beams is caught, so a presentation-only feature cannot throw inside the simulation tick.
Land waterfall and teleport beams from tp.exe (October 18, 2026)#
PTCL-908 (the particle callers the register still listed) was triaged against the game data and tp.exe; the register text had gone stale, because the vehicles' break smoke 2, boat spray 96, retire beam 15 and a kart's first-draw beam 15, the walk beam 19 and the tour cars' smoke and fire were already wired. What was missing and is built now:
The land's effects (
0x550e00, type 2 records ofscape.omp): Jungle's waterfall (effect 20) is started with the level, as the original does at every level load; every saved jungle pool already held it, so only a new jungle park lacked its splash. Captured in the native jungle level.Rider beams (
0x549C60,0x54AC70): every bump vehicle raises particle 19 for each rider hung with the beam flag at the BUMP 12 load (0x549B80is shared by all families), and the bumper cars again for each rider taken off at the session's unload, only for seats with a head dummy; the creation and the retire pass no flag.Guest teleport beams (
0x501db0states 15 and 16,0x4fa470): a guest of a ride withUsageInfo.RequiresTeleport(20 shipped rides) beams at its place when it boards and when it leaves.Narrowed: the removal's mode 2 is the world's clear loops (modelled), no shipped fixed item or script reaches the footprint-less paths, no shipped script names a scoped effect literally, and the one type-2 effect with a negative key (Fantasy's bugstv) reads uninitialised stack. The staff, guest-creation, lobby key-panel (
0x4b8ee0too), message-tag (0x48de1a,0x48dfbe→0x486b90) and UI pool callers are listed, as is the first-draw beam 15 of non-kart vehicles (0x546a89), which OpenTPW does not raise; with their addresses in docs/PARTICLES.md.
Presentation only: nothing is saved or hashed, the determinism pin is unchanged. ParticleEmitterCensusTests pins what the shipped data reaches.
A park in play autosaves every five minutes into its own slot, and a crash offers "Continue autosave" (October 18, 2026)#
A browser player's game crashed and the park was lost: the only automatic save was the checkpoint of Exit To Lobby. A park in play is now also saved on a timer ([EXT:periodic-autosave], user-approved 2026-10-18).
Original: checked statically in tp.exe (REA): the park-save writer
0x5AC610is called by the park state machine0x54E360in its leave state (0xB, not the online visit), by the quick-save command0x40BF90, by a save-screen action0x49E9B0and by a menu callback at0x424BB0(request 2, then the save at0x424BD7); the running state reaches state 0xB only on the exit request. No timer calls it, so the original'sautosave.TPWSis written on leaving a park, not periodically (an indirect timer callback cannot be ruled out from the executable alone). The periodic save is OpenTPW's own.When: every 5 minutes of play time (frames that simulate; a pause, the map window, a texture-pack download or a park build counts nothing, a frame counts at most 0.25 s) in a Theme Park World Full Simulation or Instant Action park the player owns; never in a read-only visit, the front end, the sandbox or Theme Park Inc. A refused capture (the advisor speaking, a staff member in hand, any capture refusal) is retried after 15 seconds, and after 8 refusals in a row the autosave waits a full interval; a failed write is retried the same way.
Where:
save/opentpw-<theme>-autosave-world.json, its own slot per theme (desktop and the browser's/save, which the page mirrors to IndexedDB). It never touches the manual save or the Exit To Lobby checkpoint, and does not flush the ticket progress or retire the park. The write is the manual save's atomic one (ParkResumeSaveFile.SaveBytes: temporary file, flush, move), and the next write removes a temporary file a dead process left behind.No hitch: the capture is one frame between ticks (the park must be consistent): 3.3 ms for the real park of the park-resume smoke and 1.3 ms for 1500 guests; the validation, the JSON serialization (
SlicedJsonSerializer, 2 ms slices per frame, the same bytes as the manual save's serializer) and the file write (worker thread on the desktop, inline in the browser) are moved out of that frame. The asset manifest is hashed once per park and kept (hashing it was most of a capture: 183 ms for the first capture). Measurements are in PARK-SAVES.md.Recovery: the theme menu's automatic entry offers "Continue autosave" when the autosave is newer than the Exit To Lobby checkpoint and than the manual save (
AutomaticThemeContinuation.Newest); the label is translated into the nine languages.Option: OpenTPW page of the options, "Autosave: On/Off" (
GameOptions.Autosave, on by default, translated like the other rows); old options files read as on.Tests:
PeriodicAutosaveTestscover the interval and the play-time counting (pause, frame spikes), the refusal and retry (and the backoff), a busy and a failing write, the atomic write (a read-only folder leaves the previous bytes, a stale temporary file is removed, the manual and checkpoint slots are untouched), the sliced serializer's bytes and its contract guard over every snapshot type, the validation refusing a snapshot, the recovery choice and the menu entry, the options row and file, the nine translations, and a real-level capture that leaves the state hash and the random streams unchanged and a captured snapshot unchanged while the park runs on. The park-resume smoke takes the autosave of its real park and checks the same things.
Determinism pins: none moves. The autosave draws from no random stream and reads the park only between ticks; PeriodicAutosaveTests compare the state hash, which covers every random stream, before and after repeated captures. The full suite with game data and the smokes pass (see the pull request).
Point lights, light dummies and the light opcodes (October 18, 2026)#
The original engine has point lights that nothing creates and four RSE light opcodes with nothing behind them; OpenTPW now draws point lights and gives objects the lights those opcodes drive (docs/LIGHTS.md, [EXT:point-lights] and [EXT:object-lights]). It is presentation only: nothing is hashed, every determinism pin and every saved park of the original objects is unchanged, and a park without lights draws as before.
Renderer.
Level.PointLightsgathers the lights once a frame (lights wholly outside the view are dropped) and each draw of a lit material (the ground, objects, coasters, tracks, tours, the pool deck and basin) gets the nearest 16 whose sphere reaches its world box, ordered by distance to the box, then to the camera. The shaders add the original's falloff,(r2 - d2) x (1 / r2)times the light colour with no normal term (0x5741B0), to the sun and ambient shading. The original's radius of 100 model units is 20 engine units, ten cells. The lights ride in the draw's own uniform upload after the engine block (g_vPointLight[32], the count in the padding after the light colour): a draw with no lights uploads the same 272 bytes as before, one with all 16 uploads 784.test.shader,pool-deck.shaderandpool-basin.shaderchanged; the browser's precompiled GLES versions are regenerated. The pool water, sprites and particles take no light.Light dummies. A model node attribute of class
0x20000(OpenTPW writes type0x20040) with the light number as its value and a data block holding the base colour and the radius in model units is a light;ModelLightsreads it,ModelBuilder.AddLightwrites it, and the glTF converter turnsKHR_lights_punctualpoint lights into dummies (colour,rangeas the radius,opentpw_lightandopentpw_light_radiusextras; the Blender exporter writes lights now). The object's.samtunes them withLights[n].Red,.Green,.Blue(percent),.Radiusand.On.Opcodes.
ENABLELIGHT,DISABLELIGHT,SETLIGHT(base colour x level x 0.01) andCOLOURLIGHT(operands x 0.01) act on the light of the object's dummy number and no longer count as unimplemented effects;APPROX:RIDES-046is retired. Naming a light the model does not have is a no-op logged once, deliberately safer than the original, which would fault there. Each placed object's lights follow their dummy node's world transform, so a light on a moving part moves.Saves. The on/off state and colour of an object's lights are saved with its runtime snapshot (an optional member, written only for objects with lights, validated on load) and restored on resume; they are not part of any state hash.
Example mod.
opentpw.example.lamp-lights(official, off by default, not in the browser build) adds a lamp post whose script pulses, flickers and colour-cycles its light;tools/lights/build-example-mod.shrebuilds it.Not looked at. Nothing was captured or looked at on screen: how the light looks in the park (strength against the sun and ambient, the 16-light limit on the one-mesh ground) is still to be judged on screen.
Pool bridges (October 18, 2026)#
Adds an original Blender-authored timber bridge with land-only supports and a clear three-cell water span.
Adds a separate elevated walking route, placement/removal rows, optional save state and focused regression tests.
Leaves underlying pool cells and swimming regions unchanged; empty bridge state adds no save bytes or canonical hash fields.
Design renders have been inspected. CPU execution and in-game visual verification are tracked separately; this draft must not be treated as runtime-verified until those checks pass.
Send postcards to player names and e-mail addresses (October 18, 2026)#
Postcards accept mixed player names and e-mail addresses, split on semicolons, commas and newlines. Shared validation keeps player names with spaces and uses the original localized refusal dialog. Player delivery stays in the server Inbox; e-mail uses the existing configured Resend sender with the message and optional PNG attachment. Each recipient sees only their own address. Partial Send All results keep unconfirmed recipients in Outbox and record confirmed subsets in Sent.
Authenticated delivery has persisted per-account and per-address attempt limits, content-bound receipt keys and deterministic inbox delivery ids. Resend retries retain the provider idempotency key and stop when an unconfirmed attempt reaches the 23-hour safety window; successful receipts have a documented 30-day lifetime. The change adds fake-mail loopback, restart, privacy, malformed-recipient, outbox and adapter regression tests and extends the browser package smoke check. Local fidelity/progress checks pass; .NET and browser runtime execution require CI because this cloud environment has no dotnet SDK. No real e-mails, production configuration changes or deployment were performed. See postcard delivery.
Draft proposal: ADVISOR-017 map and options speech stop (October 18, 2026)#
Added a scoped proposal with observed source/data evidence, implementation boundaries, unresolved dependencies and an acceptance/test plan. This is documentation only: no feature is implemented, no runtime test is claimed, and no approximation ID is retired. The PR must remain draft pending implementation/evidence and independent review.
Draft proposal: BLUEPRINT-003 per-cell feedback and track markers (October 18, 2026)#
Added a scoped proposal with observed source/data evidence, implementation boundaries, unresolved dependencies and an acceptance/test plan. This is documentation only: no feature is implemented, no runtime test is claimed, and no approximation ID is retired. The PR must remain draft pending implementation/evidence and independent review.
Draft proposal: ECON-058 live challenge progress messages (October 18, 2026)#
Added a scoped proposal with observed source/data evidence, implementation boundaries, unresolved dependencies and an acceptance/test plan. This is documentation only: no feature is implemented, no runtime test is claimed, and no approximation ID is retired. The PR must remain draft pending implementation/evidence and independent review.
Keep proposal-only CI lightweight (October 18, 2026)#
Pull requests changing only Markdown under docs/proposals/ and docs/progress/ run lightweight register/progress checks instead of three platform builds and the server image. The existing Website job still checks generated documentation links. Any other path, unknown/empty changeset, code moved into docs, or non-PR event keeps full build/test coverage. Draft status is never used to skip checks. Added classifier regressions; no release, deployment, permission or security-analysis policy changed.
Draft proposal: RIDES-019 Instant Action research finale (October 18, 2026)#
Added a scoped proposal with observed source/data evidence, implementation boundaries, unresolved dependencies and an acceptance/test plan. This is documentation only: no feature is implemented, no runtime test is claimed, and no approximation ID is retired. The PR must remain draft pending implementation/evidence and independent review.
Draft proposal: TRACK-018 existing-track undo and valid-circuit reopen (October 18, 2026)#
Added a scoped proposal with observed source/data evidence, implementation boundaries, unresolved dependencies and an acceptance/test plan. This is documentation only: no feature is implemented, no runtime test is claimed, and no approximation ID is retired. The PR must remain draft pending implementation/evidence and independent review.
PTCL-908's caller list corrected after review (October 18, 2026)#
A review of the land, rider and guest beams found the register's caller list off in three places: 0x486b90 does have a static caller (0x48dfbe, effect 0x5a, in the region 0x48DE00-0x48E0C0 that Ghidra left unanalysed, next to 0x48de1a with effect 0x5b), and 0x4b8ee0 is a third caller of the lobby's key-panel effect 0x61. The first-draw beam 15 is not served for every vehicle: 0x549DB0 flags every vehicle it creates (0x54a009) and the per-vehicle draw reads the flag at 0x546a89 with no family check found, while OpenTPW raises it for karts only, so it stays in PTCL-908. The rider beam at the BUMP 12 load is every vehicle family's (0x549B80 is shared); OpenTPW places it at the vehicle's simulation position where the original uses the instance's root translation. The guest teleport beam test now pins one beam at boarding and one at leaving.
Rain mood: the weather rule for happiness, thirst and hunger, once per qualifying day (October 18, 2026)#
Phase U4 of the umbrellas extension (UMBRELLAS.md), stacked on the simulation (U2): opentpw.rain-mood (1.0.0, off by default, simulation, not in a Theme Park Inc run, listed on the Extensions and mods screen in all eleven languages) brings Theme Park Inc's weather rule (0x611050) to Theme Park World parks.
The rule. In rain, storm and snow a guest's happiness, thirst and hunger change by Theme Park Inc's shipped kid row (rain -1, storm -1, snow +1 happiness; snow thirst -1, hunger +1; the heat wave row never applies), an umbrella that is already open when the rule starts adds
UmbrellaModifier(1) to a negative happiness delta (one the same step opens does not:TPI-EXE:0x611334,0x6111E3,0x402d8d), and the meters are clamped to 0..100 as floats. It runs on the guest's own phase after the umbrella step and before the needs step, for every guest in every state; the umbrella transitions of the same original rule stay in the umbrellas extension and run with the rule off.Once per qualifying day (
[EXT:rain-mood-once-per-day]). The original writes its day and never reads it, so it hits on every update of a qualifying day; the extension applies the rule once per qualifying day and guest, at the first update with bad weather. The day is the optional savedGuest.RainMoodDay(written, validated and hashed only once set, so older saves load and every park without the extension is byte-equal).Measured. One kid in constant rain for a park week: -2 happiness without an umbrella (days 0 and 4), 0 with an open one; snow +2 either way. The literal rule would hit on 11 updates in that week (6 on the first day).
Pins. Every existing pin is unchanged with the extension off (and the umbrellas pin stays
0xE912E7E5D5B6E612). New:RainMoodFixedRunHash=0x3697B9094432D152,RainMoodWithUmbrellasFixedRunHash=0xADEE2FA6AFC2ACE3(was0xF599E7E8B09C0FB7before the modifier read the state at the start of the step); a park saved mid-rain resumes with the same hash. A save records the extension always while it is on in a Theme Park World run; in a Theme Park Inc run, where its gate is off, nothing records it and an export is not refused for it. Theme Park Inc's own rule is not implemented there.Imported guests (
[EXT:rain-mood-imported-age]). An imported original guest without a time in the park counts its age for the day gate from the load, so the rule then applies normally every fourth day (optional savedRainMoodAgeStartTurn, written only for such a guest while the extension is on, validated, hashed only when set).User-approved (2026-10-18), all three.
[EXT:rain-mood-extension](the extension, off by default),[EXT:rain-mood-once-per-day]and[EXT:rain-mood-imported-age](asked directly, answer "Tellen vanaf het laden") are the user's decisions; see the decisions of UMBRELLAS.md.
The website and README screenshots show the current game (October 18, 2026)#
Every in-game image of opentpw.io and the README was taken before the Enhanced HUD was removed, the planar WCT decoder fix, the TPC sprite banks and the sprite depth pull, so they showed redrawn buttons and sprites that looked flat. All of them were re-captured with the current build: native, silent and offscreen, from ~/Downloads/theme park 2, with the original world textures and the original interface (no texture pack, no redrawn art).
shot-queue.webp,shot-advisor.webp,shot-current.png,og.jpg,clip-poster.webpand the two clip files: the jungle park with--capture-interface --capture-camera, guests arriving through the gate (entrance fee set to zero for the capture so the park fills), staff from--debug-stafffor the advisor shot.world-jungle.webp,world-fantasy.webp,world-space.webp,world-halloween.webp: world-only captures of each gate (--load-original-level <level> --capture-camera -1,-48,110,-135 --capture-frames 60; the Halloween level folder ishallow).shot-coaster.webp:--debug-coaster built; the coaster now shows its wooden track and a train of cars, so the alt text was updated.shot-buy.webpandshot-globe.webp: the front-end smoke test at 1280x720 (Buy Ride window on Aztec Mayhem, the online globe).Captions and alt texts follow the new images: the README image is a native capture rather than a browser one, and the hero image shows guests and staff beside Belly Bounce instead of an Aztec Mayhem queue.
While capturing the globe screen the globe was missing: Rotation.LookAt returned an unnormalised quaternion ((axis, angle) passed as x, y, z, w) when the view direction is exactly opposite to Forward, which is the globe camera's start view since it begins at yaw and pitch zero. It now builds the half turn with Quaternion.CreateFromAxisAngle (RotationLookAtTests).
Recent-research stars in the TPW buy list (October 18, 2026)#
The buy list now selects the empty box, owned tick or recent-research star directly. Four capacity-three rings remember paid research completions by Info.WhichUIType. Duplicate upgrade completions and paid add-ons consume slots; initial free items and propagated free levels do not. Buying masks a star and selling the last copy can reveal it again until a later completion evicts its ID. Auxiliary tool rows remain empty, and the existing model size and transforms are unchanged.
Host saves preserve the physical ring state, including scratch words and inactive slots; older saves start with empty history rather than inferring chronology from sorted completed projects. Native TPW import reads the world-referenced analyser with type and bounds checks. Export with explicit research state patches only the four rings' 68-byte range, including an explicitly empty history; without that option the template history stays. Malformed present state is rejected under a defensive host policy. Only the new presentation property is excluded from the world hash; research completion, progress and effort remain hashed.
UI-050 is retired for the implemented TPW contract. The TPW event producer, ring writer, reader and numeric-cell frame selector were resolved by static inspection. This does not establish Theme Park Inc's event policy, which remains disabled, or change the separate UI model transform approximations. No original game was executed and no rendered-pixel equivalence is claimed.
Synthetic C# regressions cover the paid completion branch, duplicates, category isolation, four-event eviction, actual buy-list DrawModel frames 0/1/2, purchase/sell masking, auxiliary rows, save continuation, older saves, malformed records, deep copies, native round trips, unrelated-byte preservation and hash controls. C# execution remains pending CI: this implementation environment has no .NET SDK. See UI, save payloads and determinism.
Release train wakes after main CI (October 18, 2026)#
Build and release tooling only; no game behaviour changes:
The release train wakes after successful push CI on
main, with the existing hourly schedule as a best-effort fallback. A completion event never substitutes for checking all push CI runs on the exact candidate SHA; PR/fork/manual/tag events cannot trigger publication through this path.The final plan now refetches and checks the latest
mainas well as the tags. Changed plans abort dispatch. Release runs waiting for approval or concurrency also block a new train, and run queries include all pages.Retrying an unfinished release requires successful CI on its tagged commit, rather than accepting the current main's results. Existing version concurrency and idempotent publication remain in place; manual dry runs still dispatch nothing.
Planner, mocked GitHub gathering, and the workflow's real dispatch shell are tested for failed/pending CI, duplicate wakes, changed versions and moving main. No live release is needed for these tests.
Release completion catches up green main (October 18, 2026)#
A successful stable main-dispatched release now explicitly dispatches a catch-up train with its run ID. The train validates that source and waits at most three minutes for successful completion before applying the unchanged active-release, exact-SHA CI, tag/version and final-recheck gates. This closes the case where green main was skipped during an active release and otherwise waited for the hourly fallback. Explicit dispatch avoids relying on downstream workflow_run events from token-dispatched releases. An already-tagged head remains a no-op; failed/cancelled source runs, invalid IDs, API errors and wait timeouts stop before planning. Tests run the actual wait shell with command doubles for success, delayed completion, invalid sources and bounded timeout, plus the backlog/repeated-completion scenario. No new credential or game behaviour change.
Release builds run only commits on main (October 18, 2026)#
CodeQL flagged
release.yml(actions/cache-poisoning/poisonable-step): the release jobs check out the commit to build and run its scripts (the native library build, the publish), and a dispatch could name any ref.The configure job now refuses any commit that is not on main, for every trigger (a dispatch from another branch, a requested commit, a tag on an unmerged commit), before any later job runs code from it. Before, only a requested commit was checked.
The checkouts of the build jobs no longer keep the token in the git configuration (
persist-credentials: false); nothing in them pushes with git (the release is created throughgh apiwith the job's token).
Enhanced HUD/icons removed (October 18, 2026)#
The "HUD and icons" choice and the redrawn interface art behind it are gone, on the project owner's decision (October 18, 2026): PR #395 fixes the WCT planar-row decoder, so the original icons now decode crisply and the 55 AI-redrawn buttons are no longer needed. Removed: content/hero-art, its tools (prompts, fit.py, keyfill.py and the predecoder), PredecodedUiArt and its tests, the EnhancedInterface setting and options row (with its nine-language strings), TexturePackSwitch's interface switch, the browser build's predecoded staging target, the Dockerfile copies, the --texture-pack-hero-dir builder option (HeroTextures in pack.json) and the hero-art folder link in the TPI smoke script. Old settings files that still carry EnhancedInterface load as before; the key is ignored and not written back. Interface textures now come from the original game, or from the selected world pack when it has them. The texture-pack extension itself ([EXT:texture-pack], locally built packs) is unchanged. Docs (TEXTURE-PACKS, UI, WEB, BROWSER-PERFORMANCE, README) updated; earlier measurements keep their numbers with a note that the art was later removed.
Research workload knob: persistent raw state and capacity presentation (October 18, 2026)#
Implemented the source-backed portion of UI-064 in the research window:
Keep raw slider value 0..1023 separately from the rounded workload. Ordinary frames, draw, effort and target changes do not discard sub-workload steps. Opening and changed researcher ability reproject through the normal value-change path; keyboard workload adjustment explicitly synchronizes the raw value as an existing extension.
A qualified completed track click changes one raw unit, using the saved press point and current ball bottom. It does not page on button-down or turn into a grab during hold. The narrower track and protruding ball retain distinct hit eligibility. A small opt-in captured-click path preserves the original recipient without changing ordinary widgets' click routing or OpenTPW's existing shared time/movement qualification.
Every drag uses the immutable press-time rectangle and pointer, including overshoot followed by reversal. A stationary held frame does not undo a staffing refresh. Release normalizes from raw value; removal, lost capture, read-only/disabled transitions and reopening cancel the old interaction.
Drive the existing cameo through its nine workload states and draw the staffing-capacity gauge with the original bottom-up split and cropped UVs. Its left texture half is filled and right half empty. Geometry/UV tests inspect the actual draw vertices; workload-only changes leave the capacity gauge unchanged.
The evidence is static PE disassembly, decoded research control-table metadata and private inspection of the original gauge texture orientation. No original executable was run, and no original asset bytes, images or private hashes are included. Generic model rendering, filtering and global double-click behavior are unchanged.
UI-064 remains open for raw-zero startup geometry: a constructor-time unchanged SetPos can retain the table's ball top399, but later native initialization is not fully traced. The existing safe host normalization to bottom634 is retained. This bounded implementation does not claim complete original-runtime parity.
Validation: whitespace, fidelity-register and progress checks passed, along with all 108 top-level Python tests (after generating the ignored fidelity document). The evidence runner completed successfully: 1,537 tests, 595 skips; the review lane reports seven expected failures, not unexpected regressions. The focused C# tests cover real screen input, raw persistence, page/drag/cancel/reopen/ability-change flows, read-only guards, hum changes, cameo boundaries and gauge vertices/UVs. They were authored but could not be executed locally because the .NET SDK is unavailable. Independent source review and exact-head CI are required before publishing this slice as verified; the unresolved startup edge prevents retiring UI-064 as a whole.
Restart snapshot completion work (October 18, 2026)#
Follow-up to the reviewed sliced restart snapshot: desktop completion now transfers only the completed immutable JSON buffer to a worker for its copy, SHA256 and atomic marker/snapshot writes. Frame updates poll completion; the existing lifecycle drain waits and observes the original exception, preventing a previous park's worker from outliving its replacement. The browser keeps all work on its single thread but separates serialization from bounded 64 KiB copy/hash steps. Its final in-memory writes remain inline. The initial pending marker still uses the existing durable atomic write; the suggestion to weaken that barrier was not adopted without crash-safety evidence.
Tests cover worker completion/failure/draining, exact chunked bytes and a real synthetic UpgradeCatalogueDefaultsTests world whose simulation advances between zero-budget restart pumps while its saved entry bytes remain unchanged. Failure logs now distinguish Instant Action's fresh-start fallback from other modes' load-failed response. PARK-SAVES and WEB document the marker and transactional IndexedDB boundary. No RideVM/Animation code or original game media is changed, and no new speedup is claimed. Candidate runtime measurements remain separate from these scheduling/correctness tests.
The ride window shows why a ride stays closed, and a coaster circuit closes only when it can complete (October 18, 2026)#
A coaster could be closed through a closing link that fails the validator and then never opened: a player's Hades had a closed circuit whose last pylon stood one cell from the station and was marked invalid, so the completion click and every new pylon were refused, the reopening guard refused the door, and nothing said why. The closing click on the station end now tests the closing link and the pylons first, for a fresh circuit as already for one the demolish button cut open ([EXT:coaster-completion-click]); the hovered closing target shows the refusal before the click. A refused click leaves the circuit open and the HUD says why, in all eleven languages: the track can't be completed from the last pylon, or the pylons marked red must move. A closed circuit whose closing link fails (closed by an earlier build, or a pylon moved after the closing) opens again when the track tool is entered ([EXT:coaster-failing-closure-opens]), so it is built on from its last pylon. The reopening guard's coaster test, and the reopening after a repair, take the guests' predicate (complete, not crossing itself, not in the tool; tp.exe 0x441970) instead of the trains' state.
The ride, shop and sideshow windows show the original's status banner, the chev control over the preview (tp.exe 0x485f60 with mode 2, 0x4ad720): CONDEMNED, TRACK INCOMPLETE, TRACK INVALID, the upgrade, repair and cleaning statuses by how far the mechanic or handyman has come (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, QUEUE NOT CONNECTED and CLOSED, the first that applies, in UITEXT 364-389, wrapped into the control, in the colours of table 0x74fb50 on the text only (0x65c5d5). The ride window's refresh (0x4ad4e0) greys the door for the two track statuses and while a closed ride's reopening guard refuses, and hides the door, queue, track, call, move, Ride it! and upgrade buttons of a condemned ride; the shop and sideshow windows show the banner and do neither. EXIT NOT CONNECTED is not shown yet (APPROX:ECON-049: OpenTPW's entrance and exit cells keep no link byte for the exit test 0x4de5a0). docs/UI.md and docs/COASTERS.md describe both.
Tests: ObjectWindowStatusTests (the ride window's banner, colour and door through a close and a mechanic call; a world mechanic from the call to the work; a condemned ride's hidden buttons and a condemned shop's door; the shop window's banner and its door during a call), RideStateRulesTests.TheStatusBannerTakesTheFirstStatusThatApplies, and CoasterTests (ClosingThenCompletingAppendsTheStationEndNodes with a refused closing, ACircuitClosedThroughAFailingLinkOpensAgainForTheTool, TheClosingTargetShowsWhatItsClickAnswers).
The waves carry the lazy river's floaters too (October 18, 2026)#
The push of a wave machine's waves (PoolWaves.Push, which already carries the free swimmers) now also acts on the floaters of a lazy river in the same pool. After its float step a floater takes the push of the water's currents (GuestSimulation.PoolCurrent, the sum of the registered IPoolCurrents, which the free swimmers' step now uses too) projected on its cell's flow axis (RiverActivity.WavePush), and only into its own cell or that cell's next or previous cell of the same ring, in free water and 0.7 cell from the other bodies (PoolSwimming.Drift). So a floater keeps to the middle line of its lane, never jumps to another lane of a small ring and never breaks its float. The waves run along +x +y: on a lane that runs with them a crest carries the floaters forward, on one that runs against them it holds them back (at full swell of height 3 the push, about 0.085 cell a turn, is a little more than the current's 0.071, so for a few turns they drift back). A float still ends after its drawn turns and is paid. [EXT:pools-waves] [EXT:pools-river].
Integers only, no draw and no new field. A river without waves, or with waves that are off, floats exactly as before (every other pin is unchanged); the fixed water-attractions run, whose channel is a river in a pool with a wave machine, moves DeterminismTests.PoolsAttractionsFixedRunHash from 0xD9F94E889BDAB453 to 0x2D7EE079E5A9B09F (90 swims; jets 12, river 12, rope swing 4, spa 6 starts). New tests: the push's projection on the lane for each side of a ring and its refusal outside the cell's ring neighbours; floaters in a river with waves stay in a river cell's free water, as close to the middle line as in a calm river, and their floats still end; waves that are off change no position or state of anyone; a save while the waves carry a floater restores and continues identically.
Track edit tool, track demolition replays and coaster precision (October 18, 2026)#
The track edit tool of a ride with a closed circuit is built from tp.exe's click handler 0x524960: the first click picks a tile, the second picks another, and the track between them is cut (0x52B400, 0x53B280, 0x53BC60) with the station repaired afterwards. A cut that leaves the circuit open continues as the line tool from the open end, a valid walk restarts the pieces, and an invalid one stops them (TrackWalkCause.Edit, also used after an add-on is placed). The hover marks the tiles the cut would take. TRACK-014 is retired because its readers, the edit sub-modes, now exist; TRACK-018 is narrowed to Backspace's replay and the ride's reopening.
Track demolition now replays the two chains of tiles from the station as the original does, so a branch or detached piece stays in the park and refunds nothing, and the refund follows each tile's pass counter (TRACK-007 narrowed).
The pylon cost, the suspended swing, its cosine index and the loop knot factor now round to a single at every operation, because the original thread runs its x87 at 24 bits (COAST-032 narrowed). A coaster's cost can differ by a rounding step from before, but no corpus save holds a coaster to compare. COAST-011 is retired: the option table has no reader in tp.exe.
A cache-hit texture copy now keeps its path, so releasing it no longer disposes the shared native texture; this fixed a Metal crash after drawing blueprint markers. TRACK-005 and TRACK-008 are narrowed with the line ops and the add-on walk read.
Coasters and track building, fidelity round 8: winch marks, self-intersection marks, build-time crossings, PC table rounding and the area cell test (October 18, 2026)#
Round 8 package 3 read the open COAST and TRACK items in tp.exe via REA; COAST-029 is retired and nine more are narrowed, five of them with behaviour changes:
Winch marks (COAST-029, retired): the rebuild
0x43eb70runs the knot pass0x430ed0, then0x432b50(clears node flag0x800on every node without0x1000), the sampler0x440c10and the rating pass0x43c450(sets it again on a floor speed). The creation parameter0x20of S0 and S1 gives them0x1800, so the pair keeps its mark:CoasterNodeFlags.WinchKept, saved and restored (a save from before it gets the pair marked on load).Self-intersection marks and build-time crossings (COAST-004, COAST-035): the pass
0x439ab0re-tests only nodes marked0x200000; a node that drops out of an overflowed holder's list re-marks the holder (0x43ad50), so the pass now repeats until no mark is left, and the cut-end skip0x10000is built. The rebuild samples and tests every track it draws, so the build cursor's link and the links of an unfinished chain, and a pylon being dragged, show the crossing marker live (CoasterRide.ChainCrossings).0x200000is the pass's mark and the save writer's bit (0x439b6b,0x4376bb): COAST-035's untraced reader is found.PC table rounding (COAST-014): the sampler stores the sample angles through
0x43e590and the loop knot factor0x432430looks the sine table up with the index rounded to the nearest (fistp), as the knot pass already did; the Mac truncation is gone from both. COAST-014 keeps the x87 arithmetic only.The placement area's cell test (COAST-028):
0x5243a6with the predicates0x535db0,0x536310..0x536450isLevel.IsCoasterAreaCell(cell flag0x40, track tiles and fence posts, cell types 3, 4, 7, 9, 10 and0x1e, a path with flag0x20); the tilt drag turns by the park camera's original yaw (0x443371).Read, not built: COAST-011 (the options table accessor
0x402bf0is a virtual method of the class with vtable0x6fd630, so no static reader exists), COAST-028 (the pick0x443ee0maps a model handle to the node; the panel's builder0x498790and the face texture slot0x763b5corange.tga), COAST-032 (the control word is still unknown), COAST-026 (the run table builder0x4402d0), COAST-034 (0x43be10starts clip 5), TRACK-004 (the clear form0x53B280), TRACK-010 and TRACK-032 (the loader0x543560reads the section records raw).
Guests, fidelity round 8: sideshow prizes, cell lists, booth timing (October 18, 2026)#
Package 4 of fidelity round 8 reads the open guest, queue, walk, arrival, tour, head and path rows against tp.exe and builds what the instructions show.
Built: a won sideshow adds its prize (the cost of goods, 0x4E1A10) to the guest's purse before the outcome and ends with happiness += trunc(medium step x log2(prize / price)) plus one world draw (0x4FE231, 0x4FE802..0x4FE8D9; a free play or a prize of 0 gives the x87's indefinite integer, so the happiness goes to 0, as __ftol does). The per-cell thing lists are persistent and head-inserted (0x4D91F0) instead of being rebuilt in guest order every park turn; separation (0x5102F0) and the balloon prank walk each list newest first, and each guest saves the entry number that orders its list (the optional CellSerial; an older save starts the lists in guest order). The bin search (0x500DC0) makes a route request for every candidate closer than the best, so a closer bin that fails its route leaves the walk stuck and the guest drops its litter on the cell, and a route request of a stranded guest refuses at once (0x4FA530, 0x4FA770). The booth's first verdict is the guest's next update after the walk's arrival (0x4FF730, 0x4FF9D0), not a second later. A path laid over a queue cell edits the queue of the ride that owns it (0x5346D0 at 0x534858), which retires WALK-007. A show or performer turn writes the original's 11-bit heading angle (the table-driven arctangent at 0x6E7074, table entry floor(atan(i / 256) x 1024 / pi)). The balloons are placed in the order of the live thing list (0x518F90). A staff member can be put down on a ride's queue-end entrance cell (type 9); the footprint cells are refused by the types the placement writes, not by an object list (0x46CC40, 0x528A70).
Retired: WALK-007 and TOUR-008 (no shadow under the tour cars: the batcher 0x581DB0 only sorts parts, the shadow model is skipped by its loader 0x489060). Narrowed with new evidence: GUEST-002 (the queue count equals 0x4DDF50 because every listed guest is in a queue state), GUEST-005, GUEST-007, GUEST-010, GUEST-011 (shops carry the openable flag: Info.IsChoosable is 1 in the four Shops.sam), GUEST-013, GUEST-014 (the per-role member constructors are called only by the place click), GUEST-017, WALK-003, WALK-005 (the test at 0x4D89C3 reads a track record, not an object), ARRIVAL-006, QUEUE-023 and GATE-006.
Pins moved (docs/DETERMINISM.md): the fixed run 0x2A8418A90725699A to 0x5D8385D13CC3BB9B, and the pool, smarter-guests, script-mod and scenario pins with it. The guest report (--guest-report --guest-scale extended) shows no metric beyond three standard errors apart from a better guest-time happiness in the Jungle and a 1.6-turn longer median queue wait in the Space park; the stuck-guest counts are unchanged.
Tests: the sideshow tail and prize, the log of zero and infinity, the bin walk with a failing closer candidate, the stranded route refusal, the list order across turns and saves, the prank victim, the heading angle, the booth's first verdict, the paved queue end and the staff drop on a ride's entrance. Several scenario tests that asked a statistical question of one seed now run longer or pool their seeds.
Saves and economy: script run state, research export, new-park things (October 18, 2026)#
Fidelity round 8, package 5. The original-format writer grew by the research lab and the park's fixed things, the RSSE import by the scripts' run state, and five open IDs moved.
Script run state (SAVE-010, DET-013): the Clock block's first word is the game clock the saved scripts count from. The Fantasy corpus seaplane is saved inside a
WAITANIMwith its deadline (+0xA0) 4,873 ms past the clock (185,660,000 against 185,664,873);0x553783/0x553828storeclock + waitthere and rewind the program counter,0x55641Bstores+0xC4the same way. An imported original park now starts its script world's clock at that word and every matched script resumes at its saved program counter with stack, heap, variables, limbo table, result register, TURBO/DIPMUSIC/reverb/speed words, walk float, WAIT4ANIM deadline and timer (RideVM.ImportSavedRunState,RideScriptWorld.ImportClock). A script with a child record, or whose record does not fit this install's script, keeps its fresh state and is reported; a script saved inside aTRIGWAITANIMtriggers again (its animation is not restored). The pinned determinism hash is unchanged (imports only).Research export (ECON-017 retired):
OriginalResearchExportwrites the lab (256 projects, 5 groups, tail) and the object controls (+0x10,+0x14) from the park's research. The fill0x5031A0and0x504580define the order; the fourrestart.INTSthe original wrote hold exactly OpenTPW's new-park table for their theme (48, 48, 44 and 46 projects), so the table is built, not carried, and only the shipped Easymode save lists a subset. The group output formula(effort x 100 / sum) x work load / 100and the control level rule (levels without a research cost count as finished) were read at0x5031A0,0x503330and0x504580.New-park things:
SaveNewParkThingsbuilds the park analyser (73,536 bytes), the advisor controller, the tag system, the UI message receiver and both HQs from the constructors and serializers; they equal the four restart saves byte for byte.Staff pool (SAVE-004 retired):
0x5084F0never expires a candidate whose on-pointer byte is set and0x5083B0clears the flag when a placement tool ends (and removes the candidate when the placement was made): a flagged candidate of a save now stays without expiring until the next tool exit (ParkStaff.StaleOnPointerId).Customers row (ECON-057 retired): the shop and sideshow windows format UITEXT record
0x1CC("{0x19} of {0x1A}",0x4B0423,0x4B18E6) with the customers and the customers plus walk-aways, matched by parameter type as the formatter0x6ACD60does.Left open, narrowed: see the PR description for each remaining ID; EXT candidates awaiting the user are listed there too.
How tp.exe puts UI text on screen, read further (October 18, 2026)#
Fidelity round 8 read more of the path from a text control to the screen. No behaviour changes, no pinned hash change; the open approximations UI-006, UI-007, UI-013 and UI-037 now name exactly what is still unknown.
The text control is a sprite object. The sprite record at control +0x54 holds the colour at record +0x24 (the control's +0x78, the value
0x65c5d5stores). The sprite draw0x58a010submits the control's quads as pre-transformed vertices with that colour as the only diffuse colour, so there is no shadow pass or offset anywhere on the way (UI-007).The text bitmap is not 5-5-5 by default. The texture format index is 4-4-4-4 or 8-8-8-8 by one option bit; the 32-bit blitter keeps the destination's alpha byte just like the 5-5-5 one. What turns grey coverage with alpha 0 into soft edges is the quads' blend and texture-stage state, which is the remaining unknown (UI-007, UI-037).
The park pause menu's online variant has top 0 and gap 0 instead of 5 while a net-session field is non-zero; an offline park matches OpenTPW's top 10 and gap 5 (UI-013).
UI-094, UI-107, UI-930, UI-003, UI-004, UI-008 and UI-018 were triaged and keep their texts: their open parts need runtime state, captures or code that did not yield statically within the time spent.
UI window fidelity round 8 (October 18, 2026)#
The type-9 gauge bars of the buy, ride, shop, sideshow, hire, visitor and employee windows now draw the original art instead of video-read colours: ridestatbar.wct (top half the bar cut off at value / 1024, bottom half the track; 0x477ff0, 0x478400) and, for the happiness bars (the visitor windows, the employee window's 0x513 and the local-happiness rows of the shop and sideshow windows; the string 0x7508c0 is handed to the gauge builder at 0x493bc5, 0x4b7205, 0x4b56f5, 0x4b018c, 0x4b1681), happygrad.wct (blue through orange to yellow). UI-046 is retired.
The hire window's skill gauge is the candidate's grade byte x 1024 / 5 (0x49b8e2), not (grade + 1) / 5: the video's guard candidates ($60, $75, $105 are the Easy_Standard grades 1, 2, 3 at multiplier 15) show a fifth for the cheapest, which is grade 1. UI-081 is retired. The All Attractions list's bars use the same (value << 10) / 100 scale as the object windows (0x4955e0); UI-905 is retired.
The buy list's owned column draws the model i_boxtick (frame 0 the box, 1 the tick) instead of strokes; the star state (frame 2, the three most recent items of a category, ring read by 0x4caa70) is not drawn (UI-050 narrowed). The finance graph draws one-pixel lines and, in the 1 and 3 year views only, a hollow 3 x 3 pixel mark at each sample end (0x47fe90, 0x480460; UI-060 narrowed to the pixel size and the grid). UI-064 is corrected (a track press moves the slider by its step toward the pointer, 0x66b8aa), UI-092's patrol help is already posted, UI-907 is narrowed to the text control's alignment byte (+0xd8).
The pinned run hash and saves are unchanged. EXT candidates awaiting a decision: UI-041 (the Load Park game type, a consequence of [EXT:no-player-profiles] and [EXT:lobby-load]), UI-051 (a player-wide ticket ledger), UI-096 (pausing on application deactivation: the original pauses with 0x4092a0 at 0x46b74c).
Bounce rides draw their riders as bodies on the ride (October 18, 2026)#
BOUNCESETNODE (
0x5555D9) and BOUNCESETBASE (0x555618) store the node base (script +0x70, 1 at creation) and the base height (+0x6E) on the visitor bridge instead of reaching the unimplemented effect hook. The base height keeps a literal too (sign-extended from 16 bits); the earlier reading that a literal is ignored was wrong. Both values are saved with the ride only when they differ from the creation values and stay out of the canonical hash.The reader is the per-frame script pass
0x557AB0: each occupied BOUNCE slot's rider is the guest's own kid sprite on the node base + slot (class0x800), in the run animation, at the larger of the node's height and(visitor mod 7 + 12) x sin + ride height + base height(a half-turn sine hump once per speed-scaled second, 4096-entry table0x4708D0), turning one heading step per half second; on a broken ride (script variable 7) the rider stands on its node facing the visitor mod 7.Corpus finding: only Jelly Bounce sets the node base (3); Bouncy (jungle and space) and Brain Buster keep the creation value 1. All four set the base height once (8, 6, 16, 12) before their first BOUNCE. Jelly's slots 7 to 9 name nodes its model lacks, so those riders are skipped, as in the original.
GuestRendererdraws a rider of a bounce ride from the pose (BounceRiders,FlatRideBounceRiders) instead of skipping the Using guest. Approximated: the run template's frame interval (HEADS-007, 100 ms guessed) and the slot's node taken from the current base (HEADS-008).Tests (
BounceRiderTests): operand storage and snapshot, the phase and height rule with hand-computed values, the heading rule, and the shipped scripts and models (data tests).
Ride scripts keep, move and end their sounds (October 18, 2026)#
The sound records of the ride scripts' ADDOBJ (types 3-9 and the EXT form: 334 of the 644 shipped uses, in 60 scripts) now work as tp.exe's do. The sound is submitted like an EVENT of that type and kept under the record's slot; a repeating event runs as a sentence, a one-shot as a sound that starts when its sample is decoded. KILLOBJ stops the sounds of its slot at once, FADEOBJ (113 uses) does the same (the original's fade call is only taken while the sound library's SoundQuality bit 0x400 is set; further static inspection corrects the earlier fixed-60-percent interpretation to repeated integer decay to zero, with timing and sentence subtype mapping still gated by APPROX:AUDIO-040), and SETOBJPARAM (the bus engine's parameter 20) gives the sound its parameter. Keyed records follow their model node every eighth scheduler pass (the pass whose number matches the script's id, 0x551A1C), and a script's end or its object's removal ends the records it holds. The records are per script, as in the original, and FADEOBJ also ends the particle records of its slot (it skipped them before).
Sounds are presentation: no record is in a hash or in a park save. The original's save does hold the records, but its loader starts no sound, so a resumed park stays silent until the script starts its sounds again, and a looping ambient no longer blocks a save. The unimplemented-effect counter no longer counts effects that were served (STARTSCREAM, STOPSCREAM, SINGLESCREAM, EVENT, ADDOBJ 1-2, KILLOBJ, REPAIREFFECT): what is still counted is the four light opcodes, the bounce riders' node and base words, and ADDOBJ/EVENT type 10.
Saving no longer fails with a missing economy binding (October 18, 2026)#
A park refused to save with "placed attraction N is missing its economy binding". Building bought the object, put it in the park, ran the placement handlers (guest registration, pool sites, the HUD's tool follow-up), and only then bound it to its economy record, so anything that threw in between left an object standing, paid for, without its binding.
Level.PlaceObjectnow takes the object the moment the park registers it and binds it even when a handler, the build effect or the placement cue throws (the error still surfaces, and a warning is logged).A park that already lost a binding this way, such as a browser session in progress, saves again: before a save is captured, any placed object the economy knows without a record adopts the unowned record of its own purchase, or gets an uncharged one when none is left, and the log says so. A save of a park without such objects is byte-for-byte what it was, so no determinism pin moves.
Select click plays cat_ui 0xBD (October 18, 2026)#
A button plays cat_ui 0xBD instead of 0x1F when the parent that receives message 0x100 has style bit 0x10. The hook is 0x485780 and the choice is at 0x4857cb. The button class 0x668f9c is the only sender of 0x100 for a mouse release over a button: it posts 0x100 to its parent ([+0x60]) at 0x6691eb through the queue 0x658ccc. The pump 0x658e42 calls the hook at 0x658eb2 (the dispatcher 0x658d9f does too). Window procedures also send 0x100 to their own window (0x48d83b, 0x49973e, 0x49ec53, 0x4a6df5 (via the dispatcher 0x658d9f), 0x4b640a, 0x4b9f06, 0x4bb020 and 0x4bfc29; ids -1, -2 and 0xe059, some on 0x802 or 0x804), and the hook clicks for those too by that window's own style; whether OpenTPW's keyboard paths match those clicks is not read.
Those parents are the vertical list scroll bars (type 3, style 0x10: their up and down arrows), the sortable lists (type 7, styles 0x91 and 0x291: their column headers) and the radio groups (type 8, style 0x11: their toggle tabs). Every other button plays 0x1F. A held arrow waits 500 ms and then steps every 125 ms (ctor 0x6688b3, timer 0x668dd9). The release 0x668eff plays nothing once repeating has started. A quick click plays 0xBD and scrolls one step.
AUDIO-004 is retired. A list row click posts 0x400–0x406, not 0x100, so the hook may play nothing for it; UiScrollList still plays 0x1F. That question is AUDIO-041 and is left open, together with a still click on a slider thumb (a plain style-1 button under the style-0x10 slider, which may play 0xBD).
After review, the wording was corrected: the button class is the only sender of 0x100 for a mouse release over a button (window procedures also send 0x100 to themselves), the thumb claim is narrowed to dragging, the type 7 styles are 0x91 and 0x291, and the 500/125 ms are stored for every button but only style bit 0x20 repeats.
Restart snapshot serialization across frames (October 18, 2026)#
The restart snapshot still captures and validates the live park at its existing start/load boundary, on the game thread. Its detached JSON is now serialized on subsequent updates using the existing SlicedJsonSerializer and a 2 ms soft budget. A single serializer step, capture, asset hashing, final byte copy and atomic write can exceed that budget; this is not a hard frame-time guarantee. Restart, park replacement and orderly shutdown drain an unfinished job synchronously, so immediate Restart uses the entry state and an old job cannot write after a replacement.
The previous restart JSON remains in place while a .pending.json marker blocks it from being mistaken for the new park. Once serialization finishes, the marker contains the intended JSON's SHA256 before the atomic replacement. A crash before replacement leaves the old file retained but unavailable through Restart; a crash after replacement and before marker cleanup can recover the new file by matching its digest. Files without a marker retain their existing compatibility. A capture failure still removes a stale restart file, as before. Browser storage remains the page's existing transactional IndexedDB mirror; this does not make an unflushed browser frame durable. No original game files are changed.
Separate restart-assets, restart-capture, restart-serialize-slice and restart-write profile sections distinguish the remaining costs. This addresses the synchronous serialization boundary, not the entire reported restart-snapshot time. A same-environment candidate measurement is still required before reporting any speedup. The existing historical M5 measurements and this cloud's blocked browser attempt are not candidate results.
Synthetic tests cover exact synchronous/sliced byte equivalence, capture-once behavior, immediate restart, replacement/drain idempotence, interrupted and malformed markers, failure before atomic replacement and recovery after replacement before cleanup. C# execution requires CI on this machine (no .NET SDK); local fidelity/progress checks and all seven browser-harness Node tests pass.
Smarter guests, phase 6b: litter bins (October 18, 2026)#
What changed.
opentpw.smarter-guestsgoes from 1.5.0 to 1.6.0 with one rule (SMARTER-GUESTS.md): a guest whose litter meter is full looks eight cells around it for a litter bin instead of the original's three (SmarterBinCarry.SearchRadius; the host keeps the bin search, the route, the walk, the throw and the drop). A guest goes to a bin beyond the original's 3 cells only when its route there is at most 16 cells (twice the radius, skipped before the route request). The extension stays hidden (PlayerSelectablefalse): the CPU gate (1.10 per guest-turn) could not be re-confirmed because the machine never became quiet in an hour; the release is a one-line flip once it is.Measured honestly. Where a guest fills its litter meter and the bins stand more than three cells from where it litters (the very dirty scenario with four bins on the street, 24 seeds): litter on the paths -27 percent (-6.9 SE; -11.7 SE over 64 seeds), the littered share of guest time -31 percent (-7.5 SE), steps onto litter per visit -34 percent (-6.2 SE), with happiness, revenue, admissions and guests in the park within 1 SE; stuck guests +1.7 SE at 24 seeds, +2.3 at 64 and +1.0 at 200 (3.76 to 3.99), investigated by logging where and when guests become stuck (far street end in both versions, 3 of 34 within 150 turns of a bin throw): most likely seed noise. No effect in the plain, busy and dirty scenarios without bins, with bins at the shops, or in the four level parks (every metric identical; their litter is vomit and their guests never fill the meter).
Litter-aware routes were built, measured and not kept. The original's route search is a line tracer, not a weighted search, so the prototype refined its result with a bounded detour search over the path cells (commit
61cfa902). On the one-cell streets of every scenario and level park it found no detour; on a three-cell street it lowered steps onto litter by 8 to 12 percent (-0.9 and -2.5 SE) and nothing else.Jungle happiness (phase 6). The 0.8-point drop reproduces; with the complaints off it is -0.92 (t = -4.0), so the complaints are not the cause; six other arrival timers give -0.3 (t = -1.4), eleven together -0.53 (t = -3.4): real but smaller, from the two goal rules together, mechanism unexplained.
State and saves. None: nothing added to the
SmarterGuestssection; a 1.5.0 park is refused with the usual version message. No random draw of its own: a guest that now carries its litter to a bin does not take the drop's draw.Measurement. New passive metrics
path.litterDropped.perAdmissionandpath.litterBinned.perAdmission(IGuestObserver.LitterDropped,LitterBinned), scenario variants--guest-bins,--guest-bins-shops(its third bin needs--guest-food),--guest-level-bins N(bin ids by cell) and the baseline--guest-rules phase6;--guest-costtakes the scenario flags; the report JSON recordsbins,binsAtShops,levelBinSpacingandextensionVersions, and--guest-comparenames differing variants.Pins. No existing pin moved; new
ScenarioBinsSmarterFixedRunHash0xF43AEA85CC6DB665 andScenarioBinsPhase6FixedRunHash0x8E13F761512B0043. Explained in DETERMINISM.md.Interface (additive).
IGuestDecisions.UsesBinCarry(default false, forwarded byScriptGuestDecisions) andBinSearchRadius(default the original's 3) andBinMaxRouteCells(default no bound; the host accepts 0 toGuestSimulation.MaxBinRadius= 16 and throws naming the policy otherwise);SmarterRuleSet.Bins,Phase6.
Smarter guests, phase 6: clean and quiet paths (October 18, 2026)#
What changed.
opentpw.smarter-guestsgoes from 1.4.0 to 1.5.0 with the two rules of phase 6 (SMARTER-GUESTS.md): (1) the wander goal moves to the cheapest of the cells of the original's own random walk, the linked cells beside its goal and the goal itself, when that is at least 2 cheaper (litter around a candidate 5 per unit, 2 for vomit and stinkbombs; a guest in the cell 2, a guest in the eight cells around it 1); (2) a guest standing in litter (2 units around it, the original's "Too messy" share over nine cells) or in a crowd (5 guests, one more than a queue cell holds) complains with the original's "Too messy" or "Dissatisfied" thought at a cost of 0.1 happiness, at most once per visit (a persisted complaint time per guest).No new draws. The host runs the original wander search unchanged, with the same draws in the same order, and only copies the cells the walk stood on; the policy picks among candidates (never the guest's own cell, path cells only) and draws nothing.
Result. The share of guest time spent in crowds falls by about 20 percent in the busy and dirty litter scenarios (0.062 to 0.048, -6.6 SE; 0.060 to 0.049, -5.4 SE; 24 seeds) and by 10 to 35 percent in all four level parks (t -2.2 to -3.7), with happiness, revenue, admissions and stuck guests unchanged within the noise in the scenarios; the one real cost is Jungle's guest-time happiness, 0.8 points lower (t -4.8). A review found and fixed a bug: a moved goal could be the guest's own cell, and the asking guest counted itself in the crowd; everything is measured after the fix. It does not reduce litter exposure: where a guest meets litter is set by its routes, not by where its idle wander ends. The two red flags of the first version (Fantasy stuck guests and admissions, busy-scenario revenue) were investigated: no moved goal left a guest stuck, the Fantasy admissions are chaotic (moving only the arrival timer of the rule-off park gives 84 to 126), and the revenue movement did not reproduce after main's per-cell list change.
State and saves.
Complaintsin theSmarterGuestssection (birth id and park turn, left out while empty, validated); a 1.4.0 park is refused with the usual version message.Measurement.
ParkScenariogets a litter variant (--guest-litter, a handyman proxy,--guest-handyman-turns,--guest-litter-effect,--guest-scenario-arrivals), ten passive path metrics, and--guest-ruleslearnsphase5,litter,crowdingandpaths.Cost, and the gate.
--guest-report --guest-costmeasures the guests' update per guest-turn. The gate is stated per guest-turn (a guest in the park for one park turn) and is met: 1.057 of the original's in the default scenario and 1.068 with a food shop (1.09 and 1.12 before an optimisation that changed no behaviour: queued guests are not asked about patience before the give-up test can fire, the queue hook's view no longer scans every guest, the candidate view is built once). In total the cost is 1.2 (1.4 with a food shop) because the extension keeps 18 (44) percent more guests in the park.Still hidden. The extension stays
PlayerSelectablefalse until phase 6 shows a measurable positive effect on the whole rule set's outcomes; its rewritten name and description exist in the nine languages for that day.Pins. Main's per-cell list change (PR #401) is merged in; every off-path pin and the script-mod pins are main's. Three on-path pins moved because the path rules act in them (
SmarterGuestsFixedRunHash, the scenario and the food-shop scenario with the extension); the 1.4.0 scenario pin still holds forSmarterRuleSet.Phase5. Explained in DETERMINISM.md.Interface. Additive:
IGuestDecisions.UsesPathComfort,ChoosePathandQueuePatienceQuietTurns(forwarded byScriptGuestDecisions),GuestView.ComplaintTurn,PathCellView,WanderPathView,PathDecision,PathComplaint, aGuestWander.Pickoverload with a trail,IGuestObserver.PathComplainedandWanderGoalMoved. Renamed:SmarterPlanningRulesis nowSmarterRuleSet(LitterandCrowdingadded,Phase5andPathsgroups), soSmarterGuestDecisions( SmarterRuleSet ),GuestReportOptions.PlanningRules(nowRules) and the report JSON keyplanningRules(nowrules;--guest-comparestill reads the old key).
Smarter guests, phase 5: planning needs (October 18, 2026)#
What changed.
opentpw.smarter-guestsgoes from 1.3.0 to 1.4.0 with the three rules of phase 5 (SMARTER-GUESTS.md): (1) a shop or toilet whose need will cross its level (hunger or thirst byte 100, toilet byte above 80) before the guest is done with the quickest ride it could take (expected wait plus cycle, capped at 180 turns) is scored as if the need had already grown, by the needs block's own growth; (2) a service in the minor decision's window gets each need it serves read one step higher (10 points; 5 for a relief object); (3) within 160 turns of a meal, a ride that would add at least 25 illness to this guest is brought halfway to the choice floor. The extension stays hidden (PlayerSelectablefalse) until phase 6.Honest result: no measurable effect. The needs are slow (only a guest whose id is a multiple of 4 ever grows), so the rules act rarely: in the default scenario one seed of eight differs from 1.3.0; with a food shop (24 seeds) planning and the meal rule change the run but no needs metric moves beyond 0.9 standard errors (vomits per admission 0.357 to 0.358, need thoughts 1.234 to 1.164, unmet needs at departure 0.078 to 0.077, happiness and revenue the same); the detour step changes no decision in 24 seeds because the original's minor decision already retargets to any open attraction in its window. Kept small and cheap; the page says what they do not do.
State and saves.
Mealsin theSmarterGuestssection (birth id and park turn, birth-id order, left out while empty, validated, refused after the park's turn); a 1.3.0 park is refused with the usual version message.Measurement. New passive metrics (vomits, vomits within 160 turns of a meal, need thoughts, departures with an unmet need, mean illness at departure, queue exits for the toilet),
--guest-rules none|all|planning,detour,meal(noneis 1.3.0's behaviour from the same build) and--guest-food(a scenario with a food shop).IGuestObservergains default-implementedVomitedandThought.Cost. Phase 5 adds no measurable CPU (a Stopwatch over 250 in-game days, median of 21 runs: 0.997 of 1.3.0 without a food shop, 1.02 with one, about the two percent of the run-to-run noise); the look at the rides is paid only by a grower near a level.
Pins. Off-path and script-mod pins unchanged;
SmarterGuestsFixedRunHashandScenarioSmarterFixedRunHashunchanged (no rule acts in them, which the page explains); newScenarioFoodSmarterFixedRunHash0x336E044598FE1EBB for the food-shop scenario. Explained in DETERMINISM.md.Interface (additive).
IGuestDecisions.UsesPlanning(default false, forwarded byScriptGuestDecisions);GuestView.MealTurnandPlanTurns256;AttractionView.CycleTurns256andOnTheWay;UsesPlanHorizon;SmarterGuestDecisions( SmarterPlanningRules )(passed explicitly by the report; all three on in the extension, no global switch).
Last readable sounds played, with a software reverb (October 18, 2026)#
The sound pass reads the remaining sounds in tp.exe and plays them. The kart and water track tools click with cat_ui 0xCE at the clicked cell and the coaster tool with the path tool's 0x65; two coaster trains that bump hard crash with the global cat_rides 0xC at the bump; a click on the pause menu's backdrop plays cat_ui 0xC1; and the five scape.omp type 3 records (global ambients that follow the listener inside a rectangle) play at the listener's clamp into their rectangle every frame. cat_ui 0xC5 and 0xC6 turned out to be the advisor presentation's key sounds, which Advisor already plays. The custom-bank EVENT type 10 is read and no shipped script uses it (a census over the 308 scripts). The positioned effects now go through a Freeverb-style reverb driven by the held SndReverb.map preset (the original has no software reverb: it hands the record to the audio device, and QMixer.dll's reverb exports hold no DSP), loaded from the game folder, and only for the ride presets (the default preset 0 stays dry); flat voices, speech and music stay dry. AUDIO-004 and AUDIO-039 are narrowed. AUDIO.md loses its contradictions (the staff cues, the second source of 139, the advisor sounds) and the website's "Hear every sound" line names what is left: the reverb's exact sound, the slap and one list-click variant.
Visitors and staff show their feet: the original's sprite depth pull (October 18, 2026)#
The player noticed that the pools' kids, re-rendered from the original's 45 degree camera, had lost their shoes. The frames hold them; the ground hid them. A camera-facing sprite lies at the depth of its hotspot, and seen from above the ground just in front of the hotspot is nearer the camera, so it covered everything below the hotspot. In the .TPC the soles end 3 to 5 pixels below it, so the original kids lost part of their feet too.
tp.exe pulls these sprites towards the camera. In its sprite pass (0x589B50) a sprite with the pick flag 0x200, which visitors and staff carry, has its clip depth moved to z - 0.2 / (z + 1). Under the original's projection that is 3.5 to 3.9 world units nearer in the park view. OpenTPW now moves the quad of a kid, a costume or a staff member that much along its view rays, so it covers the same pixels nearer the camera (SpriteScale.PulledDepthShare, GuestRenderer.PullTowardsEye). The staff tools' dangling person, balloons, thoughts, litter and riders' heads keep their depth, as they have no pick flag. Among the swimmers only the slots whose hotspot is the feet are pulled, so a swimmer is not drawn over a pool's near wall.
A jungle capture compares the same guests before and after: the shoes of the pools' kids and of the original kids are back, and a researcher's coat is no longer cut flat at the bottom.
A hired or carried staff member dangles from the cursor again (October 18, 2026)#
Hiring a worker or picking one up showed only the glove: the person in hand was invisible. The tools draw script 0x15 of the person's own sprite bank, slot 6 frames 0-3 looping (the tool's enter 0x46c730 creates it with 0x475a10 on the role's sprite type and the candidate's variant), and OpenTPW drew that slot from the .FPC bank, where every staff bank holds it as 2 x 2 pixel placeholders (all but Jungle's explorer, which draws its .TPC). The real animation, the person kicking their legs, is in the .TPC bank, and tp.exe always draws the .TPC: its ESP loader opens the .FPC only when a detail flag is set, and the flag's only writer is passed 0 by both of its calls (TPI's Game.exe is the same). An earlier reading had taken the call's second argument for the flag. The Dutch gameplay video shows it at 81:30: the hired handyman dangles at the carry glove (just below it, where the code puts the person above the pointer; this remains open in GUEST-021).
OpenTPW now fills slot 6 from the .TPC (GuestSpriteAtlas.LoadSets; a set with art of its own keeps it). Every frame it hangs the dangling person at the exact ground point under the pointer, 5 units up, with heading 4 plus the camera's yaw sector, as tp.exe's tool frame and sprite pass do (0x46c480, 0x542010). It follows the pointer between cell centres and over the interface; before, the sprite snapped to the hovered cell's centre and vanished over the HUD. Two known differences are registered. GUEST-021: tp.exe's picker can also land on an object's model, while OpenTPW uses the terrain point. GUEST-022: OpenTPW still draws the .FPC of every other set, so the dangling person is about 17 % smaller than the placed one. Moving everything to the .TPC also needs the hi-res guest sets and the texture packs' guest atlases rebuilt. The hire window already closes with the hire (0x49b9dd), and the pick-up closes the employee window.
Tests: the sprite position follows the pointer frame by frame; the hire leaves no window on the stack; every staff bank's dangling frames have real art. The native smoke moves the pointer over three nearby points for both tools. At each point it requires the sprite at the ground point under the pointer (which differs from every cell centre), a dangling frame larger than a placeholder, and no hire or employee window open. With OPENTPW_STAFF_CAPTURE=1 it saves each probe frame.
The carried staff member turns with the camera (October 18, 2026)#
A follow-up to the staff member dangling at the cursor. The 4 that the staff tools give their sprite is its heading, and tp.exe's sprite pass adds the camera's yaw sector to it (0x542010). When the camera turns, the person turns with it. OpenTPW had used the 4 as a fixed direction; the dangle now follows the same rule as every other sprite.
Other changes:
The
.TPCnow fills only the slot's frames that the chosen bank holds as 2 x 2 placeholders, and only when both banks have the same frames, so a set with art of its own keeps it. The atlas keeps those frames and their palette instead of the whole bank.A frame without a pointer, such as a key on its own, leaves the dangling person where it was.
In the native smoke, each staff probe waits for three injected frames in a row and checks the hovered cell before each click. The coaster checks wait while a staff tool runs.
Avoid repeated cold sound decoding and whole-bank advisor reads (October 18, 2026)#
The pending audio path now shares one decode task per sound category, bank and sample. Before, several placed sounds or sentences asking for the same uncached sample each read and decoded it; the completed PCM cache only prevented later calls. Playback ownership, sample selection, random draws, volume, pitch, delay and voice creation stay with each caller. Stopping one voice does not cancel another's shared PCM. A failed or cancelled task is removed so a later request can retry, and a category forgotten during a decode still cannot repopulate the cache. The cooperative browser path yields before its bank reads and first MPEG batch as well as between subsequent batches; already-cached PCM still returns immediately. This schedules CPU/audio work only, not game or renderer objects on a worker.
The automatic advisor's LoadResponse now uses the existing file-backed SoundBank reader for the selected speech entry instead of allocating and reading the whole bank. This includes both installation and language-overlay banks, for level-local and global responses. It preserves the entry's PCM playback length, lip marks, response selection and synchronous playback/animation start. There is no speculative welcome prewarm or change to the controller's clock or response span.
Synthetic CPU regressions cover shared native and cooperative tasks, the initial scheduler gate, PCM equivalence, cancellation and I/O retry, cache retirement, independently stopped owners, and small speech entry reads from a 32 MiB bank with a sub-1-MiB allocation ceiling. These fixtures need no original game media. The historical 25–54 ms construction steps, roughly 100 ms first park frame and 45 ms advisor start in BROWSER-PERFORMANCE.md are context, not measurements of this change. No new browser/native first-frame or original-data timing result is claimed. Park construction steps and their ordering are unchanged; their renderer-dependent work needs a measured follow-up.
Tour ground and walking bodies (October 18, 2026)#
Two tour approximations narrowed against tp.exe (docs/TOURS.md); neither is retired.
TOUR-005, the ground the cars clear. The cell lookup
0x00452AE0asks the second layer first (0x0053BF30), so a kart or water track tile's own piece height map now answers before the object on the cell (TrackRenderer.PieceGround,Level.TourObjectGround): the tile's instance sits two cells over by the engine rotation (0x00522B90,0x00522D50,0x00466F90), its 2 x 2 map is indexed from that corner and the byte is scaled by 100/255 on the tile height (0x00466D70). Every shipped piece map holds the tile's four cells at all four rotations. The map rebuild0x00451880is taken only for a missing or mis-sized map and every shipped object map has its shape's size, so it never runs for the catalogue. Left: the park fence's hoarding posts (0x005229E0, table0x00763388) and the station tiles. Every tour caller passes no owner out-pointer, so a cell without an instance giving the terrain was already the original's rule.TOUR-011, the walking bodies. The walk update (
0x00557D80) draws every table entry through0x005580A0, so the riders of all 38 shipped rides that run WALKON are now seen: walking on and off along the nodes by the elapsed share (template 1), standing at the fourth node until WALKGET, and on board the actions 3, 5 and 6 stand, make the short gesture or cheer (templates 3, 8 and 5 at node u2, with the heading of the node's orientation); the head actions 1, 2 and 4 draw no body, and the walk float of Zero G swings the body in the running template. WALKON also stores its heading word (atan2(z2 - z1, x2 - x1)as a rounded eighth of a turn,0x005570C2). Presentation only: nothing is saved, hashed or drawn from a random stream. Left: the template frame steppers (every body steps each 100 ms), the terrain-height form (no shipped script uses it) and the per-frame cadence of the state changes.
The pinned determinism hash does not change.
Review follow-up: the walking body's heading is the original's rounded eighth of a turn (
0x005570C2:ftol(0.5 - (6.28318 - (a - 1.570795)) x -1.2732406)), not the truncated angle in radians, and a share above 1000 is clamped to 1000 (0x0055810B), not replaced by 1. The tour ground change of TOUR-005 does change tour simulation over track tiles (docs/DETERMINISM.md); no pin moved.
Guests and staff are drawn from the bank the game draws, seen from above (October 18, 2026)#
Every original sprite set (kids, costumes, staff and entertainers) is now drawn from its .TPC bank, as tp.exe does. Before this change, OpenTPW drew the .FPC bank of the 27 sets that ship one.
The FPC is the same art rendered from a lower camera. The frames are about as wide and taller: a standing handyman is 58 to 62 px tall in the FPC and 49 to 53 in the TPC. That made OpenTPW's people look filmed from the side, where the original's look filmed from above, as the player noticed.
tp.exe's ESP loader opens the FPC only with a sprite-detail flag. The only writer of that flag is passed 0 by both of its calls, and TPI's Game.exe does the same. GUEST-022 is retired, and the staff tools' dangling person needs no special case any more.
A texture pack built before this change holds upscaled atlases of the FPC frames, so the atlases of the sets with ESP byte 0x10C (the kids and the costumes but Space's) now use a .tpc.atlas key. Those guests show unupscaled until the pack is rebuilt. No distributed pack is affected: the only one, Clarity, was removed on October 17.
Jumps, tunnels and the Space Racers Teleport (October 18, 2026)#
The track add-ons of the go-kart and water rides are playable, following tp.exe through the whole cycle (docs/TRACKS.md "Add-ons"):
Upgrade list. The ride window's upgrade button opens the original's list window (layout table 0x755750, rows 0x4AE140) instead of OpenTPW's confirmation box: the ride's researched add-ons with their price, then the next level or, while the ride waits for its upgrade, a cancel row that drops the request and opens the ride again (new
ParkEconomy.TryCancelUpgrade). A list without rows shows the original's message (Instant Action, level 2, nothing researched).Build tool. An add-on row arms the build tool for that ride when the park can pay. The hover snaps to the ride's tiles and turns the add-on along the tile's flow (0x5236B0), the placement stands its track cells on straight, unflagged tiles of the ride (0x528A70), and the click walks the circuit again (0x524B45): the karts or boats leave, the pieces' clips start or stop, and a valid ride opens.
Walk and ends. The sections of add-on tiles number their run and point at the add-on; on a run's second tile the add-on's two open ends show or hide by what lies beyond them (0x52ADE3), with the original's quirk that these bits gather over the whole walk.
Vehicles. The karts and boats drive on the add-on's own surface (0x452A60). The Space Racers Teleport hides a vehicle, its shadow and its riders' heads in its first gate, plays its pass clip and shows the vehicle again past the second gate (0x548C81 → 0x548E80); the waiting flag of its section is saved.
Window. A click on an add-on opens its ride's window, and the window's arrows skip add-ons (0x486920, 0x4828F0).
APPROX:TRACK-008 is retired. Three deliberate deviations are labelled: [EXT:addon-sale-walk] (removing an add-on clears its flags and walks its ride's circuit at once, where the original leaves the tiles without pieces until the next walk, which a save could not restore), [EXT:addon-not-on-station] (an add-on may not take the ride's own station cells, which the original's track test would allow) and [EXT:track-placement-walk] (OpenTPW's existing walk of a freshly placed station, which the original does not make). The animator saves the end nodes a walk pinned, and a broken-down ride whose upgrade waits lists no level row. Not traced: what a ride's demolition does with the add-ons on its track, and the Extra Tube's own window.
Tests: TrackAddOnTests, TrackAddOnDataTests (the ten shipped add-ons and the Teleport's real clips), TrackAddOnLevelTests (a jump placed, linked and sold on a level assembled without assets) and the upgrade list tests. The park-resume smoke's water variant gains OPENTPW_SMOKE_ADDON=1: it buys the ride's add-on, sells it, buys it again and saves; the restore walks the add-on's sections back. A Debug build captures a ride with an add-on through --debug-kart-track or --debug-water-track with --debug-track-addon <Info.Id>. The front page no longer lists jumps and tunnels as missing, and the README no longer calls the coaster and tour riders' heads missing.
Existing-track Backspace and valid-circuit reopening (October 18, 2026)#
The live kart/water line tool now seeds its undo stack from the open track's existing corners. Old and newly drawn segments share directional clearing, per-tile scrap refunds and add-on removal hooks; re-entry and saved-cell reconstruction rebuild the remaining history.
Explicit valid line/edit walks use the attraction opening guard and synchronize the model and economy door. Invalid edited circuits close; restore, placement and add-on walks do not reopen deliberately closed rides.
Added asset-free replay and real-level cut/mend/door tests, plus optional local-data family-cost and scrap-row coverage. C# execution remains unverified locally because
dotnetis unavailable; no test pass or full-original-parity claim is made.Evidence and boundaries: only complete mapped instruction spans from a partial local reference image were statically inspected. TRACK-018 retains stack-capacity and full replay/restore qualifications; TRACK-004/007 remain open and the BLUEPRINT-003 marker work is unchanged.
UI-047 docs after its implementation (October 18, 2026)#
The UI-047 plan draft (docs/proposals/ui-047-track-coaster-placement-cost-state.md) is marked superseded by the #474 implementation, its draft-scope progress fragment is removed, and the implementation's fragment no longer carries a pending-review note. The register text again records that no mode-object class returns the HUD gate's mode type 4 (vtables 0x6fe980-0x6fead0 return 7, 3, 1, 5, 6, 8 and 9) and notes that a click during a height drag ends it without the commit where the original calls 0x441a00 at 0x447032.
Interface art decodes with the original's planar rows (October 18, 2026)#
The original interface icons looked softer and duller in OpenTPW than in the Dutch gameplay video: the info button showed a doubled, grey-cream ring and a thin letter where the video shows one crisp white ring and a bold "i" with a black outline, and the gold was muddy. The data was not the cause: ui.wad holds the full set (textures, for example a 64x64 b_info) next to a low-detail copy (stexture, 51x51), the original loads the low copy only for the Low detail preset (0x4688b0 sets the texture directory name, stexture or textures), and OpenTPW already loads textures. The cause was the wavelet decoder.
A WCT whose first header flag bit is clear (flags 0x12: most of ui.wad and the advisor's golden ticket, 993 files counting the low-detail copies) stores each row's coefficients planar, all scale samples and then all wavelet samples. tp.exe's decoder 0x593ab0 reads a row so (a scratch row, scale samples from its first half, wavelet samples from its second half); the world textures (flags 0x13) go through 0x595920, which takes scale/wavelet pairs straight from the stream. The sign boards' wavelet decoder, pinned against the executable, already read planar rows. TextureFile read the 0x12 rows with an invented "half-scale" layout (source index halved, output pairs overlapping, a pi/6 scale factor and a shifted alpha plane), which approximated the image but ghosted every edge. It now has one planar and one interleaved row pass; the world textures (0x13) decode byte for byte as before.
Verification: a synthetic planar WCT decodes within two levels of SignWaveletDecoder (the old layout was 135 levels away), and b_info keeps the black outline around its letter (a texel test that fails on the old decode). 28 pinned hashes of 0x12 textures were re-recorded (the interleaved synthetic cases and every world texture pin are untouched). Capture comparison against the video: b_info, b_money, b_resrch and the buy-window category buttons now show the video's crisp rings and outlines.
Open, not changed: the Enhanced HUD/icons choice is on by default and replaces 55 buttons by AI redraws that were prompted from the old, ghosted decode; and the original at medium or lower texture quality decodes into 16-bit surfaces (table 0x7011a0, 2 bytes per pixel except at the highest quality), where OpenTPW always decodes 32-bit.
Park information window and lobby sky built from tp.exe (October 18, 2026)#
UI-914, the park information window. Besides the Top 3 Thoughts it now has the original's line graph (
0x4A4B90,0x4A4750,0x480810,0x47FE90,0x47FCD0): five independent toggles (people in the park, arrival rate, average happiness, average time in the park, park rating; mask0x753C48starts at 8) and the 1 / 3 / 12 year radio buttons (12, 36 and 144 samples, kept while the window is closed), drawn as a black plot with a dark green grid, green axes and numbered steps, each series in the finance graph's first five colours with a 3 x 3 mark per sample under 144 and the last value written at the line end. The scale runs 0 to the highest sample of the selected rings, read one sample past the drawn period as0x4801D0does. The counts frame shows the guests in the park (0x4C9130) and the visitors so far (0x4C94C0), the happiness levels show the percent below 33 (0x4C9750) and above 66 (0x4C9670) as a blue, orange and yellow bar fromsad_undec.wctandhap.wct, and the three buttons open All Visitors, All Staff and the attractions window, each replacing the window.The data.
ParkStatisticsHistoryholds the analyser's monthly rings that the month handler0x4C7720fills: the guests the bus dropped off (counted per group step,0x4CF3E0), the mean happiness, the mean stay of the last 50 guests that reached the stop (0x4C7600, whole four-turn steps as days, paid guests only) and the guests in the park; the park rating is read from the ledger, which stores the same value at the same close. It is saved as an optionalStatisticsHistory(older saves load with it empty, a malformed one is rejected) and kept out of the run hash like the analyser caches because nothing in the simulation reads it, so the pinned determinism hash is unchanged.Hover text. The icon class's frame getter (
0x661596) isreturn 0and the setter (0x661525) stores no frame, so every shown icon names THOUGHTS.str entry 1; OpenTPW now does the same instead of naming each icon's own thought.UI-018, the lobby. The lobby draws the engine sky's cloud layer (the fantasy level's sky files) with the whole grid in the eased island colour over the fog-coloured clear (
0x5D8B50,0x5D96C0); SKYQUALITY 0 or 1 keeps the fog colour; the flying-mesh share is the LOBBYOBJECTS setting (0x5D9DB0,[0x7858DC], presets 10, 70 and 100), no longer fixed at 100; each island placement draws the constructor's threerand()values and an island without SKYCOLOUR keeps them (0x5DFB4A); the flyers and island clips keep stepping while the globe is up (0x5D5C50has no globe branch); the lightning flash is drawn as the quad of state0x9A1, whose blend is INVDESTCOLOR and ZERO, so it inverts the picture for a frame (0x57ED75,0x5679B0). The device word0x78D8D8is the 3D-acceleration switch and is 1 here.Guest insights counters. With
opentpw.guest-insightson, the refusal counters moved off the plot (the toggles column now exists) into the two free strips beside the window's title; a test checks they stay clear of the graph.Still open. UI-914: the message 0x80 handler behind a hidden icon, the count cells' alignment byte, the pixel size of the graph (UI-060), the rings of original saves. UI-018: the lobby's own fog, the engine sky's gate flags, the lobby subsystems' order and whether the scene is drawn behind the globe. No new APPROX ids.
The brolly shop ships Theme Park Inc's kid score of 75 % (October 18, 2026)#
KidScorePercentage is 75 in the four Brolly.sam files and their source, as the user decided in the umbrellas tuning (Theme Park Inc's arabian and water brolly shops use 75, its science one 50); the content test and the synthetic park follow, and no pin moves (DETERMINISM.md). A save from v0.8.26 or v0.8.27 with a placed brolly shop pins the old Brolly.sam hash and no longer resumes; parks without one are unaffected, and the extension stays 1.0.0 (UMBRELLAS.md, save rule).
Umbrellas: the Theme Park Inc trace and our own art and data pipeline (October 18, 2026)#
The first two phases of the umbrellas extension (UMBRELLAS.md), content only; nothing is wired into the game yet, so no pin, save or park changes.
The trace (U0). The static trace of the Theme Park Inc no-CD
Game.exeis in docs/UMBRELLAS.md with[BIN:TPI-EXE:0x...]addresses: the umbrella settings, the five guest states, the demand rule (shop gate, weather and generation multipliers, the balloon factor with its zero quirk), the purchase, the weather rule and its day gate, the scheduling, the balloon trade, closing on entering an attraction, the drawing rule and the shipped data. THEME-PARK-INC.md links to it.Our own art and data (U1).
content/umbrellasholds four 2 x 2 brolly shops (one per Theme Park World theme, ids 64500 to 64503, available from the start), their.sam(price 30, weather 200/200/150/5 percent) and shop script, the umbrella sprite set (three colourways, five directions mirrored to eight, 2x at 256 pixels per unit, the pools kid camera, hotspot at the handle tip, 29 KB) and the hand anchors of the eight 2x kid sets, emitted from the rig byopentpw_guest_sprites.py --emit-anchors(exact by construction).tools/umbrellas/build-content.shrebuilds all of it in about 20 seconds fromtools/blender/opentpw_brolly_shop.py,opentpw_umbrella.py, the kit and the pools' converter. No Theme Park Inc or Theme Park World bytes are used.Tests.
UmbrellasContentTests(8): ids and names,.samkeys, models and wall gaps in all four themes, the shop script, the sprite banks, the anchor table and that nothing is wired in yet.Left for U3. The anchors of the original (1x) kid sets and the four costume sets need a local measuring script that reads the player's own game frames and writes numbers only.
Review follow-up: the content's source and licence (our own, MIT) are stated,
ISIndoors0 is an open question, and[EXT:umbrellas-weather-map]/[EXT:umbrellas-save-due]are marked as needing the user's approval before U2.
Guests carry drawn umbrellas (October 18, 2026)#
Phase U3 of the umbrellas extension: guests whose umbrella is open (or open until a due close, TPI's states 4 and 1, [BIN:TPI-EXE:0x60ae35]) are drawn holding it. UmbrellaRenderer places the handle tip of the extension's own umbrella sprite at the guest's hand, read from a table by sprite set, slot, direction and step, pulls it 10 % towards the camera so it covers the guest, mirrors five directions to eight and picks the colour from the guest; the thought bubble rises from 2.5 to 6.0 units while the umbrella shows ([BIN:TPI-EXE:0x60b0a4]).
The hand anchors of the original 1x kid sets and the four costume sets come from opentpw-kit measure-anchors, which reads the player's own frames and writes numbers only (content/umbrellas/anchors-original.json; kids from the 2x rig anchors registered to the original silhouettes, costumes from a rule fitted on the kids, leave-one-set-out error 3.55 px). The browser build embeds content/umbrellas (shops, the 29 KB sprite set, the tables; 544,475 bytes, about 190 KB deflated, downloaded also with the extension off). Presentation only: no random draws, no pin change, nothing saved. Debug builds take --debug-umbrellas and --debug-umbrellas-follow for captures. Details in docs/UMBRELLAS.md ("Drawing").
User decisions (2026-10-18, asked directly): the sight-line pull is registered as APPROX:UMB-004 ("Als benadering (APPROX:UMB-004)"; unknown: the YAdjustCamera value and the resulting screen-space placement); [EXT:umbrellas-draw] with the steady hand is approved ("Akkoord"); committing anchors-original.json is approved, numbers only ("Ja, getallen mogen"). [EXT:debug-umbrellas] stays a Debug-only test hook.
Also approved by the plan of 2026-10-18 ("doe het allemaal"): the five-to-eight facing and the hand anchors are ours (TPI's umbrella has no directions and sits straight above the guest). TPI also closes the umbrella of a guest standing on a kart or water track cell (0x60AF32); documented under UMB-002, not modelled (U2).
Umbrellas follow-up: measured numbers, UMB-002 narrowed, reproducible frame cost (October 18, 2026)#
(The kid score of 75 % in the shipped data and the stale names in comments came with #626.) A post-merge review of the umbrellas tuning (phase U5) found claims that the measurements did not carry, and this change corrects them. The "+$40 a week" for a kid score of 100 % was not a measurement: rerunning the matrix gives the same mean balance (49,742.5) at 75 % and at 100 %, so the docs now say there is no measurable difference in money; the 12.5 against 13.75 buyers and the balloon releases (4 against 7) stand. TheKidScoreOf75PercentSellsNoMoreThanOf100 allowed two extra buyers and barely tested anything; it is now TheKidScoreOnlyMattersThroughBalloonHoldersAndSellsFewerUmbrellasAt75Percent: the two values play out identically when nobody holds a balloon, and over the four seeds 75 % sells fewer umbrellas (50 against 55) and lets fewer balloons go (16 against 28).
APPROX:UMB-002 is narrowed from "not identified" to what dis.py reads in the no-CD Game.exe: the scheduling (0x613EA0), the carrying out (0x614010) and the draw routine (0x60AE00) stand down for a guest on a kart or water track cell. 0x67F890 tests the 40-byte record found through the tile record's first word (and an extension record's head), not the tile record itself; 0x685680 tests the 40-byte record of the same cell index. OpenTPW's guests never stand on one, so the test stays unmodelled. The text about the roof no longer claims the roof hides the umbrella exactly where it hides the guest (the umbrella sits 1.5 units nearer to the camera).
The native frame-cost figure now has a complete command: the new Debug flag --debug-umbrellas-crowd N stages N extra guests with UmbrellaPerf.Stage (the same staging as the browser harness), which is how a crowd of 342 guests is reached (--perf-arrivals 1 alone gave 18). Re-measured: the umbrellas add under about a millisecond of world render natively; the browser umbrellaCost scenario adds about 1.1 ms of median frame time for 400 umbrellas (report kept in the notes folder umbrella-perf, outside the repository). Presentation and test code only; no pin moves.
Review follow-up: the crowd count reads 338 staged and 342 after arrivals, the confidence line names the track-cell test, and the register and test texts no longer say a roof always hides the umbrella.
Umbrellas in the simulation: the brolly shop, the umbrella states and the balloon trade (October 18, 2026)#
Phase U2 of the umbrellas extension (UMBRELLAS.md): opentpw.umbrellas is registered, on by default, and its four brolly shops are listed in the Theme Park World catalogs; guests buy an umbrella in the rain and carry it through the five states of the Theme Park Inc trace. Nothing is drawn yet (U3 does the drawing; U4 the rain mood).
Extension plumbing.
OfficialExtensions.Umbrellas(1.0.0, simulation, on by default, not in a Theme Park Inc run,FeatureGates.Umbrellas),UmbrellaContent.CatalogRootinModContentRoots.CatalogRootsand theObjectCatalogcache key. A park save records the extension only while the park has a brolly shop or a guest with an umbrella (the pools rule,ParkResumeMods.UsedOnlyExtensionIds), with the asset keys of the placed shops only; a recorded extension that is off or in another version refuses the load, and a save with an umbrella but no record is refused.The score. The host applies, after the decision policy's score (
IGuestDecisionsis untouched), a brolly shop's gate (0 with an umbrella or outside rain, storm and snow), the weather percentage, the held balloon's cut with the original's zero quirk and the generation percentage, for the extension's own objects only; a balloon shop refuses a balloon holder and an open or opening umbrella in a park that uses umbrellas ([EXT:umbrellas-balloon-gate]: tp.exe's own score reads no appearance word).The states. A purchase opens the umbrella at once with one world draw for the colour; entering any attraction closes it; on a qualifying day (the first game day, then one in four) the weather schedules, cancels and carries out opening and closing after a delay below 3 guest updates; an umbrella that opens, or a brolly shop that is entered, lets a held balloon go for -15 happiness; an open or pending umbrella removes the walking speed term.
APPROX:UMB-001(the delay is a per-guest hash, no stream draw),UMB-002(the track-cell test is left out),UMB-003("inside" is the in-attraction states; the age is the time since creation); all three stay, registered inUmbrellaApproximations.Saves and pins. Optional guest fields
UmbrellaState,UmbrellaType,UmbrellaDueTurn, written only for a guest with an umbrella, validated, restored and hashed only then. Every existing pin is unchanged with the extension on or off; the newUmbrellasFixedRunHash=0xE912E7E5D5B6E612covers the fixed run plus a brolly shop and a rain that comes and goes (45 buyers, every state seen). A park saved mid-rain and resumed continues with the same hash.Tests.
UmbrellaRulesTests(31: the weather mapping, the gates, the percentages, the balloon factor and its quirk, the day gate, the transition table, the delay bounds, the colour draw, the speed term),UmbrellasSimulationTests(20: the score through the host, the purchase and its one draw, the balloon trade, a kid in the rain through a ride and back, a pending open, the snapshot round trip and its validator, the hash, a resume),UmbrellasContentTests(the registration, the catalogs of the four themes with the extension on and off, a Theme Park Inc run, the save rule), the determinism pins.User-approved extensions (2026-10-18).
[EXT:umbrellas-weather-map],[EXT:umbrellas-save-due]and[EXT:umbrellas-balloon-gate]are OpenTPW's own choices that U2 implements; the user approved all three on 2026-10-18.Review fixes. The balloon gate is now per park (a holder count the simulation keeps through purchase, departure and restore, so the test needs no scan);
GiveUmbrellamirrorsTPI-EXE:0x612ea9(state 3 first, 4 only when no sprite exists; unreachable in play, so no pin moved);UmbrellaTermsis tagged[EXT:umbrellas-extension]; the Extensions screen has the umbrellas name and description in all eleven languages, and the brolly shops are named in Italian and Hebrew too. The three approvals are quoted in the decisions of UMBRELLAS.md.
Umbrellas tuned from captures and measurements (October 18, 2026)#
Phase U5 of the umbrellas extension, with the simulation (U2), the drawing (U3) and the rain mood (U4) running together. Captures of all four themes in rain, storm, snow and clear, at both camera pitches and the wide zoom, with the pool guest art on and off, showed the canopy too large (about 1.2 times a kid's height on screen after the 45 degree foreshortening, hiding the head): the quad is now scaled 0.85 about the handle tip [EXT:umbrellas-size], and the pull towards the camera, 10 % of the distance in Theme Park Inc (8 units at zoom 80), is now a fixed margin of 1.5 units: the larger pull drew an umbrella over the roof of a booth or shelter that hides its guest [EXT:umbrellas-pull-cap]. Hand anchors, mirroring, colours and the bubble lift (6.0, re-read at 0x60b0a4) needed no change.
A headless rainy week (fixed seed, a park with a brolly shop, four seeds) gives the numbers for the open question of the kid score: 100 % sells about a tenth more umbrellas than Theme Park Inc's 75 %, but the extra buyers are balloon holders paying -15 happiness for the trade, so the week's mean happiness ends below a park without any shop (51.5 against 52.0, against 52.9 at 75 %). The owner chose 75 % ("75%, zoals TPI"). GenerationModifier.KidScorePercentage is 75 in the four Brolly.sam files and tools/umbrellas/brolly.sam (it had been left at OpenTPW's 100), and SyntheticPark's brollyKidScore defaults to 75 so the synthetic brolly shop mirrors the shipped data. The shop pins were recomputed and held: UmbrellasFixedRunHash stays 0xE912E7E5D5B6E612 and RainMoodWithUmbrellasFixedRunHash stays 0xADEE2FA6AFC2ACE3 (both were those values at 100); RainMoodFixedRunHash has no shop. The owner also approved [EXT:umbrellas-size] and [EXT:umbrellas-pull-cap] ("Beide akkoord"). Frame cost: 400 umbrellas add about 1.1 ms of median frame time in the browser's interpreter build (60 frames a second throughout, tools/web-perf scenario umbrellaCost), and 342 umbrellas add under about a millisecond of world render natively (a Debug build; the complete command is in docs/UMBRELLAS.md, "Frame cost", with the new --debug-umbrellas-crowd flag). The size and the pull move no pin. Details in docs/UMBRELLAS.md ("Tuning").
The original's draw routine also closes an umbrella (0x60AEDC), but on a kart or water track cell, not under a roof: the same two predicates are UMB-002's "view condition"; none of 71,591 sampled guest positions in Jungle (with and without a go-kart or boat track) was on such a cell, so U2 need not implement it.
The wave machine's waves rise out of the water (October 18, 2026)#
A wave machine's waves were a colour effect on a flat water mesh: lighter crests, darker troughs and a ripple in the caustics, too faint to read as waves (reported in Slack: "ik zie geen golven ontstaan"). The pool water shader (content/shaders/pool-water.shader) now has its own vertex stage that raises and lowers the water mesh by the same plane wave the swimmers bob on, up to PoolWaves.MaxHeave (0.105 engine units at height 3, under the 0.12 the water lies below the lowest deck, so a crest never tops the coping). The water tiles are a quarter of a cell, about twelve to a wave length, so the swell is smooth. The fragment stage shades the slopes against a fixed light over the wave's back (the normal steepened four times for the shading only), adds a glint where that light reflects to the camera and a band of white water on each crest, broken up by the caustic texture. The swimmers' bob is now the surface's own rise (0.035, 0.07 and 0.105 by height, was 0.03, 0.05 and 0.08), so a swimmer rides the water it is drawn in; a swimmer in an activity (treading water, the jets, a ring, a rope swing's landing) is drawn on the risen water level too (PoolWaterEffects.SurfaceRise). Flat water (a resting machine, a pool without one, the strength 0) is drawn exactly as before. Up to eight pools with waves are drawn with their own wave at once (PoolRenderer.WaveSlots, was four). All of this is presentation: the simulation (the happiness, the turn counts) and every determinism pin are unchanged. [EXT:pools-waves].
Checked on the desktop with a silent Jungle capture sequence (a 10 x 7 pool, a wave machine and ten swimmers, --debug-pool 0,0,10,7 --debug-attractions wavemachine --debug-swimmers 10 --capture-sequence 50,12): crest bands with white water roll across the pool while the machine runs and the water is flat again in its rest. For the browser, the regenerated content/shaders/web/pool-water.json (WebShaderTests with OPENTPW_WRITE_WEB_SHADERS=1) was compiled, linked and drawn in a WebGL2 page in Chromium over a grid of water tiles: the surface rises in bands at strength 1 and stays flat at 0, with no GL error. The browser game itself was not run. New test: PoolsAttractionsTests.TheWaterSurfaceRisesWithTheWaveAndTheSwimmersRideIt (the heave under the deck, the bob equal to the rise, the shader's constants agreeing with PoolWaves).
Still open: the machine's settings are stepped by clicking it through four presets (a window with real controls is the next step), and the swell is one plane wave along +x +y (no reflections off the walls, no wave from the machine's own side).
The original chat overlay in a visited park (October 18, 2026)#
A visit of a published park with other players now shows the original's chat overlay, and the chat parks use the same overlay (docs/ONLINE.md "The chat overlay"):
Chat mode. The visit starts in the original's chat mode: the chat overlay (tp.exe table 0x758AE8, built by 0x4BF460) stands over the park in place of the HUD, which the original's chat mode does not have (0x4862A0). F4 switches between the overlay and the visit's HUD, as it switched the original's overlay off and on (0x4BE3A0), and Enter over the park returns to the chat mode with the entry taking the keys. In the chat mode a click anywhere in the park's opening walks the player's figure, with the original's help 401 ("Left-click to walk to this point"). The chat mode starts once the visit is in its park's room and gives way to the HUD when the server refuses the park.
People list. The room's players or, on the second tab, the buddies; a buddy's name is green in this park, blue online elsewhere and red offline, any other name white (0x4BE730 by the row flags of 0x4EE5C0). The buddy list is asked as the chat connection opens, so the colours and the popups are right from the start, and these answers stay out of the message list; the list stands until each ask's answer comes.
Name popups. A right click on a name opens the original's popup at the pointer: six buttons for a buddy (ignore, goto, locate, page, black-mark, remove buddy; table 0x758CD8), four for anyone else (ignore, goto, black-mark, add buddy; table 0x758E18), none for the player's own name (0x4BE290). A goto to a player in the visited park takes the player's figure to them. A click beside a popup closes it when the button is let go, so it reaches nothing under the popup.
Player buttons. The postcard opens Send Postcard (0x4A9380, the button's model
b_chtpcard), the vote votes once for the visited park (and not after the server refused it) and the earmuffs stay down while they are on (0x4BE820). The session now keeps the server's answers for them: the buddy list, the ignored players and the earmuffs (per connection, as the server keeps them) and the parks voted for or refused. A popup's command quotes a name with a space, so the server takes the whole name.Messages and entry. The room's lines are cut into rows at the list's width and the last twenty rows shown (0x4BE970); a click gives the entry the keys, and so does Enter while nothing else has the focus, Enter says its line and Tab leaves it. While it has the keys the camera still takes the wheel, the edges and the drag over the park, and no hover help covers it while a line is typed.
Panels. The frame's left column and bottom strip keep clicks off the park, which takes them through the opening between them (the triangles of
f_chat); pushing the pointer against the screen's edge over them still scrolls the camera.
The chat park screen drops OpenTPW's top action bar for the same overlay, so EXT:online-chat-action-bar and EXT:online-visit-chat-line are retired; new design choices are labelled [EXT:online-visit-chat-mode], online-chat-help, online-chat-person-flags, online-chat-row-highlight, online-chat-popup-place and online-chat-goto, each with the known original evidence in docs/ONLINE.md. The decoded chat mode is described in docs/reverse/ONLINE-VISIT.md, including the message colour table (0x758F10), which is not reproduced yet: which speech lines its kinds colour is not traced.
From the review of the online presence: the walk's route search reuses arrays the size of the park and knows a spot that cannot be reached at once from the park's connected areas, so such a click no longer floods the whole park on the game thread; the server answers a join of the room a player is already in (a retried join, a goto to someone in the same room) with the roster only, keeping their place and telling nobody; a chat connection the online screens are still opening is no longer closed when a visit leaves; and the avatar effect's two world offsets (0x519410, 0x519420) are noted.
Tests: ChatPanelTests (the people flags and colours, the message rows, the table places and help, the buttons, the entry and how it takes the keys, the popups at the pointer and their commands, a quoted name), VisitChatModeTests (the visit's chat mode in place of the HUD, F4, Enter to the entry, Tab, Escape to the pause menu, the pointer left to the park while the entry has the keys, waiting for the park's room and leaving it when the park is refused), OriginalUiAssetTests.TheChatFrameCoversTheParkOnlyWithItsPanels, CameraControlTests.AUiThatLeavesTheEdgeBandToTheCameraStillScrollsAtTheEdge, OnlineIntegrationTests (AVisitsChatOverlayFollowsTheServersAnswers, AVisitsVoteButtonKeepsTheServersRefusals, ADroppedBuddyAskKeepsTheBuddyList), OnlineServerTests.JoiningTheRoomAgainKeepsThePlaceAndTellsNobody, ParkPresenceStateTests.TheRouteSearchOfTheLargestParkAnswersUnreachableSpotsAtOnceAndFindsLongDetours and AFigureOnABlockedCellLeavesItByAnyFreeStep, and the opening connection in ParkPresenceTests. The native visit smoke with --smoke-presence walks the chat mode (entry, popups, F4) and captures the overlay and a buddy's popup.
A riding visitor is hidden from the park's other players (October 18, 2026)#
In a visit of a published park, a player who rides a ride is now hidden for the park's other visitors, and appears again at the ride's exit when the ride ends. Riding starts from the ride window's Ride it! or, as in the original's chat mode, from a click on the ride itself: in the chat mode a rideable ride under the pointer shows its name with "Left-click to ride" (UIHELPTEXT 580, filled with the ride's name) and a click rides it (tp.exe 0x4BD7F4 → 0x4E15B0, [EXT:online-chat-ride-click]). The ride view's screen covers the chat overlay until the ride ends, and its own exits (Escape, the eject button, C, E and the right click) leave it.
The chat protocol's movements carry a mode from protocol version 5: walk, teleport, hide and unhide, the original's BOSS_CHAT_MOVE modes (tp.exe 0x4E7265). A game sends the mode only to a server whose version 5 it read after its chat connection opened (a restart on an older version gets places alone), and the server sends it only to connections that sent one themselves, so older games and servers never see a member their strict JSON would refuse. An older game keeps a riding player standing where they were, a joiner is not told where a hidden player stood, and any later movement shows a hidden figure again. A double click's teleport and a name popup's goto now go out as teleports, so the other figures jump even over a short distance.
The original hid the own person while riding (0x4BD090, mode 2) and showed it again at the ride's exit only for a ride entered from its first-person walk (0x42A1D0, mode 3); a ride boarded from the overview ended with a teleport alone (0x4BD260), which left the player hidden for the others. OpenTPW always shows the figure again ([EXT:online-ride-hiding]). docs/reverse/ONLINE-VISIT.md "Riding in a visited park" records the traced sends and the receive side.
Tests: ParkPresenceStateTests (riding hides the figure where it stood and lets it out at the ride's exit; a jump moves a figure at once), ParkPresenceTests, ChatModeRideTests (rides and features whose view opens, not add-ons, shops or sideshows; the filled help; the exit), OnlineFormatTests.MovementModesAreWrittenOnlyWhenSet, OnlineServerTests.ARidingPlayerIsHiddenFromThoseWhoReadModesAndKeptForTheOthers and OnlineIntegrationTests.VisitorsOfAPublishedParkSeeEachOtherWalk (a ride between two real sessions). The native visit check (--visit-park … --smoke-test --smoke-presence) now rides a ride from the chat mode with the figure hidden, and leaves it with the ride view's right click.
A visit's flat rides get riders, and the visit smoke rides one (October 18, 2026)#
The native read-only visit smoke (
--visit-park <file> --smoke-test) failed on a package with a rideable flat ride, such as one exported from the original Jungle. Since the ride view port, a ride whose model has a camera seat is ridden from the seat node's pose (RideCameraMode.Advance), but the smoke still compared the camera with the fallback frame (RideCameraMode.Frame). It now asks the view for the seat it rides (RideCameraMode.CurrentSeat: the ride model's camera seat, or a coaster's camera car), checks that the camera sits on it and, off a coaster, that it is the model's camera seat (RideSeat.FindNode). Only a view without a seat keeps the frame and direction checks, now with the train the view rides. A coaster whose car model has a seat is ridden from that seat too, so the old check would have failed for coasters as well.With that fixed, the smoke boarded the Belly Bounce and timed out waiting for it to move. The ride itself was fine: open, its script running, its idle animation advancing. Bouncy.RSE bounces only while
BOUNCING VAR_ONRIDEfinds riders (LOOPANIM 5, else the idleLOOPANIM 2), and the visit had no guests. A package carries none, and the visit's arrivals counted park turns from 0, so the first group was due only at turn 604, about 150 s in (Arrival.TimeBetweenArrivals150 units of four turns, tp.exe0x004CF3E0). A long run showed it: no guest for 150 s, then four off the bus, and at about 193 s one boarded the Belly Bounce and the seat bounced.An own park started from the shipped save (Instant Action) reads its economy's turn, which starts at the save's turn (755 in the Jungle), so its first group comes at once; a Full Simulation park has no such save and starts at turn 0. A visit has no economy, so its arrivals now read the turn of the save it is built on plus its guests' own turns (
Level.VisitArrivalClock,EXT:online-visit-arrivals). The first bus comes at once, and in a Jungle export a guest rides the Belly Bounce 40 to 55 s into the visit. A visit without a save keeps the guests' own turns.The smoke boards the first open rideable ride (the prototype after the park's objects), since a ride published closed never runs. It logs what it boarded, with the riders and the guests in the park. The pass line reports the riders and how long the ride took to move. The watchdog allows two minutes and names the ride's riders, queue and guests when it fires. The motion check is unchanged: simulation frames must move the camera at least 0.25 units.
Docs: docs/ONLINE.md (the smoke description, the Ride bullet and tag 069: rides with a camera seat can be ridden in a visit; the visit's arrivals), GUESTS.md (the visit's arrival timer) and reverse/ONLINE-VISIT.md (the visit's rides).
Verified:
ArrivalVehicleTests.AVisitBuiltOnASaveSendsItsFirstGroupAtOnce, which fails without the clock (it pinsLevel.VisitArrivalClock; its two-line wiring inLevel.SetupGuestsis covered only by the native visit smoke, since no test builds a visit level without the renderer), and the plain visit smoke with a package exported from the original Jungle (ParkSharing.CreatePackage( ParkSnapshotBuilder.FromOriginal( park, null ), … )): "Read-only visit smoke passed: 2501 frames, 14 immutable local objects, rode Belly Bounce through HUD (moved 41.5 s after boarding with 1 rider aboard; camera 8.98,-34.98,2.72 → 8.98,-34.98,2.40), no economy, build/remove/save/load/export rejected, GPU capture 1280x720." With the package of--export-park … --load-original-level jungle(its whole cell map and layout digest) the Belly Bounce moved 51.6 s after boarding, with the digest verified. The with-data test suite passed (7271, 84 skipped), and so did the front-end smoke, whose visit now gets its arrivals at once.Still open: a package does not carry the owner's guests, which the original's uploaded park save would have held, so a visit's crowd is its own from the first bus. The visit also reads Standard.sam's arrival keys where the original loads online_Standard.sam (
EXT:online-visit-settings).
Persistent visitor body sprites (October 18, 2026)#
BOUNCE body frames now come from persistent visitor-owned program state instead of a guessed elapsed-time divisor. The GPU-free player keeps strict signed-32-bit due tests, one emission per scheduler opportunity, deferred template/interval application, no visibility before the first FRAME, and the decoded walk/run/stand and finite guest programs. Ordinary state entry, navigation results, activities, guard capture/release, boarding/release and deletion supply the shared history. Renderers consume one cached post-batch pose pass, including explicit WALK hides and copied kid/costume category at actual body creation.
Own-format snapshots preserve and validate this presentation state and its clock epoch without changing gameplay hashes or RNG. Older/native saves reconstruct explicitly. Visitor sprites documents the fixed-host clock, fallback update order, current movement/state inputs and unsupported-history boundaries. HEADS-007 remains open for those boundaries; ordinary walker output, scripted WALK frame selection and staff timing are unchanged.
Added synthetic player and integration tests for timing, lifetime, body visibility, finite-program identity, pause/lost/headless batches, two render consumers, snapshots and hash controls. Local source review, Python register/progress tests and whitespace checks are available; the C# suite requires CI because this workspace has no .NET SDK. No original executable was run and no original assets are included.
Parks started from an original save write their restart snapshot and autosave again (October 18, 2026)#
The native front-end and Jungle smokes logged "Restart snapshot not written (Script 4 WAIT4ANIM deadline -1 is not finite and non-negative.)". The cause was not an animation opcode: the import of an original save's script run state (RideVM.ImportSavedRunState, the loader at tp.exe 0x5597A0 reads the WAIT4ANIM deadline at script +164) turned a saved deadline that lies behind the saved clock into -1 as a "past" stand-in, and the snapshot validation rejects negative deadlines. A finished animation wait leaves its deadline in place until the script runs WAIT4ANIM again; of the four shipped saves and the 11 corpus saves only Jungle's shipped Easymode save holds such a deadline (1 of its 14 script records), so every park started from it (Instant Action Jungle, the front end's Jungle, a Jungle Load Park reference) failed to capture its script world. That made Restart Park unavailable there, and the periodic autosave and the manual park-resume capture use the same script-world snapshot and validation, so they failed in those parks too.
A deadline that is not ahead of the saved clock now imports as 0 (none). WAIT4ANIM (0x5538EB) treats the two alike: a zero or reached deadline continues and leaves the deadline cleared, so behaviour does not change. The snapshot format and validation are unchanged, and old saves load as before. No determinism pin moves; the hashed script state of a park started from that save does change (RideVM hashes Wait4AnimDeadline: 0 instead of -1 until the script next runs an animation opcode), which no pinned run covers. Regression tests: SavedRunStateTests.APastWait4AnimDeadlineImportsAsNoneAndTheScriptSnapshotStaysValid and, with game data, OriginalParkScriptSnapshotTests.AJungleParkStartedFromItsShippedSaveCapturesItsScriptWorld. tp.exe (byte-exact): WAIT4ANIM at 0x5538EB returns at once for a zero deadline and writes 0 once the clock reaches it; every other access to +0xA4 in the VM (0x552B14, 0x552BFF, 0x552D9F, 0x552FE5, 0x5531F9, 0x553388, 0x55347F, 0x55368D) writes it without reading the old value, and the save loader 0x5597A0 reads the record raw.
The waves push the swimmers (October 18, 2026)#
A wave machine's waves now carry the free swimmers of their pool, not only lift their drawn height. While a crest passes a swimmer's cell, PoolWaves.Push gives it a push along the waves' way (+x +y): the integer form of the wave at the swimmer's own point, where the drawn crest is (the phase in 64 steps of a period from the park turn and the 16.16 point, the sine from the swimmers' own 64-step heading table, nothing in a trough) times the envelope and height / 3 of PoolWaves.MaxPush, 0.12 cell a turn. At full swell a height-3 crest pushes about 0.085 cell a turn on each axis, about the slowest stroke (0.082), so on the crest a slow swimmer heading against the waves is carried back a little; over a period the push averages a third of that, and height 1 is a third again. The carried distance is no stroke (the swimming animation does not advance for it). PoolWaterEffects is a new IPoolCurrent: the swim host adds the push after the swimmer's stroke (PoolSwimming.Drift) only where it lands on free water and not within 0.7 cell of another body, so nobody is pushed through a wall or a crowd, and the swimmer steers back towards its goal on the next turn. Swimmers in an activity (jets, rings, the spa) and swimmers on their way out are not pushed. [EXT:pools-waves].
This is simulation and deterministic: integers only, no random draw of its own and no new stored field (the position is the guest's). The moved swimmers reach their goals at other turns, so their goal draws move, and DeterminismTests.PoolsAttractionsFixedRunHash moves from 0x5232DC9F32832BC6 to 0xD9F94E889BDAB453 (92 swims; jets 12, river 13, rope swing 5, spa 3 starts). Every other pin is unchanged: only that run has a wave machine, and a pool without waves pushes nothing.
Checked: Pools*, Determinism*, GuestMeasurement* and Save* tests, 905 passed without game data and the pool and determinism tests 321 passed with it; a silent Jungle capture sequence of a 10 x 7 pool with a wave machine and twelve swimmers runs without error. New tests: the push only while the drawn crest at the swimmer's point is up, along the diagonal, by height and envelope, never in a rest or with the waves off; the drift stopped by the wall and by another body; a swimmer pushed apart from the same swimmer in a flat pool for more than 50 of 500 turns and always in the water; waves that are off move, draw and pay nothing; a save while the waves push a swimmer restores and continues identically.
The wave machine gets a settings window (October 18, 2026)#
A wave machine's settings (waves on or off, the height and the rest between two runs) could only be stepped through four presets by clicking the selected machine again. The machine now has a settings window of its own (ParkHud.OpenWaveSettings, [EXT:pools-waves]). The object window of a selected wave machine, a Features object that the game shows in the shop table, has a Wave settings button in the row where a shop has its quality slider and price box, which a wave machine does not show; that button, or a second click on the machine that is already selected, opens the window. It is OpenTPW's own size (UiDialogs.CenteredWindow) in the original's w_dialog frame, with the original's b_ltoggle toggles (they play cat_ui 0xBD, as the original's radio groups do): waves on or off, the height (low, medium, high) and the interval (short, regular, long: a rest of 40, 100 or 200 turns), with the machine's current settings selected. The choices edit the window's copy; the tick writes them to the machine through the new Level.SetPoolWaves, and the cross, Escape or a right click leave the machine as it was. The window does not open in a read-only visit, in the chat mode or over another window. Its seven new texts are in all eleven languages; the window is titled with the machine's own name. Level.CyclePoolWaves keeps stepping the presets for scripted use, now on top of Level.PoolWavesOf/SetPoolWaves. The settings live where they did (the flags of the machine's access cell), so saves, the validator and every determinism pin are unchanged.
Checked in the game with silent Jungle interface captures (--debug-pool 0,0,8,6 --debug-attractions wavemachine --debug-pool-lead 190 --debug-hud waves, and waves:select for the object window alone; waves is a new smoke-only --debug-hud action): the button sits in the object window's settings row, and the window shows the three rows of toggles inside its frame with the default (on, medium, regular) selected. New tests in PoolsAttractionsTests: every choice, the tick, the cross, the window only for a wave machine, every control inside the window frame, and the texts in every language.
Weather lines only for news (October 18, 2026)#
The weather banner and log lines no longer repeat "The weather has changed: dry weather." and "Weather forecast: dry weather in 4 days." every few game days while the weather stays dry. The simulation follows tp.exe: its weather update (0x512880) rolls a forecast every cycle, DaysBetweenChanges minus DaysOfWarning days after the last change, whatever the weather is, and applies it DaysOfWarning days later. The forecast event's only subscriber, the weather's own handler (0x5127a0), posts nothing, so the original shows no weather line at all. OpenTPW's lines ([EXT:forecast-presentation]) announced every roll and every apply, so in Halloween World (a cycle of 7 days with 4 days of warning, about 5.7 seconds a day at normal speed) dry weather was announced twice every 40 seconds.
WeatherForecastState now posts only news ([EXT:forecast-cadence]): a change when the kind of weather changes, and a forecast, with its countdown banner, when it brings another kind of weather than the current one. An undecided snow-or-rain forecast during rain is still announced. A change and the next forecast in one update (a cycle no longer than the warning) post both, where the old code dropped the change. The simulation, its random draws and the saved schedule are unchanged. docs/AUDIO.md "Weather visuals" describes the cadence; the stale "handler not traced" notes are gone.
Tests: WeatherForecastTests (AForecastOrApplyThatKeepsTheKindOfWeatherIsNoNews, AChangeAndTheNextForecastInOneStepBothPost, and the resumed-warning, no-spam and restore tests with current weather of the kind the cases need).
A stopped browser game gives its kept game files back (October 18, 2026)#
A player whose browser game stopped on an error (the postcard crash, PR #407) found the restart very slow. The page that shows "The game stopped" stays open, and it held the Web Lock that lets one tab at a time use the game files kept in the browser (OPFS) until it was closed. A new tab then played without kept files: no Play button, the whole folder had to be chosen again and copied (about 600 MB for a full install), and nothing was kept, so every further restart was as slow. Measured on the interpreter build with the harness's Chrome (tools/web-perf pieces, one run each, game folder served locally): a cold start reaches the lobby in 2.8 s and Jungle in 13.6 s, a warm start from the kept files shows Play after 0.3-0.4 s, reaches the lobby after 2.0-3.0 s and Jungle after 12.0 s, and a start after killing Chrome mid-session behaves like the warm start (same kept files, no scratch files left in OPFS, manifest consistent); killing it in the first seconds of the lobby leaves the start files partly kept, so the next visit asks for the folder once. A renderer crash (Page.crash) frees the lock by itself; a stopped game on a live page did not.
A page whose game has stopped now drops what is still queued to keep, writes the list of kept files, and releases the lock (claimKeeping in opentpw-originals.js), so a restart in a new tab starts from the kept files. Checked in Chrome: with the game stopped by a thrown frame, a second tab showed "Another OpenTPW tab is using the game files" before and Play after. Node tests cover the lock hand-over and the release when a frame throws. Not changed: a tab that is merely open next to a running game still plays without kept files.
The park camera zooms out to tp.exe's own 40..300 range (October 18, 2026)#
The park camera now has the zoom range tp.exe keeps behind its camera mode flag 0x200: 40 to 300 instead of the normal 70 to 130 (clamp 0x42c631, constants 0x74c9d8/0x74c9dc). The shipped game toggles that flag only from a hidden camera key binding (0x42a520, entry 0x748298 of the camera key set; whether retail players can press it is not verified) and offers no option for it, so this is an OpenTPW extension, [EXT:wide-zoom], user-approved on 2026-10-18. It is an option, on by default: "Wide zoom" on the OpenTPW page of the options screen (text in all nine languages), saved with the other options in opentpw-options.json on the desktop and in the browser. With it off the range is 70..130 as before, and switching it off while zoomed out brings the zoom back to 130.
The pitch and the eye (0x42b1c0) read the zoom value alone, so the original's own formulas run unchanged over the wider range: the pitch line continues to 35 degrees at 40 and stops at the original's clamp of 84.27 degrees from a zoom value of about 188, so at 300 the camera is 298.5 original units up and 30 behind the target, looking almost straight down. Inside 70..130 the camera, Home (110), the wheel step (10) and the zoom key rate are unchanged. Checked in Jungle with silent offscreen captures at 40, 70, 110, 130, 200 and 300 and at the map corners: no change was needed for the far plane, fog, culling, the terrain edge and skirt, the cursor pick (the optical axis meets the ground at the target at every zoom; WideZoomTests pick at six zooms and three yaws), the sky (never in view: the view stays at least 8 degrees below the horizon) or the rain. The pan speed keeps the original's 0.02 x sqrt(zoom) per millisecond, so a screen takes about 1.6 times longer to cross at 300 than at 110, as in the original with the flag. Frame time on the desktop (Jungle, unthrottled, 1512 x 843): about 3.5 to 4 ms at Home and 6.7 ms at zoom 300 over 1500 frames (3.4 to 3.7 ms against 1.7 to 3.4 ms over 9000 frames), well inside 16.7 ms; in the browser 60 fps with no long task, the main thread 1.3 points busier than at zoom 110 and the frame p95 0.2 ms longer. A crowded park was not measured. New hooks for measuring: --perf-zoom <value> (native) and --zoom <value> of tools/web-perf/run.mjs (browser). The camera is presentation: no determinism pin moves.
Winter cold: snow costs happiness unless guests are dressed (October 18, 2026)#
Phase W5 of the winter extension (WINTER.md): the option opentpw.winter-cold (off by default, not offered in a Theme Park Inc run, always recorded in a save while on). It stacks on the simulation branch of the winter work (W3).
The rule. In snow, once per qualifying day per guest (the rain mood's day gate, age and once-per-day rule, with its own
ColdMoodDaymark), happiness changes by -2, plus 1 back for a head item, 1 for mittens and 1 for a recent glühwein, capped at 0. A glühwein stall setsWarmUntilDay(the rest of that day and the next game day) while the option is on. With the rain mood on too, the cold rule replaces its snow happiness (+1); its thirst and hunger columns stay.Measured. A headless kid over a snowy week loses 4 happiness with no protection, 2 with a head item and 0 with a head item and mittens, where the rain mood alone cheers every kid by 2. The table is in docs/WINTER.md and pinned by a test.
Saves and determinism.
ColdMoodDayis optional, validated and hashed only once set. With the option off every pin is unchanged; two new pins cover it on, and on together with the rain mood, the brolly shop and the winter shops. A park saved mid-snow resumes with the same hash.Merged with the winter base (0fdfcf68). The kiosk sells all year (the user's decision) and the fixture's calendar changed, so
WinterColdEverythingFixedRunHashmoved0x7589B229530055D6->0xCCEA2E164DF6888A(103 guests changed, 74 dressed);WinterColdFixedRunHash0x9E74A906AB249401is unchanged. The cold step now reads the winter shops' weather signal (WinterWeatherState), so Halloween's snow, which comes with lightning, is snow for it; no pin moved for that (the harness has no lightning).Options row. "Cold mood" with its description in all eleven interface languages.
Tests.
WinterColdTests(20) and three determinism tests.User decisions (October 19, 2026).
[EXT:winter-cold-warm-window]: a glühwein warms for the rest of its day plus the next game day (WarmEffectDays1), answered "Rest van de dag + de volgende dag".[EXT:winter-cold-replaces-snow-cheer]: with cold on, only the happiness +1 of the rain mood's snow row is dropped and the thirst and hunger snow effects stay as TPI's, answered "Alleen de humeur-+1". Both are recorded as approved in docs/WINTER.md.Halloween stacking (October 19, 2026).
[EXT:winter-cold-replaces-snow-cheer]extended, answered "Kou vervangt storm-humeur": in Halloween every snowfall has lightning, so the rain mood reads a storm where the winter signal reads snow. With cold on and the winter signal saying snow, the rain mood's happiness of that day is left out whichever row it would use (snow +1 or storm -1); its thirst and hunger stay; with cold off nothing changes. An undressed kid nets -2 and a dressed one 0 in Halloween too. No pin moved (the harness has no lightning). Tests with real HalloweenParkWeathersnow, and a Halloween table in docs/WINTER.md.
Winter: the research page and our own art and data pipeline (October 18, 2026)#
Phases W0 and W2 of the winter extension (WINTER.md), documentation and content only; nothing is wired into the game, so no pin, save, park or draw call changes.
The research and decisions (W0). docs/WINTER.md records where it snows (only the Halloween world, about 4 real minutes per 35-minute year, December being row 4 of the season table), that tp.exe has no ground snow (three strings, three
snow.tgaloads, all CRain's), that Theme Park Inc's snowfield is painted terrain, the original drinks shops' data, the free uniform slot of test.shader and the user's decisions of October 18, 2026, with[EXT:winter-*]labels.Our own art and data (W2).
content/winterholds eight 2 x 2 market huts with pitched roofs (a winter kiosk and a glühwein stall per Theme Park World theme, ids 64010 to 64017 in the range 64010 to 64499; 64000 to 64009 belong to the example lamp mod), their.sam(kiosk:AppearanceEffect4, price 25; stall:ShopType4 drinks with a "Spices" ingredient, price 30,VomitEffect5) and shop scripts, the warm item sprite set (bobble hats, earmuffs and mittens in a few colourways, five directions mirrored to eight, 2x at 256 pixels per unit, rendered over a holdout head so the hidden back parts are cut out, 28 KB) andanchors.json, schema 2: the head top, head centre, both hands and the hands' visibility for every land slot, frame and direction of the eight 2x kid sets. The umbrellas' schema 1 anchors are emitted by unchanged code and stay byte-identical (--emit-winter-anchorswrites a separate file).tools/winter/build-content.shrebuilds all of it in about a minute. No Theme Park World or Theme Park Inc bytes are used.Tests.
WinterContentTests(10): ids and range overlap with every other content root,.samkeys and decisions, models, wall gaps and scripts in all four themes, the sprite banks, anchor coverage and agreement with the umbrellas' table, and that nothing is wired in.Left for later phases. Snow cover (W1), the simulation behind
opentpw.winter(W3), drawing with the original sets' head anchors (W4), the cold rule (W5).Review follow-up: the shop names are in all eleven interface languages (Italian and Hebrew added), the placeholder ids moved out of the lamp mod's range (64010/64011), and WINTER.md's design section now states the cold rule as replacing the rain mood's snow +1, as decided.
Guests wear the warm items (October 18, 2026)#
Phase W4 of the winter extension: guests whose WarmItems are set are drawn with them. WarmItemRenderer places the extension's own hat sprite at the head top, earmuffs at the head centre and mittens at the visible hands, read from a table by sprite set, slot, direction and step (WinterAnchorTable, parsed into arrays at load, no per-frame allocation), pulls each 1 % towards the camera so it covers the guest and stays behind an umbrella, mirrors five directions to eight and takes the colour from the guest and the item (WinterRules.SpriteSlotOf). It shares GuestRenderer.TryMount with the umbrellas, so it follows the walk's bob and the swinging arm; it also uses the guests' evening sprite tint (the umbrellas' renderer lacked it and now has it).
The head anchors of the original 1x kid sets and the four costume sets come from opentpw-kit measure-head-anchors, which reads the player's own frames and writes numbers only (content/winter/anchors-original.json: kids from the 2x rig anchors registered to the original silhouettes, costumes from a rule fitted on the kids, leave-one-set-out error of the head top 2.04 px mean, 5.59 px largest). Mittens are not drawn on the original sets (user-approved 2026-10-18). The browser build embeds content/winter (1,322,442 bytes, about 406 KB deflated per file). Presentation only: no random draws, no pin change, nothing saved. Debug builds take --debug-winter for captures; the browser harness has a winter scenario (tools/web-perf/run.mjs --scenarios jungle,winter). Details in docs/WINTER.md ("Drawing").
User decision (October 19, 2026): [EXT:winter-draw] is approved, "Alle drie akkoord": the 1 % camera pull (an umbrella falls over the hat), mittens turning with the forearm, and hats and earmuffs on costumed guests too. [EXT:debug-winter] is a capture and test hook only. Recorded in docs/WINTER.md.
Winter in the simulation: the kiosk, the glühwein stall and wintry Decembers (October 18, 2026)#
Phase W3 of the winter extension (WINTER.md): opentpw.winter is registered, on by default, and its kiosk and glühwein stall of each theme are listed in the Theme Park World catalogs; guests buy from them. The items are not drawn yet (W4).
Extension plumbing.
OfficialExtensions.Winter(1.0.0, simulation, on by default, used-only in saves, not in a Theme Park Inc run,FeatureGates.Winter),WinterContent.CatalogRootinModContentRoots.CatalogRootsand theObjectCatalogcache key, names and descriptions in the eleven interface languages. A park save records the extension only while the park has one of its shops or a guest with an item or warmth, with the asset keys of the placed shops only.The kiosk.
AppearanceEffect4: sells all year (the user's decision of 2026-10-18/19, "Het hele jaar, vraag via seizoen"; demand follows the season terms, winter 150 / spring and autumn 60 / summer 20, and the snow, 200) and not to a guest with both slots full; a purchase gives a head item (hat or earmuffs from a hash of the guest id) first and then mittens, with colours from a hash of guest id and item and no random draw. Guest fieldsWarmItemsandWarmUntilDayare optional, validated, and saved and hashed only when set.The stall. A normal drinks shop (
ShopType 4, Ice mechanics labelled "Spices", no drunk effects) with the weather and season percentages of its.sam(SeasonModifier.*are our own keys). tp.exe0x4e16b0confirms the drinks challenge counts it and the kiosk'sShopType 1is counter 5, not costumes.Wintry Decembers.
opentpw.winter-weather(off by default, recorded in every save while on): a December roll in the rain band of the jungle and fantasy parks is snow without lightning, with the storm's drops, so umbrellas and the rain mood read snow, and the forecast says snow; Halloween and space are untouched. The winter shops read snow as snow even with lightning (Halloween's snowfall), the umbrellas and the rain mood keep their map. tp.exe's converter0x512f00has no calendar input.Pins.
WinterFixedRunHashmoved0x8F7023321586F670to0xD4E2340C99394B73(the kiosk sells all year with new season terms; the fixture's calendar is May then December; cause in DETERMINISM.md). New: the guest-level pins of the umbrellas and the rain mood under real jungle weather across a December, option off0xF4A00471E60B9535and on0x296DA4DA6A8BE323. The jungle's 400-day weather pins off0x58F5D2429FDCADAAand on0x2DC4898B7594C4FAand every other existing pin are unchanged. Resumes mid-snow continue identically.Tests.
WinterSimulationTests,WinterWiringTests,WinterWeatherTests, the determinism pins;WinterContentTestsnow checks the wiring.Approval. The labels
[EXT:winter-item-colour],[EXT:winter-spice-label],[EXT:winter-season-terms],[EXT:winter-snow-save]and the id range are approved by the user ("Alles akkoord", October 18, 2026).[EXT:winter-kiosk-gate]is retired: the user decided on 2026-10-18/19 that the kiosk sells all year ("Het hele jaar, vraag via seizoen").[EXT:winter-save]implements the approved rule "recorded in a save only for parks that use them", with the optional guest fields.[EXT:winter-weather]is an approved option; its December rain and storms become snow without lightning, which stops the lightning clock and makes the weather stream diverge from the first wintry spell.Golden ticket. "All researched and built" asks for the shipped buyable objects only; the extensions'
research: falseobjects (winter, umbrellas, pools) were already excluded and a test now covers all three.
Winter W1: settling snow, opentpw.winter-snow (October 18, 2026)#
Phase W1 of the winter plan. opentpw.winter-snow 1.0.0 makes snow settle on the park's ground, roofs and objects while it snows and melt afterwards; the paths turn to greyish slush so they stay readable and cliffs stay bare. It is presentation only (AffectsSimulation false: no mod-set record, no hash part, no draw from any random stream), on by default (the user's decision), and listed on the Extensions and mods screen in all eleven interface languages.
Cover:
SnowCoverrises withParkWeather.CurrentDropswhile it snows (1/35 of the drop share a park turn), melts by 1/70 a dry turn (three times faster in rain), is stepped once per park turn from the weather (newParkWeather.TurnStepped) so it freezes when paused, and is eased per frame for drawing.Shader: test.shader gets
g_flSnowCoverin the last free float of the uniform block (byte 268,_padding6; the block stays 272 bytes, the point lights still start at 272) with procedural value-noise patches, a slope term and a slush look for negative values;content/shaders/web/test.jsonis regenerated and the GLSL ES 3.00 links in Chrome's WebGL2 (uniform block 784 bytes).ModelEntity.SnowSurfacegives terrain, objects, track and coaster pieces 1, the path layer and queue models -0.35, everything else 0. Cover 0 is byte-identical: a hallow capture with the extension on and no snow equals the one with it off (cmp).Save: optional unhashed
SnowCoverin the park-resume envelope, written only above 0 while the extension is on, validated on load; old saves load, and a park without snow saves the same bytes.Determinism: no pin moves. The
--perf-hash-tick 4000harness (--perf-run 9000 --perf-speed 1 --perf-arrivals 3) is phase-sensitive onmaintoo: the park opens 30 frames after the level is up while its clock runs in real time through loading, so park tick at frame 600 varies (346 or 349) and the hash follows it (main, hallow:62b935be21b6182cin four of five runs at phase 346,cf01299b9d2e0cb9at phase 349). At equal phase the extension changes nothing: this branch gave62b935be21b6182cin four of four runs at phase 346; forced snow (--debug-weather 8) gave3c4867e8e8737061at phase 347 with the extension off and with full cover (--debug-snow-cover 1), andf947266e4f613010at phase 349 with it off. The earlier3c48...was therefore this phase, not the cover. The committed proof is deterministic:SnowCoverTestscompare the weather's complete snapshot and trace with and without a subscribed cover, scan the sources for any use of the cover outside the presentation and save paths, and pin the economy hash at every cover.Look (review): ride track tiles (kart roads, water channels) take slush like paths, so the circuit stays readable; full cover keeps relief from the albedo, a fine grain and 5 % of the albedo, so it is no longer a flat white plane.
Debug hooks:
--debug-snow-cover <0..1>([EXT:debug-snow-cover]);--debug-weather 8already forces hallow snow.Tests:
SnowCoverTests(accumulate, melt, rain melt, clamps, pause and speed through the weather's turns, easing, save field and validation, the uniform slot at byte 268, shader declarations, web JSON, registration, the mods screen in every language, the economy hash).Not covered (documented in WINTER.md): sprites, lakes, pools, the sky; ground under a roof whitens too. Wintry Decembers stays W3.
Browser check (review): a Release publish of the web build compiles and links the new test.shader and draws the snow (
node tools/web-perf/run.mjs ... --scenarios jungle,snow --cover 1 --shot out.png, backed by thePerfSnowhook, the browser twin of--debug-snow-cover).Review fixes: the noise hash is sin-free (no banding on ANGLE/D3D and mobile GPUs); parts on animated nodes use model-space noise (no crawling on rotating rides); path-like materials (
grd_pav*,grd_ctr*,grd_krb*,*path*) take slush, so the hallow entrance plaza and kerbs no longer turn white; the extension is off in Theme Park Inc runs like the other extensions; the Danish and Spanish names read correctly (\"Sne der lægger sig\", \"nieve derretida\"). Cover 0 stays byte-identical to the extension off (cmpof a hallow capture).
Advisor help for the panels, tools and object windows (October 17, 2026)#
Every help message that tp.exe posts through 0x486B00 (40 call sites found by scanning the executable for calls of the builders 0x486B00 and 0x59B590) is now bound where OpenTPW has the window, panel or tool:
Panels: the message panel (284, withdrawn when it closes), the map window (304), the locator panels (198 staff, 287 visitors; their close withdraws both) and the coaster tool's panel (289, 292, 293, 294 or 295 for a flume coaster on the button press; all five withdrawn when the panel goes; 205 after every tool click).
Tools: the path tool (184 for the first accepted click, 214 for the third click after it), the queue tool (203 for every way into it, 337 when a click ends it without joining a path), the buy list (201 for a ride while none is placed, 206 otherwise, 346 Buy Land, 345 Clear Land), the patrol button (193) and the employee window's refresh (212 for an employee with an own patrol area, withdrawn next to 192).
Object windows: the window is chosen by
Info.WhichUITypeas the dispatcher0x486920does: a feature that provides relief posts 213 below a state of 25 and 299 otherwise, one that chills you out 300, any other feature 298, a ride-type add-on ofAddOn.UpgradeType2 posts 301, and a fixed item has no window and no help. Features used to post the shop's 209.Mode changes:
ParkHudreports a change of the tool it runs, so the ten mode help messages are withdrawn when a tool starts or ends (not only when a screen opens). A tool's help waits for that report, asSetMode(0x52F200) withdraws before the tool posts; a help posted in the frame its tool ended (the third path click that ends the tool, a coaster click that closes the circuit) is dropped, as the original'sSetMode(0)withdrew it after the post.Not bound: 285 (the All Staff window), 308 (the address book), 307 (the postcard window posts only outside game type 1, and OpenTPW's postcard is online only) and 36 help ids that no call names.
advisor-descriptors.tomlkeeps the scan flag of the descriptors (word+0x0of0x76E300): 155 messages are scored by the background scan0x59C680(one per update), the other 195 are posted by game code. Nothing scores the scanned ones yet; the register text names their inputs (134 callbacks over 85 park-statistics helpers) and the game-code posts that still have no producer (66, 68, 69, 215-237, 311, 315, and 167 outside Instant Action).
Narrowed ADVISOR-009 (not retired: the scored messages remain). The pinned run hash and saves are unchanged: help is presentation only and no world or guest RNG draw was added.
The advisor also says the staff strike messages (33-57, replacing the direct tube post when an advisor runs), research completions (93-97), new research groups (133-136) and all research done in Instant Action (167); the determinism pin is unchanged.
The advisor's park callbacks: rides, breakdowns, cleanliness and guest mood (October 17, 2026)#
31 more scan callbacks are ported from
tp.exe, line by line.AdvisorParkCallbacks(World/AdvisorScanPark.cs) scores the worn, broken and too-few-mechanics lines (5-7), the object-selection lines (60, 62, 71, 73-75, 77-79, 81), the closed-share lines (259-262), the litter and toilet lines (8-10, 86-89), the no-toilets line (82) and the guest mood lines (3, 4, 145, 158, 159); 85 is ported as what it is, a callback that computes a statistic and returns 0. Every callback reads the park only throughIAdvisorParkState, whoseEconomyParkStatecomputes the helpers' statistics (0x4C9960,0x4CA450-0x4CA9B0,0x4CA160,0x4CCDF0,0x4C81B0and the guest counts0x4C9290-0x4C95D0,0x4C7BB0) from the economy, the litter map and the guest census without writing to any of them. The advisor stays outside the world hash, so no determinism pin moved.Reading the bytes corrected the first mapping. The "first object" and "first hire" stamps are rewritten by every construction and hire (they are the newest, and park init stamps them; the advisor keeps its own record, fed by the build and hire events, saved in its snapshot and outside the economy's hashes); 73, 77 and 81 ask for the previous kind's built types; 74 counts the shop types twice, so its ratio test passes only for a ratio above 1 (never with the shipped 0.15); 82 has no ride test; 145 lets equality pass; 259 tests the park open. The inventory and
docs/reverse/ADVISOR-SCAN.mdcarry the corrected formulas.Ride events. The wear step raises
RideBreakdownImminentwhen a ride's condition byte falls below 10 (advice 66,0x4DF670); as the ride enters its broken state (the newRideEnteredBrokenStateevent, not the earlier breakdown request:0x4DADC0runs on the type 7 message of0x4E0E60) it posts 68 without a mechanic, 69 when every mechanic is busy, resting or on strike and 258 for a condemned ride (RideCondemned.Score, now inEventScoreKeys).Statistics the guest census gained.
IParkGuestStatisticscounts the guests whose thirst, hunger or toilet byte is above a threshold, those holding a balloon or in a costume, and the mean happiness the advisor reads (0x4C7BB0).Tests.
AdvisorScanParkTests: each callback at its thresholds over hand-built park states, a whole scan pass through the real queue (heavy litter posts 9, broken rides without a mechanic post 5 and 6, closed rides and thirsty guests post 259 and 3), the statistics over a realParkEconomy, the guest bridge and the ride events. The producer inventory marks the 35 rows wired (133 in all). ADVISOR-009 narrowed: 117 scanned callbacks remain (21 constant-zero stubs, 96 computed).
Advisor producer map: every one of the 351 messages traced to its scan or poster (October 17, 2026)#
Step 1 of the advisor campaign is a map, not gameplay. docs/reverse/ADVISOR-SCAN.md and content/data/advisor-producers.toml give, for every descriptor of tp.exe's table 0x76E300, its producer, the park state it reads, the score formula in words, its captions (TAG_SYSTEM.str entries; the texts are game data and stay out), its OpenTPW status and an implementation batch. Read in tp.exe via the capstone helpers (no original run); the Advisor.sam object layout was recovered from the schema 0x72E124 (every key four bytes from +0xA0, checked against the seven known getter offsets).
The scan (
0x59C680, from the advisor update0x59A550) scores one descriptor per update: 155 descriptors are scanned, 134 have a computed callback over 85 park-statistics helpers, 21 return the constant 0 (0x5D60C0) and can never passMinScoreForConsideration. The other 196 are posted by game code (67 events), by windows and tools (45 help messages) or by nothing (84, of which 37 are help descriptors that no call names).87 messages produce advice today (45 by game code, 42 help), not 91:
AutomaticAdvisor.GlobalTicketMovedMessageposts 234-237, butAdvisorTableshas no definition of them, soAdvisorController.Advisereturns null and nothing is said. 66, 68 and 69 are defined without a poster.AdvisorProducerInventoryTestspins both.Dead lines: the "queues are too long" messages 58 and 59 are scored by the zero stub and posted by nothing in v2.0. The price lines are 238-242 (shop value, speech only), 91/92 (ticket price); the money warnings 102-105 are scan rows reading the months in the red (the bank's 30-day months), 106 is game event 2.
81 versus 82: 82 descriptors share the help score callback
0x59E8C0; 81 are inadvisor-help-messages.tomlbecause 291 names the absent response 551. Both numbers are right; the comments now say so, and a test pins it.Unreferenced captions:
TAG_SYSTEM.strholds the written form of the price, wealth, patrol and congratulation lines (96-113, 121-122, 24-32, 160-179) that no response row references; the inventory lists them as inferredorphans.Status of the 351: 87 wired, 146 ready (every input exists in OpenTPW), 13 blocked (staff coverage cells, prank counters, queue links, ride fear, arrival wave, three help windows), 105 nothing to produce. Weather has no advisor message.
The advisor's background scan and the money warnings (October 17, 2026)#
The scan driver is
0x59C680, as the original runs it.AdvisorScankeeps the cursor over the 351 descriptors, skips the rows game code posts without counting them (the loop's counter is bumped only at0x59C822, so one call walks to the next scanned row; a pass is 155 scored updates, not 351 as the mapping first said), wraps at 351, applies the game-mode selector, dispatches to the callback by its address and keeps the strictly highest eligible score.AdvisorController.ScanOncequeues a score aboveMinScoreForConsiderationthrough the real queue. A callback that is not ported scores 0, like the original's stub0x5D60C0.State. The cursor is controller state: it is in
AdvisorControllerSnapshot(a snapshot without it restores 0, and a cursor outside 0-351 is rejected) and an original save import starts it at 0. The advisor is outside the simulation hash, so no determinism pin moved; the headless runs that pin hashes attach no advisor. The advisor runs once per frame here, soAutomaticAdvisor.ScanParkscans once per park turn passed, as0x516380walks the things (at most 32 per update; none while paused or after bankruptcy, with no catch-up; the loan check reads the net worth through the credit test's cache without writing it; 101 and 107 round to single precision at every x87 step). The queue is still served per frame (ADVISOR-017).Money batch (wired). 102 (take a loan), 103/104/105 (no loan available, months in the red below 3, 3 or 4, exactly 5), 100 (rich and no loan taken), 101 (the cash left after all debts covers the cheapest loan times
Margin, with the original's single-precision compare) and 107 (staff wages above the income times a factor over the newest months of the monthly rings) are ported from0x59E8D0-0x59EB80overEconomyMoneyState, which reads the bank and the ledger without writing to them (the net worth is read fresh and the offers' stored credit tests are left alone, where0x4D0810refreshes them). 101 and 102 are for the full simulation only (mode 0).Golden-ticket advice 234-237 now speaks.
AutomaticAdvisor.GlobalTicketMovedMessageposted them butAdvisorTableshad no definition; the fourAwardMoved.Scorerows are added (group 2, read from the settings file when it has the group).Tests.
AdvisorScanTests: cursor step and wrap, rows skipped for free, unported callbacks at 0, the mode selector, strict best and minimum, the tutorial option, the snapshot, each money callback at its thresholds (single-rounding edge of 101 included), the economy adapter against a realParkEconomy, a park in the red going through the real queue and selection to 103, 104 and 105, and 234-237 now speak. The producer inventory marks 100-105, 107 and 234-237 wired. ADVISOR-009 narrowed: 127 computed callbacks remain.
The arrival walk from the vehicle to the park is tp.exe's (October 17, 2026)#
Arriving guests no longer walk a lane of five cells off the path grid. They are made where tp.exe makes them and walk the cell map through its states 0 to 5 (WALK-008 and GUEST-012 retired, ARRIVAL-001, WALK-006 and ARRIVAL-003 narrowed). Read in tp.exe via REA:
Creation (
0x4CF720,0x4FAEC0,0x4FB201): a guest is made at the centre of the bus stop B cell (two rows up for the seaplane and the Ferry), takes the entrance side (R & 1) and the sideways byte, and asks for the walk to the bus-side crossing cell (0x4D8710: side A's or B's X with side A's row; the y byte is 0xC8). A route makes state 0, none state 6. The person constructor stores the purpose speed 25 (0x4FB1C1), which the needs phase and the booth walk overwrite.State 0 to 2 (
0x501A0F,0x4FF520,0x4FF730): the walk to the crossing cell ends in state 1, which waits for the vehicle (0x51A760) and then draws the booth side and the two bytes of the point and asks for the route; state 2 sets the speed term and walks to the booth, ending in state 4 with the park open and in state 3 with it closed.State 3 and 5 (
0x4FF7F0,0x4FFB20,0x501E6E): a paid guest waits in state 3 with a drawn wait of 200 to 349 turns; it walks on to the entrance cell of a drawn side only as the head of its cell's thing list. A closed park or a shut gate counts the wait down and sends the guest home (mask 1, a drawn gate crossing cell, state 18 with the exit counter 0, so it is never recalled); an unpaid guest goes back to its booth. State 5 walks in, turns back to a booth when the park closes, and numbers the visitor (0x51AAF0) on arrival.Visitor numbers:
Guest.VisitorNumber(+0x1D8) and the park'sVisitorCount(+0x1DA714) are state now, saved, imported from an original save (mArrivalIndex,mNumberOfVisitorsToDate) and shown by the visitor windows ("New Visitor" until the entrance) instead of the thing id.The way home is the original's too: a booth refusal or a closed park's state 3 walks to the gate's crossing cell by the original search, and a stop cell no route reaches leaves the walk stuck in state 20 as
0x5019F0does; the off-grid lane fallback is gone.IsOnParkCellis the original's cell test (0x4FA990: types 0, 1, 3, 9 and 10), so the thought pick and the balloon percentages no longer count a guest on a walkway cell.Narrowed: ARRIVAL-001 keeps the cell thing lists (WALK-003), the update order (DET-013) and the unrestored script state of an imported vehicle; WALK-006 keeps only the last walk into the ride's entrance cell (a trial of the original walk for it showed that guests whose queue is edited away under them would stay stuck where the route walk finishes); ARRIVAL-003's coaster and kart parts stay (the coaster test
0x441970is mapped: self-intersection count+0x140, complete and closed, not the coaster being edited,0x790FEC). DET-014 loses the arrival clauses.
Pinned digests move (docs/DETERMINISM.md): the fixed synthetic run 0x5F177F986FADADB1 → 0x3DA16AED71E2F1E4, the cross grid of PathBuilderTests 61 admissions 0x397F3EC43F6F70C8 → 0x7E11BFA00FE093FD; the Jungle guest run 0x30F213E46933EB8C (21 admissions) → 0xBC02D81A5FC6621D (20).
Saves: guest snapshot schema 9 (optional Paid, VisitorNumber and the park's VisitorCount; state 3 is a new guest state; the gate wait BoothWait may now hold up to 349). A save of schema 8 or older may hold a guest on an arrival lane: it is restored on the cell map in the state its lane position stood for (the walk to the crossing, the wait, the walk to the booth, the booth, the walk to the entrance, the way home with the leaving mask, or waiting at the stop), with no draw. A guest of schema 9 that carries a lane is refused. The conversion of lane guests is a design choice, labelled EXT:legacy-save-arrival-lane (the lane has no counterpart in tp.exe); a converted guest on its way to the entrance counts as having paid. An original save imports its guests in states 0 to 5, 18, 19 and 21 on the map in their saved state (state 3 with its paid word and wait). Verified with the jungle original-level smoke and the park-resume smokes: guests arrive, walk to the booth, pay and enter.
Still open: the cell thing lists (WALK-003), the update order and the thing sweep (DET-013), the state-13 walk into the ride's entrance cell (WALK-006).
Riders show on Aztec Mayhem and four other rides (October 17, 2026)#
Guests who boarded Aztec Mayhem (Azteekse Tekens in Dutch) disappeared: the ride's seats stayed empty. The ride, like The Firepit, Inca Totem, Hover Bot Havoc and Rock 'n Roll, runs no ADDHEAD; its script seats a rider with WALKON and the head action 4, which hangs the rider's head on head id u2 (the rider counter) when the walk-on ends, and WALKOFF takes it down (tp.exe 0x00557D80, 0x005571A0). OpenTPW only drew heads that ADDHEAD had placed, and a boarded rider is not drawn as a body, so these five rides showed nothing.
RideVisitorBridgenow hangs the head for the head action (RideHeadSpace.Hang) and takes it down atWALKOFF; the walk slot is kept (and saved) for it.The head hangs at once, without the walk-on time and the walking body before it (the existing TOUR-011 approximation).
Pinned by
WalkOnHeadActionTestsand, with the original data,RideHeadsCorpusTests(the five rides run with real riders).Reviewed against tp.exe again: only the head action 4 reaches the head hang (the walk update
0x00557D80state 1 and0x005571A0); the shipped scripts use the actions 1, 2, 4, 5 and 6 and 5 and 6 draw no head. The walk-on time is read by the same update and gates only the walking body and the head, so TOUR-011 now says exactly that.A save in the middle of the ride keeps the heads and the walk slots, and a save without walk slots loads (
HeadsAndWalkSlotsSurviveASaveInTheMiddleOfTheRide).
The buy list selects the row under the pointer (October 17, 2026)#
The original. The buy window's list (control 504, attribute
0x91) includes attribute0x80, so every pointer move over it (messages0x10001and0x10003,0x665c35) runs0x6656a0: the row under the pointer is selected through0x66552eand0x66525c, the same path a click or an arrow key takes (0x665739). The selection posts0x401to the window, whose handler0x4ac9e8refreshes the stats frame at once (0x4abb00) and arms the preview; the update (0x4ac42e) makes the preview object, footprint and name (0x4ab1b0) once the clock is more than 500 ms past the last change.Leaving and clicking. The list handles no message for the pointer leaving, and a pointer below the last row leaves the selection alone (attribute
0x100is not set), so the selection stays on the last hovered row. A left click selects the row and posts0x400(0x6655a2), which is the purchase (0x4ac4f9); the other button posts0x402, which the window ignores, so it backs out.What changed. Hovering a row selects it, the stats follow immediately and the preview after 500 ms (also for the first preview when the window opens), a left click buys even without a prior hover, and the loans list (same attribute,
0x49f4e0handles only0x400) selects on hover too. The original sends the pointer messages only when the pointer position changes (0x658840), so the arrow keys and the wheel keep their selection under a resting pointer, while any pointer move selects the row under it again. The Load Park list (attribute0x81) selects on hover and loads on one click in the original; OpenTPW keeps click-to-select there and registers the difference as UI-108.
Content kit: Blender conventions, exporter and glTF reader (October 17, 2026)#
The first part of the content kit for new, original objects (CONTENT-KIT.md), phase 0 of the swimming-pool mod plan:
Blender scripts (
tools/blender/):authoring conventions: one Blender unit is one MD2 unit and a cell is 10 units; the glTF export is Y-up like MD2; custom properties mark rider head points (
opentpw_head), texture wrap and self-lit materials;an exporter that validates a scene before it writes a
.glb(head ids from 1 without gaps, texture-name length);a sample generator that builds a 3 × 3 cell pool with six swimmer head points from code, so the sample has no original art.
GltfScenereads what the exporter writes:nodes with their parent-relative transforms;
triangle meshes;
materials with embedded images;
the
extrasof nodes and materials.
Refusals: it refuses skins, animations, morph targets, sparse accessors, external files, required extensions and broken hierarchies or indices instead of ignoring them.
Tests: GltfSceneTests uses hand-built files, plus the real Blender export of the sample when Blender is installed (inconclusive otherwise). Nothing touches the game's simulation or data.
Content kit: glTF converter, TGA writer and the opentpw-kit command line (October 17, 2026)#
The last piece of phase 0 of the content pipeline: a Blender export now turns into a mod object the game loads (CONTENT-KIT.md).
GltfModelConverter(glTF toModelBuilder): the node hierarchy (a dummy root for several roots), local transforms, one MD2 mesh per mesh node with one material per glTF material, corners de-duplicated per material, normals and UVs, wrap and self-lit material extras, rider-head extras, texture names from the image names, and clear refusals (no UVs, no texture, more than 65,535 corners, long or duplicate names, bad head ids, non-finite numbers).ModelBuildergainedSelfLit(material word +0xC bit 0x1).Two conventions, with evidence. Texture V is stored bottom-up (
V = 1 - v): the object shader flips V and an original sign model carries V = 1 at its top. MD2 is a left-handed Y-up frame, so a glTF model is mirrored(x, y, -z)with reversed winding and conjugated node matrices (Blender(x, y, z)to MD2(x, z, y)): the engine's right-handed camera and clockwise culling, the stored face normals, and 800 original sign triangles in 120 models whose text reads left to right and upright only with this chain (Md2ConventionCorpusTests).TgaWriterwrites the variant every shipped TGA uses (uncompressed true colour, 24 or 32 bit, bottom-left origin, 26-byte footer): all 155 comparable shipped files are written back byte for byte. What tp.exe's TGA loader accepts beyond that was not traced.opentpw-kit(source/OpenTPW.ContentKit, in the solution):object(glb to<name>.MD2,textures/*.tga,<Name>.sam, assembled<Name>.RSE),mod(opentpw-mod.jsonandobjects.json, checked with the game's rules) andsprites(a folder ofslotNN_dD_fF.pngframes plus aset.jsonwith the flags, slots and origins to an ESP/TPC/FPC set, optionally straight into a mod'soverridestree at the pathGuestSpriteAtlasreads: tested against the realesprites.wad), with a sideshow-like settings template modelled onPuzzle.samand a placeholder pool script (guests enter, wait, leave).End to end: the Blender sample pool (or a hand-built glb) goes through the commands into a mod folder, then through the game's mod pipeline (catalog,
LoadModel,ConvertMesh,ResolveTexture, heads, the script inRideVM), through a guest rig without game data, and, with game data, through the M3 gate: the pool is bought, built, queued and ridden by guests in a headless Jungle park.Found on the way: a ride script that uses
HUSH/HOPneeds.stackof at least its capacity, because the header's stack size is the heap size (documented in RSE-SCRIPTS.md).
Not verified: tp.exe's acceptance of authored files, the renderer's draw of a converted model (the placement entity needs a GPU), a sideshow-category object in a park (the gate places rides only).
DET-013 records the skipped-slice object follow (October 17, 2026)#
What changed. Text only; behaviour is unchanged. The review of the substep scheduler found a second
(script id xor pass counter) & 7test at0x551A1F: a script whose slice is skipped still follows its attached object in a branch of its own, on the pass its id selects. OpenTPW runs that follow on every tick. DET-013 anddocs/DETERMINISM.mdnow say so, and that the effects update0x475360sits inside the original's even-substep block, where OpenTPW runs it per 60 Hz tick.
The Dutch front-end smoke presses the Dutch window keys (October 17, 2026)#
--front-end --smoke-test --language Dutch failed at "the injected V opens the All Visitors window". The game was right and the smoke wrong: tp.exe's key group initialiser (0x40cb80) copies the 21 letters of the language's KEYBOARD.str over the window shortcuts, and the Dutch file (KAIVWBFLTMOCWBAHSO,.P) makes B the All Visitors key, V the All Attractions key and K the Buy key, so the injected V opened All Attractions. Input.ApplyKeyboardStrings already did this (and KeyboardStringsTests pins the Dutch letters); the smoke hard-coded English V and B. It now injects Input.ChordKey( InputButton.AllVisitors ) and Input.ChordKey( InputButton.BuyAttractions ), so the same steps pass in every language. No game behaviour changed.
A sprite bank and ESP writer, proven on all 121 shipped files (October 17, 2026)#
Phase 0 of the content pipeline: original sprite sets (guests, staff, heads) can now be authored and written, not only read.
Writers (
SpriteBankWriter,SpriteAnimationWriter): rewrite every.FPC/.TPCbank (75) and.ESPtable (46) ofesprites.wadbyte for byte. The RLE encoder turns every run of two or more equal indices into a repeat, as the shipped files do;SpriteBankFile.HeaderWordkeeps the one header field the reader used to drop (0 everywhere).Authoring (
SpriteSetBuilder): RGBA frames per direction and slot, performance entries and the flag bytes in,.ESPplus FPC/TPC out. The paletted format means one shared 255-entry palette per set, exact up to 255 colours and median cut beyond.Tests: the corpus roundtrip (skips without
OPENTPW_GAME_PATH) and no-data tests that build a 2 directions x 2 frames set, read it back throughSpriteBankFileandSpriteAnimationFileand load it throughGuestSpriteAtlas.LoadSetson the CPU.Unverified: the game's own acceptance of an authored set (the original was not run), run and literal splits at 127 (no shipped row is long enough), and the blend of palette alpha. See docs/GUESTS.md.
Exit To Lobby no longer fails while the advisor is speaking (October 17, 2026)#
Leaving a Full Simulation park within about half a minute of its start (the advisor's level-start welcome speaks for about 28 s in English) showed the "automatic checkpoint failed" dialog instead of the lobby: the checkpoint refuses to capture the advisor while a response is being spoken (the speech has no snapshot seam), and the exit asked for exactly that capture. The player had to wait for the speech or press Retry later. Found by the browser performance runner's switch scenario, whose Exit To Lobby timed out with the HUD on that dialog.
Original. Exit To Lobby (pause menu command 6, case
0x48B9EFof the handler0x48B6A0) asks no question: it stores request 2 (0x5508B0), and the park state machine0x54E360saves the park (state0xB,0x5AC610) and tears it down (state0xC, which releases the sound handles through0x51EDA0) whatever the advisor is saying. The stop path0x5996D0(run by the loader0x414D40, the restart state0xEand the level exit0x4A9380) stops the speech (0x51C0E0) and kills the advisor (0x429D60) without the cut-off slap of0x5994E0.AutomaticAdvisor.EndSpeechForExittherefore ends the speech silently right before the exit's checkpoint capture, so the checkpoint is written and the lobby opens. No other way out of a park captures the advisor (Quit Game, Load, Restart Park, a theme switch and the window close take no checkpoint).Manual Save. The original's Save command (command 2, case
0x48B7AD) has no speech test and never calls the speech stop, so a Save during a response succeeds and the speech goes on. OpenTPW's manual save now does the same: the advisor's queue and clock are saved, the speech is not (the loaded park starts silent). Only the automatic checkpoint ends the speech, because the exit leaves the park.Runner.
tools/web-perf/run.mjswaits three frames after the pause menu appears (its lines are laid out from measured text on the first frames, so an earlier click missed Exit To Lobby and the HUD stayed onpause) and names the checkpoint failure dialog in its error instead of timing out. Leaving a park now writes its checkpoint, so entering the island again offers Continue: the runner answers that screen with New park (themeStart, the choice before Back), and when the next island needs keys the fresh profile has not earned (Full Simulation refuses with the progress failure dialog) the switch scenario uses Jungle as its second park and says so in the step name. Checked against a locally published interpreter build: thejungleandswitchscenarios finish, with no park alive in the lobby.
Theme Park Inc's FSH palette codes, read from Game.exe (October 17, 2026)#
Format round 4. Theme Park Inc's single SHPI loader handles only palette codes 0x24 and 0x2A (converter 0x6B7000). For a 0x2D palette it returns with the fill routine's 256-entry stack table unwritten, so the original's colours for the one such file (icewall1.fsh) are undefined. [EXT:fsh-0x2d-palette] therefore stays an OpenTPW choice. The live alpha scan is 0x6B73A0; the copy 0x6B73F0 is unreferenced. That scan marks icewall1 as an alpha texture. The 0x24 comment also had the 24-bit path wrong: it writes nothing, and only the 16-bit path ORs the alpha mask. Docs and comments only; behaviour is unchanged. Docs: FSH.md.
The smarter-guests baseline is re-measured after the stand-cell and substep merges (October 17, 2026)#
The baseline in SMARTER-GUESTS.md was measured before #325 (old saves' access links, WALK-006 retired, ParkScenario lays its stand cells) and #326 (the substep scheduler). It is re-measured on current main with --guest-report --guest-scale extended (eight scenario seeds and the four level parks, with game data); the doc's tables, outcome mixes, instrumentation cost and a new "What moved" section are updated. No code, test constant or threshold changed: the thresholds are computed from the report by GuestReportCompare, and ScenarioFixedRunHash was already re-pinned by #325. No committed baseline JSON exists.
#326 moved nothing. The report was run on the commit before and on #326: every spread and all 40 end hashes are identical, because the report's parks do not exercise what the new scheduler changes.
#325 moved the numbers, inside the seed noise for the scenario. A refused stand-point search now dismisses the guest as tp.exe does, and the scenario's attractions have entrance cells. Scenario boarded share 0.560 to 0.544, rejected 0.392 to 0.410, departures per admission 0.562 to 0.599, guest-time happiness 48.5 to 49.0, censored wait p90 79.1 to 73.4, stuck guests 0.6 to 1.25 (max 3), all inside the new 3 SE bands.
Level parks. Boarded share Jungle 0.219 to 0.254, Fantasy 0.433 to 0.454, Space 0.398 to 0.481 (its
QueueLimitrejections fall from 1,283 to 892), Halloween 0.712 to 0.684; waits fall in the three busy parks and stuck-guest counts stay within their spread.No regression found. No unused ride, no growth in stuck guests beyond the seed spread, no collapse of the boarded share; all 5 x 8 seeds still end in distinct hashes and
queue.supersededis 0.
Checks: filtered GuestMeasurement, Determinism and Queue tests, tools/progress.py --check, tools/fidelity_register.py --check and the PPC evidence checks.
Passive guest measurement and a baseline for smarter guests (October 17, 2026)#
Phase 0a of the smarter-guests plan (SMARTER-GUESTS.md) measures the guests before any rule changes them. Nothing about the simulation changes: the pinned determinism hash, every other pin and the saves are the same, and a run with the new observer ends in the same state hash as one without.
Instrumentation.
GuestSimulation.Observer(IGuestObserver, null by default, one null test per event) reports every queue attempt and how it ends (boarded, abandoned, rejected with a reason, or unfinished), the leaving predicate of each departure (happiness byte 0, exit counter 0, park closed, plus the booth and the guards), admissions, spending and the major decisions that found nothing.GuestMetricscollects them with happiness per admission cohort and weighted by guest time, use per attraction instance with a Gini, revenue per admitted guest and stuck guests. Compared with the commit before, the default path costs the same (1.182 vs 1.194 µs per tick, identical hash, on the earlier plain-tick scenario loop).ParkScenario. A headless park without game data: two identical rides, a thrill and a calm ride, a cheap and a dear shop, and a toilet at the end of a long street.
--guest-report. Eight seeds of the scenario plus, with game data, the four level parks through the M3 gate's builder, a warm-up and a measured window in in-game days, a table and a stable JSON report (--guest-scale plan|extended). The plan's 2 + 10 days see 3 to 8 queue attempts and no departures per seed (a day is 343 ticks and an exit counter runs about 21 days), so the baseline and its acceptance thresholds (2σ of the seed spread to improve a target, 1σ to regress elsewhere) use the extended 20 + 60 days. In the baseline about 56% of the scenario's queue attempts board, 40% are rejected (mostly the dear shop's price) and the level parks' single ride saturates with waits of hundreds of turns.
After merging the substep scheduler (#312): the observer hooks also cover the swept turn (RemoveGone, FinishSweep), and DeterminismTests.FixedRunHash (now the composed pin) is unchanged with the observer on. ParkScenario and the level-park runs (M3GateOptions.SweptTurns, set only by the report) go through the game's turn order, the substep's scripts and the swept thing sweep, so the baseline measures the guests as the game runs them. That moved ScenarioFixedRunHash (its ticks used to be plain Tick calls) and the baseline numbers slightly; both were re-measured, and the observer still leaves every hash alone.
Verified with the guest, queue and determinism tests and the report run on the four themes.
Review fixes: the seeds of the scenario converged (the original reseeds the generator with each guest's id, so streams merge: seeds 1 and 4 were identical from about day 40), so every seed now has its own ride times, the report flags seeds with the same end hash and leaves them out of the spread (8 of 8 distinct in every scenario and level park now). The level-park runs closed their window after the gate stopped its objects, which turned the queues away and counted as RideClosed rejections with no unfinished attempts; the window now closes before the teardown, so unfinished attempts and their ages show (Fantasy's p90 wait is 787 turns once the unfinished ones are counted, against 559 for boarded ones alone). Also: a superseded counter (asserted 0), a restore-safe collector, departures per admission, a capacity-normalised Gini, thresholds in standard errors of the difference of two means (3 SE) implemented in --guest-compare, a turn-alignment assertion in the swept gate, recall and legacy-booth departures classified, and an auto-begin window that holds exactly the ticks after the mark. ScenarioFixedRunHash moved again with the seed-dependent ride times, and the baseline was re-measured.
Higher-resolution guest sprites for the pools extension (October 17, 2026)#
Our own guests, built in Blender, are now drawn at 2x the pixel size and keep their world size. Engine and content:
Pixels per unit honoured. The two u16 words of a sprite frame (A and B, 128 in every shipped frame;
SpriteFrame.UnknownA/UnknownBare nowPixelsPerUnitX/Y) scale a quad by 128 / A across and 128 / B down, as the original's placement0x5890E0spansoriginX / Ato(width + originX) / A.GuestAtlasFrame.Extentsdoes it for the world sprites (UiSpriteFigurescales separately);GuestRenderer(kids, costumes, swimmers),RideHeadRenderer,BalloonRenderer,ThoughtRenderer,StaffRenderer, the hire figure (UiSpriteFigure) andGuestWorldPickeruse it. With the shipped data the factor is exactly 1.0, so every quad is bit-identical (SpritePixelScaleTests, 5000 random frames;GuestAssetTestsover every shipped atlas): no capture, save or hash pin can move (sprites are presentation only).Atlas.
GuestSpriteAtlaskeeps 1024 columns up to 2048 rows and doubles the width (to 4096) beyond that; every shipped atlas stays 1024 wide, the 2x kid and head sets are 1024 x 256 to 512, the swimwear sets 1024 x 2048 (90 MiB RGBA, about 120 MiB on the GPU; the decoded pixels are released after the upload), frames at more than 128 pixels per unit get 4 pixels of padding, and a set that fits no 4096 x 4096 atlas is skipped with a warning.Art.
opentpw_guest_sprites.py --scale 2(canvas, hotspots and ppu 2x, supersample 4,pixelsPerUnit256), all 255-colour palettes, no dither needed (mean quantisation error 2.9 of 255). New--part pool: the swimwear table of 14 slots (PoolSwimSlots: stand, walk, ladder, dive, lying, shower, slide, crawl, breaststroke, tread, splash-down, spa sitting, ring floating, rope swing) fromopentpw_pool_poses.py. Compare and sheet toolopentpw_guest_hires_compare.py. The kit'sspritescommand takespixelsPerUnit.Shipping.
content/pools/esprites/Swim(the swimwear sets, 6.56 MB),Generic/Kids(1.23 MB: only slots 0, 1 and 14, the ones the land renderers draw) andGeneric/Kidsheads(1.05 MB) at 2x,.TPConly: 8.84 MB of sprites, 9.06 MB with the objects.PoolGuestSpritesmakes the kid and head sets replace the game's together, at level setup, only in a Theme Park World park and only while the new presentation-only extensionopentpw.pools-guest-art(on by default, translated on the Extensions and mods screen, no simulation flag) is on; the swim sets are decoded on a worker at level setup.tools/pools/build-content.shrebuilds it (about 30 minutes).Browser. The sprite sets are not embedded in the startup assembly; the browser fetches them in the background after start, verified against a pinned manifest (see the web pool sprites entry).
Anchoring. The ladder, dive, lying, sliding and rope-swing slots have their hotspot at the centre of the torso; the swimmers' renderer draws them with their bottom edge at the guest's point (
PoolSwimSlots.BottomAnchored), so the height a pool activity returns is where the body rests in every slot.
Not verified: costumes, parents and staff keep the original art; the TPI sets render but are not shipped (a TPI park keeps its own guests, its swimmers use the TPW swim sets); the poses of the activities were not checked on screen for every theme.
An imported original save keeps the slots of the things it does not rebuild (October 17, 2026)#
tp.exe's load (0x518D43) keeps every saved thing in its slot and rebuilds the free list from the slots the save leaves unused, so the next thing built takes the lowest unused id whatever happens to the saved things later. OpenTPW used to free the slot of a saved thing it did not rebuild (a guest in a state the import drops, an object that did not resolve, a staff member nobody employs), so the next thing took that slot last in, first out and every later id differed from the original's.
Placeholders (
ThingPool.Hold,OriginalThingSlots.HoldUnbuilt): such a slot stays used, with its saved model and its place in the used list, as a placeholder that nothing names, simulates or frees; a destroy request for it changes nothing. After the Easymode import the free list is the original's and the next allocated id is 43 (OriginalThingSlotsTests); on a copy of that save with four dropped guests, an unresolved object and an unemployed staff member the next ids are still 43, 44, 45, as the original's load gives them. The Easymode import itself rebuilds all 42 things, so no pinned digest moves.OpenTPW's own save keeps the placeholders next to the exact free list and the waiting destroy requests (
ThingPoolSnapshot.Held, optional, validated: a placeholder is a used slot no thing names). The exact free list is split out of WALK-010 as[EXT:resume-exact-thing-pool]: the original's save format drops it, an OpenTPW save keeps it so a resumed park continues exactly as the live one. WALK-010 now reads: what the original builds that OpenTPW does not takes no slot, a placeholder never runs on or is destroyed, the destroy requests of a turn come in OpenTPW's update order, the guests' histories hold the script world's attraction ids.Inventory (docs/SAVE-THINGS.md): for Easymode, the only shipped save, every saved class with its constructor, count, Info.Id and the open ID that covers each gap; and, read through
OPENTPW_TPWS_SAVES, the eleven private saves: seven parks of five fixed items and one to four guests each, only the two fantasy saves hold a placeholder (guest 39, state 20), none holds a coaster or a track ride (SAVE-920 to SAVE-923 still lack a coaster save), and the fourrestart.INTSdo not read throughImportyet (a calendar and an attraction history ring in their initial state). All 14 attractions, 13 guests and 5 staff members are rebuilt (with the SAVE-006, SAVE-002 and SAVE-004 gaps); the weather, park analyser, tag system, mechanic HQ and UI message receiver things (5 of 42) import nothing and are only bundled in SAVE-010, which needs a per-class split once any of them has a counterpart.
The camera panel loses its invented view-cycle button (October 17, 2026)#
What the original has. The HUD camera button (
b_camera, 474, arm child0x27) only slides out the panel of table0x751720, which holds exactly two buttons: the camcorder (b_1person, 99) and the postcard (b_postcard, 100). No other window control changes the camera's zoom (0x7909ec) or yaw (0x790a38): the object windows (0x755150,0x755908,0x755e80) carry onlyb_ride it!(the ride view, UI-094), and the visitor and employee windows (0x7575e0,0x756f48) carryb_locate. Every locate and map jump (0x4867b0,0x486860,0x4868d0, the minimap click0x5f1050) calls the focus setter0x42aab0with the zoom and yaw arguments null, so it moves only the target. The zoom changes only through the mouse wheel and keys (0x42a760,0x42b1c0, clamped to 70..130) and0x42a130(Home), and it is saved with the park asgf_CameraZoomandgf_YRotation(0x42cec0).What changed.
[EXT:camera-view-cycle]is retired by removal: the third round button next to the camcorder and postcard buttons,ParkCameraMode.CycleView, theParkCameraViewenum and the 70/110/130 stops are gone, and the panel's background is the table's width. A test pins the original's rule that a focus changes only the target.Left open. Nothing about this control; UI-042's remaining parts (panel end position, camcorder walk controls, postcard photo) are unchanged.
Guests climb a pool ladder on the spot (October 17, 2026)#
The pool ladder no longer makes a guest glide diagonally out of the pool: the swimmer goes to the foot of the ladder (0.78 cell from the land cell's middle, right at the rungs, measured on the ladder model), faces it, climbs for 8 turns without moving while the drawn feet rise from the water to the deck, steps over the coping onto the deck (walk slot, about 6 turns) and then stands, walks to the rim, jumps in and splashes as before.
The lounger's climb-out uses the same foot, the same on-the-spot climb and then a short walk onto the seat, the feet rising onto the cushion; the diving board's stair climb is unchanged.
The ladder and lounger steps are renumbered (0 to 6);
PoolExtrasFixedRunHashmoved to0xA07E1347C234D5E1for that reason only (docs/DETERMINISM.md); the original game has no pools.The four ladder models were regenerated (
add_ladder): the rails curve over the coping and go down along the pool wall into the water, with five rungs 1.7 units apart from above the deck to below the water line, at the guest's foot point; only the ladder MD2s changed (textures, .sam and .rse are byte-identical).New tests pin the model measurements, the unmoving climb with monotonically rising feet, the short step onto the deck and the completed activity. The result still needs a look in a native capture.
Front-end smoke completion line names start and end language (October 17, 2026)#
The native front-end smoke ended with "passed in ", which printed a different language than --language (Dutch gave Italian, English gave Dutch). That is not an off-by-one in GameLanguage or the options list: the smoke deliberately picks a language in the park (PlanLanguageInPark), which applies once the park is left, so the run ends in the next language of the options list. The install carries Dutch, English, Italian and Polish folders and the list is alphabetical, which matches the printed names. The completion line now prints both the starting and the ending language.
A large spa pool for four (October 17, 2026)#
A second spa object next to the one-seat spa (POOLS.md, "Spa pool").
The object: "Large Spa Pool" (Info.Ids 65216 to 65219, one per theme, 2 x 2 cells, price 1800, names in the nine languages). Placement, the access cell and the erase guard are the small spa's rules: it needs pool water on any side. Made by
tools/blender/opentpw_pool_attractions.py(bigspa) andtools/pools/build-content.sh.Four seats: the basin fills the footprint, and the seat rule is the spa fix's (seat distance plus the seated sprite's half width below the rim stays inside the basin): four seats on a circle of 0.48 cell, one per cell, 0.68 cell apart. A fifth would not fit without crowding.
Unchanged: the one-seat spa, its model and all pinned determinism runs (none of them places a large spa).
Tests:
PoolsSpaGeometryTests(both spas, every theme),PoolsAttractionsTests(four guests sit at once, one per cell),PoolsContentTestsandPoolsAttractionsContentTests(the new objects, ids and counts).
Old saves get the entrance and exit link bytes at load, and a refused stand-point search is the original's dismissal (October 17, 2026)#
A park resumed from an OpenTPW save made before an imported park's entrance and exit cells took their saved link byte (#303) holds those cells without the byte, so the edge test 0x4D8750 refused a called guest's last walk into the stand point and OpenTPW kept a route walk where tp.exe dismisses the guest. That fallback is gone and the byte is laid at load instead (WALK-006 retired).
Repair at load (
[EXT:legacy-save-access-links], user-approved 2026-10-17): when a park is resumed,ObjectAccessCells.RepairMissingLinksgives every ride or shop entrance and exit cell that holds no link bit the byte a placement would lay, through the same writers: the entrance's own bit and queue link toward its queue cell (0x522700,0x5227E0), and the path writer0x5348D0in mode 1 from the outside path cell, which reaches the type-9 or type-10 cell along its queue link (0x5297BD,0x52989A,0x529A58). A cell that already holds a bit is not written to, and neither is a cell whose outside cell is no longer the one the placement laid, so saves holding correct bytes load unchanged. The original needs no repair: its saves always hold the byte (cell serializer0x4D0B30).A refused search (
0x4FFFF0): the log line "the player has removed the path from under me and I can no longer get into object", the called slot released (0x4E0AC0), the guest unlinked (0x4DDD20) and dismissed (0x5012F0) with no thought, as a refused queue walk already did.Kept:
[EXT:legacy-save-route-walk]still covers a route walk restored mid-walk from an even older save (and a guest off the grid); its text no longer cites WALK-006.Tests:
ObjectAccessCellsTestsstrips the bytes of a saved layout and checks the repair equals a fresh placement's bytes, leaves present bytes alone (the cell map's version does not move) and skips a removed outside cell;ObjectAccessCellsTestsalso resumes an old save through the level's own resume branch (Level.ConnectObjectsToGuests) and has a called guest walk in;QueueStandWalkTestschecks that a repaired entrance lets the called guest walk in through the search and that a refused search dismisses the guest.Harnesses: a ride or shop registered without a placement (the M3 gate, the developer prototype ride
[EXT:developer-prototype], and the test rigs ofQueueTests,GuestSnapshotTests,GuestTestsand the asset tests) had leaned on the route-walk fallback because no entrance cell was laid for the search; they now lay it withObjectAccessCells.LayStandCell, as a placement does. The prototype takes the cell back when it is removed (ObjectAccessCells.ClearStandCell, which unlinks it as the cell clear0x5367A0does and skips a cell an object owns), and a prototype saved before the build laid it gets the cell at resume.
Determinism pins: DeterminismTests.FixedRunHash and every pin of a game-data run do not move. GuestMeasurementTests.ScenarioFixedRunHash (the guest measurement's headless ParkScenario, which registers its attractions without a placement) moves from 0xF430B24D6D6B950E to 0xBD62B929BDB55659: the scenario now lays the stand cell of each attraction (ObjectAccessCells.LayStandCell), so the cell map it hashes holds those cells and the called guests' last walk is the search walk of the original instead of the route-walk fallback. The guest-measurement baseline of the level parks (built through the M3 gate, which lays the same cells) and of the scenario was measured with the fallback; re-measure it before comparing a smarter-guests run against it. The full suite with game data (0 failed) and the smokes (--smoke-test sandbox and Jungle, --park-resume-smoke capture and restore) pass; a save that already holds correct bytes is not written to, so a resumed park's cell map and hash are unchanged.
License names the fork's copyright holder (October 17, 2026)#
What changed.
LICENSE.mdkeeps Alex Guthrie's MIT notice for the original project (2022-2025), as the license requires, and adds a copyright line for the work done in this fork since 2026 (Eugene Krabs). The license text itself is unchanged.
Load Park list flow is an approved EXT (October 17, 2026)#
What changed. Labels and docs only; behaviour is unchanged. The original's load list (attribute 0x81) selects the row under the pointer and loads on one click (
0x6656a0,0x6655a2); OpenTPW keeps its select-then-load flow because its Load Park button ([EXT:load-chooser]) acts on the selection, which a hover would retarget on the way to the button. The user approved keeping the button on 2026-10-17, soAPPROX:UI-108is retired and the flow is[EXT:load-list-select-then-load].
MD2 model writer and authoring API (October 17, 2026)#
Writer (
ModelFileWriter,ModelLayout): a version 221.203 geometry member is written back from aModelFileread withcaptureLayout: true, byte for byte for all 838 geometry members of the local corpus (Md2WriterCorpusTests; the 1,278 animation members are out of scope and not written). The layout keeps the header as read, the region and per-mesh offsets, node name offsets and attribute data offsets; the header words of unknown meaning and the sibling order live in the model (HeaderOpaque,ModelNode.FirstChildIndex/NextSiblingIndex), so planned layouts keep them. Bytes no field accounts for are kept as reportedGapsof a captured layout (a last resort); a layout is used only while the model keeps the shape it was captured for. A model read without a layout is written with a planned one; all 838 original models read back field-equal from it.Attribute data blocks (review fix). The 28 members' non-zero "gap" runs were not unreferenced: every attribute record with type flag 0x40 points at a 16-byte block (
u32and three floats; 248 of 248 records, none without the flag), and the high 16 bits of its word are the distance back to a second 16-byte position entry (126 records; the entries the first review pass still saw as gaps in 12 members). Both are decoded (ModelAttributeData,Position), placed and pointer-fixed by the writer in both layouts, and no corpus member needs gap bytes any more.Builder (
ModelBuilder): nodes with a hierarchy and transforms, meshes of textured materials, texture names resolved as<archive>/textures/<name>, wrap/clamp slot flags (0x10/0x20), and head records (flag 0x80, default type 0xB1, ids from 1; flag 0x40 types need their data block) on nodes for a ride script's ADDHEAD. Tests need no game data: a two-node model with a textured quad and two head records reads back with every field and the head lookup finds both ids; a built model loads as a mod object through the catalog andObjectAssets.Unverified: the defaults for fields of unknown meaning (header words, flags, node types, bounds) are the commonest corpus values and the planned layout is not the exporter's; tp.exe has not been run on a written model. Table in docs/MD2-MODELS.md, "Writing and authoring".
MD2 texture slots wrap or clamp like tp.exe (October 17, 2026)#
Original MD2 textures now follow the slot's own address mode instead of wrapping every slot:
The rule, re-read in tp.exe via REA: slot flag 0x10 or 0x20 becomes texture bit 0x10000/0x20000 (
0x575E9C), either bit sets render-key bit 0x400000 (0x581847:test 0x30000,or 0x400000;0x590C40), and the stage decoder0x567620setsD3DTSS_ADDRESSto WRAP for that bit and CLAMP without it (0x5678CFthrough0x567A70: state 12, values 1 and 3).Per corner, not per texture: objects, tracks, tours, coaster cars and pylons, terrain scenery, lobby models and the advisor mark each corner of a non-wrapping slot with OpenTPW's vertex bit 0x80000000 (
TextureSlotAddressing), so one image shared through the texture cache by a wrapping and a clamping slot draws correctly in both. These renderers bound their 16-slot arrays with one wrapping sampler; the texture's ownTextureFlags.Repeat(mirror) never reached them.The clamp is an emulation (
[EXT:md2-clamp-in-shader]): WebGL has 16 texture units, so test.shader and advisor.shader clamp the coordinates on the wrapping sampler (half a texel of the coarsest selectable mip inside the edges) and sample withtextureGradand the unclamped derivatives. A clamped slot keeps the graphics preset's filter instead of the original's pointMINFILTER(COMPAT-010 narrowed).Corpus: 2,457 of the 7,282 slots wrap; 67,039 of their corners lie outside 0..1 and no corner of a clamped slot does, so the change only stops a clamped slot's edge texels from bleeding in the opposite edge.
Rendering only: the run hash and saves are unchanged. Verified with the full test run with the game data and the native shader tests, and with silent native jungle captures before and after: on pixels that are stable between two runs, the change is confined to one-pixel lines along the seams of clamped slots (the river-bank scenery), and wrapping slots tile as before.
Buy window: objects from outside the game data get their preview model (October 17, 2026)#
The buy window's preview frame stayed black for the pools extension's objects (pool lamp, underwater lamp, round fountain, staff room, stepping stone, rope swing, water jets, whirlpool and the rest), and for every other object that does not come from the game data (data mods, bonus content). When mod objects were added, OriginalBuildCatalog gave such an object no preview model at all, because the HUD read models and textures only from the game's own file system.
OriginalBuildCatalognow gives every object its preview model (P<name>.MD2, or the main model), wherever it comes from.ParkHud.GetIconreads an external object's model from its own root (ObjectAssets.LoadModel( entry.FileSystem, … )) and takes the textures of its archive as run-time textures, decoded from that root the way the park draws the object (OriginalObject.TryLoadTexture); game-data textures (a theme'ssharetex) still go through the path resolver.Tests:
PoolsContentTests.EveryPoolObjectInTheBuyWindowHasAPreviewModelFromItsOwnRoot(every listed pool object in all four themes has a model that builds a preview with every texture found), andOriginalUiAssetTests.BuildMenuContainsEveryBuildableThemeObjectWithItsOriginalDatanow expects a preview model for bonus objects as well.
The Move tool and the click handler's modes (October 17, 2026)#
The tool click handler 0x524960 (about 1,200 lines of pseudocode) was read mode by mode in tp.exe via REA; the modes are tabulated in docs/UI.md.
Built
The Move tool (UI-104 retired): the object windows'
b_move(0x3e2c,0xc080,0xa0a8) picks the object up through the erase of the demolition (0x48cfa0runs0x524960in mode 0x33, which runs0x527ee0, the very call of the erase button without its confirmation) and arms the same type at its angle in mode 0x3B, which places like mode 4 (0x5253d5). Only the type and the angle survive (0x81b3acand0x81b14care never read), the new object starts afresh, and cancelling leaves the object gone. The ride is paid by the constructor (0x4db4e2), so a move costs the whole price again less the pick-up's scrap credit; the flag0x8186d4frees only the path and queue cells the placement lays, and mode 4 sets it too. The ride window enables the button with0x52c2b0: always, except for a kart or water ride, whose two tiles beside the station must hold one arm each (Level.MoveEnabled). The earlier reading, that the flag made the placement free, was wrong. Mode 0x3b's hover (0x523940) has no balance compare and no cash pointer (mode 4's has,0x523658), so a move is not refused for cash.
Narrowed or settled
TRACK-018 narrowed: the Crypt Karts' bridge clips (ten pieces) carry one texture-frame track whose 20 keys all name frame 0 of a one-frame slot, so there is nothing to draw (
TrackPieceClipDataTests). Left: the track edit sub-modes 0xE and 0x13 (a two-click cut of a closed circuit, the continuation of an open one from its last tile,0x530830), decoded indocs/TRACKS.mdbut not built.TRACK-014: the readers of the step number are the edit sub-modes only. ECON-026: the hoarding line is clicked through mode 0x19 and the line walker
0x53aac0; the per-step writes of0x5370e0are open.UI-031:
+0x29cis the map type word of the queue's start cell (type 1, a path, ends the tool); the coaster sub-mode takes the same tail into the queue tool.UI-095: the link writes of
0x524960are on the second layer's cells, never an object's map cell. QUEUE-014: the first click of the path and queue tools is read. QUEUE-023: the four call sites of the re-evaluation0x4de1f0in the click handler are listed. AUDIO-009: the 13 sound call sites of the build tools' code are listed.
Determinism. No pin change: the Move tool only reuses the build path; no new simulation state, random draw or save field.
Verification. See the PR description for the test, register, evidence and smoke runs.
Buy window: a golden-ticket row previews the Mystery ride, not the ride it hides (October 17, 2026)#
A golden-ticket row the player has not bought yet already read "Mystery Ride!" (UITEXT 137) in the buy list, but selecting it turned the real ride's model in the preview frame, with its name and footprint, which gave the surprise away. tp.exe's preview maker (0x4ab1b0) sends such a row (type GoldenTicketCost above 0, not in the bought-with-tickets set 0x4d4b70) down the branch of the negative land-row ids: the preview object is the record of type 100, the Mystery ride tool (rides/mystery), the footprint control 0x1eb is only cleared and the name control 0x1ec gets UITEXT 137.
IBuildCatalog.MysteryPreviewoffers the type-100 tool as a preview item (OriginalBuildCatalog.MysteryRideInfoId);ParkHud.BuyPreviewModelItemturns it for a mystery row, the title uses the list name, and the footprint stays empty.The stats frame (
0x4abb00) has no such test in tp.exe, so it keeps showing the ride's own values, as the original does.Tests:
BuyListTicketRowTests.AnUnboughtTicketRowPreviewsTheMysteryRideAndNotTheRideItHides, and with dataOriginalUiAssetTests.EveryThemeHasTheMysteryRidePreviewForTicketRows(all four themes have the model, every texture resolves).
OpenTPW moves to .NET 11 on RC2 now, with no pin change and no measurable speed-up (October 17, 2026)#
Every project now targets net11.0 (the net8.0 tools were not touched), global.json pins SDK 11.0.100-rc.2.26504.105 with allowPrerelease, CI installs that exact version with actions/setup-dotnet, and the server image uses mcr.microsoft.com/dotnet/{sdk,aspnet}:11.0. No package reference needed a bump (no Microsoft.* runtime-matched packages). The project owner chose to switch on RC2 now rather than wait for GA (expected 2026-11-10). global.json uses rollForward: latestFeature, so the GA SDK and later RCs are accepted without another change; CI and the release workflow keep the exact RC2 version until the pin is moved on purpose. The browser stays on Mono in this change.
Correctness. The full suite with game data (5842 passed, 141 skipped, 0 failed) is identical to the .NET 10 run of origin/main (4db73c11). No determinism pin changed and none was re-pinned. The M3 gate (240 simulated minutes) and the M4 gate (Jungle) print the same output on .NET 10 and .NET 11 (same guest and gate state hashes, same verdicts). The five native smokes pass. In the browser the texture hash
1CC5AEB033691043and the simulation hash0B45FAA2ED526C78are identical on all four builds (Mono interpreter and AOT, net10 and net11).What broke. Nothing in the code. One tooling regression: the RC2 SDK breaks restore and
deps.jsongeneration when the checkout is reached through a symlinked path (macOS/tmpis/private/tmp): project references are missing fromOpenTPW.deps.json, so the setup tests that start the game as a child process fail with "Could not load OpenTPW.Common". Working from the physical path (/private/tmp/...) is fine; .NET 10 SDK is not affected. Linux CI is not affected.Browser.
Microsoft.NET.Sdk.WebAssemblystill uses Mono on .NET 11 RC2 by default; thewasm-toolsworkload installs for it and both the interpreter and AOT publish work with the existing project file.-p:UseMonoRuntime=false(CoreCLR on WebAssembly) publishes a smaller bundle (29.8 MB raw, 12.3 MB Brotli, interpreter-style) but the page never reached its first frame in 600 s, so it is not usable yet.Speed. Medians of 3 alternating runs, same machine, one slot,
.NET 10.0.401against11.0.100-rc.2; the machine was shared, so CPU time (user) is the steadier column. See the table in the pull request. In short: native CPU is within noise (M3 +3.7 %, M4 -1.5 %, test suite user time -3 %), browser interpreter is 6-14 % faster in several measures, browser AOT is not faster and the AOT bundle is 2.9 % larger (Brotli).
| Measure (median of 3, range) | .NET 10.0.401 | .NET 11 RC2 |
|---|---|---|
| Full suite with game data, wall | 149 s (141-200) | 143 s (135-192) |
| Full suite with game data, user CPU | 125.9 s (125.1-161.4) | 121.6 s (115.0-158.7) |
| M3 gate, 240 simulated minutes, user CPU | 15.58 s (15.47-16.64) | 16.16 s (15.78-16.48) |
| M3 gate, cycles | 64.2 G (63.0-68.0) | 66.0 G (63.7-66.3) |
| M4 gate (Jungle), user CPU | 10.05 s (10.03-10.45) | 9.90 s (9.84-10.26) |
| Process start (setup inspect child), user CPU | 0.03 s | 0.03 s |
| Native peak RSS, M3 gate | 137 MB | 144 MB |
| Browser AOT bundle, Brotli / raw | 18.9 MB / 64.0 MB | 19.4 MB / 67.3 MB |
| Browser interpreter bundle, Brotli / raw | 12.8 MB / 27.7 MB | 13.0 MB / 28.4 MB |
| Browser AOT: first frame / Jungle ready | 1668 / 7926 ms | 1712 / 8071 ms |
| Browser AOT: Jungle steady busy / p95 frame | 10.5 % / 1.8 ms | 9.6 % / 1.5 ms |
| Browser AOT: texture decode / 3000-tick run | 574 / 163 ms | 517 / 172 ms |
| Browser interpreter: Jungle ready | 10564 ms | 10025 ms |
| Browser interpreter: texture decode / 3000-tick run | 2700 / 375 ms | 2429 / 357 ms |
| Browser interpreter: Jungle steady busy / p95 frame | 23.5 % / 3.8 ms | 20.6 % / 3.2 ms |
The web harness needed three Accept presses after the Full Simulation click to get past the new profile screen (a local, uncommitted edit of tools/web-perf/run.mjs; the committed harness stops at the Game Mode screen on main, on .NET 10 as well).
Online button labels fit their buttons (October 17, 2026)#
On the online screens some labels were drawn one character per line: the outbox's three bulk buttons ("Mark all for sending", "Mark all for deletion", "Unmark all"), the dialogs' 83 x 83 close button ("Back") and the news tab "System News". Since the text block placement of the same day the overflow also centred and spilled upward over the panel. Cause: the label fitting ([EXT:fit-button-text]) wrapped into the box when nothing fit on one line, and the text library's breaker cuts an overlong word between characters, so a box of 24 to 50 pixels gave one letter per line. Original, read statically in tp.exe (nothing run): the table builder (0x65fd58) creates these controls as button objects (0x6688b3) from a rectangle, style and id only, with no text field, font slot or wrap flag; a control's text is a separate text control (0x48f830) whose wrap byte (+0xda) is off by default, so it draws one line into a bitmap the size of its box, which cuts off both ends. The original's bulk and close buttons are art buttons without these labels; the labels are OpenTPW's own text ([EXT:ONLINE-UI]).
The fix keeps the existing extension labels. The fitting now also tries the body fonts below the family's smallest size, then wraps at spaces (never inside a word) in the largest size that fits the box height, and only for a box too small for that shows the smallest size on one line. The outbox's three bulk buttons carry their label as a wrapped caption under the button, because the label cannot fit a 96 pixel button at any size. Checked in silent offscreen front-end smoke captures in English, Dutch and Korean (news, outbox): no label overflows or breaks inside a word. New tests cover UiTextFit.ChooseWrapped. Not changed: clipping an overflowing block to its box as the original's bitmap does (the batch has no clip rectangle), and a stale Dutch front-end smoke assertion (the injected V key) when the smoke is started with --language Dutch.
The park camera is the original's (October 17, 2026)#
The park view now uses tp.exe's camera instead of OpenTPW's own tuned pose (UI-101 retired, UI-094 narrowed):
Pose (
0x42b1c0): one zoom value from 70 to 130 (110 at Home) sets the pitch ((1 - t) x 45 + t x 65degrees,t = (zoom - 70) / 60) and the eye (zoom x cos/sin pitch behind and above the target, plus the ground height under the target smoothed by half each frame). The view looks along the pitch, not at the target. Yaw 0 looks along +Y; Home returns to the entrance centre (475, 175, cells 47/48, 17). Wheel steps are 10, the zoom keys 0.05 a millisecond, the rotate keys 0.002 radians a millisecond, and the pan speed the original's settled 0.02 x sqrt(zoom) a millisecond. The camera panel's view button cycles 70, 110 and 130.Projection (
0x578be0,0x56b790): one projection for the park, ride and walk views. The visible half height at unit depth is 0.5 x tan(45 degrees) = 0.5 (the pick frustum; the matrix of0x578BE0has tangent 1, but0x5781D0multiplies the view-projection by a screen matrix of 2 x the aspect word and -2, which halves the visible range) and the width follows the window (0.75 aspect at 4:3). A native capture of Lost Kingdom at the Home pose matches the PC video's first park frame (gate, booths and path edges within a few pixels at 1024 x 768); wider windows keep the height and show more width.Still open under UI-107: the fog range (the video shows no fog at the top of the Home view, which a 135-150 range would fog), the
0xC000gate of0x567AD0and the moons. UI-930 keeps its circle test; the aspect word is height over width.Not ported: the pan ramp, the yaw easing, the velocity lean, and the camera block of saves.
Original saves: the RSSE script block and the person navigation state are decoded, and two loaders' failures are enforced (October 17, 2026)#
RSSE block (writer
0x559350, loader0x5597A0):SaveRsseBlockreads the 20-byte header, the fivePAD_words, every 0xF4-byte script struct (named fields), the eight counted buffers (code, stack, variables, string blob, limbo, bounce, walk as an entry count, nodes), the script folder and the'OBJ 'list of 0x1C-byte entries. The Jungle Easymode save is consumed to exactly 10,856 bytes with 14 records; every record's code words and string blob are byte-identical to the matching ride's.RSEmember and its sizes equal that member's header; each record's thing is an attraction with the same mesh instance. The eleven corpus saves (four themes,.TPWSand.INTS) consume exactly too. The width walk inSaveBlockWidthsnow uses this reader.Person navigation state (reader
0x50D150, 177 bytes):SaveNavigationdecodes the 16.16 fixed-point fields in the reader's order; on every guest and staff memberposequals the thing position within 1/256 cell, the radius is 0.2 and the mass 1.0, with unused sub-path distances0xCDCDCDCD.SavePersonkeeps the raw bytes and gainsNavigationState.Strictness: a Scripts block without
'SCPT'and the 0x118 record size, and a Particles block whose table sizes are not 0x9E68 / 0x8B60, now fail the split as they fail the original load ("Restore scripts FAILED"); before, the first was read as an 8-byte block and the second ended the block silently. The particle pool length is always 0 in saves the game writes (0x41661B).
The park turn runs as the original's world update (October 17, 2026)#
A park turn no longer updates guests, staff, objects, the weather and the challenge system in OpenTPW's own order. The tick that starts a turn runs tp.exe's order (main loop 0x54F4BF, world update 0x516380; DET-013 narrowed). Read in tp.exe via REA:
The sweep. The substep's ride scripts and bump module come first (
0x546C80,0x5516B0), then the turn counter advances and the used list of the thing pool is walked from its head, the thing built last (0x7CF56C, each slot's older link read after the update,0x516413..0x516431). Each thing is dispatched by its type (0x50B360): a guest (0x501650,0x5019F0), an attraction (the wear and breakdown update0x4E0B90, then the ride update and its admission0x4E0E00), the five staff types, the weather (0x512880) and the challenge system (0x4D1E90); the analyser, the HQs, the bank and the lab have no update. A thing that has asked for its destruction (byte+3, set by0x50B780) is skipped. A lost park (world state 4) skips the walk.After the walk: the gate retry on every 30th turn (
0x51643B), the turn's deferred destroys (0x516641), then0x4D7B20: the arrival update (0x4CF3E0), the staff pool, the calendar (0x4F8260) and every 100th turn the golden-ticket step. A guest that leaves now asks for its destruction at once, and the queue is freed only at a turn's end, not at the end of every 60 Hz tick, so a slot a demolition frees is taken again in the original's order.Research is the researcher's own update: first in its thing update (
0x502960), on every 20th turn and unless its state is 3, 4 or 5, not an economy-wide pass after the staff.Clocks. The guests' tick count started at 0 where an economy that begins at an original save's turn (the jungle's 755) starts at that turn's tick, so the two cut the ticks into turns a tick apart in two of five turns and one turn could not be swept as a whole. The guests' turn boundaries are now put on the economy's (
GuestSimulation.AlignTurns); theirParkTurnstill counts from their own start. Nothing changes for a park whose clocks start together.Code:
IThingSweep(the economy calls it where it ran its own thing update),Level.RunThingSweep,GuestSimulation.SweepGuest,IStaffWorld.UpdateStaffMember,ParkEconomy.UpdateRide,ResearchBy,UpdateStaffVitals(member)andCountDownJob,RideVisitorBridge.UpdateAdmission. The headless economy without a host keeps its own order (EXT:headless-economy); a lost park, a paused economy and a park without guests in the pool update as before.
Pinned digest moves (docs/DETERMINISM.md): the fixed synthetic run 0x7A199E7425A19C8B → 0xE48128553808938B (schema 21 stays). Two causes that landed separately: the called guests' last walk (WALK-006, 0x188C45B21C1E15E8 → 0x7A199E7425A19C8B) and this sweep (alone, on the base before that walk, 0x188C45B21C1E15E8 → 0x497D46DEE19D3ABE); together they give the new pin. Cause: the fixture runs Level's order and the economy advances one tick for each guest tick (it ran four, at the old Fastest speed), over 14,400 ticks so the run still crosses a month end; the lockstep clocks alone give 0x86CBDABB37372FDA, the sweep moves that to the new pin. No other pinned digest moves (the cross grid and the Jungle guest runs drive the guests alone).
Saves: no field changes. A save from before loads and continues; the guests' turn alignment is recomputed from the two tick counts.
Still open (DET-013): the substep around the turn. OpenTPW runs every script, the bump module and the tour cars on each 60 Hz tick; the original's RSSE pass (0x5516B0) gives a script one slice per eight substeps of 31 ms (its id xor the pass counter, low three bits clear, or every pass for a script whose TURBO byte +0xB8 is nonzero, which RideVM.TurboByte already holds) and runs the tour cars only on even substeps, so the draws they take between two turns and every ride's slice cadence differ. Porting it moves every ride's timing; it needs its own step. ECON-001's catch-up cap stays EXT:fixed-catch-up-cap.
Pool models keep a gap inside their footprint (October 17, 2026)#
Walkers passing the changing room were cut by its walls: the cabin and the slide towers reached the edge of their footprint, while a walker is a camera-facing sprite at the depth of its feet that the steering lets come to 2 units from a path cell's edge.
Measured on the game's own models (cross-section 2 units above the ground against the footprint): all 32 shops and 17 sideshows stand at least 0.5 to 0.9 units inside on every side, with a median of 2.3 (sideshows) to 4.4 (shops) over all sides and a per-building tightest side of 1.5 to 3.5. The original's ground slabs fill the footprint, its walls do not.
The changing room's entrance wall is now 1.6 units inside (1.1 at the door frame) and its flanks 1.6, with a 1.0 inset roof and a low apron slab over the whole footprint; the pool side stays 0.5 inside. The slide towers' flight and posts stand 1.5 inside on the entrance side and the flanks; the platform and the pool side are unchanged. The pool extras and water attractions already kept a gap.
tools/blender/opentpw_changing_room.pyandopentpw_slide_tower.pywere changed and the 12 archives regenerated (only the.MD2models differ; textures, sprites and the sprite manifest are byte-identical).PoolsContentTestspin the gap instead of the old "fills the 2 x 2 cells" and a corpus test pins the original measurement.Not checked in a native capture: how the cabin and towers look with the gap and whether a tall staff sprite still touches a wall when walking at the very edge of the path cell.
Pools: the activity host in the swim session (October 17, 2026)#
The host side of IPoolActivity (POOLS.md), shared by pool extras, water slides and water attractions.
State 25
PoolActivitywith generic per-guest fields (id, target, phase, turns, point), snapshotted, validated and hashed only while a guest is in it; the registryGuestSimulation.PoolActivities, filled by Level while the extension is on.Offer cadence from the swimmer's own stream: nothing is drawn when the registry is empty or offers nothing, so every existing pin (including
PoolsChangingRoomFixedRunHash) is unchanged. Activities with a start chance (a shower) are offered as the swim begins.Update handling of continue, back in the water and end of session; aborts on demolition, erased pool or target, park close; swimwear slot constants and per-activity slot selection.
Proven with a test-only fake activity (
PoolsActivityHostTests). No activity ships with this change.
Pools on by default (October 17, 2026)#
The official extension opentpw.pools (POOLS.md) is now on by default (DefaultEnabled: true).
Existing configs:
mods.jsonstores only explicit choices, so a player who never touched the pools toggle gets it on after the update, and an explicit"opentpw.pools": falsestays off. The browser's/config/mods.jsonbehaves the same. No migration needed.Determinism: nothing moves. A park without pool cells or a changing room saves with no
Modsfield and the same bytes with the extension on or off;FixedRunHash,PoolsFixedRunHash,PoolsChangingRoomFixedRunHashand every other pin are unchanged, research tables are unchanged ("research": false).Theme Park Inc: the pools UI is unavailable in a Theme Park Inc run even with the extension on (
FeatureGates.Poolsis false there; the pools objects are not added to its catalog), because styles, changing rooms, swim sprites and layout were made for Theme Park World only.Browser:
content/poolsis embedded and the defaults apply, so pools is on there too; sprite delivery is unchanged.Pool extras (P3) are gated by the same switch, so they follow the default and the Theme Park Inc rule.
Docs: MODS.md, POOLS.md, RUNNING.md, DETERMINISM.md. Tests:
PoolsTests(default on, old config, explicit off, Theme Park Inc).
Pools, phase P1: painted pool water cells as the opentpw.pools extension (October 17, 2026)#
A new official extension, off by default ([EXT:pools-extension], docs/POOLS.md): the player paints pool water cells of any size and shape from the buy window's Miscellaneous list, they cost 75 each (refunded when erased), are saved, and are drawn as a basin dug into the ground with a tiled deck, in the style of the park's theme. There are no guests in the water yet; pool cells are not walkable, so guests route around them.
Save rule.
AffectsSimulation: truealone would tag every save once the extension is on, soopentpw.poolsis a used-only extension: a park save records it only when the park has pool cells (ParkResumeMods.UsedOnlyExtensionIds,Capture(active, inUse)). A park without pool cells saves byte-identically with the extension on or off; a park with pool cells loads only with it on (needs opentpw.pools 1.0.0).Cell type.
ParkCellTypes.PoolWater = 0x40, above every original type (the highest is 30).CanChangeCellTypeallows it over empty cells only;IsWalkableis unchanged. Walkers that leave the paths are kept out of the water (WalkEdges.Blocked,GuestWander.OffPath: nothing changes without pool cells). A pool cell is worth what empty land is in the park value.Tool.
PoolBuilder(headless) andPoolTool(press and drag, an erase mode, undo), refusals with their own reasons (not owned, occupied, a fence post, someone standing there, terrain, too steep, money). The ground rule is a corner height spread of at most 0.25 engine units; the buildable land of the four themes is flat enough for it almost everywhere. Erasing refunds what was charged and nothing when the bank charged nothing.Depth. The terrain renderer treats pool cells as render-only holes while the extension is on (
OriginalTerrain.RenderHoleSource); heights, placement and the simulation never read them. The basin has walls down to a floor 1.75 below a level water surface, a quarter-cell deck with joints and a bevel, and translucent water that is lighter at the edge and uses two scrolling layers. The deck is opaque and lit and fogged like the park.Styles. One table (
PoolStyles) with a row per theme (jungle planks and lagoon water, hallow mossy stone and murky glowing water, space riveted metal and glowing cyan water, fantasy candy tiles and lilac water); the style follows the level's theme, other worlds get the generic one. Textures are generated in code.Pins. Every existing pin is unchanged with the extension on or off; the fixed synthetic run with 17 pool cells is pinned as
0x4EEF5812C3D8023D.Not done: swimmers, changing rooms, extras and slides (P2 to P5); pools on the park map.
Pools P2: changing rooms and swimming guests (October 17, 2026)#
Phase P2 of the opentpw.pools extension (POOLS.md): guests choose a changing room like an attraction, change, swim through the connected pool cells with whole-body swim sprites, climb out, change back and walk on.
Changing room object
[EXT:pools-changing-room]: a 2 x 2 cabin per theme (Info.Ids 65500 to 65503, range 65500 to 65519 reserved), built with the content kit (Blender script,GltfModelConverter, our own SAM and RSE), shipped as a catalog root fromcontent/pools(about 0.9 MB, generated, regenerate withtools/pools/build-content.sh; embedded in the browser build). Placement rule: a pool cell must touch its pool-side cell (NeedsPool). The pool tool refuses to erase a cell under a swimmer or on a room's back.Swim session
[EXT:pools-swim]: new statesSwimming22,ClimbingOut23,ChangingOut24 (changing in is the existing hiddenUsing). Integer 16.16 sub-cell positions, 64 headings, a per-guest xorshift stream seeded by one world draw; 40 to 70 s swim, 12 turns changing back, happiness +12. Handled: catchable list, statistics, leaving (finishes the swim first), park close, demolition, pool erased, staff, balloons, snapshot (optional fields, older saves load). NoIGuestDecisionschange: the room is scored byScoreAttraction.Rendering: swimmers use their own swim sprite sets (8 TPW kid sets,
content/pools/esprites/Swim) drawn after the water, which no longer writes depth; guests changing are hidden.Saves and determinism: nothing changes with the extension off or with pools and no room; new pin
PoolsChangingRoomFixedRunHash = 0xB5B033AE20AD9BA0(91 swims, 24 at once; it moved with the review fixes below); the asset manifest holds the extension's files only for the objects the park places, so older pool saves keep loading when the extension gains objects (found with the native smoke: a park with the extension on and no pools failed to save).Review fixes: the rooms are never research items (
"research": falsein anobjects.json,EconomyObjectInfo.NotResearched; research tables, saved research and the golden ticket are the same with the extension on or off); a demolished room's guests start no swim (IRideVisitorBridge.IsStopped); swimmers count in the census; a pool takes 2 swimmers per water cell, at least 4; the validator bounds the swim turns per state and checks the room; swim sprites are looked for once per level (the kid sprite is the fallback);--debug-*numbers parse with the invariant culture.Tools:
--debug-swimmers N,--debug-pool-offset dx,dy,OPENTPW_SMOKE_POOLS=1resume smoke.
Not verified: tp.exe's acceptance of authored files, the browser build (resource embedded, not run), the art against any original capture. The room's price is not charged by the economy. ContentKitTests.AGuestEntersTheBuiltPoolSwimsAndLeaves fails on main since PR #324 independent of this change.
Pools P3: ladder, diving board, shower, sun lounger, lamp and underwater light (October 17, 2026)#
Phase P3 of the opentpw.pools extension (POOLS.md), on top of the activity host (see the activity-host fragment): the four extras are IPoolActivitys, the other two decoration.
Objects
[EXT:pools-extras]: six per theme (Info.Ids 65000 to 65035), built with the content kit (tools/blender/opentpw_pool_extras.py, 32 x 32 textures from the cabin's generators, about 0.4 MB in all), features with no entrance andInfo.IsChoosable 0, so guests only meet them in the pool. Placement rules: a straight pool edge (ladder, board, underwater light; the board two cells out), a changing room beside it (shower), water beside it (lounger, lamp). The water beside an extra cannot be erased; demolishing an extra aborts its activities.Activities: ladder (climb out, stand, jump back in), board (climb, walk out, dive, splash; the drawn feet follow through
FeetHeight), shower (offered at the start of a swim, 60 percent, 3 to 5 seconds), sun lounger (two seats, lie 15 to 30 seconds, then back in the water or end the session). One swimmer per ladder, board, shower or seat; numbers and happiness bonuses in POOLS.md.No new cell type: the deck is ordinary owned ground with the extra's own slab; every pin and save is as before with the extension off or no extra placed. New pin
PoolExtrasFixedRunHash = 0x0C35A6A0F10D914E.Renderer: a swimwear slot a sprite set has no art for yet falls back to treading water (
GuestSpriteAtlas.UsableSlot). Tools:--debug-extras.
Not verified: the swimwear art for the activities (slots 3, 4, 5, 6, 11 are not made yet, so the guests are the treading-water art), the browser build, the objects in the original game's tools. Not done: ending a session at a ladder, the cosmetic haul-out at a plain edge, particle splashes.
Review fixes: exact per-target and per-seat occupancy from the host (no scan per site), the extras list is read again after any placement or removal, the ladder and board draw the feet between the water and the deck (PoolFeetHeights), a level-backed test places real extras, erases them mid-activity, tries to erase their water and saves in the middle of a shower. The pin moved to 0x0C35A6A0F10D914E (P2 review fixes merged; the board's dive no longer counts activity turns).
Pool swimmers keep their distance (October 17, 2026)#
Guests in a pool no longer swim through each other (POOLS.md, "Spacing of bodies in the water").
Free swimmers: they keep 0.7 cell from every body in the water (was 0.25) and steer away from 1.2 cells (was 0.5). Picked from captures of a crowded jungle pool; 0.55 was tried first and still overlapped on screen. The ways out stay: a move that increases the distance is always allowed and the crowd at the steps is ignored within 0.7 cell.
Everyone in the water is an obstacle: states 22 and 23 and the state-25 guests whose activity says it is in the water (
IPoolActivity.InWater, default false): river floaters, guests under a jet, the approach and the splash of the ladder, board, lounger and rope swing.Activities: river floaters keep a gap along the lane (drift at a quarter of the current's speed when another body is ahead within 0.8 cell, stand within 0.6); jets give each guest a spot 0.7 cell from the others; landings (ladder, lounger, board, rope swing) wait at the top, at most 40 turns, while another body is within 0.7 cell of the landing point. Slides are not touched.
Capacity: one body per water cell, at least 2 (was 2 and 4); floaters and guests under a jet count.
Performance: bodies are found through a per-tick 2 x 2 cell bucket lookup in guest-list order instead of a scan of every guest per swimmer.
Determinism: no random number is drawn and all of it is integer or 16.16.
FixedRunHashandPoolsFixedRunHashdid not move;PoolsChangingRoomFixedRunHash,PoolExtrasFixedRunHashandPoolsAttractionsFixedRunHashmoved on purpose (DETERMINISM.md, "Spacing of bodies in the water").Smoke option:
--debug-pool-lead Nsets the frames between painting the pool and the capture, so swimmers can swim before it. Captures:reports/pools-spacing-crowd.png,reports/pools-spacing-river.gif.Tests:
PoolsSpacingTests.
Pools: water attractions, wave machine, spa and lazy river (October 17, 2026)#
Phase P5 of the pools extension (POOLS.md): four own objects per theme made with the content kit and the activities and effects that use them, all on the activity host.
Rope swing, water jets, spa pool (Info.Ids 65200 to 65215, placement rule: pool water on the object's water side; the last water cell of the side cannot be erased): the guest climbs, swings and splashes in; stands under the jets (and every swimmer near them is paid a small spray bonus, with a particle spray); sits in one of the spa's eight seats.
Wave machine: settings (on or off, height, interval) belong to the machine and are stored in the flags of its access cell, so they save and hash with the cell map and the waves go with the machine; waves animate the pool-water shader, swimmers bob on them (presentation only) and are paid a small happiness bonus per wave period. A second click on the selected machine steps through four presets; a real window is not made.
Lazy river: the pool tool's river option marks a ring of cells; the rings and the current's direction per cell are derived from the flags; swimmers in the ring float round it at the current's speed.
New pin
PoolsAttractionsFixedRunHash; every earlier pin is unchanged. Saves round-trip in the middle of each activity.
Pools P4: water slides (October 17, 2026)#
Water slides for the opentpw.pools extension (POOLS.md, TRACKS.md): reachable only from the pool, free to ride, ending in the pool.
Slide towers (Info.Ids 65100 to 65107, an open-flume and a closed-tube tower per theme, made with the content kit) placed with water beside their stairs; the track is laid cell by cell (straights, quarter turns, a splash piece over the tower's own pool) at 90 per piece, through a new slide mode of the pool tool and a "Water slide track" row; the gated open-track rule (start at a tower, end in water, slope 0.2 to 0.8, ground clearance) leaves every closed-circuit track rule untouched and writes no cell.
slide.rideis anIPoolActivity: swim to the foot of the stairs, climb, wait in line on the platform (capacity 4), ride by gravity (integer physics, the rider's place a function of one turn counter), splash down, swim on. Its only draw is the swimmers' own steering on the way to the stairs. Demolishing the tower ends every ride on it; the pool tool never erases a built slide's splash cell or its tower's pool-side cells, any other pool edit leaves the save loadable (the slide just becomes unusable), and the queue tool respects the track.Generated track and pylons (
PoolSlideMeshBuilder) with per-theme colours fromPoolStyles; an optionalPoolSlidessave part (absent without slides, so other saves keep their bytes); a new determinism pin (PoolsSlidesFixedRunHash); capture options--debug-slideand--debug-pool-at.Checked on screen (
reports/pools-p4-*.png,pools-p4-slide.gif) and natively (OPENTPW_SMOKE_POOLS=slidepark-resume smoke).
PS2 sign files corrected in docs/PS2.md (October 17, 2026)#
What was wrong. The PS2 notes said sign text lives in
<ride>/sign/_name1.ssh. No such file exists in the export index.What the data shows. Sign text is baked per language in
<ride>/textures/sign_{eng,fre,ger,jpn,jap}.ssh(509 files, nearly all 128x64, type 0x85, some 0x84). The PAL ELFSLES_500.32holds the selector stringssign_ENG/FRE/GER/ITA/SPA/DUT/SWE/JPNat file offsets 0x261510..0x261580. The 234 files undersign/(233 of them 16x128) are material and paint strips, the counterpart of the PC relief strips;FANTASY/Rides/acorn/Sign/acorn1_fre.ssh(256x128) is the one baked sign there.Consequence for COMPAT-003. The baked art uses different fonts and layout, half the resolution and a lossy GM block format, so it is not a pixel oracle for the PC sign pipeline's glyph coverage.
Clarity texture pack removed (October 17, 2026)#
The Clarity pack (clarity-enhanced) is gone, on the project owner's decision. Removed: its distribution manifest and checksum, the in-game download screen and installer (TexturePackDownload, TexturePackDownloadScreen), the browser's lazy texture delivery (opentpw-textures.js, Program.AddTextureFile and friends, the CSP hosts for the texture CDN), the packaging, snapshot and static-page tools with their tests, the publish workflow and the Dockerfile copy of the manifest. Clarity was the only downloadable pack, so no download system remains. The options now offer Original, Enhanced (the former "Enhanced (legacy)", i.e. the enhanced pack the local builder makes, with the label and help text updated in all nine languages), Detailed and other installed packs. A saved clarity-enhanced choice reads as Original, is logged once and is written back (GraphicsSettings.Load); the HUD choice is kept. A local <config>/texture-packs/clarity-enhanced directory is listed like any other pack. The shipped HD hero art and the HUD/icons option are unchanged. Docs rewritten; tests removed or adapted and a migration test added.
Research group thresholds confirmed and global tickets move between parks (October 17, 2026)#
Research group opener index (verdict: OpenTPW was right). The group opener
0x503B80reads its threshold at0x785540 + 4h, h the category's highest open group, and stops at h > 6. The settings object0x785040is laid out by its builder0x401030over the 60-byte key descriptors at0x73FC70: scalar keys take consecutive slots from 1 at object + 8 + 4 x slot, and an array of members repeats its block count times. Descriptor 165,PercentageForThisTech, sits in a one-member array of 10 at slot 317, soResearchTech[0]is at0x78553Cand the opener's0x785540 + 4hisResearchTech[h + 1], which is the indexParkResearchreads (the Mac's balance +1276 for entry 0 is the same distance from the object). Nothing else reads0x78553C. A[BIN:TPW-EXE:0x00503B80 ...]tag now states the mapping; for the jungle data (0, 0, 80, 85, 85) group 1 therefore opens at 0 % and group 2 at 80 %, and no code changed.Global ticket moved between parks.
0x5AF940keeps a global ticket with one park: the first win sets the player-wide flag and the park's held byte and record, and a park that does not hold it takes it from a holder with a lower record (result 4). The only player-visible effects are the advisor line (message 234 + type, called from0x4D5270with a debug log line "Global ticket award moved here") and that the other park is no longer the holder; the player-wide count (0x5AF4A0) never changes. The ledger now keeps the holder and its record per global (GlobalHolders, optional and validated, older files load with unknown holders), the owner attaches it to the park, a second park does not earn the same global again, a better record moves it (ParkEventKind.GlobalTicketMoved) and the advisor posts message 234 to 237. Without a ledger the park keeps its own set. The advisor's lines for a first award are still not posted: the caller0x4D4E50passes the whole result of0x5AF940to0x4D5270, whose cases 1, 2 and 3 say messages 220, 221 and 222 (case 4 is the moved line). Result 1 is a first award that gains no key; 2 and 3 need the player's key total to rise (the earned count a multiple of 3 once the extra keys are added) and 3 additionally needs that total to equal the key cost (the theme settings'Keys.CostToEnter) of one of the four themes. OpenTPW posts no advice for any ticket award, local ones included, and needs the four theme costs at run time, so this stays open.HUD ticket count. The HUD counter handler
0x4A0FB0shows0x5AF5D0, the player-wide earned count (the four global flags once, the six local bytes of every park, the two secret flags) less the player's spent count, so a moved global ticket never changes it. OpenTPW shows the current park's own available tickets; this stays the registered difference UI-051, whose text now names the player-wide count, because the spent count cannot be shared until park purchases are routed into the ledger.
The first update after a restart save, and the corpus economy import (October 17, 2026)#
A follow-up to the restart.INTS import: what tp.exe does with the restart saves' unplayed calendar once the park runs.
First update (new
APPROX:ECON-063): the calendar constructor0x4F7E80stores day cache -1, the calendar loader0x4F7F30restores the saved caches unchecked, and the update0x4F8260posts a day message (0x40F4C0) whenever the computed day differs from the cache (0x4F8321), then stores the caches (0x4F8538). So the first update after loading a restart save, whose calendar still holds day -1, posts a day message whatever the date: every object's six rings roll from head -1 to 0 (0x4DD320) and the day listeners run. A new park behaves the same: the world init0x5156A0(called by the level start0x407E00before any quick save is loaded) syncs only the month and year caches to turn 0 (0x4D7AF0→0x4F85A0), so on PC a new park's first update posts a day message but no year message (the Mac oracle's constructed calendar also posted a year message). OpenTPW starts synchronised and posts neither; that difference was only described in a comment atParkCalendar.Updateand is now a register ID with the evidence needed to close it.Corpus test:
OriginalSaveCorpusTestsnow runsOriginalEconomyImport.Applyon all eleven private saves, the four restart saves included, and checks the imported object and fixed-item counts and that each save's calendar agrees with its turn.Docs: docs/TPWS-PAYLOAD.md drops the stale note that the block split and the thing walk had not run on the private saves (the note also split the table), docs/reverse/ORACLE.md qualifies "only a new park shows it" for PC and the restart saves, and docs/SAVE-THINGS.md points to ECON-063.
The original's restart.INTS saves import (October 17, 2026)#
Why they were refused. The four
restart.INTSsnapshots (one per theme) hold a park nothing has updated yet.SaveWorld.Parserequired a played calendar (month 0-11, day 1-31) andSaveAttraction.ReadHistoryrequired a history head of 0-31, so the snapshots failed. tp.exe's own loaders read both unchecked (0x4F7F30calendar,0x4E2C10history ring); the values are what the constructors build.Where the initial values come from. The macro-AI constructor
0x4F7E80(called by the world constructor0x515540) sets the calendar: start 2000-01-01 (via0x5FC5C0), month cache 0, day cache0xFFFFFFFF, year cache 0, rate 15000, and a session start of the local time at creation. The history ring constructor0x51ADE0sets current entry0xFFFFFFFF, 30 entries and no wrap.What is accepted. Exactly those two states, nothing looser:
SaveCalendar.IsInitial(start 2000-01-01, month 0, day -1, rate 15000; the session start is the wall clock, so free) and an empty ring (head -1 with 30 entries and no wrap;SaveAttraction.EmptyRingHead). Any other negative head, a wrapped or shorter empty ring, or another calendar value is still refused. The import treats the calendar as the park's start (park turn 0, no mismatch note) andDailyRingalready took head -1 as an empty ring.Result. All eleven original saves pass
OriginalSaveCorpusTests(the INTS ones now also assert the initial calendar, turn 0, no placed objects and empty rings); two synthetic tests pin the two states and their boundaries.Restart path (SAVE-012). The Mac writes
restart.INTSright after a park load (state 15,0x1c37b4) and reloads it in state 14. tp.exe does the same under the same state numbers, in the park state machine0x54E360: state 15 writes it through0x550B30right after the level start0x407E00(which first loads a quick save through0x5AC5D0when0x788160is set), and a restart request (code 1, stored by0x5508B0from the confirm dialog callback0x48B620) takes state 10 to 13 and 14, where0x5996D0(1)runs and0x5AC5F0loads the file through0x414D40. The ".INTS" and "restart" strings (0x747A20,0x747A6C) are copied into per-unit static strings (the globals0xF7ADF8and0x878A68) that these routines read. The snapshot is the park as play began, so a restart of a resumed park returns to the loaded state. OpenTPW's Restart Park (new Instant Action parks only) rebuilds the park from the level and balance; it is registered as SAVE-012 rather than wired to the snapshot.
Restart Park reloads the restart snapshot (October 17, 2026)#
What changed. Restart Park no longer starts a fresh level. Every original park writes a restart snapshot when it starts or is loaded (
opentpw-<theme>-restart.jsonin the save folder, OpenTPW's park-resume format), and Restart Park reloads it. A park built from scratch restarts to its start; a loaded park (own save, automatic continue, a shipped level save) restarts to the loaded state; the reload takes no new snapshot.Original. tp.exe's park state machine
0x54E360writes<save>\restart.INTSin state 15 through0x550B30unless the GameType word0xFB3B7Cis 1 (the online visit, which OpenTPW's read-only visit matches: no snapshot, no restart). A restart request (code 1 from the confirm callbacks0x48B5B0and0x48B620through0x5508B0) takes state 10 to 13, which only advances to 14; state 14 runs0x5996D0(1)(stops the simulation, clears the world and, with the argument, destroys it), loads the file through0x5AC5F0and0x414D40, and returns to state 10 without a new snapshot (0x550371, request cleared at0x55037b).Full Simulation. The original's pause menu builder
0x48C150lists Restart Park for every game type except the online visit, with no mode test, so Full Simulation parks now offer it too. The golden-ticket ledger is player-wide in the original (the ticket object0xF7C58Clives from park setup to the park exit and with the player slot; the restart states, the loader0x414D40and the teardown0x5996D0never touch it), so a restart keeps it, as OpenTPW's ledger file does: tickets and keys earned before the restart stay earned, and the restarted park can earn them again without a second ledger entry. The snapshot was taken after the entry cost was paid, so a restart pays nothing.What a player sees in the original. The writer saves only when
restart.INTScannot be opened (0x550C14), and nothing deletes it between parks (the only deleters reach it through the whole player folder, when a player is created over a slot,0x5C7F40). So the first park started or loaded in a theme folder (normally a new park) fixes the snapshot: every later Restart Park in that theme goes back to that first state, also after other new or loaded parks. OpenTPW rewrites its snapshot at every start and load instead, so a restart returns to the start or load of the park being played (SAVE-012 keeps the difference).Relaunch. The snapshot is a file, so a restart after quitting and relaunching reads it, as the original's file survives.
Cost. The capture runs on the main thread at the end of the park start or load (about 250 to 300 ms, mostly the asset manifest hash); a load reuses the manifest it already hashed for its validation. A restart takes no snapshot.
Camera. The restart rebuilds the park from the snapshot like a load: the camera starts at the park's home view (the saved camera block is not applied, SAVE-010).
Determinism. The capture only reads the park; the pinned hash of an unrestarted run is unchanged.
Restart snapshot per start is an approved EXT (October 17, 2026)#
What changed. Labels and docs only; behaviour is unchanged. The part of SAVE-012 that says OpenTPW retakes the restart snapshot at every park start and load is now
[EXT:restart-snapshot-per-start]atGameFlow.TakeRestartSnapshot, with a row in the EXT table ofdocs/UI.md. The user approved it on 2026-10-17.Original.
0x550B30opensrestart.INTSfor reading (0x550C0F) and saves only when that fails (0x550C14), and nothing deletes the file between parks, so the original keeps the first park of a theme folder as the restart point forever. OpenTPW's Restart Park returns to the park being played instead.SAVE-012 narrowed, not retired. What stays open is the snapshot's format (OpenTPW's park-resume file instead of the original's
restart.INTS); the camera block that is not restored belongs to SAVE-010.
Restored advice: the official extension that says what tp.exe never plays (October 17, 2026)#
opentpw.restored-advice 1.0.0 gives a trigger to 55 of the 105 advisor messages whose speech is in the data but that tp.exe v2.0 never posts (score callback the constant-zero stub, or no poster). It is on by default and AffectsSimulation is false: it only reads park state and posts advice through the advisor's own queue, so no save is locked to it (ParkResumeMods records nothing) and every pinned digest is unchanged. Details in reverse/ADVISOR-SCAN.md "Restored advice", MODS.md and LIPS.md.
36 with existing triggers: queues (58, 59), upgrades (65, 130-132), toilets (83, 84), golden tickets by the key they earn (99, 164, 165, 218, 219, 223, 224, 228, 229) and awards (230-233), the profit ticket (277, 318), challenges with a follow-up (319, 320), arrivals by bus, seaplane or Ferry (137-139), record-sized attractions (151-154), souvenirs (160), little land (173) and low balances (347, 348).
5 with new read-only tracking: security cover of the path cells from guard patrol areas and cameras (24, 25), a ride exit with no path (265), and guests aboard a broken-down or condemned ride (349, 350). The original's per-cell coverage counter (
+0x3C) is a per-role patrol-rectangle flag with no cameras in it; the restored cover joins it with the camera ticket's security level.8 tutorial leftovers (training budget and upgrade windows, blueprint and roller coaster tool hints, pop-up help off, camcorder, first message, first challenge) and 6 online lines on OpenTPW's own online screens (publish, park details, other parks, find parks, outbox, world).
Mechanism:
AdvisorScanasksRestoredAdviceScan.CallbackForfor a row scored by the stub (the hook answers only while the extension is on),RestoredAdviceDriverpolls the rows the scan skips and answers events, the HUD posts hints throughHudHost.RestoredHelp. Scores are the message's ownAdvisor.samkey where its descriptor names one, else a documented[EXT:restored-advice-<topic>]constant.Skipped on purpose: silent stubs and the
z_errorplaceholder, duplicates of lines already said (161, 321, 180-183), and lines with no input to trigger from (90, 155, 67, 168, 266, 296, 288, 338-343, 330, 336, 142, the lobby tutorial).Evidence:
AdvisorRestoredAdviceTestsfires every trigger through the real queue, checks that off is silent and thatAffectsSimulationis false, round-trips the advisor's snapshot with the extension toggled both ways, compares the world state hash with the extension on and off, and reads the shippedAdvisor.samfor every key and group;advisor-producers.tomlmarks the 55 rows with arestoredtopic without touching their original status.Repeat rules: congratulations and arrivals once per park, persistent lines every 5400 groups, own scores 30 to 50 (security capped at 60); in an hour of a park whose conditions all hold the restored lines fell from 144 to 4 against 24 original ones (
AdvisorRestoredRatesTests). Ticket keys are the player's ledger's; the exit test is the guests' own (Level.WalkableNear); the two hints of a tool end with it; 143 is dropped.
Ride-script VM internals as tp.exe has them (October 17, 2026)#
The script interpreter's own state now follows tp.exe (interpreter 0x551CB0, jump table 0x5567D8, scheduler pass 0x5516B0), read in the assembly:
Slice and critical flag: the pass clears the critical flag at every slice start (
0x551701) and counts the slice budget (the header time slice) down per instruction only while the flag is 0 (0x551724..0x551730).CRIT_LOCK(0x551D44) sets it,CRIT_UNLOCK(0x551D59) clears it and zeroes the budget, so it always ends the slice (the VM used to keep going). The flag has no reader outside the slice loop: the bridge's two "script insideCRIT_LOCK" gates (the host step and the presentation at the stand point) had no original counterpart and are gone; the 100,000-instruction slice guard stays as[EXT:crit-slice-guard].TURBO (
0x5542B9) stores the low byte of the raw operand word in the script's TURBO byte (RideVM.TurboByte, in the VM snapshot); it is no longer a game effect. The byte selects the slice cadence in the pass (0x5516E1), which is a separate change.HUSH/HOP (
0x553D25,0x553DAA) are not visitor operations: they push to and pop (LIFO) from a per-script array of the header stack size that JSR/RETURN use from the other end (0x5539A9,0x553A32) with no collision check. A full HUSH and an empty HOP do nothing (the original's assert is a bareret,0x5DA3C0); a full JSR still jumps without pushing (it faulted before). The corpus's 39HUSH VAR_LETMEON/ 39HOPpairs hand the guest ids back newest first; the bridge no longer boards on HUSH nor answers HOP with "first boarded guest not yet hopped": the guest boards when the script consumesVAR_LETMEON(host step) or through WALKON/BOUNCE, and leaves throughVAR_LETMEOFF.LIMBO family (
0x554DE5,0x554EF0,0x554F74,0x555012,0x555045) is a per-script table of header-limbo-size{value, expiry}slots kept by the VM (in its snapshot and, once used, its canonical hash): LIMBO stores in the first slot whose value is 0 with expiryclock + seconds x 1000(result 1, 0 when full); UNLIMBO releases the first occupied slot with expiry strictly below the clock (signed 32-bit) and clears it in place; FORCEUNLIMBO needs a variable destination; INLIMBO is the count, LIMBOSPACE size minus count. The bridge's limbo list, its<=expiry,RemoveAtcompaction and the "boards on LIMBO" rule are gone.New handlers from tp.exe:
PUSH(0x553C1E),POP(0x553CBA, one operand where the upstream notes say none),SETLV(0x551E19) andDBGMSG(0x554243); none occurs in either corpus. The ride lights,EVENT_EXTandGETCUSTPTCLCODEstay unimplemented (game effects, no corpus use), as doesEND.
Pinned digests move (docs/DETERMINISM.md): the fixed synthetic run 0x3DA16AED71E2F1E4 -> 0x188C45B21C1E15E8 (on top of the arrival walk), WorldStateHash.SchemaVersion 20 -> 21 (slices end at CRIT_UNLOCK, the critical flag no longer survives a slice, the bridge's hopped and limbo lists leave its digest, and the digest hashes the shared array's raw words). No other pin moved.
Saves: the VM snapshot gains Stack/StackPointer/HeapCount, LimboValues/LimboExpiries/LimboCount and TurboByte; a snapshot with the old CallStack still loads (laid out top-down in the array, as code-word offsets with the return tag, which is what JSR stores). The bridge snapshot keeps its Hopped and Limbo arrays for the file format but writes them empty and marks itself VmOwnsHeapAndLimbo. Older saves are migrated on load: the riders HOP had not returned (boarded order, minus the bounce and limbo holds) go into the script's heap so HOP returns them in the old order, and the old limbo list moves into the script's table with its deadlines converted to the scheduler clock; a rider that does not fit the heap of a script that issues HOP is released at the first host step (its VAR_ONRIDE share is given back). Return words are the original's code-word offsets, so a script's HOP/POP of a JSR slot sees what the original shows. The host step now marks a taken guest aboard before it processes VAR_LETMEOFF, so a guest taken and handed over within one slice is released.
Still open: the slice cadence (a script runs its slice only on the passes its TURBO byte and id select), the ride lights and EVENT_EXT/GETCUSTPTCLCODE, and the script destruction END performs at the end of a pass.
RideSystem records walked by their frame (October 17, 2026)#
The original TPWS save's RideSystem block (scene-mesh instances, delimiter RSYS, stored tag SYSR) is now decoded by its frame instead of a signature scan. The layout comes from the PC loader (0x4647a0) and writer (0x464140) in tp.exe, confirmed on real saves. Read via REA:
Frame (python probes + save walk over 11 corpus saves):
u32 L(the bytes after the length word),u32 used,u32 free,u32 firstFree; then one slot perused + freein slot order. An absent slot is a single0byte (the storedfirstFreeis the first absent ordinal,free == 0impliesfirstFree == used); a present slot is byte1followed by a 0x36-byte header: InfoId+0, X+4, Y+8, W+0xC, H+0x10, kind+0x14, index+0x18, packed flags+0x1C(bits 0–8 map to0x20,0x40,0x80,0x100,0x200,0x400,0x800,0x40000,0x8000000), raw u16+0x20, raw u32+0x22, rotation+0x26, then0x2E/0x32two embedded words kept raw and separate from the M pairs.Variable part of each record: u16 N, u16 M
+0x2A/+0x2C; then M × 8 embedded pairs, then N × 4 packed node-state words (bits 0–3 and 5–11 map to0x10,0x20,0x8000,0x10000,0x40000,0x80000,0x200000,0x400000,0x20000000,0x80000000,0x100000; bit 4 and bits 12+ are refused), then T × 0x2C controls (11 u32 words in save order[0] [1] [2] [4] [5] [6] [3] [9] [10] [11] [12], kept raw).T is not stored, and the walk no longer guesses it. The loader takes the control count from the live instance's
+0xE(0x464b98), which0x4557c0copies from the kind table's type entry; that entry is built by0x4629d0, which passes its seventh argument to0x461f10as the count (entry+0xE) and replaces 0 with 1 (T >= 1). The object-archive loader (0x414175,0x4141c7) passes the definition's+0x170, the.samkeyUsageInfo.NumSimultAnims; other registrars pass literals (0x41437e,0x430130: 1;0x42fcbf: 5).SaveRideSystemBlock.Parsetherefore takes an optionalmax(1, NumSimultAnims)table by Info.Id; a record the table resolves has exactly that T, every other record may have any T of at least 1 that fits (no cap, so a cap cannot hide a second parse; the work/state budgets fail closed), and the iterative, memoized search (explicit state/step limits, path rebuilt from predecessor edges) counts all complete parses: exactly one is accepted, none or several are refused (the earlier "smallest feasible T" picked a wrong T/T+2 frame and called it unique, and recursed without bound). The search and the decoder share one record predicate, node-state bit 4 is refused by bit mask, counts are summed in 64 bits and bounded, and an empty block is exactly its 16 bytes with first free 0 (the loader itself would tolerate more). Scene records (815/865) are validated before routing (Info.Id and index 1-65,535, cell in the grid, size 1-16, rotation 0/90/180/270, on the raw unsigned words; checked footprint arithmetic). Easymode: L=17,522, used=161, free=7, firstFree=90 (absent slots 90-96), kinds 815 x 11 / 826 x 147 / 865 x 3, T=1 everywhere except slot 114 (InfoId 1303 Jungle Spray, index 4, N=31, M=12, T=3 = itsNumSimultAnims); instance flags only {0, 8}. All 11 corpus saves have exactly one complete parse without a table, and every record whose object archive is known (5 per park save, 2 per INTS save) has the table's T; the others (Info.Ids 17302-17326, in no object archive) hold T=1 in the unique parse.Retired: the
SaveObjectListsignature class ("SYSG records", mislabelled); TPWI'sSYSGscan stays signature-based on its separate widths. The old "826 records nested inside Belly Bounce" reading is corrected in TPWS-PAYLOAD.md: the 826s are separate slots (N=1..4 in Easymode, up to 11 in the corpus, M=0). Narrowed: approximations RIDES items that rested on the record parse (placed/fixed routing now uses verified footprints; 815 → placed, 865 → fixed, 826 and others skipped).Saves: the park save schema keeps the block as read (raw words where meanings are unknown); no writer yet, the original save import stays read-only.
OriginalPark.ImportOriginalSave passes the theme catalogue's counts on every production import (lazily, on the first record), and the corpus test runs it over all 11 saves.
Still open: the T of the types no object archive declares (the Info.Ids 173xx) is the unique parse's value, not read from their registrar; the meaning of the raw control words (words 3–5 hold run-time pointer-like values in Easymode), the two embedded header words +0x2E/+0x32, what node-state bit 4 would mean (never stored), and what the M pairs mean.
MTR: no reader in any allowed binary, scale and M7 explained as far as the data goes (October 17, 2026)#
The MTR sidecars of the three banner meshes still have no reader. This pass searched every allowed binary (decrypted tp.exe, the other PC executables, QMixer.dll, usp10.dll, the online resource DLLs, the no-CD Theme Park Inc Game.exe and the Mac PEF containers) for .mtr, the magic and the banner names, and tp.exe names none of bankrupt, congrats, paused or their s_ mesh names, so no code that opens or places the banners was found either. Against the paired MD2s the scale s turned out to be already baked into the vertices (the slab thickness is exactly 30 times s), while M7 is not derived from the shipped MD2 and looks like a stale pivot. docs/MTR.md and the backlog row state what is proven and what is not; a private test pins the depth and X-centre relations. No reader code changed.
Hooked opcodes, flags, walk table and time base read from tp.exe (October 17, 2026)#
The roughly 47 hooked script opcodes of the RSE VM (interpreter 0x551CB0, jump table 0x5567D8) are now read from their tp.exe handlers instead of being inferred. Each operand is documented as the handler reads it (RSE-VM.md, "Hooked opcodes: the operands as the handlers read them"), and RideVM was changed where it differed. The walk table (WALKON/WALKOFF/WALKGET, update 0x557D80) is ported with first-free entries, states 1 to 4 and table-order WALKGET; the walk float, the 200 ms UNBOUNCE/FORCEUNBOUNCE window, the BOUNCE deadline, the REPAIREFFECT polarity, SCREAMLEVEL, SPARK, the result flags of GETTIME, the trigger family and the BOUNCE family, the cross-script variable opcodes and END follow the original. The script time unit is the millisecond of the global timer 0x785970, and the critical flag 0x87919C has a single reader, the slice loop at 0x551725. Corpus tests over the 308 shipped scripts pin the operand domains (no game bytes committed). TOUR-011 is narrowed, not retired: the walking body between the nodes is still not drawn. Park-resume JSON gets an optional, validated walk table.
Original saves apply their scripts, particles, research, camera and litter (October 17, 2026)#
Importing a TPWS/TPWI save now applies more of what the file holds. The RSSE chunk gives the running scripts their saved ids, the saved next id and the saved pass counter, and the loaded script list is the reverse of the saved order, as the loader at 0x5597A0 builds it, so the 8-pass cadence ((id xor pass) & 7) matches the save. The Particles block is applied to the particle renderer. The saved research groups (highest open group per lab project) are restored, adopted challenge slots no longer fail verification, the gate name, the open word of rides, the staff member's variant, the camera pose and the cell grid's litter (with a sweeping handyman keeping his claim) are imported. --original-save starts an original level from a player save.
FINDSCRIPTRAND (0x5560CB) counts and picks from the head of the script list, so a script that finds one of several alike now picks the n-th match from the highest id down; no pinned hash depends on it (the synthetic parks never find one of several alike). What moved the pins is the hiring pool's candidates keeping their sprite variant, which the park save and so the determinism digest now hold (see docs/DETERMINISM.md). SAVE-005 is retired, and so is SAVE-009 (keeping a picked-up staff member idle is the user-approved [EXT:staff-pickup-reconcile]); SAVE-004, 006, 007, 010 and 013 keep narrowed text for what is still unknown (script run state, the sound block, unheld staff claims).
Advisor node bits: every clip starts from an all-shown model (October 17, 2026)#
The advisor's model shows and hides its hats, props and tickets through node bit 0x10. OpenTPW assumed the bits persist and rebuilt them from a hidden base state, which hid the ticket the level advisors hold in the ticket advice (clips 17 and 18) and carried a hidden Ticket2 from clip 19 into clip 20. tp.exe clears them all at every clip end: the sampler 0x4735D0 starts the idle set 12 through 0x472F60, which calls 0x472310 for the clip that ended, and the advisor model's flag 8 makes that clear every node. So each clip starts from an all-shown model and hides only its own node list, then the selectors, the bug head and its blink toggles act. ADVISOR-026 is retired; nothing persists between clips or responses. ADVISOR-017 is narrowed: all eight callers of the game pause 0x4092A0 are identified (the map window and the postcard included), and the map window and the Game Options dialog also run the advisor stop path, which OpenTPW does not do yet. Checked with silent offscreen captures of the jungle ticket advice (response 374) on a clocked advisor; the lip, mouth and clock code was re-read against 0x599A90-0x599BEA and needed no change. The determinism pin does not move: presentation only, no world RNG.
Untriggered sounds and QMixer's pan and volume law (October 17, 2026)#
Sounds the original submits from engine code now play in OpenTPW: the upgrade sound, the size-classed placement and demolition cues, the message tube's posted and clicked sounds, the postcard, the research window's hums and effort slider, and the guests' till, drink, meal, toilet, pause, vomit and ride-removed voices. Each trigger is tagged with its tp.exe address at the code. All of it is presentation: the voices use no world or guest random draws and the determinism pin did not move.
Positioned mono voices follow QMixer.dll's software channel stage: the offset is rotated into the camera's basis (pitch included), the pan is 44.444 hundredths of a dB per degree mirrored behind the listener, and the quieter channel is 10^(-|pan|/2000) of the louder one, so the centre is not 3 dB down. Tests cover the mixer law and which events fire.
AUDIO-009 is retired (the build tools never refuse with a sound). AUDIO-003, AUDIO-004 and AUDIO-038 keep their narrowed text: reverb, the senders of the 0xBD click and the in-range resume of a stopped sentence are still unread. AUDIO-018 now lists only the axis mapping of the camera rows and the flat voices' placement as open.
A resumed park never attached the guests' voices or the stinkbomb sound, so it drew nothing from the sound seed while the park it continued did; with the guests' voices the park-resume smoke caught the difference through the economy section (which carries the sound seed). Every route into a park now attaches them (GameFlow.AttachGuestSounds).
BF4 text placement follows the original's text library (October 17, 2026)#
tp.exe's text library places a text block in its box and each line inside the block with fixed integer rules (0x6aeb10, 0x6ae550), and its common glyph draw (0x6b4aa0) puts a bitmap at pen plus the record's signed offsets with the pen y at the line top, which confirms OpenTPW's reading of the BF4 metrics. UiContext.DrawText now uses the same rules (TextPlacement, TextLayoutResult.AlignLines): a centred or right aligned multi-line text moves each line inside the widest one by half or all of the difference (before, every line stayed left aligned in the block), the block is placed in whole pixels with signed truncating centring instead of float rounding, and a block taller than its box is centred like the original does (its bitmap cuts it off at both ends) instead of being put at the box top. Single-line text moves at most one pixel (truncating instead of rounding). The wrapped fallback of the [EXT:fit-button-text] fitting (a label that fits at no size) keeps its previous placement on purpose, so the approved fitting does not move; OpenTPW does not clip an overflowing block to its box as the original's control bitmap does.
Also read: the measure 0x4929f0 returns the block box (widest line by lines times line height, nothing wraps without the wrap flag), which is what OpenTPW's layout box already is, so that part of UI-013 is closed; the text bitmap is in the display mode's pixel format and the 5-5-5 glyph blitter blends linearly in signed 5-bit arithmetic with no gamma (UI-007/UI-037 now say what the sprite draw still has to answer). Details in docs/BF4-FONTS.md.
MD2 in the running game: scene clock, terrain texture turn and mirror, culling (October 17, 2026)#
Terrain texture turn and mirror. The ground quads now lay their texture as tp.exe's terrain renderer does: the cell word's bit 0x40 mirrors the texture and bits 0x8 / 0x10 / 0x20 turn it by one, two or three corner steps (
0x56F4F0, called from the renderer0x56F670, which applies the same corner permutation in both of its vertex orders).TerrainCellTextureholds the permutation. Native captures of the jungle before and after show the same terrain with only the grass texture's direction changed.Scene clock at game speed. The original's scaled clock (
0x7B496C, timer0x785970) gains the real gap times the rate (0.25..2 by the numpad keys0x40C3B0/0x40C3C0/0x40C3D0) and the pause (0x4092A0/0x409300) freezes it together with the unscaled clock. OpenTPW'sSceneClockplays it for the two scene animations that still ran on real time: the sky's scroll (0x585F10, frame time0x57FF60, capped at 500 ms) and the coasters' scrolling textures (0x435ADF, whole milliseconds on the scaled clock through0x4709E0). They now run at the park's speed and stand still while it is paused. The advisor stays on the unscaled clock; the weather and particles already followed the speed.Per-mesh culling. Node bit 0x10 hiding a mesh was already drawn. The view test
0x561A30clips the mesh record's box (widened by half its extent per side) against the view; OpenTPW culls each mesh part with its exact vertex bounds, and all 4,909 static meshes of the corpus have every vertex inside their stored box, so nothing the original draws is culled here. No determinism change.
Sprites in the running game follow the original (October 17, 2026)#
Litter now lies on the ground: each item a guest drops is a flat quad of the litter sprites at the cell offset the cell's two world draws give, picked by kind (slots 0-7), until a handyman sweeps it (tp.exe 0x4D93B0, 0x4D9620, the flat-quad flag at 0x589320). A ride whose upgrade has just been installed hangs a balloon of the special-effects sprite over its front cell for the new levels 1 and 2 (0x4DF8F0). A sprite pixel is now read from the original instead of fitted: 20 / 128 times 1 / cos 45 degrees world units (0x5890E0, 0x578BE0), which also sizes the staff, thoughts, balloons and heads. A guest's kid set and balloon colour are the draws of the reseed with its thing id (0x4FB19E, 0x541FD0), the balloon's bob phase runs per balloon per frame, and a burst fades from alpha 250 by 20 for 13 steps of 62 ms (the sprite shader takes an alpha from the vertex flags word; the web shader is regenerated). Staff and kids play the original's scripts on its sprite clock: the staff scripts are decoded (research and striking loop with frame-0 holds, the patrol walk shows each frame twice), a sprite steps once per tick past its 62 ms due time, and a walk step sets the interval to 62 over twice the speed, 20 steps a cell walking and 10 running (0x475360, 0x4FA2A0, 0x4D41D0). The entertainers' performance program with its intro and hold (Hallow SPR_DR's 2 and 40) is played. GUEST-015 to 017 and HEADS-004 are narrowed. Determinism: the balloon give-back after a ride now reseeds the world generator with the guest's thing id and takes two draws, as 0x502053 does; none of the pinned runs has a balloon, so every pin is unchanged.
Theme Park Inc park-save field meanings (October 17, 2026)#
The fields of the Theme Park Inc park save now have meanings read from the no-CD Game.exe: the loaders and the code that uses each field (statically, nothing was run). Details: THEME-PARK-INC.md.
Attraction history (SAVE-940, narrowed): the 19 rings are 13 daily (30 entries, new-day message 11) and 6 monthly (144 entries, new-month message 12), sent by the calendar step
0x6083d0and handled by the attraction at0x5df19fand0x5defff.ThemeParkIncAttractionRingnames each by what feeds it (takings, costs, customers, walk-aways, four mood grades, declined, need checks, cheap and expensive price, and the monthly takings, costs, total costs, running cost, profit and customers),HistoryRingsgives the capacity, period and in-memory offset (the object is 0x14c8 bytes), andNewestFirstreads a ring back as the game does (0x5eb090). The three gauge words are an unread gauge, the life gauge and the state of repair. The ring names are our descriptions; three rings stand for several conditions.Control record (SAVE-941, retired): the added word at +0x20 counts placements (
0x667cb0) and numbers the copies; the others are the price, the built count (+0x18), the tick of the first build (+0x1c, -1 until built) and the research level. The real prebuilt shows built counts of 1 and 2, ticks 33 and 47 and placement counts of 1 and 2 for the objects the player placed. The two bytes after the 16-bit id are raw memory and no longer checked.Calendar and arrivals (SAVE-942, retired): the serializer's field log gives the calendar order; the arrivals are typed (
ThemeParkIncArrivals: rate, time signature, target vehicle capacity, people on the bus, offloading, gates open).Special rides (SAVE-943, retired): the loader reads the count into the global and loops by it, so the saved count is the loop count. The table holds four records before its own count word, so a larger count is refused (it was bounded at 1024); a record is typed as 20 slots of thing id, ability and type (unused slots are type 7).
Bodies (SAVE-944, narrowed): the guest's seven
pvwords are 0..100 float meters (happiness, thirst, hunger, toilet, illness, litter and one unnamed), a staff member's three are float meters whose names are not assigned, and the weather's wind and last lightning location are floats. The remaining words keep their stored width.Tests:
ThemeParkIncAttractionHistoryTests,ThemeParkIncWorldFieldTestsand additions toThemeParkIncThingBodyTests.
Original-format saves can be written (October 17, 2026)#
A park save in the original's format is now written byte for byte. ClassicZlibDeflater reproduces the zlib 1.1.3 stream the game's BILZ writer makes (deflateInit2(-1, 8, 15, 9, 0), one Z_FINISH, tp.exe 0x619280; the stock ZLibStream is another zlib), SaveContainerWriter writes the header (0x415F50) and the BILZ chunk, and OriginalSavePayload models the 19 blocks with the fields their loaders read and writes them in the payload writer's order (0x4164C0, its 17 delimiters read from 0x6FD8B8..0x6FD8F8; the World writer 0x516C80's 26 labelled variables and thing records checked on its own label calls). Reading each of the eleven private corpus saves (seven parks and autosaves, four restart.INTS) and the shipped Jungle Easymode.TPWI into the models and writing them again gives identical payload and container bytes in all twelve.
OriginalParkExport writes an OpenTPW park's economy back into a template original save of the same level: the park turn, calendar caches, open flag, world generator state, the bank (account words and loans, SaveBank.ToBody) and the object controls' first-purchase turns; everything else is the template's. Importing each original into an economy and exporting onto its own bytes reproduces the file except for the first-purchase stamps the original's own load writes too (0x4DB690); the four restart saves come back unchanged, and the export reads back through the loader's split and both importers to the same economy. Placed objects, built paths, staff, guests and a park without a template are not exported (TPWS-PAYLOAD.md, "Writing original-format saves", lists what each needs). SAVE-012's unknown now says so; no APPROX ID is retired. Exposing the export to players is left to the user (it needs the player's own original save as the template).
Movie triggers and presentation from tp.exe (October 17, 2026)#
Format round 7, item 7b. The PC executable plays movies in exactly two places:
Triggers: the movie start
0x51B010has two callers, the logo (0x54DF20,bf) and the day trailer (0x54E070,tm_mday & 7through the jump table0x54E288:bub,buc,grav,jug,mir,plan,roc,roll), both from the start-up states of the main state machine0x54E360. There are no theme intro, ending or award movies. The start-up flag defaults on (0xC0E15at0x449E1C); only a launcher filedialog.tcfcan replace it.IntroPlaylistalready matched; its evidence tags now point at the PC addresses.Movie volume: the PC passes
percent × 1023 / 100to the movie volume, which becomes the DirectSound buffer attenuationv × 10000 / 1023 − 10000in hundredths of a decibel (75 % is about −25 dB, 50 % about −50 dB). OpenTPW had mapped the percentage linearly (the Mac QuickTime scale);MovieVolumeCurvenow applies the original curve.Display packing: the original packs each pixel to its display surface: even columns round the channel value to the field, odd columns truncate it (16-bit writers, one table entry per pixel pair), unless
RENDER32selects a 32-bit display (full 8-bit values). The Low, Medium and High presets run 16 bits. OpenTPW keeps that packing as a tested helper but presents movies at full colour,[EXT:movie-full-color](user-approved 2026-10-17; the original's banding does not suit upscaled movies). The PNG export keeps the unpacked 8-bit values.MoviePresenter.OriginalBoxrecords the original's picture rectangle (screen width x 352/480 at y 64/480) and a test checks it against the letterboxed picture on every 4:3 mode.
Still open: whether the 12.9 s audio tail of plan.tgq plays out in the original, the layout of dialog.tcf, and the original display's channel layout (5-6-5 assumed; not presented). Docs: TGQ-MOVIES.md ("The PC build"), FORMAT-BACKLOG.md.
DIPMUSIC ducks the music, SETREVERB has a reader, and the unused opcodes no longer fault (October 17, 2026)#
Follow-up of the RSE operand round (#365): the three opcode groups that still differed from tp.exe.
DIPMUSIC now acts. The opcode stores its operand's low byte at script +0xB9 and the operand's low word as the global duck request (
0x803AD0,0x51E710); the sound service (0x51BD70) sends the music channel's volume as 0 while the word is non-zero (0x51BE5A, and0x51BDC2in the branch where speech lowers the others) and leaves the other channels alone. A script that ends with its byte set writes the request 0 again (0x558513). OpenTPW:RideVM.MusicDuckByte(in the snapshot, not hashed),GameAudio.SetMusicDuckandAudioMixer.MusicDuckRequest;GameAudio.LeaveParkclears it.Gates.RSEruns in OpenTPW, so the end-of-park gate command now silences the park music;End.RSEis still not created (RIDES-019). That the duck channel is the music one is medium confidence (options order and the opcode's name).SETREVERB has a reader after all: the main loop's
0x55A470(the earlier search stopped inside the script module). While the player rides a ride it takes the ride's root script level (non-zero, 0 or more), otherwise the default 0, and0x51C8D0holds the preset and sends it only on a change; the mixer fetches theSndReverb.maprecord (0x6C5D20, 15 of 32 entries) and hands it to the device as an EAX 2.0 listener property set (0x6C46B0) or to the second backend (QMixer.dll exportsQSWaveMixSetReverb*). Built:RideVM.ReverbLevel,ReverbSelector,GameAudio.SelectReverband theSndReverbMapformat. The reverb DSP itself is not reproduced: newAPPROX:AUDIO-039.EVENT_EXT (
0x552707) is EVENT with a control operand (particle types 1-2 apply a control other than 1000, the sounds ignore it), built on the EVENT path. GETCUSTPTCLCODE (0x5563D5) is a stub in the original that stores 0, built as such. ENABLELIGHT, DISABLELIGHT, SETLIGHT and COLOURLIGHT (0x555C7A..0x555D9A) switch and colour a light dummy (class0x20000) of the object's model; no model of the game has one (274 object models checked) and OpenTPW has no per-object dynamic lights, so they read their operands (SETLIGHT has two, where the upstream notes say one) and become unimplemented effects that do not fault: newAPPROX:RIDES-046. Every named opcode now has a handler, so a script mod using any of them keeps running.
No determinism pin moved: the new script state (duck byte, reverb level) is not hashed and the new effects are presentation only. SETREVERB's effect is no longer recorded as an unimplemented effect (the VM keeps the level).
RSE ride scripts get a text form, a disassembler and an assembler (October 17, 2026)#
Phase 0 of the content pipeline: original ride scripts can now be written as text and compiled to .RSE. The game ships no readable script source, so the syntax is OpenTPW's own (header directives, .var names, label: / @label, quoted strings, one instruction per line; docs/RSE-SCRIPTS.md, "Text form and assembler").
Shared opcode table: the
Opcodeenum moved fromOpenTPWtoOpenTPW.Files(same namespace), soRideScriptOpcodeNamesand the VM use one table; a test checks that the enum, the name table and every VM handler agree.RideScriptDisassembler/RideScriptAssembler: lossless text for any fileRideScriptFileaccepts, including an explicit.stringtable for blobs that are not in first-reference order. Errors carry line and column.Proof: all 308 corpus members disassemble and reassemble to the original bytes (string blob, variable table, header, padding), 100 %. Authoring tests run a hand-written
ADDHEAD/WAIT/DELHEADloop inRideVMwithout game data.Unverified: the defaults of a fresh header besides the time slice of 50, and that an authored script behaves like an original in the game.
Script mods: hooks, failure counters and saves (October 17, 2026)#
Hooks (
[EXT:script-mods],source/OpenTPW/World/Guests/Decisions/ScriptGuestDecisions.cs):GuestSimulationwraps its base policy (faithful or smarter) inScriptGuestDecisionswhen script mods are enabled.scoreAttraction,joinQueue,leaveQueueandwanderGoalmap ontoScoreAttraction,DecideAdmission,DecideQueuePatienceandChooseWanderGoal; each mod gets the previous result asprevin the resolved, saved mod order, and a failing mod returnsprev. Results are typed and range-checked (a score is an unsigned word, a wander goal isy * 1024 + xinside the map). Views are plain read-only tables with ASCII keys and stable ids.rnghashes (park seed, mod id, hook name, guest birth id, park turn, draw ordinal). The seam gainedIGuestDecisions.BeginTick()and the map size inDecisionContext; with no script mod nothing is wrapped and every pin and save byte is unchanged.Identity split. Script mods need birth ids, so the smarter-guests identity state (seed, counter, birth ids) is now also created for a script policy, without any smarter rule or the extension's record; the
SmarterGuestssave section is accepted and required whenever aScriptModssection is present.Budgets. Defaults are 5 000 steps per call and 50 000 per tick and mod, from
--guest-report --guest-modruns on the scenario and the four level parks (heaviest call 124 steps, busiest tick 3 188 steps and 64 calls; factors of 40 and 15). The numbers are indocs/SCRIPT-MODS.md. The corpus golden hash moved with the call budget;BehaviourVersionstays 1 because no save held it before.Failure semantics. Per mod: runtime-error, budget and invalid-result counters and a disabled flag, saved and hashed. A mod is disabled after 16 failures (one warning in the log); tick overruns are not failures.
Saves. Optional
ParkResumeSnapshot.ScriptModssection keyed by mod id (canonicalstate, counters, flag, behaviour and API version), validated strictly on load, refused on a version mismatch with a clear message, joined toWorldStateHashonly while a script mod is on.SchemaVersionstays 21 (as for the smarter-guests section); older builds refuse the section. Pins:ScriptModsFixedRunHash(the example mod) andScriptModsAllHooksFixedRunHash; a resumed park stays hash-equal to the uninterrupted one.Example.
opentpw.example.patient-guestsis wired (joinQueuerelaxes the excitement gate for happy guests,leaveQueueends very long waits, two counters instate); off by default and out of the web build. Against the baseline (--guest-compare, 8 seeds, extended scale) the scenario's boarded rate rises 0.560 to 0.630 (+8.7 SE) and its ride-use Gini falls 0.197 to 0.108.Report.
--guest-report --guest-mod <folder|id>runs the report with mods on and prints each script mod's calls, steps and failures. The report JSON gains an always-presentmodslist ([]without mods) and, per scenario, an always-presentscriptModslist ([]without script mods);--guest-compareignores them but names differing mod sets.Tick overruns. Using up the per-tick budget is no failure and never disables a mod: the rest of the tick answers
prev, aTicksOverBudgetcounter (saved, hashed, logged) records it, and ascoreAttractioncandidate loop is admitted or skipped as a whole (IGuestDecisions.BeginDecision/EndDecision), so one decision never mixes script and base scores.Not yet. The browser check and the example in the web build (phase 5),
--test-modand read-only event hooks (phase 6).
Script mods: the TPW Script language core (October 17, 2026)#
Decision. Mods are data plus sandboxed scripts; native code and assemblies are never loaded (
docs/MODS.md). The language, its execution contract, thestateschema, the planned saves and the hook API are indocs/SCRIPT-MODS.md.Language core (
source/OpenTPW/Scripting/,[EXT:script-mods]): our own lexer, single-pass parser and bytecode interpreter for a Lua-syntax subset with 64-bit integers only (overflow and division by zero are runtime errors,//truncates toward zero,fx(1.25)fixed-point literals), no closures, coroutines, metatables, try/catch, top-level mutable variables or floats. The top level holds only functions and literal constants. A fixed host whitelist (min,max,abs,clamp,fxmul,fxdiv,len,has,keys,push,pop,del,rng) is resolved at compile time; there is no reflection.Budgets and limits. A deterministic step counter in the dispatch loop (10 000 steps per call, 200 000 per tick by default), a call depth of 32, 512 KiB of accounted memory per call, and static limits on source bytes, tokens, nesting, functions and string length.
ScriptLimits.BehaviourVersionis the version saves will record.Transactional
state. A call runs on a copy-on-write view; only a successful call with a valid, typed result commits. The state is copied lazily, on first touch, and the copy and the commit validation are charged to the call's meters as the work happens (also when validation fails; maps are walked in sorted order so the charge is identical after a save round trip); a table may appear only once instate. Failures (runtime error, budget, invalid result) return the caller'sprevand roll back. The canonical serialiser (sorted keys; strings are opaque, with no Unicode normalisation; map keys are printable ASCII), parser and validator exist; save wiring does not.RNG.
rng(n)is a stateless hash of (park seed, mod id, hook, guest birth id, park turn, draw ordinal); values are pinned by a test.Tests. Grammar, an escape and denial-of-service corpus, limits at their boundaries, rollback, the canonical round trip, step budgets identical across runs, and a golden hash of a script corpus for the windows, macOS and ubuntu CI runs.
Scripting/joins theDeterminismTestsforbidden-API scan.Not yet. No manifest changes and no hooks into
GuestSimulation(phases 3 and 4 of the plan). Normalisation was dropped after review, which removes the ICU/WebAssembly parity question forstring.Normalize.
Script mods: manifest, loading and safe mode (October 17, 2026)#
Manifest (
[EXT:script-mods],source/OpenTPW/Mods/ModManifest.cs):content.scriptsholdsfiles(1 to 8 mod-relative paths, the usual path rules) andhooks(hook name to function name; only the v1 namesscoreAttraction,joinQueue,leaveQueueandwanderGoalare accepted).scriptApiis a version range checked againstScriptLimits.ScriptApiVersion(1.0.0, besideBehaviourVersion); it is required with scripts and refused without. Parsing stays strict.Loading.
ModSet.Resolvereads each script file once; the digest inContentSha256and the compiled program come from that one read, and the bytes stay in memory (ResolvedMod.Scripts). Caps: 8 files, 64 KiB per file, 256 KiB in all (against 20 000 files and 2 GiB for mods in general). A compile error, an oversized file, a missing hook function or a wrong parameter count refuses the mod with the file and line (new refusal kindScript). Later phases must run the retained programs and never re-read the path; a test changes the file after resolve and checks the retained bytes are still the hashed ones.Classification. A mod with scripts changes the simulation unless all its hooks are UI-only (none in v1), so it is in
SimulationModsand recorded in park saves.Mods screen. "Contains scripts" in the details in all nine languages, the compile error as the refusal reason, and a safe-mode notice.
Safe mode. A marker
script-mods-starting.marker(process id and start time) in the config folder is written as soon as the manifests are known, before any script is read or compiled, when an enabled mod declares scripts. It is cleared only on success: after 15 seconds of frames counted from the first frame, or whenGame.Runreturns normally; an exception caught byProgram.Mainkeeps it. If it is found at startup and its process is gone, or--safe-modeis given, that run refuses every script mod without reading or compiling it (refusal kindSafeMode, row status "Off (safe mode)") and shows a notice; a save that needs such a mod says it is off in safe mode. A marker of a still-running instance is left alone; a stale marker with no script mod is deleted quietly. Smoke tests ignore the marker. The browser has no safe mode, and the example script mod is not embedded in the web build until phase 5.Hardening. Any compiler exception is a
Scriptrefusal; an oversized script is refused before it is read; the manifest parsed at discovery must be byte-identical to the hashed one; paths fold the same way everywhere.Example.
content/mods/opentpw.example.patient-guests(off by default) withleaveQueueandjoinQueuescripts; it compiles and has a golden content digest, and does nothing until the hooks are wired in.Not yet. No hooks into the guest simulation, no
ScriptModssave section (phase 4).
Sign blur, bevel and relief run at the original's x87 precision (October 17, 2026)#
Control word read (verdict: 24 bits). tp.exe's CRT start-up sets 53 bits (
0x6804D0:_controlfp(_PC_53, _MCW_PC)through_cinit0x67F8F0). The display init (WinMain0x45A960->0x44E080->0x563460, before the main loop that composes every sign on the same thread) calls DirectDrawSetCooperativeLevelwith DDSCL_FPUSETUP and no FPUPRESERVE (0x563914:0x851,0x563B92:0x808) and starts Direct3D (0x573080). The DirectX 6.1 DLLs shipped in the game's Redist folder, read statically, set the rest:DDRAW.DLLturns0x800into a local flag (0xBAABE771) andD3DIM.DLLCreateDevice (0x56664F87) then sets CW = (CW & 0xFCFF | 0x3F) & 0xF3FF (24 bits, all exceptions masked) and never restores it. The only later writer, the render function0x576EC0(0x591220,0x591240), forces 24 bits for the frame and restores the word it found; its PC=64 restore (0x591250) needs bit 1 of[0x8BD508], which no instruction sets. The sign generator is not reached from that function._ftol(0x67A830) and the CRTpow(0x67C5F2, keeps the caller's precision) preserve the precision bits. Review, from the same DLLs: the device class[+0xF58]is chosen in CreateDevice (0x56664DD8..0x56664EEA; constructors0x56665000class 0,0x566651AAclass 1,0x566651DBclass 2). A non-HAL device is class 2 unless the registry valuesDisableDPorDisableDP2(HKLM\Software\Microsoft\Direct3D) are set; a HAL device is class 2 only when the driver provides DrawPrimitives2 (D3DHAL_CALLBACKS3, global+0x638, field+0x14), otherwise class 1 or 0, which leave the control word at the CRT's 53 bits. tp.exe references only the HAL device GUID (0x572C8C), so the 24-bit verdict holds for DirectX 6 class drivers (and any later runtime), and a machine with a DirectX 5 style HAL driver would have composed signs at 53 bits. No thread other than WinMain's reaches the sign generator in the direct call graph; no instruction sets bit 1 of[0x8BD508](the log flag word: its stores only touch bits 0, 6, 8, 24, 25, 27, 28, 30 and 31, and its file dumpc:\tcache.logonly writes it).The arithmetic follows the instructions.
Extemulates x87 registers (64-bit mantissa, rounding of FADD, FSUB, FMUL, FDIV and FSQRT at the precision control, exact loads, float and double stores; integer-only apart from sine, cosine, 2^x - 1 and log2, which the x87 does not round at the precision control either). The Gaussian kernels (0x5EA8A0,0x5EB3E0: the tap sequence with FRNDINT, F2XM1, FSCALE, stored as doubles, normalised by the register-width sum), their convolutions (accumulator in a register,_ftoltruncation), the bevel levels (0x5EB270) and the relief (0x5EB8A0: light and half vectors, normals, dots,powas FYL2X + FRNDINT + F2XM1 + FADDP + FSCALE, colour sums stored as floats, the clamp0x5EBE50) are ported in the original's operation order, so details such asu * (u * u),(ay² + az²) + ax²and the unroundeds * ay * 0.5are as in the binary.The precision matters. Composed at 24, 53 and 64 bits the 75 corpus signs differ (53 vs 24: 77 of 80 composed signs differ, by up to 228 in a byte, because truncated sums sit on integer boundaries), so matching the thread's precision is what reproduces the original. At 53 bits 69 of the 75 frozen halves equal the previous double-precision baseline, which checks the port.
[EXT:sign-coverage-precision]retired. Its blur-precision half is the above. Its glyph-coverage half is now an openAPPROX:COMPAT-003: tp.exe draws each line with GDI (LOGFONTlfQuality4 = ANTIALIASED_QUALITY, grayscale smoothing, through UniscribeScriptStringOut) onto an 8-bit gray DIB twice the mask's size, from the fonts infonts.wad. The gray levels GDI's rasterizer writes there (level count, oversampling, hinting, gamma, the Windows version the game ran on) are in neither the game files nor tp.exe, so OpenTPW's own coverage ([EXT:sign-text-antialias], user approved October 16) stands in; a captured original sign texture would close it.Register tool learns
BIN:D3DIM-DLLandBIN:DDRAW-DLL. Re-pins: 72 of 75 frozen sign half pairs and the fiveRidesRound2Testssigns (no line, text pixel count or.sgnhash moved); the cause is in the baseline's header.Seen on the way: COMPAT-018 (
SignWaveletDecoder) still lists the x87 precision at the wavelet conversion as open; the same verdict (24 bits at that call) would apply there but its arithmetic was not ported here.
Sign text coverage follows the documented GDI grayscale model (October 17, 2026)#
What changed:
TrueTypeRasterizermeasures coverage withCoverageModel.GdiGray4by default: 4x4 point samples per pixel (the 17 levels of GGO_GRAY4), written as(level * 255 + 8) / 16, no gamma, no hinting.[EXT:sign-text-antialias](16 linear sub-scanlines) is gone;CoverageModel.Linearstays for the scanline-window tests.Sources (Windows 2000/XP behaviour chosen, Windows 98 differs and is documented): GetGlyphOutline (GGO_GRAY2/4/8 = 5/17/65 levels), the Microsoft font blog on gasp (grid-fit, overscale, downsample), the OpenType
gaspspecification, LOGFONT, SystemParametersInfo (the contrast setting is ClearType only), the archived FontQuality page and FreeType's interpreter table; URLs in docs/COMPATIBILITY.md, "Sign text antialias model (COMPAT-003)".Shipped fonts: none of the 17 has
gasp; all carry hinting programs (fpgm,prepwithSCANCTRL 0x1FF/SCANTYPE 1,cvt) that OpenTPW cannot run (no bytecode interpreter), so the outlines are sampled unhinted at the 65 to 256 ppem the signs use.Still open (
APPROX:COMPAT-003): the 4x4 factor itself (inferred from GGO_GRAY4), sample positions, hinting, dropout control, the level to byte mapping on the 8-bit DIB and the Windows version; no GDI capture exists. Nothing here claims exactness.Effect: total ink within 0.2 percent of the previous coverage, at most 22 levels difference per mask byte, no thin stroke lost (checked on 40 corpus masks and zoomed crops).
Baselines: 150 half hashes and 75 text pixel counts of
Font/sign-hash-baseline-v0713-dc3b1aef.tsvand the fiveRidesRound2Testssigns re-pinned (causes in the TSV header and docs/DETERMINISM.md); no line,.sgnhash, world hash or save moved.Other pins: the 'A' hashes of the 17 fonts and the gate name line hash in
TrueTypeFontTests(original data) moved with the coverage and were re-pinned.
Sign text raster, relief shape and Uniscribe kerning read (October 17, 2026)#
COMPAT-006 retired (usp10.dll, now allowed for static analysis): the shipped Uniscribe places a Latin run by summing per-glyph advances from its width cache (
ScriptPlace0x6510CEDE, the generic routine0x65113458, the cache0x6510F241) and never asks for akerntable (GetFontDatahas six call sites, forJSTF,maxp,cmap,OS/2,GSUBandGSUB/GPOS/GDEF, none forkern; nokerntag, noGetKerningPairsimport). Sign text is not pair-kerned, as OpenTPW draws it. The register tool learns theBIN:USP10-DLLlabel. A later Windows copy of Uniscribe is not among the files and is not read.COMPAT-001 retired (
0x5EAB70,0x5ECB40): the sign line is drawn on an 8-bit gray DIB twice the mask's size and reduced by a 2x2 box, the four bytes summed and shifted right by 2 (this port halved twice with truncation). The surface, both glyph masks and the paint shaping are 256 rows high; only the top 128 rows are packed into the textures, so the rows below feed the morphology, the blur, the relief neighbours and the relief's measured text extent as they do natively.[EXT:sign-text-mask-width]is gone.COMPAT-003 narrowed (
0x5EB820,0x5EB270,0x5EA1F0,0x5EB3E0,0x5EB8A0): the relief is not lit from the raw coverage. Each effect builds a shape first: the binary ink is eroded once per count of the record's mask word (every removed pixel keeps a smoothstep level, the core stays 255), then blurred by the record's first parameter with a square Gaussian where the glyphs have coverage. The normals come from that shape, read without a clamp at the row ends; the colour sum follows the original's order. The signs now show the bevelled, glossy letters of the original instead of flat-edged ones. Open: the x87 precision the relief arithmetic ran at.Hash baselines: every left/right half hash of the 75 corpus signs moved twice (the raster reduction and 256 rows, then the shape) and the text pixel counts of 8 signs moved once (the reduction);
Font/sign-hash-baseline-v0713-dc3b1aef.tsvandRidesRound2Testsare re-pinned with the causes in the baseline's header. No line,.sgnhash, determinism pin or save changed.Awaiting the user: whether the remaining COMPAT-003 part (the relief's float arithmetic at an unknown x87 precision, computed in double precision with float stores) should become an extension like the double-precision blur sums.
Water slide riders follow the flume (October 17, 2026)#
A rider lying in a flume used the nearest of the swim set's 8 sprite directions, 45° apart. Where the flume ran between two of them, the body lay up to 22° across the narrow trough and stuck out over its walls. The swimmers' renderer now turns the sliding slot's quad in its own plane, around the hotspot, by the angle left over after that snap (GuestRenderer.RotatedSlots, PoolSwimSlots.Rotated, GuestRenderer.ResidualRotation).
Angle: the turn uses the camera's own projection, clamped to 0.6 rad.
Picker: it turns the hit box the same way.
Scope: upright poses never turn. Only the sliding slot is listed.
Effect: presentation only; no pin moves.
Smarter guests, phase 4: queue patience (October 17, 2026)#
What changed.
opentpw.smarter-guestsgoes from 1.2.0 to 1.3.0 with the rules of phase 4 (SMARTER-GUESTS.md): (1) a guest does not join a ride whose expected wait (the queue ahead only: guests still walking there will stand behind it) is above90 x patienceturns when another ride it could actually choose next (open, with room, admitted, not in its used or temporary history, not of the type it rode last) has a wait of at most 80 percent of it; the refusal is the original'sQueueTooLong(thought 16, queue-limit statistics, the ride in the temporary history); (2) a guest not at the front gives up after120 x patienceturns fromQueueJoinTurnunder the same alternative condition (thought 16, the original dismissal's happiness step through the host's existing path,QueueEndReason.Impatient). Patience is a stateless 70 to 130 percent trait; the base is the measured baseline (the original's boarded waits have p90 73 and p99 108 turns), notBoredomThreshold. Only rides are concerned; the existing leave tests, a guest being called forward and an interlude are untouched. Off, nothing runs and every pin is unchanged. The extension is still not player-selectable.Honest result. The phase 4 wait targets are not met. After an independent review's fixes the rules act rarely (about two refusals a seed, no give-up in 8 extended seeds), and
park-scenariois the same as 1.2.0 within the noise: censored p90 93 and p99 116 turns (1.2.0: 96 and 117; default: 73 and 108), happiness, revenue and use Gini unchanged. No setting of 12 tried (join 10 to 90 turns, give-up 50 to 120, alternative share 60 to 150 percent) met the targets without refusals that cost guest time. The four level parks are bit-identical to 1.2.0 (one ride: no alternative). The first build looked better (p90 43, p99 81) only because it counted walkers behind the guest as ahead of it and used every ride as an alternative; it refused guests whose wait was fine, 34 percent of its refusals were refused again, and guests rode less (104.2 guest seconds per ride against 91.2). Rule 2 never fired in the measured seeds; it is kept as insurance for parks with a badly slow ride and a test constructs that case.New guarded metric.
use.guestSecondsPerRide(the window's guest time over the boardings of rides, the pooled "time between a guest's boardings"; down is good) is in the report and--guest-compareas a regression guard, so a wait gain bought with refusals shows up. Phase 4's target row now names it as guarded.State and saves. None: the patience is a trait and the rules read host facts. The phase 3 resume test covers the extension at 1.3.0, and a 1.2.0 park is refused with the usual message.
Pins. Off-path and script-mod pins unchanged.
SmarterGuestsFixedRunHashunchanged (0xC8534726E08D0EC2) andScenarioSmarterFixedRunHashunchanged (0xC0344925E23A32C1: the scenario's 12,000-tick run never refuses or dismisses a guest). Explained in DETERMINISM.md.Interface (additive, for sessions building on
IGuestDecisions). Default-implementedAlternativeLookAfterTurns( context, guest )(-1: not asked;ScriptGuestDecisionsforwards it); optional trailingBestAlternativeWait256(default -1) onAdmissionViewandQueuePatienceView;QueuePatienceView.Positionis the current place after a move-up;GuestSimulation.BestAlternativeWait256(pure, scanned only for a guest not at the front from its own give-up turn); additiveParkScenarioOptions.TwinAHoldMillisecondsandSingleRide(defaults unchanged). No change toGuestState, the state switch,Guestor the snapshot. A policy that ignores the members behaves exactly as before.
Smarter guests, phase 0b: the decision seam, two extensions and the guests' identity (October 17, 2026)#
Two official extensions, both off.
opentpw.smarter-guests(AffectsSimulation, version 1.0.0 = the algorithm identity) andopentpw.guest-insights(UI only, never recorded in saves) are registered inOfficialExtensionsand read throughFeatureGates.SmarterGuestsandFeatureGates.GuestInsights, with names and descriptions in the nine interface languages (SupplementaryStrings). Players cannot switch them on yet (PlayerSelectablefalse): a no-op 1.0.0 would lock saves and block park sharing, so the screen hides them andmods.json/--enable-modentries are ignored with a log line until the first real rule (phase 2 and phase 1); tests and development useOpenTpwExtensions.Use. A version bump refuses older saves with a clear message (migration may come later). The existingModSetandParkResumeModsalready record and refuse a mismatched simulation set; tests cover the three refusals (missing, extra, other version).IGuestDecisions, a pure decision layer.GuestSimulationtakes one at construction (null: the gate decides, read once in the constructor).OriginalGuestDecisionsis a stateless extraction of the original's logic at seven points: booth verdict, major decision, minor decision, queue admission, post-use memory, wander goal and a new queue patience hook (the original stays). The host keeps every effect and everyWorldRngdraw, and no delegate reaches a policy: the host runs the choice loops itself, asking the policy to score and to compare (BeatsInMajorDecision,BeatsInMinorDecision) and making the route request alone, so a policy cannot take, skip or reorder a draw or a route; the booth's draw is taken first and passed in, the wander search and its draws run in the host and the policy accepts or replaces the result, and the host throws anInvalidOperationExceptionnaming the policy for a result it cannot act on, and the bridge's join is split into the host's room checks (CheckJoinRoom), the policy's gate and limit, andAppendToQueue. A banned-API source check and a reflection check (sealed, no mutable field) guard the policies; the histories in a view are read-only wrappers.SmarterGuestDecisionsdelegates every call to the original.Birth ids and the extension's park state. With the extension on, every guest gets a 64-bit
BirthIdat creation (before the booth decision); guests without one (older saves, original imports, parks started with it off) get theirs on the extension's first tick in thing-list order (in practice only imported original saves and tests: a park saved by this build carries its ids and one saved without the extension is refused); a counter at its limit is refused before the creation takes a slot, never wrapped, and a saved counter ofulong.MaxValueis invalid.SmarterGuestsState.Trait( parkSeed, birthId, traitIndex )is a stateless SplitMix64-mixed hash; nothing uses it yet.Persistence. The optional park-resume section
SmarterGuests(counter, first-tick flag, park seed, birth ids keyed by guest thing id) is null and omitted while the extension is off, has its own capture, validation (present exactly when the extension is recorded inMods), restore and canonical hash, and leaves the guest snapshot untouched. NoWorldStateHash.SchemaVersionbump (stays 21): the state joins the hash only while the extension is on, the way the bump and tour modules do, so the off-path hash is byte-for-byte what it was and every pin holds;GuestSimulation.ComputeStateHashnever sees it. A build from before the section refuses such a save (the strict codec rejects unknown members), documented in MODS.md.Tests and pins. Off: the gate is off, the policy is
OriginalGuestDecisions, and every existing pin is unchanged. On:DeterminismTests.SmarterGuestsFixedRunHashpins theSyntheticParkrun (gate and policy type asserted); that run's guests, economy and guest snapshot equal the off run's every 1,200 ticks;ParkScenarioFixedRunHashholds with the extension on; a saved-and-resumed park hashes like the uninterrupted one every tick for 1,500 ticks; a counting policy shows every decision point is taken through the layer and changes neither the guest hash nor the generator state.--guest-report --guest-extension smarter-guestsruns the whole report with the extension on (anextensionslist in the JSON, a table line);--guest-compare off.json on.jsonshows every metricsamewith the delegating policy. The report JSON now always has anextensionslist ([]by default). Phases 2 to 6 can now compare on against off.
Smarter guests, phase 3: spreading (October 17, 2026)#
What changed.
opentpw.smarter-guestsgoes from 1.1.0 to 1.2.0 with the rules of phase 3 (SMARTER-GUESTS.md): (1) the queue term of the score is the expected wait for every attraction, at any distance, replacing the original's near-only queue match:(guests in the queue + guests walking there) x observed time per guest, from a persisted moving-average throughput estimate per attraction instance (RideThroughputs: gaps between boardings while the attraction had demand; cold start from the live capacity and a default cycle of 60 turns for rides and 12 for services; closure, breakdown and an empty queue start a new gap; an upgrade restarts; the interval is clamped to 1 to 1,200 turns; a stalled ride is read as its silence), never taking a candidate the original would have chosen below the choice floor; (2) a stable 94 to 106 percent preference per guest and attraction instance; (3) hysteresis between rides in the minor decision (20 percent of the target's score, at least 2 points; shops, toilets and sideshows stay impulse stops, which the measurement required). Off, nothing runs and every pin is unchanged. The extension is still not player-selectable.State and saves.
Throughputsjoins theSmarterGuestssection (attraction-id order, omitted while empty), is validated strictly (attractions the save holds, ascending ids, capacity, interval and sample limits, boarding turn not after the park's turn, demand only after a boarding) and hashes only while non-empty. The resume continuation test now includes it. A 1.1.0 park is refused with the usual message.Review fixes. (M1) The stuck-guest explanation was wrong: an independent log of 64 stuck guests showed none had all four rides in its history (44 had two, 18 one, 2 none) and in 62 of 64 every attraction, unused rides included, scored below the choice floor from distance and excitement alone. A ride the guest has not used lately and the admission gate would let it through to is now kept at the floor, which brings the stuck guests back to the default's level. (M2) Demand follows the queue state at every park turn start: an open, working attraction with a queue gets an entry and a silence clock, so a repaired ride whose head never boards and a ride that never boards anybody are read as stalled. (M3) The estimate keys on the live capacity (
LiveCapacity, the script'sVAR_CAPACITY), so ride-settings changes restart it. (L4) Candidates kept at the floor rank as10 + score / 5. (L5) Same-turn boardings are gaps of 0 (the minimum interval is now a quarter turn). (L6) The walkers per attraction are counted once per decision. (L7) Comments fixed.Measured (extended scale, 8 seeds, 3 SE, against 1.1.0 and the default): on
park-scenariothe median wait falls from 17.0 to 13.5 turns (-4.1 SE against 1.1.0; the default's is 11.6, +2.0 SE, "same"), the censored p90 from 101 to 96 (-1.9 SE, "same"), departures per admission and the use Gini improve, the stuck guests fall from 5.25 to 1.25 (-4.1 SE, equal to the default), and phase 2's gains hold (price rejections 0.024, happiness +12.1 SE and revenue per admitted guest +5.2 SE against the default). Still failing there: the censored p90 and p99 against the default (96 and 117 against 73 and 108): the park keeps its guests (41 against 33) and the four one-guest rides carry them at the queue limit; that is for the patience rule (phase 4). The preference and the hysteresis are invisible in the scenario (its twin rides were already used evenly); the hysteresis acts a handful of times per 40 days. The level parks changed (they were bit-identical under phase 2; now no seed ends in the default's state hash) but only space moves beyond 3 SE: median wait 33.0 to 35.3 (regressed), p90 432 to 387 and revenue per admitted guest +8.9 SE (improved), use Gini over all attractions 0.285 to 0.302; Halloween's happiness of the guests still inside +3.2 SE. Hysteresis on every kind of attraction was measured and rejected: it cost Halloween 14 SE of revenue per admitted guest.Pins. Off-path and script-mod pins unchanged.
SmarterGuestsFixedRunHash0xCB2F2ECD287ED83F → 0xC8534726E08D0EC2: the synthetic park's guests are still the off run's (equalComputeStateHash); only the drinks shop's throughput estimate joins the world hash (the review fixes added the silence clock to it, hence the second value).ScenarioSmarterFixedRunHash0x5680EC44DBB01974 → 0xC0344925E23A32C1 (the guest state hash of a 12,000-tick run; the review fixes did not change it): the rules act on the scenario's rides. Both explained in DETERMINISM.md.Interface (additive, for sessions building on
IGuestDecisionsand on the guest simulation). Default-implemented membersUsesSpreadingandSwitchesTarget( context, guest, target, targetScore, candidate, candidateScore ); optional trailingAttractionView.ReservationsandTurnsPerGuest256, andAttractionScoreInput.QueueMatchOverride;ScriptGuestDecisionsforwards both members. InGuestSimulationthe host edits are small and gated ondecisions.UsesSpreading: one call inOnVisitorBoarded, one inBeginTick, one inUnregister, the hysteresis inMinorDecision, and the rest inGuestSimulation.Decisions.cs; no change toGuestState, the state switch or the guest snapshot. A policy that ignores the members behaves exactly as before.
Smarter guests, phase 1: the original Top 3 Thoughts and the guest-insights refusal counters (October 17, 2026)#
Top 3 Thoughts, traced in tp.exe. The park information window (
0x4A52A0, table0x7537D0) shows threeti_hungryicons and no text. The ranking0x4C8430counts the thought id of every guest standing on a park cell (0x4FA990) into 23 counters, discards the count of id 0 (0x4C84D7), keeps three unsorted slots that start as the ids 0, 1 and 2, lets each id from 3 to 22 take the slot with the lowest count when its own count is strictly higher (the lower id keeps a tie), and writes 0x17 (nothing) for a zero count; slot 0 is the rightmost icon, the frame is the id less 1, a one-second timer (0x80083) refreshes it, and an icon hidden by an empty slot stays hidden while the window is open; the icons' hover text is the THOUGHTS.str entry of the frame.TopThoughtRankingandGuestSimulation.GetTopThoughts()implement it;GuestStatistics.CommonThought, a guess nothing read, is gone. The layout table is generated (ParkInfoWindow,tpw_exe_layouts.py), and the window now draws the original frame, title and icons; the line graph, counts frame, happiness levels and navigation buttons areAPPROX:UI-914.opentpw.guest-insightshas its first feature and is selectable.GuestRefusalCounters, a passive observer, counts why guests said no (too expensive, queue too long, too scary, too boring, ride broken or closed) and the park information window shows the totals when the extension is on. Never saved, never hashed, no draw: a run with it on has the same guest hash, random state and snapshot as one with it off.PlayerSelectableis true for this extension only; names, descriptions and the new labels exist in the nine interface languages.opentpw.smarter-guestsstays hidden.Tests. The ranking and its ties on synthetic thoughts and guests, the window's three icons and one-second refresh, the counters, off by default, identical hashes and snapshots with the counters on, the mods screen listing.
Smarter guests: value for money, the first real rules (October 17, 2026)#
What changed.
opentpw.smarter-guestsgoes from 1.0.0 (the seam) to 1.1.0 with the rules of phase 2 (SMARTER-GUESTS.md): the host adds price and willingness to the shop and sideshow candidate views and a guest no longer walks to a stand it expects to refuse (the stand-point check stays the host's and records its statistic once); a guest whose choice this rule empties goes home after K = 1 such decisions with thought 6, the original's "too expensive" thought (counted per birth id inSmarterGuestsState.Stalls, saved asStallsin theSmarterGuestssection, hashed while non-empty, validated strictly); the booth scales the rating part of the park value by 100 to 115 percent by the open rides and sideshows (never harsher than the original); a per-guest price sensitivity trait (90 to 110 percent) scales the willingness. Off, nothing runs and every pin is unchanged. The extension is still not player-selectable (it opens once phases 2 to 6 are done).Why the guest goes home. An independent review found that rule 1 alone makes "can't decide" outcomes 19.5 times as frequent (59 to 1,150 over 8 seeds), because the guest the original sends to the dear shop (and loses two happiness steps there until it leaves) now wanders and tries again every ~30 turns; that loop, not a longer healthy stay, was the stuck-guest regression. K was tuned by measurement over 1, 2, 3 and 5 (K = 1 is best on stuck guests, waits and park size). A first "too expensive" memory of refused stands was removed: it never acted once rule 1 predicts refusals with the stand's own function.
Measured (extended scale, 8 seeds, 3 SE): on
park-scenarioprice rejections fall 761 to 65 (-26.7 SE), guest-time happiness 49.0 to 62.8 (+11.8 SE), revenue per admitted guest 82.1 to 94.2 (+2.3 SE, not significant), admissions unchanged, happiness-0 departures -25.5 SE. Still failing there: queue wait p50/p90 (11.6 to 17.0 and 73 to 101 turns; the dear shop no longer absorbs 28% of the attempts and the four one-guest rides carry them, every variant tried lands on 101 to 108) and the stuck-guest count (1.25 to 5.25, +4.5 SE). The four level parks are bit-identical to the default (they have no price rejections). The booth is validated by unit tests and a scenario variant with a park rating, not by the report.Pins. Off-path pins unchanged.
SmarterGuestsFixedRunHashdid not move (the synthetic park never refuses a guest on price, so the rules never act there); the newScenarioSmarterFixedRunHash(0x5680EC44DBB01974) pins the scenario with the extension on. The script-mod pins run over the original policy and are unchanged. The report gainedqueue.rejected.price.ratefor this phase's target.Interface (additive, for sessions building on
IGuestDecisions). Default-implemented members:UsesValueForMoney,PriceTurnedAway( context, guest, attraction )andDecidePriceStall( context, guest, consecutive )returning the newPriceStallDecision( GoHome, Thought );AttractionViewgainedPriceandWillingness,BoothViewgainedOpenAttractions(optional trailing parameters, 0 unless the policy asks);ScriptGuestDecisionsforwards the three members. A policy that ignores them behaves exactly as before.
Original-level smoke leaves the pools objects out (October 17, 2026)#
With the pools extension on by default (#361), the jungle original-level smoke (--load-original-level jungle --smoke-test) tried to build the pools extension's objects as the "mod objects" it places in an original level. A ladder needs pool water beside it, which an original level does not have, so the smoke failed with "find a site for the mod's Ladder" on main. SandboxSmokeTest.PlaceModObjects now leaves the pools extension's objects out (IsSmokeModObject); the pools smokes (OPENTPW_SMOKE_POOLS) build them with their pool. The TPI rides mod and any other mod's objects are still built and checked as before.
The same default made three Theme Park Inc rides end-to-end tests (they need OPENTPW_TPI_PATH, so CI skips them) count the pools extension's objects as the TPI mod's: TpiRidesEndToEndTests now counts the mod's own entries by its id, leaves the pools extension's objects and reserved ids (65000–65535) out of the "nothing without the mod" check, and checks the save shape on the manifest as a save holds it (ParkResumeMods.AssetsForUse, no pools objects placed).
Spa pool guests sit in the water (October 17, 2026)#
A guest in a spa no longer sits half through the tub's wall (POOLS.md, "Spa pool").
Cause: measured from the shipped models, the seated swimwear sprite is as wide as the whole old basin (0.73 engine units each side of its hotspot below the rim, basin 0.68 to 0.74 across the flat sides), so any of the eight seats on the 0.27 cell circle put the body through the wall. The old seated height of 0.35 engine units also put the guest's water line far below the tub's water (4.3 model units).
Fix (
[EXT:pools-attractions]only): the tub's basin is wider (inner circumradius 4.0 model units, 3.70 at the flat sides) with the water just below the rim (5.2 units, 1.04 engine units), the bench and dividers are gone, and the spa has one seat, in the middle, with the torso at the water surface (PoolAttractionSettings.SpaSeats1,SpaSeatRadius0,SpaWaterHeight). All four themes'spa.MD2were rebuilt withtools/blender/opentpw_pool_attractions.py; textures and scripts are unchanged.Capacity: a spa now holds one guest at a time (it was eight). Nothing of the original game changes.
Determinism: no new random draw;
PoolsAttractionsFixedRunHashmoved on purpose because a taken spa declines the next swimmer (DETERMINISM.md, "Pools").Tests:
PoolsSpaGeometryTests(new: for every theme, the seat plus the sprite's half width stays inside the measured basin, the seated height is the measured water surface, the tub is centred),PoolsAttractionsTests(one seat).
Spanish, Korean and Polish, and Theme Park Inc in its own languages (October 17, 2026)#
OpenTPW reads nine languages now: English, Danish, Dutch, French, German and Swedish, plus Spanish (the Spanish CD), Korean (the EA Slim Pack CD) and Polish (the Benelux/Polish CD, whose table was the one left out). Theme Park Inc uses its own five language folders too.
The two-byte
MBToUni.dat. The Polish and Korean tables are not single-byte: the header is a lead-byte count (1 and 67), the last byte (0xFF) and the last lead byte's trail count (75 and 252). A byte below the lead bytes is a character, a lead byte plus a trail byte (1..255) is another, in table order (329 and 17,270 characters; Korean 188 single bytes, 66 lead bytes with 255 trails and one with 252). The layout rests on the data: all 2,365 Korean and 2,358 Polish strings decode with no unknown code, andUniToMB.datstores the same lead/trail pair for all 17,270 Korean characters.BFMUReader.Decode,StringFile,GameTextCodecand the KEYBOARD letters (two-byte even for ASCII) follow it; the English, Danish, Dutch, French, German and Swedish tables decode as before.Spanish. A single-byte table (248 characters): string tables, fonts, shortcuts, speech, lip-sync and banners read like the other languages; the 21 tables decode to 2,358 entries with
¡ ¿ ñand the accented vowels.Korean fonts. 32 BF4 fonts of 17,270 glyph records each (the glyph limit was 4,096);
GAMEBOLD/MATISSEare absent and the SESH, CASH, CONSOLE and DATE fonts draw Latin only, soUiFontsuses the label font for a role font that lacks the language's glyphs (EXT:ui-font-korean-*); the language row shows한국어only when the font in use draws it. The front-end smoke passes in Korean and in Spanish with every screen read back from the GPU; captures show Hangul, not boxes.Korean signs. Every sign names
gulim.ttc(a TrueType collection of Gulim, GulimChe, Dotum, DotumChe, 12.7 MB) with a code page 949 face name.TrueTypeFont.ParseCollectionandSignFontLibrary.Find(file, face)read it andSignFileaccepts.ttc; a Hangul sign draws. tp.exe and the shipped usp10.dll, read statically: UTF-16 text,SSA_GLYPHSonly (no font fallback), Hangul on the generic Latin shaper and placer, integer GDI advances (APPROX:COMPAT-033).CD detection.
GameEditions.Detectnames a single-language CD's language from its autorun cabinet (spanish.tre,Korean.tre), the language folder besideDataor a lone locale file; such a CD works as the game folder (its own language is the default) and, root orData, as an overlay over another game.OpenTPW's own texts. All 151
OpenTpwTextlabels, the 64 online labels and the four account e-mails are written in Spanish, Korean and Polish (the PR lists the terms to check).Theme Park Inc.
--language Dutch(or French, German, Swedish) reads TPI's own tables for the slice: its text HUD (35 newTpi*labels in nine languages), its object names, and the names of the objects the cross-edition mod brings into Theme Park World. The slice has no advisor, so there is no advisor text. A Dutch capture of the science world is in the PR.Checks. Synthetic tests for both layouts, the codec, CD detection and the TrueType collection; data tests gated on
OPENTPW_ES_PATH,OPENTPW_KR_PATH,OPENTPW_PL_PATHandOPENTPW_TPI_PATH. No CD data, font or game file is committed.
Staff and guests pick their view direction the way the original does (October 17, 2026)#
tp.exe picks a sprite's direction from the heading in 45 degree sectors plus the camera's yaw in 45 degree sectors, and never from the camera's pitch: the banks store one elevation (5 directions per slot, the rest mirrored), the same for staff and guests (0x518F90, 0x4FA030, 0x542010). The yaw sector is 8 - (trunc((yaw + pi / 8) / 2 pi x 8) & 7) with the park camera's yaw wrapped to 0 to 2 pi (0x540AB0, 0x46F1C0), so heading and yaw are quantised separately. OpenTPW snapped the exact camera-relative angle once; the kid, costume and staff renderers now use the original's rule, the Home camera is unchanged, and the swimmers' renderer keeps the exact angle for its lying poses. Presentation only: nothing here touches the world generator, so no pin moves. --debug-staff (Debug builds) hires and places one of each role for captures; --debug-staff-at x,y picks the cell.
A staff member under a freshly built object walks out (October 17, 2026)#
A staff member standing on a path cell that an object's placement then took (the pools extension's changing room is the common case, built beside the path the entertainers patrol) stayed inside the object for good: the cell kept no link, and the staff patrol (
StaffWorldSimulation.Patrol) ran only the link walk of the wander search, which finds nothing from a cell that is no path cell. The patrol now continues with the off-path search of tp.exe 0x004F9490 (GuestWander.OffPath), after the step-count draw it already took, exactly as a guest in that spot does, and he walks to the nearest path cell a route reaches.Nothing changes for a member on a path or queue cell, so runs without such a member keep their determinism pins. Covered by
StaffPoolObjectTests(the cabin built over an entertainer in all four rotations).
The walk to the stand point is the original walk, and a queue edit leaves no guest stuck (October 17, 2026)#
A called guest's last walk, into the ride's entrance cell for the stand point (state 13), is now the search and edge-test walk of every other guest wherever the cell map lets it in (WALK-006 narrowed; QUEUE-015 narrowed). Read in tp.exe via REA:
The call (
0x4FFFF0): a guest at place 0 that the ride called asks the generic route0x4FA5F0to the stand point0x4DEDF0(0), the entry cell+0x36of the ride; a route makes state 13 ("being loaded to ride"), none logs "the player has removed the path from under me and I can no longer get into object" and releases the called slot (0x4E0AC0), unlinks the guest (0x4DDD20) and dismisses it (0x5012F0, exit0x5004AA). State 13 itself (0x5006B0) treats a stuck walk (result 2) as arrived and goes on to the price test and the ride's admission (0x4E0900).The queue edit (
0x4DE1F0calling0x501390for every queued guest but the called one): a guest leaves only when its place is at least four per cell and it is not in state 14, so the original re-evaluation never looks at a guest's cell; the demolition (0x527EE0) and the queue undo (0x52FE50) are the only clears of queue cells there.Built: the walk into the entrance cell goes through
GuestNavigation.Navigatelike the queue walks. A queue whose outside cell is removed under the player-approved[EXT:removable-access-cells]falls back to the path cell as its one-cell front, and guests stand in that cell (GuestSimulation.StandCellOf), where the stand point used to lie in the emptied cell beyond it and the guest waiting to board was left stuck there.Imported rides link their entrance cells (WALK-006): the original's load reads each cell record whole, link byte
+0x0Cincluded, and a placement lays the same byte through the outside path cell's link writer (0x5348D0reaching the type-9 cell along its queue link). OpenTPW's import typed the footprint cells but left the byte at 0 on Easymode's eight entrance cells and its exit cell, so the edge test0x4D8750refused the step into the stand point and a route-walk fallback was needed (the jungle smoke needs it no longer). Imported entrance and exit cells now take the saved byte (ParkCellMap.TakeSavedAccessLinks);ImportedAccessLinksTestschecks all nine against the save and that a placement (ObjectAccessCells.Lay) lays the same entrance byte for the rides without a queue.Still approximated (WALK-006): a park resumed from an OpenTPW save made before this change holds entrance cells without the byte, so the edge test refuses the step and the guest keeps the route walk where the original would dismiss it; repairing those cells with the placement's link writer would retire the item. QUEUE-015 keeps its demolition charge and placement counters.
Pinned digest moves (docs/DETERMINISM.md): the fixed synthetic run 0x3DA16AED71E2F1E4 → 0x625402703E4F66A7; the Jungle guest run and the cross grid of PathBuilderTests do not move.
Saves: unchanged; a walk restored from an older save keeps its route walk.
New tests (QueueStandWalkTests): the original walk into a linked entrance cell, the route walk where the edge test refuses it, and a called guest whose queue is edited away standing in the fallback entrance and not stuck. GuestThingIdReuseTests now restores the script variable of a presented guest like the other snapshot tests do.
The original's substep scheduler runs the scripts, the bump module and the tour cars (October 17, 2026)#
DET-013 is narrowed to what is left. tp.exe's main loop (0x54F4BF) runs a 31 ms substep, and OpenTPW now runs what the substep runs in the original's order, derived from the park's own tick count (SimulationSubstep: substep n ends in the first 60 Hz tick whose end is at or past n x 31 ms; the turn counter is the substep counter divided by eight, exactly). Read in tp.exe via REA:
The script pass (
0x5516B0, called at0x54F56B): a pass counter (0x8791A4) rises, then the script list is walked, and a script runs a slice only when(script id +8 xor pass counter) & 7 == 0or its TURBO byte+0xB8is nonzero (0x5516E1..0x5516F6): one slice per eight passes (248 ms), on the pass its id selects. A new script is linked at the list's head (0x5599D3,0x5588C0), so the pass runs newest first; the script ids are a never-reused counter (0x8791A8, 1 at the start,0x558C0D) and so the creation order.RideScriptWorld.RunPassandRideVM.StepSubstepare that pass; every script's clock gains 31 ms per pass, slice or not, so a WAIT wakes on the first slice after its time. The pass counter restarts at 0 when a level loads and is not in the original's save; OpenTPW's park save carries it (optionalRideScriptWorldSnapshot.PassCounter, 0 when absent, validated non-negative) so a resumed park continues exactly.The bump module (
0x546C80,0x54F55F) ticks once per substep before the scripts; the tour cars (0x55ABF0) only on even substeps (test al,1of the substep counter0x877D34,0x54F5D7), after the scripts; the park turn follows when the counter's low three bits are clear (0x54F668). The renderers' interpolation fractions (the bump and tour remainders) are now derived from the clock, not accumulated.A paused park runs no substep (
0x54F4D4: the body is skipped while the pause flag0x7A1A8Cbit 0 is set), so a paused park's scripts and rides stand still, as its calendar does; before, the scripts went on.A lost park (world state 4) still runs the turn's tail:
0x516395jumps to the gate retry, and the arrival update (0x4D7B20->0x4CF3E0) tests no world state of its own, so the turn's tail runs in every state (the group is 0 there,0x4CF5B0, but the bus still comes and goes). The old code skipped it.The weather is stepped once per swept turn, by its thing in the walk; the second call at the end of
SimulateSweptTurnwas a no-op (ParkWeather.AdvanceTosteps whilelastTurn < turn) and is gone. A lost park's weather thing is not walked, so its weather stands still, as the original's.The advisor draws nothing (DET-015). The one world draw of its update (
0x59A550) is the mode-3 pick (0x59A7AC); the mode word (descriptor+0x2C,0x59C490) is 2, "previous + 1" (0x59A796), in all 351 rows that the initializer0x5A0A50fills (tpw_exe_tables.pynow fails if any row differs), so the branch is unreachable and the advisor stays off the stream for good.
Pinned digest moves (docs/DETERMINISM.md): the fixed synthetic run 0xE48128553808938B -> 0xA91A607272718E93 (schema 21 stays). Cause: the fixture runs Level's substeps, so the shop's and the dice scripts take one slice per eight substeps in the original's pass order instead of one on every tick, and their draws, waits and every guest interaction after them move. The script pass counter joins the canonical hash once a pass has run, so a world that never ran one keeps its other pins.
Saves: one optional field, PassCounter, in the script world's snapshot; an older save loads and the counter restarts at 0, as an original save's does.
Still open (DET-013): a script created with an explicit seed keeps a private generator; the ids and pass phase of an imported original save's scripts are OpenTPW's creation order (the saved script ids and states are not imported); the ride visitor protocol's host step, the coasters and the animators stay per 60 Hz tick, and the effects system (0x520130) and the second even-substep system (0x475360) are not modelled. ECON-001's catch-up cap stays EXT:fixed-catch-up-cap.
Swimmer sprites for the swimming-pool mod, generated from code (October 17, 2026)#
What.
tools/blender/opentpw_kid.py(a parametric low-poly kid, mum, dad, granny and grandpa, one preset per original guest sprite set: the eight TPW kid sets and the eight TPI sets BD, GB, GK, KB, FA, MO, GM, GR) andtools/blender/opentpw_swim_sprites.py(front crawl, breaststroke and treading water, five directions, with a water-line tint, foam ring and splash droplets). All art is original and made from code; the original sprites were only used to match proportions and colours, and nothing derived from them is committed.Calibration.
opentpw_kid_calibrate.pyrenders the standing kid in the original's sprite cell and compares it with the original standing frames. Camera and lighting constants per edition (TPW 32 degrees, TPI 42 degrees) are in the script and indocs/CONTENT-KIT.md; standing heights are within 3 pixels of the originals.Not done. Packing into ESP/TPC banks (the sprite-set writer is separate); the generated PNGs are not committed.
Polish pass. Procedural hair, fabric and skin detail, a key/fill/rim light rig with a contrast and saturation grade tuned against the originals' pixel statistics, raised swimmers with a lighter underwater tint, lengthened limbs and exaggerated strokes with more splash, per-character details for the TPI adults (belly, moustache and stubble, bun and lipstick, perm and glasses, sideburns and bald top) and a taller KB cap.
opentpw_swim_compare.pybuilds the before/after sheet.Third pass. Painted look instead of plastic (diffuse materials, procedural painted albedo in one shared texture space, ambient occlusion, warm shadows, mild sharpen), smooth capsule limbs with joint balls and analytic normals (no more rings), per-set palette quantisation of the frames (median cut, 255 colours) with the true-colour frames kept alongside, wet hair and a higher, more rolled crawl so the back, shoulders and recovering arms read from directions 0 and 1, and
--verify(crawl roll and head turn on all 16 sets, arm visibility masks). Heights are unchanged within 1 px (KI 33 to 32).
Proportions (after review):
smaller eyes, set higher, so the forehead shows under the hair;
a smaller kid head;
a longer torso and longer legs for kids and adults;
shorter spikes on the spiky-haired boys.
Standing heights stay within 3 px of the originals; the tables are in CONTENT-KIT.md.
Full guest sets.
opentpw_guest_sprites.pyrenders replacement sets for every guest of both editions (TPW kids; TPI kids, parents, grandparents): clothed outfits (CLOTHES, a preset switch), every original animation slot with its original number, frame count and directions (poses inopentpw_guest_anims.py), the swim slots 8 to 10, and the 7 x 8 rider head sets, as quantised PNGs plus aset.jsonwith hotspot origins for the packer. Frames are rendered at the full-detail (FPC) scale, 1.25 times the TPC reference scale. A throwaway check packed all 32 sets withSpriteSetBuilderand read them back (slot tables match the originals). Shipping path:data/esprites/Generic/<Folder>/SPR_xx.*in a mod'soverrides.Review fixes. Camera elevations re-measured (TPW 27, TPI 25 degrees, scale adjusted), walk and run now start at contact with the originals' foot spread, longer kid legs and smaller heads (head ratio 0.35 against the original's 0.32), FA/GR reworked, head hotspot of the TPI sets 6 px lower, TPI heads re-rendered.
The Theme Park Inc rides mod ships with OpenTPW, on the desktop and in the browser (October 17, 2026)#
The data mod that brings Theme Park Inc attractions into Theme Park World is no longer an example to write by hand: OpenTPW ships it as opentpw.tpi-rides (content/mods/opentpw.tpi-rides/, a manifest and an objects.json, no Theme Park Inc bytes), found like any other program content, off by default, and it works in the browser build too.
The mod (
[EXT:mods],[EXT:cross-edition-objects]): depends on the cross-edition objects extension and asks for the inputtpi(Theme Park Inc data). It lists 183 objects: every archive of the retail install'srides,shops,sideshow,featuresandupgradesfolders that the parks can load (182 of 217; the rest are the names the park already lists, orptract, which declares noInfo.Id) and the science litter bin, each in the Theme Park World theme of its world, with ids 40001 and up from the reserved range 40000 to 40499. English names are derived from the archive names; the first four keep their hand-written names and ids.TpiRidesShippedModTestscompares the list with the archives the install really loads and regenerates it withOPENTPW_WRITE_TPI_RIDES=1.Desktop:
content/is copied to the build output and to every release (OpenTPW.csproj), so discovery finds the mod in the program folder; it shows in Options > OpenTPW > Extensions and mods, and with the extension, the mod and the install chosen as the input it runs. The test fixture reads the shipped files (TpiRidesFixture), so the existing end-to-end tests (catalogue, economy, buy list, textures, sound routes,WAITABS, the gate's guests, the save records) now run against the shipped mod;scripts/smoke-tpi-rides.shenables it instead of writing a copy.Browser (
[EXT:mods],[EXT:mods-ui]): the mod is embedded in the page like the other content,ModStartup.InitializeBrowserdiscovers and resolves it with/config/mods.json(kept in IndexedDB), and the Extensions and mods screen works there (it resolves at once, inspects in process and has no typed path or Remove). The inputtpiis satisfied by the page's copy of the player's own Theme Park Inc files below/inputs/theme-park-inc(BrowserModInputs): the setup page's Theme Park Inc files for mods button (and Change... in the screen) copies only what the mod reads (324 files, 74 MB of 400 MB) into memory and into a second origin-private store, so the Theme Park World and Theme Park Inc files coexist, each with its own manifest, and a later visit restores them before the mods are resolved. A copy an active mod reads is not replaced during a run.Review fixes: the browser copy is staged and published only when complete and recognised (
BrowserModInputs.Publish: file count,GameEditions.Detect,Ver.txt, per world a ride archive and shared textures, the global sounds), Play waits for an import, a failed copy removes both trees, every outcome (a refused folder too) reports one result so the screen never stays disabled, a restore verifies every SHA-256 and clears an incomplete store,.gitattributespins LF forcontent/mods/**and a golden content digest pins the shipped files.Tests:
TpiRidesWiringTests,TpiRidesShippedModTests,ModsInBrowserTests(browser discovery, defaults, the lock and the screen with the page played by the test),tools/test_web_inputs.mjs(page side: what is chosen, replacing, keeping, restoring a complete set only; added to CI). Checked by hand in Chrome against a published interpreter build with the real install: copy before and during the game, restore after a reload, the savedmods.json, and the Jungle buy list showing the mod's objects. Not checked in a browser: the real folder dialog, the screen's drawing, placing and running a Theme Park Inc ride there (its scripts and sounds are the desktop's, covered by the desktop tests).
One pool of thing ids, as in tp.exe (October 17, 2026)#
Every thing of the park now takes its id from tp.exe's one pool of 10239 slots, so a guest's id is the original's thing id and the rules that read it see the original's numbers. Read in tp.exe via REA:
The pool (
ThingPool, WALK-010 narrowed): the allocator0x516270takes the head of a free list that starts ascending (0x515F30, slot 1 first, last id0x27FF) and makes the new thing the newest of the used list; the free0x516200puts the slot at the head of the free list, so the next thing takes the slot freed last; a destroy request (0x50B780→0x516310) goes to the head of a queue that the park turn's end empties from the head (0x516641, so a turn's requests are freed last first); a load keeps each saved thing in its own slot and rebuilds the free list ascending (0x518D43). Twelve constructors reach it through the base constructor0x50AFE0.The order of a new park (
0x5156A0): the staff HQ, mechanic HQ, advisor controller, tag system, park analyser, research lab, weather, bank, UI message receiver and challenge system are things 1 to 10, then Gates (11) and Lights (12). The jungle level's shipped save lists exactly that (Gates Info.Id 1601 is thing 11, Lights 1603 thing 12, the bus 1600 thing 15), and a test reads it from the game data. The first guest is thing 13. The guest spawner0x516700the world's online code uses (25 guests and staff) is not the offline arrival; staff things are made at the placing click (0x46C8E0), vehicles when first sent (0x51A2F0).Who takes slots (all through the pool): guests (
GuestSimulation.Create, id before the first draw), placed objects, fixed items and arrival vehicles (ParkObjects), hired staff at the placing click (ParkStaff.Hire), freed at the turn's end (Level.AdvanceSimulation; a standalone guest simulation owns a pool and ends the turn itself). An original save puts its whole chain back slot by slot and frees the slots of the things the import does not rebuild.The rules that read the id: the needs phase (
0x501676), the reseed when a guest is made (0x4FB19E, DET-014 narrowed), the prank flag (0x4FB114), the advisor's prank line, the queue edit's anger (0x501496, id modulo 3) and two new ones. The dismissal (0x5012F0) plays the guest soundcat_kids0x80 for a thing id with its low three bits 0 (0x50133D;GuestSimulation.Voiced, presentation only, played at the guest byGameAudio; no draw from a generator). The booth walk (state 2,0x4FF730) sets the speed term on every park turn: 25 for a thing id with its low two bits 0, 50 while the bus waits at status 3, otherwise 0. The staff's pre-update phase (0x505490) reads the member's thing id.Retired: GUEST-003 (the price test, statistics, walk-aways and the refusal's dismissal sound are now the original's; the event records 6 and 10 are the debug-only
[EXT:guest-event-ring]) and QUEUE-005 (the leave-for-room rule, the re-route0x501160with its failure, anger by thing id, the dismissal's sound). Narrowed: WALK-010 (the pool holds only what OpenTPW builds, the destroy requests of a turn come in OpenTPW's update order, the guests' histories hold the script world's attraction ids, OpenTPW's own save keeps the free list's exact order) and DET-014 (the thing-id clause is gone; the entrance cell a creation takes is read now:0x4D8710takesFixedItemInfo.CrossingBSSideAPosXorBPosXwithAPosY, the words0x7855DC,0x7855E4,0x7855E0, the lane's second cell, which the arrival walk will use).
Pinned digests move (docs/DETERMINISM.md): the fixed synthetic run 0x01946A39A53F851E → 0x5F177F986FADADB1 (the pool alone gave 0xA7A559BCC863F8E2; the booth term moved it again), the Jungle guest run 0xF55B1DF82DFF7F3F → 0x30F213E46933EB8C and the cross grid of PathBuilderTests 60 admissions 0xD2F05F91D6567215 → 61 admissions 0x397F3EC43F6F70C8.
Saves: guest snapshot schema 8 (ids are slots; an optional own pool for a standalone simulation); the park save's optional Things (the used list newest first, the free list's head in exact order, the pending destroy requests: a save taken between a demolition and the turn's end keeps them), ThingId of every placed object and staff member, all validated (every thing names a slot of its own model, nothing else holds one). An older save loads: its guests keep their counter ids as slots, the singletons, objects and staff take the next free ones. The resume smoke reproduces the boundary and all 600 continuation ticks with the pool.
Still open: what else the original builds over a session (the End object, online persons) and the order of its destroy requests (DET-013's thing sweep), the thought voices (0x4FC83A, 0x4FCA39; GUEST-006) and the thirst and hunger sounds (GUEST-005), which can now go through GuestSimulation.Voiced, the staff constructors' draws and reseed with the thing id (DET-015), and the arrival walk from the bus-side crossing cell (ARRIVAL-001, WALK-008).
Theme Park Inc runs its money (October 17, 2026)#
The experimental Theme Park Inc slice now runs the park's money on Theme Park Inc's own balance keys, and still refuses staff, research and challenges. Read statically in the no-CD Game.exe against tp.exe; nothing was run and none of it is compared with the running original. Details and the key map: THEME-PARK-INC.md.
The capability is split (
EditionCapabilities):Money,Staff,Research,Challenges;Economyis their conjunction, so it is true only for Theme Park World, which keeps every part on.EconomyRules(Full,ThemeParkIncMoney) tells aParkEconomywhich systems run; every Theme Park World park runsFull, and no determinism pin moved.Settings built from Theme Park Inc's keys: Theme Park Inc's
Standard.samlacks 86 of the 152 fixed keys the Theme Park World economy reads (the executable's schema rows0x9966C0, block0xA01A6C), and no theme layer supplies them.BalanceSettings.ForThemeParkIncreads the shared money keys (bank,LoanInfo[n],Costs.*, the entry-fee perception: the same readers as Theme Park World) and fills nothing else, so no Theme Park World value is invented; the object catalogue gainsInfo.ExpectedPrice,Info.WorkingLife,Upgrades[n].RunningCostandUpgrades[n].CashPerBrainPoint.What runs: starting cash 50,000 and admission fee 25; build, upgrade-less purchases, path, queue and track charges (
[EXT:tpi-free-builds]is retired); scrap refunds with Theme Park Inc's condemned-object branch (state 4 refunds nothing,0x5E765B); loans and the monthly bank step (oracle X8, X9); bankruptcy; the calendar; monthly running costs per object (0x5DEFFF: the current level'sRunningCost, nothing in state 1 or 4); the entry-fee judgement (the divisor is data: 6 in Theme Park Inc's global file, 4 in arabian's layer); Theme Park Inc's arrival-group routine (0x5BCD60, oracle X7: the weather percentage and the single-precision 0.01); no Buy Land (Costs.MapCellis in the data and read by no instruction found); the HUD shows cash, date and entrance fee and prices each build row.Refused or left open: staff, so rides neither wear nor break down and no upgrade is installed (
NeedsStaff); research (the whole catalogue is on offer); challenges, golden tickets, missions; Theme Park Inc's weather (the arrival percentage is always 100); guests paying for rides (InitPricePerUse20 andExpectedPrice25 are read, not charged). New register entries: ECON-060 (the statistics accumulator+0x938and the month handler's order), ECON-061 (the scrap value's thing-flag branch left out), ECON-062 (ride prices), ARRIVAL-008 (no Theme Park Inc weather state). New labels:[EXT:tpi-money-only],[EXT:tpi-no-research],[EXT:tpi-park-open],[EXT:tpi-no-maintenance-wear](a toilet use wears no gauge and no litter drops without staff). TPI weather states 1 to 4 are heatwave, rain, storm, snow (ORACLE.md X7).Tests:
ThemeParkIncEconomyTests(synthetic: capability split, settings, catalogue keys, charges, loans, bankruptcy, running costs, scrap branches, refused systems, the arrival rule) andThemeParkIncPlayTestsover the corpus (settings of every world, the entry-fee divisor, every buildable object priced, a headless park that charges a path and a ride, pays its running cost and advances its calendar).
Theme Park Inc starts at its Personnel File instead of asking for a zone (October 17, 2026)#
Phase 1 of a real Theme Park Inc front end. Theme Park Inc has no island lobby: it boots into its 3D intro world and runs front-end screens as overlays, and its start menu is the Personnel File. Read statically in the no-CD Game.exe (SHA-256 77ea0c41...967a) and drawn with OpenTPW's own widgets:
Layout tables from the executable.
tools/ppc-analysis/lanes/ui/tpi_exe_layouts.pyreads the Personnel File ([BIN:TPI-EXE:0x9c0fbc], 39 nodes) and the generic confirm table (0x9b18bc, 5 nodes) with the same stream grammar as the Theme Park World generator and writesThemeParkIncLayoutTables(rectangles, ids, help ids, model names; no game data). The names resolve against Theme Park Inc'sui.wad(an unresolved hash is an error). The grammar was checked once by hand on all 86 tables of the executable (not reproducible by the script, whose--checkcovers the two tables).Strings. Theme Park Inc's
UITEXT.strhas 994 records with its own ids;ThemeParkIncTextnames the ones the screen uses (19 to 35, 773) andTHEMENAMES.strentries 0, 1 and 3 name the zones.UiStringTable.Entryreads a record by the file's own number.The screen.
ThemeParkIncFrontEnddraws the window, four player slots, name box, Enter Game / Load A Game / Delete Player, Coaster Design Kit, Quit Game and the mugshot from Theme Park Inc's models with the PERSONNELFILE fonts, and the quit confirmation. Enter Game starts the existing slice in science (the original's default for a new player,0x56ab40); an OpenTPW zone chooser ([EXT:tpi-front-end-zone-chooser]) offers Polar Zone and Arabian Nights, which the original reaches only through its campaign. One OpenTPW player ([EXT:tpi-front-end-one-player], the[EXT:no-player-profiles]decision): Load, Delete, the name box and the Coaster Design Kit are drawn inactive.Routing.
EditionCapabilities.PersonnelFileFrontEnd(on for the slice,[EXT:tpi-front-end-phase1]) lets--front-end, or a start without a world and with only file, language, display or sound options, open the page on Theme Park Inc data;--load-original-levelstill starts a world directly and every other option keeps its refusal.Left for later phases: the 3D intro world behind the page, sound, the start-up movies, profiles and saves, the stock labels, the setup wizard's and the browser's up-front zone choice (the browser copies a zone's files at setup).
Not verified: how the page looks on screen (no capture was taken), text placement inside the controls, the quit window's text area.
ThemeParkIncFrontEndTestschecks the tables, string ids, routing, that every model loads with resolving textures over the retail corpus, and a headless draw.
Theme Park Inc park saves decoded read-only (October 17, 2026)#
Static reading of the no-CD Game.exe against the one Theme Park Inc park save, prebuilt.TPWS. The container header fields were misnamed: the "file type" at 0x604 and "version 133" at 0x608 are the end of the header block and the stamp htonl(0x01221985); the language byte follows the magic (and, in Theme Park Inc, the version block), so a Spanish Theme Park World save (language 1) was misdetected as Theme Park Inc. SaveReader now parses the version block generically (any string kept), reads the language, stamp and online word, and tells the two layouts apart by the block's shape. A Theme Park Inc payload splits by reader rules (SavePayloadProfile.ThemeParkInc: 45 message lists, 48-byte camera, empty UI) instead of a delimiter search, and its World block is read into typed records (ThemeParkIncSaveWorld: variables, control manager, staff pool, calendar, status-byte cell map, the marker-checked thing chain with typed attractions including their history rings, the bank and the small things, and the special rides) and consumes exactly to its delimiter. The science prebuilt import uses it: scene records are joined to attractions by mesh instance id and Info.Id, replacing the exact-23-records requirement. Raw and inferred parts are SAVE-940 to SAVE-944. Docs: SAVE-CONTAINER.md, THEME-PARK-INC.md, TPWS-PAYLOAD.md, FORMAT-BACKLOG.md.
Review follow-up: the import refuses a save whose scene record is damaged or duplicated (only the lake obstacle 1703 may lack one, and no attraction may be named by two records). The staff HQ, advisor, park analyser, research lab, weather and challenge things take the prebuilt's widths, checked by the following header, so a header lookalike inside them cannot fabricate things; guests, staff and gardeners (absent from the prebuilt) still end at the first following header that reads, which is a heuristic (SAVE-944).
Theme Park Inc thing bodies traced from their load routines (October 17, 2026)#
The Theme Park Inc park save no longer takes any thing width from the one witnessed save or from a search for the next header. The staff HQ, advisor controller, park analyser, research lab, weather and challenge system (formerly "closure derived": the prebuilt's constants 411, 233, 76,617, 8,414, 104 and 1,287, checked by the following header) and the guests, staff and gardeners (formerly bounded by the first following header that reads) are now sized by layouts traced from their load routines in the no-CD Game.exe: the thing dispatch of the World loader (0x64c771, jump table 0x64d7e0), then each class's load (guest 0x60d260, staff base 0x6267c0 with the role loads, 0x6326b0, 0x7177f0, 0x5ace30, 0x61bce0, 0x641510, 0x5c7c70). Details: THEME-PARK-INC.md.
Layouts (
ThemeParkIncBodyLayout): fields, arrays, embedded records and history rings with the serializer's own member names. A body's width is its fixed part plusmNumEntriesentries for each ring (the staff have six rings of at most 30 entries, so 684 to 1,416 bytes; the analyser 63,177 to 76,639; the guest is 619). The version check of every routine accepts 0 and 1 and nothing but the ring counts depends on stream data. A saved count above a ring's capacity is refused (the original would overrun the ring's own counters).Verified three ways: reading the routines, running each of them in an x86 emulator on streams of chosen content (the width and the offset and size of every read match the layouts for random streams and for ring counts at 0 and at capacity), and reproducing the prebuilt (the six formerly closure-derived widths come out of the layouts, and the analyser's 1,024 cells fall on a 32 x 32 grid of 4-square cells). The mechanic, handyman, entertainer, guard, researcher and gardener bodies have no witnessed save; that remains SAVE-944.
Typed:
ThemeParkIncStaffHq,ThemeParkIncAdvisorController,ThemeParkIncParkAnalyser,ThemeParkIncResearchLab,ThemeParkIncWeather,ThemeParkIncChallengeSystem(words keep their stored width, 12-byte vectors stay raw, 8-byte times follow the calendar) andThemeParkIncPersonfor guests, staff and gardeners, whose every member is reachable by path and offset throughThemeParkIncBody.ThemeParkIncWidthSourcehas one member,Reader;ClosureDerived,MarkerSearchandMarkerBoundedare gone.Tests:
ThemeParkIncThingBodyTests(synthetic bodies from the layouts, emulator-derived widths for chosen ring counts, offsets of the named members, damage and capacity refusals, a header lookalike planted in every traced body, guests/staff/gardeners spliced into the prebuilt's thing chain, and the prebuilt's typed values).Register: SAVE-944 is narrowed to the unwitnessed guest, staff and gardener layouts and the untyped words.
Review follow-up: the tag system (
0x6355d0) is a counted list (numtagsrecords of0xe2cbytes), so its 12 prebuilt bytes were only the empty case; it is now a layout andThemeParkIncTagSystem. The mechanic HQ, UI receiver,OBJH,CUTSandTRNRloads were run and read no count. The byte ring holds 50 entries.tools/tpi-layouts/holds the emulation harness that reproduces the widths and checks the layout text.
Original save guest bodies name their queue, admission, resume and event-ring fields (October 17, 2026)#
The guest body of an original park save was already read to the last byte; this round traces what its remaining fields mean in tp.exe and tightens the reader. The queue links (mQNext, mQPrev), the admission flag (OnAdmittance 0x5012B0, cleared by the dismissal 0x5012F0), the saved state (the state to resume after a spot animation, 0x4FC800), the balloon sprite's previous position and every guest-object offset are documented on SaveGuest and in docs/TPWS-PAYLOAD.md. The person's event ring is typed (SavePerson.ThoughtEvents, RecentEvents: 32 slots of type and value words, head advanced by AddEvent 0x50C100). The reader now refuses what the game's own code cannot write: a state above 21 (all 52 callers of the state setter pass at most 0x15; the setter itself does not guard it), an admission flag above 1, a ring head above 31 or an event type above 0x19. A corpus test reads every guest of Easymode and the eleven private saves (35 guests) and checks that each body is consumed exactly; a refused guest aborts the whole park import, and the bounds are verified against this tp.exe build only. Synthetic tests cover the round trip, truncation and the refused values. No guest in the available saves stands in a queue or on a ride, so those fields rest on the code; the SAVE-002 wording now names what stays unimported.
Scripts and Particles blocks of original saves decoded (October 17, 2026)#
The Scripts (SCPT, tp.exe loader 0x475730) and Particles (PCLT, loader 0x51F7A0) blocks of an original park save are now typed records, SaveScriptsBlock and SaveParticlesBlock, that consume exactly the width the loaders read (the widths were already traced in SaveBlockWidths). A script record is a 0x118-byte sprite-script VM instance (slot, program counter, entry, state, wake tick, period, position, 19 parameter words, the rest raw by offset). The particle block gives the pool globals (generator, tick counter, handle generations, density, list heads), the 120 emitter slots (effect id, generation, life, position, velocity, rates, cap, child, list links, name) and 20 effector slots, and the saved template tables; the emitter slot is a copy of its template, so the template offsets are the slot offsets. All 11 corpus saves read to the delimiter, the saved effector templates and emitter templates 0 to 100 equal Tp2.plb, and every pool restores into ParticleSystem and captures back (SaveParticleState). Neither block is applied to a park: the sprite-script table has no runtime counterpart and the ambient emitters restart from the level (SAVE-013).
The browser game runs on CoreCLR WebAssembly in .NET 11, also with ReadyToRun, but still slower than Mono AOT, so Mono stays the default (October 17, 2026)#
dotnet publish -p:UseMonoRuntime=false (.NET 11 RC2) produces a browser build that boots, reaches the lobby in 8.7 s, opens Jungle and gives the same texture hash 1CC5AEB033691043 and simulation hash 0B45FAA2ED526C78 as the Mono builds. The earlier spike's "no first frame in 600 s" was the measuring harness stuck at the Game Mode screen, not the runtime.
Plain publish is interpreter-only. The RC2 SDK has no ReadyToRun step for browser-wasm (
PublishReadyToRunstops with NETSDK1095; the SDK integration, dotnet/runtime#133378, is milestone 12.0.0 and not on release/11.0). The .NET 11 runtime page's WebCIL V1 /WasmObjectWriterremark is about crossgen2 and the loader, not an SDK switch.crossgen2 itself works. The crossgen2 package restored by the workload targets
browser/wasm;tools/web-coreclr/r2r.mjscompiles the trimmed IL of a finished publish as one version bubble and patches the boot config (tableSize,payloadSize, hash). It boots and the hashes match.--opt-cross-module:*(the SDK's choice) crashes crossgen2 RC2, composite is rejected.Measured (medians of 3; Mono AOT / Mono interpreter / CoreCLR interpreter / CoreCLR + R2R): Jungle ready 10.2 / 13.1 / 98.4 / 21.4 s, first frame 2.4 / 3.3 / 8.7 / 4.5 s, Jungle steady 60 fps at 9.8 % busy / 60 fps at 23.8 % / 7.9 fps at 100 % / 38 fps at 97 %, texture decode 0.56 / 2.4 / 17.0 / 1.6 s, 3000-tick run 0.20 / 0.36 / 3.1 / 1.4 s, bundle 19.9 / 13.3 / 13.8 / 29.8 MB Brotli. Table in docs/BROWSER-PERFORMANCE.md.
Decision. Mono AOT stays the published build. CoreCLR (and the R2R step) are documented opt-ins (docs/WEB.md); delete the Web project's
objandbinwhen switching runtime. Revisit with .NET 12.
Sign boards decode at the original's x87 precision, instruction for instruction (October 17, 2026)#
Where the wavelet decode runs (verdict: 24 bits). The decoder object is built by
0x5916C0through0x5985C0, from two places only: the engine init0x572780->0x564B20(registers the codec,[0x879A68]) and the sign generator's own instance (0x5EBFC0, called from0x467A80). In0x44DF20the display init0x5632B0and the Direct3D start (0x5836D0->0x572C40->0x573080) both come before0x572780, and neither function has another caller, so no decode can run before the device exists and every decode runs at the 24 bits of #291 (the same verdict, caveat and thread argument). The decoder methods are the vtable at0x7026B8(0x5987B0->0x592000, which runs the colour decode0x592730or the alpha decode0x592E60by a flag argument, one call per kind); no thread entry point reaches them.The one 53-bit part: the D4 coefficients.
0x591600,0x591630,0x591660and0x591690are C++ static initialisers (table at0x72BD70, inside the range0x727000..0x72E0E8that_cinit0x67F8F0walks after the FP hook0x67A5F0->0x6804D0set 53 bits), so they run before WinMain:((sqrt 3 - c) * 0.25) / sqrt 2with every operation rounded at 53 bits and the quotient stored as a float32.SignWaveletDecoder.D4Coefficientscomputes them onExtat 53 bits; the old closed form differed in operation order.What was read and ported. The header scale multiplies each dequantised coefficient (
0x592B80and the copy inlined in0x592E60: table float times scale,fstp dword), it does not enter the filter (the decoder used to fold it into the row pass's D4 taps; this closes the "where the scale enters" question of COMPAT-018). The 1-D inverse0x592C50has five forms: the steady software-pipelined loop, its last pair (a different wave order), the wrap pair 0, and a short-row loop for rows under six samples; the column passes0x5933A0(colour) and0x592E60(alpha) are copies of it along the rows (the last column of each row pair takes the last-pair wave, and the two wrap loops add the smooth products in different orders). They were derived with a small symbolic x87 stack interpreter over the disassembly, so the operand order is the binary's, not a transcription. The colour conversion0x5935A0works per 2x2 block: the chroma termsCb*1.772 + magic,Cr*1.402 + magicand(magic - Cb*0.344136) - Cr*0.714136are formed once on the register stack, each luma is added to them (a second rounding; the old decoder rounded the whole sum once) and the float's low 9 bits index the clamp table. The alpha conversion (0x593301) compares with 0.0 and 255.0 and truncates (_ftol).Registers. At 24 bits an x87 register rounds like a float32, so the default path runs on floats (
SingleReg) and the same formulas run on emulated registers (ExtReg,Ext) for any other precision; a test pins that the two give identical bytes on synthetic data and on original boards at 24 bits, and that 53 bits moves pixels. An independent double reference of the D4 inverse confirms the structure (rows, columns, wrap, scale), within one level.Effect. On the 23 original boards the alpha plane moves on at most 8 000 pixels (one level; most boards not at all) and the colour channels on 12 000 to 26 000 of 98 304 components, by one level, as the COMPAT-018 note predicted. Rendered boards (gates, ride boards, signs) show no artefacts at the wrap rows and columns. Re-pins: 28 left/right half hashes of the 14 signs with a wavelet board in the sign baseline TSV and the five
RidesRound2table-named signs; the cause is in the baseline's header.Header-to-plane order (settled in review). The PC board reader
0x5E7990(called by the sign reader0x5EC3A0) reads the six header dwords (four floats, two chunk lengths) and calls the codec's0x592000through the vtable twice: once with flag 1 for the colour planes (the first three floats as the Y, Cb and Cr scales:0x592730passes them to the three dequantisations in plane order, and0x5935A0reads plane 1 as luma, plane 2 as the 1.772 chroma and plane 3 as the 1.402 chroma) and once with flag 0 for alpha (the fourth float). That is the Mac loader's order Y, Cb, Cr, alpha, which the decoder already used.The 255/254 alpha rows are the original's arithmetic. A fully opaque board (the gates, the sign boards) has a constant alpha plane, and it decodes to 254 on even rows and 255 on odd rows. The D4 taps are float32,
H0 + H2andH1 + H3differ in the last bit, so the final column pass gives 254.99998 on the even rows, which0x593301truncates to 254. An independent float32 reimplementation of the verified formulas reproduces every alpha byte of two boards, and a constant plane gives the same pattern at every side, so it is not an orientation fault of the decoder (TheOpaqueAlphaPlaneDecodesToTheOriginalsRowPatternpins it); it is invisible in the blend.COMPAT-018 narrowed. The arithmetic and the plane order are now the original's; open are the GPU row orientation and original-platform board pixels.
Browser performance runner follows the current front end (October 17, 2026)#
tools/web-perf/run.mjs stopped at the Game Mode screen on current main: Full Simulation now needs the tick on that screen and, in a profile without a progress file, the new-progress consent, where the runner used to click Full Simulation once and wait for the park. The runner now starts a park with Page.enterFullSimulation, which reads the game's own state (menu and hudScreen from opentpwPerf.state()) and clicks each step once per visit of its screen: Full Simulation then the tick on gameMode, the first choice on newProgress, until the park's HUD is up. A fresh frame is waited for between clicks so two clicks never share one frame. A progressFailed dialog, a Continue screen (themeStart, which means the profile already holds a saved park) or a stopped game end it with an error naming the state instead of a timeout. The jungle, switch and revisit scenarios all use it, so there are no fixed numbers of presses left. The usage is unchanged. Checked against a locally published interpreter build: start, lobby, jungle, buy and digest finished, and the jungle, switch and revisit scenarios ran with --keep lazy.
The pools sprites reach the browser on demand (October 17, 2026)#
The Blender sprites of the pools extension (the 2x land guests and the swimwear sets, 8.84 MB) now ship in the browser too, without growing the startup download. content/pools/esprites.manifest.json pins the path, size and SHA-256 of every sprite file (tools/pools/sprite_manifest.py, run by build-content.sh; a test fails when it and the files disagree) and is the only part embedded in the web assembly (about 7 KB). The web project publishes the files as static files below pools-sprites/, the server image now copies content/pools and content/mods into its web build, and after the start main.js fetches them in the background with three requests at a time: the swim sets (6.56 MB) whenever the extension is on, the land sets only with the pool guest art switch on. Program.AddPoolSpriteFile keeps a file only when path, size and hash are pinned (traversal, unknown paths, a wrong size or hash are refused). A set is used only when every file of it is in: a park that loads earlier keeps the game's guests, swimmers use the kid sprite and get their own renderer mid-level once the swim sets are complete, and offline or a 404 leaves the fallbacks with one console line and no retries. The desktop is unchanged. Checked in Chrome against a locally published interpreter build with the pools extension on: all 48 files were fetched and stored (sizes as pinned) within seconds of the lobby, a jungle park then used the extension's 2x land guests, and with the files blocked the page logged one line and the park kept the game's guests. The startup download grew by about 11 KB Brotli; swimmers switching to their sets mid-level were not observed in a browser.
Review follow-up. The server (WebClient.cs) maps .esp and .tpc to application/octet-stream: .NET knows neither, ServeUnknownFileTypes is off, so the sprite files were a 404 on the server image (play.opentpw.io) until now; the CI server-image smoke fetches three sprites from the running image and checks their size and SHA-256 against the manifest. The server image also copies content/pools and content/mods into its web build, which it did not before: the deployed page therefore never had the pools objects (about 88 KB Brotli) or the data mods OpenTPW ships, including opentpw.tpi-rides (about 31 KB), that the browser build was meant to embed; the production page grows by about that much, a fix of that older bug and not part of the sprite delivery. The swim sets are no longer decoded twice nor eagerly: the desktop decodes them on a worker only for a park with pool water (or from its first painted pool cell), the browser when the swimmer renderer is created. The bottom-anchored swim frames use one lift per animation (the largest rows below the hotspot) so they do not jump between frames, and a lounger's lying step rests on its cushion (0.68 engine units). The page reads a sprite body as a bounded stream, tells the game once when no sets will arrive (no manifest, nothing planned, a failure), and main.js no longer lets a link seed /config/mods.json.
Advisor screen effects, object particles and the refused path click from tp.exe (October 16, 2026)#
Four advisor, particle and audio items were built from tp.exe, read via REA:
The refused path click (AUDIO-022 retired): the click is two handlers routed by
0x46c210(message0xF0, slots +4 and +8 of vtable0x6fe9e0). The press handler0x524790sets byte0x8186d8and every exit of the release handler0x524960clears it, so cat_ui 175 plays at the release that follows a park press. The gate word0x785a2cis the layout-replay recorder (0x785a08+ 0x24, set by0x404140), which OpenTPW never runs. Wired into both the park HUD and the Theme Park Inc HUD.The advisor's ticket and key screen effects (ADVISOR-025 narrowed): the timer also starts the screen-space Key effect, template 87 at native (90000, 0, 7000), top right (
0x5999AD).0x4B9340is the lobby key panel, inert in the park; the park HUD counter is refreshed by the HUD's own message0x1Ehandler0x4A0FB0. Screen-space particles are now drawn.Advisor effect groups (ADVISOR-026 narrowed): the accessory-bit switch of
0x598DC0(0x598EAA) and the effect-group system0x5ED5A0(size),0x5ED660(move),0x5ED700(orbit) and the per-frame0x5ED770are ported: the centre follows t unclamped, the radii t clamped to 1, the angle isfrac(i/n + t*turns)*512on the truncated 512-entry table. Group 0 is emptied at response start (0x5993B3), response end (0x59992D) and on kill (0x59972A).ADDOBJ particle effects (PTCL-908 narrowed): effects follow their key every object pass (
0x55189D,0x51FE30, type 2 turned via0x51FD90); ADDOBJ_EXT (opcode 9,0x5520E8) has a handler; a negative key starts at the footprint box middle (0x556B90→0x466B70), and type 2 with a negative key is refused.
Everything is presentation-only and draws from no random stream; the determinism pin is unchanged. ParticleObjectRecord gains optional Type and Key fields (type 0–2); older saves load and their records simply do not follow a key. Verified with 4309 tests passing without game data, 4740 with it, and all five native smokes.
Review fix: the coaster pylon debit comment in CoasterBuilder read 0x785a2c == 0 as "money on"; the word is the layout-replay recorder (the debit at 0x4352A0 is skipped only while a layout replays), so the comment now says so.
Still open: OpenTPW's lobby has no key panel; the order of the screen particle pass against the HUD and the advisor image (PTCL-909: they draw in the world pass, under both); advisor node bits are rebuilt per response instead of living on the model instance; x87 precision; the scoped effects of +0x4E0 loaded by 0x414420 into pool slots (0x51FA20) from names at 0x788F40; and ADVISOR-006, which waits on the reader of mesh bit 0x10 (RIDES-042).
Arrival vehicles and bonus object archives from tp.exe (October 16, 2026)#
Guests now arrive and leave by the level's own bus, seaplane or Ferry instead of stepping off with no vehicle (read in tp.exe via REA):
Vehicle by group size (
0x4cf3e0, signed compares at0x4cf48c/0x4cf49a): a bus up to 35 guests, a seaplane up to 60, the Ferry above, falling back to Ferry, seaplane, then bus when the level lacks one. A new vehicle is placed with status 1; one already in the park gets its trigger (variable 0) set. Guests step off one per turn while the vehicle reports status 2 (0x51a2f0,0x51a690,0x51a9d0); status 6 is written back to 0 and the vehicle released. A guest waiting to go home calls a vehicle when none is at work and boards at status 4 (0x500bd0). Timing comes from the shipped scripts: the jungle bus reaches its stop 10,033 ms after it is placed (2 s, the Busm1 clip's 7,333 ms less the trigger's 300 ms, then 1 s). ARRIVAL-001 and RIDES-019 are narrowed; new parks get only Gates and Lights at setup (0x5156a0), and vehicles are created the first time they are sent, found by archive name (0x413d9b).Bonus object archives (RIDES-024 retired): the category scan
0x413930runs once per category (Rides, Features, Upgrades, Shops, Sideshow), reading game and bonus archives as one directory in name order; archive names drop.wad, a two-underscore name is cut at the second underscore and loses a leadingp(0x41ec30,0x41eb90); a name the category already holds is skipped (0x41ede0), and lookups by id return the first match (0x412e90).
The pinned determinism hash is unchanged (the synthetic park has no vehicles); the one new world draw, a pick-up vehicle when none is at work, comes from the economy stream as DET-014 records. Saves gain the optional GuestSimulationSnapshot.ArrivalVehicle (0–2); older saves load with no vehicle at work and re-adopt an existing Bus. Verified with 4300 tests passing without game data, 4734 with it, and all five native smokes.
Still open: leaving guests wait at the lane's first cell rather than walking to the vehicle's stop cells (0x51aad0, state 20), boarding order per stop cell, the arrival update running before rather than after the turn's guest updates, imported original saves starting with no vehicle at work, and what sends the End vehicle's message (0x516b00, message type 0x11).
Audio, advisor, effects and models sweep from tp.exe and QMixer.dll (October 16, 2026)#
A sweep over the audio, advisor, weather, particle, blueprint, head and model approximations, read in tp.exe via REA (and, with the user's approval, the game's QMixer.dll for the mixer's distance law):
Retired: AUDIO-008 (the repair band is the script's variable slot 5;
0x551320maps it to events 0, 75, 79, 83 and 87), AUDIO-025 (December's weather average is the Seasons array's count slot,0x512e10, raised by the loader0x4017a0), AUDIO-903 (the rain's time step is never zeroed; the mask at0x57ffb1is 0x4 and nothing sets it), ADVISOR-006 (a clip the archive lacks clears the animation and keeps the rest pose,0x472F60) and ADVISOR-022 (all 351 rows of the descriptor table0x76E300, replayed from its initializer0x5A0A50, are now bound as data, so an original save's pending advice of any message imports).Weather and particles: the lightning bolt's walk, branches, pulse colour and ground point (
0x57E810,0x57E4B0,0x57EE30,0x512C50), the rain's 1/16384 parallax grid (0x580013), the flake depth, particle quads in the original's slot order (0x57C620) and the effect volume's height from the model box (0x558F53).Advisor: its own lit shader (ambient 0.15,
0x573FD0; directional light,0x429BA0), the saved advisor clock imported from original saves (0x402E00), and single x87 precision (0x563914,0x563B7A).Blueprints and heads: ghosts drape over the terrain and ripple (
0x53DDD0), mark every line cell and show the front row and access arrows (0x536100,0x52967E,0x52989A,0x529B1C); a rider head picks its frame by the largest dot product with the camera direction (0x44B510); the MD2 slot writer0x470C90is read.Audio: QMixer's distance law (
[BIN:QMIXER-DLL:0x1800a0d0], enabled by the flag tp.exe always sets at0x6d230e) matches OpenTPW's form; the 2.1 far-end floor (0x6c3b8a), the chain timing and stop of0x6bdb50/0x6bcab0, and the fixed-pitch and fixed-volume flags are read.Design choices, approved by the user: AUDIO-037 and MD2-902 are closed as extensions; AUDIO-009 (OpenTPW's extra "cannot build" sound, which the original never plays), AUDIO-901, AUDIO-904, PTCL-904 and PTCL-905 are split.
Review additions: GATEM4-001 (the use window W) and GATEM4-002 (closing ends use) are closed as
[EXT:m4-gate-use-window]and[EXT:m4-gate-closing-ends-use](test-harness choices; the user approved them). NewUI-101: the park camera's field of view is 55 where tp.exe's projection has 90 (0x42A990and0x54E86Fhand 90 degrees to0x578BE0). The particle runs write their uniform block once per material, and the blueprint ghosts' per-frame ripple updates one dynamic vertex buffer instead of allocating a model.
The pinned run hash and saves are unchanged; weather and particle presentation keep their own streams. Verified with 4684 tests passing without game data, 5135 with it, and all five native smokes.
Still open: the mixer's rolloff value and its azimuth stage (AUDIO-018, AUDIO-033, ADVISOR-012), the lightning ribbon's clip-space quads, per-particle depth writes and the alpha test, the advisor's lobby key panel, the remaining advisor message producers, the blueprint raise of occupied cells, the head roll reference and the MD2 slot-frame reader.
Sound chains, voice pool, rolloff and advisor help from tp.exe (October 16, 2026)#
A second audio pass over tp.exe via REA, building on the earlier audio, advisor, effects and models sweep:
Retired AUDIO-034 (sound chains):
SoundChainnow follows tp.exe. The link is walked when the next child is made, with the parameter of that moment (0x6bdb50->0x6bdbb0->0x6c3e00). A sound without links makes the chain start over at the first sound on the next tick. Links that exist but do not cover the parameter write 0x7f into the root's parameter byte and set root flag 0x40 (0x6c3f49); only the root's parameter setter (0x6bda90) clears it, and only for a stored byte other than 0x7f, so the chain makes no child until a different parameter is set (SoundChain.Parameter; the ride scripts set it only at the start). The pick isror13(state) % total, drawn only when a link covers it. The oldResume()is gone.Retired AUDIO-033 (rolloff), reversing the earlier fragment: the earlier sweep (
2026-10-16-audio-advisor-effects-and-models-sweep.md) said QMixer's distance law matches OpenTPW's form and left the rolloff value open at 0.8. The exponent is now 0.2:0x6b9bb0returns 0.2 (0x70a624) when the sound system object's flag 0x40 is set and 0.8 (0x70a628) otherwise;0x6b9006sets the flag from descriptor bit 0x100 unless the capability filter0x6b7d70clears it; the driver factory0x6c4190builds the QMixer class first, whose +0x4c ismov al,1(0x5d1400), so the filter never clears it. Positioned voices are louder toward the edge of their range. The factory step was re-verified in review (vtable0x711b08+0x4c is0x5d1400; the fallback class0x6d1e30hasxor al, al); it assumes the QMixer class initialises (0x6d2de0).Narrowed AUDIO-038 (voice pool): equal ranks keep the newer voice (
0x6b6a80,0x6b6bc0); rank 0 never enters the pool (0x6b6ba0). Still unknown: how a stopped loop or sentence resumes.Narrowed AUDIO-003 (sample delay): the start delay is drawn after volume and pitch (
0x6bc2d0,0x6bc4f4); a non-chain voice keeps its pool place until the sample's nominal end plus 250 ms plus the delay (0x6bc01b,0x6bcb60,0x6b62b0); events flagged 0x4 or 0x8 are exempt (0x6bbe90). Reverb is unread. The sound chooser draws one extra delay per sample start, so audio draw sequences differ from before (presentation only).Narrowed (register text only): AUDIO-018 and ADVISOR-012 (QMixer's software pan and volume stage), AUDIO-004 and AUDIO-009 (the sound entry's call sites, the lists' sliders), ADVISOR-005 and ADVISOR-017 (ambient words, pause callers), ADVISOR-026 (node bit 0x10) and AUDIO-902 (the ribbon emitter in outline).
Narrowed ADVISOR-009: help for the ride (207, repair 297), shop (209), sideshow (208) and research (200) windows.
The pinned run hash and saves are unchanged: no world or guest RNG draw was added, and the new voice creation counter is presentation only and not saved.
Backspace removes queue cells (October 16, 2026)#
Backspace with no build tool on now also works over a queue cell: it plays the backtrack sound (cat_ui 95) and removes that queue cell and every cell behind it, with the remove tool's refund (Costs.QueueCell × the ride's scrap percentage / 100). This is an OpenTPW extension ([EXT:queue-backtrack]), asked for by the user: tp.exe's backtrack key only takes a type-1 (path) cell (its key handler tests the tile through 0x536310 at 0x40BE3C), and the original takes queue cells back with Backspace only inside the queue tool (Back 0x52FE50, the segment just laid), which OpenTPW already did. Over a path cell the key is unchanged (one placement off, ClearCell(0, 1)). Docs: docs/PATHS.md, docs/AUDIO.md.
The park has its sky (October 16, 2026)#
The video camera placed with the HUD's camera button looks over the horizon, and the sky showed pure black there: the park's world pass never drew a backdrop (the old unlit sky cube was removed with the lobby rework in 5f230946 and nothing replaced it), so everything not covered by terrain or objects stayed at the framebuffer's black clear. It is not a regression of today's merges (the overhead camera never looks at the horizon). The park now draws the engine's sky from tp.exe via REA (UI-107):
The clear is the level's own fog colour,
ThemeEngine.FogColourof its Standard.sam (jungle and fantasy0x48D8F8, hallow0x112244, space0xF88430;0x4080E0copies it to the fog colour the viewport clear,0x5737AA, uses).The cloud layers (
0x5852B0loadssky\sky.tga,sky_rgb.tga,sky_cyl.tga;0x584EF0,0x585720,0x5863C0): a 16 x 16 grid 2400 wide hanging 300 above the camera and sagging by a fifth of the distance from its centre, tinted per vertex fromsky_rgb.tgasampled at 16 x 16 points, drawn as 1, 2 or 4 layers (SKYQUALITY, now applied; 0 draws no sky, as the original's draw is gated on the count) with their own texture step, alpha (0xCF down by 0x38 per layer) and mirroring, and scrolling by the frame time (0x585F10: offset += velocity x frame seconds x 25, wrapped into -1..1, held still for a frame of a second or more).The backdrop cylinder (
sky_cyl.tga): 16 segments of 4 rings, radius 720 (the grid's half width x 0.6), rings from 156 above to 156 below the camera, its haze fading into the cloud layer at the top. Both are centred on the camera (the view with its translation zeroed) and draw without depth, so the sky only turns with the view.Presentation only: the scroll uses the render frame time like the original's, no world random numbers are drawn, and a level without
sky.tgaorsky_cyl.tgadraws no sky.
Still open under UI-107: the moon billboards of the hallow and space levels (SkyObjects, 0x5860D0), the flag-dependent variants of the draw, and the park's own render flags behind the clear. Checked with native captures from a ground-level camera in the jungle, hallow, space and fantasy levels; the overhead camera is unchanged.
Cell owner words, footprints and the cells outside entrances and exits (October 16, 2026)#
The park's cell map now follows tp.exe's placement commit (0x528A70), read via REA, and OpenTPW's placement writes what the original writes.
Built
The owner word. Every cell has the original's owner word (
+0x10): the cell wordy x 128 + x + 1of the object's anchor, written on each footprint cell a placement types (Easymode's saved cells carry exactly these words on all 44 typed footprint cells of its rides, tested). The queue tool writes the ride's word on its queue cells and on the path cell a line connects to (pass0x83).CellData.Owneris optional in the save and validated (an empty cell may not carry one); old saves load.Footprint stamping.
@is a NoModify type-1 path cell linked to its path neighbours,+and#carry the add-on flag0x10on the cell and its track-layer cell, and an entrance or exit cell takes the symbol's direction byte as queue link, turned by the rotation. Add-on cells are validated as the original's add-on mode does (a cell of a straight, unflagged tile of the selected ride), and a track end needs the cell beyond it on the map.The cells outside an entrance and an exit. The placement validates and lays them: a queue cell (owned by the ride, NoModify) outside the entrance of a type with a queue, a NoModify path cell outside its exit, and a NoModify path cell outside the entrance of any other type. The checks are main's (
ParkObjects.CheckAccessCells); this branch adds the laying (ObjectAccessCells.Lay), free of charge and refused only when the balance is negative. Easymode's eight rides carry exactly these 18 cells (tested).Area clear and track add-ons. The area clear reads the owner word and the flag
0x10as the original's0x52BDD0does; track add-ons are validated, stamped and removed headlessly (Level.PlaceAddOn) and the walker reads the flag into kind 12 and 13 sections.Queue owner words. The queue tool writes the ride's owner word on every queue cell it lays; the queue-link writer
0x53402Eis a BIN reference.
Retired and narrowed
Retired: PATH-005 (the missing owner word) and RIDES-028 (the access cells);
tools/fidelity_retired.txtrecords both.Narrowed: RIDES-031 (the footprint typing covers Theme Park World; Theme Park Inc footprints stay untyped), RIDES-011 (add-on stamp and validation, the
@link, the entrance and exit link rotation and the track-end rule; the coaster module's marker0x15is not written), RIDES-018 (now only what main's access cells and path clearing leave: the second-layer link tests and the types with record+0x288= 1), TOUR-005 (the object route by owner word matches; the second-layer instances0x53BF30and the mesh rebuild remain), TRACK-008 (add-on placement, flag and removal built; run values, dummies, the Teleport hook, the walk after placement and the offer and sale UI remain) and QUEUE-014 (owner words and the object cover are built; a segment started from a clicked cell and a queue over a path remain). ECON-050's text now names the queue clear.
Behaviour changes
Demolishing a ride clears its queue (
ObjectAccessCells.ClearQueue), so the site can be built on again; the original's exact demolition writes are not read (ECON-050 stays open).The entrance is the laid queue front. Where the placement laid a queue cell outside the entrance, that cell is the ride's entrance. Before,
ResolveVisitorCellsfell back to the nearest path cell, which could be an island such as the ride's own exit cell.The park-resume fixture changed in three ways: its queue line skips the front cell the placement already laid; rides stay off the spine, because a ride now clears a plain path under its footprint; and wanderers are seeded only on live path cells. In the baseline fixture the first ride's queue never reached a path (its join cell was null) and guests worked only through the island-entrance fallback; the first queue now ends on the spine. The second ride's queue is still unconnected, as before.
Merge with main. Main's whole walks (#244), its object-over-path clearing (
PathAt,ClearPath,ObjectPlacementPlan) and its access-cell check are kept; the branch's duplicate hook (AccessCells,CellsToCheck) is dropped. One result changed: an object of lower overwrite priority outside an exit now gives way, as outside an entrance (the validator's priority test0x535D66comes before any path rule), where this branch had refused it.
Decisions of the user
[EXT:dev-one-click-remove]: the developer panel's one-click remove tool (Level.RemoveAt: an object, else a queue cell, else a path cell) has no original counterpart and is labelled, not registered.The queue tool no longer asks a cell to touch the back cell (QUEUE-014): a free-standing queue cell is the ride's by its owner word, has no queue link and sits in no chain. The remove tool takes it alone; walkers, the queue walk, saves and validation handle it (a test saves and loads one).
[EXT:removable-access-cells]: the NoModify cells a placement lays (the queue front and the path cells outside an entrance or exit) can be removed by the path and queue removal tools, where the original's cell clear keeps a NoModify cell (0x5367D4). The map start's initial path stays fixed. Afterwards the ride's entrance and exit resolve to the nearest path as for a ride nothing laid cells for, queued guests standing on the removed cells are set down and leave the queue (GuestSimulation.SetDownOffQueueCells, QUEUE-015), the cell can be built on again, and a demolition clears what is left. Tests:AccessCellRemovalTests; the sandbox smoke removes a laid queue front and a free-standing cell through the level.
Determinism and saves. The pinned hash is unchanged: the owner words are derived state and are not hashed, and the merge with main's whole walks did not move the pin (main's 0x0487112FF9FF20DB; DeterminismTests passes unchanged with and without game data). Saves keep the optional Owner; old saves load.
Verification. 4964 tests pass without game data (579 skipped) and 5430 with it (113 skipped), after merging main through #266; the fidelity register (--write, --check: 187 unresolved unique IDs), tools/progress.py --check and the evidence checks (run_evidence_checks.py) pass; the five native smokes pass offscreen (front end, sandbox, the plain smoke and the park-resume capture and restore). The --load-original-level jungle --smoke-test mode, which the smoke script does not run, also fails on origin/main (in the HUD queue step on a cell off the heightfield, and, once that step skips such cells as this branch does, in the water track step: the station tiles' first column); on this branch it passes the new queue steps (removing the laid queue front, the entrance fallback, rebuilding, a free-standing cell) and fails at the same water track step, in code this branch does not touch.
Still open (new IDs needed)
The placement's first kart or water track tile (option
0x81ECAC,0x5286A0): fold into TRACK-005 or open an ID.The original demolition's exact cell writes (ECON-050 covers part).
The
EXT:track-tile-ownerlabel may be wrong: the validator0x535998compares the second-layer origin's+0x10with the tool's ride;TrackCellTypes.WaterAlternate(25) is the hoarding, type0x19;0x8187F8is the upgrade selection set by0x52F880.
Coaster pylons, track tags and mesh (October 16, 2026)#
The coaster's pylons and track mesh read in tp.exe and built (COAST-015, -033, -026 and -035 narrowed, COAST-028 narrowed by one clause):
Knots from the pylon models' posed track tags (
0x430ed0, tag tables0x4344c0/0x430590): the knot direction is the tag's forward row (0x4321c0), a turned-back pylon's tag is turned by −π first, the tag roll comes from the up row, the lower nodes of a stack get no bank and the three-tag table (0x432d50), the sampler walks every knot (0x440ad0) and the end node's knot is S0's track dummy (0x435570).fTrackHeightAdjustonly lowers the drawn cross section (0x42d6d0); the Big Dripper's track was lowered twice before.Pylon stack parts show or hide by the pylon's place in its stack (
0x432df0), and the half-turn flag0x10000000lives in the node (0x431f06); the PC slerps its rotations (0x4742a0).The track mesh is built as the original emits it: slice lists of 11 values per link (
0x43eb70,0x43f030), one shared vertex ring per slice, single-sided strips wound like0x43f4e0, crossings and the cursor link drawn in the invalid cross section (0x42d5a0) with the appended marker textures; the build cursor's ribbon is gone (blue, or red on a refused cell).Review fixes: an open chain's link ends at the last node's first knot (
0x43eb70loops only while a next node exists), so a bare station or a cursor chain no longer gets a stub of the last node's tag pairs; the triangle parity (0x7923e4) carries across the chains of one rebuild; a knot's coordinate scales the rest by the cosine to the curve point at the new t (0x4410e0,_isnanguard0x67b410); the closing sample has roll 0 (0x440c10). COAST-017 now covers only the other samples' rolls (the second rail is not built;CoasterKnot.TagRollis read by tests only).
Still open: the cross-section runs and blends (0x4402d0), self-illuminated lighting and the Add-mode UV animation, the model shadow, and the clamped height parameter's write-back. The coaster hash content changes for catalogue coasters (docs/DETERMINISM.md); the run pin is unchanged.
Coaster rolls, reopened circuits, the ride-view car and car poses from tp.exe (October 16, 2026)#
Four coaster items were settled in tp.exe, read via REA:
Sample rolls from the second rail (COAST-017 retired): a sample's roll is the angle of the second-rail point about the sample's tangent (
0x440c10: the rail point turned by −yaw and −pitch with the PC table, then atan2(−x, y)); slice and car-frame rolls add the lerp of the nodes' tag rolls by the ordinal fraction (0x43e6b0), and a suspended coaster's frames lerp the swing's sample rolls instead (flag 8,0x43e86e; controller+0x3cbit 8 is the suspended copy,0x4369f5). The second rail is knot + (0, 1, 0), knot + 2 × the tag's up row on a loop node, or (−sin a, 0, −cos a) on a model-less loop node, fitted with its own chords (0x430ed0,0x4321c0,0x432840). The node tag roll (+0xe4) is written only for a posed pylon without node flag0x40, so loop and model-less nodes now roll 0 rather than their bank. The knot record's+0xcfraction is read as 0 (no store to it was found in0x430000..0x448000).Editing a circuit with riders and reopened circuits (COAST-030 retired): no edit is refused for riders (
0x446300,0x446740); in move mode the validator skips the turn test where the turn node and both neighbours carry both cut flags (0x4348af..0x4348d8), and re-validation stops at a cut end (0x434e06,0x434ea1). The original has a close click only on a reopened circuit (0x435020→0x442c70) and completes a fresh one by0x435570; OpenTPW's close step for a fresh circuit is labelled[EXT:coaster-closing-check].The ride-view car (COAST-011 narrowed, UI-094 narrowed): the car comes from
0x436880, the train with the smallest position (controller+0x124,0x43d7dd, the0x43ce20loop), then train+0x34: car 0, or car 1 behind a front car of another type (0x436d10,0x436f15). The Mac leads turned out to be the lobby islands code; no reader of FIRSTPERSONVIEWDISTANCE, COASTERSMOOTHNESS orInfo.FirstPersonSpriteswas found.Car poses (COAST-034 narrowed):
0x43d8f0builds the car's root matrix from identity, discarding the model's root rest (the mine carts, Candy cars and caterpillar have a root turned 180° about Y), so meshes and head sockets are now baked root-relative. Non-bend cars play<model>mat 0.1 × train speed (0x43ce20→0x474050), UV-only tracks on the wheel meshes; the two flume boats are the only bend cars, ported from0x438ab0and0x438800.
Also fixed: Vector2.Equals(Vector2) called itself, so == and != overflowed the stack (now covered by Vector2EqualityTests). The run pin is unchanged; coaster hash content changes because sample rolls feed the ride's hash, and sample rolls are now near zero where node banks used to enter the rating step. CoasterRide.TryGetRideView rolls with the camera car's frame, not the sample's second-rail roll, and a bend car pointing straight up or down is left unbent instead of reading a zero-length heading. Saves gain no fields (samples are re-derived on load). Verified with 4464 tests passing without game data, 4912 with it, and all five native smokes.
Still open: the wheel clip's start stamp, the bend's use of this build's sample yaw, riders not bending with their boat, the boats' own M1..M3 clips (no player in the coaster code), the first-person view options and the hovered closing link of 0x43eb70. The cursor node is not in the cell's node list (0x434060 calls 0x433bd0 only when param_5 & 2 is clear), which settles the stack-part question from the pylon review.
Conflict-free fidelity register and progress log (October 16, 2026)#
Parallel pull requests no longer conflict over two shared documents:
The fidelity register is generated, not committed.
python3 tools/fidelity_register.py --writewritesdocs/FIDELITY-REGISTER.mdlocally (it is ignored by git), and the website workflow generates and publishes it.--checkvalidates the sources only: annotations against declarations, ID syntax, scopes and the retired-ID guard. The retired and reserved IDs, until now kept in the committed document, are intools/fidelity_retired.txt;--writerecords new ones and the check fails until they are committed.The progress log takes one file per pull request in
docs/progress/(this entry is the first).python3 tools/progress.pyassembles the fragments, newest first, with the frozen history in PROGRESS.md;--checkvalidates fragment names and headings in CI, and the website's progress page shows the assembled log.
The ppc-analysis areas report and the DET-V2 and WALK-V2 review lanes render the register from the sources instead of reading the committed copy.
Cross-edition objects extension: id ranges, sound banks per root and the Theme Park Inc opcodes (October 16, 2026)#
Phase 6 of the mod system (docs/MODS.md), the engine side of the official extension opentpw.cross-edition-objects that lets a data mod bring Theme Park Inc attractions into Theme Park World. The user supplies the Theme Park Inc install; nothing of it ships. Loading the archives needs the data content roots of phase 5, so this step carries the rules and the loading follows.
The extension is registered, off by default and marked as changing the simulation (
[EXT:cross-edition-objects]);FeatureGates.CrossEditionObjectsreads it. A mod that depends on it is refused while it is off; while it is on, park saves record it (ModSet.SimulationMods) and require it to load.Info.Id ranges. 168 of the 202 distinct Theme Park Inc ids are also Theme Park World ids, 145 of them for other objects, and the original keeps only the first definition by id reachable (RIDES-024,
0x412e90). One rule for every mod's range, applied byModObjectsFile(CrossEditionObjects.RangeProblem): 5000 to 65535, at most 4096 ids, above the 4605 (Theme Park World) and 4500 (Theme Park Inc) maximum original ids (both measured by tests against the installs) and inside the 16-bit Info.Id (mId) of the original saves. The range is declared once, in theidRangeofobjects.json, which already refuses an id outside the range, a repeated id, a missing range and, inModSet, overlapping ranges; the content roots' earlier bounds (10000 to 1000000000, at most 1000 ids) are replaced by this rule, and the manifest has no second field.Sound banks per content root (
ContentSoundRoots,SoundRoot). TheEVENTids of a Theme Park Inc ride name events of Theme Park Inc's own catalogues (globalcat_rideshas 114 events against 25 here), so RSEEVENTtypes 3 to 9 from an object of a registered root are looked up in that root's categories (level categories by the archive's own theme), with no fallback to the running game's, as the original has none. All Theme Park Inc ride and ambient banks resolve in the Theme Park Inc root (checked against the install). Without a registered root nothing changes.The two Theme Park Inc opcodes WAITABS (45) and MULT (48) were read in
Game.exe(jump table0x6ab5f0, handlers0x6a8b7eand0x6a9108) against tp.exe (0x5567d8,0x553828,0x553eb9): the same operand decoding and effect, so they need no new VM support and are not Theme Park Inc only (docs/TPI-COMPARISON.mdcorrected,[BIN:TPI-EXE]labels added). The Theme Park Inc clock object is a different instance with the same base plus+0x48shape.Missing economy keys: measured over the 183 Theme Park Inc archives that map onto the four Theme Park World themes, with Theme Park World's category defaults under them every key all Theme Park World objects of the category carry is present, so no per-key default is needed;
Upgrades[n].RunningCosthas no Theme Park World counterpart and is ignored, andResearch.Groupup to 6 already opens like the original's zero-filledResearchTechblock.
The pinned determinism hashes are unchanged (the extension is off by default and nothing else moves). Still open: loading Theme Park Inc archives through content roots with the mapped ids and TPW category defaults, the economy catalogue merging those objects, recording the extension in park saves, fixed-id sounds (screams, repair sounds) and level music for objects of another root, and the two Theme Park Inc MusicHD.sdt banks that the reader only partly accepts.
Economy and saves sweep: costs, the bank batch, challenges and shop costs from tp.exe (October 16, 2026)#
A sweep over the economy and save approximations, read in tp.exe via REA:
Negative costs are refused (ECON-048 retired): the
Costs.*keys are type-5 balance keys whose parser (0x401d7c:test ebp,ebp; jl 0x40260d) reports "Balance problem: invalid -ve value specified"; OpenTPW now refuses them instead of booking them as income.The bank's batch credit (SAVE-008 retired): the month routine
0x4d0370adds the batch word to the balance, the money-in total and the year profit and zeroes it; only the constructor, message 10 and the month routine write it. It is now a pending credit, imported from original saves, paid at the next month end and kept in the park save as an optionalBatchCredit.Challenges (ECON-034 and ECON-035 retired, SAVE-005 narrowed):
0x4e16b0maps shop type and special ingredient to challenge types through two jump tables (0x4e18e4,0x4e18fc); types 24, 25 and 27 accumulate a daily value (toilet cleanliness, all-staff happiness, the challenge's staff type) compared overTargetTimewithTargetVal(0x4d2860,0x4d1660), so challenge 10 can now be won; message kind0xbis the calendar day (0x4f8260). A decline never forfeits (0x4d2ec0does not write the declined count), and the first offer waits for an open park (0x4c9050,0x51a280).The shop's cost per sale (ECON-056 retired):
0x4e1b40books trunc(cost × (1 + q + ±i)), each term (byte − 50) × 0.005 clamped to ±0.5, the ingredient sign flipped for special ingredients 1 and 3; the same value goes to the bank, the cost rings and the type 12/13 accumulators (0x4e1920), and a sideshow books the plain cost (0x4e1a10).The big park ticket (ECON-038 narrowed) counts more than
MinCellsCoveredcells of type 4, 9, 10 or 21 or under a counted structure, owned or not (0x4d4e50,0x4cd7f0); ECON-017 drops a stale claim about group 0.The clock (ECON-001 split): the deterministic fixed 60 Hz clock sampled into 248 ms park turns is an OpenTPW design choice (
EXT:fixed-60hz-clock); ECON-001 keeps only the original's 31 ms substeps with their backlog catch-up under load.
The shop's arithmetic rounds to a single after every x87 step (ECON-059: the precision DDSCL_FPUSETUP gives, the simulation thread's own control word is not read); the pinned run hash is unchanged (default shop quality and ingredient give the plain cost in every precision). Two optional save fields (BatchCredit, Objectives.SwitchedOn, inferred for older saves) keep older saves loading. Verified with 4593 tests passing without game data, 5041 with it, and all five native smokes.
Still open: the challenge check's per-update gate (0x4d1e90, (turn & 3) == 0, now ECON-058), the carried object mActualThing (+0x3e0) that filters every accumulated event, the attraction history rings (layout read: 0x4e1c70 and its readers), the fence structure records, the TAG_SYSTEM 123–127 producer, removal cell writes and the larger save blocks (SAVE-004, 006, 007, 009–011, 920–923).
Economy pass: challenge census, mechanic advice and the challenge time-short event (October 16, 2026)#
A pass over the economy approximations, read in tp.exe via REA:
Retired: ECON-014, ECON-020 (the analyser constructor stamps are BIN-tagged in
World/ParkLitter.cs, covered byALoadedBlockCacheCarriesTheConstructorsStampZero) and ECON-055 (carried-object challenge filter). ECON-001 is closed as[EXT:fixed-catch-up-cap](user-approved EXT). The retirements are listed intools/fidelity_retired.txt.ECON-022 (partly built, narrowed): the mechanics' advice message 70, queued newest guard first. Still open: the
+0x36access-cell writer, the entertainer animation0x4D46D0, the guard escort to the booth gate cell, the original-save list-chain import and the stranded stamp.ECON-026 and ECON-030 (partly built, narrowed): the guest-census cache with analyser age tests (
CachedGuestCensus,CrowdPhaseTurn), andKartBestCrossings/TrackRideSectionsfor challenge types 15 and 21.ECON-058 (partly built, narrowed): the challenge time-short event (message 271) goes through the advisor and the HUD captions.
User-approved EXT conversions: ECON-054 is closed as
[EXT:headless-economy-dispatch]; the headless part of ECON-023 is[EXT:headless-economy-breakdown](its routines were already read); ECON-022 is split, its headless handyman dispatch being[EXT:headless-economy-dispatch]. These three exist only in the test and tool economy without a map. ECON-023 stays open for the split ride state word (the bridge's and the economy's halves, joined by the level), which real parks have too: by user decision it is not an EXT.ECON-017, ECON-059 narrowed.
SAVE-005 text no longer cites the retired ECON-055.
Saves: AnalyserCaches.GuestCensus and CrowdPhaseTurn are new optional fields validated on load; old saves still load. The pinned run hash is unchanged. Verified with the full test suite with and without game data and the native smokes.
Still open: the arrival target's age-20 census is not wired to the shared cache; the PC advisor response table's 36 parameterised responses have no captions yet; the tag table (0x75ECA8) and entry indices differ (tag 38 is entry 41).
Economy second pass: daily rings, the carried challenge object and the per-turn challenge check from tp.exe (October 16, 2026)#
A second pass over the economy approximations, read in tp.exe via REA:
Retired: ECON-038 (the camera golden ticket needs exactly 100 % security coverage,
0x4D4A00with0x4CD720; the all-land ticket is never awarded) and ECON-052 (staff state 6 is written only by the save loader; all 20 SetState call sites enumerated).Daily rings (ECON-057): the six 30-entry daily rings per attraction (costs, takings, customers, walk-aways, winners, happiness change) are built as the history constructor
0x4DB090, the day roll0x4DD320and the count, read and sum routines0x495D40,0x495CF0and0x495C20keep them; the object windows and the attractions list show their 30-day sums, and they are saved and imported from original saves.The carried challenge object (ECON-055, SAVE-005):
mActualThing(+0x3E0) filters every accumulated event (0x4D27A0); challenge types 14 and 18 carry the best coaster (0x4CC810, newest first, strictly greater).The challenge check (ECON-058) runs every park turn (
0x4D1E90), checking a running challenge when(turn & 3) != 0, with offers and deadlines in exact seconds.Research order (ECON-017): the table follows the original scan order (Ride, Feature, Upgrade, Shop, Sideshow), checked against the shipped Jungle lab, with the dynamic category-4 table and the golden-ticket add-on (
0x5AF780,0x4D4B70).Also: hoardings count in net worth and the big park count (ECON-026); the analyser's saved state (
0x4C5D70→0x4C85B0, ECON-020), the object destructor (ECON-050), the guest event ring (debug only,APPROX:ECON-044is closed asEXT:guest-event-ring) and the renderer's precision-control writes (ECON-059) are read.Design choices recorded as EXT labels (user decision): ECON-014 sheds the headless economy (
EXT:headless-economy), ECON-020 the stamps OpenTPW's park save keeps (EXT:save-analyser-stamps) and ECON-057 the calendar-month sums old saves seed their rings from (EXT:ring-month-sums); each keeps its original-behaviour remainder open.Save validation also refuses a challenge time outside the range or apart from its offer day, an upgrade-order entry that is not a pair, a null or unsigned-negative ring and a wrapped ring without a head.
The pinned run hash moves because the new saved rings are part of the economy digest (excluding them reproduces the previous pin; no behaviour changed); docs/DETERMINISM.md records it. The new save fields are optional and validated, and older saves seed the first rings from last month's totals. Verified with 4682 tests passing without game data, 5133 with it, and all five native smokes.
Still open: the happiness-change ring's writer, the kart best object (0x4CC4B0), the challenge progress message and warning event, the loss counts and offer day, the hoarding footprint, the world-update cadence against 0x877D34 (ECON-014) and the TAG_SYSTEM 123–127 producer (ECON-030).
The Extensions and mods screen (October 16, 2026)#
Phase 3 of the mod system (docs/MODS.md): Options > OpenTPW has an Extensions and mods button beside Game files, opening ModsScreen ([EXT:mods-ui]), built from the original options pieces (f_screen, two f_optpanel columns, scrolling lists, the b_on switch).
Rows and statuses. The official extensions and the community mods found at startup each show name, version and a status: on, off, incompatible, missing input folder, conflict, needs another mod, or cannot be used. The status is the real
ModSet.Resolveresult for the pending choices (ModRefusalnow carries aModRefusalKind, including the content-root refusals: overlapping id ranges and shared files or archives are conflicts, anobjects.jsoninput that is not chosen is a missing input), not a second rule set. Resolution runs off the game thread; a result for an older choice is dropped.Details. Author, version, description, content digest (once the mod is accepted), dependencies, folder and the refusal reason.
Input folders. A mod with an
original-datainput gets a folder row that reuses the Game files chooser and typed-path entry. The chosen folder is inspected out of process and judged byGameEditions.Detect(HasKnownStandardSamor folder structure); the result is shown, a folder of the wrong edition is not saved, and the choice is stored asinputs:{id:{input:path}}inmods.json.OK / Cancel. OK writes
mods.jsononly when something changed and shows the restart notice; Cancel discards. Nothing is applied while the game runs, and with no edits nothing is written.Languages. All texts are in the six languages. The front-end smoke test captures the screen.
No simulation, save or pinned digest changes: the screen only edits
mods.json.
Faster pull-request CI (October 16, 2026)#
A pull request's CI took about eight minutes, nearly all of it the server image's browser build: the AOT compile of the WebAssembly page ran 363 of the job's 404 seconds, while the three build-and-test jobs finish in two to four minutes. A pull request now builds the image with --build-arg WEB_AOT=false (the interpreter page, same sources); main and the release tags, whose images are published, keep the AOT build, so an AOT-only failure shows on main. Larger GitHub runners would not be free: the unlimited minutes of a public repository cover the standard runners only.
The weather forecast in the selected language (October 16, 2026)#
The forecast banner and its messages ("Forecast: rain tomorrow.") were always English. They are an OpenTPW extension: tp.exe posts no forecast message, and the shipped string tables hold no weather text (searched again in all 23 English .str tables), so there is no original wording to load. Their words now come from SupplementaryStrings like OpenTPW's other own labels, translated for the six shipped languages (English for any other). The word order follows the language: the Dutch countdown reads "Weerbericht: morgen regen." and the German one "Vorhersage: in 3 Tagen Regen.". WeatherForecastPresenter passes the selected language, and the countdown is worded again on every step, so a language switch shows at once. The Dutch glyph test covers the new texts in the original fonts; the Danish, French, German and Swedish folders were not available locally.
Format round 2: sound lengths, WAD sizes, sprite banks, terrain diagonals (October 16, 2026)#
Three read-only research agents searched the decrypted tp.exe (REA) for the format questions still open; the key addresses were re-read before building on them.
SDT: entry +32 is the playback length in PCM bytes (0x6C82C0 copies it when type bit 0x04 is set, the fill routine 0x6C83C0 stops there). Sound events and advisor speech now play exactly that length; the decoder's tail (about a frame plus the encoder delay) is no longer heard. All 5,674 entries carry it.
WAD: the declared decompressed size is what the original allocates (0x638B20) and reports; it equals the decoded length in all 6,804 Refpack members.
GetFileSizereturns it without decompressing.Sprites: ESP byte 0x10C chooses the full-detail FPC bank (0x5410D3), so Space's costume set SPR_SK now draws from its TPC like the original; the frame words are pixels per sprite unit (0x5890E0); 0x10D is never read; the ESP's last four slots are bytes, not animations.
Terrain: heightfield cell bit 0x4 picks each cell's triangle diagonal (height lookup 0x452560, renderer 0x56F670); ground heights (
ModelHeightfield.GetHeight, guests and the free-walk camera) and the terrain mesh follow it. Bits 0x8–0x40 turn and mirror the ground texture (not drawn yet).MD2: node bit 0x10 hides only the node's own mesh, as the draw walk 0x57A530 does (RIDES-042 retired); the group-0 box is the animated culling box; texture flag 0x40 marks multi-frame slots.
MAP: the loader ignores the five header words and never opens jungle
terrain.map; bit 0x04 goes to a tile flag nothing reads. The tile set-up does not consultBlocked, which OpenTPW still refuses to build on.MTR: no reader of MTR files was found in the decrypted tp.exe either. TQI: the live video decoder is located (the documented
csegroutines are dead code); reproducing it bit-exactly is the next step.README and docs/FORMAT-BACKLOG.md: Sounds and Map Data are now ✅; ✅ now means every field the original reads is understood (fields it is shown to skip may stay raw).
An independent Codex review's findings are addressed: the playback length comes from the same header read as the audio and bounds the decoded PCM without a second copy, only 16 ESP entries are animations, and the README and MTR claims were narrowed to what the evidence shows.
Verification (macOS arm64, original data): the full test suite passes (4,648 passed, 109 skipped). No native render was run.
Frame-driven timing at a 60 Hz reference (October 16, 2026)#
tp.exe's main loop 0x54e360 has no frame limiter: the simulation runs in fixed 31 ms substeps (0x54f4c4, GetTickCount with a 2 s catch-up, 500 ms in the lobby at 0x54e768), and the loop then draws one frame and sends message 0x1e once per drawn frame (0x48a580 → 0x658f6c). Everything stepped from that message, or otherwise per drawn frame, ran at the player's frame rate; PCGamingWiki notes that the game "runs too fast and becomes unplayable" at high frame rates and recommends a 60 FPS cap. With the user's approval OpenTPW steps every such behaviour at a fixed 60 Hz reference ([EXT:frame-driven-at-60hz], ReferenceFrameClock):
The research fluids (UI-066 closed):
0x4a9fc0advances the fluid by 2 × speed on every0x1e.The lobby (UI-940 closed, UI-941 narrowed to the camera wander
0x5e09da): its effects (0x5e0470via0x5d5c50, called once per drawn frame at0x54e73a), the flyers before the island clip picks (0x5da3a0,0x5e11d0), and the camera's spin, glide, enter sequence and fade (0x5e0490,0x5e1210,0x5d8cf2). The lobby's own 31 ms substep runs only0x520130.Rain and snow jitter and the bolt flicker are redrawn per reference frame (
CRain's draw0x57f490).
Every simulation step was confirmed to be on the 31 ms substep, so the pinned run hash does not move; nothing is saved. Verified with 4657 tests passing without game data, 5107 with it, and all five native smokes. The full enumeration of per-frame behaviour is in docs/COMPATIBILITY.md ("Frame-driven timing").
Found and not built yet, now registered: the park camera's mouse rotation per frame (0x42a760, UI-102), the pause-line hover ramp (0x48b2a0 → 0x48b220, narrowed into UI-013's text), and the edge scroll of the map window's view (0x5f0b40, UI-103). The HUD balance's three-frame redraw cadence (0x4a0db0) is noted in docs/COMPATIBILITY.md only (at most 50 ms of delay at 60 Hz).
Guests, queues and arrivals: the minor ride decision, queue auto-open and the booth wait from tp.exe (October 16, 2026)#
A pass over the guest, queue and arrival approximations, read in tp.exe via REA:
The minor ride decision (GUEST-018 retired, GUEST-019 new): a guest walking to a ride counts its updates (
+0x2C) and every twelfth update (0x4FFEF2) runs the minor decision0x4FD570: rides on the 4 × 4 cells round the guest that lie nearer to the target's back cell and pass the counts test are scored, and the best one replaces the target when its route (0x4D8B40) is shorter. No random draw.Queue auto-open (QUEUE-023 narrowed): every queue edit re-evaluates the ride as
0x4DE1F0does, opening a closed ride with no breakdown, upgrade or maintenance call whose queue connects (0x4DE4A0), a coaster that passes0x441970and a kart or water ride with a valid track. With new queue rides starting closed, connecting their queue now opens them.No queue cell cap (QUEUE-013 retired): the queue tool compares no cell count; the bound is the back-of-queue walk's 1000 cells (
0x4DE130).The booth wait (ARRIVAL-006 narrowed) is counted in executed park turns, N + 1 in all.
Bumper families (QUEUE-004 retired): every shipped bumper, kart and water ride has a controller template of its own family (
0x529E10→0x545890, loader0x543560).Narrowed: GUEST-006, GUEST-012, GUEST-013, GUEST-014 (with GUEST-020 split out for the flagged folders' bank limits) and GUEST-015; PATH-013 is retired into PATH-017 (the P window's input layer); TRACK-032 is new (the saved-ride controller handle).
Design choices, approved by the user: QUEUE-020 (
[EXT:bounce-single-clock-read]), QUEUE-022 ([EXT:synthetic-ride-zero-guard]) and ARRIVAL-002 ([EXT:online-visit-settings]) are closed; GUEST-006 ([EXT:online-bubbles-on]), GUEST-017 ([EXT:empty-costume-heads-keep-kid-head], avoiding the original's division by zero) and PATH-007 ([EXT:no-land-maps]) are split.
The pinned run hash moves with the minor decision and the booth wait (docs/DETERMINISM.md). Guests gain the optional saved fields RideWalkCount and BoothWait; older saves load.
Still open: the original also re-evaluates a ride's queue after placement, path edits and object removal; the minor decision's placement by the cell the ride's thing stands on (GUEST-019); and the booth's turn-dropping loop and closed-park countdown.
Guests wave 3: path links, the online visit, first purchases and guest turns (October 16, 2026)#
Read from tp.exe via REA; four IDs retired, six narrowed.
Retired:
PATH-016 (
0x4D7F3D,0x536490,0x5348D0): InitialPath cells are typed and linked in index order with the ported mode-1 link writer. The writer sees only the cells before it, so a later neighbour is still type 0; the old code linked toward all four neighbours.QUEUE-008 (
0x4E2440,0x4E2478): game type 1 is the online visit (SetGameType(1)at0x4C0830and0x5E2700, flag word0x7A1A8C). In that mode a use wears nothing and a dirty toilet is cleaned at once (ParkEconomy.OnlineVisit).ARRIVAL-005 (
0x4D3AA0,0x4DB690): the object-control table was already decoded. The shipped Jungle save carries+0x1Cvalues 15 and 604;OriginalEconomyImport.ImportFirstPurchasesrestores them before the objects are registered.QUEUE-021 (
0x524960mode 0x14,0x530120):0x530120ends by setting the line start (0x81EDE4/8) to the queue's last corner. The first click enters tool 0x14, the next cell click collects the queue and enters mode 3, and the line goes on from the back cell. The two-click entry is the already-approvedEXT:queue-click-at-back-cell.
Narrowed:
GUEST-010: the show and performer turns (
0x501020,0x500F00) end the state-6 call before pranks and decision; the off-path search for a start cell without links (0x4F9490: 8 patterns x distances 0..3, then 5 random cells); the stranded mark (+0x198, thought Confused, no draw until a block near the cell is stamped). Open: a linked start cell that is not a path cell, and the heading angle (11-bit in the original, unit vector here).WALK-003: staff on a cell now push stepping guests. Open: the entry-order query and which guest states the list keeps.
WALK-007 (split): the queue re-evaluation
0x4DE1F0stamps the back cell's block after queue-tool edits. Still missing after a path over a queue end and a queue-cell clear, which need the cell's owner word. The part about route walks restored from an OpenTPW save made before the original walk, which end where the guest stands instead of replanning, is split off as the user-approved design choiceEXT:legacy-save-route-walk.GUEST-011: a paid guest walks in only while the entrance gate's script variable 1 (
VAR_STATUS,0x51A290) is 1. Open: the close0x4DF300clears a walking guest's call at once (OpenTPW does it at the ride's next update), and the openable flag of shops.GUEST-920: the counter starts at creation and never stops (
0x4FAFDB,0x4FD950). Open: which guests the visitor list holds.QUEUE-015 (narrowed): the queue tool's entry now fills its stack of corner points the way
0x530120does (QueuePaths.CornerStack: the front cell, every corner cell, the back cell, at most 0x401 points; a corner back cell or front cell comes up twice, as in the original) and the tool's undo (0x52FE50) pops it one segment at a time, also for a queue laid in an earlier session; it never takes the front cell and a stack of one point has nothing to undo. A ride's demolition (0x527EE0) now takes every queue cell with it (before, the cells stayed behind as orphans): the forced clear drops the NoModify front cell too, each cell refundsCosts.QueueCellx scrap percentage / 100 and the demolition debits one such amount (ParkEconomy.ChargeQueueDemolition). Nothing new is saved: the stack is rebuilt from the cells at every entry. The corner walk's other effect is ported too (QueuePaths.DetachFromPath,0x530379to0x5303A1): clicking a queue to edit it takes the link between its back cell and the path it ends on off both cells, and a cancel restores nothing (the exits0x52FE50,0x52F200,0x52F580only reset the tool; the relink pass0x52FC80serves the track modes only), so the queue stays unjoined until a line ends on the path again. What stays open is the placement counters and the guests set down off removed cells. The removal from a clicked cell on is kept only asEXT:dev-one-click-remove(the developer's remove tool) andEXT:queue-backtrack(Backspace).WALK-008: records the arrival chain (
0x4FF520,0x4FF730,0x4FF7F0,0x4FFB20) but does not port it (about 25 sites).GATE-006: text corrected, since avoid_walls' corner branches are ported (WALK-002 is retired).
Determinism: the pin is unchanged at 0x01946A39A53F851E. The new stranded mark joins the state hash only while non-zero. Saves gain an optional StrandedMark per guest; old saves restore it as 0 (covered by a test).
Verification (on main with #267 and #268): 5068 tests pass without game data (595 skipped) and 5540 with it (123 skipped), including the determinism run against main's pin 0x01946A39A53F851E, which these changes leave as it is; all five native smokes pass (the sandbox smoke now lays a queue and demolishes the ride, checking that the cells go); the register, progress and evidence checks pass. The corner walk's link clearing is ported (QUEUE-015, above).
Hourly release train (October 16, 2026)#
Build and release tooling, no game behaviour changes:
An hourly train (
.github/workflows/release-train.yml,tools/release_train.py) publishes a normal stable release whenmainhas commits newer than the newest stable tag and the build workflow succeeded on that exact commit. Versions count up from the newest stable tag (v0.8.6, thenv0.8.7, ...), and each release becomes the latest download like a manual one. A half-failed release (tag exists, release missing or still a draft) is retried under the same version.Pinned commit: Release builds gained optional
commitandnotesinputs, so the train's validated commit is what gets built and tagged even ifmainmoves in between. Manual releases are unchanged.Documented in
docs/RELEASES.md; the rules are unit tested intools/test_release_train.pyand the pinned-commit path intools/test_publish_release.py.
Interface leftovers: the employee figure, finance graph colours, the research knob and map colours from tp.exe (October 16, 2026)#
A second pass over the interface approximations the first sweeps left open, read in tp.exe via REA:
The staff list's row pitch (UI-080 retired): the hire list's row factory
0x49bbb0uses font slot 7 and the buy list'slineHeight × 1536 / screenHeight + 6rule, so the staff list now uses that pitch and shows 11 rows.The employee window's figure (UI-092): the portrait frame plays the employee's walking figure (
0x4b5330), as the hire window does.The finance graph (UI-060): the eight series colours are the original's records from
0x499f30, in toggle row order (table0x751dac); bank balance and park value may show together, and either clears the six cash-flow series and the other way round (0x49a2e0, masks0xfcand0x03).The research knob (UI-064): a drag that starts on the ball moves it by the pointer's movement, clamped to the track (
0x66b771).The staff dismiss box pauses the park (UI-096;
0x4b5eacis a caller of the message box0x47f020).The map's cell colours (UI-086): paths, queues and unowned land use the original's records (classes 10–12 of
0x5f2050, filled by0x5f2380); the full class table, the layer bits and the 0..100 ramp are read.The happiness gauge (UI-901 narrowed): the gauge now takes the original's value,
ftol(mean x 1024 x 0.01)of the byte-truncated mean of the in-park visitors (so a full mean gives 1023 of 1024), 0 while the park is closed, resampled every two seconds (0x4a1cd0,0x4c7bb0; the HUD builder is0x4a1d70).Closed as design choices (user-approved): UI-044 (
EXT:list-row-pitch, the buy, loans and load lists keep one fixed pitch where the original's follows the screen height) and UI-942 (EXT:online-globe-audio, the online globe's music and ambience); UI-091 is split: the visitor info window that Ctrl+V tests isEXT:visitor-info-window, the camera focus (0x486860→0x42aab0) and the per-frame blend (0x42b1c0) stay open.Narrowed with new reads: UI-003, UI-004, UI-025 (the message tube has 8 slots with priority eviction,
0x59a940,0x59abc0), UI-031, UI-034, UI-042, UI-047, UI-050, UI-051, UI-082, UI-091 and UI-901.
The pinned run hash and saves are unchanged. Verified with the full test suite with and without game data and the native smokes.
Still open: the UI model triangle draw (UI-003, UI-004, UI-034), the message tube's per-type caps (filled at run time), the employee rename dialog, the graph's line style, the object cells' map value +0x44, the gauge art and the sprite list that turns the figure scale into pixels.
Interface round 3: the text formatter, the options slider, the pause-menu ramp and the satisfaction history (October 16, 2026)#
A third pass over the interface approximations, read in tp.exe via REA:
Text wrapping (UI-032 retired): the original's formatter flags only space and tab as break opportunities (
0x6aeab0); every text control wraps through0x6ae930,0x6aeb10and0x6aec80. OpenTPW's glyph classes now match. The small-font fallback stays an[EXT:fit-button-text]choice.The options slider (UI-036 retired): the slider class grabs the thumb on a press and moves one page toward a click on the track, as
0x66b088,0x66af19and0x66b8aado; the options page uses the range 0..100. The step snapping stays an[EXT:options-slider-steps]choice.Option label size (UI-039 retired, judgement call for review): the options labels use font slot 6 of the bank and their setup (
0x4a43b0) does no fitting, so the original has no fit rule to compare with. What the original does with an overflowing label is covered by UI-032's formatter. The fit rule stays an[EXT:option-label-fit]choice.The pause-menu hover ramp (UI-013): a line's colour follows tp.exe's line procedure
0x48b2a0and its step0x48b220. Presentation only.The customer satisfaction history (UI-024, ECON-057): a finished use averages 3 x the guest's happiness byte change into the object's satisfaction ring (
0x4fd970->0x4e1e00); the shop and sideshow windows and the All Attractions list draw the gauge from it (0x4e1e30). Saves are unchanged: an empty ring still reads 50.The buy window's footprint thumbnail (UI-026): control
0x1eb(record0x754d50) shows the selected item's shape as 8 x 8 half-transparent cells coloured by cell class (0x52c5b0,0x4ab1b0).Narrowed evidence notes: UI-006 (survey of the
0x65c5d5colour call sites), UI-007 (the control's+0xdbis no shadow flag, and0x588c20releases sprites rather than drawing), UI-008 (tp.exe holds nopurple_buttonstring), UI-018 (the original's lobby update has no globe branch), UI-027 (the sprite-pick leads), UI-037 (the0x588c20correction).
Determinism: the fixed-run pin moved 0x0487112FF9FF20DB -> 0x01946A39A53F851E (main after #271) because the economy state now holds the satisfaction rings' values (docs/DETERMINISM.md). The branch alone had moved 0x205523C08061A05D -> 0xAEB43E01FFE5FEE0. No draws were added to the world or guest random streams.
Split off UI-013 (user-approved): the pause-menu line's hover ramp driven by OpenTPW's pointer focus is now [EXT:pause-menu-hover-focus]; UI-013 stays open for the measure 0x4929f0 and the online state's top of the menu lines.
Interface round C: loans, Load Park, pause lines, camera panel and postcard from tp.exe (October 16, 2026)#
Six interface surfaces rebuilt from tp.exe's generated layout tables and handlers (UI-063 retired; UI-013, UI-042, UI-002 and UI-026 narrowed):
Loans window from table
0x7525a0(window4, f_loans, b_sloan/b_spayup, help 235-237). The list follows tp.exe's list class: the row factory0x4a02b0uses the buy list's slot-7 rule, so seven whole rows fit (0x663718); a new list sorts by lender name ascending with wcscmp and keeps slot order for equal keys (0x662679,0x66403b,0x663edc); the top row is chosen when the list fills; the scroller and arrows hide while the rows fit (0x664495). The tab last chosen stays for the session ([0x7cb260],0x4a06b0). The summary rows were in the wrong order: Loan Payments (UITEXT 360) is the second line and Other Costs the third (0x49fc90). Together with the stored credit test (0x4D06B0) that runs when the dialog opens and on each tab select (0x4a06b0,0x49fa00).Load Park from the load dialog
0x7523f0: window2 root, title box, f_load frame, the rows in the buy list's pitch (twelve show), slider with b_up/b_down/b_scroller, b_exit; no header sort (attribute 0x81). The host's Load Park text button stays ([EXT:load-chooser]).Pause menu lines as
0x492f60lays them out (via0x48c150): each line is the measured text width + 1 by height + 5 on the 2048x1536 canvas, centred, first line at top 10 and 5 units between lines, in the line colour cyan (0, 175, 190) of0x48b2a0.Camera panel slides out of the HUD arm as the drawer
0x4a14f0does: ten steps of a 20 ms timer, cat_ui0x1Cwhen a slide starts and0xC2when it ends, panel buttons shown once their right edge passes the arm's left edge (0x4a1440). The camera button's advisor help0x131is posted on the press and withdrawn on the release through the newHelpPosted/HelpWithdrawnhost hooks (0x486b00,0x486b40).Buy window preview turns by 0.0004 rad/ms across selections, tilts by pi/4 and is fitted as
0x4689f0/0x468e50do (UI-026 narrowed).Send Postcard from table
0x7540d8(built by0x4a8c00, handler0x4a7d70): window4, title, photo frame, message/title/recipients fields with prompts, preview/clear/address/tick/X buttons. Recipients stay player names ([EXT:postcard-player-names]). The window is reached only through the HUD host'sOpenPostcard, which is null while the online extension is off, so the camera panel's button and the shortcut show "not available" then.
UI-002 font-slot table (callers of the slot getter 0x485a70): slot 0 pause lines (0x48c150), 1 HUD cash (0x4a21e4), 2 meter labels (0x4a1e7b), 3 date (0x4a2519), 6 window labels and values, 7 buy/loans/load list rows and the help box (0x492180), 11 postcard fields and the locator name (0x4a8df3, 0x4b3e80).
Verification: build clean; the suite without game data passes 4420 (544 skipped), with the game files 4855 (109 skipped), the fixed-run hash pin (0xA2FAA54FEB56DA05) is unchanged; the five native smokes (front end, sandbox, plain smoke, park-resume capture and restore) pass. A review pass fixed the postcard prompts (shown while a field is empty), the camera panel's depth under the HUD's main panel and the load list's slider drag.
Still open: the roles of font slots 4, 5, 8 and 9 and OpenTPW's Label/Small roles that do not follow slot 6 (UI-002); the postcard's photo, preview and address book (UI-042); the preview's placement terms, animation 5 and footprint grid (UI-026); the load list's date column and the pause lines' online top and focus ramp (UI-013).
Interface sweep A: the Load Park date, the lobby enter sequence and the window title colour from tp.exe (October 16, 2026)#
A sweep over the first half of the interface approximations, read in tp.exe via REA:
The Load Park date column (UI-013): each saved park row shows its local save date and time, right-aligned, as
0x49ec80builds it (the file's last-write time to local, UITEXT0x1c0filled with day, month and year by0x5fc660, then" %02d:%02d"; the row layout of the cell factory0x49f170). Shipped parks and the sandbox have no file time and show no date.The lobby enter sequence (UI-018): starting a park from the island menu hides the lobby UI and plays
0x5e0490states 1 and 2: the camera turns to the island angle + π at 0.05 × step per frame, the gate plays M1 (0x5e06e4), then the radius shrinks by 0.07 × step × radius and the height by 0.6 × step × height per frame while the screen fades to black (0x5d8cf2), and the park starts below radius 8 (0x5e1e50).The window title colour (UI-006) is (234, 239, 102) from
0x492d20, shared by 15 window builders, instead of a video estimate.Narrowed: UI-036 (the options change handler
0x4a2e90: resolution (v × 2) / 100, quality (k × v) / 100, raw 0..100 volumes), UI-007 (the single glyph draw entry0x6ae0f0; no shadow in the font art), UI-026 (the preview matrix0x468e50, x × 0.75, depth × 0.1), UI-027 (the original picks along a cursor ray,0x45bf90,0x45cdc0,0x45d090) and UI-004 (the UI depth range of the display object,0x5833c0).Design choices, approved by the user: UI-002 (
[EXT:ui-font-tier-by-scale]), UI-005 ([EXT:ui-linear-filtering]) and UI-012 ([EXT:ui-modal-right-click-back]) are closed; UI-013, UI-025, UI-026, UI-032, UI-036 and UI-039 are split into an extension and a narrowed remainder.
The pinned run hash and saves are unchanged. Verified with 4579 tests passing without game data, 5027 with it, and all five native smokes.
Still open: the UI model draw code (UI-003, UI-034), the text tint consumer of +0x78 (UI-037), the front-end buttons (UI-008, needs a capture), the ride settings window (UI-024, UI-028), the message queue behind UI-025, the coaster and track tool sub-modes (UI-031), a ray pick against object geometry (UI-027), and the lobby's cloud layer, fog and key award (UI-018).
Interface sweep B: list order, the trend arrow, the cash pointer and modal pauses from tp.exe (October 16, 2026)#
A sweep over the second half of the interface approximations, read in tp.exe via REA:
Retired: UI-093 (key events go to exactly one window,
0x6698e6; the ride view takes the focus,0x48ac40, so the HUD keys are unreachable while riding, which OpenTPW already matched), UI-099 (the staff tools' queue face is type 1, red.tga in the texture table0x763b38). UI-080 stays open, narrowed: a wheel notch moves one row (0x46b600,0x665c35), which OpenTPW matches, but the staff list's pitch is 47 units where the video measures about 40 (the rest of the pitch is[EXT:list-row-pitch]).List order (UI-905, UI-907): the refresh handlers (
0x493230,0x4955e0) rewrite cells in place and never move a row; a new row goes in through the sorted insert (0x66403b, compare0x663edc), and only a header press re-sorts. OpenTPW re-sorted on every refresh and now keeps the order.The cash trend arrow (UI-047, UI-051): at each date update (
0x4a0e30) the arrow shows down when the newest month's money out exceeds its money in (rings+0x1f5a4,+0x1fc94, one entry per month close0x4c7720), replacing an invented 4-second window.The cash pointer (UI-100) follows the blueprint price against the balance (
0x523662) and the path, queue and track line's money stop (0x53593f).Modal pauses (UI-096): the postcard and the delete confirmations (
0x48cd10, the message box0x47f020) pause the park.Read, text only: the gauge crop (
0x477ff0, UI-046), the slider ball's drag offset (0x66bb9b, UI-064), the candidate byte writer (0x507600, UI-081), the cell colours (0x5f0700,0x5f2380, UI-086) and the render-pass pick (0x7b05a8, UI-930).Design choices, approved by the user: UI-061 (
[EXT:entry-price-window]) and UI-940 ([EXT:lobby-fixed-step]) are closed; UI-100's pointer art ([EXT:software-pointers]), UI-041, UI-905, UI-907 and UI-941 are split, so those IDs stay open for the original behaviour that remains.
The pinned run hash and saves are unchanged. Verified with 4579 tests passing without game data, 5027 with it, and all five native smokes.
Still open: the link and end pointers and the crosshair art (UI-100), the other message-box callers and the pause on app deactivation (UI-096), the 30-entry history sums and satisfaction bars (UI-905), the gauge's red start, the per-visitor window 0x4b79b0, the finance graph and the ride settings windows.
The jungle level smoke reaches its ride checks again (October 16, 2026)#
--load-original-level jungle --smoke-test needs the original game data, so CI does not run it. After the station-line and guest merges it failed on the economy checks, because the rides the smoke builds are not reachable:
The rebuilt ride of the economy checks started closed (RIDES-015,
0x4DB712) like every built ride, so no guest boarded it. The smoke opens it as the player would.The rides the smoke builds have no path to them: the placement lays only the cell outside the entrance (RIDES-028,
0x528A70), so a ride on a free site is reached only when a path touches that cell. The smoke now prefers a site whose entrance touches a path and joins the laid queue front to it, as ending a queue line there does (QueuePaths.TryConnect), also for the ride it rebuilds. The rider-head readback needs guests on the built Crazy Ape.Level.TryProjectCellanswers false for a cell off the grid instead of throwing from the heightfield (the jungle's guest map is larger than its landscape), pinned byLevelProjectCellTests. Every caller is a screen-hit or ghost-label lookup that already treats false as "not clickable".
No assertion was loosened: the Totem start limit stays at 30 s of script time. The shared smoke script runs the jungle smoke (about 85 s).
Park objects fade into the level's fog colour (October 16, 2026)#
Distant terrain, objects, water and kid sprites faded into one fixed blue (0.301, 0.84, 1, and 0.28, 0.88, 1 in the old 3d shader), so the hallow and space parks faded into a blue haze against their own night and orange skies. The engine has one fog colour, and tp.exe read it from the level's Standard.sam (UI-107):
The colour
ThemeEngine.FogColour(jungle and fantasy0x48D8F8, hallow0x112244, space0xF88430) is copied by0x4080E0into the engine fog colour[0x8BD47C], which the viewport clear (0x5737AA), the sky (0x583F0C,0x58438C) and the fogged vertices (0x5747D0,0x576B41hands it to the device) all use. OpenTPW now passes it to every shader that fogs (test,water,sprite,3d) asg_vFogColorin the object uniform buffer (RenderFog, set from the level before each world pass; the lobby uses its clear colour). The precompiled web shaders (content/shaders/web) are regenerated.The range (read, not applied): the fog is linear in view depth (
D3DRS_FOGTABLEMODE3, no range fog,0x567AD0; the vertex path0x5747D0blends the same way) with start and end from FIRSTPERSONVIEWDISTANCE 0-3 (0x44D8F0->0x583280, far plane0x8BD4C0): 50-60, 100-110, 135-150 and 230-250 original units (0.2 engine units each); the table fog is switched off altogether when the render flags[0x8BCBC8] & 0xC000are set (0x567AD0). The per-primitive state bit0x100000switchesD3DRS_FOGENABLE(0x567620). OpenTPW keeps its own distance curve, because its park camera is not the original's (UI-101) and the literal range, seen from the default camera, fogs the whole park out; the high-preset captures confirmed that.Checked with offscreen native captures of the jungle, hallow and space parks from the overview camera: the far scenery fades into cyan, night blue and orange respectively.
Still open under UI-107: the moon billboards, the render-flag variants of the clear and the sky, the original fog range with the original camera, and which passes set the fog bit. Presentation only; the simulation is untouched.
The lobby's enter-park particle effect (October 16, 2026)#
The enter-park routine of tp.exe (0x4b8fd0, called from 0x5e1e30 through the lobby's vtable slot 0x702f04) does more than play cat_globallobbysfx 4: before the sound it starts the screen-space particle effect 0x62 over the lobby's key panel through the particle creator 0x521e60 (the earlier reading of 0x521e60 as a global sound was wrong). OpenTPW's particle system only ran in the 3D park world; the lobby now has a screen-space particle host and starts the effect where and when the original does.
Position:
0x521e60(0x62, 0xC350, 0, z)with z = ((bottom - top) >> 1 + top) * 75000 /0x600of the key panel control0x1E0EA(layout table Lobby, rows 170..437 of the 1536-row canvas): native (50000, 0, 14794), the horizontal centre of the screen and screen y -613/1024, over the panel. The control's animation offset (+0xF8..+0xFE,0x65D42E) is taken off first, so it is the table rectangle.When: at the tick of the game-mode dialog, before the sound; the whole block (effect and sound) is skipped in Instant Action (game mode 2) and needs the lobby window (
0x7CC4B4).Host and lifetime:
ParticleRendererModule.CreateScreenRendererbuilds aParticleRendererwithout a level (the original's pool is global and drawn by whichever scene is up);GameFlowstarts the effect in it and the host is deleted with the lobby's entities when the park loads (the post-load pass0x5200B0kills screen-space emitters). Template0x62runs 61 ticks of 31 ms (about 1.9 s) on the shipped file and draws 898 sprites.Presentation only: the effect draws from the particle pool's own random stream; the world and guest streams are untouched, the pinned run hash and saves are unchanged. The particle clock is the pool's own 31 ms tick, as for the park's particles.
Tests:
LobbyEnterEffectTests(position, z scale, Instant Action skip, the menu's tick, template0x62on the shipped file) and a front-end smoke step that starts the effect and requires screen-space draws.
No APPROX id covers this behaviour (UI-942 was closed as EXT:online-globe-audio earlier today, for the online globe's music only).
Lobby: sky colour, bats and butterflies, island clips (October 16, 2026)#
The lobby's animations read in tp.exe and built (UI-018 narrowed):
The lobby generator returns its step rotated right by 13 bits (
ror 0xdat0x5e0f4b, also0x5d98d1,0x5da0d4,0x5e113f).The sky: the original clears to the scene's fog colour
0xFF44DDFF(0x5d8b50,0x5737aa) and the island's SKYCOLOUR eases the engine sky's colour grid by (target − current) >> 4 a frame from black, the red channel moving toward the blue target (0x5d96c0); until the cloud layer is drawn, OpenTPW paints the backdrop with that eased colour as a stand-in (UI-018).Bats and butterflies (FLYINGMESH) spawn as groups 50 units above their island's camera target (
0x5d9db0,0x5da020), turn 0.1 × step toward a random point, fly at their speed and pick a new point within √500 (0x5d9830,0x5d9b50), facing their direction and looping theirm1wing cycle (0x5d81c0); their draws come from the lobby generator ahead of the islands (0x5d5c50).Islands play their M1/M2 clips when the current clip has under 1 ms left (
0x5e11d0,0x473f50), picked with a presentation stand-in for the C runtime'srand().
Still open: the engine sky's cloud layer and the scene fog are not drawn, the enter-zoom sequence (0x5e1e30 → 0x5e1e50) is read but not built, and the key-award animation is not traced. UI-941 narrows to the camera wander.
MD2 slot flags, node bit 0x8000 and the ESP performance entries (October 16, 2026)#
Format round 3. A read-only REA research pass over tp.exe, with the key claims re-read in the assembly:
ESP slots 16–19 are the entertainers' performance entries (
SpritePerformance,SpriteAnimationFile.Performances).The loader
0x540D90counts entries with a non-zero first byte. The accessor0x540C70returns the program (byte 0 − 1), the slot (byte 1 − 1) and two program registers.The entertainer's search
0x4D46D0plays script 13 + (r mod (n − 1)), or 13 for one entry.Exactly the twelve entertainer banks have one entry, program 0 on slot 4, so every entertainer performs slot 4. Before, OpenTPW picked among slots 4, 10, 3 and 11 per member.
GUEST-015 is narrowed: what remains approximated is the program's steps for Hallow SPR_DR's third and fourth bytes.
MD2 texture-slot bits 0x10/0x20 mean wrap. On the Direct3D path they set render-key bit 0x400000, and the stage decoder
0x567620setsD3DTSS_ADDRESSWRAP with linear minification for it, else CLAMP with point minification.Bits 0x1/0x2 have no reader: the runtime model generator writes them. Transparency follows the image's own alpha bits (
0x575771,0x590C40).OpenTPW still samples object textures with a mirrored repeat. Choosing wrap or clamp per slot is noted as engine work.
Node bit 0x8000 is the UI widgets' hidden-state bit. It is set by the widget constructor
0x476A90and the state selector0x476E80. The draw and picking walks treat it as 0x10.UiModel's single chosen frame already gives that result.
Docs: GUESTS.md, MD2-MODELS.md, FORMAT-BACKLOG.md, README format table. Tests: the parser, the entertainer clip, and a corpus check that exactly the twelve entertainer banks carry one entry, program 0 on slot 4.
MD2 path review follow-up (October 16, 2026)#
The review of the MD2 path round (#208) re-read the sampler in tp.exe and found it matching; its nits are settled: three source files lose the byte-order marks the round added,
docs/MD2-MODELS.mdsays the path sampler is the one part read from the PC executable, andModelPath.Facingnames the one known difference (before a record's first rotation key OpenTPW passes the rest rotation's up row where the original reads the node's current row).
Coaster link marker, wavelet rounding, stink effect and WALKOFF effect (October 16, 2026)#
A miscellaneous pass over open approximations, read in tp.exe via REA:
COAST-035 (narrowed, partly built): a hovered chain start is now the closing target (node flag 0x800000, or 0x804000 when the closing link is refused, 0x4360c4) and the start's own tag pairs take the blue or red marker (0x43f4e0). The 300-unit reach was already built, so that clause is removed. Open: the reader of the 0x200000 marks set by 0x4360c0.
COMPAT-018 (narrowed, partly built): the wavelet YCbCr conversion rounds to nearest-even as 0x5935A0 does, including the 512-entry clamp wrap (-128..383). Open: where the header scale enters 0x592E60, the alpha conversion and the x87 precision control.
COMPAT-001 / COMPAT-003 (narrowed): the PC composes 256x256 and packs the top 128 rows; the strip resampler 0x5E80D0 has no upsampling branch, so the nearest-row relief upsampling is OpenTPW's own.
COMPAT-010 (narrowed): option variables sit at 0x785874 + 4 x option index, so TEXTUREFILTERING is [0x785878].
PTCL-908 (partly built): a stinkbomb on the ground starts particle effect 50 at its sprite and ends it when swept (0x4D95BD, 0x4D9620). PTCL-905 (narrowed): the batch depth sort has no visible effect.
TOUR-011 (narrowed, partly built): WALKOFF action 2 creates effect 0x13 at the slot's start node (0x5571A0, 0x5572EB). The walk-on hold is not built.
PTCL-906 (retired, user-checked): the engine-to-native pose conversion undoes
ObjectPlacement.ModelToEngineconstant for constant (0.2 scale, grid origin, Z up), so the 0.2 and the centring cancel and need no BIN backing; what remains is float32 rounding of the engine pose, at most one native unit. Pinned by a round-trip test over all four rotations.RIDES-021 (narrowed): the model triangle test 0x45D090 is read.
Unchanged readings: BLUEPRINT-001/-003, PTCL-900/-909, RIDES-019, COMPAT-007/-032. Blocked: COMPAT-002/-004/-006, MD2-900/-901, PTCL-904, RIDES-040.
The determinism pin does not change (the new effects are presentation only and draw nothing from the world RNG). The sign hash baselines moved with the wavelet colour rounding (28 half hashes of 14 signs, plus five table-named signs in RidesRound2Tests).
User-approved split to extensions (behaviour unchanged, labels and text only): [EXT:sign-relief-upsample] (COMPAT-003, the nearest-row upsampling the original's resampler 0x5E80D0 cannot do) and [EXT:blueprint-phase-step] (BLUEPRINT-001, the ghost ripple phase steps 0.1 per 1/30 s of real time instead of per rendered frame). The remaining parts of both IDs stay open.
No white square for a disabled call button (October 16, 2026)#
A ride window with no mechanic hired showed a white square where the call-mechanic button sits. The button is disabled then (UIHELPTEXT 574), and the disable frame of b_callmech names the texture b_callmechg, which ui.wad does not ship; an unresolved texture draws as untextured white. The same holds for b_callhandy (a toilet's call button) and b_upgrade, and for the pressed frames of the unused b_loantog; no other state frame of a UI model whose normal frame draws from /ui/textures lacks its art (pinned by a corpus test). UiButton now draws the normal frame for a state frame whose art is missing, greyed when disabled ([EXT:missing-state-texture]). That is not the original's look: tp.exe's texture binder 0x46EAD0 logs "Could not load texture" and binds entry 0 of its texture table instead, whose contents at run time are not known. The old note that b_callmechg was the highlight frame was wrong: it is the disable frame.
Mod system core and online as the official extension (October 16, 2026)#
Mods (
[EXT:mods], docs/MODS.md): strictopentpw-mod.jsonmanifests (unknown fields rejected, bounded sizes, no paths leaving the mod), discovery from--mod-dir,OPENTPW_MOD_DIRS,<config>/mods/<id>/and<program>/content/mods/<id>/, player settings in<config>/mods.json, and one resolution at startup: version and edition checks, required inputs, dependencies and cycles, refusal of two mods overriding the same file, a fixed load order (dependencies, official before community, the player's order, id) and a content digest per mod. Community mods are data only; nothing consumes their content yet. Mod folders are untrusted: only regular files are read (no links, FIFOs or devices), documents through a bounded stream, and the digest uses composed Unicode paths without OS clutter, so it is the same on every platform.Online is the official extension
opentpw.online(on by default,[EXT:extension-online-gate]): switched off (mods.jsonor--disable-extension opentpw.online) the lobby's globe button and Go Online lines go, Publish Park stays as the original's disabled line, postcards and the online command-line switches refuse, and no online session or chat overlay is ever created. The pinned hashes are the same with the extension on or off.
Mods can now change what the game reads: overrides, strings and objects (October 16, 2026)#
Phase 5 of the mod system builds on the mod core. An enabled desktop mod now takes effect, at the next start, through content roots (ModContentRoots, docs/MODS.md). Loose files in a mod's overrides folder replace the game file at the same data-relative path, members of archives included, through a new BaseFileSystem.Overrides hook (textures, sounds, UI art and settings alike; the game's folder is never written). strings/<Language>/<NAME>.str replaces a language's string table through GameLanguage.StringOverride. With no files-based mod enabled neither hook is set, so every lookup, the catalog and the pinned digests are unchanged.
ObjectCatalog.LoadSteps no longer knows only one bonus root. Mod objects come from CatalogContentRoot entries, each a file system with WAD and SDT handlers rooted at the mod's folder or at the data folder of a mod input (a user-supplied original install, such as another original game). objects.json lists the archives with theme, category, an Info.Id from the range the mod declares and name strings per language. It is parsed strictly and bounded, the archive paths cannot leave their folder, and the assigned Info.Id replaces the archive's own. Default .sam files still come from the game data, as for the official bonus objects. Skipped archives (a taken name, a missing folder, no .sam) are warned about.
Conflicts are refused, never resolved by "last wins": two mods that supply the same file need after, and overlapping Info.Id ranges or the same archive name in a theme and category refuse both mods. The catalog cache key now includes the mod set's digest, and a park's asset manifest keys mod members mod:<id>:/... (ContentRoot.Mod, from the save-recording phase), so a saved park pins their content. The mods screen, and the checks and engine work for Theme Park Inc objects (opentpw.cross-edition-objects) are later phases.
Park saves record the mods that change the simulation (October 16, 2026)#
Phase 4 of the mod system (docs/MODS.md, docs/DETERMINISM.md "Mods"). ParkResumeSnapshot.Mods lists the simulation-changing extensions and mods that were active (id, version, content digest). It is null and left out of the file when there are none, so unmodded saves are byte-identical to before; a test pins that. Loading needs the same mods, versions and digests in the same order and no other simulation-changing mod; an extra presentation-only mod or the online extension is fine. A mismatch refuses with a named reason such as needs community.tpi-rides 1.0.0, and the load and Continue menus keep such a save listed with "requires mod X" in the six languages instead of hiding it. The shape check bounds the list, the ids and the hex digests and ties every mod:<id>: asset key to a recorded mod.
ObjectCatalogEntry.IsBonus and the bonus prefix generalise to a ContentRoot (Data, Bonus, Mod(id)) with the asset-manifest key prefix mod:<id>:/...; nothing loads a mod's archives yet, that is the content-root phase. The catalog cache key includes the mod set digest, ParkSharing.ExportLevel refuses while a simulation-changing mod is active, and tests check that an empty set, an online-only toggle and a presentation-only mod keep the pinned digests.
The original object build check: overwrite priority and track cells (October 16, 2026)#
The object branches of tp.exe's cell validator 0x535670 were traced via REA. The build tool's hover 0x5234D0 and click 0x524960 run the placement 0x528A70 (the hover twice: a check pass with its sixth argument 1, then the ghost; the click commits), which sends each footprint cell through cell op 0x204 of 0x532FC0 into the validator with type 4.
Overwrite priority. The branch that compares
0x818C14with0x818C10(0x535D66) is not a count: the hover loads the placed type'sInfo.OverwritePriority(type record +0x54, sam schema0x745020) into0x818C10, and the validator loads the priority of the object that owns the cell (0x53570E) into0x818C14. An object cell is allowed when the new priority is higher; the commit's cell op 0x87 (0x5344E5) then demolishes the owner whole (0x527EE0, which credits its scrap value). In the shipped catalogues rides, shops and sideshows have priority 5, small scenery (bushes, flowers, tiny rocks, speakers) 1 and the other features 0, so a ride built over a bush removes the bush.ObjectCatalogEntry.OverwritePriority,ParkObjects.Check(…, out overwritten)andTryPlacefollow this.Track cells. The validator refuses a track piece on the second layer (
0x535BB3) and any map type other than empty, path and the object types. OpenTPW stores track types in the cell map and did not refuse them;Level's object reservation now refuses every cell type except 0 and the object types (4, 9, 10), whichParkObjectsdecides by priority.Money. The pending cost (
0x52FBC0, the type's price+0x1B8, set by the hover) above the balance refuses the build unless0x785A2Cis set; OpenTPW's economy purchase already refuses it.
The new object is built before anything is demolished, so a failed build leaves the park as it was. The native smokes', park-resume fixtures' and demo builders' site searches use ParkObjects.CheckFree / Level.CheckFreeObject, which treat an overwrite as occupied, so they keep demolishing nothing. Verified with the full test suite (5029 passing with game data, 109 skipped).
Still open (RIDES-018): an object may stand on a path cell without NoModify (0x535D21), whose commit clears the path (0x534549); the entrance and exit outside cells take the path rule (cell op 0x201, 0x5298B9, 0x529A2F); and the path and queue tools use the same comparison with 0x818C10 = 2 and 3, so they replace scenery.
Objects over paths, paths over scenery and the access cells from tp.exe (October 16, 2026)#
Three more branches of tp.exe's cell validator 0x535670 and the placement 0x528A70 were verified via REA and ported (RIDES-018, docs/OBJECTS.md "Build rules"):
Objects on path cells. Type 4 over a type-1 cell is allowed (
0x535D21) unless the cell has NoModify (0x20, the map start's initial path;0x5356B5refuses it before any other test). The commit clears the path with ClearCell0x5367A0(0, 0), which refunds nothing: cell op 0x87 does so when the new priority is above0x818C14(0x534549), and the footprint write clears every cell before typing it anyway (0x52910C), so the path goes whatever the priorities.ParkObjectsnow asks the level's cell map (PathAt): a plain path under the footprint is cleared throughParkPathBuilder.Removebefore the object is added, a NoModify one refuses, and the terrain rule's save and map-start path cells defer to the live map, so a removed save path no longer blocks a build. Guests standing on a cleared cell are set down on the nearest path cell (GuestSimulation.SetDownOffCells; tp.exe's handling is not traced).Paths and queues over scenery. The hover (
0x524571) and the click (0x527200,0x527218) set0x818C10to 2 for the path tool and 3 for the queue tool, and the validator compares it with the owner's priority (0x535D66) before any path or queue rule. A path or queue line may now cover a feature of priority 0 or 1 (ParkPathBuilder.ObjectGivesWay, the queue builder'sgivesWay); the commit demolishes it whole (0x527EE0through op 0x87 of the first line pass, scrap value credited by the level's removal).The access cells. The task note had the path rule on both outside cells when option
0x81B0CCis on. tp.exe sets that option to the placed type'sInfo.HasQueuewhen the build tool opens (0x46D644, a call Ghidra's function bounds miss); with it on, the entrance's outside cell is checked as an object cell (op0x204,0x5297A4) and the exit's by the path rule (op0x201,0x529A2F); with it off, only the entrance's cell is checked, by the path rule (0x5298B9). An access cell off the map refuses (0x529744,0x5299E2). The corpus agrees: every one of the 72 queue types has one entrance and one exit, every other type at most one entrance and no exit.ParkObjects.CheckAccessCellsfollows this (refusalAccessBlocked) and demolishes a lower-priority object there; laying the queue and path cells stays open (RIDES-028).
The shipped priorities were counted over the four catalogues: 5 for every ride, shop, sideshow, upgrade, toilet, staff room, fixed item and fantasy's Large Sign, 1 for 45 small-scenery types and 0 for the other 48 features. QUEUE-012 lost its open question (the "count" at 0x818C10 is the tool's overwrite priority). Tests: ObjectBuildRuleTests (synthetic objects on a live cell map) and OverwritePrioritiesAndAccessCellsFollowTheTypes (corpus). The smokes' and demos' site searches (ParkObjects.CheckFree, Level.CheckFreeObject) now also refuse a site that would clear a path: the park-resume fixture had built its shops over its own path spine and then spawned guests on the cleared cells. TryPlace builds the new object before anything is demolished or cleared, and its script again draws from the world generator like Add's (DET-013; main's TryPlace had gone back to seeding it directly). Verified with the full test suite (5108 passing with game data, 109 skipped) and the native park-resume smoke, capture and restore (silent). An independent Codex review found three issues that were fixed: guests were looked up by their next cell, a path cell that could not be paid for still demolished its feature, and queues read stale save path terrain.
Still open (RIDES-018): the second-layer link tests 0x53AE00/0x53AE90, the pending cost of the access cells, the types whose record +0x288 is 1 (their Bumper.WhichTrackType turns the access-cell option off), and what tp.exe does with a guest inside a new footprint.
Native smokes render offscreen (October 16, 2026)#
The native smokes no longer open a visible Theme Park World window:
Offscreen mode:
--smoke-test,--tpi-smoke-testand--park-resume-smoke(also--offscreen/OPENTPW_OFFSCREEN=1for any run;OPENTPW_OFFSCREEN=0or--no-offscreenopts out) create the SDL window hidden, never show it and render every frame into an offscreenFramebuffer(a colour texture in the swapchain's format and, like the swapchain, no depth, so every pipeline stays compatible) of the size the window would have had. The swapchain is never presented, so macOS drawable throttling of hidden windows cannot time a smoke out, no focus is stolen and a locked screen no longer fails the fullscreen-toggle step (CGSSessionScreenIsLocked).Pacing: nothing paces an unpresented target, so offscreen runs without a frame cap are paced like a 60 Hz display (
--no-vsyncunpaces them); otherwise wall-clock-timed work spans far fewer frames than the smokes' frame budgets allow.One present target: the renderer, the overlay pipelines' output description, the output capture and the smoke's size checks go through
PresentTarget(SwapchainPresentTargetorOffscreenPresentTarget) instead of the swapchain directly.Window state: an offscreen
Windowkeeps a virtual logical size (windowed size, or the desktop size for borderless) instead of asking SDL, and reports itself unfocused (as the window of a visible smoke is; a focused one would edge-scroll the park camera from the pointer's corner position and drift the screenshots). The sandbox smoke's fullscreen toggle therefore verifies the logical window change and logs that the OS-level fullscreen transition is skipped; run it withOPENTPW_OFFSCREEN=0to cover that part. Normal game runs stay visible.
One world generator, as in tp.exe (October 16, 2026)#
OpenTPW's separate random streams (per guest, per script, the economy's, the bump rides') are replaced by the original's one world generator, read in tp.exe via REA:
The generator (
WorldRng):0x516330, s = rotr(s × 1664525 + 1013904223, 13), the rotated value the new state and the result its absolute value, plus the reseed0x516370. Its state is the world'smRandomSeed(+0x1DA708, written at0x517123, read at0x517DFC, label0x762924), so an original save's generator state is now imported (SAVE-001 retired). Test vectors come from emulating the routine, including the0x80000000edge.Scripts, rides and heads (DET-013 narrowed, HEADS-001 retired): RAND (
0x55398A:shr 1; abs; idiv (int16 + 1); abs, reading the operand's low 16 bits, soRAND V0, V1uses the variable's index, bug-compatible), FINDSCRIPTRAND (0x5560CB), ADDHEAD (0x554CB5), the kart and boat draws (0x54A040family) and the tours (0x55A770,0x55DB41) draw from it; placed object scripts no longer carry per-placement seeds.Guests (DET-014 narrowed): creation draws in the original order (base speed
0x4F89E1, the eight starting values0x4FAFF8..0x4FB114, the reseed0x4FB19E, sprite variant0x541F85, an arrival's entrance side and sideways byte0x4FB201,0x4FB21C), the balloon and costume reseeds (0x4FE6A1,0x4FE6FC) and the thought pick (0x501919).Economy and staff (DET-015 narrowed): the staff pool, staff walks, the rest gate, the no-rest-area hit, the guard set-down, the handymen and the litter reseeds (
0x4D94E2,0x4D71CA). Weather keeps its own stream ([EXT:weather-stream]); presentation (audio, particles, weather visuals) stays off the generator, which a test enforces.
All 139 direct draw sites and 4 inline copies were mapped to their consumers. The pinned run hash moves from 0x09894103FAFB8D45 (schema 19) to 0x7AED41D19433D4B2 (schema 20); two path digests move with it (docs/DETERMINISM.md). Saves gain an optional WorldGenerator state, carried as a marker by the guest and script snapshots and checked for agreement on resume; saves from before the port derive it deterministically from the saved world seed or the old economy state ([EXT:legacy-generator-state]). Verified with 4609 tests passing without game data, 5057 with it, and all five native smokes.
Still open: the original's update order (the substep scheduler with the thing sweep newest first, the economy month end against it), the reseed by the original's thing id rather than OpenTPW's guest id (WALK-010), the entrance cells as world words 0x7855DC..E4, guest state-handler draw sites with no OpenTPW counterpart, hired staff's person-constructor draws, and the advisor pick 0x59A550.
Online approximations closed as design choices (October 16, 2026)#
The eighteen open APPROX:ONLINE-* IDs recorded uncertainty inside OpenTPW's own online extension, not required original behavior, so they are closed as explicit OpenTPW design choices:
Each site now carries an
EXT:online-*label that states what OpenTPW does (for exampleonline-word-filter,online-globe-tick,online-chat-park-view,online-visit-count-guard); behavior is unchanged.ONLINE.md replaces its approximation register with a design-choices table: label, former ID, OpenTPW's decision and the known original evidence (Mac traces of the word filter, tp.exe addresses of the globe, chat overlay and park-name masking, manual pages) for a later fidelity pass; nothing there is claimed as reproduced.
The fidelity register has no ONLINE area and no Markdown register any more:
ONLINEis a closed area whose former IDs stay reserved (recorded intools/fidelity_retired.txt), and a newAPPROX:ONLINE-*tag fails the check with a pointer to EXT labels. Every unresolved ID in the register is now in the original areas; the website status page renders the register from the sources in memory and reads its new sentence.
The original build check: Blocked ground is buildable (October 16, 2026)#
tp.exe's build check was traced via REA. The cursor handler 0x5234D0 places an object through 0x528A70, which tests every footprint cell through 0x532FC0 (mode 0x200) with the cell validator 0x535670. The validator reads the cell's kind (+8), flags (+0xE: 0x40 unowned, 0x20 path), path links and owner, never its MAP byte (+0x26). The map start 0x536490 gives a surface cell kind 0 or, for the initial path, 1: the kinds that bits 0x01, 0x02 and 0x80 pick there are overwritten right after (0x536524..0x536548). Only holes keep a refusing kind (2, 0x1E, 7).
OriginalParkPlacement's terrain rule now uses that map-start kind (ParkLand.OriginalCellType, the heightfield cell word's bit 0) instead of refusing every Blocked, Water, EntranceArea and FixedWalkway cell. Measured over the four base maps, 318–326 surface cells per theme carry Blocked (all value 1: the edge ring and the ground round rocks), plus fantasy's value-16 cell (27, 17). Only space (45, 18) and (50, 18) and fantasy (27, 17) lie in the starting land; the rest become buildable for objects, paths and queues once bought. Holes are refused as before, so water rides keep their water cells. PATH-006 (PATH-SLOPE) is retired: neither the original nor OpenTPW has a slope test, and the terrain rule no longer stands in for the original's cell types.
The native smokes' and the demo builders' site searches (Free in SandboxSmokeTest.Tracks/Tours/Coasters, ParkResumeSmokeTest.Tour/Water/Bumper, Level.BuildDemoCoaster, Level.BuildDemoTrackRide) now also require owned land: they leaned on the Blocked refusal to keep off the unowned rim, and on main the jungle smoke already failed at the water track's preview (68, 10), an unowned cell. Verified with the full test suite (5024 passing with game data, 109 skipped). The jungle sandbox smoke now passes the track steps; its tour stage (wait for a quiet moment with every rider released) takes about four minutes on this machine with either rule and exceeds the smoke's 180-second watchdog, so it is not counted as passing.
Still open (RIDES-018): the validator's object branches (existing ride cells against the count 0x818C10, entrance and exit cells with their path cell 0x5286A0, the cost test 0x52FBC0).
Original save blocks: block widths, coaster trains, object controls and the camera from tp.exe (October 16, 2026)#
A deeper pass over the original save format, read in tp.exe via REA:
Block widths (SAVE-011 narrowed): every block reader of the loader
0x415270is traced, and the save is now split by the readers' own widths (SaveBlockWidths): scripts0x475730, particles0x51F7A0, RideSystem0x4647A0, track rides0x543560, flying rides0x55E020, RSSE0x5597A0, advisor0x599D00, sound0x51C400and UI0x481680. All 17 widths match the Jungle Easymode save exactly; only the World block and a Coasters block with a coaster are still found by delimiter search.Coaster blocks (SAVE-921, SAVE-922 and SAVE-923 narrowed, SAVE-920 narrowed): the section words (mesh instance
+112, bank, incline, yaw, height, loop rotation), the section flag map read from both the saver and the loader (0x437DE9,0x442CD0), the header (station mesh instance+0x10, state word+8) and the train payload of the saver0x437300(27-byte train records, 11-byte car records with rider and seated lists, cars per train from the coaster type) are decoded; the coaster type is identified through the attraction whose mesh instance matches, so a block of several coasters now reads.Object controls (SAVE-007 narrowed): the control manager's table (
0x4D3AA0, 150 records of 32 bytes) is decoded; its researched flag (+0x10) is written only by the lab (0x5031A0,0x504630), and on the Jungle save it agrees with OpenTPW for all 42 items.Camera and small runtime blocks (SAVE-010 narrowed): zoom, yaw, flags and the points of interest; the clock, vanilla time, game system, cheat, advisor scoring and UI count blocks are decoded and reported.
Engine-state dumps (SAVE-010 split): the raw dumps of the original's own engine structures (the Scripts, RSSE, Particles, Sound mixer, message-centre, Track ride and Flying ride blocks) are an OpenTPW design choice, labelled
[EXT:original-engine-state-dumps]; the camera, clock and similar decoded blocks stay under SAVE-010. The rebuild of a runtime coaster from a saved Coasters block stays SAVE-920.Also: a staff sub-type is the sprite variant (
0x763F88,0x541D90; SAVE-004), the pick-up handler0x505C50sets state 7 (SAVE-009), and the third gauge+0x4Cis write-only (SAVE-006).
The pinned run hash and OpenTPW's own save format are unchanged; the original-save reader gains optional decoded fields. Verified with 4668 tests passing without game data, 5118 with it, and all five native smokes.
Still open: rebuilding a runtime coaster from a saved Coasters block, the World's control manager and macro-AI widths (0x5179C0), a few coaster header and train words, the full ride state word (ECON-023) and the research table order (ECON-017).
Original saves: staff, attraction states and guests imported from tp.exe (October 16, 2026)#
What an original save restores now goes well beyond the placed objects (SAVE-003 retired, SAVE-006 and SAVE-002 narrowed):
Staff (SAVE-003): the staff serializer
0x504DE0and the person block0x4F8B10are decoded field by field, with the role serializers of the mechanic (0x4DA110), handyman (0x4D6D60), entertainer (0x4D4460), researcher (0x502760) and guard (0x4D6000). A member keeps its inline name, hire tick (the clock stamps whole turns,0x4F8690), idle stamp, patrol rectangle (corner cell ids y x 128 + x + 1,0x506ED0), job with its target (a mechanic's ride and repair timer, a handyman's toilet and cleaning start, a rest area while walking to or resting in it) and the walk on tomAccurateDestX/Y. A world takes back the ride or toilet claim when it places the member. OpenTPW's own save gains the optional staffNameandResumeDestinationfields so a saved park keeps them too.Attraction states (SAVE-006):
SetState0x4E0E60is read for states 0 to 4 (1 and 4 break the object down, 2 waits for a mechanic to install the next level and debit its cost, 3 is a type that is not choosable), together with the total profit (takings minus costs,0x4E1C60) and the maintenance call. The serializer0x4DB7D0is now decoded completely, including flags, handles, claim, queue ends, the open word and the six daily rings. The chance of losing, quality and special ingredient amount from the ride settings work are decoded once, in the import loop, from the low bytes the loader reads (0x4DCD29..0x4DCDC1); a win byte above 100 imports as a chance of losing of 0.Guests (SAVE-002): the guest serializer
0x4FB530after the person block is decoded (SaveGuest), and the level restores the shipped save's guests into the guest simulation (GuestSimulation.ImportOriginal) instead of starting empty: Easymode's 13 guests keep their thing id, type, cash, meters, exit counter, balloon, costume, walk speeds, histories and thought, and walk on to their saved destination. Arriving and departing guests walk on along OpenTPW's nearest arrival lane. The import draws nothing from the guest stream.
Evidence: every field cites its tp.exe address in the import code; Evidence lines of an import list what was restored and what was adjusted. Verification: the full suite passes without game data (4357 passed, 547 skipped) and with it (4795 passed, 109 skipped), the five native smokes pass, and tools/fidelity_register.py --check reports 241 unresolved unique APPROX IDs (the review registered ECON-056, the shop cost per sale of 0x4E1B40, and ECON-057, the per-attraction 30-day rings). The determinism pin did not move.
Still open: SAVE-006 keeps the operating capacity, duration and speed (OpenTPW's rides keep their tier's Init values, as the shipped saves do), a closed open word of a working attraction, the daily rings beyond this and last month, the sign lines, the third gauge +0x4C and a staff claim no imported job holds. SAVE-002 keeps queued, boarding, riding and held guests, park guests off the paths, the booth's and gate's waits, the stamps before the save's turn, and the counters, event ring and queue links; litter jobs (SAVE-010) are dropped.
Park name and sign paint read in tp.exe (October 16, 2026)#
Rename the park (COMPAT-007 retired): the gate's two lines (+0x3C8, +0x40A) start as the first and second OBJECT_NAMES text of the gate's row (
0x4DB6F9), so an English Lost Kingdom gate reads "LOST" / "Kingdom"; the ticket price window shows the joined name (0x4E2780) and opens the rename dialog (0x4990F0, UITEXT 194, two fields of 14 characters), whose OK sets the lines and redraws the sign (0x4993E0,0x4682B0). The world save gains an optional, validatedParkName; old saves load with the default lines.Ride signs show the info record's name (COMPAT-016 retired): an id outside the name table gives an empty name, and the sign is still composed without text (
0x4146B0,0x467A80,0x5ECB40).Sign paint masks are shaped as the PC build does (COMPAT-003 narrowed,
0x5EBF10): offset copy, erode or dilate by the mask word, then a truncating Gaussian blur along rows and columns (0x5EA8A0); two style-2 layers combine by the maximum of their shaped masks. The sign baseline hashes are re-pinned.
Path links, queue cells and the original queue walk from tp.exe (October 16, 2026)#
Paths and queues were read in tp.exe via REA and built; six unknowns are retired, six narrowed and two blocked:
Path link writer (PATH-004 retired): the commit's link pass
0x52744Ecalls the writer0x5348D0, and the clear uses the unlink0x5367A0; the area clear tool (tool0x3A, the Clear key0x40C5E0, clicks0x525DA3, clear0x52BDD0) is built (PATH-005 narrowed around the missing owner word). The writer's cat_ui sound 139 at (10x, 0, 10x) from0x5348E0is played (AUDIO-023 retired).Queue cells and links (QUEUE-003 narrowed): queue cells carry the links the queue line's link pass writes (cell
+0x0C, queue link+0x0D, the back link0x535C7E); a line ending on a path cell is accepted as the validator's code 8 (0x535D06, PATH-008 retired). The queue models are drawn from the theme's table0x7630B0with the placement0x522900/0x5229E0(PATH-015 narrowed).The original queue walk (QUEUE-006 retired): guests reach the back of a queue by the original's queue search and the edge test
0x4D8750over those links instead of OpenTPW's earlier search.Entering the path tool (PATH-001 retired): an entry click calls SetMode(1) without a start (
0x4879D0→0x52F200) and the next click sets it; the refused ghost gate0x524A63, the start check0x527222..0x5272B8and the lay sound0x5271B7follow.Path textures (PATH-014 retired): the chooser roll (
0x535FCC/0x53602C) and the refresh0x5365D0are a presentation stub with its own CRT generator, seed 1.Other: ECON-049 (
0x4DE4A0) and WALK-006 are narrowed, GATE-006 has a note only; QUEUE-014 and QUEUE-010 stay blocked.Two new approximations: QUEUE-023 (a closed ride is not opened when its queue becomes connected,
0x4DE1F0with0x4DE4A0, which every edit of the ride's cells calls: the queue tool click, the placement, the cell setter and the cell clear) and PATH-016 (map init0x536490links InitialPath cells with the link writer's mode 1, where OpenTPW gives them links0x0F). Both were checked in the executable's bytes.
The pinned run hash moves from 0xA2FAA54FEB56DA05 to 0x09894103FAFB8D45 (schema 19): the synthetic park's queue now carries links and guests walk it with the original's queue walk, so positions, joins and the world stream move. It is on top of main's pin after the staff walks (#229), which left the earlier pin unchanged; see docs/DETERMINISM.md.
No save field is new. An older save, and an imported original park, gets queue links rebuilt when its ride is registered (QueuePaths.RebuildMissingLinks, only when no cell of the queue has a link byte), so staff and guests restored from them walk the same links. Level.RefreshRenderedCells() redraws the path layer, which the park-resume smoke needed. Verified (after the review's merge of main) with 4542 tests passing without game data, 4983 with it, the native smokes, the evidence checks (21 Python suites) and tools/fidelity_register.py --check (235 unresolved unique IDs).
Still open: QUEUE-014 (the queue tool's straight segments from a clicked start) and QUEUE-010 (the guest's position after leaving a queue), QUEUE-023 and PATH-016 above, the owner word of the area clear (PATH-005), the queue models' ground deformation and torch animation (PATH-015).
Per-visitor window, three camera and buy-list features, and interface readings (October 16, 2026)#
Built
UI-910 narrowed, the per-visitor window. Table
0x7575e0is generated from tp.exe. The window shows cash, time in park, the four use counters, the happiness bar, theKIDSTATES.strstatus and theTHOUGHTS.strtext with its icon. It refreshes every 4 s (timer0x80080) and has the cycle arrows,b_locate,b_kidsand help 302. A list row click and a world press both open it (the list gives way); Ctrl+V locates its visitor. Still open: the portrait figure (0x4b6b90) is empty, and the arrow order (newest first) is not proven the same as the original's thing list.UI-102, UI-103 and UI-105 retired. The park camera's middle-button turn, the map window's edge scroll and the buy list's golden-ticket rows are built from the original's routines.
Use counters. The visitor window and the All Visitors rides column read the guest counters that
wave3/savesbrought to main (Guest.RidesTaken,ShopsVisited,SideshowsVisited,SideshowsWon, counted byWhichUITypeat0x4fd9b1); this branch adds no copy of them. GUEST-005 no longer lists+0x1d0 += 1as unfollowed.
Narrowed
UI-104 (Move tool): the placement runs through
0x528a70with flag0x8186d4set, so it is free; the pick-up erase0x527ee0credits scrap percent of the stored price, and whether that applies to a move is open.UI-095, UI-101, UI-106, UI-930: the readings of the cell link byte writers, the projection builder (90 degrees for both axes, Home pose), the gauge art decode (the sprite setup writes no vertex colour; tp.exe holds no D4 filter constants as floats) and the visitor pick circle (pointer mapping, radius formula).
UI-942:
0x521e60is the particle creator, not a sound; the enter-park routine starts screen-space particle effect0x62over the key counter.docs/AUDIO.mdis corrected. The ID itself became[EXT:online-globe-audio]on main.
Determinism. No pin change: the branch adds no simulation state of its own (the use counters and their pin move came with wave3/saves).
Verification. See the PR description for the test, register, evidence and smoke runs.
Queue floors above the grass and stray queue cells (October 16, 2026)#
Queue models stand on the drawn ground (PATH-015 narrowed): each vertex of a queue model is now raised by the ground under it (the landscape sampler over the cell's own diagonal,
0x4527F0) plus the path tiles' small lift, instead of the whole model sitting at the cell's mean corner height. The plank floor the original's footage shows under a queue was hidden by the grass, and on a sloped cell the posts sank into it.Stray queue cells can be removed: a queue cell that no ride's queue reaches (a piece an older save left) is now taken by Backspace (
[EXT:queue-backtrack]) and by the remove tool, alone and without a refund, as the original'sClearCell(0x5367A0) clears one queue cell. Before, both found no owning ride and left the cell.The native queue smoke now presses Backspace over the laid queue's last cell through the HUD, and its site search skips guest-grid cells outside the level's heightfield.
Queue rules: condemned rides, closed parks, edited coasters and the queue room from tp.exe (October 16, 2026)#
Four queue items were settled in tp.exe, read via REA:
Broken versus condemned (QUEUE-019 retired):
0x4E14E0reads the life gauge (fld [ride+0x48],__ftol) and sets state 1 (broken) for a nonzero low byte, state 4 (condemned) otherwise;0x4E0E60runs the head step for states 1, 2 and 4 alike, writing open word 0 and VAR_RIDECLOSED 1, and a queued guest's move-up holds only in state 1 (0x4E0370). The queue bridge now mirrors the life gauge and keeps state 4 apart, so behind a condemned ride's dismissed head the guests walk on.A closed park (GUEST-011 narrowed):
0x519EF0only closes the openable objects (0x4DF300); a closed ride's admission (0x4E1220) runs only the head step0x4E0450, one head per update, and state 6 sends the guest home. OpenTPW's park-close pull-out is gone; a guest walking to a ride while the park is closed drops its target and goes to state 6 (0x4FFEB9, "The park has closed underneath me").An edited coaster (COAST-024 retired): the counts test
0x441970is called only by0x4DD920,0x4DE1F0,0x4DF290,0x4DF390,0x4DF8F0,0x4DFE30,0x4E0050and0x4FFFF0, never by the join (0x4FFBC0) or the admission (0x4E1220). The editing flag (0x790FEC, set through0x430AC0by0x447520) now joins the ride's acceptance; an open ride whose coaster refuses guests still calls its head forward, and queued guests leave through state 11.The queue room (QUEUE-005 narrowed):
0x501390dismisses only guests beyond the room (position ≥ 4 × cells, not in state 14); OpenTPW no longer re-walks the guests that stay, which is left to state 11 (0x501160).
The determinism pin is unchanged (0x09894103FAFB8D45). The ride snapshot gains an optional Condemned flag (valid only with BrokenDown, hashed only while set); older saves load as state 1. Verified with 4547 tests passing without game data (550 skipped), 4988 with it (109 skipped), and all five native smokes.
Still open: a guest whose cell left the queue still leaves Confused, Angry is chosen by guest id rather than thing id (WALK-010), event 6 (a debug-only ring) and the dismissal sound; the entrance gate's variable 1 at the booth (0x51A290), AdmitPerson's refusal at a closed ride (0x4E0900), whether shops carry the openable flag, and state 10's twelfth-update call to 0x4FD570 (now GUEST-018: with the park open the handler counts +0x2C and calls it every twelfth update).
Research lab bars and the WCT chroma scales (October 16, 2026)#
The research lab's bars at the right end of each row were drawn as a black cell with white stripes: the row drew only the fluid (res_fluid), whose idle frame is the empty black fluid, and not the tube (res_pipe, root pipe) that frames it in the original. Each category control of the table at file offset 0x35299c holds both models; the tube is now drawn over the fluid, 17 units below the panel's top.
The tube's rects are the table's own: it holds five pipe children at x 1497..1804, each 17 units under its panel's top (y 175..294, 335..455, 496..615, 657..776, 818..937), and each row now draws its own rect. The fluid still shows its empty black frame (with the white stripe) while a row's research rate is zero, as the original's idle rows do (video 34:30: two running rows are green and bubbling, the idle ones black with the stripe between the orange caps).
The tube showed a second, older fault: yellow-green caps where the original's are orange. The wavelet texture header lists two chroma scales, and the decoder gave the first chroma plane the first short and the second plane the second. The planes take them crosswise, so saturated reds and oranges had decoded as yellow-greens (muted art barely changed, which hid it). With the scales crosswise, pipe.wct has orange caps and ridestatbar.wct starts red-orange and runs to green, as the video shows (UI-106 retired: its "decode difference" was this). The video-read gauge ramp (UI-046) stays until the sprite itself is drawn.
The assignment is settled in tp.exe: the texture loader (0x564e20) pushes the header's third short as the first chroma scale argument and the second short as the second, and the decoder (0x593ab0, and its twin for the other header type, 0x595920) applies the first to the plane its colour conversion multiplies by 1.772 (Cb) and the second to the plane it multiplies by 1.402 (Cr). A census of the retail data finds the two chroma shorts equal in 6280 of 8375 WAD textures and in all 41 loose ones (so most of the corpus is untouched) and different in the other 2095, among them most UI button art (44 / 33).
Of the 22 originally pinned corpus textures only one changed (Sp_Botplate1b.wct, whose two scales differ); its pin was re-recorded, and three textures with differing scales (pipe, b_1person, ridestatbar) are pinned now. The synthetic pins are unchanged with their chroma pairs swapped, which shows the plane to header mapping is all that moved. New tests decode the cap and the bar's two ends.
Retired IDs read from plain docs prose (October 16, 2026)#
tools/fidelity_register.py recorded a retired or reserved ID only when a docs table row keyed it or prose cited it as APPROX:ID. Many docs retire IDs in plain words instead (docs/TRACKS.md: "Retired with a code change: …", "… retired October 14"), so tools/fidelity_retired.txt had no TRACK entries at all and a retired TRACK number could have been declared again with another meaning. The register now also reads a bounded prose form: an ID list directly before "retired" (with an optional is/are/was/were), or directly after a "Retired …:" lead. List items are full IDs or bare numbers that take the prefix of the full ID before them, joined by commas and "and"; parentheticals are skipped, and anything else between the list and the word (such as "narrowed" or "collided with") does not match; negated, conditional and questioned claims ("Not retired:", "Retired once …:", "Is … retired?") are skipped. The committed list grew by 83 IDs across 19 areas, among them 13 TRACK IDs; the tools test suite covers the accepted and the rejected phrasings.
Ride, shop and sideshow settings (October 16, 2026)#
The object windows' settings read in tp.exe and built (RIDES-033, QUEUE-011 and WALK-001 retired, UI-024 narrowed):
Ride settings apply when the window closes or steps to another object, as the original's apply
0x4af440does (run by the base window procedure0x48d200on message 0x14 and by the arrows):SetSpeed0x4dd6e0writes the script's bias word through0x55a300, capacity and duration follow, duration only for a type with a duration unit. Loaded values are clamped to the slider range (0x66b088).Upgrade completion writes speed, capacity (through
0x4dd7f0) and duration from the level's Init values when above 0 and sets the state of repair to 100 (0x4df8f0); some shipped sideshows now start at the clamped capacity.Shops get the 3-step quality slider with its lamps and the special ingredient amount 0..100 for ingredient types 1..4 (
0x4b06d2,0x4e2200), per object or for the whole type (0x4b0aa0,0x4b0ae0). A balloon's life now follows the shop's own quality (0x004FE615; ECON-044 narrowed). Original saves importmAmountOfSpecialIngredient,mQualityOfGoodsand the sideshow's win bytemChanceOfWinning(loader0x4dcd29..0x4dcdc1; SAVE-006 narrowed).Sideshows get the win-chance slider and the prize box; shop and sideshow rows take their labels from the original label routines (three UIStrings values were one entry low). The typed price editor stays an extension, limited to 0..500.
New optional, validated save fields: the shop's quality and ingredient amount, and the runtime's ride speed (a full dword), capacity and duration (bytes).
Ride window gauges, the variable box and the buy list from tp.exe (October 16, 2026)#
The ride, shop and sideshow windows, read in tp.exe via REA:
Gauge values (UI-028 retired): excitement (
0x4e0560, with its sideshow, ride and coaster branches), reliability (0x4df640,0x4df450), local happiness (0x4cd880) and winners (0x4e1f20) are computed as tp.exe does,(byte << 10) / 100with x87 truncation and& 0xFFwhere the original masks.The gauge bar (UI-046 narrowed): values range 0..1024 (the setter's clamp
0x66d885), the bar is clipped at u = value/1024 onridestatbar.wct(0x477ff0,0x478400) and inset 10 units top and bottom (0x485e30).The settings controls (UI-024 narrowed): the buy window's capacity and wear fields; the variable box repeats while held (
0x668dd9: 200 ms delay, 50 ms interval); a slider's default track is its own rectangle (0x66ac00); loaded values always reach the window.The buy list lists only available (researched) types, as its filler
0x4aaf70does, instead of listing locked ones and refusing them on click.Leaving the ride view (UI-095 narrowed): the exit test (
0x42a340) and the yaw rule from the map cell's link byte (0x42a1d0).The ride view camera (UI-094 narrowed): the look rotation signs are tp.exe's (
0x46f350,0x46f650), and the pointer reference is the full-screen park window (0x489f50).
The pinned run hash and saves are unchanged. Verified with 4856 tests passing without game data (569 skipped), 5315 with it (110 skipped), and all five native smokes.
New register IDs split out of the open parts: UI-104 (the Move tool, mode 0x3b), UI-105 (the golden-ticket rows of the buy list) and UI-106 (the gauge art ridestatbar.wct decoding without the red end; the video-read colours stay UI-046). The customer and winner histories are covered by the 30-day rings of ECON-057; the satisfaction history stays in UI-024 and UI-905. The ride view's field of view is UI-101's difference (UI-094 cross-references it).
Still open: the original park camera pose (0x42b1c0) and the projection scales (0x5781d0).
Rides and compatibility leftovers: held clips, the waitanim clock and the TPI palette from tp.exe and Theme Park Inc (October 16, 2026)#
A pass over the remaining ride and compatibility approximations, read in tp.exe and the no-CD Theme Park Inc executable via REA:
Held clips (RIDES-003 retired): at a clip's end
0x4735D0tests the instance flags (0x47376E): clear loops or ends as AnimID 14, flag 0x10 alone holds the last frame as AnimID 12 (0x4737D7), flag 0x8 stops.0x473e30, called from the creator0x463060, sets 0x10 when an object has only AnimID 0 clips (88 of the 274 catalog entries), and only the advisor loader sets 0x8. Built as a hold route with an optional savedHeldflag.The waitanim clock (RIDES-044 retired): WAITANIM_CH (
0x55320A) adds the clock to max(ret − 300, 300) as an unsigned wrapping sum, and none of the 308 Theme Park World or 282 Theme Park Inc scripts issues it, so the clock origin is unobservable (pinned by a corpus test). The per-park clock origin stays labelled[EXT:park-clock-origin]at its code site; nothing original remains of the ID.Theme Park Inc palette 0x24 (COMPAT-014 retired): the converter at TPI
0x6B7000reads it as R, G, B with alpha 0xFF and no colour key (0x6B7211,0x6B73F0); only codes 0x24 and 0x2A are handled, so the one0x2Dpalette has no original reading: its A1R5G5B5 decode is OpenTPW's choice,[EXT:fsh-0x2d-palette](COMPAT-015 closed).Narrowed: the End vehicle's GameType gate (
0x503d40: Instant Action at once, online visits never, Full Simulation once every online park record is done, then advisor message 0xA7; RIDES-019, whose Theme Park Inc part, the Bus from setup, is now[EXT:tpi-bus-from-setup]), RIDES-032 (no call through+0x140), TOUR-008 (no reader of the MESHSHADOW bit), RIDES-040 (the zero-anchor scene records), COMPAT-006 (the shipped fonts carry only legacykerntables), COMPAT-007 (the gate lines and the secret name's flag,0x4E2950,0x4053C0), COMPAT-018 (the BILZ inflate step0x6193D0).Closed as OpenTPW choices: COMPAT-019, the Theme Park Inc viewer always draws the drained lake because it runs no missions (
[EXT:tpi-lake-drained]).
The pinned run hash is unchanged; the saved animator state gains an optional Held flag (valid only with Ended). Verified with the full suite (one generated-doc row fixed afterwards, with the affected tests rerun) and the native smokes.
Still open: the record list and text behind End's advisor message, Theme Park Inc's local-coordinate model placement, the shadow batcher 0x581DB0, whether classic Uniscribe applies kern tables, the listeners of event 0x15, the PC wavelet inverse transform, and a native-resolution capture for COMPAT-004.
Rides and tours sweep: closed new rides, walk-off times, animated textures and the tour pose from tp.exe (October 16, 2026)#
A sweep over the ride and tour approximations, read in tp.exe via REA:
New queue rides start closed (RIDES-015 retired): the constructor sets the open word to 1 (
0x4DB3B9), then for a ride with a queue logs "Object %d Closing", clears it and writes VAR_RIDECLOSED = 1 (0x4DB712–0x4DB779), so the player opens it.Walk-off times (TOUR-007 retired):
0x556F40stores the WALKON slot and0x5571A0computes ftol(distance between nodes u3 and u4) × 100 ms, 100 ms for 0; the slot is kept per rider as an optionalWalkSlotspart. The two shipped tours stay at 1000 ms (their nodes are 10 apart).The tour's angle (TOUR-003 retired): TOUR 1 reads the instance angle at
+0x10(0x554385), written by the constructor (0x4DB0CD) and loaded from the save'smAngle(0x4DB7D0), before any clip runs.Animated textures (RIDES-035 retired): the draw
0x580530and the per-slot bind0x57A420bind the slot's current frame only while the ANIMATINGTEXTURES option (option 4,0x44D9CD) is on; the Low preset shows frame 0.Narrowed: the clip end's AnimID 14 (
0x4735D0, RIDES-003), the object base height as (lowest + highest terrain vertex) / 2 over the typed footprint corners (0x466D70,0x469930, RIDES-014), the End vehicle's creation by0x516B00from the lab handler0x503D40(RIDES-019), the GETTIME clock (0x551F1E, RIDES-044), the tour pose on the engine's 4096-entry sine table (0x4708D0, TOUR-008), and RIDES-018 and RIDES-032.Design choices, approved by the user: RIDES-025 is closed (
[EXT:bonus-name-fallback]), RIDES-023 is closed ([EXT:ride-cycle-counter]:CompletedCyclesis OpenTPW's own diagnostic counter), TOUR-002 is closed ([EXT:tour-thrown-riders-released]: a deliberate fix of the original's bug where thrown-off riders are never released), and RIDES-021's ground-plane pick and RIDES-044's per-park clock origin are split out ([EXT:build-cursor-ground-plane],[EXT:park-clock-origin]); what is still unread stays open.New ID: TOUR-011 registers WALKON's own walk-on time and the WALKOFF action-2 effect.
The pinned run hash is unchanged. Layout saves gain an optional BaseHeightRule (older saves keep the old cell-mean height) and guest snapshots an optional WalkSlots. Verified with 4586 tests passing without game data, 5038 with it, and all five native smokes.
Still open: the footprint cell model (@, Q, #, +, track ends) behind RIDES-011, RIDES-031 and TOUR-005, the walk-on time of WALKON (ftol(dist(u1, u2)) × 100) and the WALKOFF beam effect (TOUR-011), the ground flatten (0x467030), who sets the instance stop and hold flags, and the build cursor's mouse-to-cell pick.
Saves: the World block layout, visit counts and ride settings from tp.exe (October 16, 2026)#
Four save approximations narrowed, read in tp.exe via REA:
SAVE-006 narrowed: the attraction loader reads the operating capacity into the byte
+0x5D(0x4DCC6C), the duration into the byte+0x5C(0x4DCC92) and the speed into the dword+0x58(0x4DCCB8), raw, with no clamp.Level.ImportOriginalRideSettingstakes the words that differ from the tier's values into the ride runtime (a word of 0 is left alone); the shipped Jungle save changes nothing. Still not imported: the saved open word, the sign lines and unclaimed staff claims.SAVE-005 narrowed: the challenge loss count (
+0x24) and the offered word (+0x20) are read only by the save serializer and loader, so there is nothing to import. Only a saved slot list that does not match the level's challenges remains.SAVE-002 narrowed: shop, sideshow and win counts (
0x4FB530) and the arrival stampmArrivalDate(+0x1D4,0x4FD950) are imported, which gives an imported park guest its time in park. A finished visit is sorted by the type'sWhichUIType(use routine0x4FD9B1): rides, shops and sideshows have their own counters, where OpenTPW counted every visit as a ride. GUEST-005's wording drops the+0x1D0 += 1of a won sideshow, since that counter is now modelled. Still open: guests in states 11 to 17, the arrival index, admission flags, the event ring and queue links.SAVE-011 narrowed: the World loader
0x5179C0is traced (64 variable bytes, the control manager, the macro AI, 0x4000 cells and the thing list; each cell is a status byte plus map, track and effects records chosen by status bits 0 to 2). The Jungle Easymode World measures to its exact delimiter offset without searching forWRLD. A Coasters block with a coaster and synthetic payloads still fall back to the delimiter search.
Behaviour change: shop and sideshow visits no longer raise a guest's ride count. The park resume snapshot gains the optional ShopsVisited, SideshowsVisited and SideshowsWon guest fields; older saves load them as 0.
The pinned run hash moves (docs/DETERMINISM.md): 0xDB3EA9A7AF384B5B to 0x0487112FF9FF20DB, from the ride/shop/sideshow split and the three hashed counters.
Sign and compatibility design choices labelled as extensions (October 16, 2026)#
The user approved relabelling these sign and graphics choices as OpenTPW extensions. Behaviour is unchanged; only labels and text moved.
COMPAT-009 retired: the 16 sub-scanline unhinted coverage of the TrueType rasterizer is
[EXT:sign-text-antialias].COMPAT-001 narrowed: the reduced 256-wide mask is
[EXT:sign-text-mask-width]; the lower half of the original DIB stays open.COMPAT-002 narrowed: fractional advances are
[EXT:sign-fractional-advance]; the Mac GDI layer's width rounding stays open.COMPAT-003 narrowed: OpenTPW glyph coverage and double-precision blur sums are
[EXT:sign-coverage-precision]; the upsampling of relief strips stays open.COMPAT-010 narrowed: the Veldrid sampler choice is
[EXT:texture-filter-samplers]; the option stored at[0x785898]and the engine-flag path stay open.COMPAT-032 narrowed: alpha test and blend without depth sorting is
[EXT:sign-face-alpha-blend]; the state-word mapping of the original texture alpha stays open.
Smoke load waits leave the frame budget (October 16, 2026)#
The native front-end smoke is paced at 60 Hz, so its 3000-frame budget is effectively a wall-clock budget. Under heavy machine load (several full test suites in parallel) the asynchronous loads it waits for, such as the Instant Action park and the texture-pack switches, took long enough to exhaust it ("stuck at 'Instant Action park loads'", once at 'park head pack completes').
Load waits (park load, jungle park construction, park head pack, texture pack on/off and the optional real-pack timing) now go through one
WaitForLoadstep, like the advisor speech wait: their frames are counted separately and no longer count against the step budget.A real hang still fails: each wait has its own wall-clock allowance of 180 s, and the message names the step and the time and frames spent.
No functional assertion changed. The sandbox, Theme Park Inc and autorun smokes have no asynchronous waits under a frame budget and are unchanged.
Staff walks, claims, prank advice and price statistics from tp.exe (October 16, 2026)#
Four staff and guest items were built from tp.exe, read via REA; each is narrowed, none could be fully retired:
Staff walk the guests' original walk (ECON-022 narrowed, ECON-054 narrowed to the headless economy): staff use the original SetDest and the shared walk step (
0x4FA530/0x4FA5F0→0x510100, then0x4FA2A0→0x50F3B0) with separation over nearby guests and staff; the walk mask is 1 on the strike walk (0x506A40, cleared at0x5056E0) and on the guard's second route to the booth (0x4D6977). A claim records its turn (0x4E01F0) and lapses only after 100 turns once its claimant no longer targets the object (0x4E0220); the mechanics' ride search uses one cursor on the mechanic HQ, walking the object list newest first (0x4DAA90); selling the rest area a member rests in sends them to the nearest other one (0x504C70, unlinked by0x519DC0first). The toilet and rest searches now meet objects newest first, as the original's object list holds them. Staff imported from an original save use the same walk: the saved destination is routed again through it (0x4FA5F0), the saved base, purpose and previous speeds are kept, and the claim of an imported job is taken again with the turn the save recorded (+0x60) when the member is placed, so it lapses on the original's 100-turn rule.Price test statistics and walk-aways (GUEST-003 narrowed): the price test records the guest's view of the price in the park's perception statistics, paid or refused (
0x4FDE50→0x4C74B0; 20 rings of 50 values from0x4CE9E0), as min(100, (W+5)·10 − price·10). A refusal raises the ride's lifetime and daily walk-away counts (0x4E1670), and day message0xBrolls the daily count into a 30-day ring (0x4DD320, sent by the calendar0x4F8260).mNumWalkAwaysis imported from original saves (the loader reads it back at0x4DC12B; the earlier note that it is only written means nothing else reads the field; SAVE-006 narrowed). The ring is the one daily ring OpenTPW keeps (ECON-057 narrowed to the five rings it does not keep, and nothing reads the ring yet).Prank advice and the guard's set-down (GUEST-007 narrowed): the prank message is delivered inside the poster's call (
0x40FB10); the advisor queues advice0x7D–0x7Fchosen by the prankster's thing id modulo 3 (0x4FF2EA), scored by0x59F360/70/80 from the optional PrankSbomb, PrankLitter and PrankBalloon keys of Advisor.sam. The guard sets a caught guest at the cell centre and uses bit 0 of its world draw to pick the way out (0x4FEBC1→0x4D86D0).The hire window's walking figure (UI-082 narrowed): the portrait box shows the role's walk slot, facing 5, frames 0–7 (
0x49BA00→0x475A10, script0x74F758); register 8 set to 8.0 by0x4755D0is the draw scale, not an animation speed.
The determinism pin is unchanged; a set-down guest's drawn side joins the hash only while it is set. New optional save fields (walk-away counts, claim turns, the mechanic HQ cursor, price statistics, a staff walk's original-walk state, a guest's drawn exit side) are validated; older saves load, and their staff walks restore as route walks. Verified with 4467 tests passing without game data, 4909 with it, and all five native smokes.
Still open: the dismissal sound for thing ids with low bits 0 (guest ids are not thing ids, WALK-010); victim order on a cell (WALK-003); the walk to the drawn side's gate cell (GUEST-010, WALK-004); the screen-sprite pixel scale of the hire figure; entertainer animation, guard list order, access cells, striker lanes, the mechanics' advice 0x46 (0x4DA672), separation cell order and the stranded stamp +0x198 (0x4FA770).
The terrain ray pick and the visitor pick gate from tp.exe (October 16, 2026)#
Cursor and visitor picking, read in tp.exe via REA:
The terrain ray pick (RIDES-021 narrowed):
TerrainRayPickfollows0x45bf90, testing each cell's two triangle planes (split by cell-word bit 0x2) and taking the nearest hit that lies inside the cell's square; the hovered cell is the hit divided by the cell size (0x45d560), handed by the click command0x46c5d0to0x524790. On original levels the build cursor,Level.TryGetGridCell,TryGetPlacementPositionandTryProjectCelluse it; the generic sandbox keeps the ground plane ([EXT:build-cursor-ground-plane]).The visitor pick gate (UI-930 narrowed): a visitor is picked only with Shift alone and no locator panel out, or with the visitor locator panel out and no modifier (
0x487013), and only when standing in the hovered cell or one of its eight neighbours (0x532bd0, offset table0x81ED40). A plain left click on a visitor no longer selects them, as in the original; object selection is suppressed in those states, because the hover handler0x486d90never combines visitor and object picking.Object selection (UI-027 narrowed, read): the ray's object hit
[0x7a1cd4]selects nothing (only the camera block reads it); objects are selected through the pick sprite pass0x5890e0(sprites flagged 0x200) and the 3 × 3 cell owner lookup0x532bd0, then the click dispatcher0x4879d0opens the object window0x4b6080.The per-visitor window (UI-910) is described: handler
0x4b7720, refresh0x4b72a0, controls0x3720–0x3738, layout0x7575e0.
Presentation and input only: the pinned run hash and saves are unchanged.
Still open: the object half of the nearest hit (0x45cdc0 → 0x45d090), keeping the previous hit when the ray finds nothing, the pick sprites' positions and sizes (word +0x114, 0x475ef0), the visitor pick circle (radius² 0.0002 × (w² + h²) in clip units), and building the per-visitor window.
Theme Park Inc rides play in Theme Park World through a data mod (October 16, 2026)#
The cross-edition objects extension and the content roots now meet: a data mod that lists Theme Park Inc archives (two small text files, nothing of the install copied) puts them into a Theme Park World park, where they are listed, priced, researched, bought, placed, run and saved.
Loading (
[EXT:mods],[EXT:cross-edition-objects]): an input that the manifest declares astheme-park-incand thatGameEditions.Detectrecognises is registered as a sound root while the extension is on, so the objects'EVENTids play from the install's own banks; the economy catalogue (EconomyObjectCatalog) adds the mod's objects after the game's, with the archive's own price, research and group, theInfo.Idofobjects.jsonand its English name; the shared textures of such an object come from the install's world folder it was authored in (levels/science/sharetex), not from the park's theme. Content roots are made once per mod digest, folder and input, so cached catalogues keep the file system the sound roots are registered for. With no mod active none of this runs and the pinned digests are unchanged.Textures of another file system: bonus, tour and track objects decoded every non-game texture as
.wct;Texture.DecodeImage(fileSystem, path)now follows the extension (.wct,.fsh, stb images such as the.tgafiles inside Theme Park Inc's WADs). The native smoke caught this (WCT dimensions must be positive).Litter bins: a guest's litter sets the bin script's variable at index 0, as the original does (tp.exe
0x4FFF20through0x55A0B0); Theme Park World's bins name itVAR_TRIGGER, Theme Park Inc'sVAR_USE. Same behaviour for Theme Park World's four bins.The Theme Park Inc only opcodes: none of the ride, shop or sideshow scripts has
WAITABSorMULT; they sit in the scenery obstacles and in the litter bin, behind itsVAR_BOMB. The test drives the bin's variable and the VM runsWAITABSinside a placed object. Variables only Theme Park Inc's own engine writes (VAR_FPBYPASSin 69 scripts,VAR_SPEED,VAR_SPECIAL, the bin's prank and fire variables, ...) stay 0:[APPROX:RIDES-045].Command line:
--enable-mod <id>and--mod-input <mod id>:<input id>=<folder>(for one run, also in smoke tests).Tests and smokes:
TpiRidesWiringTests(synthetic) andTpiRidesEndToEndTests(overOPENTPW_TPI_PATHandOPENTPW_GAME_PATH: the example mod generated at test time, every archive of the install, catalogue, economy, buy list, textures, sound routes, the gate's guests boarding a Theme Park Inc ride in two parks, save records).scripts/smoke-tpi-rides.shruns the sandbox smoke (it builds the mod's objects) and the park-resume smoke pair whose fixture ride is the mod's Turban Bounce, built through the HUD, saved and restored (OPENTPW_SMOKE_MODS=1).Two tests that failed on an extracted install, explained:
ThemeParkIncKeyedFramesUseItsEditionSpecificTextureDecoderstook the folder it was given as the Data folder (an extracted CD hasDatainside it; the other original-data tests find it), andReportFixedTpwKeyCoverageSeparatelyFromDynamicLoanAndChallengeTablespinned the size of the repository's own test schema (152 keys, 167 after the staff and queue rules), which has nothing to do with the install; it now pins a floor.
How to make such a mod: docs/MODS.md, "Making a Theme Park Inc rides mod".
The tour smoke closes the ride before it waits for the release (October 16, 2026)#
The jungle sandbox smoke had outgrown its 180 s watchdog. Its tour stage waited until Jurassic Tours had released every rider while the ride stayed open. A state dump of the controller and the script showed nothing stuck: the single car flew, returned, landed, was unloaded and left again on a steady cycle of about 75 s (a 39 s flight, then the return, staging, approach and loading). But a guest was already waiting in VAR_LETMEON at every landing, so the car always left with somebody aboard and "everybody released" never held. Five departures in 400 s matches the runs that looked stuck. The controller follows tp.exe's TOUR 11 rule (0x0055DD80): the script decides when to leave, and TourRide.RSE loads until the car is full or ten seconds pass without a boarding.
The stage now closes the ride once the read-back car is airborne, as a player would. TOUR 14 0 ends the flight, the car lands, the script unloads it and boards nobody, and the queue is sent away. It never closes while a car stands docked after TOUR 11 but before lift-off, because the original leaves such a car standing with its riders (docs/TOURS.md). The tour stage now ends about 20 s after the close, and the whole jungle smoke runs in about 85 s. A failure in this stage now reports the full controller and script state.
A failed kart or water track preview now also reports what stopped it. (The kart step had failed on main because its site search accepted unowned land; #238 fixed that site search in parallel.)
Movie video through tp.exe's own TQI decoder (October 16, 2026)#
Format round 3. The TQI video decoder now reproduces the PC movie player instead of an FFmpeg-fitted IDCT:
Matrix
0x6710C0: each MPEG-1 weight times(float)((107 − q) / 16)times 2^16, truncated, times the Q13 AAN prescale with half-up rounding;M[0] = 2^16.Block decoder
0x6747D0: coefficients go to the transposed scan position0xFBB5B0and use the matrix entry there, so 21 asymmetric weights apply to the transposed frequency.Transform passes
0x67673C/0x676965: integer AAN with doubled Q31 rotations, the odd part in double precision rounded half to even by the 1.5 · 2^52 trick, a zero shortcut in the first pass, and>> 17with no bias, so samples are 7-bit.Colour
0x670350: the packed three-field tables and the channel tables at the library's default brightness 100. Neutral white is (241, 239, 241), so the original never shows full white.
Verification is in the x86 oracle, X26:
tpw-exe-tqi-matrixagrees for every quantiser.tpw-exe-tqi-transform-passagrees on 500 coefficient rows.Outside the suite, the original block decoder was run per macroblock over 51 frames sampled from all nine movies. It matched in every sample but one, a half-way rounding where Unicorn's x87 is not IEEE-exact.
No colour field leaves its table over the 1.06 billion pixels of the nine movies. TqiFrame now holds the 7-bit samples; the pinned plane hashes, the synthetic decode tests and the PNG export expectations moved with it.
Still assumed: the FPU precision movies run at (53-bit; 64-bit would differ only in rare ties) and the display surface's packing. Docs: TGQ-MOVIES.md, FORMAT-BACKLOG.md, README format table, ORACLE.md.
Track pieces: arm masks, water clips and the add-on reading from tp.exe (October 16, 2026)#
Three track items were settled in tp.exe, read via REA:
The circuit walk posts no message (TRACK-006 retired, OpenTPW already matched): the walk
0x52A970and the walk sites of the tool handler0x524960never call the message builder0x59B590. The four ids the register cited are tool help, not walk messages:0xCCis the kart/water tool's help for a click with no line start (0x526D41, reached only after a Ctrl-held closing click with no queue to follow, UI-031), and0xB8,0xD6and0x151belong to the path and queue tools (0x5272F5,0x527351,0x527620).Arm masks and water clips (TRACK-018 narrowed): the water and kart instancers
0x522D50/0x522B90pass the low byte of the piece table's arm entry (0x7634E0) to0x463060→0x44B140, which hides every dummy node whose third word shares a bit with it, so a straight shows no end caps and a tee keeps only its missing arm's cap. BUMP 17 (0x5549ED) compares its value with the script word+0xE6(−1 on attach0x558C71and on load0x559F29) and otherwise walks the pieces from the exit along the flow (0x52A490) and from the entry against it (0x52A700), triggering clip 5 or 12 with flags 7 on each; the placement walk (0x524D0A) starts the pieces on a valid circuit and the track-line walk (0x526F02) stops them; a piece chosen again gets a new instance with no clip (0x53AFA0). The space kart script issues BUMP 17 too.Track add-ons (TRACK-008 narrowed, read only): placement
0x528A70needs footprint codes0xB/0x10on kart or water track and writes cell flag0x10(0x53A510), the walk builds sections of kind 12/13 (0x52AC68), and the vehicle hook0x548CA5→0x548E80(the Space Racers Teleport,0xDAC) hides a vehicle within ±0x4B0of the first tile. Nothing was built, because where the original sells a ride's add-ons and the cell writes of0x532FC0are not traced yet.
Presentation only: the water command is neither saved nor hashed (a restore resets it to −1 as the original's load does), the piece clips run on a presentation clock, and the determinism pin is unchanged. Verified with 4457 tests passing without game data, 4904 with it, and all five native smokes.
Still open: the edit sub-modes 0xE/0x13 (0x526BD0), texture-frame piece clips (the Crypt Karts' bridge fires), the add-ons' sale and placement writes, and the backward piece walk that starts one cell off the grid at rotation 90 (related to TRACK-005).
Track tiles, the station line and coaster readings from tp.exe (October 16, 2026)#
Read in tp.exe via REA:
Track tiles (TRACK-003 retired): the instancers (
0x522B90,0x522D50) and the mesh creation (0x463060->0x466F90) turn a piece about its corner and offset it by two cells, which is the tile turning about its centre. The instance height is0x466D70's midrange over the tile's 3 x 3 landscape vertices, and the terrain mode of the vehicle sampler reads the landscape triangle sampler0x4527F0at the probe instead of a cell mean (TRACK-001 narrowed).The kart and water station line (TRACK-005, TRACK-002 narrowed): the station is the line of
0x52A1A0from the attraction cell, two tiles on the footprint's rows 1 and 2 across the heading; the exit and the piece walks0x52A490and0x52A700start where it says, and the controller reference (0x529E10->0x545890) is the cell between the two tiles. TRACK-005 now covers only the line modes0x80and0x83; TRACK-002 only the other readers of the object height map.Coaster readings (text only): COAST-004 (candidate readers of the collision list), COAST-011 (the option table has no addressed entry), COAST-014 (the PC sampler rounds its sine indices), COAST-015 (the pose clamp write-back is what the built parameters already are), COAST-029 (the PC rating pass only sets the winch mark), COAST-032 (
DDSCL_FPUSETUPwithoutFPUPRESERVE) and TRACK-026 (0x44B410is ADDHEAD's PC twin) are narrowed.Design choice, approved by the user:
[EXT:legacy-station-layout]. A ride restored from a park saved before keeps its old station layout through the optionalStationLayouton the controller save (same pattern as[EXT:legacy-kart-save]).
The pinned run hash is unchanged (0x205523C08061A05D, docs/DETERMINISM.md): the fixed run builds no track. Saves gain only the optional StationLayout field; older saves load unchanged. Verified with the full test run with and without the game data and the native smokes.
Still open: the edit sub-modes 0xE and 0x13 inside 0x524960 (TRACK-018), and the pylon-model posing that COAST-026, COAST-033 and COAST-034 depend on.
Tracks and coasters sweep: loop pairs, demolition refunds, the circuit walker and junction links from tp.exe (October 16, 2026)#
A sweep over the track and coaster approximations, read in tp.exe via REA; seven are narrowed with behaviour changes:
The loop pair (COAST-035): the loop button
0x442cd0and its key0x444650write0x79c664= 2 (the handlers of a selected pylon,0x442d10and0x447a10, also start the mode and have no counterpart);0x4352bfdecrements it per placed pylon and0x4446ddzeroes it on mode exit, and0x436230marks the cursor node with flag0x80while it is 2, so OpenTPW's ghost now carries the first-of-pair mark.The loop button (COAST-028) is enabled only at ride level 1 or more (
0x4980D6) and hidden at level 0 (0x49880F).Demolition refunds (TRACK-007): each tile laid for the ride refunds track cell cost × the ride's scrap percentage / 100 (
0x527EE0, unsigned0x53B5FE), followed for a type with a queue by one charge of 2 × cost × percentage / 100 (signed0x528157); the ClearCell refund conditions0x53B54A..0x53B57Fare decoded.The circuit walker (TRACK-014) is
0x52A970: corners takemask ^ opposite(heading)and rewrite+0xD, other cells keep their heading, steps are 0-based and written in both modes, and the failures are the original's. The walk's step limit, which the original does not have, is now[EXT:track-walk-step-limit]; the step number's readers (the edit sub-modes) stay open.Junction links (TRACK-004): the line op
0x82(0x539670) gives a tile with two arms or fewer the line's drawing direction and ORs it into a tile with more, and station tiles take the rotation heading (0x524F1E).Bridges (TRACK-010): the shape test
0x538AA4..0x538B05is "two arms or fewer and not a corner", so ends and armless tiles bridge too.The bump module tick (TRACK-019) runs once per substep before every ride's script step (
0x54F55F), and the drop-in overlap test walks the whole module pool (0x54A040). Nothing of TRACK-019 stays open: the two remaining parts are design choices,[EXT:bump-foreign-object-forget](the original keeps a stale pointer) and[EXT:bump-pre-shared-save-order](older saves), so the ID is retired.Demolition flags: the replays run with
0x81B46C= 1 (it is 0 only around the station clear0x52F580and the walk0x530B70) and the queue flag0x81D7A8clear, so a tile another line still overlaps is cleared by the last line that visits it.
The pinned run hash is unchanged and saves are unchanged. Verified with 4583 tests passing without game data, 5031 with it, and all five native smokes.
Still open: the closing-target marks 0x200000 of 0x4360c0 and the link 0x43eb70 draws into the marked start; the walks from the station that limit demolition (0x530830, 0x530B70); the clear op's removal of a line's direction bits (0x5227F0); the type-25 walk; the map layer under bridges; and the tool's edit sub-modes.
The jungle smoke passes again: station line, off-grid projection, Totem cycle, rebuilt ride (October 16, 2026)#
The native jungle smoke (--load-original-level jungle --smoke-test) stopped at its water-track step after PR #265, and three later steps failed once that was fixed. One fix is in game code; the others bring smoke expectations up to date with recent merges.
Water and kart track step (stale expectation). The smoke still expected the station's first tile on the footprint anchor, the layout before PR #265 moved the station onto the line of tp.exe's
0x52A1A0. Re-read via REA: at rotation 0 the line runs from (x, y+1) to (x+2, y+1) of the attraction cell, the walk starts at (x, y+1) and the exit is (x+4, y+1) (0x52A1E1..0x52A204), which is whatTrackStation.FromPlacementbuilds. The code was right. The smoke now checks the layout against it and lays its circuit corners from the first station tile, asLevel.BuildDemoTrackRidealready did.Level.TryProjectCelloutside the object grid (code fix). The staff step scans the whole guest grid, which can be larger than the level's heightfield, and the off-map cell threw inModelHeightfield.GetCornerHeight. The method now returns false there. The HUD's track-ghost cost label projects a line's snapped end through the same method.Totem checks on a fresh cycle. When the guest phase finished mid-cycle, the ride checks re-armed on the cycle still playing and found its main clip over ten frames later. They now wait for that cycle to end.
The rebuilt economy object is opened. Since RIDES-015 was retired, a built ride with a queue starts closed (
0x4DB712). The smoke opened its first economy build but not the rebuild after the scrap check, so Crazy Ape, the jungle's only built ADDHEAD ride, never took riders and the isolated rider-head readback found no candidate.
The pinned run hash is unchanged. Verified with the full test run (5423 passed, 113 skipped) and the jungle native smoke (5075 frames, passed).
Whole walks, queue exits and the vehicle stop walk from tp.exe (October 16, 2026)#
Follow-up to the path and queue work, read in tp.exe via REA:
One destination per walk (WALK-004 retired): a guest walking to a ride (state 10) or out of the park (state 18) now sets one destination for the whole walk, as
0x4FFBC0→0x4FA530→0x4FA5F0→ SetDest0x510100(search0x511420, edge test0x4D8750, commit0x510510) and0x500A50(walk mask 1) do, instead of a fresh search from every cell.Leaving a queue (QUEUE-010, QUEUE-005): a guest leaving a queue stays where it stood (
0x5004AAwrites no position) until the state-6 handler0x4FEC90starts its next walk, and the original route search brings a guest whose cell left the queue back instead of sending it away Confused.The vehicle stop walk (ARRIVAL-001, WALK-008 narrowed): at vehicle status 1–3 a leaving guest walks to the vehicle's own stop cells (state 20,
0x500BD0,0x51AAD0, status gating0x51A760/0x51A9D0/0x51A690), and the arrival lanes walk like every guest.The guard's set-down (GUEST-010 narrowed) walks to the drawn side's gate cell (
0x4D86D0, walk mask 1).The M3 queue gate (GATE-006 narrowed) was re-enumerated over tp.exe's own walk (about 40 million walks): the per-cell time C moves from 9 to 27 updates with w₂ = 15, because the original reroutes short cornered walks around a neighbour's cell; long straight queues stay near 14 per cell.
Design choices, approved by the user: WALK-003's per-cell lists (
[EXT:guest-cell-lists]) and QUEUE-021's click at the back cell ([EXT:queue-click-at-back-cell]) are split out.
The pinned run hash moves (docs/DETERMINISM.md, 0x205523C08061A05D after merging the one world generator, #235, and the economy rings, #252; the walks alone gave 0x9DB7A7AAEA8D1CE2 on top of 0x7AED41D19433D4B2, the rings alone 0xC92A25B3D77EAE17). The stop walk's draws (0x500AD0, 0x500BD0: the cell pick and the two sub-cell bytes) come from the shared world generator in the original's order. Saves gain no fields; state 20 is a new accepted guest state, states 19 and 21 on the cell map carry no lane, and older saves load unchanged. A walk to the stop that ends stuck stays in state 20, as 0x5019F0 leaves it. Verified with the full test run with and without the game data and the five native smokes.
Still open: the queue tool's line writer and per-cell owner word (QUEUE-014, 0x532FC0, validator 0x535670), the avoid-walls corner branches (WALK-002) and the neighbour query order (WALK-003).
Arrival and save rules settled against tp.exe (October 15, 2026)#
Seventeen arrival and save approximations were checked again, item by item, in tp.exe (leads from an earlier REA survey, every address re-read):
The booth books the fee with the bank (
0x4ffade→0x4d0600): the guest's purse (+0x1A0) is never touched, as in the original (ARRIVAL-007 retired); the booth refuses an admission only at a bankrupt park, a closed one stopping visitors on their walk to it (next entry). The determinism hash moved to0x9AA9973FC2A6A5D6, and with the staff candidate draws and the guest walk to0x944788E41E278016(docs/DETERMINISM.md).Arrival groups keep a negative remainder after the cut (
0x4cf6e5), which every reader treats as 0 (ARRIVAL-004 retired), and a guest the booth sends to wait reruns the verdict N + 1 turns later (0x4ffa72,0x4ffb01; ARRIVAL-006 narrowed).The counts-test's track terms apply to the park points that size the arrival groups (
0x4dd9ad→0x441970; ARRIVAL-003 narrowed).SAVE-930 is OpenTPW's own layout checkpoint (
[EXT:tpi-layout-checkpoint]); thirteen arrival and save items are narrowed, among them the bus, seaplane or ferry by group size (0x4cf48c) and the coaster save block (0x437300,0x437b60).
Economy rules: bankruptcy, challenges, cell types, net worth and breakdowns (October 15, 2026)#
Economy rules read again in tp.exe and built:
Bankruptcy (ECON-030 narrowed): the bank acts once on message 2 (
0x4D02D0), skipped while a winning sequence shows;0x5168F0sets world state 4, breaks every attraction (VAR_BREAKSTAT = 1) and sets the gate's variable 0 to 2. State 4 skips the thing loop (0x516380) while the calendar, bank, staff pool and golden tickets run on; the park stays open, and the warnings at 3 and 5 months are gone (the bank only compares with 5).Challenges go to the message tube with Accept and Decline, which call AcceptChallenge and DeclineChallenge (
0x48E0F0actions0x1A/0x1B→0x4D2DF0/0x4D2EC0) for whichever offer is waiting.Cell types (ECON-050 narrowed): world init types each cell from the MAP and the terrain (
0x536490): cells without terrain become 7, 2 or 30, every cell without the fixed flag0x20gets the unowned flag0x40, which the level's land (Buy Land'sParkLand) clears inside the fence, and placement writes footprint types (0x528A70→0x5346D0).Park rating and net worth: the visitor term counts guests on cell types 0/1/3/9/10, capped at 1000 (
0x4CCEB0, ECON-027 retired); owned cells add 2/3/5/6/1/50 points (0x4C7DB0) over the land Buy Land maintains, so the net worth and the loans' credit test count only owned land, and the net worth is cached as the original does (ECON-026 narrowed: the fence's hoardings are not counted).Loans (ECON-007 retired): the Available tab lists an offer that is not bought and passed the stored credit test, amount ≤ net worth − bought loans' remaining instalments (
0x4D06B0), run when the dialog opens or a tab is selected; the stored tests are imported from original saves (SAVE-008 narrowed). The park save gains the optionalAvailableLoanOffers; older saves get the bank's default.Litter and path block caches (
0x4C8BA0,0x4C8AE0) are read with the strike's and the thought's ages (ECON-020 narrowed).Breakdowns go through the ride scripts (ECON-023 narrowed):
0x4E0B90writes VAR_BREAKSTAT = 1, the ride's state 1 breaks it down and calls a mechanic, and the repair waits until the script clears VAR_BROKEN (0x4DA830).The bank's message 2 every month (ADVISOR-020 retired):
0x4D0370posts it at each month end more than five months in the red, and the advisor answers each with advice 106; the bank's handler still loses the park once.Saves: the analyser caches (net worth, litter and path blocks) and the last observed script state are saved as optional fields outside the run hash, and an unanswered challenge offer whose message is gone is posted again (UI-025).
The pinned run hash moves to 0xA2FAA54FEB56DA05 on top of the ticket booth, the guest walk and the staff candidate draws (docs/DETERMINISM.md).
Rides, coaster and track reading round (October 15, 2026)#
Twenty-nine ride, coaster and track approximations were read again in tp.exe:
A build click becomes the anchor the original's way (
0x528b44: the click lands on the footprint's local (W/2, H/2) when each side is odd or at most 5 cells; the only shipped exception, space 3104 Orbiter (6 × 3), is local (3, 1) at 0° and (2, 2) at 90°), so even-sided objects no longer land one cell off (RIDES-021 narrowed).The coaster build cursor keeps its last cell beyond 300 units from the last node (
0x435e2a; COAST-035 narrowed).Track tiles become bridges only over paths and queues (
0x538b0b), not over terrain water, which map setup turns into type 0 inside the park (TRACK-010 narrowed); a park-resume load runs the bridge pass over every tile, so older saves lose their water bridges at once.The bumper arena is placed as the ride placement
0x529e10places it: the build click's anchor (the cursor cell0x818c3cwritten at0x528e12) plus the type'sBumper.*Adjustand a fixed offset per rotation, at the cell's middle (TRACK-030 retired; for the shipped 5 × 5 bumper rides that is the footprint's middle cell, where the arena already sat).RIDES-012 (entrance and exit outside cells,
0x529323,0x529239) and RIDES-013 (the footprint stamping is a rigid rotation about the anchor) are retired; 16 more items are narrowed, among them the blueprint ghost (0x532fc0, a draped, rippling marker) and the coaster cost's x87 arithmetic (0x447830).
Ride vehicles: engine voices, tour cars and the shared bump module (October 15, 2026)#
Vehicle effects and the bump rides' shared state now follow tp.exe:
Engine voices move with their vehicle every tick (
0x51C270, placex × 0.0033036,y × 0.0033036) and take EventMap variable 10 = speed / 3 (0x51BC40→0x6BBB80), bound to pitch as min + v × range / 100 (0x6BC170; the shipped kart and bumper engines bind selector 16, 17 in Fantasy). Break smoke sits on the sparks node (class0x100). Water boats' spray, engine voice and unload particles now play: the runtime had subscribed to bump effects only for non-water rides (TRACK-025 retired).Tour cars start their engine at
0x55A944with parameter 80 docked or landed, 15 taking off, 60 broken and 30 otherwise, move the voice every tick and stop it on removal; TOUR 9 plays FlySmoke and FlyFire, and the mend plays clip 10 and cat_rides0xBB; clips retrigger only on an animation change and play from the car's own letter files (TOUR-004 retired, TOUR-008 narrowed).Vehicle heights use the original's three sampler modes (
0x450EA0: faces, terrain plus the model's header float+0xA0, the collision mesh); vehicles never read the.hmp. Bumper cars stand on their ride's platform and the jungle wake is the original's second instance behind the car (TRACK-031 retired, TRACK-001 narrowed).One bump module for every bump ride (TRACK-019 narrowed): one frame counter (
0x877B5C), a 256-vehicle pool stepped and collided in pool order across rides (restitution from the other vehicle's controller,0x546E52), a 2048-object pool and a 1024-buoy budget. Because those pools' overflow verdicts depend on the order the rides were built in, a resume restores the saved slots, verdicts and buoy counts instead of replaying the checks, so a park near the limits loads as saved.Sound parameters: one placeholder table per sentence (
0x6BBB80,0x6BBF00,0x6BC040) serves the crowd, the vehicle engines, the rain (code 8,0x51E870, which now also sets the rain's volume) and the park music (code 4,0x51E79E); a bound volume or pitch takes its slot's value, 0 until a matching call, for sentences, one-shots and chains alike, so the kart and bumper stop sounds play at the bottom of their pitch range; only a call with the event's own code sets the branching value (AUDIO-003 narrowed to the fixed-pitch flag, the non-chain delay and reverb).
No world or guest draws were added and the pinned run hash is unchanged; parks with a bump controller hash the frame counter and pool order. New optional, validated save fields: the tour car's Emitter, the track world's FrameCount/TickRemainder, per controller ObjectSlots and BuoyCount and per vehicle ObjectAttraction; a vehicle's Slot is now its pool slot (unique across the rides in a save that has the module clock), and older saves load.
Guests walk with tp.exe's walk (October 15, 2026)#
Guests walking the park's cells now use the original walk, checked instruction by instruction in tp.exe and against the original routines run in the repo's x86 oracle (finding X25 in docs/reverse/ORACLE.md: the edge test, step commit, route search, avoid_walls and 40 whole walks through the set-up and steering step agree on every pinned input; larger runs while porting, 12,700 edge, commit and search cases, 8,000 avoid_walls cases and about 22,000 whole-walk steps, agreed as well):
Route search, edge test and step commit (
0x511420,0x4d8750,0x510510): a failed search makes the step return stuck (2,+0xB8), which the arrival state treats as arrival and the litter state as a drop (GUEST-010).avoid_walls (
0x50e4a0) takes the position's cell, its corner blocks by quadrant and the ray test0x50cc20(WALK-002 retired); the walk's progress isONE − (rem << 16) / +0xA0over the whole route (0x50fd40, WALK-009 retired).Block stamps (
0x4d8c60): a cell type change stamps its block, and a walk searches again when its block's stamp moved (0x50ed6c).Walk mask: guests walk with mask 0; the guard's set-down sets 1 (
0x4febab) and the recall clears it (0x500ab9).The walk uses tp.exe's fixed-point arithmetic: its multiply rounds towards −∞ (
0x50df70) and its divide towards 0 (0x50e080).
Queue walks, arrival lanes, staff and walks restored from older saves keep the earlier walk: OpenTPW's queue cells carry no +0x0C neighbour links yet (QUEUE-003), so WALK-004 to -008 are narrowed and GATE-006 and QUEUE-010 stay blocked. The saves gain optional fields (OriginalWalk, Waypoints, Mask on the walk; BlockStamps, StampCounter on the layout); older saves load with the earlier walk and unstamped blocks. The pinned run hash moves to 0x4A4014649DF391DB with the staff candidate draws (the walk alone gave 0x0B7C79BA1B5AC12A; docs/DETERMINISM.md).
Interface reading round, part B (October 15, 2026)#
Twenty-two more interface approximations were read again in tp.exe:
The buy window hides its scroll bar while nothing scrolls (
0x664495, as the video shows with four rides; UI-049 retired) and its working-life gauge keeps its fixed 100/1024 (0x4abae0).The park map draws its overlay cells on the original's grid, one pixel left of and above the art's terrain (
0x5f23dc; UI-085 retired), and opens with only the rides layer.Placing staff posts the advisor's help 309 (
0x49b9dd, withdrawn by the Place tool at0x46c8d4; UI-097 retired) instead of OpenTPW's own hint line.Training budgets step by 25 within 0..10000 with each row's grade gauge (
0x4b27d7,0x4c9c00), and the research workload knob maps to the original's workload of 70..100 (0x4aacce,0x4a985b).The left mouse button is button 0 (
0x634963), so UI-910 keeps only the per-visitor window0x4b79b0, which is not ported; 13 interface items are narrowed.
Online, economy and path reading round (October 15, 2026)#
Nineteen approximations were read again in tp.exe:
Chat: blanks before a
/are skipped (0x5e45d0; ONLINE-002 retired). The globe starts at yaw 0, pitch 0 whenever a globe screen opens (0x5dcfe0; ONLINE-008 retired), edge steering works only in the Pushscroll option and right-button steering only in the other, and the pitch limit stops the turn. Pins replace their root matrix instead of composing it (0x5d81c0, no doubled scale).The online world screen puts the city labels at the top right (table
0x7581a0), empty when no city is hovered; satellite counts are centred in white (0x4c4fb0); the publish globe has no back button.ONLINE-011, -015, -016 and -018, ECON-005 (bank
+0x10is the batch balance, only cleared; OpenTPW's finer ledger split carries[EXT:ECON-LEDGER-SPLIT]) and PATH-009 (bank+0x114is the withdrawals flag) are retired; 11 items are narrowed.
The per-employee window and All Visitors from tp.exe's tables (October 15, 2026)#
The per-employee window (
0x4b6080, table0x756f48) opens from the staff list as the original's All Staff list does: the name as title, days employed, wage, skill, happiness and energy bars and the status, refreshed every 4 s; dismiss (with the Confirmations option's yes/no box), pick-up (0x505c50), the patrol toggle (0x4b5b50), the cycle arrows, all staff, locate and the tick; locate and Ctrl+S open the staff locator panel on the employee (0x4b5f07,0x481790) (UI-098 retired, UI-092 narrowed).All Visitors is built from table
0x7506c8and its builder0x493530: six sortable columns (number, cash, time in park in hours or days, rides, thought, happiness), a value refresh every 2 s and the park info, all staff and all attractions buttons (UI-907 narrowed).The hire window's balance reads the last closed month (
0x49bdd0), and the string table keeps whole records, so "%d hours/day/days" (UITEXT 440–442) are no longer empty.
Coaster trains and pylons from tp.exe (October 15, 2026)#
Trains are laid out around their middle car, (n − 1) >> 1, from the last car forward, placed after each rating pass with the release time as their spacing (
0x43c450,0x43c1f0), and run at the mean speed of the samples under their cars; the hops queue by remaining budget, the middle car giving the hop and the front car braking (0x43ced8; COAST-022 retired). The ride view and camera follow the front car.Seats are only in the centre-type cars (
0x43ba90); COAST 6 bounds the capacity by the fleet's and the train's head counts, a head being a dummy record with flag0x80(0x43b330,0x44b2b0; COAST-023 retired). The Caterpillar has 16 heads, not 12.Pylons play all five clips (loft, rotate, incline, bank, loop tilt;
0x430ca0,0x430ed0) through their clip maps, with each dummy record on its own node (0x44ab90); the station ends take the auto bank (0x4310c8). Cars stand on the curve at their knot-pair parameter (0x43c0a0→0x43e6b0) and riders sit on the PC head sockets (COAST-015, -017, -033 and -034 narrowed).Saves gain two optional fields (a train's reference car, the ride's lead-car coordinate, which also joins the state hash); older saves convert from the front car. The coaster hash content changes with all of this (docs/DETERMINISM.md); no pinned hash depended on it.
Nine divergences from tp.exe fixed (October 15, 2026)#
Divergences found while reading other areas, each checked in tp.exe and fixed in its own commit:
Upgrades are paid at installation (
0x4df8f0, debit at0x4dfa96with no balance check); buying (0x4af4e9) only requests the upgrade when the balance is above the cost. A save's pending upgrade gains the optionalUpgradeCostDue; one loaded from an older save, already charged at purchase, is not charged again.A sideshow play wins when R % 100 ≤ the win byte (100 − InitChanceOfLoosing,
0x4e26e2,0x4db3a1).A sale or play at price 0 books no takings (
0x4fe1a0skips0x4e16b0); the cost of goods and the customer count still apply (ECON-034 narrowed).A cleaned toilet opens through
0x4df390without the reopening guard (ECON-049 text extended).A called ride gets its mechanic in any state, condemned included (
0x4da740,0x4daa90).Removing an attraction or bin sends its guests the original's removal message (
0x4fb360, message 10): riders get their model back, queued guests are dismissed, every targeting guest goes to state 6, and every guest's history slots naming the object are cleared (GUEST-004 and GUEST-005 narrowed).A closed park stops visitors on the walk to the booth (
0x4ff730,0x4ff7f0): they go home with no thought; the booth and the booking read no closed state, so a guest who paid at a closed park is sent home without a refund. A bankrupt park still takes no fee (its thing loop stops in tp.exe, ECON-030).A staff candidate draws variant, spare, grade, name and timeout in tp.exe's order (
0x507600, GUEST-014 narrowed).A new park starts with only the research-free objects researched (
Upgrades[0].CostOfResearch= 0,0x5031a0): Jungle's Wooden Log now has to be researched.
A tenth candidate (the dismissal leaving VAR_LETMEON set) does not hold: every caller unlinks first (0x4ddd20). The pinned run hash moves to 0xDB1DDEE4817DE5B0 (the staff candidate draws; docs/DETERMINISM.md).
Advisor presentation, crowd sound and particle density from tp.exe (October 15, 2026)#
The advisor moves: its antennae, hands and eyes vertex tracks and the level advisors' eye texture tracks play through the shared instance draw (
0x429df0→0x473c70); clip node bits carry from clip to clip, so bit0x10000hides the bug head and mouth and0x40000plays cat_ui0xC5(the ticket close-up, ADVISOR-006 and -026 narrowed).The slap and F1: cutting the advisor off while it speaks plays one of three slaps (
0x5994e0), and F1 in the eight help windows replays the last tutorial record (0x488c02→0x59ab50, saved as an optional field; ADVISOR-027 retired). The help descriptors readHelpMessage.Score, notContextHelpScore(both 1000 in the shipped file).The crowd sound follows its parameter (
0x6bbb80): a parameter change recomputes the playing sample's volume and pitch, on the original's beat of every 32nd 31 ms step (0x54f82d, AUDIO-036 retired). The ticket timer plays cat_ui0xC6(0x5999b2).Particle density comes from the player's graphics preset as the original's detail files set it (500/1000/1500,
0x44dc60; PTCL-906 narrowed).
Buy Land, as in the original (October 15, 2026)#
The original's land purchase is in: the build window's Miscellaneous tab has "Buy Land" (with the Costs.MapCell price) and "Clear Land" (0x4ab12f), and the land a park owns now limits what can be built.
The fence and the owned land come from each theme's
Hoardings.sam(loaded at0x407f20): the fence runs from post A (the gate's second entrance + 3) to post B (the first − 4,0x5323f0), and every cell outside it is unowned (0x40, set at0x536490). An imported original save keeps its own flags and fence (a save whose fence cannot be walked from post A to post B keeps its flags but has no Buy Land); on the Jungle Easymode save the fill rule reproduces all 16,384 cells' flags, and that save owns 674 cells more than a new park (land the player bought).The Buy Land tool (mode
0x39) takes two clicks on the fence-post lattice and checks the rectangle as0x531a50does (map bounds and size, gate posts, runs over no-terrain or fixed-walkway cells (types 7 and 0x1e; water does not count), contact with the park, no new land, no enclosed pocket, money with an equal balance allowed); each unowned cell in [x0+2, x1) × [y0+2, y1) costsCosts.MapCell(0x532303; 100 in the standard balance, 10 in Jungle's easy one), booked as other costs. The fence is walked round the new land (0x5327e0), one purchase per activation.Unowned land refuses paths, queues, objects, tracks and staff drops (
0x535670). Saves keep the land as an optional record; older saves fall back to the land computed from the fence.Not yet: the fence models and the unowned-terrain tint, Clear Land (the rectangle bulldozer, PATH-005), and the coaster tool's ownership test. PATH-007 and ECON-026 are narrowed.
Interface windows from tp.exe's tables (October 15, 2026)#
All Attractions is built from four decoded tables (
0x7508e0,0x750ab8,0x750ba0,0x750ca0): the original per-category columns, a value refresh every 2 seconds, sorting on any column, reopening on the last category and the park info, all staff and all visitors buttons; OpenTPW's detail rows and status column are gone, as the original list has neither (UI-905 narrowed).The staff and visitor locator panels (tables
0x756950,0x756ad8) open with Ctrl+S and Ctrl+V (0x481790→0x4b3f60,0x4b4280): a role's button finds and cycles that role's people and the camera follows; Ctrl+V locates the visitor whose info a list row click or a park click opened (tp.exe's visitor info window0x7cc408), and a key without an actor keeps the strip's last name (UI-904 retired, UI-091 narrowed).The research lab's fluids play tp.exe's animation (
0x4a95b0,0x4a9fc0) at the rate of the category's effort share and staffing (0x503870,0x503980); the HUD key counter shows the player's earned tickets / 3 plus extra keys (0x5af680), hidden in Instant Action; the loans summary shows the last closed month's money in and out minus outstanding instalments (0x49fb30); the game-mode toggles latch and only the tick, or Enter (message0x802), starts the park (0x4a6d00). UI-066, -051, -063 and -013 are narrowed.
Audio, weather and advisor reading round (October 15, 2026)#
Thirty-one audio, advisor and compatibility approximations were read again in tp.exe:
Weather draws with the original's render states (decoder
0x567620): lightning is additive (0x200d52, SRCALPHA/ONE, no depth writes), snow writes depth, and all three discard alpha below 16/255; the parallax is absolute (0x57efd0); snow is one triangle per flake with a small jitter each frame (0x8bcbc8bit0x100is never set on PC); the weather's step follows the game speed (0x57ff60reads the rate-scaled clock0x402d70).Sounds: a level event id is looked up in the level's own category only (
0x6b87d0; incagod.RSE's EVENT 3 id 43 is silent, as in the original), and event and repair sounds start at whole units (0x5573d0).ADVISOR-007, AUDIO-011, AUDIO-015, AUDIO-026 and AUDIO-908 are retired, ADVISOR-010's manual tools are an extension (
[EXT:speech-tool-audio-clock]), and 15 items are narrowed. Items that need QMixer.dll or usp10.dll stay open: only tp.exe is analysed.
Interface reading round, part A (October 15, 2026)#
Twenty-two interface approximations were read again in tp.exe:
The lobby island camera follows the original (
0x5e1210,0x5d5c50): the eye and target glide separately by 0.1 and 0.2 of the frame step (the frame's ms × 0.01, capped at 500 ms), the field of view is ISLANDFOV (100°, vertical,0x5e13ed) instead of 60°, and the angle wraps into [0, 2π) (UI-017 retired).UI-016 (the island angle and height already matched) and UI-029 (the door button latch and help,
0x4ad4e0,0x669410) are retired.Nine items are narrowed with what was read: the font bank chosen by screen mode (
0x419710), control colours and the single-pass text renderer without a shadow (0x48f830), the four readers of RMBCancelOn (0x4881a0), the greedy text wrap (0x6aec80), the slider class, the options labels and the buy-list row pitch (font slot 7's line height,0x4ad240).
MD2 paths: vehicles and karts follow their routes (October 15, 2026)#
The path parameters decoded earlier today index a part of the geometry models that was still opaque: the 16-byte "extra records" (header 0x40/0xAC) are paths, 18 of them in 15 distinct models (Bézier, one linear).
Paths (
ModelPath,ModelFile.Paths): kind (closed, Bézier, linear, otherwise Catmull-Rom), point count and points. A node follows one when its parent is a type-0x208 dummy (Kart_path01,Flightpath,FERRYSPLINE…); the dummy's stored index selects the path in its high 16 bits.Playback from tp.exe's sampler 0x471860: the per-tick value (0x474EA0: per-tick blend, seam across 100 → 0) becomes
fmod(v + 1000, 100)percent of the path's segments, evaluated by 0x474840/0x474BF0/0x474CC0; flag 0x400 turns the node along the path (0x474A20/0x474C70, rows built by 0x470780).ObjectAnimatorandModelAnimationPlayerplay it, so the Haunted House karts, the go-karts, the bus, ferry, seaplane and slide car and the Halloween advisor's bats follow their routes instead of standing at their stored pose (every such record evaluates on its path; moving playback is checked for the Haunted House karts).Checks: every flag-0x200 node hangs under a path dummy; where a clip starts on the stored pose (Haunted House B/E/M/S, Busm1, slidec) tick 0 lands within 0.02 of the stored translation and faces within a few degrees of the stored orientation; a placed Haunted House moves its four karts along their paths. The open Bézier routes store a closing control pair the sampler never reads, so the bus and ferry jump back to their route's start when the value wraps past 100, as the original does.
Not played: flag 0x400 together with position keys (no record has it). OpenTPW guards: path tables decode at most four times the member, empty or non-finite paths are rejected, and a direction parallel to up (a division by zero in the original) faces +X. No native render was run.
Verification (macOS arm64, original data): the full test suite passes (4,496 passed, 109 skipped); an independent Codex review's findings (path-table allocation budget, non-finite and empty paths, scale after facing across channels, a vertical direction, claims beyond the tests) are fixed.
Format table reconciled; SAM reader, LIP checks and MD2 path parameters (October 15, 2026)#
The README's format table mixed decoding with game integration: the sound banks' ⚠️ listed untriggered events and the mixer, not the one entry word that is really still unknown. It now has separate columns for what decodes, what is still unknown in the files and what the game does not use yet; tools/site_status.py reads the new columns, and docs/FORMAT-BACKLOG.md replaces the October 9 list that had fallen behind the code.
SAM:
SettingsFile's parser was character-based and skipped newlines after a key, so a key without a value took the next line's key as its value, quoted names lost everything after the first space ("Inca Totem"read as"Inca) and the rows of---blocks became settings. It now reads the line grammar the shipped files use (one-token or quoted value,#///comments, blocks skipped) and agrees withObjectSettingsFileon every shipped.sam, loose and in WADs. It reads the rest of any stream instead of trustingLength, so non-seekable and partly read streams work.LIP: the two corpus checks no longer skip
z_error, the one Layer I clip, since the decoder reads Layer I: 639 clips, still 70.2 dB talking against 41.9 dB silent,sp_478still the only overrun.MD2 path parameters: the record +36 block of flag 0x200 is decoded (
ModelPathParameters): a 16-byte header and one float per tick, a position along the node's path in percent, as the PC sampler 0x471860/0x474EA0 reads it. All 71 corpus blocks fit. The path it indexes (model instance +0xAC) is not decoded, so nothing moves along it yet and 0x200/0x400 stay unsupported.The merge of main into the older
formats-phase1branch keeps its exact Layer I corpus counts and ffmpeg-pinned Layer I clips; main already had its decoder.Verification (macOS arm64, original data): the full test suite passes (4,486 passed, 109 skipped); an independent Codex review's four findings (path table allocated before its bounds check, flag 0x200 without a block, an unclosed SAM block, an overclaimed sound-bank ✅) are fixed. No native run was needed.
Economy rules settled against tp.exe, part two (October 15, 2026)#
Sixteen more economy approximations were checked again, item by item, in tp.exe (leads from an earlier REA survey, every address re-read):
A new park starts closed (
0x51562dwrites the closed flag): only the gate button, the two keys and the online park creation open it (0x519ef0), and only an imported park saved open is open on load (ECON-031 retired). The M3/M4 gate runs open their park explicitly.Challenges: a won challenge with a follow-up marks the follow-up won, so the challenge can be offered again (
0x4d2fb0re-reads the index the offer moved); declining a follow-up that is not Independent pays half its prize (0x4d2ec0); the follow-up is the first open slot of its type in table order (0x4d2b60, no same-object preference); type 18 is the best coaster's counted sections with no floor (0x4d1873, ECON-036 retired); types 14 and 19 read the coasters' counted sections and type 22 counts ride uses (ECON-034, -035, -055 narrowed).Fixed items are the objects whose WhichUIType is 4, as the buy menu tests (
0x4aaff0; ECON-041 retired; the same six per theme), and a repairing mechanic cannot be picked up (0x505beerefuses state 13; ECON-052 narrowed).ECON-040 (one golden key once,
0x5afc30), ECON-051 (the withdrawals flag) and ECON-053 (a carried member is put down where he was before a save,0x46cdc0) are retired; ECON-038, -044, -048, -049, -050 and -054 are narrowed.
Guest rules settled against tp.exe (October 15, 2026)#
Sixteen guest approximations were checked again, item by item, in tp.exe (leads from an earlier REA survey, every address re-read):
Prices against RipOffOK (
0x4d3e00, key 42 of the table at0x7456e8): each shop or sideshow type's own RipOffOK now sets how far above the fair price a guest still pays (100 for shops, 250 for sideshows in the shipped data, so up to 2× and 3.5×); a noticeable balance change (GUEST-003 narrowed).A full queue costs nothing (
0x4ffbc0): a guest finding no room records the event and walks on, with no thought and no happiness loss, and a queue that is too long no longer costs happiness either (GUEST-004 narrowed).Newest attraction first (
0x4fcb10,0x519d80pushes at the head): the choice walks the objects newest first, which decides ties (GUEST-002 narrowed).The use routine's other terms (
0x4fe1e0): the small-portion penalty, scaled happiness, fat, salt and ice from the ingredients and the toilet speed term (GUEST-005 narrowed).Energy is tp.exe's field
+0x1B8, 0 at birth and changed only by0x4fd970(GUEST-008 retired); 15 guest items are narrowed. The determinism hash is now0xD28386DACAD73241.
Queue exits as in tp.exe (October 15, 2026)#
A closed ride drains its queue one head per turn (
0x4e1220→0x4e0450): the others keep waiting, a closed ride that breaks down sends away two that turn (0x4e0e60), and joins and the walk to a ride no longer test the open word or the broken state, as the original's join0x4ffbc0does not (QUEUE-018 retired; the choice still skips closed rides). A guest at its place in a coaster's queue leaves with thought 13 while the track refuses guests (0x500612; COAST-024 narrowed).Every queue exit but a removed ride costs the medium happiness drop (the dismissal
0x5012f0,0x4fea70(1)): feeling sick, bored, unhappy, needing the toilet, a failed move-up, a queue edit or a refused price alike; a water ride with a broken circuit is only skipped by the choice, its queue stays (0x500612tests coasters and kart tracks). The "problem with a queue" exit (0x500270) thinks nothing, and a toilet above 80 thinks "need toilet" before the relief test (0x5003aa).
Economy rules settled against tp.exe, part one (October 15, 2026)#
Seventeen economy approximations were checked again, item by item, in tp.exe (leads from an earlier REA survey, every address re-read):
Research categories come from the object data (
0x4aaffc, the add-on id at+0x284;+0x508only means "model not loaded"): a project takes the object's own Research.Category and Group, and an object outside category 4 gets level projects (ECON-018 retired; no change on the shipped data, which a game-data test pins).The research cursor moves on after a project completes to the next eligible project in table order, wrapping (
0x4aaec0→0x5034f0), instead of falling back to the first selectable one (ECON-017 narrowed: the table's fill order is still open).Staff training is booked as other costs (
0x505a10writes its own word+0x1fa40, not the staff-costs series of the eight-series finance graph0x49a7b0); total money out is unchanged (ECON-005 narrowed).ECON-002 (the 2000-01-01 Gregorian UTC calendar,
0x4f7eb0) and ECON-028 (0x523658) are retired; the ×2/×4 speed buttons are an OpenTPW extension ([EXT:speed-buttons]: the original has only the numpad keys,0x7480a0) and so is the headless economy's own mechanic dispatch to worn rides ([EXT:headless-economy]: the finder0x4daa90only takes broken, upgrading or called rides). Ten more items are narrowed to what is still unknown.
Path tool and walking settled against tp.exe (October 15, 2026)#
The path and walk approximations were checked again, item by item, in tp.exe (leads from an earlier REA survey, every address re-read):
A refused preview lays nothing (
0x524a63, flag0x816d48): a click whose line contains a refused cell ends the path or queue tool without laying the cells before the refusal. After a commit the tool ends only when the line reached a cell that was already a path or a queue cell, the ride's own queue included (0x5345a1); otherwise the snapped end is the next start, and the queue-join sound plays only for a committed line (PATH-003 and PATH-012 retired).Backspace without a tool takes one placement off the path cell under the cursor, as
0x40be8b→ ClearCell(0, 1) does, so a cell laid twice survives one press.PATH-002 (the tool's undo already matched; the old text saying Backspace does nothing was wrong), PATH-010 (path costs land in the other costs,
0x4d01f0) and PATH-011 (Escape ends the tool first,0x40c180; only the next Escape opens the pause menu) are retired, and 20 path and walk items are narrowed to what is still unknown.
Queue rules settled against tp.exe (October 15, 2026)#
The queue and gate approximations were checked again, item by item, in tp.exe (leads from an earlier REA survey, every address re-read):
Full rides are skipped (
0x4dd920): a guest choosing an attraction passes over a ride whose queue already holds 4 × its cells, as the original's choice does; the join keeps its own room check for a queue that fills while the guest walks there (QUEUE-017 retired).Queued guests turn as the original does (
0x4ffff0): only within 30 turns of their last interlude, one in ten turns, by −400..+399 of 2048 instead of a fixed ±400 (QUEUE-009 retired).QUEUE-016 is retired (the turn order
0x516394→0x50b360matches), the M3 gate minute is an OpenTPW extension ([EXT:m3-gate-minute]: the original's clock runs on scaled real time, 31 ms substeps and a park turn every eighth), and 16 queue items are narrowed to what is still unknown. Two register claims were wrong and are corrected: a queue event goes into the guest's own history, and a 0/0 queue score takes the 0.75 floor on PC (0x4e07d2), not 0. The determinism hash is now0x4AEFBABAD786E2FD.
Original saves bring their research, challenges, staff HQ and hiring pool (October 15, 2026)#
Importing an original save (the Jungle Easymode start) now restores four more parts, all read in tp.exe:
Research (
0x502dc0): the lab's projects, their points and each category's current project, effort and work load. The Jungle start continues researching rides 1150, shops 1212, sideshows 1304 and features 1414 where it left off; the lab's own table order differs from OpenTPW's info-id order (ECON-017 narrowed with the evidence).Challenges (
0x4d2320,0x4d1e90): won and declined challenges, a running or unanswered challenge and the next offer day. A system not yet switched on offers its first challenge on park dayDaysUntilFirstChallenge, as the original counts from the park's start: the Jungle start now gets its first offer on day 540 instead of 572.Staff HQ (
0x508bb0,0x50c800): training budgets in the role order handyman, mechanic, entertainer, guard, researcher, and each role's strike level, active flag and last-considered turn (0x508e70).Hiring pool (
0x507850, the 670 bytes before the calendar): the Jungle start keeps its 16 saved candidates with their own expiry turns, and the pool refills on its own schedule. The saved stamps (refills on turns 361 and 722) confirm the pool timing now read in0x5084f0: the pool refills on the first turn past 4 ×TimeBetweenStaffUpdatesturns, and each candidate draws its own timeout ofStaffTimeoutTime+ R % (StaffTimeoutTime/ 2) units of four turns (0x507600) instead of a fixed 120 seconds (ECON-010 retired).
Imported staff also take the display state of their saved state word (0x5064f0): the word is the member's own state, not the STAFFSTATES index, so a member walking to rest or striking no longer shows as working or picked up. SAVE-003, 004, 005, 007 and 009 are narrowed.
The All Attractions button is a round icon again (October 15, 2026)#
The button that opens the All Attractions window from the buy window (above All Staff) and the staff window was a text button in a round slot about 100 units wide. Its label ("All Rides", in Dutch "Alle Attracties") fitted no font size, so the text fallback wrapped it one letter per line down the panel. It now wears the attractions window's own rides tab icon (b_srides), round like its neighbours, with the name as its popup help.
Scream voices limited to the sound manager's pool of twelve (October 14, 2026)#
Ride screams no longer start new children everywhere in the park. tp.exe's sound manager (0x6b62b0) ticks only 12 audible voices, ranked by event priority with the ground distance as tie-break (0x6bb9f0, 0x6b6bc0), and a held scream chain makes its children, the first included, only in that tick (0x6bdae0 → 0x6bdb50). Screams (priority 2700) rank below the crowd (5300) and most ride and ambient sounds, so OpenTPW now holds back a scream chain that is out of the listener's range (95 sound units over the ground) or outside the twelve highest-ranked voices; its started children play out (AUDIO-038). The timing of a chain itself was confirmed in tp.exe: a full ride (8+ riders, event 74) screams every 0–0.5 s, as in the original data.
Ticket booth verdict, broken-ride state and no boredom loss (October 14, 2026)#
The ticket booth now weighs the entrance fee against the park as tp.exe does (0x4ff5b0, 0x4ff9d0): the park value is the attraction points over 4..6 plus MinimumEntryFee, and the fee against it is far too expensive (home), expensive (a wait of 50 + R % 50 park turns and a medium happiness loss, home when happiness runs out), cheap (a medium gain) or fair, with the thresholds from PeepInfo in Standard.sam (ARRIVAL-006 narrowed; ARRIVAL-007 registers that OpenTPW still charges the guest's purse). A broken ride now keeps state 1 until it is opened again, as the ride dispatch 0x4e0e00 does, instead of following VAR_BROKEN: guests may still choose it until its update notices the breakdown, and a script that clears VAR_BROKEN early no longer releases the whole queue at once (QUEUE-017..019 narrowed). The boredom loss is gone: the major decision 0x4ff419 has no boredom test and nothing in tp.exe reads BoredomThreshold (GUEST-009 retired). The determinism hash schema is 19.
Challenge chains, training and speed keys from tp.exe (October 14, 2026)#
A won challenge with a follow-up type no longer pays its prize: the original (0x4d2fb0) credits the prize only when the challenge has no follow-up, so a chain pays the prize of its last part (jungle's chain 7 → 8 now pays 30,000 instead of 37,500). A lost challenge is no longer marked finished (0x4d3140 only counts the loss), so it can be offered again. The challenge check 0x4d1660 confirms the accumulated types and the balloon and costume census percentages (ECON-034 narrowed); the follow-up's same-object rule is registered as ECON-055. Training's 100 points per grade is read in 0x505a10 (ECON-008 retired; the Standard.sam comment's 1000 does not match the code). The clock's 31 ms substeps and three-turns-per-frame limit (0x54e360) and the speed keys (numpad +, − and *: × 1.25, × 0.8 within 0.25..2, reset) narrow ECON-001 and ECON-004.
Bank rules from tp.exe: bankruptcy timing and the withdrawals flag (October 14, 2026)#
The park's bankruptcy now follows the bank's month routine (0x4d0370) instead of counting month ends in the red. A debit that takes the balance from 0 or more below 0 stamps the park turn, and every debit keeps the balance after it (0x4d01f0); at a month end, a park whose balance and last balance are both below 0 counts the 30-day months since the stamp, and above 5 it is bankrupt (the original's message type 2, ECON-030). The bank's withdrawals flag is honoured: with it clear, debits, instalments and payoffs charge nothing, and instalments raise the year profit by their principal share. The three bank words are saved (older saves count the stamp back from their months in the red) and imported from original saves (SAVE-008 narrowed). An early payoff compares the balance as an unsigned word, so a balance below 0 does not refuse it (0x4d0850). ECON-005, 007 and 051 are narrowed to the traced routines; the determinism hash schema is 18.
Automatic per-theme checkpoints (October 14, 2026)#
Exit to Lobby from a Theme Park World Full Simulation or Instant Action park now saves an automatic checkpoint for that theme (opentpw-{theme}-automatic-world.json, written atomically after the owned progress is flushed), beside the manual save, which it never replaces. Entering the theme again offers Continue for it. A failure before the write keeps the park with Retry and Back; a failure while leaving the park after the write is reported instead of crashing. Details: docs/AUTOMATIC-CHECKPOINT-INGRESS.md and docs/AUTOMATIC-CHECKPOINT-CORE.md.
Two checkpoint tests that capture a synthetic level failed locally when they ran after the original-data asset tests: those tests left the global FileSystem on the game data, so Level.SetupStaff loaded real staff atlases and created textures without a graphics device. The checkpoint tests' CPU renderer scope now also pins FileSystem to an empty directory, and the coaster, staff sprite and M4 gate asset tests restore FileSystem (and Log) after each test. CI has no game data, so it never saw this.
Application-owned progress entry and smoke repair (October 14, 2026)#
New Full Simulation checks the selected theme's explicit entry cost against application-owned ticket history before constructing a park. Missing history opens a starter-key consent screen; only confirmation can stage a new ledger with one extra key before activation. The model still defaults to zero keys. Known zero-key or incompatible history is not reset to make entry succeed. Instant Action creates no progress file, and manual Continue/Load retain their existing saved-mode behavior without a new-entry key gate. See player progress entry and lifetime for storage, precommit failure, tracking and retirement qualifications.
The front-end smoke uses a fresh temporary save directory. Its plan now asserts that newProgress is a ProgressChoiceScreen and that the progress file is absent before injecting the actual starter-consent button click. It then waits in the queued readiness check for completed construction, the activated Jungle level and its HUD. It reports a progress failure dialog explicitly and retains the strict 3,000-frame budget; no history is preseeded. The former 40-frame delay could reach the original post-load assertion while construction was still active. CPU regression controls drive those actual queued smoke steps and menu/admission callbacks with synthetic theme metadata, checking successful consent, Back cancellation and preservation of known zero-key history. Additional controller controls wait beyond 40 frames, reject a wrong theme or missing HUD, report a real failure dialog, and retain the strict noncompletion bound. These CPU controls model activation fields; native runs use actual construction state.
The original native smoke objection is not counted as a successful native rerun. These CPU controls do not exercise native text readback, the GPU/window, original Jungle assets or graphical park construction. A native run must observe the consent screen, accept it, load Jungle and finish the existing complete smoke without resetting history. Earlier native smoke results below belong to their older source snapshots, not this progress-entry change.
Native smokes on a 120 Hz arm64 Mac (October 13, 2026)#
Retail WCT textures decode again. The WCT bounds audit (
docs/WCT-ROBUSTNESS.md) was written without original data and refused 5,055 of the 8,416 shipped textures: every BILZ chunk (its stream size counts the 28-byte header too) and every LZSS chunk of odd length (the last 16-bit word is the final byte plus zero bits). Both are now read as the retail data stores them; all 8,412 textures the decoder handled before the audit decode to byte-identical RGBA, and a corpus-wide test (EveryOriginalTextureDecodesExceptThePinnedFailures) walks every shipped WCT.Front-end smoke and advisor speech. The pause-menu save waits for the Jungle welcome line (response 1, 28.63 s, the right clip from the level bank). The speech plays in real time, so the frames it takes follow the display: with the frame cap off, a 120 Hz screen spent the whole 3,000-frame budget waiting. Those frames no longer count against the budget; the wait is bounded by the clip's remaining length plus 5 s instead. Measured: the speech ended 24.16 s into a predicted 24.17 s wait; the test passed at 2560×1440 px, UI scale 2, in 3,697 frames, 2,897 of them speech.
Sandbox smoke ride-view click. The guard clicked the first cell of the first removable object, which at 1280×720 logical projects below the bottom edge of the park camera's view. It now clicks a removable object's cell that is in view, picks back to itself and is occupied by that object. The sandbox smoke passed in 2,032 frames at the same size.
Merged PowerPC evidence lanes#
The reviewed clock/PEF, economy/save, VM, UI-binding, advisor/audio, guest and TPI-comparison lanes were merged into the verified local bundle. Positive-APR save validation does not apply an unproven annuity equation. Layer I effects decode; the original PRNG, complete controllers, clock/event/audio integration and final fidelity remain explicit open work.
Before the remote integration, bounded merge checks passed: 31 toolkit, 7 fidelity and 84 review tests; 22 save/economy, 41 VM, 56 UI and 49 audio/LIP checks; standalone scheduler 35, loan 5,437 assertions, advisor 52 and guest 23. The combined Release regression selection passed 154 cases without skips and the Release build had zero errors. A Dutch Metal smoke passed 222 frames, including reload, payments and read-only guards. These results qualify their bounded slices, not every original game rule. Reference helpers remain separate from production gameplay; vertex-animation/runtime and mode changes continue in their own worktrees with review.
Remote integration on .NET 10#
The verified local bundle was reconciled with the remote .NET 10, first-run setup, Linux native-library and Retina updates in an isolated integration worktree. The merge retains the independently validated Layer I factor math, both branches' codec tests, the packed 40-byte SDT header/name fixes and actual MPEG sample-rate/channel metadata. Repository documentation remains English.
Review fixes preserve selected Instant Action mode when loading after a return to the lobby, qualify the still-missing original credit eligibility predicate, and keep setup responsive when a mounted drive stalls. Discovery/inspection use bounded child processes with cancellation and conservative exit ownership; unknown editions are not classified from generic folder trees, while the exact supplied unsupported Sim Coaster retail signature is rejected.
Own macOS arm64 verification on SDK 10.0.401:
The full original/six-language/bonus/MTR/native suite ran 955 cases: 952 passed, one failed, two skipped, in 7.30 minutes. The only failure was the missing manual ECON-007 documentation row; it was restored and the approximation consistency test then passed on its own. The skipped checks require Linux libdl or a case-sensitive filesystem.
After the final cleanup-ownership fix, 41 setup/discovery/lifecycle and approximation checks passed without skips, including two new injected kill/status-failure regressions and picker cancellation. 106 codec/metadata/SDT/economy checks passed without skips.
Dutch Metal smoke passed 231 frames: the original payment/reload/read-only checks plus Instant Action → lobby → load, with Easy balance layers and $100,000 retained. The requested UI scale 2 fitted to 1 at 1280×720.
The isolated evidence runner reached 230 Python cases, with no failures and eight missing private UI-fixture skips; all six retained SDK 8 standalone harnesses passed. Source-reference tools follow .NET 10; source-link-only helpers retain their compatible framework.
Release builds have zero errors; existing dependency, nullable/compiler and new SDK analyzer warnings remain. These checks qualify the merge and bounded regressions, not original gameplay/device fidelity or every other OS/edition.
Latest remote UI and graphics updates#
The integration also includes remote commit e31c804: optional local texture packs, world-only capture, original-style online screens, text input/scrolling and Options > Game files. First-run setup asks only for the game folder; its bounded inspection/picker behavior survives that simplification. In-game folder changes use the same cancellable children, provide explicit typed-path recovery and cancel owned work when screens or GameFlow are disposed.
After this update, 182 focused texture/UI/online/setup/display/compatibility checks passed with no skips, and the Release build had zero errors. Dutch Metal smoke passed 264 frames, including the new online and folder screens and the earlier mode/payment/reload/read-only regressions. A world-only capture wrote a validated 1280×720 PNG outside Git. Text readback now selects the exact glyph range of its draw; the earlier overlap heuristic incorrectly included covered glyphs from the underlying lobby. No threshold was relaxed.
scripts/run.sh selects the private SDK 10 fallback before the retained SDK 8 on the verified arm64 route and respects explicit DOTNET; shell syntax and normal selection were checked. Linux/Windows native execution, actual external upscaler execution and every platform's live folder dialog remain separate checks. No original assets, captures or native binaries are published.
Integrated check after resumption#
The advisor/compat, front-end, rides, and online work has been merged with economy, visitors, and display settings. This qualifies as a development preview; original runtime fidelity and the complete offline scope remain open.
Full macOS arm64 suite on the catalog/online/shader integration: 793 passed, 0 skipped, 0 failed, including original data, six languages, bonus content, MTR fixtures, and native shader checks; 10m46s.
The UI scale fit was then corrected. On the updated code: 51 targeted UI/online command tests passed, 0 skipped, Release solution build with 0 errors. Existing nullable, compiler, and dependency warnings remain.
Own Metal final check: Dutch, 1280×720, Nearest 50%, requested UI scale 2 with a visibly explained fit to 1. 222 frames: lobby, options and glyphs, two different catalog objects each paid for once, sale, overlapping build refused, back to lobby, reload, and read-only visit.
ShaderCompiler keeps compiled code and reflection; native shader objects are owned per renderer. The reproduced Metal crash on level reload is thereby resolved. Archive root listing and case-insensitive SDT members were repaired, with regression tests. Level/GameFlow manages level and online lifetime.
Own CLI export/import followed by a native visit: 8 frames, 14 unchanged objects, no park economy; build/delete/save/load/export refused. The full theme catalog is shown in the HUD; Level owns purchase/sale so the UI does not charge money again. Modified shared layouts cannot yet be rendered.
Patch 2 was applied on a Windows GitHub runner: three native patch steps passed, 43 installation differences checked. The game data has 28 differences and 24 modified decompressed WAD members. Only hashes, own descriptions, and analysis tools were published. Temporary transfer, secrets, and the encrypted artifact were removed; reference data is kept outside git.
Mac evidence: 16 PEF containers read; the conditional timer fallback and the millisecond conversion are recorded with pinned witnesses. That does not prove an animation, calendar, or advisor frequency. 16 Python evidence tests and 7 fidelity register tests pass; the patch comparer has synthetic tests.
The supplied Windows manual establishes one key per three earned golden tickets. That ratio has been corrected with boundary, purchase, and save regression tests; start count and access usage remain marked as uncertain. Own targeted economy check: 28 passed, 0 skipped.
The README distinguishes decoder status from gameplay fidelity: BF4 is implemented for 33 fonts in each of six tested languages. All remaining format limitations are listed per table row; movie handling and preview status have been updated.
Nine independent worktrees were started for the PowerPC follow-up analysis and TPI comparison (six native and three app subagents). Their new source and renderer changes will be reviewed and tested separately before merging.
The PowerPC differential oracle ran the arrival rule: the group size
0xcb4e8(F9) and the park points0xc24c0(F10), see ORACLE.md. Both differ from GUESTS.md and the C# rule; the routine readings agree on every input.GuestSimulation.ArrivalGroupSizeis compared through the C# bridge (now 49 differences, see the next bullet) and the differences are tracked as ARRIVAL-002..004.ParkEconomy.ParkPointsnow follows F10's track type rule: an untracked type is aged from its first purchase and divided by its copies, every copy of a kart, water ride or coaster counts in full. Only the counts-test0xdc834remained (121 differences, ARRIVAL-003).The counts-test
0xdc834was traced and executed (oracle targetpark-points-counts-test, 522/522 against the reading, call order included). It needsInfo.IsChoosable, a ride that is not broken down or condemned, the open word, a connected entrance, queue room, a riderless coaster and a kart or water track word.ParkEconomy.ParkPointsnow applies the first three (IsChoosable,IsBrokenDown,IsOpen): the park points bridge input's open flag is passed asIsOpenand C# agrees on 507/507. ARRIVAL-003 stays open for the conditions that need world state (entrance, queue room, coaster riders).ARRIVAL-002 (factor) is resolved, and the earlier lights finding is corrected.
0x1083c8reads the thing index at game+0x1da724(mWeather), not+0x1da734(mTrafficLights; the offset had been miscalculated in the first reading). The+48word of that weather object ismCurrentDrops, so the arrival factor is 0.8 while rain or snow drops are falling and 1.2 otherwise; the Traffic Lights play no part.GuestSimulation.ArrivalGroupSizetakesWeatherDropsFalling(ParkWeather.CurrentDrops > 0, set byLevel);TrafficLightsPlacedandObjectCatalogEntry.IsTrafficLightsare gone.ParkWeathernow ramps snow drops too (AUDIO-028 closed). The oracle pin is unchanged (49 differences, all the missing floor, ARRIVAL-004). A non-sandbox online visit still cuts groups to 500 - guests (OnlineVisit; GameType 1 stays an assumption under ARRIVAL-002).The oracle also executed the arrival update
0xcb2acover scripts of repeated calls (F11, ARRIVAL-004). A negative group (1700 guests: -200) behaves like an empty one: no guest, timer restart and cleared active byte at the next stop, so nothing holds (the static reading was wrong). Only the stored group word and one arrival-vehicle step differ; C# behavior is unchanged.The oracle executed the queue's two untraced predicates (F15, F16 in ORACLE.md).
0xdfe34, the guests' ride-failure exit, never readsVAR_BROKEN: it is a relief object (toilet) whose wear gauge is below 25 (QUEUE-008 stays approximate: a broken ride has no such exit). The join excitement gate0xe9a84/0xe02ecgates on the type'sExcitementLevelbyte and compares a live excitement (sideshow formula, speed and duration ratios, coaster0.5 E + 50) over bytes, clamped to ±50; C# compares the static level (155 of 524 oracle inputs differ).RideVisitorBridge.ExcitementRefusalis now the gate on its own (behaviour unchanged), compared through the C# bridge; QUEUE-004/008/019 comments say what execution showed.The queue's two executed findings are now C# (F15, F16 in ORACLE.md). The join gate tests a guest only when the low byte of the object's
ExcitementLevelis nonzero and compares the live excitement over bytes, clamped to ±50 (a sideshow's goods, price and win chance, the speed and duration ratios, a coaster's rating): a default sideshow with a prize 25 above its price and a win chance of 50 scores 40 and takes a guest preferring 80, a level-100 ride at a tenth of its speed scores 75 and takes one preferring 50. A broken ride no longer sends its queue away "feeling sick" (that exit is a worn-out toilet,0xdfe34); the ride update (0xe0a8c, executed in the oracle) dismisses its head guest each park turn instead, the rest waiting. The oracle compares the C# side onqueue-failure-predicate,queue-join-differenceandqueue-join-gate; only a ride with a thing behind ride+36differs (QUEUE-004).The oracle executed what a shop sale does to the buying guest (F18 in ORACLE.md, ECON-020,
0xeaaf8). The five shop effects (thirst, hunger, vomit, happiness, litter) are added to five guest meters, each clamped to 0..100; litter is the rawLitterEffect(type+0x154), but it fills the guest's own meter, and the guest update drops litter once that meter reaches 90. The static trace's "unscaled, up to 100x" was a misreading of the unit: with the shipped values (50, 25, 10, 0) a guest who keeps buying makes 1/2, 1/4, 1/9 and 0 litter item per sale (a burger shop: 0.5, as before), within 11 % of OpenTPW'sLitterEffect/100. C# is unchanged (it has no guest litter meter; ECON-020 stays[APPROX]with the sharper text); the oracle pins the 213 inputs where the old rule leaves the 0..100 range.The oracle executed the mechanic's arrival routine
0xd9c0c(F19 in ORACLE.md, ECON-021) and C# follows it: a repair takesWorkDuration x (100 - state of repair) / 100park turns (a grade-0 mechanic on a ride at 40 %: 48, not a flat 80 hours; the ride's level does not matter) and an upgradeWorkDuration x DurationOfUpgradeof the level it installs, without a minimum. Mechanic job time now counts park turns (saved asBusyTurns; older saves'BusyTicksconvert from tenths of an hour, rounded up). The walk to the ride stays an approximation (ECON-021).The guest speed boost is settled (ORACLE.md F20, WALK-001).
0xeb0f4is the store at the end of a block in the outcome routine0xeaaf8(one call site, the guest leaving an object): only the Sugar ingredient raises it, by trunc(6 x amount / 100) with the ride build's amount 50, so a guest leaving an Ice Cream Shop walks about one percent faster for three turns (at most +15 per use, so the u16 wrap above 661 never happens in play). The oracle targetwalk-boostexecutes the routine (521/521);GuestSpeed.RaiseBoostdoes the same inApplyVisitand agrees. WALK-001 now only keeps the shop screen's amount and its saved field.The oracle settled ECON-039 (F23 in ORACLE.md): the yearly profit golden ticket is won when the bank's year profit is signed strictly greater than
GoldenTicketLocal.ProfitYear(0xd33dc, executed), with no factor. The 0.9 multiplier the register saw at0x13fdcis the advisor's near-ticket hint (GoldTicketNearToXProfit), executed separately. OpenTPW now compares>instead of>=(the two differ only at exactly 15000 in jungle) and the[APPROX:ECON-039]is gone. The same oracle run executed every other local and global ticket arm: all are signed strictly-greater compares (so 100 admissions no longer win the visitors ticket), the happiness ticket is the single average aboveHappinessand more thanAtLeastThisManyHappyPeopleguests, and OpenTPW follows; the recent-visitors ticket's park-age gate is registered as ECON-052.Dependency audit is clean: ImageSharp is replaced by an in-tree PNG writer (
PngWriter,RgbaResampler), Zio is 0.22.2, and Newtonsoft.Json is pinned to 13.0.4 (it came in transitively through Veldrid's NativeLibraryLoader).Two original-data regressions for the SDT Layer I decoder: every Layer I entry in all installed
.sdtbanks decodes (2,650, of which 5 MPEG-1 at 44.1 kHz), and the MPEG-1 cliptp_riderepaired(stored without a.mp2suffix) matches the pinned ffmpeg reference within 1 LSB. No decoder change:Mp2Decoderalready covers MPEG-1/2 Layer I.Loans follow the original (ORACLE F12-F14, ECON-006 resolved). The monthly instalment is trunc(P x pow(1 + APR/100, N/24) / N) for every APR, paid flat for N months with no interest on a balance and no final remainder; the total payable is M x N and an early repayment pays M x the months left (100,000 at 20 % over 36 months: 3,651 a month, 131,436 in all, instead of 3,716 and 133,795). At 0 % APR the loan repays 99,972, as in the original.
LoanAccountstores the months repaid; saves with the old remaining balance load with their months left. Original-save import checks the stored instalment for every APR and keeps it when it differs. The loan oracle targets now agree with C# (505/505 offers, 503/503 terms). The withdrawals flag is assumed on (new ECON-051). Early repayment also charges the year profit the whole-term share (oracle targetloan-payoff), the year-profit word wraps as a signed 32-bit value on every update, and a saved instalment that differs from this host's pow is kept and reported instead of rejected. The 0 % APR share (about 119 million a month in jungle Easy mode) is original behaviour and stays.An x86 differential oracle now runs isolated routines of the decrypted TPW v2.0
tp.exe(Unicorn engine, a dev-only optional tool; ORACLE.md section 7, owner decision 2026-10-12). Its first target is the world RNG step0x516330: it is the same logical generator as the Mac0x105328(same object offset, constants, setter, tick and inline copies) but stores the successor rotated right by 13, so the PC and Mac streams differ (finding X1: 507 of 508 inputs). OpenTPW has no world LCG yet and DET-plan follows the Mac; nothing in the game changed. Finding X2: the Theme Park IncGame.exe(no-CD, SHA-25677ea0c41...) has the same step at0x6493e0with the state slot moved to+0x1eab3c, rotation included (executed, 508 inputs; agrees with the TPW PC reading, differs from the Mac plan in 507). The TPI image's 16 out-of-range relocation entries no longer break a relocated load.The x86 oracle now executes the
tp.execounterparts of the four Mac-derived rules (ORACLE.md 7.6, findings X3 to X6): arrival group size0x4cf5b0, loan offers0x4cf7c0, the monthly loan step0x4d0370and park points0x4c8240implement the same rules as the Mac, so C# needs no change. The only differences are x87 arithmetic: an integer wrap and a single-vs-extended rounding at totals no park reaches, and a last-bit dependence of exactly-integer instalments on the x87 control word (which the code expects to be0x27F). The runtime's ownpowis executed, not stubbed.The same four rules in the Theme Park Inc
Game.exe(ORACLE.md 7.7, findings X7 to X10; analysis only, no C# change): loan offers0x5bfb70, the monthly loan step0x5c0b10and park points0x5b05d0are the same rules as TPW at moved offsets (shipped offers and instalments unchanged). The arrival group size0x5bcd60differs: the 0.8 / 1.2 factor became a weather percentage (Rain 90, Storm 80, Snow 75, Heatwave 120 inStandard.sam), the integer divide became a floating one (80 points + 20 over 25 gives 3, not 4), and a mode word of 3 gives no group. The note also records that tp.exe's arrival routine reads themWeatherhandle, not Traffic Lights.The oracle now executes the Mac month-end staff training
0xfc1c4(finding F17, ECON-013): each role's budget is divided by all of the role's staff (the base counts are zero), every member below the top grade is charged the whole share and gets min(share / price, 100) points, and points above 99 carry into the next grade.ParkStaff.Trainnow does the same (358 of 507 oracle inputs differed): a budget of 1,000 for 3 handymen (grades 0, 0, 4) trains the two at 333 each instead of 500, and a share below the price is still spent. ECON-013 is retired.The oracle executed the object sale refund (
0xe25e8/0xe2424, ORACLE.md F21, ECON-025) and C# follows it: the refund is the base priceUpgrades[0].CostOfUpgrade(no upgrade costs) times the current level's age percentage (exact 365-day years), and 100 % for an object no guest used in its first 30 days. A used Belly Bounce at level 2 sold at two years refunds 175, not 490; an unused new one refunds its whole price. The newParkObjectState.TimesUsedcounter (raised when a guest leaves, imported from a save's customer count) is saved and hashed, so the hash schema is 11 and the determinism pin re-pinned (behaviour unchanged); the Windowstp.execounterpart is not executed yet.The oracle executed the staff vitals, rest and strike routines (F22 in ORACLE.md, ECON-014: the old claim "happiness never changes, no strikes" is refuted). Staff energy and happiness (singles, start 100) fall every park turn while a member walks (0.012 / 0.005 x (6 - grade)) or works (0.025 / 0.01 x (6 - grade)) and rise while it rests at a Staff Room (the one
ChillsYouOutobject; 0.2..0.75 energy and 1..3 happiness a turn); without a room a tired member loses 2 happiness one turn in 16. At a month end of an open, guest-free park a role of more than three whose average energy or happiness is below 15 is warned, then strikes (TAG_SYSTEM 38-62, no dispatch or research until the next month end). C#:StaffVitals,StaffStrikeBoard, saves carry energy and the strike board; the oracle agrees on all four targets. Open: the staff state machine, the handymen's litter statistics and the stamp epoch.The x86 oracle now executes the coaster rating step and final of both Windows executables: tp.exe
0x43dc50/0x43df90and the Theme Park IncGame.exe0x480630/0x4809c0(ORACLE.md 7.8, findings X11 and X12). The final is the Mac rule (clamps, 1.7 and 1/2 weights, both-flags section count) with only last-bit differences in the excitement. The step differs in one rule: where the inverted arm does not apply the Windows builds addu(the single 1 + U), the Mac the staleFzthat C# follows, so 469 of 509 Mac-target inputs differ; the rest is x87 rounding (at most 3 ulps), and the two Windows builds round differently from each other. A TPI coaster mode reuses the layout and the C# machinery but needs that one term and a rounding decision. No C# change.The x86 oracle now executes the Windows sale refund: tp.exe
0x4e2400with its percentage0x4e2290and the clock stamp0x4f8690(ORACLE.md 7.9, finding X13). It is the Mac rule of F21 that C# follows, identical on all 572 inputs (random 64-bit clock bases included): base price × the current level's age percentage / 100, 100 % in the first 30 days of an object nobody used. The use counter is thing+0x1a0, cleared by the constructor and raised when a guest leaves (0x4e1690from0x4fd970, the one increment a byte scan finds), as on the Mac. ECON-025 is retired; no C# behaviour change. The routines were located with REA (a Ghidra MCP front end, local only) from the 365- and 30-day constants.The x86 oracle now executes the queue re-evaluation tp.exe
0x501390(ORACLE.md 7.10, finding X14, QUEUE-005): a queue edit sends away only guests whose place is at or beyond 4 × the queue cells, and never one in state 14. "Queue edited underneath me" turned out to be the log line every guest prints, not a second exit. C# now also sends away a non-called guest in state 13 beyond the room; it keeps its Confused departure for a guest whose cell left the queue (its walk cannot route that guest back), which QUEUE-005 now names as the remaining difference. Found in the REA research round over the register (2026-10-13).QUEUE-001 is retired: tp.exe's run-time neighbour table (
0x4d97e0) maps the links 1, 4, 16, 64 to −Y, +X, +Y, −X, and the queue's predecessor search0x4de670reads the link byte +13 with it, as C# assumed. QUEUE-015 is narrowed: the original's cell clear0x5367a0removes only the one queue cell (refunded, neighbours unlinked); C# still removes every cell behind it.QUEUE-008 is specified from tp.exe, without a C# change yet: every use of a toilet lowers its gauge by 0.05 × the guest's toilet meter (
0x4e2440); handymen with no litter in reach walk to the nearest dirty toilet and clean it back to 100 after a per-grade time (0x4d7880, state 11,0x4dfd80). Wear alone would leave toilets dirty for good, so it waits for the handyman's toilet job.Park points now apply the queue part of the original's counts-test (tp.exe
0x4dd920, ORACLE.md 7.11, X15, ARRIVAL-003): an attraction counts only with queue cells from its entrance and a queue shorter than 4 × those cells, so a ride without a queue, or with a full one, adds no points and draws no arrivals. Only the coaster controller test and the kart/water word remain open.ECON-052 is retired: the recent-visitors golden ticket now follows tp.exe
0x4c94d0/0x4d4bc0. It takes the lifetime visitor counter minus its snapshot at the month close RecentVisitorMonths back, so the open month counts and one more close is needed. It also needs the park clock to be more than that many exact 30-day months old; both comparisons are strict.QUEUE-002 is retired: the queue's predecessor search (tp.exe
0x4de670) tries the neighbours −Y, +Y, +X, −X (links 16, 1, 64, 4), andRideVisitorBridge.NextQueueCellnow uses that order instead of the grid's direction order.ARRIVAL-001 is narrowed: the original's arrival update (tp.exe
0x4cf3e0) runs once per world turn (0x516380) and drops one guest per turn while the bus stands at its stop. OpenTPW's guests therefore step off one per park turn from the turn after a group starts, instead of every 0.4 s. Only the bus's drive to the stop (its animation) is missing. Three behaviour pins moved: the fixed-run hash, the cross-grid run (62 → 60 admissions) and the Jungle run (23 → 22).QUEUE-006 is narrowed: queue places follow tp.exe
0x4de840. The lateral byte is no longer mirrored for queues whose front lies towards +Y or −X, and the fourth place in a cell takes the axis of the cell behind it (depth − 128for links towards +X). Only the back cell's fourth place still depends on OpenTPW's join cell.Guests now test prices as the original does (tp.exe
0x4fde50, ORACLE.md 7.12, X16, GUEST-003). They no longer skip an attraction they cannot afford when choosing. When called forward at a shop or sideshow, a guest compares the price with a willingness to pay (InitCostOfGoods × 1.15, raised by thirst, hunger and unhappiness against the type's effects, lowered by illness, plus the expected prize for a sideshow, scaled by happiness) and with its money, and leaves the queue when either is too low. Pricing a shop too high now costs customers at the counter. The C# rule is pinned on willingness values produced by the original routine.CI runs each pull request once: a push builds only
mainand thev*release tags, so a push to a PR branch no longer starts the whole build twice, and a new push to a pull request cancels its older run (.github/workflows/build.yml).Thought bubbles are drawn, and staff think too, as in the original (tp.exe
0x50be80,0x506a40,0x4fa030; GUEST-006, QUEUE-005; GUESTS.md "Thoughts"). Guests and staff show the original bubbles above their heads (a burger for hunger, a drink for thirst, a thumb up after a sideshow win, a sleeping face for a tired handyman, a protest sign for a striker). Staff think when unhappy, very happy, tired, on strike or lost; a guest sent away by a queue edit is angry one time in three, as in the original.Guests now think as in the original (tp.exe
0x4fc8a0,0x50be80,0x50be40; GUEST-006, GUEST-009 narrowed, ARRIVAL-006; GUESTS.md "Thoughts"). On one needs phase in ten a guest picks from its needs, the litter around it ("Too messy", new) and its happiness, and keeps its thought otherwise. Rides and shops no longer set "Pleased" or "Dissatisfied" (only sideshows do), and the invented thresholds ("Super happy", "Okay", level 70) are gone. Each thought times a bubble: 12 turns, and a gap of 0 to 60 turns before the next by the thought's priority (not drawn yet). The fixed-run, Jungle and cross-grid hashes moved; guest snapshots move to schema 7.Toilets, security cameras and fireworks now act on the cells around them, as in the original (tp.exe
0x4db090,0x4dd0a0,0x4e2440,0x4dfd80,0x4e0b90; GUEST-006, GUEST-001 retired; GUESTS.md "The environment grid"). A clean toilet makes guests nearby a little ill and less hungry, and more so once it is dirty, until a handyman cleans it. A camera spreads security over five cells, so a prank there brings a guard. A Firework Show or Laser Show cheers guests up around it and changes how attractive the rides beside it look, until its show has run. All eight original region sources are now modelled.Balloons and costumes are drawn, as in the original (tp.exe
0x4fa030,0x4f9f00,0x4fe950; GUEST-017; GUESTS.md "Rendering"). A guest in costume walks in the theme's costume (Jungle's tiger, Fantasy's knight, and so on), and riders in costume show the costume head where the theme has one. Balloons in four colours hang over their guests, trail behind and dip while they walk, bob, and show their burst frame when they pop. The texture pack builder now includes the balloon and costume sprites, and--debug-guest-looksdresses guests for captures.Guests now buy balloons and costumes, as in the original (tp.exe
0x4fe1e0,0x501650,0x501db0; ECON-044, GUEST-007; GUESTS.md "Balloons and costumes"). A balloon shop gives a balloon that lives 127 needs phases (about two minutes) at the build's quality of goods; a ride puts it away and gives it back. A costume shop puts a costume on, and a second visit returns it. Balloon pranksters now find victims: they burst another guest's balloon on their cell. The challenges "kids with balloons" and "kids with costumes" count real guests instead of 0. Balloons and costumes are not drawn yet. Guest schema 6, world hash schema 17; the fixed-run, Jungle and cross-grid hashes moved.The player can call a mechanic and draw patrol areas, as in the original (tp.exe
0x4dfe30,0x4b5b50,0x524960,0x506f30; ECON-049, ECON-022; WANDER-plan.md §4). The ride panel shows the original call button (b_callmech, orb_callhandyon a toilet): a call closes the ride and the nearest free mechanic comes even when nothing is broken (a toilet's call brings a handyman from anywhere); the repair reopens it, and a second click cancels the call (greyed with no mechanics or on strike, UIHELPTEXT 574/575). The employee view of the staff window has "Patrol area" and "Whole park" buttons (UIHELPTEXT 86/87): two clicks on the map set the rectangle, and staff then keep to it, walking into it first when they stand outside.Mechanics now walk to their rides as in the original (tp.exe
0x4da490,0x4da5b0,0x4daa90; ECON-021, ECON-022; WANDER-plan.md §4). In a level a mechanic idles or patrols and, from where he stands, takes the nearest ride that is broken down or being upgraded (not the park's worst one), walks there and starts the repair ((100 − state of repair) × WorkDuration / 100turns) or the upgrade only when he arrives. Rides merely worn are no longer serviced before they break, as in the original. Every staff role in a level now runs its own state machine.Researchers now wander and research as in the original (tp.exe
0x5029f0; ECON-022): a spell ofWorkDurationturns where they stand (cat_staff 138 now and then), then they wander on; their points still come every 20th turn. Every staff role a level drives now walks to rest and to strike (0x506a40,0x505fe0,0x5061d0,0x506300; WANDER-plan.md §4): a tired member walks to the nearest Staff Room and rests there until its energy is full (the room'sVAR_STAFFINcounts it), and while its role strikes and the gates are open it walks out past the ticket booth to the strike area and back in when the strike ends. Without a rest area a tired member loses happiness now and then, as before.Entertainers and guards now walk the park as in the original (tp.exe
0x4d4810,0x4d6410,0x508a30; ECON-022, GUEST-006, GUEST-007; WANDER-plan.md §4). An entertainer patrols and, when guests stand within hisActivationDistance(3 to 5 cells), performs forWorkDurationturns (cat_staff 135 at the end); wherever he stands he cheers the cells around him (RegionFX[0]). A guard spreads security (RegionFX[3]) around him; a prank within three cells of a guard sends the free guard nearest the staff HQ (map cell (0, 0); x86 finding X24, ORACLE.md 7.18), who chases the prankster (136), catches it (137), carries it to the gate and sets it down there (cat_kids 128); as in the original, a prankster that still wants to stay walks back in. Their idle and walking voices come from their state machines (AUDIO-024 narrowed); the park save keeps their state, target and rows.A guest's litter going into a bin now fires the bin's script trigger (variable 0,
VAR_TRIGGERin every theme; tp.exe0x4fff20,0x55a0b0), so the bin plays its own sound, and a stinkbomb playscat_kids207 at the prankster (0x4ff289).Handymen now walk and search as in the original (tp.exe
0x4d73c0,0x4d7100,0x4c8ed0; ORACLE.md 7.17, X23; ECON-022; WANDER-plan.md §4). In a level each handyman patrols the paths, looks for litter within his DetectionRange (2 to 5 cells by grade) and, only when there is none, for a dirty toilet in reach; he walks there, faster than on patrol, and sweeps or cleans for WorkDuration turns from his arrival. An idle handyman looks again every IdleDuration turns. His idle and walking voices come from his own state machine (AUDIO-024 narrowed). The park save keeps his state and walk. Rest and strike still need no walk.Pranksters prank, as in the original (tp.exe
0x4fb114,0x4ff0f5,0x4d8480; ORACLE.md 7.16, X18 and X22; GUEST-007, GUEST-006; WANDER-plan.md §7).PrankeryLikelihoodguests in 100 (5 in the shipped balance) are pranksters for life; when unhappy they drop stinkbombs or litter on their cell and cheer up a little. Vomit and stinkbombs now spread theirRegionFXon the cell environment grid: guests standing in a stinkbomb's cloud lose happiness and grow ill. Balloons, the advisor's prank lines and the guards who chase pranksters are not modelled yet. Guest schema 5, world hash schema 16; the fixed-run, Jungle and cross-grid hashes moved.Litter now lies on map cells, as in the original (tp.exe
0x4d93b0,0x500dc0,0x4fff20; ORACLE.md 7.15, X20 and X21; ECON-020, GUEST-005; WANDER-plan.md §6). A purchase fills the buyer's litter meter instead of a park-wide count; at 90 the guest walks to a litter bin less than 3 cells away or drops its litter on its cell, and vomit stays where the guest was sick. A cell holds one item, and only handymen remove it: litter comes before toilets, and a free handyman sweeps the first unclaimed littered cell for WorkDuration turns (still without a position, ECON-022). The handymen strike when more than a fifth of the path is littered. Saves keep the littered cells and the guests' meters (guest schema 4; older saves load clean), the world hash schema moves to 15, and the fixed-run, Jungle and cross-grid hashes moved.Guests now decide and wander as the original does (tp.exe
0x4fec90and0x4f9490, ORACLE.md 7.14, X18 and X19, GUEST-010; WANDER-plan.md). Once per park turn a guest standing on the paths (state 6) cheers, vomits, leaves, makes a major choice at most every 30 turns, or picks a wander destination one to five cells away and walks there (state 7); the 3-second decision timer and the one-cell wander are gone. A choice that finds nothing costs a little happiness, so a park without rides empties. The leaving test runs in state 6 only: a guest that walks through the four turns its counter reads 0 stays. Saves move to guest schema 3 (schema 1 and 2 still load), the world hash schema to 13, and three behaviour pins moved (the fixed-run hash, the cross-grid run's hash with 60 admissions, the Jungle run with 23). The x86 sandbox gives routines with a frame handler anfssegment.ECON-015 is retired: tp.exe's researcher update
0x502960skips display states 3, 4 and 5 of0x5064f0, which maps the internal staff state to the STAFFSTATES names (Idle, Patrolling, Working, Resting, On strike, Picked up); C#'s StaffState is that index, and its exclusion of Resting, OnStrike and PickedUp is the original's. GUEST-007 is narrowed with the prank rule of the state-6 handler.The Escape pause menu now stops the park simulation, as the original's does: on the Mac, Escape in the park (
0x157968, key 27) calls0x198514(0), which builds the pause menu0x197d90and then calls the game pause0x110518(0x198580) while the game-state pause gate+0x3cis set; the menu's close routine0x1985c0re-arms the gate and calls the resume0x110598. The pause freezes the scaled clock (0x10e888→0x117c54) that drives the scheduler's substeps and park turns, together with the advisor's clock. Before, OpenTPW froze only the advisor and a front-end smoke run saw the park date move three days while the menu was open.ParkHud.TimeScaleForreturns 0 while the pause menu (or a screen opened from it) is on the stack, and the speed setting is left alone, so the park resumes at the same speed (ParkPauseTests, front-end smoke check). UI-096 names the original's other pausing screens (full-screen map, message dialog, Load dialog,0x15f67c) that do not stop the park here yet.Toilets now wear and handymen clean them (tp.exe
0x4e2440,0x4d7880,0x4dfd80, ORACLE.md 7.13, X17, QUEUE-008). Every visit lowers a toilet's gauge by 0.05 × the guest's toilet meter. Below 25 the toilet is dirty, and guests in its queue give up (the worn-toilet exit now fires). A free handyman takes the dirtiest dirty toilet and is busy for WorkDuration + 1 park turns, after which the toilet is back at 100. A toilet visit also clears an illness above 90. The walk to the toilet and the litter-first rule wait for handyman positions (ECON-022).The oracle now executes the Mac park calendar and the cadence of park turns (finding F30, ECON-001/002/003, ORACLE.md): the conversion
0xe4394(2000-01-01 + floor(turn × rate / 4) s through the civil calendar, 652 inputs around every month, leap-day and year boundary), the update0xe3f0c(a day, month and year message when the date's day, month or year differs from the stored one, 579 scripts) and the scheduler loop0x1c22b0..0x1c24d0(31 ms substeps, a park turn on every eighth, three at most per call, a 2000 ms backlog dropped, scaled time = raw ms × the clock scale). At the default scale that is 4.03 park turns a second: a game day takes 5.7 s of real time, January 177 s, the leap year 2000 34.9 minutes, as OpenTPW already had it.ParkCalendargainsDateAtTurn,FieldsAtTurnandUpdate, andParkEconomyraises its day, month and year events through them (no change for players; the oracle's C# side agrees on every turn). The original's first update of a new calendar also posts a day and a year message (stored day -1, year 0); OpenTPW starts synchronised. ECON-001 stays open with a narrower text (the 60 Hz sampling, the catch-up limits, the clock route).The oracle executed the golden-ticket check cadence (finding F31, ECON-033, ORACLE.md): the world's park-turn update
0xd67f0runs the bank, the staff pool and the calendar update, then, on every turn that is a multiple of 100 (unsigned, 4.34 game days, 24.8 s at normal speed) and for game type 0 only, the ticket dispatcher0xd2f1c.ParkEconomyhad the cadence and the mode (507 scripts agree, 0 mismatches); it ran the check before the calendar update, so the year's profit ticket could be awarded from the old year's profit on the turn the year changed, and now runs it after (ParkEconomy.RunsGoldenTicketCheck). The determinism hash did not change.The oracle executed the original's speed scale (finding F32, ECON-004/UI-022, ORACLE.md): three key callbacks divide the scheduler clock's scale by 1.25, multiply it by 1.25 and store 1.0, clamped to 0.25..2.0, and the clock that park turns, ride scripts (WAIT, GETTIME), the board code and the animation updater read (60 call sites; 11 read the unscaled clock) adds each raw gap times the scale. OpenTPW's speed buttons sped up the economy alone while guests and rides kept x1; a speed is now the clock scale of the whole simulation (
GameSpeedScale,Levelfeeds the fixed clock scaled time, the economy runs one tick per fixed tick). At x2 a park day takes 2.9 s of real time (x1 5.7 s, x4 1.4 s) and guests, rides and the economy run at x2 together; x4 stays an OpenTPW extension beyond the original's maximum scale 2.0. The determinism hash did not change. ECON-004 and UI-022 stay open with narrower texts (the keys' names, whether a speed control is shown).Guests choose attractions with the original's score (ORACLE.md finding F24,
GUESTS.md"Attraction choice"). The oracle now executes the Mac score0xe9164, the choice loop0xe8ff4and the use outcome0xea318, and C# follows them (AttractionScore,AttractionChoice,RideOutcome): seven matches normalised by the sum of all sevenDecisionVar*Weightvalues, so a perfect ride for a guest without needs scores 27 (not 100) and a new one (up to 7 days old) 135; an attraction of the type just used scores 0, one the guest was turned away from a fifth for about 20 s; the best score of at least 10 wins with no random bonus; a use givesPerfectRidebelow 5,GoodRidebelow 15 andOKRidebelow 40 from the preferred excitement (no penalty beyond) and raises illness by excitement / divisor times a hunger factor. The loader's binding of the seven weights is read from the schema order and four independent consumers; the 11 × 11 need table is a formula (checked on all 121 entries), the 21-byte toilet curve is written as constants. The guests' used and temporary histories join the snapshot (schema 2) and the determinism hash (schema 11, re-pinned). New register IDsGUEST-001..005.Guests start and grow by the original's rules (ORACLE.md finding F25,
GUESTS.md"Needs and starting values"). The oracle executes the Mac needs function0xeece4and the constructor0xe7644; C# follows (NeedsUpdate,GuestStart,UseEffects): a new guest has happiness 50, thirst and hunger 0..49, toilet 0..29 and an exit counter of 60..179 that loses one per four park turns (0.992 s) in every state; the needs change only on the guest's phase (turn & 3 == id & 3), toilet +1 and hunger and thirst +2 only on a turn that is a multiple of 16, so only a guest with an id divisible by four ever grows (three in four keep their starting needs); a need at exactly 100 costs a happiness point per phase; illness does not decay; a use applies the type's thirst, hunger, vomit and happiness effects (hunger 80 at a shop with effect 50 goes to 30, not 0). The invented per-second rates and the 60 starting happiness are gone. New register IDsGUEST-006..009; the determinism hash is re-pinned.Guests leave by the original's rule (ORACLE.md finding F26,
GUESTS.md"Lifecycle"). The oracle executes the leaving test of the Mac state-6 handler (0xebdfc): a guest goes home when its happiness byte is 0 (below 1, not "at most 10"), when its exit counter is exactly 0 or when the park is closed, losingBigHappinessChangeon the way; the counter counts one per needs phase (0.992 s, the.sam's "seconds") in every state, and a ride does not extend a visit (nothing in the binary adds to it). Closing the park now sends every walking guest home; a guest that is queueing or riding while its counter reads 0 never leaves by it. The starting happiness (50, F25) replaces OpenTPW's 60. New register IDsGUEST-010andGUEST-011(the closure also pulls guests out of queues and dropsGoingToRidereservations, or a closed park would strand every guest whose ride holds admission; what the original does with queued guests at the closing word is not traced).Review round on the guest batch (Codex). Four findings fixed: the attraction score now measures the guest against the bridge's last queue cell (
0xdd3f4), not its join cell — the queue term's d² ≤ 8 range and the distance match both read the back cell, so a queue the guest stands beside actually counts (a unit test pins a score of 19 where the join cell would give 16); world saves written by guest-snapshot schema 1 (before the histories and the integer exit counter) load again — the schema gate accepts {1, 2}, the missing histories start empty and the former seconds-based exit value truncates toward zero into the counter, while a schema-2 save that lost a history or carries a non-finite exit value is rejected by both the envelope's validation and the simulation's; closing the park pulls queued guests out of queues and dropsGoingToRidereservations (GUEST-011); the guest-slice validation checks the histories (null only under schema 1) and bounds the exit value. The x86 oracle's guest targets also load again (a double execution oftargets.pyunder theppc_oracle_targetsmodule name left a half-initialisedtargets_guests; the file now aliases itself intosys.modulesastargetsbefore importing the guests module).Second review round on the guest batch (Codex). Five findings fixed: schema-1 saves whose hunger, thirst or toilet grew past the counter model's ceiling load again (the bounds accept the old model's 150 cap and the restore clamps to 100) and a schema-2 exit counter must be whole; the closure pull-out also covers a guest called to board (
Boarding); the state-18 recall (0xedc98: counter above 0, happiness byte nonzero, park open) is implemented — a closed-park dismissal unwinds when the park reopens, with the untraced cell predicate0xe6c6capproximated by the state boundary (new register IDGUEST-012, the road ends the recall and the booth refusal is exempt); and the shop-sale oracle's C# meter comparison rejects a short or empty answer instead of passing vacuously.The oracle now executes the Mac ride's life from breakdown to repair (finding F27, ECON-049, ECON-024, ECON-023, QUEUE-019): the ride update
0xe077cskips closed, broken-down and inert rides,SetState0xe0c3cwrites the open word and VAR_RIDECLOSED together, the reopening guard0xde654reads the ride's state (notVAR_BROKEN), and a repair0xdef2cwrites 100.0 into the wear gauge, clears the reservation, maintenance flag and VAR_BREAKSTAT and opens the ride (the old rule differed on 264, 280 and 423 of about 500 inputs per target). OpenTPW now keeps a broken-down, upgrading or incomplete-coaster ride closed when the park door opens, no longer lets a closed ride break down or a broken ride wear, runs the admission on the breakdown turn and reopens a repaired ride. After the rebase on the F19 repair timer, mechanics follow the derived ride state as the arrival0xd9c0cdoes: a condemned ride (life gauge 0) gets no mechanic (it was repaired and broke down again for ever), and a broken ride with a purchased upgrade is repaired before the upgrade is installed.ECON-049andECON-023keep only the maintenance button, the queue link test, relief objects and a breakdown that only the script reports.The Codex review of PR #64 closed three seams: the park door and the reopening after a repair followed the economy that an in-place
LoadParkhad discarded (they now subscribe through the persistent runtime and the gate is rebuilt), a ride with a bought upgrade kept taking guests while its wear stood still (it now closes until the upgrade is installed and then reopens,0xdf928start and end, read statically), and the docs no longer present the economy's breakdown as reaching guests: it does not, until the economy writes VAR_BREAKSTAT to the ride script. RIDE-WEAR.md drops its superseded 2-second wear estimate and the retired ECON-047 row.The oracle now executes what a Mac staff member costs (finding F28, ECON-012, ECON-043): the monthly wage
0xf3364debits PayMultiplier × BaseWage (a 32-bit product) at the month's end, and the dismissal routine0xf33eccharges the same wage once more; the hire path has no debit (the bank's Spend has sixteen direct callers, none on it, andBaseCostPerStaff/CostPerQualityLevelare never read).ParkEconomy.Firenow charges a month's wage (it was free: 506 of 511 oracle inputs differed), hiring stays free, and ECON-012 is retired.The oracle now executes the Mac park rating
0xc7b24and park value0xc1d4c(finding F29, ECON-027, ECON-026): objects count in the rating by the type'sInfo.WhichUIType(the add-ons are rides), the visitor term is the census of guests on cells of type 0, 1, 3, 9 and 10, and a staff member counts only with its byte+3clear; the park value is the cell points (2 per owned empty cell, ...) plus, per object that is not condemned, the costs of its levels times its state of repair / 100, not the scrap values.ParkEconomyfollows the object parts (the old rules differed on 249 and 355 of about 520 oracle inputs); the census, the staff byte and the cell points stay open in ECON-026 and ECON-027.Fidelity register: 326 original fidelity items plus 24 online extension IDs (350 total) remain open. CI checks explicit tags and register consistency; it finds no unmarked logic and proves no parity. Windows/Linux GPU/input/audio, original captures, coaster controllers, missing script effects, and further scenario acceptance remain release blockers.
Local logs: /tmp/opentpw-root-final-tests.log, -final-ui-tests.log, -final-release-build.log, -final-frontend-smoke.log, -final-visit.log. The other sections below keep earlier slices and the checks they had at the time.
Delivered and verified#
Native macOS arm64: SDL2 windowing, Metal rendering, ImGui initialization, and the original Jungle ground texture and Totem model. No Rosetta in this test.
Placing, starting, procedural motion, stopping/resetting, removing, and placing again; isolated JSON save/load of a running attraction and an empty park.
Reproducible native smoke test of 150 frames with GPU readback. Checks non-black images and texture detail; capture without UI, not an original fidelity test.
Portable file paths and asset tests; original files remain outside git.
SPIR-V compiled once with resource names preserved; the same bytecode feeds backend shaders and reflection. MSL/HLSL/GLSL bindings have native regression tests.
Own material pipelines use Improved resource binding. Legacy Metal counted vertex buffers into uniform bindings, while SPIRV-Cross expected buffer 0. ImGui keeps its existing binding contract; culling is unchanged.
Fog uses view-space distance instead of projected coordinates. The chosen fog distance is a sandbox setting, not a reconstructed game value.
Engine content is included in build/publish, and shader paths are relative to the executable. The native smoke test passes when started from
/tmp, outside the repo.Framework-dependent packages build for
osx-arm64,win-x64, andlinux-x64. These are local development packages, not qualified releases.
Simulation foundation: limited M2 slice#
The prototype attraction runs on a chosen 60 Hz fixed-step clock, separate from render frames. CPU tests compare 30/60/144/240 fps with the same 360 ticks and the same final phase and height. Frame delay causes at most 16 catch-up ticks; extra time is explicitly counted as DroppedSeconds and is not caught up without limit. Renderer timing uses a monotonic stopwatch instead of the system clock.
This only proves consistency of our prototype motion. It does not prove the original tick rate, RSE execution, or bit-identical full simulation on all platforms. RNG, event replay, and full tick/RNG save state are still missing. The current sandbox save format restarts phase and clock when loading.
Fresh verification#
Whole native asset suite, including shader, save container, and font regressions: 185 passed, 0 skipped, 0 failed, .NET SDK 8.0.425,
osx-arm64.Without original assets or native shader opt-in: 165 passed, 20 skipped, 0 failed.
Save container slice: 31 passed, including the hashed original TPWI fixture.
Isolated clock tests: 12 passed.
Release solution build: 0 errors; existing warnings remain.
Native Metal smoke test: exit code 0, 150 frames, original assets, save/load in a temporary directory; the user's sandbox save remains untouched.
Three RID publish builds passed; rerun after every source change.
Republished Mac build started from
/tmp: read-only save inspection and native Metal smoke test both exit code 0. An invalid or truncated save file and a missing inspection argument give exit code 1; no original files changed.git diff --checkshould remain clean.
Reproduction steps are in RUNNING.md. Local logs are under /tmp/opentpw-*.log; GPU captures and publish output are under the ignored artifacts/. Captures contain original assets and are not distributed as repository fixtures.
Still open / no completion claim#
M0: complete native and transitive dependency and distribution license inventory, parser boundaries, edition identification, and all required asset fixtures.
M1: human and automatic UI input qualification, camera/zoom/focus, and full lifecycle and resource check. Offscreen captures do not show the buttons.
M2–M6: original map/save import, path network, visitors, queues, economy, staff, all rides and coasters and RSE opcodes, worlds/scenarios, progression, audio/video, localization, and original behavior references.
M7: actually running on Windows/Linux, packaging and licenses, long sessions, complete native dependency evidence, and a supported release runtime policy.
Existing code warnings have not been cleaned up. No dependency upgrades without explicit authorization.
Subagent follow-up was blocked by a revoked refresh token. Work continued locally; independent architect or review sign-off is not claimed.
Next substantive gate: investigate the remaining MAP/TPWS fields (see TPWS-PAYLOAD.md) and a legally runnable original offline behavior reference. No copy-protection bypass and no fictitious simulation rules as a substitute for evidence.
Design extension: optional upscaling#
Added at the user's request to M6, the PRD, and the test specification on October 9, 2026: docs/UPSCALING-DESIGN.md. Native/100% remains the default; portable Linear/Nearest with an adjustable world resolution comes first, with the UI at output resolution. Simulation, save, and replay remain untouched. Vendor and temporal upscaling and dynamic resolution only come after separate capability, license, input, and performance evidence.
Save and map research remains the next gameplay gate; upscaling does not move this critical path.
Implementation M6-U1 + high resolutions (October 9, 2026, worktree display): arbitrary window sizes (--resolution), borderless/exclusive fullscreen (--fullscreen, --fullscreen-exclusive, Alt+Enter/F11), HiDPI drawables, Native/Linear/Nearest with presets 77/67/59/50 and custom 50–100 (--upscale, --render-scale), integer BF4 UI scale, user settings in display.json, the ImGui section "Display", and the UI-agnostic OpenTPW.IDisplaySettings API (with confirm/revert). Only the 3D world scales; BF4 text, ImGui, and movies render at output size.
Evidence (macOS arm64/Metal only, 1x display 1920×1080): CPU tests for size, rounding, fallbacks, DPI, picking, and configuration; native smoke for the sandbox and --load-original-level jungle at 1280×720, 1920×1080 borderless (67%), and 2560×1440 output via OPENTPW_TEST_PIXEL_SCALE=2 with 50% Linear (world 1280×720, UI scale 2, BF4 text exact, picking correct), plus runtime scale, window, and fullscreen switches. Not proven: real Retina, exclusive fullscreen, Windows/Linux GPU, performance. See docs/UPSCALING-DESIGN.md.
Delivered save container slice#
SaveReader now supports the observed offline version-133 TPWI envelope alongside the old synthetic 500 header. Bounded binary intake and zlib decoding replace one-shot reads and unbounded decompression; caller-owned streams stay open and repeated reads work. Header, chunk, and decoded lengths, checksum, stream completion, and trailing data are checked, with hard 64 MiB limits.
--inspect-save gives metadata and hashes without GPU or write access to assets. The real Jungle Easymode file decodes to 1,608,309 bytes with the expected SHA-256; corpus and offsets are in REFERENCE-CORPUS.md and SAVE-CONTAINER.md. There is no park payload schema, playable importer, or evidence for all original TPWS layouts. MapFile remains incomplete, and scape.omp semantics have not been guessed.
Follow-up subagents could not deliver a review (a model/account restriction and a blocked review call). Tests and local checks were run; independent review sign-off and completion of the full game are not claimed.
Focus on missing/partial formats#
At the user's request, the ❌/⚠️ list takes priority. FORMAT-BACKLOG.md separates concrete fixtures, decoder work, and integration/fidelity; existing green marks are not interpreted as full game or platform qualification.
New
FontFile: bounded BF4 header/offset/glyph parser, raw four-bit, nibble RLE, and monochrome. All 33 original English fonts / 8,217 entries decode; three hashed fixtures pin metrics and independently computed samples.README: BF4 changed from ❌ to ⚠️. No GPU font atlas, game UI, or original visual comparison yet; no unfounded complete-font claim.
--inspect-font: read-only CPU diagnostics without changing assets or starting the GPU. Published Mac build from/tmp: valid font exit 0, missing argument exit 1. Three RID packages rebuilt.BF4 text: deterministic glyph atlas (coverage × 17 → alpha), layout with original advance/offsets/line height, line wrapping, and
?fallback; pinned on GAME8AA/SESHMED and UITEXT/OBJECT_NAMES. The sandbox panel draws "Totem" and ride labels; the Metal smoke test compares readback with the CPU composite (max. difference 0). No original UI screen or AA comparison; D3D11/Vulkan not run.Read-only metadata inventory of 312 DWFB archives: 2,118 MD2, 308 RSE, and 7 MAP members. Jungle terrain contains
base.mapandterrain.map; this does not yet prove map semantics or import. Nine TGQ videos found. No standalone MTR/LIPS/TQI names in these locations; embedded or differently named data remains open.Upstream format notes were recovered via the GitHub docs source. MTR/LIPS remain TODO; the MAP note concerns sound maps, not proven terrain records.
Parallel format slice (7 formats, isolated worktrees, October 9, 2026):
MD2:
ModelFilerewritten as a bounded reader; 2,116 of 2,118 corpus members parse (838 geometry, 1,278 animation containers with opaque payload), and 2 version 207.201 files are explicitly rejected. Unused stubOpenTPW.Files/Public/ModelFile.csremoved.MD2 animation: position (Bézier/linear), rotation (slerp with easing curves), and scale tracks decoded and validated against all 1,278 animations; node matrices are parent-relative. The sandbox Totem plays
totemm1.MD2whenTotem.RSEtriggers ANIM_Main (30 ticks/s is our own choice); the smoke test requires changing nodes and pixels. Vertex animation and other record kinds remain undecoded (MD2-MODELS.md).MAP: TP2M terrain maps (128×128 cells, 5 pinned fixtures); 64 sound catalog
.mapfiles distinguished and rejected. Cell meaning unknown.RSE:
RideScriptFile+ static analysis; all 308 scripts parse, 84 opcodes used, none unknown.RideVMnow executes them (see RSE-VM.md): 33 opcodes fully in the VM, 51 via a hook that logs "unimplemented effect" (visitors, animation, sound, objects, ride controllers, park clock). All 263 startable scripts plus 44 children run for 60 s without errors; the sandbox Totem runsTotem.RSE, which determines when the originaltotemm1.MD2animation starts. Slicing, milliseconds, and CRIT_LOCK are inferred, not traced.Visitors (approximated, GUESTS.md): children are original sprites (
esprites.wad, ESP/FPC/TPC decoded, 8 sets × 175 frames, 5 directions plus mirroring). Fixed-tick, seeded simulation: arrival via bus stop and ticket booth (FixedItemInfo), entry, path finding with flow fields over the save connection bits, needs, choice using the.samDecisionVar weights, queue, and the LETMEON/LETMEOFF host protocol plus visitor opcodes viaRideVisitorBridge. The Totem fills with real visitors (start ≈3.3 s instead of 11.3 s) and lets them disembark again via HOP/WALKOFF/WALKGET. Speeds, need rates, arrival unit, and score formula are our own approximations. 600 visitors ≈0.06 ms per tick.TPWS/TPWI: 17 unique section markers located in the only fixture; content opaque. No other TPWI/TPWS file is on the ISO.
LIPS: found as
.LIP(639 inlips.wad+ 4 level files); strict reader, unit (probably µs) unconfirmed.MTR: only 11 ISO files (
Meshes/<taal>/*.mtr); structural reader, meaning and use by the game unknown. Tests viaOPENTPW_MTR_PATH.TQI/TGQ: all nine movies; container and EA ADPCM audio (bit-exact against an external reference) and TQI video (integer IDCT, 56–61 dB, not bit-exact). Playback via
--play-movie <naam>(SDL2 audio, audio clock, frame drop/hold, GPU, native smoke test); no in-game trigger (no evidence in the data).
Verification after integration: native assets + shaders 403 passed, 0 skipped; without assets 339 passed, 64 skipped; Release solution 0 errors; Metal smoke test 150 frames passed. Windows/Linux GPU not qualified.
GitHub CI for snapshot 5f23094: macOS and Ubuntu build/CPU tests pass. Windows had one assert failure because of UnauthorizedAccessException instead of IOException when replacing a directory. The test now distinguishes the OS-specific exception type; preserving the directory and cleaning up temporary files remain required. Windows re-verification is still needed for this change; CPU CI is not GPU, audio, or full native release qualification.
Terrain/save slice (October 9, 2026, worktree terrain):
MAP axes proven: file row = game X, column = game Y, cell = 10 MD2 units (Standard.sam fixed items,
bridge01node, rasterization of all jungle MD2 triangles).base.MD20x6C block decoded as a 96×85 heightfield: corners, holes (= MAP water, entrance, and fixed walkways in all four themes), and ground texture slots.Five MAP bits typed (
MapCellFlags); bit 0x04 and header values remain opaque.Easymode.TPWI: per-cell grid (16,384 records, MAP byte identical to
base.map, path/connections/occupancy) and SYSG object records (Info.Id → .sam names) decoded; read-onlyOriginalParkImport(78 path cells, 11 objects, 3 fixed items). Money, time, and guests are not imported (not verifiable with one fixture).--load-original-level jungle: original terrain meshes and heightfield, imported paths and footprints, build rules on proven bits.After rebase onto
55b1b93(RSE VM, BF4 text, TGQ, MD2 animation): native assets 479 passed, 10 skipped (opt-in MTR/native shader tests); without assets 397 passed, 92 skipped. Metal smoke test passed for sandbox (script, animation, text, save/load) and--load-original-level jungle/fantasy.
Languages (October 9, 2026)#
All five bundled languages (English, Danish, French, German, Swedish) decode:
.strnow usesMBToUni.datfrom the language's own folder (Danish/Swedish 248 characters, others 249). Previously 2,254/2,358 Danish and 2,268/2,358 Swedish strings were garbled, plus 3 French (œ) and 1 German (š). The 24-bit string length is now read in full; UITEXT strings longer than 255 characters were truncated (English too). The character table is built once instead of per character.Language selection:
--language,OPENTPW_LANGUAGE, or theLanguagesetting; defaults to English if installed, otherwise the installed language. Other languages via--language-data/OPENTPW_LANGUAGE_DATA: a read-only, case-insensitive overlay of the extracted CD folders<Lang>/dataand<Lang>/Meshes; nothing is copied to the game folder or git. Strings and fonts (Localization, sandbox panel) follow the choice; speech, LIP, and banners are only resolvable, not played or drawn.Tests: synthetic reader and resolution tests; with the CD data per language, 21 string tables / 2,358 strings, pinned examples ("Gå Online", "Koppla upp", "d'œuvre", "Unfuhg Gibsniš"), glyph coverage in all 33 fonts per language, and LIP/banners. Native Metal smoke test passes in English and German (readback difference 0). Full suite: without assets 394 passed / 98 skipped; with
OPENTPW_GAME_PATH466 / 26; plusOPENTPW_LANGUAGE_DATA482 / 10 (the 10 are the opt-in native shader and MTR tests); 0 failed.Open: no original menu/UI screens, no language switch during play,
UniToMB.dat(text input) unread, other editions not examined. See LANGUAGES.md.
Park economy (October 9, 2026, worktree economy)#
Layered
.samsettings (levels/Standard.sam→ themeStandard.sam→Easy_Standard.sam; category → object →Easy_object files) with a source reference per value. Inventory of all economy, staff, research, and goal settings with meaning and use in ECONOMY.md.ParkEconomy: deterministic park clock (first day = 240 fixed ticks with 30-day months; now the traced 248 ms turns and civil calendar, see ECONOMY.md), pause/speeds, ledger with the original UI categories, entry price, shop and sideshow prices, build, upgrade, cell and land costs, scrap value, loans (LOANNAMES), bankruptcy after six months in the red (TAG_SYSTEM texts), staff pool, wages (BaseWage × PayMultiplier), training, mechanics/cleaners (approximated), research, challenges, golden tickets, and keys. Approximations are documented per line.Easymode.TPWI: loan table (8 × 32 bytes; repayment floor(amount/months) = 0% interest, hence
Easy_Standard.sam) and challenge list (8 × 45 bytes = jungleChallengesInThisLevel) found and checked. 87,987 / −12,013 remains unexplained (odd, while all build costs are multiples of 5); the balance therefore starts atInitialCash.Own versioned park save format (JSON, atomic, strictly validated) with clock, RNG, money, staff, research, and goals; round trip and identical continuation after loading tested.
--load-original-level <thema>: economy runs on the fixed clock and logs date/balance per in-game day; the smoke test pays one month of wages and performs a park save round trip (all four themes passed, macOS arm64 Metal). Full suite: without assets 427 passed / 122 skipped; withOPENTPW_GAME_PATH519 / 30; plus language data 539 / 10; 0 failed.Open: visitor spending, staff behavior/strikes, advisor, HUD screens (other slices), and original formulas for day length, interest, park rating, and keys.
Compatibility (October 9, 2026)#
Own TrueType parser/rasterizer reads the 17 fonts in memory from
fonts.wad(identical totpwfnt, pinned hashes, metrics, and raster hashes)..sgn(84 files) supplies two LOGFONT text lines per sign; the jungle gate shows "Lost Kingdom" in Young Itch AOE 144 px (the native smoke test requires text pixels). All sign characters in six languages have a glyph in all 17 fonts.--cd-data: read-only, case-insensitive fallback for missing movies and music, with startup diagnostics; synthetic minimal-installation test.Detail presets Low/Medium/High from
low/med/high.sam+ Enhanced (EXT); filtering/mipmaps to samplers, view distance to the fog;IGraphicsSettings,graphics.json.Profile Original (default) / Recommended / Custom with stable fix IDs,
CompatibilityFlagssave metadata, and hash-bound in-memory data corrections (megacost.sgn refers to a font that is not bundled).Robustness: missing strings → English → internal name (found UITEXT[473] outside every table and French [457] empty), damaged SDT entries skipped,
UniToMB.datread.Approximations are listed in the register in COMPATIBILITY.md.
Advisor/compat integration (October 9, 2026)#
Advisor
3a5107cand compat7065401were merged into main517c588with history preserved, onintegrate-advisor-compat-20261009(b1eac76). Guests, park economy, display settings, and their existing smoke tests remain present.The advisor used logical window coordinates directly on the world target;
--render-scale 50therefore clipped the mouth outside the target. The viewport is now converted to target pixels, with three regression cases (100%, 50%, HiDPI). The placement remains the registered approximationADVISOR-003.macOS arm64 build: 0 errors. Full suite with original assets and language data: 689 passed / 11 skipped / 0 failed (700 tests, before the three viewport cases were added). Then the advisor subset including new cases: 17 passed; MTR/native shader subset with original language MTR fixtures: 41 passed / 0 skipped.
Native Metal/SDL advisor smokes: English
sp_001(513 changed mouth pixels), Germansp_001at 50% render scale (142 pixels), English with test HiDPI 2× (1,948 pixels). All three run through the audio queue and close the mouth after the clip.Native jungle smoke: gate text from the original TrueType font, Totem RSE with boarding and disembarking, guest sprites (3,194 readback pixels), BF4/output readback, monthly wage ($92), and identical park save round trip pass.
The existing compiler and dependency advisory warnings are not resolved; no dependencies added. Windows/Linux native execution and comparison with original advisor and sign captures remain unverified. The registers in LIPS.md, COMPATIBILITY.md, GUESTS.md, and ECONOMY.md still apply.
Original UI: front end and HUD (October 9, 2026, worktree frontend)#
Evidence (UI.md): the 278
ui.wadmodels are written in a virtual screen of 2048×1536 (full-screen frames span exactly 0..2048 × 0..−1536); HUD models sit at their screen position, and generic buttons/windows sit at the origin. Child nodes are alternative state frames (normal/disabled/highlighted/pressed), not parts; this explains the "uncomposed" bounds from MD2-MODELS.md. Texture V runs from bottom to top; pure pink is transparent.lobby.waddescribes the 3D lobby (four islands, camera positions, sky color).The default start is now a front end in the original style: 3D lobby with the four islands, a menu with original buttons, texts, and tooltips (UITEXT/UIHELPTEXT), game mode, load, options, and quit; then the original level with a HUD (main panel, date, balance, build arm with categories and rotating preview models, info arm, messages, pause menu).
--sandbox,--load-original-level, and a bare--smoke-testskip the front end as before.Options: original rows (resolution, volumes, pop-up help) plus OpenTPW rows (window mode, upscaling, render scale, interface scale, language) in the same style, with the original confirm/revert/restart messages. Missing labels come from our own supplementary table, translated into six languages. Display is handled via a stub of
IDisplaySettings(display slice).Approximations (documented): positions of elements placed by code, font level per resolution, speed buttons, calendar and starting balance stub (the starting balance itself from
Easy_Standard.sam), Totem price fromTotem.sam. Interfaces for economy, catalog, and display are in UI.md.Tests: without assets 433 passed / 129 skipped; with
OPENTPW_GAME_PATHandOPENTPW_LANGUAGE_DATA552 passed / 10 skipped; 0 failed. Metal smoke test--front-end --smoke-testpassed in all six languages (text checked texel by texel in readback); the existing sandbox, jungle, and fantasy smoke tests still pass.Open: original screen positions, profiles/online, cursor, button animations and sounds, comparison with original captures, D3D11/Vulkan.
Original objects: rides, shops, sideshows, features (October 9, 2026)#
Catalog of all 274 objects of the four themes from WAD +
.samlayers (Info.Id, OBJECT_NAMES name for 220, category, shape/footprint, raw cost and upgrade values, model, script, animations); 911 animations bound to their model.Shape, rotation, and entrance/exit verified against Easymode (0°, 90°, 270°); 180° and non-square rotations follow from the same rigid rotation (derived).
ANIM_* → file letter/variant (c,i,l,s,m,e,u,b,r,o) derived from file names and scripts; all 262 object scripts run for 60 s in one world without faults.
Easymode import shows real models instead of orange markers; building, rotating, and removing each catalog object works in the sandbox and original levels (ImGui panel). The Totem prototype is now a thin wrapper; the native smoke test (both modes) shows Sun God, Crazy Ape, Tom Tom Twister, and Eruption animating.
Official bonus objects (35
_name_N.wad) via--bonus-data/OPENTPW_BONUS_DATA.Not implemented: visitors (only
IRideVisitorBridge), sound/EVENT/particles, coaster/kart/tour controllers, vertex animation, original build rules and costs. Details: OBJECTS.md.
SDT sound effects: MPEG Layer I decoder (October 9, 2026)#
Mp2Decodernow also decodes MPEG audio Layer I (MPEG-1 and MPEG-2/LSF, all sample rates, mono/stereo/dual/intensity stereo, CRC skipped), the format of the sound effects and speechz_error. Layer II restrictions are unchanged.Verification without original files: 73 generated Layer I streams are the same length as, and differ by at most 1 LSB from, ffmpeg's
mp1decoder. Unit tests cover silence, DC, intensity stereo, frame size/padding, forbidden allocation, and a stream pinned against ffmpeg.Tests: without assets 592 passed / 198 skipped; 0 failed.
Open: run
OriginalLayerOneSoundEffectsDecodewithOPENTPW_GAME_PATH(the MPEG version and sample rates of the original effects are still unconfirmed); sound effects are not yet played anywhere in the game. Details: LIPS.md.
Linux preparation M7 (October 9, 2026)#
Measured in an Ubuntu 24.04 x64 container with .NET 8.0.425, Xvfb, and Mesa llvmpipe (software Vulkan 1.4); without original assets.
Fixed: Vulkan startup failed on every distribution with glibc ≥ 2.34 (
vk1.0.25 loadslibdl, but onlylibdl.so.2exists);LinuxNativeLibrariesredirects this. The app then creates an SDL2 window, Vulkan device, and swapchain (1280×720).Fixed: case-sensitive paths.
BaseFileSystemcorrects existing segments to the spelling on disk (exact match wins); the data folder is found in any spelling (data/Data/DATA). Three regression tests fail without the fix.Clear errors for a missing display (X11/Wayland) or Vulkan driver.
dotnet publish -r linux-x64|win-x64|linux-arm64 --self-containedsucceeds; the linux-x64 build starts. linux-arm64 lacks nativelibveldrid-spirvandlibcimgui(blocked); Windows is built but not run.Tests: 605 passed / 189 skipped / 0 failed, including native shader tests (
OPENTPW_NATIVE_SHADER_TESTS=1) on Linux x64.Open: rendering, input, and audio with original assets on Linux; running Windows; linux-arm64 natives; packaging. Details: RUNNING.md, FEATURE-MATRIX.md.
Linux with original data; Theme Park Inc comparison (October 9, 2026)#
Using the Mac CD of Sim Theme Park (HFS, November 2000) as original data:
Linux x64 (Xvfb, Mesa llvmpipe): the sandbox smoke test (439 frames, original objects, animations, Totem script, BF4 text, upscaling, fullscreen, save/load) and the front-end smoke test (lobby, menus, jungle, HUD, economy) pass. For this, the Mac data temporarily received the PC fonts
GAMEBOLD*.bf4; none of that is in git.Fixed: every
Shadercreated its ownFileSystemWatcher; on Linux that is an inotify instance (default 128 per user), and the lobby crashed. Now there is one watcher per shader file; on a shortage, only a warning.Layer I: all 2,650 Mac clips equal to ffmpeg (≤ 1 LSB, same length).
The Mac edition differs from the pinned Windows edition (language folder
American, QuickTime movies, nofonts.wad/lips.wad, 290 objects); the tests that pin Windows hashes and counts fail on it, see THEME-PARK-INC.md.Theme Park Inc compared: same engine family and identical RSE VM; textures are EA
SHPI/.fshinstead of.wct. Details and follow-up work: THEME-PARK-INC.md.
Decision: provenance of game rules (October 9, 2026)#
Game rules count as original only when they are traced back to logic in an original executable: the unencrypted PowerPC
SimTheme Park(TPW) andGame.exe(Theme Park Inc). Manuals, websites, and community sources remain[APPROX]; example: the Instant Action rules from the manual andUITEXT.str.By decision of the project owner, the decrypted no-CD
Game.exefrom the Theme Park Inc CD may be statically analyzed (interoperability, Art. 6 Software Directive); none of it is in git. Conditions in COMPLETION-PLAN.md.Checked: that
Game.exehas the same sections as the SafeDisc original with readable code (.textentropy 5.83 instead of 7.92) and the import list of TPW'sTP.ICD(DDRAW, DINPUT, DSOUND, QMIXER,wea*, WSOCK32, USP10). The PE timestamp (1996) was rewritten by the crack and says nothing about the build.
Final pre-push remote updates — October 10, 2026#
Remote commits 2160e19 and f4482c4 are retained: read-only PS2 FKNL/SSH viewing/export support and button-label fitting. The generated register was reconciled at 136 unresolved IDs. The affected FKNL, text-fit and widget filter passed 16 cases; one private PS2 corpus case was skipped because its fixture path was not supplied. Release build passed with zero errors, and the Dutch Metal smoke passed 264 frames with strict text readback and the existing online/folder, mode, payment, reload and read-only guards. No wider codec or research batch was included in this merge.
Automatic advisor (October 10, 2026)#
The advisor speaks by itself in parks for the traced game events: level start (events 10 then 0: welcome response 1 from the level bank; in Instant Action also advice 323 → response 587 → global 606), bankruptcy (event 2 → 274/275) and park open/close (events 3/4 → 308–311). Descriptor rows for these five messages are in
AdvisorTables; responses come from the shipped table by stored ID. The scored eight-slot queue, eligibility and history are a port of the reviewed lane model; scores and group controls come fromAdvisor.samat runtime. Park open/close score 20 is below the minimum 25, so it queues and never plays.--no-advisorand the Game Options Advisor/Tutorial switches are honoured. Details and the seven new approximations ADVISOR-015–021: LIPS.md, "Automatic advice".Tests: full suite without assets 895 passed / 233 skipped, with
OPENTPW_GAME_PATH1,065 / 63; 0 failed. Advisor subset with assets 63 / 1 (German overlay not supplied). Native macOS arm64 Metal--smoke-test --load-original-level junglepassed and logged response 1 from/levels/jungle/Speech/speechHD.SDT(28.63 s, 35 LIP marks).Open: the other 346 descriptors and computed score producers, the original producers' conditions for events 2/3/4, the pause-aware advisor clock, the animation/deferred speech start, and listening/visual checks of the result.
Browser build, official server and website (October 10, 2026)#
Pitch variation and build effects (October 15): every sample playback now draws its pitch step from the sound's signed range on the sound chooser stream (
min + r % (max - min), after the volume draw) and plays at ratio 1 for step 0, otherwise 2^(sign x (|step| + 1) / 96), as tp.exe0x6bc170and the mixer wrapper0x6d2820do; the tables (0x782f40/0x783540, one step off) hold those powers written with six decimals, and OpenTPW computes them by that rule, and the six steps of the scream, chain and crowd sounds (0..6, the maximum never drawn, 2^(1/96) never played) match the 141 playbacks measured in the original's video, so the repeated screams and laughter are detuned like the original's (AUDIO-003 retired for pitch, narrowed to the delay of non-chain sounds, reverb, the fixed-pitch flag0x10000and a parameter-bound pitch). A voice out of range without the any-distance flag (event flag0x200) has its sample stopped by mixer message 3 (0x6bca70-> handler0x6b8d60->0x6bb7c0), for one-shots and sentence segments, and a chain starts no new child (AUDIO-038 narrowed: a chain's playing children play out, loops keep advancing, nothing read restarts a stopped loop or shows how a sentence resumes). The build, demolish, repair and upgrade effects every category.samnames (rides 79 / 75 / 51 / 89) start at the object's footprint middle and are sized to it (0x558e7c,0x5590f7,0x556DE0,0x55A100,0x520030); REPAIREFFECT 1 and 0 switch the repair effect (PTCL-908 narrowed). Captured in the native jungle level: a build shows green and yellow stars over the footprint, a demolition a green and white burst. The leaked-chain count of a 120-minute jungle gate run is 0 of 791 STARTSCREAM (169 in the all-rides gate), so the scream rate is not a leak. GraphicsSettings no longer says the particle pool uses density 1000 (it is 500). New:AudioPitchTests,ObjectParticleEffectTests,ScreamDiagnosticsTests, a volume-extent case inParticleSystemPortTests;--debug-object-effectand--debug-sim-minutesfor captures and diagnostics.Coaster three-node station (October 15): the coaster's station is the original's three nodes (COAST-029, tp.exe
0x436ac0, read again at the instruction level): S0, a StdPylon in the cell beyond the<cell (node flags0x400, winch, no previous link), S1, pylon-less on the exact middle dummy (0x200 | 0x400, winch) and S2, a StdPylon in the cell beyond the>cell (0x200, no next link). The three dummies are read from the station model with the placement's rotation applied (CoasterStationLayout; all 12 PC stations, four rotations, checked against the shape's<and>cells); the pylon heights are the dummies' heights without the fMinHeight/fMaxHeight clamp (creation parameter bit 4). The end node of a finished track stands on S0's knot with the tangent of S0 (0x435570,0x431660), S0 leaves straight toward S1 and S2 straight along the platform, the closing click is S0's cell, and no pylon stacks on a station node (0x200/0x400). The sampler's closing pair E → S1 emits one sample, so the list starts on S0 and the braking zone, the station window (the knot coordinates of S0 and S2) and the swing's fade follow the original's frame (PlatformStartand the two-node workaround are gone, COAST-019 retired); the platform links S0 → S1 and S1 → S2 are ordinary links of the collision pass (COAST-004 narrowed). COAST-029 stays open only for the stations whose dummies lie below the StdPylon's h0 (Ghosta Coasta, Scatty Batty, Candy Coaster, Escape Velocity: the loft parameter stops at 0, so S0 and S2 stand above the middle knot) and for the middle knot's fTrackHeightAdjust. The controller has the original's states (COAST-012 retired,0x435730): 1 unfinished, 2 built or out of service (trains run empty, no station step), 4 open, 8 closed. Entering the coaster tool closes the ride object and sets state 2 for a finished track (its riders and the admission ring leave, the trains stay) or 1 (the trains are removed); leaving the tool opens the ride again when the state is 2 (0x447520is the tool's entry, not its exit as round 2 labelled it). A save with the two-node station migrates on load (the placement's three nodes, the saved pylons, the end node on S0, a new sampling, the riders of the old trains leave); the coaster hash changed shape (docs/DETERMINISM.md). Register: COAST-012 and 019 retired, COAST-004 and 029 narrowed, COAST-014, 015, 024 and 030 lost their station clauses. The coaster tool panel (COAST-028/035) is untouched.Coaster tool panel (October 15): the coaster tool shows the original's slide-out panel with its nine buttons (tp.exe
0x4982a0,0x446fa0, table0x751530; thecb_*models of ui.wad at the table's rectangles, their tooltip and click help). Every sub-mode follows its handler read at the instruction level: build and loop (0x445220,0x442cd0), height (0x441a00, 0.005 per pixel within the loft range of0x433280, money settled on the release), rotate (0x441e80), tilt (0x442010,0x441cd0, the hand-set bank keeps its node out of the auto-bank pass), move (0x446d50,0x445a70), stack swaps (0x4423f0,0x4425c0) and the demolish button's cut (0x446740). The cut is what extends a finished circuit again: it sets state 1 and leaves the track open at the chosen pylon (or, cut in the middle, with a gap that new pylons fill and a click on the chain start closes); a test finishes a coaster, boards guests, cuts, extends, completes and checks that every boarded guest leaves. The enable mask is0x445910(build and loop off on a finished circuit, demolish off otherwise). The build cursor is the original's spare cursor node drawn as a translucent blue or red ribbon without a pylon, the placement area yellow cells in the box of0x434f10(the per-cell test0x5243a6is traced, its cell types only partly known). The mouse wheel, Tab and Enter controls are gone (Backspace stays as an extension); saves carry the hand-set yaw and incline and the cut. Register: COAST-028 and 035 narrowed, the mouse-to-value rate and the placement test traced (the pointer scale, picking by cell, the area's occupancy test and the guessed clip angles stay approximations).Coaster tool panel review fixes (October 15): the way back into the tool exists: a selected coaster shows the ride window's
b_trackbutton (control0x3e2a, handler0x4af200→0x4988c0→0x4474d0, read at the instruction level) on the ride window (the table-driven one, at its original place), so select, track button, cut, extend and complete all work in normal play (tested, and the jungle smoke does it through the HUD). The cut refuses the second release on the same station node (0x44678c) and any cut that starts inside the station; a loop-tilted loop rotation (−0.35) and a height above the model's top (t above 1, as0x434680allows) load again; moving a stacked pylon away and back keeps the stack whole; the panel's background takes its clicks; Backspace waits for a drag and a released drag while paused ends; a stale cut start is dropped; a save taken in the tool lets the ride out on load; a removed station cleans the tool up; drags fit the controller once, on the release. The[EXT:coaster-tool-admission]claim was wrong (4 → 2 and 8 → 2 run the closing move,0x43587f..0x4358cb): it is a BIN tag now and the one difference left is[EXT:coaster-state-clear].Sign and gate round (October 15): the PC v2.0 video settled sign composition. Sign faces now start transparent (COMPAT-030 retired,
BackingColorgone), so wood and sky show between the letters, and paint masks are shifted by their stored offsets (COMPAT-003 narrowed: Wilde Aap's drop shadow, the gate's shadow; growth and blur stay open). The gate shows the park name on two lines (SplitAtMiddleSpace) with the stored paint and no cream override; the earlier gate-paint-legibility decision (COMPAT-031) is contradicted and recorded as such, and the upward sign normals that came with it are gone (they rendered the relief letters white; with the model's own normals the gate is dark stone with grey-blue letters, as in the video). COMPAT-001, -004, -007 and -016 are narrowed (ride signs already show the localized type name). VM-901 is retired:WAITABSwakes after the unsigned distance to the deadline minus the clock fraction, so a wait no longer ends at once after 2^32 ms (tests at the wrap). ADVISOR-025 records 0x4B9340 as the HUD golden-ticket/key counter refresh, ADVISOR-027 gains the video's slap-sound evidence, and DET-plan.md and DETERMINISM.md are corrected (rotate by 13,ScriptRandom). Review fixes: the gate overlay's normals are converted to engine axes like its positions (the first version passed model-axis normals, so one face lit up and the other down), the sign halves are straight alpha with bled edge colours ([EXT:sign-straight-alpha], no more double-darkened fringes), the engine's alpha test and unsorted blend for sign faces is COMPAT-032, and thefidelity_register.pyempty-register marker is a whole-line comment with a test. Sign baselines moved twice and were re-pinned.Silent automated runs (October 15): smokes, captures and park-resume runs open no audio device unless
--smoke-audiois given (SdlMovieAudioOutput.Suppressed,[EXT:silent-automated-runs]), so the many test runs on a developer machine make no sound;--silentorOPENTPW_SILENT=1silences any run. Every audio path already falls back to the wall clock without a device, so timing and smoke results are unchanged.Layout-table review follow-ups (October 15): the TPI layout-load confirmation lists the tick first (a source scan of every
UiDialogscaller guards the order); Escape and the right click (RMBCancelOn) close the object window; the window layout is cached; the shop and sideshow windows use their own row kinds, the ride one shows the age; the theme-start dialog, the game-mode screen and the training-budget window follow their tables; the object windows gain the queue, track and apply-all buttons; the lobby shows a menu hint. Restart Park leaves an older automatic checkpoint alone.Original UI layout tables (October 15): the Windows executable holds the layout command streams of its windows (the grammar of the Mac tables, checked against the window builder 0x65FD58 and its dispatcher 0x66076E), and
tools/ppc-analysis/lanes/ui/tpw_exe_layouts.pygenerates the derived rectangles, help ids and ui.wad model names of ten of them (ride, shop and sideshow windows, message panel, camera panel, camcorder, confirm and name dialogs, the two lobby tables) plus the 22 pointer ids and the tool-to-pointer rules (0x4899C0, 0x52F950) intoUI/Original/OriginalLayoutTables.cs; the script fails on any unexpected command, address, count or model hash, and--checkcompares the file. What uses them: the object windows (w_med frame, yellow name, preview, white stat rows, the round buttonsb_door,b_erase,b_callmech,b_upgrade, Ride it!, the arrows, the list and the tick; sliders,b_queue,b_move,b_trackandb_applyallare not drawn), the help box (fixedf_helpbgrectangle 574..1474 ending at y 1520, UI-010 retired), the confirm dialog (the (500,233)-(1516,830) window with the stacked tick and X buttons, the first choice the tick), a frameless cyan pause menu in the original order (Restart Park only for Instant Action parks, Publish Park opens the online publish flow, Go Online stays as[EXT]), the lobby at the table rectangles without logo or menu column (UI-014 retired; its Escape menu holds Go Online, Load as[EXT], Options, Resume and Quit; the globe button opens the online world), the full pointer table with the tool rules (queue, track and camcorder pointers; link, end, cash and the crosshair stay unchosen), the message panel'smessagel/m/rrectangles withmb_eraseand two action buttons whose art follows the action's kind (no message uses one yet), the camera slide-out panel (camcorder, postcard and the[EXT]view cycle), buy-list rows of 41.4 units and no white lightning flash in the lobby. UI-093 retired (the E key is[EXT:ride-view-key]); UI-006, 013, 018, 024, 025, 029, 042, 044, 047 and 100 narrowed. Not done: the right-click back-out gated on RMBCancelOn (UI-012), the ride view and camcorder overlay (another worker), the employee, training-budget and player-screen tables, the game-mode screen on the name dialog's table.Ride view (October 15): the ride view is the original camcorder now (UI-093/094/095). The eye is the model's seat (the first dummy with bit 0x1000 and value 1, tp.exe 0x44b220), so every attraction with such a dummy can be ridden, not only coasters (a coaster uses its front car model's seat); the orientation is the seat's with the traced one-frame blend (weight (1000 - dt_ms) * 0.0005, about 0.48 at 30 fps) and the pointer turns the view (dead zone 0.2, 3.5 rad per unit horizontally, 1.2 / 1.0 vertically; the camera can roll with the car). The screen shows the
viewfindermodel and the eject button at the table rectangles with the HUD hidden, a yellow crosshair and 0.33 s of generated TV static on entry and exit ([EXT]). Exits: Escape, C, eject, and a right click after 2 s with RMB cancel on; leaving re-centres the park camera on the object under its target. The info arm has the b_rideit button. Not traced: the field of view, the car choice, the yaw rule on exit.Tour register round (October 15): the TOUR items were traced in tp.exe (docs/TOURS.md, "Register changes"). The tour tick is 62 ms, not 31: the world step counter's low bit gates the call (
0x0054F5D7), and the draw divides by 62 ms, so flights last twice as long and cars move half as fast per second (TOUR-001 retired; the wall-clock catch-up is[EXT:tour-fixed-step]; saves from the 31 ms clock still restore). The cars are drawn as the original does: the model's +Z axis is forward, yaw = pi/2 - heading, roll negated, pitch counted in 1024ths (four times finer), applied roll, then pitch, then yaw, with the per-frame quarter/eighth smoothing, and the riders hang from a head node picked by the car's own random word (TourPose, TOUR-008 narrowed to the animations and shadow). A new car keeps its slot's stale heading, corner, approach heading and seat ids, and they are saved and hashed (TOUR-009 retired); closing no longer forces the ready flag, so a car whose departure was ordered stays docked with its riders until the ride reopens, and deleting the ride still releases everyone (TOUR-010 retired). The cars clear the.hmpheight map of the object on a cell (ObjectHeightMaps; all 274 catalogue objects ship one and every footprint lies inside it at all rotations; TOUR-005 narrowed). TOUR-006 is[EXT:legacy-tour-save], TOUR-007 is narrowed with the walk-off formula and left to the walk owner (no walk nodes exist yet), TOUR-002 records that thrown-off riders keep inflating the rider count in the original. Tests:TourRegisterRoundTestsand the changedTourControllerTestsandTourAssetTests.HUD video round review fixes (October 15): the software pointer is drawn last (after the advisor and progress overlays) and the system pointer is hidden only when the cursor art from
Data/ui/cursors(found case-insensitively on disk) is loaded and decodes, the pointer is inside the window and ImGui does not want the mouse; an empty message tube no longer swallows park clicks, opening a message closes the info arm, the status line hides under the info arm and message panel, hover selects an applicant only when the pointer moves, and per-frame allocations are gone.HUD video round (October 14): a gameplay video of the Dutch PC build settled the HUD and window register items. The hire window now has the Vaardigheid gauge and the mini balance (money in, staff costs plus the wage, other costs, balance) that follow the hovered candidate; the click-to-hire trigger stays (the original's 0x400 list message and its advisor line, UI-083 retired) and the 3D candidate figure is registered (UI-082). The yellow text under the cash is the cost of the build action under way and is hidden outside the build tools (UI-047). Pending messages stack in a red message tube left of the HUD, left click opens one in a green slide-out panel and right click deletes it (UI-025); OpenTPW's own feedback lines moved to a status line. The popup help box sits at the bottom centre on translucent black (UI-010). The golden ticket and key counters show only above zero as "n ×", keys are tracked (UI-051). Excitement, reliability, repair and life are red-to-green gauges (UI-028/046), the buy list's third column is a tick box (UI-050), and the park draws the original glove, arrow and no-entry pointers (UI-100). UI-011 is retired, UI-042 narrowed and the shortcut letters of the help texts recorded under UI-012.
Particle allocation test (October 14):
ParticleSystemPortTests.TickAllocatesNothingmeasures windows of 100 ticks until one is clean, so tiered-compilation allocations in a busy full run no longer fail it; a real per-tick allocation still never gives a clean window.Rides register round 2 (October 14): the rides items were traced in tp.exe and the code follows what was found (docs/OBJECTS.md, "Retired and reclassified"). Names: the executable binds OBJECT_NAMES by Info.Id through a 281-row table (0x7488D8),
ObjectNameTable, instead of the English matcher; 262 of 274 entries now bind (only the three tools of each theme do not), the gates, signs, lights, seaplane, loudspeakers and renamed rides get their names, and the fantasy Fountain and the space Crater point at the right entry (RIDES-010 retired; COMPAT-016 cites the table). Shapes: every symbol comes from the executable's 19-row table (0x7396C8) with a cell type and a compass bit; the entrances8 6 4 O, the exitsXandWand the cellsQ # Dexist now, the open side of an access cell comes from its symbol (exit: its bit, entrance: the opposite), all 209 corpus access cells open as before, and the bit-to-axis mapping stays APPROX (RIDES-012, medium confidence). 12-byte vertex block: the PC sampler does read it (0x4718F7). The table holds one pose per tick (duration + 1 poses, all 30 records), the sampler shows posetrunc(time)with no blending, andObjectAnimatordoes the same; 19 of the 30 records (speakers, rocks, tree, droid, plane) were drawn wrong before, and the 10 catalog clips that were reported as limitations play now (RIDES-041 retired; docs/MD2-MODELS.md corrected). Upgrade completion sets the script speed bias to the new level'sInitSpeedwhen above 0 (0x4DF8F0, RIDES-033 narrowed to the unmodelled ride-settings UI). Low detail:stextureandssharetereplacetexturesandsharetexexactly when the active detail has TEXTUREQUALITY 0 or 1, and they hold every texture the full folders hold (RIDES-022 retired).coaster.samis the coaster's own settings as in the loader (0x413C10, 0x42FAD0; RIDES-009 retired, values identical). Also retired: RIDES-017 (build-menu filler 0x4AAF70), RIDES-036 (UV pass gate) and RIDES-043 (objects load in set mode; the TrackMaster Add-mode remainder moved to COAST-026); reclassified as OpenTPW conventions: RIDES-026 ([EXT:md2-engine-scale]), RIDES-030 ([EXT:malformed-texture-coordinates]) and RIDES-038 ([EXT:trig-anim-speed-guard], the corpus has four literal uses from 1800 to 4000); narrowed: RIDES-011, 012, 019 (the original picks bus, seaplane or ferry per arrival with the LCG at 0x51A2F0, not implemented here), 024, 025, 031, 033, 035 and 044. Open and not implemented: in Instant Action the original does not load an object withoutEasy_<object>.sam(0x413AC4), which would change the objects of that catalog (docs/OBJECTS.md, "Remaining gates"). Re-pins: see docs/DETERMINISM.md.Advisor, compatibility and VM register round 2 (October 14): the advisor's fixed sequences are imported: the ten rows in use of table
0x76DC18(AdvisorFixedSequences), a span of the clip sum + 1000 + clip 15, a row that sums to 0 (sequence 28, or clips missing from the archives) generated instead, the immediate start derived from "first clip is not 14", and the timer entries' effect (particle0x521E60, sound0xC6,0x4B9340) registered as ADVISOR-025; ADVISOR-016 is retired. ADVISOR-018 is settled at the instruction level: the animation sampler0x4735D0hides the advisor model at the end of the last clip (nothing queued, model flag 8, then0x45BDD0), which agrees with the earlier finding that the normal end of advice0x599880calls no Kill, so the model now hides when the sequence's clip sum has passed instead of staying for another second and clip 15 (LIPS.md fixed). Game events 3 and 4 are raised on every press of the open/close button and the Ctrl-O/Ctrl-C shortcuts (0x519EF0,0x40C410), also when the park is already in that state (ADVISOR-020 narrowed to event 2). COMPAT-017 is retired: the sign lines come from the selected language's file only and a missing SIGNA or SIGNB shows "MISSING STRING" (0x413600). HEADS-005 is retired: child and sound scripts have no head table on the PC (thing id 0 at init), so their ADDHEAD/DELHEAD do nothing; the per-child tables and the save refusal are gone and no pinned hash moved. VM-901 is narrowed: WAITABS keeps a wrapping 32-bit deadline compared unsigned, 0 meaning not armed, and wakes when the integer clock reaches it (0x553828); only a wait spanning the clock word's 2^32 wrap is unmodelled. VM-902 is retired: MIN and SEC read host-local time like YEAR to HOUR (0x5566FF,0x55674E). BLUEPRINT-002 is retired (the PC UV table and face builder0x53DF30match the whole-texture faces). Reclassified as OpenTPW decisions: ADVISOR-011, COMPAT-011, COMPAT-012, COMPAT-031, TPI-900 to TPI-904 and DET-016 (the player's park save already stores guests, scripts and the advisor). Narrowed: ADVISOR-006, -007, -012, -017, -022, COMPAT-019 (dlakeis the drained lake obstacle 1704 of Theme Park Inc), HEADS-001 and BLUEPRINT-003. The PC world generator0x516330rotates its state right by 13: DET-plan §4.3, DETERMINISM.md and the HEADS-001 text say so, and DET-013 to DET-015 now carry the port requirements (eight reseed sites, the savedmRandomSeed, the update order); the port itself is not started. This round took 16 IDs out of the register (VM-901 stays, narrowed) and added ADVISOR-025.Audio register round 2 (October 14): the second static round over tp.exe settled the open sound items (AUDIO.md "Register round 2"). Behaviour changes, each with a test: a bank lives under
Globalwhen its map record has flag 0x20 and otherwise in its own folder, with no second try (AUDIO-002; every shipped bank still resolves); one shared, advancing sound chooser (s·0x19660D + 0x3C6EF35Fstored on every draw,ror(s, 13)then>> 16or% range, a lone sound, sample or empty range draws nothing) replaces the frozen Mac reading, the crowd's separate stream and the fixed volume draw (AUDIO-035 retired; the Mac-versus-PC contradiction is documented in AUDIO.md and DETERMINISM.md, the park still reseeds and saves the chooser, AUDIO-037); the drawer plays 0x1C when it starts to close as well as 0xC2 at its end; flat one-shots with flag 0x8 loop like positioned ones (AUDIO-019); a placed scape sentence plays as a positioned sentence for the park's life (AUDIO-020); the listener helper takes the eye in the camera modes0x790ab0 & 0x16and the midpoint otherwise (AUDIO-021); the weather's constructed quality is never applied and the first update rolls a forecast at once, with the schedule on game-clock timestamps instead of day indices and the apply falling through to the roll test (AUDIO-026/027; the snapshot's schedule fields now hold game seconds, older day-index saves are migrated on restore); screams, the repair sound and EVENT sounds are positioned at the ride's footprint middle, the object and the key's model node (selector 0x200), and an unknown EVENT key plays nothing (AUDIO-032/008/908); the refused path click plays at the clicked cell (also fixingLevel.CellSoundPosition, which returned a height/ground mix);cat_ui0xD2 plays once at start-up; every front-end list line and row clicks like a button (AUDIO-012); the weather thing's own flat 0x21 rain voice sounds beside the level-driven one while it rains, which keeps following the drops in snow (AUDIO-015). Retired: 002, 006, 007, 010, 012, 019, 020, 021, 027, 032, 035. Reclassified as[EXT:...]decisions: 005, 013, 014, 024, 030, 031, 905-907 and the drawer window. Narrowed: 003, 004, 008, 009, 011, 015, 022, 025, 026, 034, 036, 900, 908. New: AUDIO-037. No canonical hash pin moved (the weather and the sound chooser are outside the hash, DETERMINISM.md).Tour rides take and release riders (October 14): the four original tour rides (Jurassic, Flightmare, Star and Tweety Tours) no longer leave guests in the queue. Their scripts'
TOURcommands, traced from tp.exe (the flying-car moduleFLY_), drive a controller of up to 20 free-flying cars with no track: a car lifts off from the ride's launch pad, flies a terrain-avoiding lattice walk for the ride's duration, returns, circles until the landing slot is free and lands, where the script unloads and loads the next riders. Real-script asset tests run each theme with 16 guests for ten minutes (boarded equals released, nobody left Using); saves carry an optionalTourspart, older saves restore with fresh controllers. See tours.Desktop setup chooses TPW or experimental TPI (October 14): the setup window offers Theme Park World or the experimental Theme Park Inc / Sim Coaster (
[EXT:tpi-viewer], building and guests only, no economy or campaign) with an edition-aware inspection that refuses mixed or wrong-edition folders and needs an available world; the TPI choice is stored beside the TPW paths insetup.jsonand starts through--load-original-level. An ordinary desktop start does not open the window: it uses the saved choice, then the old setting, then detection, and only a first start with no usable folder, a missing or invalid saved TPI folder or world (including a timed-out re-inspection) or--setupopens it. Options > Game files has an Edition button for switching on desktop, effective at the next start. The TPI/TPW world lists come fromGameEditionsinstead of a copy. Tests cover direct TPW and TPI starts, the wizard cases and the edition switch persisting tosetup.json. Review fixes: a saved, old or detected folder holding Theme Park Inc data no longer passes as Theme Park World (the window opens instead of every start failing);--setupwith an explicit tool mode refuses before any window; a stale or timed-out choice keeps the window open with the typed folder and a reason; and Options > Game files reports a timed-out check as such.Coasters drawn with their original track, pylons and cars (October 14): the track is the
coaster.samcross section extruded along the curve (ten slices per knot pair, V every six units) with the real track textures, so the minecart track has rails and sleepers, the Gorilla Thrilla a rope, the flumes water that flows and a ratcheted dry section where they climb, and chain lifts a scrolling chain. Pylons are the StdPylon/LoopPylon models stretched by their loft clip to the node height and turned by their rotate clip; cars are the car models posed on the samples with roll, pitch and yaw and spaced by their own length. A track under construction is the curve through the placed pylons and a ghost pylon at the cursor instead of straight green lines. Traced from tp.exe (rebuild 0x43eb70, slice emitter 0x43f4e0/0x43fd60, loader 0x42fad0, car pose 0x43ce20, edit step 0x435d50); COAST-026 is narrowed and COAST-033..035 added (docs/COASTERS.md). Rider heads in the cars and the dry/wet blend sections are not done.MULT traced (October 14): the RSE interpreter's case 48 in tp.exe (
0x553eb9) confirms OpenTPW's MULT: destination first,a × bwith a 32-bit wrap, the product in the flag word and a variable destination. VM-900 is retired, and DET-002 (the explicit world seed) is reclassified as OpenTPW's replay policy[EXT:explicit-world-seed].Server tests no longer hang on macOS (October 14):
ServerProgram.Buildturns off appsettings.json reload-on-change (--hostBuilder:reloadConfigOnChange=false, which a later argument can override). The server binds its options once, so the watcher did nothing, and on macOS starting it callssync(2), which never returns while a mounted volume (here a stalled SMB share) hangs; that hung every loopback-server test locally while CI on Linux passed. The news test's own web host skips the watcher too, andBaseFileSystem.CreateWatcherreturns its watcher unstarted (the caller subscribes, then starts it), so the test suite starts no watcher at all. The testLoopbackServernow builds, starts and stops within 30 seconds or fails with a clear message, and requests stay bounded byOnlineClient's HttpClient timeout.Placing and drawing staff (October 14): hiring no longer employs anyone at the gate: the staff window closes and the Place tool starts with the applicant still in the pool (it does not expire meanwhile); a click on a valid cell (grass, path, queue, queue end, owned, under no object) hires and places the member on the cell centre as an idle one with the whole map as patrol area, right click or Escape hires nobody. The employee view has a Pick up button (refused on strike, in hand, escorting or on an unsuitable cell) that starts the Carry tool; a valid click drops the member on the cell centre, idle, with no steering state, litter or toilet claim, and a mechanic loses its ride so the dispatch runs again; the patrol rectangle is never touched, cancelling drops it back where it was, a new pick-up first drops the previous member, and a save drops a carried member on its old cell. Staff are drawn as camera-facing sprites of
esprites.wadthroughStaffRenderer(folder by role and theme, bank from the member, clip by job: stand, walk at full or half rate, sweep, repair, research, strike, guard carry), resting members are hidden, and the tool shows the slot 6 dangling sprite over the hovered cell and a red ground marker on invalid cells. The only change inStaffWorldSimulationis theSynchronizecondition that leaves a member in hand without a position alone. New register IDs ECON-052/053, GUEST-013..016 and UI-097..100; testsStaffPlacementTests,StaffSpriteTests,StaffSpriteAssetTests; the native jungle smoke hires, places, draws (GPU readback), picks up and drops a handyman (STAFF-PLACEMENT.md).Saving with a screaming ride (October 14): a park can be saved while a ride holds a scream. The held scream is saved with its STARTSCREAM operands (band, level, script speed) and starts again on load; a stopped scream no longer counts as live (the stopped chain stayed in the ledger until the next STARTSCREAM, so most parks refused "an attraction is still playing a scream" after the first ride cycle).
Browser options no longer stop the game (October 14): the browser has no .NET configuration system, so opening Options → Game files read the old
Settings.Defaultand stopped the game with "Configuration system failed to initialize". The browser chooses its game folder on the page, so it no longer shows that button, and the old settings are read throughLegacySettings, which returns nothing in the browser or when a damaged user.config cannot be read.Water ride tracks, phase 1 (October 14): one water ride, Splish Splash on the Jungle level, works end to end on the traced original rules (TRACKS.md). The track layer mirrors the original's 40-byte cell record (origin type 16, three type-12 extension cells), the Q1 piece tables and adjustments, the 14 controller templates and the
.hmpheight profiles (HmpFile) are ported, and the water track tool lays two-click lines in two-cell tile steps, chargedCosts.WaterTrackCellper tile, clearing paths and marking bridges. The circuit walk (0x52A970) writes the attraction's validity word (the PC's +0x2C, which the park points read) and the segment numbers; the sections, collision objects and buoys are built in the original's fixed-point units.Wateride.RSEdrives aBumpControllerthroughBUMP1-14, 16 and 17 (the PC dispatch shows BUMP 5 is the validity read and BUMP 17 with 0 starts the water): integer steering, integration, walls, keep-out circles, boat collisions, laps and unload at 30 ticks per second, the sine table regenerated from the start-up code. Pieces and boats are drawn from the ride's meshes, and the cells, controller and boats are saved in the park-resume envelope. Jumps, tunnels and the water animation stay open; TRACK-001 to 021 are registered, QUEUE-004 is narrowed to karts and ARRIVAL-003 applies the water ride's track word. Review round: every tile records its ride (TRACK-021), so rides side by side never connect and a demolition removes only its own tiles; a circuit that overflows the section, object or buoy pool is invalid (TRACK-020); the park-resume capture and restore share one live-controller rule; the resume check bounds guests, positions, velocities and the tick clock and the restore checks boat indexes against the walked circuit; the canonical state covers every restored boat field; the tick and the renderer no longer copy the boat list.Go-kart tracks, phase 2 (October 14): the go-karts of all four themes run on the shared controller, end to end for the Jungle's Dino Karts (
GoKarts.RSEdrives a real race in the tests and the native smoke). Fromtp.exe: the grid (eight flag-2 buoys in a staggered pair of columns, then the finish buoy, oriented by the orientation bits), the n-th kart aiming at the n-th grid slot and parking there,BUMP 3starting the race with a per-lap thrust bias from the world generator, laps and the race over (the first finisher sets phase 3, the others leave at their next crossing, the last kart out resets to loading), broken karts coasting, and the effects: crash (cat_rides12), horn (EventMap slot 3 on the module LCG), exhaust (particles 1 and 10,cat_rides24), the engine voice, particle 15 at spawn and unload, the speed-40 animation switch. Karts are drawn with the four-probe pose over the piece's.hmpprofile (the hover karts of space and fantasy with a bob, a bank and a shadow instance), their riders as head sprites at the kart's head dummies, and the kart fields join the saves and the digest of kart parks only.BUMP 8returns nothing. TRACK-015 and 016 are narrowed (bumper cars; water spray), TRACK-023 to 026 added; QUEUE-004 now covers neither water nor kart rides.--debug-kart-trackplaces the ride for captures.Bumper cars release their riders (October 14): guests who rode the bumper cars of any theme (jungle Bumper Cars, Halloween, space, Bumble Bugs) never came out: the four
bumper.RSEscripts drive the ride withBUMPcommands and the ride had no controller, soBUMP 2never returned a guest (a headless probe boarded 16 and released 0, all 16 stuck inGuestState.Using). The shared controller now runs the bumper types (−1, −6, −11, −14) fromtp.exe: open sets phase 1,BUMP 4makes a car that drops at a random free spot of the arena (one keep-in circle and a ring of eight buoys),BUMP 12seats a guest in the first empty car,BUMP 3starts the session and every car counts down the duration the script set withBUMP 13; at 0 each car hands its riders to the leaving list, and with nobody left the ride goes back to loading while the cars stay. Closing, breakdown andBUMP 16follow the traced routines. Cars wander between the buoys on the shared integer physics. The real script of all four rides board, run and release 16 guests over several cycles inBumperCarAssetTests. A save from before the controller restores the ride freshly and hands its riders to the leaving list. The cars chase one another as traced (a random other car for 90 ticks), crash with the traced code 5 (silent in the jungle), throw sparks and run the first car's engine voice, and are drawn from the ride's own car meshes with their riders' heads; bumper state is saved and hashed only for parks with a bumper ride. TRACK-015 retired; TRACK-030 (arena centre) and 031 (look and sound ids) added.Advisor and compatibility register round (October 14): from the Windows
tp.exe: the advisor's audio now starts on the advisor clock as the original's does (immediately for sequences 16, 17 and 29, else stopped and restarted 800 ms after the request with the LIP clock moving there; the immediate start's LIP clock leads by 200 ms; ADVISOR-008 and ADVISOR-013 retired), generated sequences are built by the original's rule (AdvisorSequences, clip lengths from the advisor clip trailers; the clips themselves are still not drawn, ADVISOR-006 narrowed), the response span is the sequence sum + 1000 + clip 15 (counted twice for generated sequences; fixed sequences keep the estimate, ADVISOR-016 narrowed), and the model stays shown until "Kill advisor" (level exit), not until the speech ends (ADVISOR-018 narrowed). The advisor material draws both faces as the original's device does (ADVISOR-007 narrowed). ADVISOR-014 (synthesis window equals the table at0x70BD08) and ADVISOR-019 (balance fields +0x18/+0x1C are never read) are retired; ADVISOR-011/017/020 are narrowed to the traced rules and ADVISOR-024 is an extension. Sign text: the.sgnslot percent now scales each character's width (COMPAT-005 retired; the composed-sign baseline hashes of 71 of 75 signs were re-pinned), object sign lines keep 32 characters and line 1 loses a trailing "--" (COMPAT-017 narrowed), COMPAT-006 now names Uniscribe instead of GDI TextOut, COMPAT-008 and COMPAT-013 are extensions, COMPAT-011/012 are narrowed. 392 to 384 unresolved IDs.Advisor video round (October 14): from the Dutch gameplay video and the Windows
tp.exe. The advisor now wears a hat: each response's two accessory selectors (response record+0x14/+0x18,content/data/advisor-costumes.toml) show one node by dummy attribute (hard hat for breakdowns, security cap, handyman cap, research hair, bowler with bow tie, ticket and kiosk hats, fast-food hat with spatula, no hat for help text) and the level's theme costume (ThemeAdvisorCostumesinStandard.sam: pith helmet, axe, space helmet, fantasy helm) on the level advisor's own model. The clips are played: the node tracks give the rise and the sink, the blink toggles the blinks (vertex tracks still not), and the model hides when the clips have played out, clip 14's 1000 ms included; a new response restarts at clip 14. Contextual help is a new producer family: 81 help messages (content/data/advisor-help-messages.toml, replayed from the descriptor initializer0x5A0A50) are posted when the buy, hire, attractions, loans, finance, park-information, visitors and ticket-price windows open and withdrawn when they close; a withdrawn speaking help cuts off at once, counts as unplayed and gains a slap (three cuts discard it), while event advice is never cut. ADVISOR-002 and ADVISOR-023 retired, ADVISOR-006/009/022 narrowed, ADVISOR-026/027 added. Tests:AdvisorHelpTests(27) and a script test.UI register round (October 14): findings from the Windows
tp.exeland. The hire window's control 9366 is the plain cash label ("Cash $ N", UITEXT0x1ca/0x1cb); the applicant/employee toggle is now a labelled extension button (UI-090 retired). The map zoom is 1.0–3.0 in half steps and a pan moves the centre one map cell whatever the zoom (UI-087 retired); each map category button toggles its own layer, not an exclusive filter (UI-086 keeps only the colours). A list column press toggles that column's direction, a new column starts ascending and column 0 starts ascending, so the first press on it descends (UI-084 keeps the per-list initial state). The HUD cash shows the bare balance in the original's red-to-white colour steps (table0x752e30), without grouping or prefix (UI-021 keeps the control 47 placement). The volume options are percentages (defaults 75/60/75/100) and old 0–10 options files migrate ×10 (UI-030 keeps the slider step). Before each start-up movie the game waits until Esc, Space and all three mouse buttons are released (UI-035 retired; the letterbox is[EXT:movie-letterbox]). UI-019 and UI-062 are retired (the shipped lobby andLOANNAMES.strare complete; data tests added) and UI-023 (test fixture). Widescreen anchors, HiDPI glyphs, the fixed options rows, the autorun focus rectangle, the speed buttons and time keys, the sandbox map and the overview detail rows are now documented[EXT:...]design decisions (UI-001, 038, 040, 043, 022, 902, 089, 906, 908 retired). The staff, locator, hire, dismissal, overview, camera-button, slider, fluid and key-table items are narrowed to what the executable leaves open (UI.md).UI register round 2 (October 14): the second
tp.exeread of the UI items. Comma now adds 90 degrees to the build angle (oneRotateBuildstep) and full stop adds 270 (three steps), where they were swapped (UI-903 retired); leaving the build tool resets the angle to 0, and holding exactly Ctrl at the placing click (or at the last click of a ride's queue) keeps the build tool armed (UI-031 narrowed to the coaster and track sub-modes). Window lists follow the original's list control: the pointer selects the hovered row, a click counts only when released within 500 ms and moved at most 6 px, a left click on an applicant hires (and so starts the Place tool), a left click on an attraction or visitor row opens its info panel and keeps the list, a right click centres the camera and closes (UI-083/910 keep the medium-confidence "button 0 is the left button"). Each list keeps its last sort for the session (UI-045, UI-084 retired). The buy window's control 512 shows the cash balance (UITEXT0x1ca/0x1cb, UI-048 retired); the HUD cash box is nine digits wide and centred oni_dollar(UI-021 retired); the research effort sliders truncate a drag (UI-065 retired, UI-030 retired). Ctrl+H flips the global Popup help option and the host persists it (UI-920 retired); the Confirmations option gates the dismissal prompt (UI-092 narrowed); the map window pauses the park (UI-096 narrowed); Instant Action skips the enter-park sound (UI-942 narrowed); the pick-up button is the originalb_pickmodel with help 88 (UI-098 narrowed). Shortcut letters now come from the language'sKEYBOARD.strexcept a plain letter that is a camera-pan key (Dutch hire A keeps H; UI-012 narrowed). The advisor message 309 (response 569) is not posted: its score is a field of theAdvisor.sambalance object whose key is untraced (UI-097 narrowed). UI-015, 900, 909 and 931-935 are documented[EXT:...]decisions. Review fixes: list hover only highlights (the click selects, so buttons beside a list never retarget), a plain shortcut never fires under Ctrl, Escape and a right click leave a Ctrl-kept build tool, the click time limit ignores a single long frame, and the browser keeps the default for Ctrl+W/T/N chords. 407 to 391 unresolved IDs.Coaster register round (October 14): the coaster register read against the Windows tp.exe. COAST-013 is retired (the guest rating
0x4e0560discards the sickness). COAST 5 is gated as in0x43b2f0, COAST 6 floors at the literal 0 instead of 1, COAST 8 applies the script speed bias 50 (cap 105 instead of 110), and the station step is skipped in mode 64. The suspended swing now follows the PC restatement (0x43c76c..0x43ca45). COAST-012, 014, 018, 023, 024 and 031 are narrowed to what remains. No determinism or coaster pin moved.Coaster register round 2 (October 14): the COAST findings read against the Windows tp.exe. Trains never stop: arriving trains unload in any state, guests board only while the ride is open as cars roll through the station window (admission ring filled by COAST 1), headway comes from the halved winch floor and the collision exchange, closed trains circulate empty. The track's self-intersections are counted (
0x439ab0) and guests refuse a coaster with a nonzero count. Pylon heights come from the model's track dummy, with the stack offset and loop pylons placed as a pair. The swing uses the PC sine table, textures scroll by the power factor, and the end node keeps the PC flags. COAST-007, 016, 018 retired; 025, 027, 031 and the completion click are extensions; the rest narrowed; COAST-019 and the three-node station (COAST-029) stay open. Old coaster saves migrate.Particle register round (October 14):
ParticleSystemis now ported from the tracedtp.exeinstructions (docs/PARTICLES.md): density as(rate * density) >> 10clamped to 127 (negative rates scaled too, default PARTICLEDENSITY 500), the pool init (flat-zero ground stub, 0x800 particles), the signed and unsigned random forms (a jitter of -1 still draws three times), LIFO emitter slots with a global generation, the rate quarter taken from the remaining life (immortal emitters stay on the first rate), a burst that ignores the cap and one cap check per tick, the horizontal disc, ring and box volumes with the Y rotation, the horizontal radial burst that replaces the base velocity, colour flicker, the frame, size and spin formulas, physics on the spawn tick, dead emitters and the child rules (+0xBC, +0xAA, the child offset), the effectors and the spiral;ParticleEffectorTemplatenames the effector record. PTCL-902, 903 and 907 are retired (the save is an optionalParticlespart of the park-resume envelope: emitters, effectors and the generator, no particles, screen-space emitters killed on load, outside the world hash). PTCL-900, 904, 905, 906 and 908 are narrowed: a key entry without a matrix starts at the world origin, the quad's half-height is size / 1024, the render flags decide the blend of untextured particles too, positions truncate like_ftol, and RSE ADDOBJ types 1 and 2 start effects whose handleKILLOBJends. Where the research report and the instructions disagreed the instructions won: byte +0xC2 != 0 is the box and 0 the disc, the ring flag is word +0xA8, the gravity word +0x28 and the jitter word +0x50 are words, and a non-immortal child never sees its life -1.Ride particles (October 14): RSE EVENT types 1 and 2 now create, simulate and draw particles of the original system (docs/PARTICLES.md).
Data/Particle/Tp2.plb(105 templates, 20 effectors) is read byParticleTemplateFile;ParticleSystemmirrors the traced pool (120 emitter slots, 2048 particles, private LCG seeded 1, 31 ms ticks, bursts, per-quarter rates, chained and death effects, the type-2 direction, the control scale);ParticleRendererdraws camera-facing sprites from theparticlesset (esprites.wadSPR_PA/PB) with the template's blend, as a weather-style entity with a precompiled web shader and a new one-plus-one material flag. A prepared request is converted back to native units and handed to the pool (fire and forget, no save state, outside the determinism hash). PTCL-901 is retired for PTCL-902 to PTCL-908 (arithmetic, effectors, sprite scale, draw order, settings and ground callback, the PART save block, the callers not wired); PTCL-900 is narrowed. In the shipped jungle the Aztec Mayhem torches already fire EVENT 2.Allocation test made sturdy (October 14):
PerFrameExactTierLookupAddsNoDefaultParameterAllocationskeeps the smallest of three measured passes per loop, so a one-off runtime allocation on the thread (seen once on ubuntu Release, 48 bytes) no longer fails it while a per-call allocation still does.Rides register round (October 14): the rides register is read against the decrypted Windows tp.exe. Ride init writes
InitDurationonly when above 0, as its low byte clamped toUsageInfo.MinDuration..MaxDuration(also the tier seed; RIDES-016 retired), and the script speed is now0.5 + bias / 100with the bias from the ride'sUpgrades[0].InitSpeed(children copy it; jungle Bouncy runs at 1.1, RIDES-033 narrowed to the settings/upgrade writers). A literal TRIGWAITANIM out operand resumes a script without an object once its value equals the triggered AnimID (RIDES-037 retired). The member letter table is the original's twelve (C D I L S M E U W B R O by AnimID), numbered clips load up to the first gap and the unnumbered one only without number 1 (RIDES-008 retired). RIDES-001 and RIDES-034 are retired with PC citations (30 frames a second; placed rides never take the idle restart); RIDES-022, 032, 036, 038, 043 and 044 are rewritten around what the PC shows. WAIT is divided by the script speed as well (0xb0658), screams use the script's speed word (AUDIO-016 retired), and the M3 gate's boarding period follows the scaled WAIT (Belly Bounce: P 3, H 55).Track register round (October 14): the kart and water register is read against tp.exe. The controller ticks once per 31 ms world substep (
0x54F4C4, the bump module tick called at0x54F55F; the BUMP 13 duration unit stays 30), boats and karts start at heading 0 (only bumper cars draw a random one), a water crossing's centre circle carries the 0x80 flag so boats pass through each other there, and the kart bank has no clamp. The track line snaps X only when |dx| > |dy| and ends atstart + 2 * floor((cursor - start) / 2)(a tie goes to Y, the − direction rounds away from the start). Boats raise the spray as particle 96, start an engine voice at the first launch and play BeamUpCar with a silent voice stop at the unload; the break smoke is a persistent particle-2 emitter per carrying car, made by BUMP 8 and removed by the fix or the unload (it follows the car every tick; the flag is saved, not hashed). The bumper chase was already ported as traced (TRACK-029 retired). Register: TRACK-009, 011, 012, 013, 016, 017, 023, 024 and 029 retired; TRACK-020, 021, 027 and 028 become OpenTPW decisions ([EXT:...]); TRACK-002, 005, 019, 025, 026, 030 and 031 narrowed (the station table of0x52A1A0, the arena formula of0x529E10). The tick and heading changes move the boat, kart and bumper goldens and the track resume hashes; the pinned fixed run and the hash schema are unchanged (DETERMINISM.md).Riders' heads on their traced seats (October 14): a head is now attached through the model's own records, traced in the Mac binary: attribute record
ibelongs to nodeUnknown46 + i, a head id is the first record with flag0x80and that value, and the node-name guess is gone (Eruption'sHead1aand the other previously unresolved ids now draw;monkey.MD2id 3 is node 10Head02,Bird.MD2id 9 is node 2Head03). The head is drawn the way0x1019B6F8does: at exactly the node's world position, hidden for node flag0x8000, the camera binned in the node's frame to the 7 x 8 frames of the kids' head art (direction row times 8 plus azimuth column), and the sprite rolled with the seat (atan2(-m10, m11)), at scale 0.685. The new GPU-freeHeadPresentationis unit-tested andRideHeadRendererdraws from a list of head sources, ready for the coaster seats. Every script (root, child, sound) has its own head table, as the script init allocates one for each, and the slot draw uses the originallabs(rand >> 1) % lengthformula on the ride's own stream. Register: HEADS-002 and HEADS-003 retired, HEADS-001/004/005 narrowed.Audio register round (October 14): the storm's thunder follows the original countdown (
0x101033CC/0x101034D8): a bolt starts the countdown only when none is running, atThunderStartsThisFarAwayminus the storm's bolts so far plus a random term, and the thunder rings when the countdown steps from 1 to 0 (a computed 0 never rings), at the last bolt's top; AUDIO-029 is retired. Speech ducking (AUDIO-001) is retired with its Mac citation (0x100BB18C); AUDIO-002, 005, 019, 025 and 033 are narrowed to what the PC and Mac traces leave open (AUDIO.md).Lobby rain and lightning drawn (October 14): the lobby's rain and bolts now go through the original weather renderer (CRain) as the original's do, at the lobby's own scale: rain around hallow by distance, branched 500 ms bolts within ±50 of the island with their own bottoms, and the one-frame white flash. The renderer's source hands strikes with both points (
WeatherStrike); the park keeps its ground point below the top.Original weather visuals (October 14): the procedural rain, snow and bolt approximations are replaced by the original engine's
CRainrenderer, traced in the Macengine_sharedlibrary and tp.exe (0x57F1F0-0x57F380). Rain and snow are one fixed 1024-point field in a -4..4 box around the camera eye (original units, wrapping per axis, scrolling down at 2.5 / 0.8 units a second plus camera parallax), drawn countmin(CurrentDrops, MaxRaindrops); rain streaks use the original's depth-to-grey ramp and 0x80..0xFF alpha, snow flakes the 2x2 atlas. Bolts are recursive midpoint-displaced ribbons from the strike's top down to original y = 0, up to 16, livingLightningTime(2000 ms). The images come from the game'sData/Generic/Weather(nothing is committed). Time is wall-clock capped at 500 ms and frozen while paused. The renderer reads anIWeatherVisualSource, so the lobby can reuse it. Still approximate (AUDIO-900..904): the blend, the parallax sign, the snow swirl flag, the near clip, and the bolt's displacement and pulse curve.Lobby effects (October 14): the front end's island effects follow the original's islands update (
0x10094474): the sky eases toward the nearest island's colour, hallow's lightning strikes on the lobby generator's draws with the thunder (cat_globallobbysfx1), the island one-shots come from the same draws instead of a timer (AUDIO-017 resolved), the globe plays its own music and ambience (2, 3) and entering a park plays 4. The lobby's rain and bolts are stepped and tested but drawn only once the original weather renderer lands (UI-018, UI-940..942; AUDIO.md "Lobby effects").Front-end smoke follows the saved-park offer (October 14): since entering an island with a saved park first offers to continue it (79726a00), the native front-end smoke, which saves a Jungle park earlier on, met that dialog instead of the game mode menu and stopped; it now checks the offer and takes "New park".
Visitor click, backtrack and queue-join sounds (October 14): traced in both executables. Opening a visitor's details (a park click or a roster activation) plays the visitor click
cat_kids129 (0x1010B808/ tp.exe0x4B79B0). Backspace over a path cell with no tool on playscat_ui95 at the cell and removes it, as the original's "backtrack" key does (0x10112430/0x40BDA0). A queue line ending on a path is the join (validator code 8) instead of a refusal, and playscat_ui139 at that cell (0x100711CC/0x527587).cat_ui95 had been mislabelled a visitor-panel sound and 139 a path-tool link-end; AUDIO-023 keeps only 139's second source (path linking to a queue).README's open list corrected (October 14): RSE EVENT types 1 and 2 are particle effects, not sounds (the positioned ride sounds of the other types already play); the weather is drawn, as procedural approximations; visitors can be selected, and what remains of the visitor click is its sound and the visitor panel's sounds.
Free visits pass the price test (October 13): a shop or sideshow set to a price, cost of goods and losing chance of 0 in play no longer falls back to its starting price in the price test (tp.exe
0x4fde50), so guests do not refuse a free visit; live terms are now recorded as set (RideVisitorBridge.HasSideshowTerms). Follow-up to the review of #82.A fairground setup screen (October 14): the browser's start screen now looks like the original's front end: a night sky with bunting and balloons, a yellow-outlined logo, a gold-rimmed panel and chunky gold buttons (Play leads once game files are kept; choosing another folder turns blue). CSS and inline SVG only: no original art and no web fonts (the content security policy allows none); it fits a phone and keeps still for reduced motion.
One write at a time per kept file (October 13): writes to the same kept browser file now wait for each other, so one write's bytes can no longer end up under another's hash; writes to different files stay independent.
Kept game files survive a failed rewrite (October 13): when the browser rewrites a file it keeps (after a failed read), the manifest first marks it as not stored and only marks it kept, with the new hash, once the new bytes are written; a clear or folder change in between drops the write. A failed rewrite therefore makes the file count as missing instead of offering stale bytes under the new hash (BROWSER-ORIGINAL-CACHE-RECOVERY.md).
Experimental TPI layout checkpoints (October 13): the Theme Park Inc slice's pause menu can save its world's layout (cells and objects, with asset hashes) to
opentpw-<theme>.tpilayoutand load it as a new experimental session: a versioned, strictly validated file written atomically, staged beside the live world before it is retired. Guests, script progress and the clock restart; it is not an original TPI save (SAVE-930). Theme Park World paths are unaffected.WAD ranges checked before allocating (October 13): a WAD's header, directory and member ranges are checked against the file before any buffer is reserved, so a short, truncated or wrapped archive is refused with a clear error instead of a failed allocation or hidden zeros, and a reopened member read checks its range first. Every shipped archive still reads byte for byte as before; an archive with a member past its end is now refused as a whole (WAD-ROBUSTNESS.md).
Script civil time (October 13): TPW scripts'
YEAR/MONTH/DAY/HOURread the host's local civil time instead of unimplemented zeros, as the Mac RSE does (0xb2144, Ctime/localtime, PPC-clock.md; VM-902 keeps the timezone and flag-ordering limits). The clock is injectable: the M4 gate and the browser digest use a fixed time, because Halloween's Haunted Tower readsHOURand its hour reaches the world hash; the game keeps the host clock.Particle event diagnostics (October 13): an object script's EVENT 1/2 particle request now records its latest prepared event (effect, control and position in render coordinates) for diagnostics, cleared on Stop and kept out of saves and the simulation hash; particles are still not drawn (PTCL-901).
Faulted ride scripts stop their object (October 13): when an object's root script faults, its clock stops, its child and sound scripts are removed, and the object releases its riders, trains, coaster controller and sounds instead of running on half stopped; healthy runs hash as before. It is OpenTPW's own containment, now marked
[EXT:vm-fault-containment](DETERMINISM.md).Pick visitors in the park (October 13): a mouse press on a visible visitor in the park view selects it in the visitors' roster, using the same sprite rectangle the renderer draws; HUD controls, tools, overlays and the ride view keep the press, and the pick only reads the simulation (UI-930: rectangle picking without occlusion or transparent pixels).
Localized detail labels (October 14): the attractions and visitors windows' detail rows show their labels from the original UITEXT table (users last month, wait, cost and the rest) instead of the enum names they had shown since the overview windows came in; the extra rows keep their six-language supplementary strings.
Experimental TPI themes in the browser (October 14): with Theme Park Inc data, the browser page starts one of its three themes (arabian, science, water) only when it is chosen explicitly in the edition selector; Theme Park World starts exactly as before, and the kept-files store keeps one witness file per theme folder so the edition check still finds them.
Shop and sideshow prices in the HUD (October 14, #109): a shop's or sideshow's price can be set through the HUD; the edit goes through the park economy's price setter, is saved with the park and reaches the guests' price test at the next step (UI-933: the original's slider bounds are not traced).
Walk camera (October 13, #106): C arms a terrain-following walk camera in the park and a click starts walking; it is an OpenTPW extension (UI-932) that restores the park camera exactly on leaving and stays frozen while a park is being built.
Map legend and model totals (October 13): the live map totals its satisfaction legend by counting visitors directly instead of building their cell groups a second time (1,500 visitors: 165,168 to 680 bytes allocated per call, a managed allocation measurement); MD2 readers reject mesh totals above the header before decoding another mesh (every shipped model still parses); new save/weather roundtrip tests cover real files, paused and fast speeds, live weather, pending thunder and malformed JSON.
FSH image export (October 13):
--export-fsh-png <file.fsh> <image index> <file.png>writes one chosen image of an FSH file as PNG without starting the game or its renderer; the file is decoded fully before any output exists, an existing destination is never overwritten, and the result is moved into place from a temporary file (FSH.md,[EXT:fsh-export]).Satisfaction map without regrouping (October 13): the live map's satisfaction overlay counts each cell's pleased and dissatisfied visitors directly, in the order the grouping gave, instead of building transient groups every draw; the drawn result is the same (MapCellAggregationTests compares it with the old grouping).
Parks built over frames (October 13): a park chosen in the front end, loaded or visited is built over several frames beside the running lobby, with a progress line, instead of in one frame; the construction runs the same steps in the same order, and the smoke test finds the same world hash, entities and objects. On the AOT build the largest frame of a cold Jungle start fell from 509 to 107 ms; the park is ready 16 % later (832 against 717 ms), the digest is unchanged. Phase 5 of the browser plan (time-slicing).
Files read on demand (October 13): WAD archives opened from a path and SDT sound banks now read a member or entry from the file when it is needed instead of holding the whole file (byte-identical on every original archive member and bank entry);
Texture.Missingis one shared texture, and the coaster palette and the park gate's sign release their textures and materials. Live memory in Jungle fell from 94 to 41 MB and in the lobby from 47 to 24 MB, the page's wasm memory from 254 to 176 MB after the first park; textures without a path no longer accumulate, and the mixer stops growing. Digest unchanged, start time the same. Phase 4 of the browser plan, second part.Memory across park changes (October 13): the harness's
switchscenario (Jungle, lobby, another park, lobby, Jungle) with live counters found two leaks. A staticRootPanel.Instancethat nothing used kept the first park alive for the whole session; it is gone. The decoded-sample cache kept every park's sound categories and banks alive;SoundEventSystem.Forgetdrops them when a park or the lobby ends. In the measured run, live memory in the lobby after a park fell from 67 to 47 MB, after a second park from 81 to 58 MB, and no old park stayed alive. Diagnostics for the harness name the static paths to stale parks and the largest holders. Still open: run-time textures without a path, whole archive and sound-bank files in memory. Phase 4 of the browser plan, first part.Three start costs removed (October 13): the RefPack decoder of the WAD archives reflected over the assembly on every call and built its output byte by byte (269 ms of the Jungle start); it is now one pass, byte-identical to the former decoder on every compressed member of the original archives. The game data's path lookups are remembered (
CacheLookups, forgotten when files are added), and the placed ambient sounds start once their samples are decoded instead of in the first frame. AOT, three alternating runs: the cold Jungle frame fell from 1,143 to 520 ms, the park is ready 804 ms after the click (1,421 before), the first buy menu takes 42 ms (64); digests unchanged. The page's wasm memory peak rose from 212 to 254 MB (live memory unchanged, fewer collections).Where the park start goes (October 13):
LoadProfiletimes named sections of a park start for the browser harness (off by default). Cold Jungle in the AOT build: about 1,040 ms, of which texture decoding is 63 ms (6 %) and model parsing 64 ms; the object catalogue (121 ms), the kid sprite sets (108 ms), starting the park audio (131 ms) and placing the objects (253 ms) are the large shares. A decoded-texture cache (phase 3 of the browser plan) would save too little and waits; those sections are the next targets.Game files kept in the browser (October 13): the browser page can keep the player's own game files in OPFS, so a later visit starts with Play instead of choosing the folder. The setup screen chooses what is kept: what the parks use (default), all at once, or nothing; a manifest rebuilds the file list, a theme not kept yet asks for the folder once more, and Remove kept files deletes them. Writing waits until the game has started, so the first start is not slower (1,974 against about 1,990 ms); a revisit shows Play after about 165 ms and the lobby 1.6-1.7 s after it.
opentpw-originals.jshas Node tests against an in-memory OPFS, and the harness gained--keepand arevisitscenario. Phase 2 of the browser performance plan.Frame rate limit (October 13): the OpenTPW options page has a frame rate limit (off by default, 30 or 60 fps) for the desktop and the browser. It caps drawing only (
FrameLimiter: a grid of 1/cap seconds with jitter slack; the browser skips early animation frames, the desktop sleeps); the simulation keeps its fixed clock. In two browser runs per setting a 30 fps cap took 43 % off the main thread in the lobby and in Jungle, and a 60 fps cap on a 60 Hz display drew 59.96–59.99 fps. The browser now keeps its display settings in/config, and the harness counts drawn frames apart from skipped calls (--frame-cap). Phase 1b of the browser plan.Browser build compiled ahead of time (October 13): the published page (server image) now runs AOT-compiled WebAssembly instead of the interpreter. Measured with the harness, three alternating runs each on an Apple M5: the cold Jungle construction frame fell from 2,540 to 1,136 ms, the first buy-menu frame from 104 to 54 ms, main-thread occupancy in the park from 23 to 15 %, texture decoding by 74 %; the download grows from 11.8 to 16.5 MB. Interpreter, AOT and the desktop runtime give identical digests for the theme's textures and a fixed economy and guest run (rides, scripts and weather are not in it). The harness gained the
digestscenario andcompare.mjs. Phase 1 of the browser performance plan.Browser performance harness (October 13):
tools/web-perf/run.mjsrepeats the browser measurements with one command: a local server for the published page and the player's own files, a fresh headless Chrome over the DevTools Protocol, and fixed scenarios (start, lobby, cold Jungle, first buy-menu selections, memory). The page records frame times only with?perf=1. The baseline on an Apple M5 (BROWSER-PERFORMANCE.md) is phase 0 of the browser performance plan; its Node tests and the page's texture tests now run in CI.Browser:
OpenTPW.Webruns the shared game code on WebAssembly with a source-compatible WebGL2 replacement for Veldrid (docs/WEB.md). Theme folders load when a park first needs them, sound plays through WebAudio, and saves, online files and settings persist in IndexedDB. The player's game files stay in the browser and are never uploaded. Checked in the browser pane: lobby ~119 fps, park ~97 fps without and ~69 fps with audio; an options change survived a reload.Browser languages: the Language toggle now lists the CD's other languages (the page copies
<Lang>/data/Languageand<Lang>/Meshes, 1 to 3 MB each, and the chosen language's advisor speech, 28 MB, when it is chosen; the advisor's level speech (the Welcome line) now follows the language on the desktop too) and the saved choice in/config/language.jsonis used at start, through theLanguageStartupcode the desktop shares. Checked in the browser: English to Nederlands to Italian, Dutch menu, Dutch Welcome speech bank in use, still Dutch after a reload.Server: the OpenTPW server also serves the browser game (Brotli, cache headers, CSP) and ships as
ghcr.io/meneerkrabs/opentpw-server. The official instance at play.opentpw.io runs on Hetzner behind Caddy, HTTPS only, with fail2ban and SSH keys from an allow-list. It updates nightly, and at once when a release tag asks it to: the deploy route only leaves a file that the host'sopentpw-deploy.pathturns into the regular update (docs/SERVER.md).Website: opentpw.io (Cloudflare Pages,
website/), with downloads, screenshots, privacy and community rules. It shows the server's news and the most-voted parks whose builders opted in to the website list.Releases: v0.4.0 and v0.5.0 were tagged from this work; v0.5.1–v0.6.1 were tagged later.
Fidelity fixes from the binaries (October 10, 2026)#
Advisor: the advisor is drawn without the camera in the bottom right of the screen, as the decrypted Windows v2.0
tp.exedraws it: translation (0.6, −0.6, 0.2), root scale (0.015 × 0.75, 0.001, 0.015), model flag 0x200 skips the camera and projection. ADVISOR-003/004 are retired, and ADVISOR-023/024 cover the screen-space reading and non-4:3 outputs. The owner's decision to analyse the decryptedtp.exestatically is in COMPLETION-PLAN.md, with the new BIN prefixTPW-EXE.Text: BF4 text drawn above 1× (HiDPI, 1440p and up) is magnified per glyph instead of pixel-doubled (UI-043); 1× stays pixel-exact.
Editions: official Patch 2 data (PATCH-2.md) is supported next to the 1999 data. The HUD date uses the DATE fonts when present, and the corpus tests accept both editions. A game folder copied from the CD finds its banners and offers all of its languages; Polish is left out because its character table is not decoded.
Startup: shader hot reload is opt-in (
--shader-hot-reload). On macOS a file watcher callssync(), and a hung SMB share kept the game from starting.
Online world (October 10–11, 2026)#
The original online service ran in the game, not the browser (research summary: manuals, reviews and archived pages; Platinum Tickets were real and were earned from visits to published parks). What OpenTPW rebuilds:
News: the server serves the operator's Game News and System News (
news/*.txt,GET /api/v1/news). The Online World menu shows them under the original column titles.Globe: Go Online opens the original online world from
lobby.wad/globe: theworldlobpanel and five chat satellites (Mac tabledata:0x523f0), and the globe camera oftp.exe0x005DC860 (orbit, zoom 475/200, damped turning, no self-spin). The 24 globe textures form a world map, so cities sit at their real positions.Cities: the server's cities are public (
GET /api/v1/cities, operator-editablecities.json). The defaults hold "North Pole" (the Bullfrog pin) and the four known original cities. Pins grow with a city's park count, and the cursor names the city.City lobby: a click on a pin opens the city's lobby (Mac table
data:0x50172), with its ten most-voted parks as their theme islands at the lobby's island slots. The panel lists other parks, returns to the globe or your own lobby, and enters a park. The rank and name labels follow the item detail overlay.Publishing: Publish Park starts on the globe to choose the city (UITEXT 419). The globe also works over a park and restores the park camera afterwards. The opt-in website list is chosen in the same form.
Approximations: ONLINE-007–017, listed in ONLINE.md (tick rate, start view, steering scale, label places, panel backgrounds, pin scale, island theme per park, publish globe layout).
Verification:
The full test suite passes: 1,129 passed / 287 skipped / 0 failed without assets.
The macOS Metal front-end smoke test passes at 2560×1440, UI scale 2. It checks the globe replacing the lobby, the pins, picking London, a city lobby with three islands, and the globe over a park with the park camera restored.
Open:
player counts for the chat satellites;
avatars and positional chat in visited parks;
Platinum Tickets and a ride shop;
the city lobby's own islands when opened from a park;
the original layout of the publish globe.
Render performance, build markers and arrivals (October 11, 2026)#
Render performance (v0.7.8): interface draws and their vertex lists are reused from frame to frame, interface vertices are written into fenced frame slots instead of through the command list, and model parts wholly outside the view are skipped.
--no-vsyncand--frame-statsmeasure frames, CPU and allocations. With the browser-build changes merged first, a jungle park at 120 Hz on Apple silicon uses about 0.35 cores instead of 0.85 and allocates about 4 MB/s instead of 67 MB/s; the frame rate and GPU time are unchanged.Blueprint markers: the path and queue tool's preview line and the footprint of an object being placed are drawn as the original's blue (or red) BlueprintMesh boxes from
Data/generic/dynamic/textures, traced from the Mac binary (docs/reverse/BLUEPRINT.md). They replace the interface squares of PATH-001; BLUEPRINT-001..003 remain open, including the entrance/exit and track symbols.Queue tool through the HUD: the jungle smoke test now buys a HasQueue ride, places it with a park click and lays its queue out of the entrance. The route already worked; without visible markers it was hard to see that the queue tool had started.
Arrivals: guests arrive in groups as in the Mac binary: a group every
TimeBetweenArrivalsunits of four park turns (about 2.5 minutes for the shipped 150) after the last one emptied, sized1.2 × (park points + NewParkBonus) / PointsPerVisitor(0.8 while rain or snow is falling, ARRIVAL-002) with park points from the rides' and sideshows' AttractionValue and age bonus (docs/GUESTS.md, "Arrivals"). A 30-minute M3 run now admits 105 guests instead of 1,800. ARRIVAL-001..003 remain open.Verification (macOS arm64, Metal, original data): the full test suite passes (1,686 passed, 91 skipped); the M3 gate passes 16/16 over 30 minutes; the M4 gate's rows are unchanged from main (15 pass, 10 fail, 2 unresolved); the front-end and jungle smoke tests pass, the jungle one with the new HUD queue and marker checks (its Totem pick check fails intermittently, which was also seen on an earlier build without these changes); the native Metal shader tests pass; the browser project builds. Direct3D 11, Vulkan and WebGL were not run.
Website: live status and reading options (October 12, 2026)#
Live status:
tools/site_status.pyreads the fidelity register, the oracle findings (F/X, with how many are marked fixed in C#), the feature matrix, the README format table, the merged pull requests (GitHub API in the website workflow,git log --first-parentas fallback) and the commit, and writeswebsite/docs/status.htmlandstatus.json; the front page shows a summary from the JSON. The front page's "You can / You cannot yet" block comes fromtools/site_status_curated.json, checked against the feature matrix and the docs.Reading options: Atkinson Hyperlegible and OpenDyslexic (SIL OFL, vendored under
website/fonts/), high-contrast and calm colours, and a reduce-motion switch that also follows the system setting; stored in localStorage only (website/a11y.js).Verification:
tools/test_site_status.py(synthetic repository, no network),site_docs.py,site_status.pyandcheck_site.py; checked in a browser in default, high-contrast and calm/OpenDyslexic modes. The Cloudflare deploy was not run.
Source: docs/PROGRESS.md in the project repository.