OpenTPW

PowerPC scenario, progression and staffing evidence#

2026-10-09 (four follow-up passes the same day; fifth to seventh passes 2026-10-10). Scenario lane of the nine-lane PowerPC continuation. Static inspection of the Feral Interactive Mac port of SimTheme Park (Theme Park World); the original program was never run. No original bytes, disassembly, extracted assets or manual text are stored here. A local disassembler (llvm-mc) was used for review only. The checked-in tools are standard library only and print interpreted operands, offsets and identifiers.

Scope: game modes and player creation, golden tickets and keys, theme entry, challenge activation, research progression, strikes; follow-up: new-player key lifetime, GameType versus front-end/main-loop state, advisor rule/response tables, staff wages/dismissal/training/rest, bankruptcy, profit year and the complete Standard.sam (CMainBalance) field binding; second follow-up: player-window lifetime (new-player key closure), map-cell types and guest statistics, secret tickets, "all researched and built", mystery-item placement, Instant Action UI gates, a manual-versus-code table and a typed contract with synthetic boundary tests (Progression contract); third follow-up: player profile creation, enumeration, selection, persistence and deletion, where the mode is stored, the missing/unreadable player-file path, the key gate's refusal path, the park loader's header gate and its application to the PC park files, and a handoff for a later profile implementation (Player profiles, Profile handoff); fourth follow-up: the complete gms.dat byte schema and its version gate, read-failure ordering, the key award's ordering against creation, where the key count comes from, and the saved first-time and swear-filter flags (Player file schema and failure order, Key award and key source); fifth follow-up: the eight front-end Keys() readers, the lobby door display against the door gate, and spent tickets versus keys in mystery purchases, with a bounded reference calculation (Key displays and ticket spending); sixth follow-up: an immutable gms.dat snapshot reader, writer and JSON envelope with explicit Mac-partial and strict-host policies (Profile snapshot reference); seventh follow-up: the theme-key string constructor and comparator, the writer's theme/mystery order, where a short read stores its bytes, and a correction to the reference readers' partial-member rule (Native string, order and short reads). Every finding below is a fact about this Mac binary unless explicitly stated otherwise. It is not evidence for the PC TP.EXE or Patch 2 runtime (see Mac and PC relationship).

Reproduce#

# instruction-field witnesses (2090 checks, identity-pinned; follow-up checks live in
# followup_evidence.py, progression_evidence.py, park_entry_evidence.py,
# profile_evidence.py, player_file_evidence.py, key_display_evidence.py,
# profile_snapshot.py and native_io_evidence.py (which also reads three
# SHA256-pinned shared libraries under bin/libraries), included in the same JSON report)
python3 -I tools/ppc-analysis/lanes/scenarios/scenario_evidence.py /Users/sander/server/game-assets/mac-feral/bin
# tests (synthetic fixtures; the ten corpus cases, including in-memory mutation
# regressions, run only with OPENTPW_MAC_BIN set)
python3 -m unittest discover -s tools/ppc-analysis/lanes/scenarios -v
OPENTPW_MAC_BIN=/Users/sander/server/game-assets/mac-feral/bin python3 -m unittest discover -s tools/ppc-analysis/lanes/scenarios
# Mac park-header checks applied to PC park files (interpreted values only)
python3 -I tools/ppc-analysis/lanes/scenarios/profile_evidence.py /Users/sander/server/game-assets/mac-feral/bin \
  /Users/sander/server/game-assets/theme-park-world/Data/levels/jungle/Easymode.TPWI
# typed contract, synthetic boundaries only (23 cases)
dotnet run --project tools/ppc-analysis/lanes/scenarios/contract/OriginalProgressionContract.Tests.csproj --configuration Release

Mac data comparison: copy hfs.img to a scratch directory first, then use hfsutils with an isolated HOME (hfsutils keeps state in $HOME/.hcwd, which is shared between concurrent sessions) and copy data forks only (hcopy -r) of :Theme Park Data:data into a scratch tree (Language/American/..., Advisor/Advisor.sam, levels/...). Then:

