OpenTPW

Theme Park Inc: the career, the mission files and the Global Master Save#

November 21, 2026. Static reading of Theme Park Inc's no-CD Game.exe (SHA-256 77ea0c41…967a) through REA (Ghidra 12.1.4) and the annotated listings; the original game was not run. This page summarises what OpenTPW ports (ThemeParkIncSamObject, ThemeParkIncMission, ThemeParkIncCareer, ThemeParkIncGlobalSave, ThemeParkIncSession) and what it leaves open. The research notes behind it are OpenTPW-notes/research/tpi-campaign/r1-zones.md, r3-mission-thing.md, r4-mission-ui.md, r5-gms.md and research/tpi-staff/missions-system.md. No game data is reproduced here.

1. SAM-bound objects and the mission file#

Binding (0x418F60). Every SAM-loaded object has a schema table of 0x3C-byte records: +0 the kind, +4 the name, +0x24/+0x28 the range of an integer-range leaf, +0x34 an array's element count. Kinds: 0 struct begin, 1 struct end (carries the struct's name), 2 array begin, 3 array end (name and count), 4 integer, 5 non-negative integer, 6 integer in [min, max), 7 to 9 the float kinds, 10 string, 11 map variable, 12 end. The data base is the object's +8. Each leaf takes the next dword slot from slot 1. A leaf inside an array has the stride of the array's leaves. An array consumes count × leaves slots plus one count dword after them.

Reset (0x419830). Every element of every leaf becomes 0. A range leaf becomes its minimum. Every count dword becomes 0.

Parser (0x419CD0, file load 0x419B20).

Mission object (schema 0x9A0C68, 0x330 bytes at career +0x10B4).

The offsets OpenTPW binds are those of missions-system.md §1.2; ThemeParkIncMissionTests checks them on synthetic files and on all 18 shipped missions\miss00..17.sam.

Loader (0x74C050). It parses "%s\Miss%02d.sam" for the career's counter. When that succeeds, it copies each exit statistic into its runtime status block: state 0, type, target value, target time, zone, and the value, days and baseline set to 0. A failed parse leaves the statuses alone.

2. The career object 0xBFC484#

The career is 0x4740 bytes (constructor 0x74B490, reset 0x74BB40). OpenTPW keeps every field the global save carries.

OffsetFieldReset
+0firing line5
+4game finished0
+0x20..+0x29flags (+0x20 = objectives letter posted)0, then 1 × 9
+0x2A..+0x31park awards held0
+0x38swear filter1
+0x50new career (the prebuilt Science start)1
+0x54, +0x58, +0x5CCDK registration count, cursor, 256 × (id, level, flag, amount)16, 0, the 16 built-ins of 0x74AC30
+0x105Cmission counter0
+0x1060rank1
+0x1064[15]discovered staff abilities1 for 1, 7 and 9
+0x1074golden tickets0
+0x1078[15]opened overview-map regions (dwords)only region 14
+0x10B4the mission object (§1)Miss00.sam
+0x13E4, +0x13E5obstacle researched, removed0
+0x13E8 + 0x30ifive exit-statistic status blocksstate words 0, zone 4
+0x14ECrefresh (.GMI) flag
+0x14F0mHistory[0x284] (raw; writers not traced)constructor {0, -1, 0, 0, 0}
map at +0x3C, +0x4Czone records by name, the current oneempty

Operations OpenTPW ports.

3. The Global Master Save (.GMS)#

3.1 Layout#

The markers are dwords, so the file reads TATS AMTA MEHT DTOT RAHS MAPS. OpenTPW keeps every section, the untraced ones as raw bytes. ThemeParkIncGlobalSave.Write reproduces the three corpus files byte for byte, read directly and through the career.

3.2 Lenient load (0x74D110)#

3.3 Session sections#

The options, mFirstHourTime, the 0xA6C0A0 block, the shares, the 0xAA0180 flags and the ambient tags belong to other objects, not the career. The shares game is ported and kept with the career, which resets it with its own reset (0x74BE97) and writes its 182 bytes into the player file (TPI-AWARDS-SHARES.md). OpenTPW does not port the other systems ([EXT:tpi-capability-gates]). It carries their sections through from the last player file it loaded. A new file takes their start-up state:

The original leaves some words as uninitialised heap: the zone records' optional and award values and sign characters after the first, two status words, and the shares name's tail. OpenTPW writes 0 there ([EXT:original-undefined-reads]).

3.4 Where the file lives and when it is written#

The original's path is 0x777B80: <root>\save\users\<slot + 1><name>\<name>.GMS (.GMI with the refresh flag).

OpenTPW has one player ([EXT:tpi-front-end-one-player]), so the file is users\1New Player\New Player.GMS (user decision, 2026-11-21), under opentpw-tpi in OpenTPW's own save folder: never in the original's <root>\save\users, which holds the original's own players (user decision, 2026-11-21). When OpenTPW's save folder is inside the game folder, the file goes to the save folder in OpenTPW's configuration folder instead (GameFlow.ThemeParkIncPlayerRoot). A file above 4 MiB is refused unread; the retail files are about 18 KB. It is used as follows:

A park save also carries the career. A Theme Park Inc park save from before the career is refused with a message (user decision, 2026-11-21). A mission counter outside the region table (0 to 23) is refused in a park save and in a player file; an advance past the table opens no region.

4. Debug cheats#

The dialog 0x532A40 has two buttons: Skip Mission (0x186A1 → the completion tick 0x5F0940) and Get Promoted (0x186A2 → message 0x25 with rank + 1 → 0x74C450). With opentpw.cheats on, OpenTPW offers both in the Theme Park Inc challenge panel (docs/CHEATS.md). An earlier note listed 0x538F30 as the Get Promoted dialog. That dialog is the obstacle and ticket debug page: it posts 0x23/0x24, adds tickets and opens regions.

5. Not ported yet#

Source: docs/reverse/TPI-CAREER.md in the project repository.