OpenTPW

Building a park together (co-op)#

OpenTPW's co-op lets up to four players build one park together online. The original game had no shared building (its online features were visits, chat parks and movement relay, ONLINE-FEATURES.md), so everything here is an OpenTPW extension of the online extension opentpw.online, labelled [EXT:online-coop-*] in the code. The plan with its phases (C1 to C7) and the comparison of the architectures is in the project notes (plans/coop-plan.md); this page records what is built and the decisions it rests on.

Status: the command layer (C1) is in place. Of the sessions (C2), the server, the game's link, the host's command stream, the level in a session, the stream's join and resync, the host's skip of frames it no longer holds, the game's join and the browser's are built, and the joins are measured. Players share and join a park through the game's screens (C2d), and the live acceptance runs two native games through the real server (C2d-5a); the page's sides of it follow (C2d-5b). Of building by every player (C3), the requests, their records and the host's grants are built (C3a-1); the tools follow (C3a-2).

User decisions#

The user approved the co-op design on October 19, 2026 (AskUserQuestion in the main session). The decisions as recorded in the plan's "User decisions" section:

In English: host-sequenced lockstep (every player runs the simulation, the host orders the commands); one shared bank; the host sets each player's rights; the feature lives in the online extension; any of the host's own Theme Park World parks (never Theme Park Inc); invite with a code or an open listing on the globe, chosen per session; up to four players; only the host pauses or changes speed; the host's save plus a co-op copy for each builder; everyone in the session earns the golden tickets, keys and unlocks; exactly the same release; the normal 1500 guests; different editions and languages when the simulation data matches; undo of a player's own commands at the normal refund; the browser joins and hosts from the start; the same simulation-changing mods for everyone; cheats refused in a session; when the host leaves, the host role moves to another player.

The labels: the plan's first record, made with the design decisions, says the proposed labels were not yet individually approved. Its later entry records the user's answer, given the same day in the online-presence session: every proposed online-coop-* label in the plan's section 4 is approved as named (among them online-coop-commands, online-coop-permissions, online-coop-lockstep and online-coop-claims, the four this code uses: the command layer, the rights hook, the frame-batching independence of the fixed tick, and one drag per coaster with its conflict rules), and a label outside that list is asked for separately. The Totem's commands keep the older developer-prototype label.

Sessions (C2)#

[EXT:online-coop-session] The server side of a shared session exists: the co-op socket, sessions with their code, the open list, invitations, the version and mod gate, the relay of the host's frames in order, resume after a lost connection or a restart, and the join snapshots (ONLINE.md, "Shared parks"; part C2a). So does the game's link to it (CoopLink under OnlineSession): it opens, resumes and closes the socket and offers the requests and events a shared park needs. The host's command stream runs over it (C2b-1, below), a level takes part in a session through CoopSession (C2b-2, below), and a member joins a running session or resyncs from a join snapshot (C2c-1, below), which the game builds and swaps in (C2c-2a, below) and which is measured on the desktop (C2c-2b-1, "Measurements"). A browser joins (C2c-2b-2, below) and hosts (C2c-2b-4, below) in the smokes, and its own transport carries a session through the real server (C2c-2b-5, below). The game's screens (C2d) give a session its own chat room (C2d-1, ONLINE.md, "Shared parks"). The player shares the open park from its pause menu or a saved park from the lobby (C2d-2, below), and joins with a code, an invitation or the open list (C2d-3, below). The co-builders walk as figures (C2d-4, below), and two native games share a park live through the real server (C2d-5a, "The live acceptance" below).

The host's command stream (C2b-1)#

[EXT:online-coop-lockstep] A guest's park follows the host's by replaying the host's commands at the host's ticks, checked by digests (CoopHostStream, CoopGuestStream; the frames and messages in CoopStreamCodec). Both run each frame's simulation step for their level (Level.SessionStream).

The tests run a host and its guests as levels of one asset-free park in one process over an in-memory server with the real one's guarantees, each driven through whole game frames of random lengths (CoopStreamTests, CoopStreamCodecTests).

The level in a session (C2b-2)#

[EXT:online-coop-lockstep] CoopSession puts a level into the session its link is in, as the host (Host) or as a guest whose park is the host's (Join; the join snapshot that gives a guest that park is C2c's, the screens that call both are C2d's), and owns the level's stream. The level knows its part (Level.CoopRole: none, host or guest).

CoopSessionTests runs a host and a guest of the asset-free park through CoopSession over the in-memory server, and once over the game's real links to a loopback server with a lost socket on each side.

Joining a running session (C2c-1)#

[EXT:online-coop-snapshot-join] A member that joins a session already running, or a guest whose park lost the stream (a desync, frames the host no longer holds), gets the host's park from a join snapshot at a cut of the host's stream and goes on from there without leaving the session (design coop-c2c-design.md, v4.1).

CoopJoinTests covers the snapshot's parts (round trips, every malformed input, the session state bringing a twin's per-player state to the host's, a capture that changes nothing in the host's park). CoopJoinSessionTests runs joins and resyncs over the in-memory server, the host's captures real and the guest's candidate built by replay (a twin from the identical start driven by the host's records to the cut, its per-player state cleared and the capture's applied): a late joiner with frames lost on their way, lost assignments and answers, a slow upload and a reconnect, joiners sharing a capture or getting the next, a request storm, a desync and too far back resynced without leaving, stale messages, the join window, failed and permanent failures and the host's growing waits, the failure budget, a held coaster drag, a park too large or impossible to capture, an upload that never answers, a socket lost during the download, a joiner back from a stall, busy and refused downloads, a candidate that cannot be built or installed, and a late join through the real links, the server's snapshot store and HTTP. CoopSnapshotDownloadTests runs the client's ranged download against a scripted server (a stall or a break resumed with a range, a server that ignores the range, a line that broke after its last byte, the length and digest checks) and the link's reading of each transfer failure. The save path's completeness is the game's join's to prove with the game's data: the asset-free park has no full restore (the native smoke below does).

The game's join (C2c-2a)#

[EXT:online-coop-snapshot-join] The game's side of a join (coop-c2c2-plan.md, v3): the game is the session's join host (ICoopJoinHost). It builds the host's park from a join snapshot over frames, beside the live game, and swaps it in.

CoopJoinSessionTests.GameFlow runs the game's join host without the game's data: the build is the replay twin, staged in a scene of its own. It covers the build beside the front end and the swap, a resync that keeps the view, the refusals, the step waiting during a transition or a park build, a park start that ends a join or a resync's build first, the front end's rebuild that keeps a join, the other teardowns that end it, a join that ends without a park, and a failed swap. The coaster binding's adoption is tested at the binding level (CoasterCellMarkerTests): a replay twin replays the host's binding history, so a test through it would pass without the adoption.

The native smoke, scripts/smoke-coop-join.sh (two processes with the game's data, silent and offscreen: --coop-join-smoke host|join --coop-join-evidence <directory>), runs the game's join for real:

A mutation run took each skip of the restore mode that the smoke stages out, in turn, and the smoke caught every one: a join that reopens a closed built coaster, gives a tour ride a fresh controller, repairs the links (with the footprint re-stamp and the legacy queue restore, which share that skip), or applies no session state builds a park that differs from the host's at the cut, and the guest asks for the capture again. The link repair is what the smoke catches there; the footprint re-stamp and the legacy queue restore are kept by reading (the footprint writer writes only differences, and no Theme Park World shape has the cells it would add; the legacy restore acts only on an imported queue ride whose entrance links into empty ground, as in a park saved before the import took the shipped save's queue cells). The land and the park name's fallback are kept by reading as well (the Jungle has both), and the coaster binding's adoption is proven at the binding level.

The smoke found four bugs in the save path, each fixed on its own: a coaster's station-head marker read as a pool wave flag 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, its imported animations starting before their clocks; and a ride's entrance and exit, resolved once to the nearest walkable cell, were resolved again on a load, so a path laid nearer since moved them.

Known limits: the guest's files and simulation mods must be the host's (the build refuses otherwise); a park state with a non-finite float (NaN or an infinity) cannot be captured, since the save's JSON holds none; a single build step can take longer than the frame budget, which C2c-2b measures.

The browser's join (C2c-2b-2)#