python3 -I tools/ppc-analysis/lanes/scenarios/mac_data_compare.py <scratch-mac-data> \
  /Users/sander/server/game-assets/theme-park-world/Data \
  --patch2-data /Users/sander/server/game-assets/theme-park-world-patch2/Data

Identities: SimThemePark.data 04809cd4ccee5433c7fb0b7c93d32f6a7aa629c1849181c0b7906415e5e295f5; hfs.img 46edf2f94ce9a36834f7760ef3e3852e623863a8a8ef99ef629872b15d599365 (volume "Theme Park", created 2000-11-09); Mac manual STP_Manual.pdf (78 pages) 0bd911e353a9d587d640976b5adbb9261ca88daa47a8f6ab5028eee7c2a09f5f; Mac STP_Easy_Guide.pdf (14 pages, "US Easy Guide 25.10.00") e3c6ce419c748f52777a1f8ed96d8153e6b9c135a30fac65ec06f4a9026bd70f; supplied Windows manual c96eb25f…0668 (39 pages, see docs/REFERENCE-MANUAL.md).

Method#

String literals sit in the code section and are reached through relocated TOC words (TOC base 0x8000, from the main transition vector). Functions were located from those references and from direct bl call targets only; the heuristic traceback finder was not used. "Sole caller" claims mean: exactly the listed direct calls exist and no relocated data word (transition vector or pointer) names the routine. The balance (.sam) schema is a static table of 60-byte records [type][48-byte name][count][spare]; the follow-up pass derived every field offset from the parser itself (see Balance field binding) and checks the result against 17 independent code displacements. Advisor IDs passed to the message builder at 0xb6d8 are advisor rule IDs; the lobby queue uses response IDs directly (see Advisor rules and responses).

Mac and PC relationship#

Verified facts#

Confidence: high = operands and control flow checked by the verifier and reviewed manually; medium = depends on a stated layout or semantic inference; values in parentheses are the shipped .sam data.

Game modes (high)#

A global GameType object (data 0x53d98) has three values:

GameTypeMeaning (evidence)
0Offline Full Simulation: set on player load when mEasyModeUser is 0.
1Online: balance loader uses data:levels:online_Standard.sam and the theme online_Standard.sam; player load never overrides type 1.
2Instant Action ("easy user"): set on player load when mEasyModeUser is 1; balance loader adds the theme file with the Easy_ prefix (%s:%s%s, missing file is non-fatal).

GameType versus other state values (high)#

Three different enumerations meet at mode changes and must not be conflated:

ObjectValuesWriters
GameType, data 0x53d98 (not serialized)0 Full Simulation, 1 online, 2 Instant Actionexactly 10 SetGameType call sites: lazy construction from the startup flag bits (4), player load (2, skipped while GameType is 1), online entry 0x971ac and 0x18b0e4(0) (→1), main-loop state 11 (2)
Front-end exit code, *(data 0x84b80) + 201 front end running (set on entry 0x8cfb0), 2 enter a park (park chosen 0x9665c, and both online entries), 3 quit (0x8d698)read back by 0x8d3b0
Main-loop state, data 0x15c4880..15, 16-way jump table at data 0x52cc8; 2 runs the front end, 3 leaves it, 9 loads a park, 11 leaves a park, 12 shuts down0x1c1208

The online entries write exit code 2 and GameType 1 together; that is the "2 then 1" seen at those sites, not a GameType sequence. The player save persists only mEasyModeUser. Leaving a park in main state 11 while GameType is 1 and the 1028-byte session object (data 0x120da8) has +1008 == 0 restores GameType from mEasyModeUser (2 or 0). Front-end exit code 2 → main state 9, anything else → 12.

Park entry (high)#

Which park file an offline park entry reads (park_entry_evidence.py, 90 checks including caller and store scans):

So the first park of a Full Simulation player in a theme starts from the level and balance alone; an Instant Action player's first park is the copied easymode.TPWI where the theme ships one. Later entries resume the newest save in that theme directory for both modes. The other three loader callers are a debug QuickLoad (0x112ab8), a save chosen by name (0x19882c) and the online session (0x1c200c, GameType 1). Not established: what 0x11acfc does with each file, the wildcard semantics of the imported CFileStorage, how a player starts a theme over, and PC equivalence.

