Coaster loop-pair resumption#
This implements COAST-035 (retired in round 11): returning to the loop tool after the first pylon has been placed resumes the second pylon.
Corrected premise#
The previously proposed "selected-pylon" interpretation was too broad. The confirmed predicate reads the current chain endpoint, not an arbitrary pylon picked with the mouse. An incomplete track uses its tail; a completed track with a cut uses the predecessor of the gap. A completed, uncut track has no pending pair. The node's 0x80 flag is sufficient for this predicate; neither node flag 0x40 nor the active loop-mode bit is required.
Clearing the tool mode therefore cannot clear the pending-pair condition. Previously the panel's condition depended on LoopMode, but opening the panel cleared that mode before asking whether a pair was pending. Switching through an edit button also lost the pair counter and restarted it at two.
Static evidence and host mapping#
These addresses are from read-only disassembly of the PC build. No original executable was run for this change.
0x444c00: after the controller and its definition's flag-2 gate, test node flag0x80on the incomplete tail (+0x58) or completed-cut predecessor (+0x60). Return false for completed, uncut circuits.Track.LastIndexprovides the host endpoint throughCutAfter ?? Nodes.Count - 1.0x442d10: a pending endpoint writes pair counter1and sets mode bit0x40. It does not pick a pylon or start a new pair otherwise.Loop selection
0x446fa0โ0x447135โ0x442d10, followed by0x4445b0(2)โ0x442cd0: resume first; otherwise start counter2only if loop mode is off. Already active mode is preserved.Panel opening
0x4455c0independently resumes counter1and mode0x40for a pending endpoint before selecting Loop. Completed, uncut tracks select Height.0x445910disables Build from the endpoint predicate, independently of the current mode.Leaving loop mode (
0x444c80) clears the mode and counter, while the node flag remains. Cursor flags (0x436230) add0x80only for counter2; the resumed cursor carries0x40without0x80.
CoasterBuilder.LoopPairPending owns the endpoint condition; StartOrResumeLoopPair applies the transition. Opening, selecting Loop and refreshing a disabled panel selection share the same behavior. The loop button follows the ride's upgrade level only (shown and enabled from level 1, 0x4980D6, 0x4987f0); the loop mode and the pending pair also need the definition's loop bit (a loop pylon control, 0x42fd57). A pending pair whose Loop button is unavailable (level 0) makes the panel fall back to Height with both build buttons disabled; on a coaster without a loop pylon no pair is ever pending and the Loop button only selects the build mode.
Regression coverage and limits#
Synthetic CoasterPanelTests cover close/reopen, Height/Move interruptions, repeated selection, second-pylon preview flags and rotation, ending a resumed pair, starting a new pair from the still-selected Loop button, cancellation before placement, the cut predecessor rather than the physical tail, flag-only endpoints, completed uncut tracks, availability/upgrade gates, disabled-selection refresh and resumption from existing saved node flags.
No save schema, placement/hover geometry, picking, cost arithmetic or spending path changes. The two qualifications this page used to keep open were read in round 11 (October 30, 2026): the auxiliary dispatcher 0x447a10 is the layout replay's action 0x38 (its only caller is the replayer 0x4045b0; OpenTPW runs no layout replay), and the controller/definition flag-2 gate is the definition's loop bit, set by the definition builder 0x42fad0 when pylon control 1 has a mesh (0x42fd57) and tested first by 0x442cd0, 0x442d10, 0x444c00, 0x444c50, 0x444c80 and 0x4445b0; CoasterDefinition.HasLoopPylon is that bit and CoasterBuilder.LoopUnlocked / LoopPairPending / StartOrResumeLoopPair apply it. COAST-035 is retired.
Source: docs/COASTER-LOOP-RESUMPTION.md in the project repository.