[EXT:online-coop-snapshot-join] The same join phase runs in the browser's game (Mono WASM, compiled ahead of time or interpreted) over a join recorded on the desktop, so a desktop host and a browser guest are proven to run one simulation: tools/web-coop-join.mjs serves a published page and the game's folder on 127.0.0.1, opens the page in a fresh headless, muted Chrome profile with ?coopSmoke=1 (docs/WEB.md), copies the host phase's evidence (OPENTPW_COOP_JOIN_PHASE=host for scripts/smoke-coop-join.sh) into /coop-smoke with Program.CoopSmokeAddFile, starts the join phase from the front end (CoopJoinSmokeStart: join, the adversarial one, or measure), follows its status and reads its evidence back. The page is the smoke's runner (CoopJoinSmokeTest.Page.cs): it attaches the smoke's handlers around the game's update in the native order, times each whole frame call (the update and the drawing) for the smoke's frame, makes any throw out of a frame the run's failure before the page stops its loop (also a throw after the run completed in that frame: a pass is published only once its frame returned whole and the evidence is written again, with that frame's time), and takes the handlers off once the run has ended, the game running on with the player's saves and the profile back. The mode checks the page's own address, not the word of the script that asks for it. One run a page, since the builds it checks must be the runtime's first; the driver starts a fresh profile for each. It fails fast on a page that crashed or lost its DevTools connection, could not copy a level's files, stopped its loop or drew no frame for two minutes, and on pool sprites still on their way after two minutes. What it proves is the native join phase's contract, unchanged: the cut's tick, digest and world hash, every checkpoint's digest, the final digest, world hash and join state, and the structural save comparison. Two limits of the session can end a slow page's run without a wrong digest: a build's 300 s deadline (the wait for the level's files included) and the smoke's catch-up limit of 3,600 frames; the failure says which. The evidence names how the page was compiled (OpenTpwBrowserCompilation: aot, interpreter or coreclr; jit natively). The audio differs from the native smoke's: Chrome is muted, but its Web Audio runs (the native silent run opens no device).

Both modes pass in the page compiled ahead of time and in the interpreted one (Chrome 155 headless on an Apple M5, over a host phase recorded by the desktop build of the same source): the failed check, the abandon, the join, all 80 checkpoints to the second cut, the resync, the 20 to the end, and the final digest, world hash, join state and save, in about a minute and some 3,200 frames each. So a desktop host and a browser guest run one simulation through a whole session, a stronger check than the determinism pins' fixed runs. The browser's numbers follow in "Measurements" (C2c-2b-2c).

The browser's host (C2c-2b-4)#

[EXT:online-coop-snapshot-join] The host phase runs in the browser's game too, so a browser host and a desktop guest are proven to run one simulation: tools/web-coop-join.mjs --mode host opens the page as for the join (?coopSmoke=1, a fresh headless, muted Chrome profile), has it copy the host's level (CoopSmokeLevelReady, which asks the page for the level's files, since the phase's level start reads them at once), starts the host phase from the front end (CoopJoinSmokeStart("host")) and reads back the recording the phase wrote into /coop-smoke (ReadFile): the host evidence, the frames, both captures, and the final save and join state, with the page's record (host-run.json) and its frame calls beside them. The page runs the native host phase (CoopJoinSmokeTest.StartPageHost) with its handler in the game update's place, as the native runner has it: the host's frame advances the park itself, through the session's stream. It records each frame of 30 ms or more with its drawing, the host stage whose step it ran and its named work (LongFrames); the native host times no frame. scripts/smoke-coop-join-browser-host.sh records the host phase in the page and has the native join phase replay it (OPENTPW_COOP_HOST_EVIDENCE for scripts/smoke-coop-join.sh), and scripts/measure-coop-join-browser-host.sh measures it.

Both the adversarial and the measuring join phases pass over the page's recordings (Chrome 155 headless on an Apple M5, the page compiled ahead of time, the desktop build of the same source): the failed check, the abandon, the join, all 80 checkpoints to the second cut, the resync, the 20 to the end, and the final digest, world hash, join state and save. So a browser host and a desktop guest run one simulation too. The page's host phase takes about two minutes for its 6,900 frames.

CoopSession.PrepareHostSteps is what a host is to run before it hosts, a step a frame: the session digest's code once ahead over the park's economy (WorldStateHash.SerializationWarmupSteps), so the stream's first checkpoint and a capture's cut run none of it for the first time. The smoke's host phase, the native one too, runs the steps while its park settles, so neither host's first checkpoint is the digest's first run any more. The game's own sharing does not run them yet: it comes with the sharing's flow (C2d).

The digest's canonical text (C2c-2b-4b)#

The session digest hashes the park save's economy part as canonical text (docs/DETERMINISM.md, "Canonical state hash"): at every checkpoint on the host and on every guest, at a capture's cut and at a join's check. That text was built from a JSON tree: the save serialized into nodes, every object's keys sorted into a new string, and the string hashed a character at a time, eight FNV steps each. Now the save is serialized to UTF-8 bytes and read as a document, and a JSON writer writes the canonical form straight into bytes (WorldStateHash.CanonicalEconomy): every object's members in ordinal order of their names, the parts the digest leaves out skipped at their place. The writer escapes every character outside ASCII, so each byte of the text is one character, and the hasher takes it a byte a step (StateHasher.AddAscii: the seven zero bytes of a character's eight fold into one multiplication by the prime's eighth power); a string's characters take two steps each. The text and the hash are the old ones, byte for byte. WorldStateHashCanonicalTests keeps the tree's form as its reference, every pinned hash is unchanged, and the join smokes compare every checkpoint between the desktop and the page in both directions. The serialization of the save is as it was, and it is now most of the digest's time ("Measurements", below).

[EXT:online-coop-session] The browser's own transport carries the co-op link through the real server. The browser's join and host above run over recordings, so until this check the browser runtime's WebSocket and HttpClient had carried chat but never a shared session. scripts/smoke-coop-link-browser.sh <wwwroot> builds the server, and tools/web-coop-link.mjs runs it on 127.0.0.1 with a fresh data folder, no two-step login and the published page as its own (WebClientDirectory: one origin, so no CORS and no proxy). It registers two players and opens two pages of that server in headless, muted Chrome, each in a browser context of its own and in the page's link check mode (?coopLinkSmoke=1, which starts no game, reads no game file and claims none of the page's stores). Each page runs a CoopLinkProbe (Program.CoopLinkSmoke.cs): the game's own OnlineSession in a folder of its own, its login, and its CoopLink, which in a browser sends the login's token in the socket's first frame. In order:

  1. Both log in over HTTP and open the link, and the server welcomes both.

  2. The host creates a session on the open list. The guest finds it on the open list (an HTTP GET) with its host and players, the host invites the guest (the socket), and the guest joins with the invitation's code (C2d-3b). The host hears the guest join.

  3. The host stores a snapshot through the link's own upload (an HTTP PUT of 150 KiB of seeded bytes, which the server takes only once a member has joined), and the guest downloads it through the link's own download (an HTTP GET, checked against its SHA-256).

  4. Both logins' chats move to the session's room (C2d-1), and a chat line goes each way through it.

  5. The host's frame reaches the guest, and a message goes each way.

  6. The host leaves, and the guest hears its session end.

The driver chooses every payload and checks each one the pages record against its own length and SHA-256; a refusal, a lost or stopped link, a failed transfer or a step past its deadline fails the run. No token or password is written anywhere. CoopLinkProbeTests runs the same probes in the same order against the loopback server on the desktop. The check needs no game data, so the browser determinism workflow runs it against both of its pages (compiled ahead of time and interpreted). Locally (Chrome 155 headless on an Apple M5) both pages passed all ten checks over the server's protocol 7; the open list and the invitation (C2d-3b) add two, and the chat line each way (C2d-5a) one.

A whole live join over the server, with the game's data and its own screens, is the live acceptance's (C2d-5, below); the page's part in it, with the link's timeouts and retries there, comes with its page sides (C2d-5b).

Sharing the park from the game (C2d-2a)#

[EXT:online-coop-session] The park's pause menu has a Build Together line, after Go Online, for the player's own park: not a visit, and not a guest's copy of a shared park. A lost park keeps the line only while it is shared. The line opens the Build Together screen over the pause menu. Every line on the screen is in the player's language.

The pause menu does not stop a shared park, so the park runs on under these screens.

CoopShare (GameFlow.CoopShare.cs owns it) is one attempt to share, and it owns its create from the request to the answer:

  1. It prepares the park for hosting (CoopSession.PrepareHostSteps, a step a frame) while the link opens.

  2. Once both are done and the park can still be shared, it sends the create.

  3. The game steps it once a frame right after the online pump and before the co-op session's and the park's update. In the step after the server's answer, never in the link's callback, it checks that the same park is still the game's and can still be shared, then hosts it (CoopSession.Host).

A cancel before the create sends nothing; one after it waits for the answer and leaves the session the server made. A park that is closed or replaced meanwhile (a load, an exit, a transition) is treated the same way. A park that can no longer be shared when the answer comes, or a hosting that fails, leaves the session too. A link that stops (another game of the player's holds it, with a take-over offered; an older server; a lost connection) or a create the server refuses (too many sessions, too many requests, a refused title, an answer lost with the socket) ends the attempt with the reason in words.

Every way the host leaves sends a leave, so guests hear at once that the host left:

While the park is shared or being shared, the HUD shows a status line in a translucent box at the top centre: the code and the connected players out of the most, that the link reconnects, or that the park is being shared. The line stays put; the screens over the HUD dim it with the park. When the session ends without the player ending it (the server, a logout, a failure), the line says so for ten seconds, counted from the end itself (CoopShare.EndedAt, by the attempt's monotonic clock), which often comes in the online pump before the attempt's step. Dismissing the outcome on the screen keeps the notice; the game lets that attempt, and the park it holds, go once the notice's time is over or the park closes. While the game is in a shared park, the online screens' chat entries (a chat park's room, a published park's chat) leave the chat in the session's room.

CoopShareTests runs the attempt over a real link to the loopback server, with the stream tests' asset-free park and a second player's link as the guest:

CoopLinkTests checks that a logout's leave that could not go out outlasts another server's and another account's welcome, and that a close while a join waits leaves the seat the join takes.

The live acceptance (C2d-5, below) shares a park through these screens natively; browser hosting through them comes with its page sides (C2d-5b).

Sharing a saved park from the lobby (C2d-2b)#

[EXT:online-coop-session] The lobby's Escape menu has a Build Together line after Go Online, also only while the online extension is on. It opens the lobby's Build Together screen, which offers the player's own saved parks: the sandbox and the shipped parks are not offered, as they are no park of the player's own. The rows read as on the Load Park screen: the park's name, marked when it is cheated or needs extensions, and when it was saved. Below them are the same choices as on the park's screen (title, open list, players), a login when the player is logged out, and Share. Without a saved park, the screen says so.

Share loads the chosen park as the Load Park screen does, and the share goes with that load:

  1. The save's extensions are asked about first (the extension switch); a refusal there starts nothing.

  2. The load is queued like any park load. Another transition replaces it, and the share goes with it. The lobby screen's Back gives the share up, with its load, while the load still waits (the browser copies a level's files first).

  3. The save is resumed at once, without frames. Only a park this load made is shared (GameFlow.ShareLoadedPark). A failed load shares nothing and leaves the lobby as it was.

  4. The park opens with its pause menu, so a park that is not shared yet stays paused under the screens, as when the pause menu opens them.

  5. The share starts as from the pause menu (StartSharing), and only on the server and account that asked for it. Logging in on another server meanwhile leaves the choice to the player. The start checks the login and the loaded park again. When the load's extension choices turned online play off, a message says why nothing was shared.

  6. The park's Build Together screen opens over the pause menu. It shows the attempt, or why it could not start, with the player's choices kept for another try.

CoopShareTests covers:

Joining a shared park from the lobby (C2d-3a)#

[EXT:online-coop-session] The lobby's Build Together line opens a hub with two choices: share one of the player's saved parks (C2d-2b) or join with a code. The join screen takes the code the host gave; case, spaces and dashes do not matter, and a code that cannot be one is said and not sent. It offers a login when the player is logged out. While the game joins, the screen shows the stage in words, with a cancel: joining, getting the host's park, building it. A refusal is said in words, with a way back to the code. Every line is in the player's language.

CoopJoinAttempt is one attempt to join, and the game owns it (GameFlow.CoopJoinAttempt.cs):

  1. Once the link is open, it sends the join, unless this game could not follow a shared park (CoopSession.JoinRefusalKind: another edition, or a run with a developer option that changes the park). Then nothing goes out and the screen says why, each in its own words: another edition is told that only Theme Park World parks are shared, a developer option is told to restart without it.

  2. The server's answer is taken in the game's step right after the online pump (and after the share's step), never in the link's callback. The game joins (GameFlow.JoinSharedPark) only while the link still holds that seat and the game is free: no park, no park build, no transition, no saved park's share and no share attempt. Otherwise the seat is left, and so is a seat whose join throws. While an attempt still settles its answer (a cancel waits for it), no share starts.

  3. From then on the joined session gets the host's park and builds it, and its own resume and capture retries apply. The attempt only watches until the park is the game's, or until the session ends.

Every way out leaves what the server gave:

The session now records what ended it (CoopSession.EndCause, ServerReason): this game's leave, the server's end with its reason, a lost link, the guest's failed joins (FailJoin), or the host's stream. The screens say an end in words by that, never by the server's English (GameFlow.JoinEndText, JoinRefusalText). One presenter says each end:

A guest in a running shared park is asked before the pause menu's Exit To Lobby leaves it ("the park stays the host's"); once the session ended, the exit goes at once. The guest's HUD shows its own status line: reconnecting, then waiting for the host (away), then catching up (a resync), else the park's title, its host and the connected players.

The tests:

Invitations and the open list (C2d-3b)#

[EXT:online-coop-session] A host's invitation reaches a player anywhere in the lobby, and the lobby's hub has a third line, Find a shared park, which opens the open list. Every line is in the player's language.

The lobby's link (CoopLobbyLink, stepped by the game after the join's step). The link is open while a logged-in player who could follow a shared park is in the lobby: no park, no park on its way, no Theme Park Inc front end. Elsewhere an idle link is closed, so a player in an ordinary park is not online for shared parks. The host then hears that the player is not online and is told to give the code.

Invitations (GameFlow.CoopLobby.cs). An invitation is the login's that received it.

The open list (sharedParks).

A game that cannot follow a shared park (another edition, or developer options that change the park) opens no socket. The join screen and the list say why before anything is sent.

The join screen's take-over. When another game of the account holds the link, the join screen says what taking it over means: the other game leaves its shared park (a host's leave ends the park). Use this game then takes the link over and joins with the same code. Nothing is taken over before that click.

The tests:

Co-builders as figures (C2d-4)#

[EXT:online-coop-presence] In a shared park every member walks as a figure with a name plate, as the players of a visited park do (decision 8; ONLINE.md, "Players in a visited park"): the guests' kid sprites, the name on a dark plate over the head, the player's own in yellow, under the HUD's windows.

Where a figure goes. No click walks a figure in a shared park: the host's clicks build, and a guest's clicks are the HUD's. Each member's own figure follows that member's view instead:

The room. The figures meet in the session's chat room (coop:<id>, C2d-1). The online session owns that chat: the shared park's presence never joins or leaves a room and never opens or closes the chat. A figure's places go out only once the room is the connection's own, confirmed (OnlineSession.SharedRoomReady): a chat connection whose own server version is read (protocol 8), no join on its way or waiting, and the server's roster names the room. Its first place there is a teleport, which the server answers with where the others stand, and a reconnection announces the figure again once the new connection's join is confirmed. The others are drawn from the room's relayed places and roster, so a member who leaves goes from the park. A server without shared parks' rooms shows no figures.

The game's side (GameFlow.CoopPresence.cs). After the session's step, the game makes the shared park's presence (ParkPresence.ForSharedPark) while it is logged in and in a running session's park (host or guest, not a visit) whose room its chat follows. The presence belongs to that park and that session: it goes when the park changes (a resync's swap makes a new one for the new park), when the session ends, or at a logout. A session can end during the level's update, so the presence also checks every frame that its session still runs, and sends nothing once it does not. A visit's presence is the visit's own; the step never touches it.

No sparkle. A visit's figures sparkle through the level's particle pool. A shared park's do not: the pool is captured with the park and object runtimes keep handles into it, so a local effect would make the members' parks differ.

The HUD.

The tests:

The live acceptance (C2d-5)#

[EXT:online-coop-session] Two games share a park 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. The headless tests check each part against the loopback server, the smokes join over recordings, and the browser's link check runs without data; here it all runs together, live. Either side is a native game (C2d-5a) or a page (C2d-5b): native/native, native/page, page/native and page/page.

scripts/coop-live.sh <out> ['/path/to/Theme Park World'] [--scenario ...] builds the game (Release) and the server once. Then tools/coop-live.mjs runs:

Each game runs a script of steps (CoopLiveTest), each waiting for a condition with a deadline of wall time. A failed step ends the run with its evidence, and the other game and the driver stop at once.

The steps:

  1. The host shares. The harness starts Jungle as Instant Action does, not through the front end's menus; a page's host waits for the park's files first (a page copies a theme when a park asks for it). Escape opens the pause menu, and Build Together opens the screen. The host logs in there (server, name, password), writes the title, picks two players, leaves the park off the open list and shares. The screen shows the session's code.

  2. The guest joins. It starts in the lobby: Escape, Build Together, Join with a code, a login there, the code, Join. The host's park is fetched, built and swapped in, and follows the host's stream with its digests compared. A page's guest copies the park's files from the game folder for the join.

  3. The figures. The host sees the guest's figure and name drawn in its view, then the guest sees the host's; a picture of each view is kept. A page cannot read its output back, so the driver takes its picture, a screenshot of the canvas, while the view stays. Then the harness moves the host's view far away, to the nearest place the camera can centre on: the host's figure jumps there, and the guest sees it there. The same follows for the guest's view.

  4. Building. The host lays a path line through its HUD: a press on free land starts the tool, and a press on the end lays the line. The guest's park takes the line's record, its cells become paths, and checkpoints are compared after it. The guest's own line is refused (the host has not let it build yet), its cells stay free, and its park follows on. Then the host lets the guest build with its switch on the Build Together screen (C3a-2), and the guest's next line goes to the host: it is laid at its record on both parks, as the guest's seat, with checkpoints compared after it.

  5. The chat. A line each way through the chat mode's entry (Enter over the park, the line, Enter), heard in the other game.

  6. The guest's controls. F4 to the HUD and back. A click on a ride in the chat mode rides it: the host sees the figure gone. Escape leaves the ride: the host sees the figure back. Go to in the host's name popup moves the view to the host's figure with no park command.

  7. The end. The host ends sharing from the Build Together screen (asked first). The guest's end dialog leaves for the lobby, and the host's park runs on alone.

The driver then checks both games' evidence against each other (checkEvidence, with tools/test_coop_live.mjs):

The scenarios:

The pages' way in. The pages open through the drivers' own local server in front of the real one (tools/web-perf/lib.mjs). It serves the game folder (/game/) itself and forwards the rest to the server: the page, from the server's own web folder, and /api/. It forwards the sockets' upgrades below /api/ only: at most 16 at a time, the server's whole answer within 10 seconds (an answer that refuses the upgrade at most 64 KiB, passed back as it is), and a half-closed socket closed after 5. The browser workflow also runs the link check through it (tools/web-coop-link.mjs --proxy): it carries two co-op and two chat upgrades with bytes both ways, and each page's chat line reaches the other page through it (a page's only origin is the proxy's). The page's policy lets them: its connect-src names the server's own address, which the forwarded requests carry, and 'self' covers the page's. A refusal (an upgrade outside /api/, or none left) is answered, and a client that keeps its side open after any answer is closed after the half-close wait.

Results (Apple M5, macOS 26; native games in Release; pages in a headless Chrome 155 with the interpreter build):

SidesScenarioChecksWall timeNotes
native/nativebaseline14 of 1422 sfollowed 3.4 s after Join; 104 KiB capture; 9 checkpoints
native/pagebaseline18 of 1839 sfollowed 6.4 s after Join; 107 KiB capture; 21 checkpoints
page/nativebaseline18 of 1836 sfollowed 3.6 s after Join; 104 KiB capture; 17 checkpoints
page/pagebaseline22 of 2253 sfollowed 6.1 s after Join; 105 KiB capture; 28 checkpoints
native/nativerecovery16 of 1631 sfollowed 3.3 s after Join; 104 KiB capture; links back 7.4 and 6.5 s after the drop; no resync
native/pagerecovery21 of 2149 sfollowed 5.6 s after Join; 105 KiB capture; links back 3.4 and 6.5 s after the drop; no resync
page/nativerecovery21 of 2149 sfollowed 3.6 s after Join; 104 KiB capture; links back 6.4 and 3.4 s after the drop; no resync
page/pagerecovery26 of 2671 sfollowed 7.6 s after Join; 107 KiB capture; links back 3.3 and 7.8 s after the drop; no resync
native/nativeendurance 30 min15 of 151820 sfollowed 3.4 s after Join; 104 KiB capture; 1807 checkpoints; 1800 s at the fastest speed, slowest stretches 239.5 (host) and 230.2 (guest) ticks/s; longest frame gaps host 1.65 s, guest 0.57 s
native/pageendurance 30 min19 of 191834 sfollowed 5.8 s after Join; 105 KiB capture; 1819 checkpoints; 1800 s at the fastest speed, slowest stretches 239.6 (host) and 225.5 (guest) ticks/s; longest frame gaps host 1.50 s, guest 0.18 s
page/nativeendurance 30 min19 of 191839 sfollowed 5.2 s after Join; 104 KiB capture; 1815 checkpoints; 1800 s at the fastest speed, slowest stretches 229.4 (host) and 229.5 (guest) ticks/s; longest frame gaps host 2.80 s, guest 0.73 s
page/pageendurance 30 min24 of 241877 sfollowed 13.9 s after Join; 108 KiB capture; 1843 checkpoints; 1801 s at the fastest speed, slowest stretches 231.7 (host) and 219.2 (guest) ticks/s; longest frame gaps host 5.02 s, guest 0.35 s
native/nativemanagement18 of 1831 sfollowed 3.8 s after Join; 104 KiB capture; the forced resync's park in 2.7 s; 3 checkpoints after the swap
native/pagemanagement22 of 2255 sfollowed 6.8 s after Join; 108 KiB capture; the forced resync's park in 3.5 s; 7 checkpoints after the swap

The native/native, native/page and page/native endurance runs come from before the guest's granted line (C3a-2), which adds one check to every run; the other rows include it.

No CI job runs it: it needs the game's data. A run's run.json keeps every check, both games' evidence and the run's facts; its logs, pictures and status files stay in its folder.

The host's trimmed frame (C2c-3)#

[EXT:online-coop-snapshot-join] The host trims the frames every member is known to hold. A server whose stored frame number fell behind that (a restart that stored a number older than what it relayed since) used to end the session: it needed a frame no one holds any more. Now the host gets everyone the park again instead (CoopHostStream.SkipTrimmed, design coop-c2c-design.md section 6.6):

The server keeps the skip rare. A frame number a deploy stores exactly holds for the next run only: that start stores it again as unknown at once, so a crash later in the run brings it back unknown, never as an exact number behind the frames relayed since, and the host resends from its oldest frame (a guest drops what it has) instead of skipping. Two cases are left. A long stretch in which no member acknowledges a frame lets the caps trim frames the host handed to the link before the server confirmed them, which a lost socket then takes with it. And a start whose rewrite of the stored positions fails (a full disk, reported) followed by a crash before any later write brings the old exact number back.

CoopServerTests covers the server's side (a skip from the host, one back, one from a guest or from outside a session, a stored position exact for the next run only, a hello of an older protocol); CoopLinkTests the link's skip through the real server; CoopStreamTests the host's (one skip, the assignments, a stale refusal, a skip lost with the socket, a server that cannot skip); CoopJoinSessionTests sessions whose members resync from their captures and follow the host's park, equal at the end: after one skip and a second over the first, with a member away at the skip, and with a capture on its way up at the skip, which serves no one.

Measurements#

The design fixed two constants only after measuring them (coop-c2b-design.md, section 11).

Building by every player (C3)#

[EXT:online-coop-commands] [EXT:online-coop-permissions] In C2 the host builds and the guests watch. C3 lets every player build through the same stream the host orders, so every park stays the host's and no guest's click runs on its own park first. C3a-1 built the requests, their records and the host's grants; in C3a-2 the guests' line, placement and remove tools send their commands as requests and wait for them, and the host lets each guest build or only watch with a switch. C3b-1 adds land, the area clear, the removal of path and queue cells, Backspace, the sell buttons and the queue's edit, C3b-2 the Move tool, and C3b-3 the pools. C3c-1 brings the rides' claims, which keep a ride to the player whose track tool is on it, and the bumper rides; C3c-1b the guests' kart and water track tools, through the claim; C3c-2 the guests' coaster tool, through the coaster's claim, and the track add-ons.

A guest's request. A guest never applies its own command: its park follows the host's stream only (ParkCommands.FollowsStream), whatever its rights. It sends the command to the host as a request instead (CoopGuestCommand: the guest's own number for it, from 1, and the command's bytes), over the session's relay, which stamps the sender's member id. The host runs the command as that member's seat (the server's word, never the command's own player) between two ticks at the start of its next frame: after its own input, before the frame's ticks, and while paused too (CoopHostStream.ApplyGuestCommands, ParkCommands.ApplyRemote). Every player's commands have one order, the host's.

Its record. Every well-formed command the host applies becomes a record of the stream, as the host's own do: accepted, or refused by the rights or the park's rules on every peer alike. A guest's record also carries its origin, the member id and the request's number (the stream frame's version 2). The guest resolves its request when that record applies in its own park, with the command's result there, which the stream's determinism makes the host's.

Refusals without a record. The host takes no record of a request that is larger than 1 KiB, comes too fast (a bucket of 40 that refills at 20 a second), comes from no guest's seat or does not decode (CoopGuestRefusal), and answers it alone (CoopGuestCommandAnswer). At most 64 requests of one guest wait for the host's next frame; more are dropped unanswered, and the next request shows the gap.

Lost and repeated requests. A request travels at most once. After its link resumes, and when a request has waited two seconds for its outcome (a message lost on its way, which no resume shows), the guest sends every open request again, in order. The host keeps the answers to each guest's last 256 requests: a request it had already gets its record or its refusal again and never applies twice, an older one is forgotten (its outcome is then unknown: it may have applied, and the park shows whether it did), and one that skips a number is refused with the number the host expects, from which the guest sends again (once for a burst of such answers). A request too large to take is refused by its number before its command is copied.

Resyncs. The requests are the session's, not the park's: a resync replaces the guest's park and stream and keeps its requests (CoopGuestCommands). While the resync runs, new requests wait. Once the new park is in, a request whose record is inside the snapshot's cut resolves as applied there (its result here is not known), and the others go out again; the host answers those it had with their record. The session's end resolves the open requests as ended.

Grants. The host grants building per guest (decision Q7) with a command of the stream (SetBuildGrantCommand), so every peer's park holds the same grants from the same tick on. Since C4a a grant is the building right of the seat's rights ("Money and rights (C4)"): a join snapshot carries the rights (the join state's version 5) and the session digest covers them (its version 3). A grant is its member's: when the member leaves or is kicked, the host releases the seat at its next frame, before that frame's requests (ReleaseSeatCommand, which takes every right back), so a member that takes the freed seat starts without one. A grant is also its session's: a session's end takes every grant back, and a park shared again starts without any. Both streams put the session's rights in place of any the park had, so every peer asks the same ones.

The stream's frame (version 2) and the join state (version 3, version 4 with the claims of C3c-1, version 5 with the seats' rights and pending hires of C4a) changed, but the co-op protocol did not: the server relays both without reading them, and the version gate keeps every member of a session on one release (decision Q11).

The path tool's UndoLineCommand (kind 11) keeps its bytes and gains a meaning for its ride field: it carries the ride its issuer had selected when the Back was pressed, -1 for none, which every older log has (the queue tool's undo still carries its queue's ride). tp.exe's Back re-evaluates the selected ride (0x8186AC), and the selection is each player's own, so the issuer resolves it at click time and every peer re-evaluates the same ride; the join state and the digest need no field for it.

What a granted guest may build (C3a, C3b-1). CoopBuildRights asks of a command's kind, its fields and its target, at execution on every peer, and allows exactly the commands of the guests' tools:

An object a guest may not remove (a fixed item, a ride claimed against it) is also one its area clear leaves standing and its placement may not demolish: a command that removes what it finds asks the rights of each object (IParkCommandRights.AllowsRemoval). The queue of a ride claimed against a player (one another seat's claim holds) is kept from that player in all of these: its lines and their undo, its edit, the removal of its cells and Backspace over them, any line across one of its cells (a path line paves a queue's end), a placement whose own plan writes over one (its footprint, the paths it clears, the cell beyond a track end, the cells it lays outside its entrance and exit), a bridge with a cell or an end on one, and the object window's queue tool, which that player's window does not offer, nor its sale and Move buttons for the ride. So is the path cell its back cell joins, whose removal or a queue laid over it would take the queue's link off: the remove click, Backspace, queue lines, placements (whose plans clear the paths under them, and a queue ride's, which lays its first queue cell outside its entrance), bridges and kart or water track lines (a tile laid over path clears it) refuse it, and the area clear leaves it standing (IParkCommandRights.AllowsPathRemoval). So is a path cell linked into the ride's entrance cell (type 9, which carries the ride's owner word): its clear takes that link off and re-evaluates the ride, which recomputes its queue, stamps a block and may open the ride when it is closed (tp.exe 0x53694B, CoopBuildRights.BesideClaimedEntrance). The remove click, Backspace, native queue segments laid over it and their undo, placements (the paths under them, a queue ride's first queue cell outside its entrance and a fresh kart or water station's exit and entry tiles) and kart or water track lines (asked as drawn, also past a tile their writer would stop at) refuse it, as do the host's single-cell removal and the undo of a path line that built the cell, and the area clear leaves it standing. A path cell beside the entrance that does not link into it, and a queue cell there, re-evaluate nothing when cleared, so they are not asked; nor is the queue tool's per-cell line, which lays no queue over path, nor a native segment's last path cell, where it stops. A path line along such a cell, a Backspace that only counts it down (a cell laid more than once loses one placement and stays, ParkPathBuilder.RemoveOnce), the path a placement lays outside the last exit of a ride with a queue or the last entrance of a type without one (only the last entrance and the last exit count, ObjectAccessCells.Lay), and a queue line that only ends on it (which links the queue to that path, QueuePaths.Connect) take no link off. The exit of an object without a queue lays no cell: it only links a path cell already outside it (that cell's links and its path and access neighbours'), which takes no link off, so it is asked nothing. A queue cell's ride is resolved as its removal resolves it: the rides' cached lines, then each line walked again (on a copy) for the cells they miss, once per question of the rights (the area clear asks it for each path cell it would clear). Everything else stays the host's: pause and speed (Q8), cheats (Q17), money, staff and the park's management (C4; a wave machine's settings are the attractions right's since C5-2), undo lines and pool strokes (whose cells a request could name freely: since C5 a guest's Backspace is a take-back the host decides, see "Conflicts and undo (C5)"), the single-cell removals and the pools' single-cell kinds no guest's tool issues, the grants and the release of a departed seat.

A guest's tools (C3a-2). On a guest's park ParkCommands.Issue sends a command to the host instead of applying it (ParkCommands.Submit, set by the session), after the checks Apply makes before it runs one: never inside a tick, well formed, and allowed by the session's rights as the guest's own park holds them, so a command the host would refuse is not sent. The command comes back pending (ParkCommandResult.IsPending), with nothing changed yet, and its tool waits:

While a tool waits it takes no other click (the HUD asks the player to wait), also from the release of a press made while it waited and let go after its outcome (C3c-1b); a guest's Backspace in the path or queue tool is a take-back since C5, which waits as a line does ("Conflicts and undo (C5)"). The requests resolve where their records apply or the host answers, inside the stream's application or the link's pump; the guest's HUD takes them at the start of its next update (CoopGuestCommands.TakeCompleted), outside any command, tick and stream application, and completes the tool that still waits for each one:

A waiting tool waits as long as its request does: through a lost link, whose resume sends the request again, and until the outcome comes. Escape or a right click leaves it, as it leaves any tool. Anything that ends or switches a tool drops its wait, and a resync replaces the park with its tools, while the requests are the session's: such a request's outcome is then only a message. The session's end ends every wait (a line that waits ends its tool). Each outcome the HUD says is its own event, so two refused lines or placements in a row are both said.

Who hears and reads what (C3a-2). A command's cues are its issuer's: the placement, demolition, backtrack and queue cues inside a command play only where the running command's player is this machine's (ParkCommands.IsLocalIssuer), so the host hears nothing of a guest's build and a guest hears its own when its record applies in its park. Cue choices are presentation, never hashed or in the digest. A message a command writes is said only by its issuer's HUD (Level.SaysLastActionMessage); a guest says its own outcomes from its requests, never from the message text. A guest's click the rights refuse says that the host has not let it build yet, or that only the host does that.

A guest's other edits (C3b-1). Land, the area clear and the sell buttons end at once for the host too, so a guest's sends its request and goes on: the land tool ends after its second click (BuyLandClick.Sent), the area clear after its rectangle, and a window's sale closes or refreshes the window as the host's does. Their outcomes are messages: a purchase the park refused says that the land cannot be bought, as the host's refused click does, and a refusal by the rights says so in its words.

The session's end drops these waits with the others.

A guest's Move tool (C3b-2). The Move button sells the object as its erase button does and arms the build tool with its type, which the player's seat then carries in the park (Level.CarriesEntry): a moving placement places only a type its player carries, pays its price and skips the buyable and research tests, and the tool's end drops the carry.

Move needs no claim: the pick-up is one record, after which the object is gone and its type is that seat's alone; a second pick-up or a sale of the same object finds no object, and an edit of its queue no ride.

A guest's pools (C3b-3). The pool tool writes each cell a stroke crosses as it is crossed, often many a frame, so a guest's one request a cell would outrun the session's bucket (40, refilled at 20 a second). A guest's strokes go in batches instead, and the host's tool writes at once, as before:

A slide tower is a guest's to place, sell, clear, move and remove, and its removal takes its slide and refunds it, on every peer alike. No claim keeps a slide to one player: two players laying one slide take turns piece by piece, since each piece must follow the last. A wave machine's settings are the attractions right's since C5-2, through the management queue ("Conflicts and undo (C5)").

Claims (C3c-1). [EXT:online-coop-claims] A kart or water ride's track, and since C3c-2 a coaster, is edited by one player at a time: the player whose track or coaster tool is on the ride holds its claim, and the claim keeps the ride from every other player, the host included. A guest's track tools work through it (C3c-1b) and its coaster tool (C3c-2, below).

Bumper rides lay no track: a guest places them since C3c-1, and their queue tool follows the placement as any ride's does.

A guest's track tools (C3c-1b). [EXT:online-coop-claims] [EXT:online-coop-commands] A guest edits a kart or water ride's track through its claim, with the host's tools' rules, every command a request:

A guest's coaster tool (C3c-2). [EXT:online-coop-claims] [EXT:online-coop-commands] A coaster is edited by one player at a time through its claim, as a kart or water ride's track is, and a guest's coaster tool sends every write as a request:

Track add-ons (C3c-2). A granted guest places a kart or water ride's track add-on (a jump, a tunnel, the teleport) onto its own ride's track through the ride's upgrade list, as the host does. Its placement (PlaceObjectCommand naming the ride) is building only when it is not a moving placement, its entry is a track add-on whose AddOn.UpgradesId is the ride's type, and the ride is a kart or water ride's standing station (a coaster takes no track add-on). A ride claimed against the guest refuses it, and the claims plan the add-on's cells as the add-on rule places them. A track add-on placed as an object of its own stays refused.

The host's switch (C3a-2). The Build Together screen lists the guests with a switch each, beside the removal: it reads the shared park's applied grant ("Builds" or "Watches") and a click turns it over with a SetBuildGrantCommand. The stream's order decides a request that races the switch: a request the host takes before the grant is taken back is built, one after it is refused at its record. The sharing and joining screens say that the host decides who builds.

Nothing the player did not ask for. A guest's park windows send only what its player asked for. The object window's apply on its close sends only the commands whose values its player changed (a shop's settings and its price apart, a sideshow's price or its game): the original applies every value on every close, which for a guest would be a request its rights refuse, with a note about a click it never made, or one that writes back what the park holds. A typed price and an apply-all go when clicked and not again at the close. The research window's workload knob projects the lab's workload, at the window's opening and at a staffing change, without writing it back, and the loans window's opening and tabs send no offer refresh unless the guest holds the finance right (then the refresh is its own request, as the host's is; see "A guest's management windows (C4b-1)"), so without it the list shows the offers of the host's park. A change the player made still goes, and its refusal is said as any is.

Money and rights (C4)#

[EXT:online-coop-permissions] [EXT:online-coop-commands] [EXT:online-coop-speed] C4 lets the host give each guest the park's management besides building, right by right (decision Q7), over the one shared bank (Q6), while the speed and the pause stay the host's (Q8). The plan (v8, a Codex go after eight rounds) makes it three parts: C4a the rights and their lifecycle, C4b the windows of the attractions, research and finance with their switches, C4c staff. C4b is two parts of its own (its plan, v13, a Codex go after twelve rounds): C4b-1 the research and finance windows with everything both parts share, C4b-2 the attractions (its own plan, v13, a Codex go after twelve rounds). C4c is two parts (its plan, v7, a Codex go after six rounds): C4c-1 every seat's staff state in the park, C4c-2 the guest's staff tools and windows. Since C4c-2 the host gives all five rights: building, attractions, staff, research and finance.

The command classes (C4a). Every command kind is of exactly one class (CoopBuildRights.ClassOf), which says who may issue it in a shared park; a test pins each class's kinds:

The host issues every kind but an edit of a ride another player claims (C3c-1). Its management of a ride a guest claims stays allowed, as in C3, so a C3 session's log, which may hold such records, replays as recorded.

Rights per seat. A guest seat's rights are five independent switches (CoopRights: building, attractions, staff, research, finance), kept in the park as session state (Level.SeatRights, in seat order; a seat without a right has no row). The session digest covers them (its version 3, with every row always hashed) and a join snapshot carries them (the join state's version 5); no world hash or save holds them. Two commands write them through one reducer: SetSeatRightsCommand (kind 105) sets a seat's mask, and C3's SetBuildGrantCommand (kind 101) flips its building bit alone, so a C3 log replays byte for byte. A right taken back ends what it held in the same record, on every peer: building's claims, with a coaster's tool state. The rights command names a guest's seat (1 to 63) and only the rights this build offers (CoopRightsOffer: all five since C4c-2), so a bit past them cannot be given, not even by a hand-made record, which the codec refuses; a join state refuses a row of seat 0, of no right, of a right not offered, and a seat named twice. The host's own seat holds no mask and keeps its full authority. The session's start and end clear every seat's rights. A guest's management command without its right, or of a right this build does not offer yet, is refused with the rights' note: "The host has not given you that right."

A seat's release. ReleaseSeatCommand is the one record that frees everything a guest seat holds: its rights, its carry (C3b-2) and its claims (C3c-1, with a coaster's tool state). The host issues it at each frame's start, before the requests, for every seat whose member left or changed and for any seat that holds something without a member (Level.HoldingGuestSeats), in place of C3's separate grant taken back. The host's end (the host ending the share, a failure, the link lost for good) applies it for every guest seat that still holds anything, as records of the host's own log before its last checkpoint, so the log replays to the state the host's park runs on with. The records go to no guest: each guest's park runs on alone, and its own teardown clears what its session held. An end inside a tick (no game path makes one) records nothing there, as no command may apply inside a tick: the host's park then ends the guests' coasters' tool state on its own after the log, as a guest's teardown does.

Staff state (C4a's format, C4c's use). The join state's version 5 and the digest's version 3 carry the pending hires as rows of seat and candidate, in place of the one pending hire before. Since C4c-1 every seat may hold one (a seat's staff, below); the join's restore checks the rows whole before any of the state applies.

Speed and pause (Q8). A guest's speed buttons draw subdued (UiButton.Subdued: the disabled look with the hit target and the click kept) and show the host's speed. Each speed input of a guest, the four buttons, the numpad's time keys and the pause key, issues its command, which the session's rights refuse on the guest's park with the host-only note: nothing goes to the host. A session is online, where no focus-loss pause latches.

The rights dialog (C4b-1). Build Together's row of a guest keeps its name and its removal; its button names the rights the shared park gives the guest ("Building, Finance", or "Watches" with none), and opens the guest's dialog: one switch per offered right, each drawing the park's applied bit, whose click issues the seat's rights with that bit turned over. The dialog belongs to the sharing attempt, the member and its seat: once the share no longer hosts or the member left that seat (checked every frame and again at a click), it closes and sends nothing. The host-only note no longer says "for now": "Only the host can do that."

A guest's management windows (C4b-1). [EXT:online-coop-money] With the research or the finance right a guest's research, entry price and loans windows act as the host's do, through the session's management queue (CoopManagementRequests), which outlives the windows and the resyncs. Without the right a click says the rights' note (once for a drag's run) and nothing is queued; the windows' own checks come after the rights, so a repay with neither the right nor the money says only the rights' note.

A guest's attraction windows (C4b-2). [EXT:online-coop-commands] With the attractions right a guest's object windows (a ride's, a shop's, a sideshow's, a toilet's) act as the host's do, through the same queue, with one difference the queue forces: a guest's window keeps no draft.

A seat's staff (C4c-1). [EXT:online-coop-commands] [EXT:online-coop-permissions] The park keeps the staff state of every seat, which the staff right (C4c-2, below) lets a guest's seat use; the host's and a single player's play is as before but for the two points marked below.

A guest's staff (C4c-2). [EXT:online-coop-commands] With the staff right a guest hires, places, picks up, drops, renames and dismisses employees, sets their patrol areas and the roles' training budgets, as the host does; each action goes to the host, and the guest's tools and windows follow what came back.

Conflicts and undo (C5)#

[EXT:online-coop-undo] C5 makes Backspace in a building tool of a shared park take back the player's own last step of that tool, for the host and every guest alike, under the normal refund rules (decision Q14, A), and refuses it while a later command still depends on it. The plan (v38, after thirty-seven Codex rounds) makes it three parts that reach main as one merge: C5-1 the host's undo journal, the path, queue and slide tools; C5-2 the pool strokes and the wave machine; C5-3 the kart, water and coaster tools (the kart and water tools first, then the coaster's pylons).

What stays as it was. Undo stays where the original has it: Backspace inside a building tool, which takes back that tool's last step; there is no general undo key across tools. A placed object has no undo: it leaves by its sale, a separate removal any granted player may make under the claims, as since C3b. Overlapping path lines are no conflict: two players' lines over the same cells are both laid in the host's order, the later crossing the earlier's cells, as in the original; the park itself refuses the later of two writes it cannot both take (objects, rides, queues and pools on one cell), the same one on every peer, since every peer applies the host's order. A single player's Backspace issues the plain undo as before, its bytes unchanged.

The host's undo journal. The host keeps, for the session, every member's steps of the building tools: a path or queue line, a native queue segment, a slide piece (each piece of a guest's batch is a step of its own, named by its record and its ordinal within it). It lives on the host alone (CoopUndoJournal, owned by the host's stream): no peer keeps one, so it is in no join state and no digest. While a command runs, the map's setters report each cell whose fields really changed (type, flags, counter, links, queue link, owner, residue; a value written again unchanged is none), and the record goes into the history of every cell a live step lies on: the records still in effect that changed it, oldest first. A step keeps its effects, the cells' fields before and right after it; a take-back removes its record from each cell where it reversed every effect (each field back to its value before the step, links and flags bit by bit), wherever the record stands, so later steps taken back in any order leave the histories as if they had never been. Where an effect of the step stays after its take-back (a diagonal link its line's link pass set between two cells that both stay, which a clear does not take back), its record stays as the member's residue: every other member's step meets it as a change, while the member's own earlier step that clears the cell whole passes over it, so a player's own chain goes back as in single player; a take-back's own writes outside its step (its clear unlinking a bit another command set beside it) count as its member's residue too. A record of no step (a removal, a sale, a line that ended its tool, a departed member's step) can never leave and stays as a permanent marker. Each marker keeps what it left changed there. The markers between two records are kept as the set the rule reads (a run with a permanent marker is that marker alone, holding what every marker of the run left, any other one residue per member), and a departed member's residue turns permanent, so a cell's history stays short whatever ran. The journal keeps a member's newest 16,384 steps within 262,144 cells; an older step's take-back says it is too long ago, and a pool stroke that lost an entry so is too long ago as a whole. A member that leaves its seat leaves its steps behind for good, and a slide tower's removal drops its slide's steps. Any fault of the journal turns it off for the rest of the session: it then takes nothing back, so nothing is decided on incomplete histories.

The take-back. TakeBackCommand (kind 106) names the step by its record (and a slide piece's part); a guest sends only that, a few bytes. The host decides it at its intake, before the rights and the log, through a preparation hook of ParkCommands: the step must be the member's own (NotOwn otherwise: another seat's, a former member's, taken back already) and its last of the tool (NotLast); no record still in effect of anyone else may have changed its cells since it (Changed), save on a cell the step only crossed: there another line's link into the cell from elsewhere is no dependency, since the undo only counts that cell down and unlinks its own links (another crossing of it is one: crossings go back newest first), and neither is such a link left by a line taken back since or by a line that ended its tool (each marker keeps what it left changed); and its tool's own undo, run on a disposable copy of the cells, must do exactly the step's work back, refusing, skipping and adding nothing but the unlinking of the cells beside it (InTheWay: an object, a pool bridge or a slide piece on its cells, a native undo that would change another player's path, a queue removal that would reach past its cells); the copy runs the undo's own cell code (the path undo, the native undo, a queue removal's walk and its cell writes), and what follows from those cells (refunds, the queue's recompute, re-evaluations, and a queue undo's access refresh: a ride whose entrance or exit had resolved onto a cell it clears resolves them again, which a path undo does not, as in single player) is the inverse's own, alike on every peer, and refuses nothing. Taken, the record carries the inverse, the tool's own undo of the step (UndoLineCommand, UndoQueueSegmentCommand, UndoPoolSlidePieceCommand), which every peer runs as the take-back's player with its refunds; refused, it carries its verdict, and every peer refuses it alike; a guest's tool reads the verdict back from the result's reason, one constant per verdict. The rights check the decided record again with its inverse: a grant taken back while the take-back waited refuses it and ends the tool (a line tool or the slide mode); another seat's claim on what its undo would touch (a claimed ride's queue, or a path cell it would clear that links to that ride's entrance, whose unlinking re-evaluates the ride and may open it) refuses it with the claim's note and keeps the step and the tool, as a line refused there. A pool stroke's take-back names the stroke instead (see "The pool strokes (C5-2)"), and its inverse is UndoPoolStrokeCommand; a decided record's inverse must be the stroke kind exactly when it names a stroke. A path undo re-evaluates the issuer's selected ride only for the host's own take-back, and never a ride another seat claims. The tools' scope is the interface's: the host checks own and last, so a crafted request for a member's own last step takes back only that step, under every check.

The tools (C5-1). The path and queue tools keep each segment's record; Backspace takes back the newest, the host's at once, a guest's as a request that waits as a line does, and the segment leaves the tool only once taken. A segment the tool loaded from an existing queue was laid by no step: Backspace keeps it and says so. A line that ends its tool (it joined an existing path, as in the original, or a guest's line its record cut short) has no take-back, as in single player (the user's decision): the tool's stack ends with it, the journal makes no step of it (a take-back of it made by hand takes nothing), its player removes it with Backspace over its cells, and a step of another player's it crossed or joined can no longer be taken back. A refused line ends the tool, as before, so no segment that laid nothing stays on it; at OpenTPW's full vertex stack (1,024 corners) a session's tool ends before its line goes. A tool's own chain goes back step by step: a native queue's later segment clears the bend corner it shares with the member's own earlier one, as the original's undo does, and the earlier one's take-back then expects it empty; a corner another player's segment left from since is in the way, for both (each one's undo would clear it). The slide mode's Backspace takes back the tool's own newest piece, a guest's behind the pieces it still waits for; with none, or on a slide finished since (its pieces go only with its tower), it takes nothing, quietly. A stroke keeps the slide mode it was drawn in: a late outcome of an earlier one adds no piece to a new one and ends no new one.