Park header gate and PC park files (high for the gates)#

The park loader 0x11acfc and its header reader 0x11c880 (sole caller) apply these checks before the payload, in this order:

  1. A little-endian int32 version; the resume load (mode 2) rejects a version above 500 (error 9, "future version").

  2. A language byte, then 1280 bytes of UTF-16LE text compared with that entry of the banner table (0x120114, 20 bytes per entry; entry 0 is the 412-character legal text at code 0x1d6144). A mismatch logs "legal text has been jiggered with". That the compare stops at the first NUL is the imported TbStringBase<w>::operator!=(const wchar_t*) semantics (inference).

  3. 256 bytes passed to 0x109e0c (object availability; a non-zero result is error 8; not traced).

  4. Four raw bytes equal to the word at data 0x46fb8 (0x01221985; error 6).

  5. A little-endian int32: 1 = an embedded header follows, 0 = none.

profile_evidence.py applies 1, 2 (entry 0 only), 4 and 5 to PC files:

FileVersionLanguageBannerBlockTagResult
baseline and Patch 2 levels/jungle/Easymode.TPWI (identical)4000equalall zeroequalpasses the traced gates
Theme Park Inc PreBuilt/prebuilt.TPWS (negative)5001uncheckedall zerodifferentrejected (tag)

So the PC counterpart of the file the Mac Instant Action copy names passes every header check the Mac resume applies, except the untraced object block (all zero here). The payload is not qualified. No other PC save exists in the assets: both PC save directories are empty and no gms.dat is present. The PC executables carry none of the profile names in plain text (tp.exe and Patch 2 TP.EXE are small loaders; TP.ICD is encrypted), so the PC profile layout is not established by these assets.

Player-global progression record (high)#

A 76-byte singleton (pointer at data 0x120d84) is reset by 0x1287d4 and serialized by 0x129308, which binds names to members:

MemberOffsetReset
mEarnedGlobalTicket[i] (4 bytes)24–270
mSpentTickets (word)280
mExtraKeys (word)320
mEasyModeUser (byte)360
mSwearFilterOn (byte)371
mEarnedSecretTicket[i] (2 bytes)38–390
mFirstTimePlayer (byte)721

Also present: a per-player set of purchased mystery item IDs (+40, serialized as rideId), a per-theme record list (iterated from +64 to the +56 sentinel) and a current-theme pointer (+68). Per-theme records hold six local-ticket bytes (0–5), four "global ticket held here" bytes (6–9) with recorded values at 12+4·i, the lazily loaded global.sam object (+28) and mAllResearchCompleted (+185); the per-theme serializer names (mEarnedLocalTicket[i], mAward[i], mAwardScore[i], mSignNameA/B[i], mNameChanged, mAllResearchCompleted) were seen but their offsets were not individually bound.

Player profiles (high)#

profile_evidence.py (268 checks). A 212-byte manager (pointer at data 0x120e2c, constructor 0x136860) holds four 24-byte slots (a wide name string and a word at +20) and the current slot at +96 (−1 = none).

PathBuilt by
<base>save0x137058 (<base> comes from the object at data 0x53750, not traced)
<base>save:users0x1370d4 (online sits beside it, 0x137d20)
<base>save:users:<slot+1><name>0x137284: decimal slot + 1 (_itow, radix 10), then the name
…:<name>:gms.datplayer-info file; static wide string gms.dat (0x137f98)
…:<name>:<theme>park saves (Park entry)

Player file schema and failure order (high)#

player_file_evidence.py (457 checks). The serializer 0x129308 has one write path (0x128f5c) and one read path (0x129060). Every member goes through a helper that calls LbFile_Write/LbFile_Read with a fixed width; multi-byte values are byte-swapped, so the file is little-endian. One exception: the four 8-byte settings values keep their first word unswapped (Mac native order) and swap only the second. No names, tags or padding are written.

