OpenTPW

Theme Park Inc advisor#

This trace uses the identified English no-CD TPI Game.exe (SHA-256 77ea0c41410aad7c94a5eda658e31cb4ac05f7253aaf6746ad5e8a90afbd967a) and retail data. The game was not launched. It supersedes TPI-ADVISOR-FORECAST.md, whose forecast evidence is kept in §5 and whose wrong claims are listed in §7.

The port is planned in phases P1 to P9. P1, the queue, P2, the playback and its presentation, P2b, the advisor on screen, and P4, the first event senders (§9), are in OpenTPW (ThemeParkIncAdvisor, ThemeParkIncAdvisorPresentation, ThemeParkIncAdvisorView); §6 lists what is not ported yet.

1. The advisor thing and its update#

2. Descriptors and settings#

3. Records, queue and history#

4. Playback#

4.1 The speech 0x716230#

4.2 The per-frame advisor 0x716ED0 and the stop 0x716950#

4.3 The caption: a Message Centre row#

4.4 The advisor on screen#

5. The weather forecasts and the letters#

Next spellMessageRowResponseSpeech +4 / +8TagTAG_SYSTEM.str
Heatwave0x154427642763 / 76362127
Rain0x157430645766 / 76665130
Snow0x15A433648769 / 76968133
Storm0x15B434649938 / 76971156

The four forecast rows are class 2, group 0, limit 255, one response, and their callbacks return 10,000. The letters 0x1A1–0x1A3 are group 8 (responses 748–750, speech 868–870). tpi_advisor_forecast_oracle.py checks these rows, the responses and the captions.

[BIN:TPI-EXE:0x71BDC0 class check] The context admits a class as follows:

ContextClasses admitted
mode word 33
game object +0x2E set5
game object +0x2F set7
cutscene playing (0xA9D230), mode 0 / 1 / 26 / 5 / 4
otherwise2; 0 in mode 0; 1 in mode 2

6. What OpenTPW models#

7. Corrections to TPI-ADVISOR-FORECAST.md#

8. History resets#

9. The event senders of P4#

content/data/tpi-advisor-producers.toml names the producer of each of the 606 messages: 232 scanned ids (15 of them with a constant-zero callback), the ids game code posts (event) or a window posts as its help (help), and 139 ids no poster was found for (unused). Each row says whether OpenTPW posts it (wired), does not yet (gated, with the reason) or has nothing to post. A poster is "traced" when the id is the argument its push gives the record constructor 0x71A930, the enqueue 0x718820 or a help wrapper (directly or through the shared call of a branch), or a table the posting code indexes; "searched" means no such site was found.

[BIN:TPI-EXE:0x708BF0 response initializer] The response table is the executable's: 994 rows (ids 0 to 1012; 833 has two and the lookup 0x716D10 takes the first), in content/data/tpi-advisor-responses.toml. So any posted advice speaks with its own voice, LIP, sequence and caption tag, except the presenter's voices (0x3E6-0x454) and the level's speech bank, which the presentation still refuses. The tag records of the researched-obstacle advice (tags 0x60-0x63, 0x9D4380) are added: their kind word is the tag itself, so a new row supersedes the older one of its tag.

Score paths. A record built with score -1 takes its descriptor's score (0x71B7E0): a constant, a scorer word (field, e.g. HelpMessage.Score 1000 for every window help), or one of the two history callbacks P4 needs, 0x727410 (0x1FA) and 0x728580 (0x21D): 10000 until the player's history has the message played, then 0. Any other callback is the scan's or a later sender's and throws.

9.1 Ported#

9.2 Gated or not reached ([EXT:tpi-capability-gates])#

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