The pool strokes (C5-2). The paint and erase modes' Backspace takes back the player's own newest stroke, whole or not at all, for the host and every guest alike. A stroke's commands carry a first marker on its first command (a guest's first batch, the host's first cell), in a codec generation of its own (5) that only a session writes, so single player's bytes stay as they were; the journal names a stroke by the record of that command, whether the park accepted it or not (a drag whose first batch met only a path still opens the stroke its later batches go on with). A command without the marker goes on with its member's open stroke when that stroke's mode (paint or erase, and the river option) is its own, and otherwise opens a stroke of its own; any other step of the member, a take-back of its own and its departure close the open stroke, so two strokes are never one step set, modes never mix within one, and a forged continuation can only extend its own member's stroke of its mode. Each accepted command is an entry of the stroke: the cells it painted or erased and, for a river stroke, those it only marked (a batch's writes pair with its cells one by one, so a batch that only marked existing water is a step too). A guest's later batches wait for the answer of the batch that opens the stroke: with a record, they go on with the stroke it named; with none (the host could not take it: its rate limit, a full queue), the next batch opens the stroke again, so no continuation goes while its stroke's opening is unknown. The tool learns each stroke's name (a guest's from that batch's answer, the host's from its own record), and its Backspace sends that name, a few bytes behind its own batches still queued; the host takes the member's entries of that stroke as one step set when it is the member's newest stroke (NotLast otherwise), none of its cells changed since by anyone else (a later wave setting on a cell the stroke only marked is no change: its take-back takes the river flag off and nothing else), and fills one UndoPoolStrokeCommand (an erase stroke's cells painted again; a paint stroke's marks taken off and its cells erased, from its end). The inverse is predicted on a copy of the cells with a copy of the bank's balance: each repainted cell meets the bank's two money tests (the preview's and the commit's 32-bit test) against what the earlier cells left, and the erase's guards read the copy (the last water-side cell of a wave machine counts once an earlier cell of the walk erased its other one), while the stand, occupancy and swimmer checks read the park's guests, which the inverse does not change; a stroke whose undo would refuse, skip or stop at any cell is InTheWay whole, the ledger and the stroke as they were. A session's stroke is split as it is laid: once a stroke has tried 4,096 cells the tool ends it and the drag goes on as a new stroke, for the host and a guest alike (single player keeps its strokes whole), so every take-back fits one command and Backspace takes back the last part first. A stroke one of whose entries the journal's bounds forgot is too long ago as a whole. The host's own Backspace pops its stroke only once taken, and says why otherwise. A resync changes nothing of this: the names are the host's records, and a guest's new tool knows none of its old strokes, so its Backspace takes back only strokes drawn since. A guest's tool keeps its own strokes for one run, as the host's stroke stack does: once the tool ends, Backspace takes none of them back, and a late outcome of a stroke drawn before names none of the next run.