#FieldEncodingRecord offset
1versioni32—
2mEarnedGlobalTicket[0..3]4 × u824
3mEarnedSecretTicket[0..1]2 × u838
4mSpentTicketsi3228
5mExtraKeysi3232
6mEasyModeUseru836
7mSwearFilterOnu837
8mFirstTimePlayeru872
9theme count (size)i32, signed loopmap +52
10per theme: name length, name bytes (no terminator), theme recordi32, bytes, 160 bytes—
11settings block (static object, data 0x120a14)39 bytes—
12mystery count, then rideId eachi32, n × u16set +40

Theme record (0x12a0bc, a 188-byte object, 160 bytes on disk): mEarnedLocalTicket[0..5] (u8, +0), then for i = 0..3 mAward[i] (u8, +6+i) followed by mAwardScore[i] (i32, +12+4i), then for i = 0..32 mSignNameA[i] (u16, +52+2i) followed by mSignNameB[i] (u16, +118+2i), then mNameChanged (u8, +184) and mAllResearchCompleted (u8, +185). The pairs alternate on disk; they are not two separate arrays. Settings block (0x12653c): SFXVolume, MusicVolume, SpeechVolume, MovieVolume (8 bytes each, object +16/+24/+32/+40), then seven u8 flags AdvisorOn, TutorialOn, TooltipsOn, ConfirmDeleteOn, RMBScrollOn, RMBCancelOn, IsometricOn (+52..+58). These are game-wide settings stored in every player file: reading any gms.dat, including during the start-up scan, overwrites them. The scan order (FindFirst/FindNext) is not traced, so which file's settings win at start-up is not established.

Key award and key source (high)#

Tickets and keys (high)#

Theme entry and initial key (high)#

Golden-ticket checks (high)#

TicketPredicate
Local 0 Visitors0xc3b7c(park) (visitor counter park+0x21C08) > [1872] (100)
Local 1 People in park0xc3684 (guests in the park, below) > [1876] (200)
Local 2 Happinessfloat 0xc19e4 (mean guest happiness) > (float)[1880] (75) and the same 0xc3684 guest count > [1884] AtLeastThisManyHappyPeople (150) — despite the key name, nobody is filtered by happiness
Local 3 All researched and built0xc5510(park) true
Local 4 Profit yearfinance +292 > [1888] (15000); +292 = credits − debits since the last CMsgEndOfYear (13 zeroes it), i.e. year to date, not a rolling 12 months
Local 5 Recent visitors0xc3b88(park, [1896]=6) = counter − the history value [1896] months back (0 when the history lookup fails) > [1892] (350) and park age in 30-day months (low word of the 64-bit quotient) > [1896]
Global 0–2coaster height / go-kart excitement / water length statistics > [1900]/[1904]/[1908] (105/90/50); the value is stored per theme
Global 3 Big parkcount of 128×128 cells of types {4, 9, 10, 21} or object-occupied > [1916]
Secret 0 Camerascoverage % == 100, over cells whose type ∉ {2, 7, 30}
Secret 1 Own all landnever awarded (below)

Cell types and guest statistics (high; names medium)#

Secret tickets and "all researched and built" (high)#

Mystery items (high)#

Key displays and ticket spending (high for operands; presentation not traced)#

Fifth follow-up (key_display_evidence.py, 242 checks). Control ids, states and format strings are operands; what they look like is not traced, and no label, art or screen name is implied.

Reference calculation (same module, synthetic values only): earned_tickets, mac_keys, mac_available_tickets, mac_theme_door, mac_lobby_door_display, mac_count_panel, mac_mystery_place and mac_menu_affordable. Preconditions: GameType ∈ {0, 1, 2}; counters and costs signed 32-bit ints; ticket bytes exactly 4/6/2 unsigned bytes; theme usability is a caller-supplied bool (the original loads global.sam as a side effect, the reference does not); item keys unsigned 16-bit. A violated precondition raises before any result. test_key_display.py covers the failure order, equality boundaries, signed and wrap cases, and 11 in-memory mutations (wrong branch, unsigned compare, extra cache user, spend into mExtraKeys, placement debiting money) that the witnesses must reject. Nothing here is PC evidence; ECON-040 stays PC-unqualified.

