OpenTPW

The advisor in the original lobby#

tp.exe runs the advisor in the front-end (lobby) game state, and so does OpenTPW now (round 11, package V). This is the static reading of what the original does (ADVISOR-005 retired, ADVISOR-025 narrowed), with the evidence for each claim and what is ported. No original executable was run. Build: TPW sp20_nocd/tp.exe, SHA-256 5472f97b5eb28f58b5a49f3a15f6f66adffa6b2625a623f503202c9696d1b805. The key panel the advisor's key advice refreshes is LOBBY-KEY-PANEL.md.

What OpenTPW does#

The advisor lives in the whole front-end state#

What makes it speak#

The lobby's speech goes through the same response player as the park (0x599050, the id is the first field of a row of the 32-byte response table 0x768FB8; it refuses while a response plays, [0xF7966C], or the speech is off, [0x78D90C]). The lobby queue is the task of vtable 0x702DA0 at [[0xF85614] + 0x14] (created by 0x5E3DC0, 0x5E3ECF): its setup 0x5D5F70 clears the idle word +0x18, delay +0x1C and last time +0x20, its update 0x5D5F80 speaks the oldest queued id (0x5D5FCF) when nothing plays, and otherwise, with the idle word set and the advisor silent for +0x1C ms (the timer 0x5F5FA0, from the clock's start), queues +0x24 once more (0x5D6037); 0x5D6110(id, flush) queues an id after emptying the queue when flush is nonzero, 0x5D61A0(id, delay) sets the idle line, 0x5D6060 (its teardown) stops a response that plays (0x5994E0) and empties the queue. The lines the lobby says, by response id (all with the caption tag 0x17F, which has no text, so the lobby needs no message tube for them):

IdSaid byWhen
394 (0x18A) or 395 (0x18B), generated lines (samples 469, 470)the island view's update 0x5E1830 (slot 2 of vtable 0x702EC0, 0x5E1881/0x5E186D) through 0x5D61A0(id, 90000)every frame while a player is current ([[0xF81EBC] + 0x60] != -1, 0x48BCD0): the id is 395 for an odd rand() (CRT 0x67B5C0) and 394 for an even one; so the line comes after 90 s of silence
390 (0x186, sample 465), then 391 (0x187, sample 466) when no profile exists (0x5C7BB0 counts the used of four slots), else 398 (0x18E, sample 471)the player-select dialog 0x4A6580 (layout PlayerScreen 0x753C68), which hides the lobby window [0xF82884] + 4 (0x4A659E)when it opens (0x4A69E8, 0x4A69FD, 0x4A6A1B); it sets [0x7CB3FC] to 1 when no profile existed
393 (0x189, sample 468, fixed sequence 28) in the full simulation, 394 in Instant Action (game type 0xFB3B7C == 2)the dialog's close 0x4A6A50 (shows the lobby window again, 0x4A6A81)when a player is current and [0x7CB3FC] is set: before 393 0x5AFC30 adds the first extra key to the player ledger (+0x20) and 0x5C8A10 saves the player (0x4A6B27 to 0x4A6B4F)
570 (0x23A, sample 588)the new player's name dialog 0x4A6E40 (layout NameDialog 0x753F50)when it opens (0x4A6EA4)
592 (0x250), 593, 595, 596, 597 (0x255)the postcard windows (the tables are the online postcard windows): Publish 0x4C4670 (0x7595B0, 0x4C484A), 0x4C0AE0 (0x759170, 0x4C18DC), 0x4C2110 (0x7593E8, 0x4C2342), 0x4BFF70 (0x758F40, 0x4C02B2), Outbox 0x4BC710 (0x758878, 0x4BCB50)when each opens (the online postcard help; OpenTPW's postcard composer is its own window, [EXT:online-postcard-help])
598 (0x256)the globe screens' virtual 0x5DD7C0 (slot +0x28 of vtable 0x702E70, 0x5DD7DA) after 0x5DD400when the virtual runs (not read further)
600 (0x258)0x48BE80 (0x48BEAD, after re-entering the island view [[0xF85614] + 4]'s +0x1C), 0x4B86A0 (0x4B879C), 0x4C53F0 (0x4C5591)not read further

Fixed sequence 28 (response 393) is the only fixed sequence the lobby can say: its single entry is the timer of 17000 ms, which at the advisor clock (0x599991) starts the Key particle (87 at (90000, 0, 7000)), plays cat_ui 0xC6 and calls 0x4B9340 (0x5999CC): the key panel's full refresh, which shows the key that 0x5AFC30 just added. Sequence 29's responses (374 to 378, 444 to 467) are the golden ticket lines of the park.

Fog#

The mesh draw builds its state word from the global flag 0x2000 (0x581790: 0x58179F adds the fog bit, which 0x5817A5 sets), so the advisor, which goes through the deferred mesh draw (0x581DB0), takes the fog bit on the island screens and not on the globe. The fog starts at 50 (0x5D96A0) and the advisor's vertices reach the transform stage at depth about 0.2 (0x429BA0 translation z 0.2 and root depth scale 0.001, 0x57A750), whichever of z and w the table fog reads (docs/LND.md leaves that open: w is 1 for such vertices): the factor is 1 and nothing is fogged. OpenTPW draws no fog on the advisor.

What is not ported#

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