The track tools (C5-3). The kart and water line tools' Backspace takes back the player's own newest line of the ride, for the host and every guest alike, as single player's Backspace takes it back: a twin park of a game of one, given the same clicks and Backspaces, ends with the same tiles and the same money. A line is a step when it leaves its tool on: its footprint is the tiles it laid and the tiles whose overlap counter it raised, which its inverse, the directional clear (UndoTrackLineCommand), takes back; every other real write of its record (the arms it gave its neighbours, the circuit walk's refresh of earlier tiles and the station) is its changes, which a later step's dependency check sees and its own take-back does not compare. The track layer reports each tile whose record really changed, as the map's setters report its cells. A line whose walk closed the circuit is no step, wherever it ended, nor is one the park refused or that ended its tool otherwise (on its start, stopped short, on existing track), as the original keeps no take-back for it; at the stack's 1,025 corners a session's tool ends before its line goes, where single player's goes on.

The coaster tool (C5-3). The coaster tool's Backspace takes back the player's own newest pylon of the coaster, for the host and every guest alike, as single player's Backspace takes the last pylon off: with no refund (the original refunds no deleted pylon), and only while the coaster's last pylon is exactly that one. A click that places a pylon is a step (CoasterClickDone.Placed); one that closes the circuit or completes the track places none. The tool keeps its own pylons for its run, each named by its click's record (a guest's comes back with the click's outcome, the host's is its journal's last), and its Backspace sends a TakeBackCommand for the newest, popped once taken and kept on a refusal; with none of its own it sends nothing and says the not-own note. A pylon of an earlier run of the tool is no pylon of the new one.