Profile snapshot reference (high for the layout; strict policy is a host choice)#

Sixth follow-up (profile_snapshot.py, 19 more checks; test_profile_snapshot.py, 30 synthetic cases and 2 corpus cases). A standalone reference for a later profile implementation. It is not wired into the front end, the runtime or any save path, creates no folders and touches no host settings. No gms.dat exists in the assets, so every fixture is synthetic. Nothing here is a PC parser.

Reader details pinned for this pass:

Module contents (synthetic bytes only):

Tests cover every truncation length (partial under mac-partial, truncated under strict), the byte-18 mode boundary, overlay and reset of later members, cut themes and settings, an oversized name length, duplicate and NUL-colliding theme keys, negative counts, repeated ids, trailing bytes, the version boundaries 0/11/12/13/0x7FFFFFFF/0x80000000/0xFFFFFFFF, byte and JSON cycles, writer refusals, immutability, agreement with read_mac_player_file, key counters (non-zero bytes, usable themes only, spending never lowers keys, negative and wrapping counters, partial records) and four witness mutations.

Native string, order and short reads (high, except one Mac OS step)#

Seventh follow-up (native_io_evidence.py, 140 more checks, 2090 in total; test_profile_snapshot.py, 11 more cases including 3 corpus cases with 8 in-memory mutations). For the first time this lane also reads shared libraries the executable imports. Each is pinned by SHA256: bullfrog_shared.data (b67b56b7…ec06), c_c++_shared.data (5e04f9c0…b27f) and macdoze_shared.data (ba11331a…2f0d). Nothing was executed and no gms.dat exists; every fixture is synthetic.

Correction to the reference readers. read_profile_snapshot (mac-partial) and read_mac_player_file previously showed the reset value for a short i32 player member. That was not faithful. Both now apply short_import (delivered bytes over the earlier big-endian bytes, unswapped), qualified by the FSRead dependency above, and mac-partial records the delivered byte count as an issue. strict-host is unchanged (truncated). A partly read 8-byte setting is reported as an issue only.

Envelope validation and provenance (reference tooling only)#

Eighth follow-up (profile_snapshot.py; test_profile_snapshot.py, 10 more synthetic cases, 52 in total with 5 corpus cases). No new binary facts and no new instruction checks (still 2090). Everything here is about the Python reference, not the Mac or PC game.

Policies stay explicit (no default). serialize_profile_snapshot still refuses partial records and still writes in file order, not the native sorted order. The Mac's unsigned version >= 12 acceptance and the strict-host unknown-version reject still differ on purpose. The tests are synthetic. They cover every truncation of seven fixtures cycling through JSON text, plus type, range, missing-field, unknown-field, provenance and consistency refusals and the large repeat sets. They show that the reference is consistent with itself. They do not show that any real gms.dat matches.

Instant Action availability (high for the gates)#

Every gate below is a direct GameType test (== 2, or == 0 for tickets and challenges). Mac UITEXT indices from 207 on are Windows + 1.

FeatureInstant Action behaviourEvidence
Golden tickets, challengesnot checked0xd2f1c, 0xcfef4 (GameType 0 only)
Theme entryno key test0x964c4
Research panelnot opened; message "Research is automatic in Instant Action mode." (Mac 468 / Windows 467); otherwise "hire some researchers" (Mac 467 / Windows 466) under a condition not traced0x161910
Research pointsresearcher staff only, as in Full Simulation0xf0728 (see Research)
Bank panel ("Available Loans", UITEXT 170)not opened0x154aa0
Loan buttonsdisabled (virtual +28 0x17fb64 with 0 sets the disabled bit 0x2 of +68 and notifies message 23) on three panels: controls 324524, 74367, 7330x14eeec, 0x15161c, 0x1698e8
Ride upgradeslist skipped; "Upgrades are not available in Instant Action mode" (UITEXT 27)0x165a0c
CompletionUITEXT 471 (Windows 470) "now you've completed Instant Action mode…"0x13d708 (pointer-dispatched)
Balance overlayEasy_ theme file added0x10474c

