OpenTPW progress entry and lifetime#
This is one application-owned progress file, not a native player profile or lobby reproduction. The model defaults remain zero earned and zero extra keys; missing storage means unknown history. No legacy theme counts or unseen save files supply player-wide history.
The actual New Full Simulation action checks a required Keys.CostToEnter integer from the selected canonical theme's global.sam. Missing, malformed, negative or out-of-range metadata refuses; the balance reader's missing-file zero fallback is not authorization. Existing lazy browser level preparation runs before the final check, while the current scene stays live. The gate runs before any candidate world construction and checks cost/profile again at candidate precommit.
If own history is missing, New offers explicit opt-in through the existing message window. Confirm stages a new Full Simulation ledger with one extra key, admitting only a nonnegative cost at most one; a theme that costs more (Fantasy 3, Space 5) is refused with the keys message before any opt-in is offered. It does not change the model's zero default. Instant Action keeps no progress and starts in every edition. Profile publication occurs atomically before retiring the old scene. A failed write retains that scene and any prior file; a successfully created profile stays created if later activation fails. Reopening/retrying never grants a second key. Known zero-key and Instant Action ledgers are not reset or migrated. New Instant Action bypasses key costs and creates no progress file.
Manual Continue and Load preserve their saved mode/start and are never key-gated. A missing, incompatible or malformed progress file may disable tracking with an explicit notice, while the resumed park remains playable. With compatible known Full Simulation progress, only explicit identities of the current admitted park are reconciled. The runtime owner excludes reference inspection, sandbox, read-only visits, Instant Action and the unsupported TPI economy context.
The owner subscribes the exact ParkEconomyRuntime, not a captured economy. GoldenTicketWon.Amount supplies the kind, checked against the current objective set. Economy replacement is reconciled, and retirement unsubscribes the owner. The six local, four global and two secret scopes follow the ledger contract; existing host AllLandOwned storage makes no new native earning claim.
Failed persistence keeps earned identities in memory. Normal Exit, New, Load, Continue, Visit and UI Quit flush before abandoning pending work or retiring the old world; failure keeps the live world and allows retry. Closing the window, which cannot be refused, tries the flush once more and logs a failure. A queued request and candidate commit recheck the owner. Cancellation wins combined input, captured or retired callbacks cannot start a park, and stale error callbacks cannot pop a fresh screen. Notifications belong to their owner and do not duplicate an already shown refusal.
A SHA-256 digest is calculated from the same capped bytes that were parsed. Any observed change before overwrite refuses instead of replacing another state. This is optimistic single-owner detection, not cross-process compare-and-swap or an atomic transaction joining a profile and world. Forced OS termination, browser storage durability and post-retirement hardware failure recovery are unqualified. There is no native GMS writing, named-profile UI, global mystery transaction, TPI progression or original-executable parity claim.
Synthetic controls use actual menu dispatch, guarded GameFlow bindings, isolated candidate precommit seams, real temporary/rename refusal, actual economy awards, loaded runtime replacement and dirty retirement/retry. Terrain/GPU/windowed candidate activation and original shipped metadata have not been freshly executed.
Independent ingress controls also pin declared zero cost without resetting Full or Instant Action history, raw-byte digest changes, theme lease changes, late candidate precommit refusal, bounded profile reads, checked award amounts and exact runtime unsubscribe. A failed dirty level-queue flush retains the pending action, live world and its hash, then persists the earned identity on retry. These controls do not qualify cross-process writes or rendered activation.
Independent transaction and lifecycle controls#
Secondary headless tests execute the actual staged GameFlow pump with a real EntityConstructionScope and controlled Level.Step, rather than only invoking a candidate precommit delegate. Construction refusal and a dirty award arriving during staging retain the exact old level, entity list, camera and serialized economy, and delete only the candidate. Canceling a staged request cannot publish its tentative profile. Ordinary construction failures without a progress precommit still propagate.
A real entity-retirement exception after profile publication pins a different boundary: the legitimate one-key profile remains and a fresh request does not award another, but the old world may already be partially retired. This is not world rollback. EnterLevel and Ready run outside the precommit catch; a failure there does not trigger that catch to dispose the entered candidate. Post-activation listener/window or hardware failure recovery remains unqualified.
Further controls cover a dirty award after queuing but before execution, direct teardown refusal before ownership/stack mutation, normal UI Quit refusal before an absent native window could close, actual successful staged-style teardown, runtime Load followed by a real award without Pump, and one/zero subscriptions across rebind/retirement. A native close, terrain construction, rendered candidate activation and browser storage were not executed. A synthetic successful-teardown fixture uses applyPendingLanguage:false, the same option as staged retirement; its earlier missing-language-folder failure is retained in the review evidence.
Source: docs/PLAYER-PROGRESS-INGRESS.md in the project repository.