Other rides' tiles (C5-3). A track line and its take-back leave alone the track of every kart or water ride another seat claims; an unclaimed ride's track is any granted player's to join, as in single player. OpenTPW's owner word (TRACK-021) keeps tagged rides apart, but an older save's tiles have owner word 0, which every builder joins and every editor clears, so a ride's track is read by provenance (TrackProvenance): its tagged tiles, its seeds (its station's tiles and the laid tiles at its entry and its exit), the tiles its own walks visit (the circuit walk, which goes straight on through a tile whose arms are across its heading, and the open-end collector), run as they are on a throwaway copy of the park, and every tile a flood from all of these reaches over every arm, whether or not the tile reached points back, through tiles of any owner word. A tile is each ride's whose track holds it. The test is of real effects: the line's own writer, or the take-back's clear, repair and walk, runs on a copy of the park with a copy of the bank's balance and inert callbacks, and no ride state is rebuilt; for each other ride claimed against the player, no tile of its track may change (each cell's record compared, so a neighbour's refresh that writes the same values is nothing), and its track must stay the same tiles (a new tile joined to its dangling arm, or a cut, changes it). A refused line says the claim's note, nothing laid, on every peer: the guest's own park refuses it before it goes, and the host at its record; a refused take-back is InTheWay, the park, the rides and the ledger as they were.

The wave machine (C5-2). A wave machine's settings are of the attractions class: a guest with the attractions right applies them through the management queue (a Waves knob on the machine's attraction target), its rights asked first, and the window opens on the settings it asked for until they are back. A machine no longer there when they arrive (removed meanwhile, or left without water) says the not-available note; settings another player set the same meanwhile say nothing. No claim applies: a wave machine is no claimable ride.