The three disabled controls carry help texts 196, 219 and 174 ("Click to take out or repay loans (L)") in their layout records. This binding comes from the UI lane's layout decoder (ppc-ui corpus.layout_table), read-only, and is not re-verified by this lane's witness. Lobby callbacks 0x183dd0/0x184028 are the key displays (Key displays and ticket spending); 0x183cc0 (click sound, UI lane) and 0x966f8/0x9677c also skip work under GameType 2 and are not interpreted here. The advisor rule filters 0xe128/0xe4ec accept every rule under GameType 0, only rules whose +12 word is 1 under GameType 2, and none online (advisor lane to interpret).

Challenges activation (high)#

0xcfef4: challenges run only for GameType 0. They switch on (persisted mChallengeOn, +984) once a park-open style predicate 0xc3524 holds and park age in days ≥ DaysUntilFirstChallenge ([1928], 540). The day divisor is 864,000,000,000 in the 100 ns time-difference unit = 86,400 s.

Strikes (high for the code; reachability unresolved)#

Research (high)#

Advisor rules and responses (high; text binding partial)#

IdKindMeaning (from the call site)Responses → samples
167ruleall research complete (Instant Action: current theme; offline: every theme)380–381 → sp_452/453
215 / 216 / 217rulelocal ticket won: award code 1 / 2 (+key) / 3 (+key +new theme); variant = local ticket 0–5434–439 / 446–451 / 458–463
220 / 221 / 222ruleglobal ticket won, same award codes; variant = global ticket 0–3440–443 / 452–455 / 464–467
234–237ruleglobal ticket 0–3 "moved here" (award code 4)474–477
390 / 391responsefront-end init, no named playersp_465 / sp_466
398responsefront-end init, players existsp_471
393responsefirst lobby entry, Full Simulation (extra key)sp_468
394responsefirst lobby entry, Instant Actionsp_469

The spoken wording was not transcribed, and the CMsgTag id → TAG_SYSTEM table was not traced (ids are not direct indices; see the ticket ordering note above).

Staff wages, dismissal, training and rest (high)#

Finance, bankruptcy and profit year (high)#

Balance field binding (high)#

The CMainBalance object at data 0x54860 is constructed by 0x198fc (vtable 0x38fbc at +4) and parsed by 0x16f4c. Its schema is the 283-record table at data 0x34d10 (0x19950: table + 60·i; record count = index of the first type-12 record, 0x197a4); values start at this + 8 (0x19960). The parser's word counter starts at 1; types 4–11 take one word; a type-2 record opens a flat struct array closed by a type-3 record (count at +52) that advances (count − 1)·fields + 1 words; type 1 names the preceding scalar group; types 0/1/2 take no space. Applying this rule binds 487 qualified names (354 of the 362 keys in Standard.sam; the other 8 come from one multi-column header line) and reproduces all 17 displacements that code reads from the object, e.g. BankAccountInfo.InitialCash 408, BaseWage 748, PayMultiplier 832, ResearchAbility 1052, ResearchTech[1] 1280, StartingWorkLoad 1344, GoldenTicketLocal.Visitors 1872, MinCellsCovered 1916, DaysUntilFirstChallenge 1928. The verifier recomputes the layout and fails if any anchor moves (mutation-tested).

Time units (medium)#

The ticket, strike and challenge checks use one park-age function 0xe4628: age = calendar[+28] × worldTicks / 4 seconds, expressed as a 64-bit time difference in 100 ns units (×10,000,000), then divided by 30 days or 1 day. The calendar multiplier and the start date were not traced here. Cross-lane (independent review, round 3, from the clock lane): calendar+0x1c is mFunnySecsPerRealSec = 15000, so a game day is 23.04 ticks, a 30-day month 691.2 ticks, DaysUntilFirstChallenge 540 ≈ 12,442 ticks and the 100-tick ticket check ≈ 4.34 game days, unless a .sam or save overrides +0x1c (untraced). Not a resolution of ECON-001..004.

Manual statements versus Mac code#

Manual statementSourceMac codeStatus
Instant Action starts with a pre-built park and staff; research is automaticMac manual printed pp. 4, 8, 46; Windows manual research sectionresearch panel refused with the matching text; points still come only from researcher staff (the start park ships one)consistent; "automatic" means fixed efforts/workload, not staffless
"Loans are not available in Instant Action Mode."Mac manual printed p. 49; Windows manual bank sectionbank panel not opened, loan buttons disabledconsistent (UI-level)
Upgrades in Instant Actionnot statedupgrade list skipped with UITEXT 27code-only fact
Every third ticket gives a key; buying mystery items does not lose keysMac manual printed p. 28; Windows manualkeys = extra + earned/3; spending only changes mSpentTicketsconsistent
Tickets/keys are a global currency; uncovered items stay buyable for cashMac Easy Guide printed p. 8player-wide record; placement charges tickets once, then moneyconsistent
Two worlds open at startMac manual printed p. 6Full Simulation first lobby entry grants mExtraKeys 1; jungle/hallow cost 1consistent
Strikes (warnings, strikes of one week to a month)Windows manual pp. 40–43; Mac manual pp. 11, 16state machine present but gated; no week timerconditional: Mac Easy Guide says strikes were removed
Secret ticket for owning all landTAG_SYSTEM 191 text onlyno award pathtext exists, mechanic absent on the Mac
Golden tickets for many park qualities (no thresholds given)Mac manual printed p. 28strict thresholds from Standard.sam, Full Simulation onlymanual is non-specific

Manual statements are player-facing descriptions; where they agree with the Mac code that agreement is still not PC TP.EXE evidence.

Profile handoff#

For a later unified ParkGameMode/profile implementation. Mac facts only; the PC runtime is unproved (Park header gate and PC park files).

Progression contract#

tools/ppc-analysis/lanes/scenarios/contract/ is a dependency-free .NET 8 helper outside the production projects. It types the three separate state variables (OriginalGameType, OriginalFrontEndExitCode, OriginalWorldState) and states keys, award codes, theme entry, the ticket schedule and predicates, cell classes, "all researched and built", challenge activation, research group opening, mystery placement/uncovering, wages, bankruptcy, Instant Action availability and the front-end new-player session. Every counter, statistic and balance value is a caller argument; the 23 synthetic cases use invented thresholds. It deliberately defines no phase rules or game-flow mode and is not wired into ParkEconomy, PlayerProgress or the front end; the economy lane's annuity placeholder is untouched. Its README lists each member's anchor and the parts it does not model.

Production mode wiring#

The production game now applies the mode findings that existing code paths can carry (docs/ECONOMY.md, "Game modes"); the contract above stays a separate, unwired reference.

Register impact (proposals; registers not edited here)#