Notes. A refused take-back keeps the step and says why: "Someone has changed that since, so it can no longer be taken back." (Changed), "That cannot be taken back while something is in the way." (InTheWay), "Only what you built with this tool can be taken back." (not own, not the last, or too long ago); a refusal of the rights says the rights' note; a finished slide says nothing. A stroke's take-back says every verdict, its InTheWay included, and one refused by the rights ends that paint or erase mode alone. A track line's or a pylon's take-back refused for its claim says the claim-lost note and ends the line tool or the coaster tool, the host's too; the corners a line tool loads were laid by no step of its player's, and Backspace on them says the not-own note and sends nothing, as the coaster tool's Backspace does with no pylon of its own.

Tests. CoopSessionTests.Undo (path segments and chains, native and legacy queue lines with their refunds and their owner words compared on every peer, the money-stopped segment's residue, other players' lines across and beside a step, a line ending on another player's path, three players taking back in either order, a pool bridge in the way, forged and stale take-backs, the grant taken back on the way (a line and a take-back), a claimed ride's entrance beside the step, conflicts in one frame, the sale's full first-year scrap, the slide's pieces and its sold tower), CoopUndoJournalTests (the setters, the histories, the permanent marker, the residue of an own chain and of another member, the lists' normal form, departures, the bounds, the own bend chain, a fault; since C5-2 a stroke's entries and its name, river marks, another player's write and a repaint across it, the modes and the first marker, a refused first batch, the bounds, the size limit, the bank's two tests at the 32-bit edge, an employee and a swimmer in the way, a wave machine's water-side cells and its settings, the clipped strokes' set), CoopSessionTests.UndoPools (a guest's strokes with their refunds and charges, the host's Backspace kept on a refusal, the split at the cell bound, a first batch the host could not take, a stroke of an earlier run of the tool, a slide's splash on a stroke's cell until its tower's sale, swimmers in a stroke's water on both parks until they are out, the wave machine through the queue), CoopSessionTests.UndoTracks (a guest's and the host's lines taken back newest first against a twin park of a game of one, tiles and money; the first-line flag after a one-point entry, after loaded corners and on a restart's first line; a fresh and a migrated station's unlaid exit; closing lines on a new and an existing tile, for a guest and the host, with and without the restart; a line laid with no tool on; an older save's owner-zero track; a counter at its limit; a later line's walk over an earlier line, at its start and beyond its own clear (a bridge's ramp); forged rides and flags; a claim lost, expired, released and taken again, handed over, and a cut, with their tombstones; the host's own line after its claim went; the lease; the full stack; single player's bytes), CoopSessionTests.UndoCoasters (a guest's pylons taken back newest first against a twin park of a game of one, an older pylon not the last, the request's shape, no pylon of the tool's own; the host's pylons and its next run; the tool closed and the coaster complete while the claim stays; a node edit, a stack swap and a cut with their tombstones and a pylon placed since; a claim lost while a take-back waits; a claim handed over), CoopSessionTests.UndoTrackClaims and TrackProvenanceTests (owner-zero track joined at a dangling arm and a side branch, a one-sided arm, the exit's seed, the circuit walk's straight run, a tagged tile another ride's track reaches, an ambiguous tile and an orphan; refused lines and take-backs on every peer, and joined and taken back once the ride is unclaimed), CoopJoinSessionTests.Undo (take-backs and a stroke across a resync), the codec's pinned bytes and the class table.

The command layer (C1)#

[EXT:online-coop-commands] Every park edit of a HUD window or tool is a serializable command (ParkCommand, source/OpenTPW/World/Commands/) handed to the park's one funnel, Level.Commands (ParkCommands). A command is keyed on cells, catalogue entries (their content-root key and archive path), rotations, attraction ids and modes, never on screen positions or the camera, and it carries the issuing player's session slot (Player, 0 = the local player and host).

Settings#

The HUD windows' settings are commands too (ParkSettingCommand, ParkSettingCommands.cs, kinds 25 and 30 to 53, C1 part 2): the park door, the entrance fee, attractions open and closed (the reopening guard is asked first, as the open buttons ask it), the ride window's speed, capacity and duration, a shop's or sideshow's price, a winnable sideshow's prize and chance of losing, a shop's quality and ingredient, a staff role's training budget, the research lab's effort, workload and current projects, the loans dialog's list build, taking and paying off loans, ride upgrades and their cancellation, maintenance calls, the answer to a challenge, renaming and dismissing staff, patrol areas (the patrol tool's second click and the employee window's clear button), the park's name, the game speed, the cheats (the secret park name's mode, the Alt keys and the cheats window) and the developer object panel's open-all and close-all.

ParkSettingCommandTests checks the economy settings, the loans, a challenge answer, the park's name, the refusals, a throwing park call, the malformed fields and a visit on a level without game data, and replays a log of settings; ParkSettingCommandLevelTests checks the attraction settings, the maintenance rules and an upgrade on placed rides, and replays a recorded session of settings on a twin park with the same hash after every tick. Shop and sideshow prices and prizes are exercised through their windows (ShopPriceIngressTests).

Tools#

The tools' writes are commands too (ParkToolCommand, ParkToolCommands.cs, PoolCommands.cs, TrackCommands.cs, CoasterCommands.cs, kinds 54 to 98 with gaps, C1 part 3): the land, the hire and the employee in hand, the pools extension's tool and wave machines, the kart and water rides' track tools, and the coaster tool with its panel. A tool keeps its own state between clicks (a stored fence post, a stroke and its undo stack, the candidate being placed or the employee in hand, a tile picked for a cut, the panel's selection and a drag's pointer) and issues one command for each write it made before the command layer, at the same moment, so no single-player run changes.

ParkToolCommandLevelTests drives the staff and pool tools on a level without game data and applies their logged commands to a twin park, which reaches the same hash (the twin's reconcile between the pick-up and the drop keeps the employee picked up). TrackAddOnLevelTests applies a kart ride's logged lines, undo, cut, the line tool's reopening and Backspace after it to a twin whose track layer and ride controller match the issuer's. CoasterCommandTests runs a coaster tool session (clicks, Backspace, the panel's drags and a cut) and builds the same coaster (its pylons, its controller and the money paid) on a twin from the logged commands alone, and fuzzes three players' panel commands on a coaster in each state the tool reaches (no refused command changes the coaster or the drags); ParkToolCommandLevelTests enters and leaves the coaster tool on a level through its commands and completes a coaster there that a twin completes from the log. PoolsTests takes back a stroke longer than a command in chunks, and ParkLandTests checks the land command's posts and verdict.

Serialization#

ParkCommandCodec writes a command as an envelope (version1 for legacy kinds, version2 for native queue-segment kinds16/17, the kind's tag, the player) and its fields in declared order: integers as zigzag LEB128 varints in their shortest form, strings as a byte length and UTF-8 (at most 512 bytes), floats by their bit pattern, cell lists as a count and pairs (at most 4096). Coordinates are bounded by 4096 and rotations are the four build angles. The decoder refuses truncated bytes, trailing bytes, an unsupported version/kind combination, an unknown kind, a padded varint and out-of-range fields. Kind tags are never reused or renumbered. The schema test (ParkCommandCodecTests) pins the bytes of one sample of every kind; a change of any of them needs a new format version.

Recording and replay#

ParkCommandRecorder records every applied command with its tick, and the world hash (WorldStateHash) at its checkpoints: the level's own recording (Level.StartCommandRecording, --record-commands) takes one every 60 ticks. ParkCommandLogFile is its file: the magic OTPWCMDS, format version 3, the theme, the world seed, the start tick and start hash, a flags byte (bit 0: the commands applied under a co-op session's rules), then the commands and checkpoints in tick order and an end mark. Versions 1 and 2 have no flags byte and remain readable (version 1 cannot contain the new queue commands). ParkCommandReplay.Run schedules a log on a park that stands where the log started and runs it tick by tick, so each command lands where it was recorded, under the session's rules when the log says so; FirstMismatch compares the checkpoints. A log taken from a running recording gets a final checkpoint, the park when it is taken: it comes after every command recorded by then, so it replaces an after-tick checkpoint of the same tick (a session's teardown records its releases after the last tick, C4a), and a replay compares it after the commands logged at its tick, which Run applies after the last tick. A log is guaranteed to replay only on the build that recorded it: kind 14 (BacktrackCommand) gained meaning over pool water and pool bridge cells with the pools extension's Backspace removal, so a log recorded before that, with the key pressed over such a cell, did nothing then and does something now.

A co-op session records its own log (CoopHostStream.SessionLog, kept at the first desync and when the session ends): every command from the session's start, with the world hash of each tick digest as its checkpoints. It takes none between the digests (a world hash is most of a digest's cost), only at its start, at the first desync and at its end. It is the only log that sets the session-rules flag: the refusals of the cheats, the secret park name, the developer kinds and a command issued inside another read those rules, and ParkCommandReplay.Run replays the log under them on the session's starting park. Its rights are the session's too, given to the replay (CoopBuildRights on the replaying park): a guest's command the session's rights refused is refused again, and an object a guest's area clear left standing is left again, so the checkpoints match. A session's log does not replay without them.

ParkCommandLevelTests runs a scripted build session (objects, the path tool with lines, undo and cancel, path removals, Backspace, the Move tool, a sale, the remove tool and refused commands) on a no-data level, replays its log on a twin level and finds the same hash after every tick.

A park that spends from its player's ticket account (IPlayerTicketWallet, UI-051: a Full Simulation park, and an Instant Action park since round 9) decides a ticket purchase by the account, which is the player's file and not part of the log or the park's state. A log that holds such a purchase replays only on a park whose own tickets or account hold the same, so the replay park is given the account of the player who recorded it (the same progress file) or the purchase is refused and the checkpoints differ; a session's log never holds one, because a shared park spends its own tickets.

The guard#

ParkCommandLayerTests reads the tool layer's source (the HUD, the UI, the front end and online screens without their smoke harnesses, the tools, Level.Input.cs and the Theme Park Inc HUD) and fails on a direct call of any converted park mutator. A visit's park construction from its package (SharedParkLayout) is not a tool and is left out, as a save's restore is. The mutators not yet converted are listed with the part of C1 that converts them; that list may only shrink, so a converted one must move to the guarded list.

Converted and remaining#

AreaCommandsState
Objectsplace (the build tool, the Move tool, track add-ons), the remove tool, remove at a cell, sell from the object and attraction windows, the Move tool's pick-up and its end, the bulldozer (area clear: one command for the rectangle, ClearAreaCommand, C3b-1; one command per cleared cell before)converted
Paths and queuespath and queue lines, undo inside the tool, path and queue cell removal, Backspace over a cell, the queue edit clickconverted
Developer prototypeplace and remove the Totem, open and close it (the developer panel's button)converted
Winning screenthe end-of-park finale's dismissal in either game type (Escape, the late right click)converted
Settingspark open and close, ride open and close, the ride window's settings, entrance fee, prices, prizes and shop settings, loans and the loans dialog's list build, dismissal, training budget, research, challenges, maintenance, ride upgrades, park and staff rename, patrol areas, cheats, speed, the developer panel's open-all and close-allconverted
Toolsland, staff hiring and the employee in hand, pool strokes and their undo, wave machines, slide pieces, pool bridges, kart and water track lines, their undo, the edit tool's cut and the line tool's walk to the open endconverted
Coastersthe coaster tool's entry and exit, its pylons and Backspace, the circuit's closing and completion, the coaster panel's drags, stack swaps and cutsconverted

Known limits of C1#

The guests' update in the park turn only (round 11, package S, November 1, 2026)#

The guests' thing update now runs only in the park turn's sweep (docs/DETERMINISM.md, "The guests' update is the turn's sweep"), as the original does (0x516380, 0x54F668). Every simulation that changes a guest's state in a different tick changes the world hash from the first turn on, so, as with each earlier round that moved a guest rule, a host and a guest must run the same build: a guest of another build reports a mismatch at the host's first checkpoint, and a command log recorded before this change replays its commands but reports a mismatch at its first checkpoint after a guest update (ParkCommandLogFile.FirstMismatch). No wire or save field changed and no version marker was added: the lobby's manifest compares assets, not rules, and none of the earlier rounds that moved pins bumped a marker either. The command codec, the join capture and the saves are unchanged.

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