ID / areaCurrent OpenTPW assumptionMac binary evidenceSuggested state
ECON-0401 starting key; keys not consumedNot consumed: proven. Start: Full Sim gets mExtraKeys 1 on first lobby entry; Instant Action 0 keys but no key check; a repeat award needs front-end init, which clears the flag (player-window closure); keys are derived (mExtraKeys + earned/3, earned = non-zero ticket bytes, locals only for themes whose global.sam loads); the award is a second gms.dat write after creation, and failures of both writes are ignoredMac-resolved; PC confirmation remains. Display: lobby door display uses the door predicate, key counts are hidden at 0 keys and never shown in Instant Action
PlayerProgress.Keys (untagged)1 + Σ per-theme earned / 3mExtraKeys + (player-wide globals + per-theme locals + player-wide secrets) / 3untagged divergence: global/secret tickets are once per player, not per theme
ECON-029tickets spent on GoldenTicketCost purchasesfirst placement of a ticket-cost item spends tickets once per ID (player-wide set), no money; later copies cost the money price; online free and unrecordedpartial support; item set persistence and the cash price after uncovering are missing. Fifth pass: build-menu gate signed cost ≤ earned − spent (no GameType test); spending lowers available tickets only, never keys; an unaffordable placement that reaches 0xd3000 is neither recorded nor charged
ECON-033checked at month endevery 100 mGameTick ticks (unsigned modulo), GameType 0 only; about 4.34 game days per check (cross-lane calendar figure)contradicted
ECON-038big park = MinCellsOwned, cameras = MinCellsCoveredbig park reads 1916 = MinCellsCovered (parser-derived layout); cameras need 100 % coverage; MinCellsOwned (1912) unreadcontradicted (high)
Ticket predicates (untagged)>=; happiness counts happy guestsstrict signed >; people in park = guests (class 1) on cell types 0/1/3/9/10; happiness = float mean of truncated guest happiness (0 while closed) and the second test reuses the guest count; RecentVisitors also needs park age > N monthsuntagged divergence
ECON-039profit of last 12 closed monthsyear-to-date accumulator +292, zeroed on end of year, checked every 100 tickscontradicted
ECON-034..036challenge semantics/flowchallenges only in GameType 0; first offer at park-age day ≥ DaysUntilFirstChallengeonly activation resolved
Challenges/tickets in Instant Action (untagged)disabled in Instant Action (ParkModeFeatures)both disabled for GameType ≠ 0applied for the Mac rule
ECON-014no strikes, happiness constanthappiness is not constant: work drains it, rest recovers it, training resets it to 100; strike state machine present but gated; Mac guide says strikes were removedhappiness part contradicted; strikes conflict, requires PC/runtime evidence
ECON-015ResearchAbility per day split by effortper researcher work cycle, × effort share × workload/100 (workload starts at StartingWorkLoad 85, player-set ≤ 100)partially contradicted (cycle timing open)
ECON-016group g opens at PercentageForThisTech[g] % of group g−1group g opens at PercentageForThisTech[g] (same index, layout-proven) measured cumulatively over all groups ≤ g−1, unsigned percentage and compare, 0 % for an empty setpartially supported: threshold index matches, percentage basis differs
ECON-017cheapest firstitem choice not tracedunresolved
ECON-019stand-in for the Instant Action seed's undecoded researcher: one grade-2 researcher while none is employed, only after the seed was importedno staffless path; researcher staff only; the research panel is refused with the 'research is automatic' textcontradicted as a staffless rule; retired: SAVE-I decodes the Easymode.TPWI staff records and imports the seed's researcher
UI-015mode asked per park entry and every entry starts a new park (declaration reworded)mode fixed at player creation (4 slots, one byte in save:users:<n><name>:gms.dat); each theme resumes the player's newest save (autosave.TPWS on leaving); modes differ in balance overlay, first park, keys, tickets, challenges, research completion; an unreadable gms.dat silently yields Full Simulation with 0 keysper-park choice, profiles and the missing resume remain approximations
ECON-030 / bankruptcystops when bankrupt; 6 months in red≥ 6 thirty-day months since the balance went negative, checked at month end → world mode 4 (subject to one unresolved id gate)count supported; "stops" consistent with mode 4 exit but the mode-4 consequences belong to the calendar/clock lane
ECON-046upgrades need a mechanicnot traced (only the TAG text "can't upgrade during a mechanics' strike")unresolved
Secret 'own all land' ticket (untagged)—no award path in the Mac binarydo not implement as earnable without PC evidence
Instant Action UI (untagged)economy refuses loans, research effort and upgrades in Instant Action; no HUD bank/research panel exists to show the refusalbank panel not opened, loan buttons disabled, research panel refused, upgrade list skippedeconomy gates applied; panel presentation missing
Staff wages/dismissal/training (untagged)—wage PayMultiplier×BaseWage monthly; dismissal debits one more wage; training points = amount/PoundsPerTrainingPoint, promotion resets happiness to 100new Mac facts for the economy owner

Unresolved dependencies (explicit blockers)#

Limits#

Instruction-field checks prove what the selected instructions encode, not that a path is executed at runtime. Function boundaries were derived from prologues and returns around referenced sites, not from symbols. Manual statements are player-facing descriptions. No gameplay code, shared tool or register was changed by this lane; the contract helper and the profile snapshot reference are evidence-only and unwired.

Source: docs/reverse/PPC-scenarios.md in the project repository.