OpenTPW

Advisor scan and producers (tp.exe v2.0)#

Trace of every producer of the 351 advisor messages of the Windows executable (tp.exe, SHA-256 5472f97b5eb28f58b5a49f3a15f6f66adffa6b2625a623f503202c9696d1b805), written for the advisor campaign of OpenTPW. The machine-readable form is content/data/advisor-producers.toml (one row per descriptor of content/data/advisor-descriptors.toml, covered by AdvisorProducerInventoryTests). Addresses are virtual addresses of tp.exe. Nothing here is gameplay code: it is the map from which the producers are built, batch by batch.

Method: static reading only (the original was never run). Every score callback of the descriptor table 0x76E300 (351 records of 0x38 bytes, filled by 0x5A0A50) was disassembled and its calls, its reads of the Advisor.sam object and its comparisons read out; the posting code was found by listing every caller of the record builder 0x59B590, the enqueue 0x59A940, the help post 0x486B00 and of the bus receiver 0x59B060. The 85 park-statistics helpers the callbacks call (0x4C7BB0-0x4D0A00, 0x519450-0x5195D0) are described below with the confidence of the reading; a "formula" in the inventory is a reading of the compare-and-multiply sequence, not a decompilation, and a few helpers are only identified by role (marked low). The English caption texts and the Advisor.sam values are game data: the inventory stores the TAG_SYSTEM.str entry numbers and the key names, not the texts or numbers.

Result#

Message 344 is posted by the first challenge offer, despite retaining the help-score descriptor callback and response 606. It is an event producer, not an unused or window-help producer; the existing first-offer runtime and restored-advice catalog are unchanged.

Message 204 is the kart and water line tool's help: the click that gives the tool the line start it lacks posts it (0x526D41, a jump into the queue tool's post 0x527629; see "Tutorial and help"). It is a help row, wired, and the restored-advice extension no longer posts it as the roller coaster tool starts.

StatusMessagesMeaning
wired246OpenTPW produces the message today
ready0every input exists in OpenTPW (the inventory names the class or field); only the producer is missing
blocked2an input is missing or approximated (the help windows 307 and 308)
none103nothing to produce: 21 are scored by the scan but their callback is the constant-zero stub, 82 have no producer in tp.exe at all
KindMessagesProducer
scan134the background scan 0x59C680 scores it from park state (the 134 computed callbacks)
scan-zero21the scan reaches it, the callback is 0x5D60C0 (returns 0): it can never pass MinScoreForConsideration
event68game code posts it (bus message or direct call)
help46a window or tool posts it through 0x486B00 (score callback 0x59E8C0)
unused82no producer found (35 of these are help descriptors that nothing posts)
BatchwiredreadyblockednoneTotal
Money80008
Cleanliness80008
Rides, shops, sideshows and features2200022
Queues and prices2300023
Guest mood and thoughts1100011
Staff6900069
Research1900019
Weather00000
Challenges and golden tickets3000030
Tutorial and help47023584
Other9006877
Total24602103351

Weather has no message: no score callback reads weather or season state, no poster is a weather event, and no TAG_SYSTEM.str caption of the advisor mentions rain, storm or snow. The "about 91" messages with a producer: 246 have their producer here: 68 posted by game code (every event row: 0, 323, 106, 128, 129, 33-57, 66, 68-70, 93-97, 125-127, 133-136, 167, 215-217, 220-222, 225-227, 234-237, 258, 270-273, 311, 315 and 344), 44 help messages of windows and tools OpenTPW has, and 134 scored by the ported scan (the money batch: 100-105 and 107; the 31 park callbacks of the rides, cleanliness and guest mood batches: 3-10, 60, 62, 71, 73-75, 77-79, 81, 82, 85-89, 145, 158, 159 and 259-262; the 38 staff callbacks: 11, 13, 14, 18, 20, 23, 26, 28-32, 108-112, 114-123, 144, 146-150, 169-172 and 263; the 31 callbacks of the queues, prices and research batches: 15-17, 61, 63, 64, 72, 76, 80, 91, 92 and 238-257; and the 18 callbacks of the park-opening, congratulation, tutorial and golden ticket group: 1, 2, 124, 140, 156, 157, 185, 274-276, 278-282, 314, 316 and 317, see "Challenges and golden tickets"; and the last 9: 12, 19, 21, 22, 27, 98, 113, 141 and 264, see "The last nine callbacks"). AutomaticAdvisor.GlobalTicketMovedMessage posts 234-237 when a global golden ticket moves here, and AdvisorTables now defines them (the four rows (234-237, "AwardMoved.Score") in EventScoreKeys; their group 2 controls are read when the settings file has them). 66, 68, 69 and 258 are posted by the ride events (AdvisorRideEvents, see "Park callbacks").

The scan#

0x59A550 is the advisor controller's update (thing type 11; called by the thing update 0x50B437). Each call:

  1. push 1; call 0x59C680 on the controller's Advisor.sam object 0xFB3540: the scan scores one descriptor (the cursor is the object's first word, wrapped to 0 when it reaches 0x15F = 351). The loop's counter ([esp+0x10]) is incremented only at 0x59C822, which a skipped row (first word nonzero) bypasses, so one call walks past any number of game-code rows to the next scanned one and leaves the cursor after it: a full pass is 155 scored updates (134 computed callbacks and 21 stubs), not 351.

  2. The scan skips a descriptor whose first word is nonzero (the "posted by game code" flag: help messages, strikes, research and so on, 196 rows here), applies the game-mode selector in word +0xC (2 always, 0 only in the full simulation, 1 only in Instant Action, 0xFB3B7C), and calls the score callback [desc+0x10] with this = 0xFB3540 + [desc+0x14]. The callback returns a score (<= 0 means no advice).

  3. A positive score is kept only if the eligibility check 0x59ABC0 passes (tutorial option, repeat intervals, once-only, slaps and the pending-duplicate limit: AdvisorController.Advise already ports them), and the highest one wins (a strictly higher score).

  4. Back in 0x59A550: the score is read again (0x59BF20), and only a score above MinScoreForConsideration (0xFB3560, the object's +0x20; 25 shipped) builds a record (0x59B590) and queues it (0x59A940).

  5. The queue is then served as documented in docs/LIPS.md: the strongest pending record above the minimum is said when the previous one has finished.

So the scan costs one callback per update and spreads the 134 computed scores over 155 updates; every score is evaluated from the state of that moment (no history is kept except what the helpers read).

OpenTPW. AdvisorScan (source/OpenTPW/World/AdvisorScan.cs) is 0x59C680 with count 1: the cursor, the skip rule, the wrap at 351, the mode selector (AdvisorTables.GameModeAccepts), the callback dispatch by the descriptor's callback address, strictly-higher-than-best and the eligibility check. A callback that is not ported scores 0, like the stub 0x5D60C0. AdvisorController.ScanOnce adds step 4: the score must be above MinScoreForConsideration, then the record (message, the callback's score) goes through AdvisorScoreQueue.Enqueue, which repeats the eligibility check as 0x59A940 does. The cursor is part of AdvisorControllerSnapshot (a snapshot without one restores it at 0; an original save import starts at 0: no save word for it was found). The advisor is presentation state outside the simulation hash, so the scan moves no determinism pin. AutomaticAdvisor.ScanPark calls the scan once per park turn: 0x516380 increments the turn word and walks the thing list only while the world state +0x1DA738 is not 4, and the advisor's case (0x50B3F1-0x50B437) calls 0x59A550 unless the game type is 1, so turns that pass while paused or lost are never scanned, and the same call serves the queue at its end (AutomaticAdvisor.Update: one service per scan call; ADVISOR-017, retired). Ported callbacks: the money batch below; the 21 constant-zero stubs score 0 (every computed callback is ported).

Callback conventions: the world is [0x80239C] (also [[0x7CF6EC]]). 0x519510 returns the park thing (handle at world +0x1DA720, pool 0x7CFB90, stride 0x14); the park thing holds the statistics the helpers read (visitor counter +0x21C08, visitor ring +0x216D8, the 20 price rings of 50 values from +0x216FC, the stamps of the newest object construction and the newest hire +0x21C30 / +0x21C38, the prank counters +0x21BFC / +0x21C00). 0x5195D0 is the bank (handle +0x1DA726: balance +0xC, 8 loan slots of 0x20 bytes from +0x20, year profit +0x124, the turn entered red +0x120), 0x519550 the research manager (+0x1DA722), 0x5194D0 the advisor thing itself (+0x1DA71C, the this of 0x59A940), 0x519450 the training thing (+0x1DA718). 0x51A280 returns the park's closed flag (world +0x1DA710, nonzero while closed), so 0x4C9050 is "the park is open". Months are 30 days of 100 ns units (0x2A69C000:0xC9 = one day; 0xF8648000:0x1792 = 2.592e13 = one month) divided with 0x67C320 from the park clock 0x4F8800 (world + 0x2A0); the money helpers use the bank's turn-entered-red stamp the same way.

Advisor.sam object layout#

The schema 0x72E124 (records of 60 bytes: a type word, the key name at +4; the record that names a group of keys comes after its keys, as the trailer of the run) lays the object out as: MinTimeAnyMessage, MinTimeSameMessage and MinScoreForConsideration at +0x18/+0x1C/+0x20, ten message groups of three words from +0x24, then every further key takes four bytes in schema order from +0xA0 (bytes are padded to four). Reading the 358 leaf keys this way puts HelpMessage.Score at +0x328, HelpMessage.ContextHelpScore +0x32C, WealthHigh.MoreMoneyThan +0x330, RidesBreakdownImminent.Score +0x248, PrebuiltPark.Score +0x5F8, PrankSbomb.Score +0x3D4 and Challenge.Score +0x62C, each as the anchors already traced from the getters. The score column of the inventory lists the keys a callback reads this way. Shipped values live in the game's Data/Advisor/Advisor.sam (read at runtime by AdvisorBalance); the inventory does not copy them.

Park-statistics helpers#

Confidence: high = whole body read, medium = shape read and role inferred from the callers and captions, low = role only.

HelperRoleConf.
0x4C7BB0 / 0x4C7CC0mean happiness of the guests in the park / of the staff (0 while closed or empty)high
0x4C7DB0(age)park value (cell points and ride values; the count is cached at +0x1F0EC with a stamp and counted again only when the cache is older than the argument: 10 for the congratulations 156/157, 20 for the loan test, 0 for the month sample)high
0x4C7FA0, 0x4C9130guests in the park (the predicate 0x4FA990: cell types 0, 1, 3, 9, 10)high
0x4C81E0"busy points": guests in the park / 2, capped at 100high
0x4C81B0developed cells (the 1024 map blocks via 0x4C8C40)medium
0x4C9050the park is open (0x51A280 clear)high
0x4C9070 / 0x4C90D0days since the object stamp +0x21C30 (rewritten by every object construction: the single exit of the common constructor 0x4DB090 calls 0x4C7680 at 0x4DB7A3, the newest, not the first; the constructor's five callers are the build commit 0x529E10 at 0x529FD5, which a build and the Move tool's re-placement both reach, the park setup's gates and lights at 0x515BE1 and 0x515C94 after the park init at 0x5159C8, the finale's End at 0x516B8B and an arrival vehicle's first trip at 0x51A57E; the loader 0x5179C0 constructs nothing through it and reads the saved mLastObjectBuilt back at 0x4C7289) / the hire stamp +0x21C38 (rewritten by every staff thing init, 0x504B90 calling 0x4C76D0): (park time now - stamp) / one day (0x5FC550, then __alldiv by 864,000,000,000), the park time being the calendar's FunnyTimeStart + floor(turn x rate / 4) x 10^7 (0x4F8690). The analyser serializer 0x4C5D70 saves both raw as the fifth and sixth of its six 8-byte stamps (0x4C6B9A, 0x4C6BC4, after mLastStrike, mLastPuke, mLastPrank and mParkLastOpened) and its load reads them back (0x4C7289, 0x4C72B3); the loader zeroes the six before that read (0x518A43-0x518A85) and restamps neither, as it builds the staff through 0x518E20, not through the staff inithigh
0x4C91C0guests in state 3 (waiting at the booth) on the two ticket-booth cells (0x4D8610 of sides 0 and 1, counted once per side)high
0x4C9290 / 0x4C9340 / 0x4C93F0guests in the park whose toilet (+0x1AC) / hunger (+0x1A8) / thirst (+0x1A4) byte is strictly above the argumenthigh
0x4C94A0(flag)the park counters +0x21BFC (flag 0) / +0x21C00 (flag 1): pranks and escaped prankstersmedium
0x4C94C0, 0x4C94D0visitors ever (+0x21C08) and visitors since n monthshigh
0x4C9530 / 0x4C95D0guests holding a balloon (+0x210) / in a costume (+0x24 == 2)high
0x4C9750(n)percent of the guests in the park with happiness below nhigh
0x4C9830 / 0x4C9920mean of the last 50 values of a price ring / the ring holds 50 valueshigh
0x4C9960(role), 0x4C9A10staff of a role (thing model 4 mechanic, 5 handyman, 6 entertainer, 7 guard, 8 researcher) / all staffhigh
0x4C9AA0, 0x4C9B40(role)tired staff (0x506680) / staff with a patrol area set (0x506EB0)high
0x4C9C00(role)mean training percent of a rolehigh
0x4C9E40, 0x4C9E60, 0x4C9ED0researchers waiting in the hiring pool of a type (0x508380), the researchers' ability summed by grade, the research capacity (MaxResearchersInPark x the best ability)high
0x4C9EE0, 0x4C9F90toilets (relief features, bit 1 of +0x32), closed toiletshigh
0x4CA030, 0x4CA0C0staff rooms (bit 2 of +0x32), closed staff roomshigh
0x4CA160, 0x4CA220mean toilet filth (100 - condition +0x44), the worst toilet and its handlehigh
0x4CA310, 0x4CA3A0(pct)rides broken down (state 1) / rides broken or below a condition percenthigh
0x4CA450, 0x4CA4C0, 0x4CA510, 0x4CA570, 0x4CA5D0object types available to build (rides, shops, sideshows, features); 0x4CA4C0 counts the ride types with a researched upgrade levelhigh
0x4CA630-0x4CA690, 0x503B30, 0x503980unfinished research projects of a category (ride, shop, sideshow, feature), a category's research rate (share x staffing percent)high
0x4CA740percent of the object types with a golden ticket cost (+0xC4 above 0) whose control's built count (+0x18, never lowered) is above 0, built x 100 / types (signed), 0 without such a type: the share of the ticket items ever built, not a research sharehigh
0x4CA7B0(kind), 0x4CA8E0(kind, level), 0x4CA9B0(kind)built types / built objects (level at least n) / closed objects of a kind (0 ride, 1 shop, 2 sideshow, 3 feature)high
0x4CAAE0-0x4CC090the worst/best value and satisfaction of shops of a stock type (2 food, 3 restaurant, 4 drinks), of retail shops and of sideshows: a scan of attractions older than 30 days over their customer, walk-away and satisfaction rings, returning a figure and the attraction's handle (see "Queues, prices and research callbacks")high
0x4CCA40, 0x4CCB00, 0x4CCBF0, 0x4CCD10, 0x4CCDF0a per-toilet mean (unresolved), unconnected queue test, mean and maximum ride fear (0x4E0860), litter pointsmedium/low
0x4CD500(role, mode)percent of path cells not covered by a staff role's patrolmedium
0x4D0260, 0x4D0690, 0x4D0810, 0x4D0970, 0x4D09A0, 0x4D0A00, 0x4D09F0months in the red, loans taken, a loan can be taken, repayment of a loan, the cheapest loan, total debt, year profithigh

Lines the brief asked for#

All ids are the descriptor index (the advice id); the caption is the TAG_SYSTEM.str entry (0-based) the response shows, none when the response is speech only. Texts are paraphrased.

LineMessageProducerStatus
Prices are too high (food, shops, restaurant, drinks, sideshows)238-242 (responses 478-482, speech only, samples 506-510; the unreferenced TAG_SYSTEM texts 96 food, 100 shops, 102 restaurant, 99 drinks and 111 sideshows read as these lines)scan, callbacks 0x59FB60-0x59FD20: the lowest value among the attractions of the group older than 30 days (walk-aways x 100 / customers) falls below <Type>PoorValue.ValueWorseThan; score = (value - threshold) x ScorePerPoint, negative for a positive multiplier, so the line never passeswired (never passes)
Satisfaction is poor (same five shops)243-247 (responses 483-487, speech only)scan, 0x59FD90-0x59FF50, the same scan over the satisfaction ring; 247 calls the sideshow value helper; the score is negative as abovewired (never passes)
Ticket price too high / too cheap91 / 92 (caption 94 / 95)scan, 0x59E730 / 0x59E790: perception ring 0 (the booth verdict's opinion of the entrance fee, 0x4FF5B0) holds 50 values and its mean is below TicketSatisfactionUnder / above TicketSatisfactionOverwired
Queues are too long58 (caption 63: bored in long queues) and 59 (caption 64: reduce ride duration)the scan reaches them but both callbacks are 0x5D60C0 (constant 0) and nothing posts them: dead in v2.0. The only queue line that can play is 113 (a queue not connected to a path, caption 134, 0x59EF60, blocked: queueLinks)none / blocked
The park is dirty8, 9, 10 (captions 14, 15, 16) for litter without enough handymen; 86-89 (captions 89-92) for dirty toiletsscan, 0x59CB40, 0x59CBB0, 0x59CC20 (litter points, developed cells per handyman) and 0x59E450-0x59E680 (mean toilet filth in four bands, with and without cleaners)wired
Guests' thoughts3 thirsty (caption 9), 4 hungry (10), 82 no toilets (86), 141 too scared (159), 14 entertainers needed (20), 145 visitors happy (no caption)scan; the advisor reads the guests' need meters (thirst, hunger, toilet, happiness bytes), not the thought ids of THOUGHTS.str (those feed the park window's Top 3 Thoughts only)wired (141 blocked: rideFear)
Money warnings 102-105102 take a loan (caption 123), 103 six-months warning (124), 104 three months (125), 105 five months (126); 106 bankruptcy (127)scan 0x59E9B0, 0x59E9F0, 0x59EA70, 0x59EAF0: balance < 0; 102 needs a loan available; 103-105 need no loan available and read the months in the red (0x4D0260 / 30 days): 103 below 3, 104 3 or 4, 105 exactly 5. 106 is game event 2 (0x4D0370)wired
Broken rides5 worn rides and no mechanic (caption 11), 6 broken rides and no mechanic (12), 7 too few mechanics (13); 66 breakdown imminent (71), 68 no mechanic (72), 69 mechanics busy (73), 70 mechanic on the way (74); 258 ride condemned; 259 too many rides closedscan 0x59CA30/0x59CA80/0x59CAC0/0x5A02F0; posts 0x4DF8C0 (condition crosses below 10 percent in the wear step 0x4DF670) and 0x4DADC0 (the breakdown handler: 68 when no mechanic is hired, 70 when one takes it, 69 when all are busy); condemn message type 8 (0x59B448)wired

Money#

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
100wiredcb 0x59E8D0balance (bank +0xC via 0x6AD810) > WealthHigh.MoreMoneyThan and no loan taken (0x4D0690 = 0): flat WealthHigh.Scorespeech only
101wiredcb 0x59E910balance minus total debt (0x4D0A00) greater than the repayment of the cheapest loan (0x4D09A0, 0x4D0970) x Margin: flat WealthHighRepayLoan.Scorespeech only
102wiredcb 0x59E9B0balance below 0 and a loan can still be taken (0x4D0810): flat TakeLoan.Score123
103wiredcb 0x59E9F0balance below 0, no loan available, months in the red (0x4D0260 / 30-day months) < 3: flat InTheRedSixMonths.Score124
104wiredcb 0x59EA70balance below 0, no loan available, months in the red 3 or 4: flat InTheRedThreeMonths.Score125
105wiredcb 0x59EAF0balance below 0, no loan available, months in the red exactly 5: flat InTheRedMonthLeft.Score126
106wiredCMsgEvent 2 from the bank month 0x4D0370 (0x4D0557); handler 0x59AED6 posts 106balance < 0, previous balance < 0 and 6 or more 30-day months in the red: posted at every month end while it holds127
107wiredcb 0x59EB80after 3 months: the average staff wages over WagesHigh.AverageOverMonths months (ring +0x1F7F0) above the average income (ring +0x1FC90) x WagesTimesHigherThanIncome (0 when a ring is empty): flat WagesHigh.Score128

Wired (AdvisorScanCallbacks, AdvisorScanTests): the callbacks are ported from the disassembly, over IAdvisorMoneyState (EconomyMoneyState reads the economy without changing it). All seven have the this offset 0 and return the flat score of their key, so the offsets above are the schema offsets of the keys; the rows with mode 0 (101, 102) are scored in the full simulation only, the others in both game types.

Two reading choices keep the advisor from changing simulation state: the loan availability peeks the net worth as 0x4D06B0 reads it (0x4C7DB0(20): the cached value while its age is at most 20, else a fresh count that is not stamped) and does not store the offers' credit tests (the original's 0x4D06B0 rewrites word +0x14 of each offer it tests, which the loan list rebuilds before it reads), so the scan never writes to the economy. In a park in the red with staff and no income the wages line 107 (90) outranks the early warnings 103/104 (75, 50) once three months have passed, so those are served after it; 105 (110) outranks it.

Park callbacks (rides, cleanliness, guest mood)#

Ported by AdvisorParkCallbacks (source/OpenTPW/World/AdvisorScanPark.cs) over IAdvisorParkState; EconomyParkState computes the statistics from the economy without writing to it (the advisor stays outside the world hash). 31 callbacks: rides 5, 6, 7, 60, 62, 71, 73, 74, 75, 77, 78, 79, 81, 85, 259-261; cleanliness 8, 9, 10, 86-89, 262; guest mood 3, 4, 82, 145, 158, 159. The thresholds are words of the Advisor.sam object (AdvisorScan.ParameterKeys); a key the file lacks leaves its callback at 0, as without a park.

HelperOpenTPWReading
0x4C9960ParkStaff.OfType(role).Count()things of the models 4 to 8 equal to the argument with flag byte +3 clear
0x4C9070, 0x4C90D0the advisor's own record of the turn of the newest object construction and newest hire (mLastObjectBuilt, mLastStaffHired), kept from the construction events (ObjectBuilt for a purchase or the Move tool's re-placement, FixedItemMade for an arrival vehicle at its first trip and the finale's End) and the StaffHired event, stamped at park init like 0x4C58C0 (0x4C5CAF, 0x4C5CDE; a new park's gates and lights, constructed after it, stamp the same turn 0) and saved in the advisor snapshotdays = (park time - stamp, both from the calendar base) / one day; outside the economy and its hashes. Days are signed: a stamp still to come, which only a modified save holds, counts negative days as __alldiv does. A park from an original save takes its analyser's saved words (SaveAnalyserStamps) as the turns of the save's calendar (its FunnyTimeStart and rate) whose park time they are (OriginalEconomyImport.AnalyserStampTurns; a stamp between two turns' times, which only a modified save holds, is taken at the earlier turn and reported). Only an OpenTPW save from before the snapshot kept them, and a save that names no analyser, derive them at attach from the newest standing object and employed member (ADVISOR-009)
0x4CA450, 0x4CA510, 0x4CA570, 0x4CA5D0catalog types by RatingType (+0x4AC) that are available (+0x10 of the object control: outside the research tables, or researched)rides skip the types with a golden ticket cost (+0xC4) at flag 0, the others do not test it
0x4CA7B0(kind, flag)catalog types with Counters[Built] above 0the control's built count (+0x18) is never lowered: a sold ride still counts as built
0x4CA8E0, 0x4CA9B0standing objects of the kind (a ride also by upgrade level), the closed onesclosed is the open word +0x68 clear: the player's close, and the broken, upgrading and condemned states clear it (0x4E0FD8, 0x4E10DC, case 4 of 0x4E0E60)
0x4CA310, 0x4CA3A0rides in state 1; rides whose condition byte (+0x44, Repair) is below the percent or in state 1a condemned ride (state 4) is neither
0x4CCDF0littered cells x 100 / (path, queue and entrance cells, types 1, 3, 9, plus littered ones off them) over the 128 x 128 mapa per-cell scan, not the 4 x 4 block caches
0x4C81B0cells of the types 1, 3, 4, 9, 10the block caches (0x4C8C40, age 0) are recounted
0x4C9EE0, 0x4C9F90, 0x4CA160, 0x4CA220toilets (ProvidesRelief), closed ones, the integer mean of 100 - condition byte; the worst toilet's handle is not 0 exactly when a toilet existsthe callbacks 86-89 also store that handle in the object (+4), right after the call and before the filth thresholds (0x59E4B2, 0x59E570, 0x59E632, 0x59E6E0), so a filth outside the band still leaves it; 0x4CA220 walks the things newest first for the attractions with the relief flag and keeps the strictly greatest 100 - condition byte (the first met of equals), and OpenTPW names the pick by the level's thing id (ParkEconomy.DirtiestToilet, ParkEconomy.ObjectThingId); the tube's locate button reads it
0x4C9130, 0x4C93F0, 0x4C9340, 0x4C9290, 0x4C9530, 0x4C95D0, 0x4C7BB0IParkGuestStatistics.GuestCensus, CountGuestsNeeding, GuestsWithBalloons, GuestsInCostume, CensusHappinessguests on a cell the predicate 0x4FA990 accepts; the meter byte is compared unsigned with the argument's low byte; the mean is the single of the integer sum over the count

What reading the bytes corrected from the first mapping above (the tables carry the corrected formulas):

Event posts: 66 is raised by the wear step (ParkEconomy.Wear, ParkEventKind.RideBreakdownImminent) when the new condition byte is below 10 and the byte plus the step's wear is not (0x4DF670 posts message 0x42 at 0x4DF8BE). 68, 69, 258 are decided on ParkEventKind.RideEnteredBrokenState (raised when the ride actually enters its broken state: the type 7 message of case 1 of 0x4E0E60, 0x4E0FA0, sent after the script reports VAR_BROKEN; type 8 for a condemned ride, 0x40F3D0; not at the earlier request 0x4E0B90 that raises RideBrokeDown) by AdvisorRideEvents.ForBreakdown: a ride whose life gauge byte is 0 is condemned (258, the message of type 8); otherwise the handler 0x4DADC0 posts 68 without a mechanic and 69 when every mechanic is busy with another ride, resting or on strike (display state 3 or 4 of 0x5064F0, which is StaffState); a mechanic already on this ride or a free one posts nothing there (70 is the dispatch's, 0x4DA6C5). Their scores are the words +0x248, +0x24C, +0x250 and +0x578 (RideCondemned.Score, added to EventScoreKeys).

Tests: AdvisorScanParkTests (each callback at its thresholds over hand-built states, the real queue through a whole scan pass, the statistics over a real ParkEconomy, the guest bridge, the ride events) and AdvisorProducerInventoryTests (every ported callback is "wired"). 117 scanned callbacks remained unported then (21 constant-zero stubs, 96 computed); the queues, prices and research batch ported 31 of the 96, so, with the 38 staff callbacks and the 18 of the challenges batch, 9 computed ones remained (and the 21 constant-zero stubs: 30 scanned messages in all, 9 blocked and 21 scan-zero rows); round 10 ported those 9 ("The last nine callbacks"), which leaves only the 21 stubs.

Queues, prices and research callbacks#

Ported by AdvisorQueuesCallbacks (source/OpenTPW/World/AdvisorScanQueues.cs) over IAdvisorParkState and the new IAdvisorQueuesState, which EconomyParkState also implements (a partial class; the scan reaches it through the park state it already gets). 31 callbacks: the researchers 15, 16, 17; research more 61, 72, 76, 80; upgrades 63, 64; the ticket price 91, 92; the shop value and satisfaction lines 238-257. Their thresholds are words of the Advisor.sam object (AdvisorQueuesCallbacks.IntegerKeys, added to AdvisorScan.IntegerParameterKeys); a key the file lacks, or a park state without the queues view, leaves a callback at 0.

HelperOpenTPWReading
0x4C9830, 0x4C9920ParkPriceStatistics (PriceRingMean, PriceRingHoldsFifty)the integer mean (truncated, a byte) of a ring's held values; 50 held values
0x4FF5B0BoothVerdict.Opinion, recorded by GuestSimulation.PayAdmissionthe booth verdict records the byte of PeepInfo.OpinionForMuchTooHigh, OpinionForTooHigh, OpinionForTooLow or OpinionForAboutRight (0x7850CC-0x7850D8, key records 0x740430-0x7404E4) in category 0 of the park's perception rings for the verdicts far too expensive, expensive, cheap and fair; the early fair exit (a park value and a fee both at or below the minimum entry fee) records nothing
0x4CADF0, 0x4CB640, 0x4CC090WorstValuethe attractions of the group (UsageInfo.ShopType 2, 3, 4; 1, 5 or 6 for the retail shops; type kind 2 for the sideshows) older than 30 days (0x4DD670: the clock less the build time, in days) whose customers ring (+0x1A8) sums to more than 0: the sum of the walk-away ring (+0x230) x 100 / that sum, unsigned; the lowest, the first of equals, and its handle
0x4CAAE0, 0x4CB300, 0x4CBBA0BestValuethe same value, the highest
0x4CB200, 0x4CBA90, 0x4CB100, 0x4CB980, 0x4CBEC0WorstSatisfaction, BestSatisfaction50 plus the mean of the satisfaction ring (0x4E1E30) of the group's attractions older than 30 days, the lowest or the highest; the sideshows' best (0x4CBEC0) also needs a customers sum above 0
0x503B30, 0x4CA630-0x4CA690ResearchOutstandingthe lab's projects of a category (ride, shop, sideshow, feature) that are not finished
0x503980ResearchRatea category's share of the research (ResearchFluid.Rate without the lab's current-project test)
0x4C9E40(4), 0x508380ResearcherCandidatesthe valid slots of the 32-slot hiring pool whose type is 4 (StaffType.Researcher)
0x4C9E60, 0x4C9ED0ResearchDone, ResearchCapacitythe researchers' ability summed by grade; MaxResearchersInPark x the best grade's ability
0x4CA4C0ResearchedUpgradeTypesthe ride types whose control's researched level (+0x14) is above 0, a ride type without upgrade rows counting once its base is researched (ParkResearch.ResearchedLevel)

What reading the bytes corrected from the first mapping (the tables carry the corrected formulas):

Tests: AdvisorScanQueuesTests (each callback below, at and above its thresholds over hand-built states, the real queue through a whole scan pass, the statistics over a real ParkEconomy, the booth's opinion bytes) and AdvisorProducerInventoryTests (every ported callback is "wired").

Cleanliness#

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
8wiredcb 0x59CB40park open and no handyman: litter points (0x4CCDF0) at most LitterPointCutoffHigh; score = litter x ScorePerLitterPoint - LitterPointCutoffLow14
9wiredcb 0x59CBB0park open and no handyman: litter points >= StaffHireHandymen2.LitterPointCutoffLow; score = litter x ScorePerLitterPoint - cutoff15
10wiredcb 0x59CC20park open with at least one handyman: developed cells (0x4C81B0) >= MinCellsForConsideration; (cells - handymen x IdealDevelopedCellsPerHandyman) x ScorePerExtra10Cells16
86wiredcb 0x59E450park open, no handyman, a toilet exists: mean toilet filth (0x4CA160 = 100 - condition) between FeaturesDirtyToilets1 and 3 FilthierThan: filth x PointsPerFilthPct89
87wiredcb 0x59E510park open, a handyman exists: mean filth between DirtyToilets2 and 4 FilthierThan: filth x PointsPerFilthPct90
88wiredcb 0x59E5D0park open, no handyman: mean filth >= FeaturesDirtyToilets3.FilthierThan: filth x its PointsPerFilthPct91
89wiredcb 0x59E680park open, a handyman exists: mean filth >= FeaturesDirtyToilets4.FilthierThan: filth x its PointsPerFilthPct92
262wiredcb 0x5A0430toilets closed (0x4C9F90) x 100 / toilets > MoreThanThisPercentClosed: flat ToiletsClosed.Scorespeech only

Rides, shops, sideshows and features#

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
5wiredcb 0x59CA30no mechanic hired (0x4C9960 type 4); else rides that are broken or below StaffHireMechanics1.PoorerStateThan percent condition (0x4CA3A0) x ScorePerWornRide11
6wiredcb 0x59CA80no mechanic hired; broken-down rides (state 1, 0x4CA310) x StaffHireMechanics2.ScorePerBrokenRide12
7wiredcb 0x59CAC0days since the hire stamp (0x4C90D0; the stamp is rewritten at every staff thing init, so it is the newest hire) >= WaitingTimes.DaysForStaff; max(0, rides (0x4CA8E0 kind 0) - mechanics x IdealNumberOfRidesPerMechanic) x ScorePerExtraRide13
60wiredcb 0x59D990ride types available (0x4CA450 without ticket items), days since the object stamp (0x4C9070; the newest construction) >= DaysForObjects, rides >= MoreRidesThan, built types x 100 / available types (unsigned) < PoorerThan: flat RidesPoorSelection.Score65
62wiredcb 0x59DAD0no ride type ever built (0x4CA7B0 kind 0, ticket items counted): RidesBuildRides.Score + days since the start x AdditionalPerDay67
66wiredride wear step 0x4DF670 (0x4DF8C0): condition (+0x44) crosses below 10 percent (float 0x7005A0) in a stepthe wear step takes the condition byte below 10 and the byte plus the step's wear is not below 10: flat RidesBreakdownImminent.Score (game types 0 and 2)71
68wiredride-breakdown message handler 0x4DADC0 (type 7), jump to 0x4DAFF6 from 0x4DAE68a ride breaks down and no mechanic is hired72
69wired0x4DADC0 (0x4DAFF6): every mechanic is busy with another ridea ride breaks down and no mechanic is free73
70wiredmechanic dispatch 0x4DA5B0 (0x4DA6C5) and 0x4DADC0 (0x4DAF7E): a mechanic takes the broken ridea mechanic is on the way74
71wiredcb 0x59DCA0shops available, days since first object >= DaysForObjects, shops built >= MoreShopsThan, built types x 100 / available < PoorerThan: flat Score75
73wiredcb 0x59DDE0ride types built, days since the object stamp >= DaysForObjects, no shop type built: Score + days since the start x AdditionalPerDay77
74wiredcb 0x59DE80shop types built, days since the object stamp >= DaysForObjects, the shop types counted a second time (the original pushes kind 1 again where 0x59E110 pushes rides) x PerRideRatio above the first count, balance > WealthMoreThan: flat Score; passes only for a ratio above 178
75wiredcb 0x59DF30sideshows available, days since first object >= DaysForObjects, sideshows built >= MoreSideshowsThan, built types x 100 / available < PoorerThan: flat Score79
77wiredcb 0x59E070shop types built (the previous kind, not rides), days since the object stamp >= DaysForObjects, no sideshow type built: Score + days since the start x AdditionalPerDay81
78wiredcb 0x59E110sideshow types built, days since the object stamp >= DaysForObjects, ride types built x PerRideRatio above the sideshows, balance > WealthMoreThan: flat Score82
79wiredcb 0x59E1C0features available, days since first object >= DaysForObjects, features built >= MoreFeaturesThan, built types x 100 / available < PoorerThan: flat Score83
81wiredcb 0x59E2E0sideshow types built (the previous kind), days since the object stamp >= DaysForObjects, no feature type built: Score + days since the start x AdditionalPerDay85
85wiredcb 0x59E420park open: the per-toilet statistic 0x4CCA40 is computed and discarded (fstp st(0)); every path returns 0, so the line never passes88
258wiredCMsgRideCondemned (type 8); 0x59B060 posts 258 (0x59B448)a ride is condemned (state 4)speech only
259wiredcb 0x5A02F0park open; rides >= AtLeastThisManyRides and closed rides (0x4CA9B0) x 100 / rides > MoreThanThisPercentClosed: flat RidesClosed.Scorespeech only
260wiredcb 0x5A0370shops closed x 100 / shops > MoreThanThisPercentClosed: flat ShopsClosed.Scorespeech only
261wiredcb 0x5A03D0sideshows closed x 100 / sideshows > MoreThanThisPercentClosed: flat SideshowsClosed.Scorespeech only

Queues and prices#

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
91wiredcb 0x59E730perception ring 0 (the booth's opinion of the entrance fee: 0x4FF5B0 records the PeepInfo.OpinionFor* byte of its verdict) holds 50 values (0x4C9920) and its mean (0x4C9830, a byte) is below TicketSatisfactionUnder: flat PricingTicketTooExpensive.Score94
92wiredcb 0x59E790same ring, mean above TicketSatisfactionOver: flat PricingTicketTooCheap.Score95
113wiredcb 0x59EF60a queue ride that joins no path (0x4CCB00, the selected object left out): flat QueueUnconnected.Score134
238wiredcb 0x59FB60Food: the lowest value (walk-aways of the 30-day ring x 100 / customers of the customers ring, 0x4CADF0) among attractions older than 30 days with customers, below ValueWorseThan: (value - ValueWorseThan) x ScorePerPoint, value first, so negative for a positive ScorePerPoint and never passingspeech only
239wiredcb 0x59FBD0Shops: the lowest value (walk-aways of the 30-day ring x 100 / customers of the customers ring, 0x4CB640) among attractions older than 30 days with customers, below ValueWorseThan: (value - ValueWorseThan) x ScorePerPoint, value first, so negative for a positive ScorePerPoint and never passingspeech only
240wiredcb 0x59FC40Restaurant: the lowest value (walk-aways of the 30-day ring x 100 / customers of the customers ring, 0x4CADF0) among attractions older than 30 days with customers, below ValueWorseThan: (value - ValueWorseThan) x ScorePerPoint, value first, so negative for a positive ScorePerPoint and never passingspeech only
241wiredcb 0x59FCB0Drinks: the lowest value (walk-aways of the 30-day ring x 100 / customers of the customers ring, 0x4CADF0) among attractions older than 30 days with customers, below ValueWorseThan: (value - ValueWorseThan) x ScorePerPoint, value first, so negative for a positive ScorePerPoint and never passingspeech only
242wiredcb 0x59FD20Sideshows: the lowest value (walk-aways of the 30-day ring x 100 / customers of the customers ring, 0x4CC090) among attractions older than 30 days with customers, below ValueWorseThan: (value - ValueWorseThan) x ScorePerPoint, value first, so negative for a positive ScorePerPoint and never passingspeech only
243wiredcb 0x59FD90Food: the lowest satisfaction (0x4CB200, 50 + mean of the satisfaction ring) among attractions older than 30 days, below SatisfactionWorseThan: (satisfaction - threshold) x ScorePerPoint, negative for a positive ScorePerPointspeech only
244wiredcb 0x59FE00Shops: the lowest satisfaction (0x4CBA90, 50 + mean of the satisfaction ring) among attractions older than 30 days, below SatisfactionWorseThan: (satisfaction - threshold) x ScorePerPoint, negative for a positive ScorePerPointspeech only
245wiredcb 0x59FE70Restaurant: the lowest satisfaction (0x4CB200, 50 + mean of the satisfaction ring) among attractions older than 30 days, below SatisfactionWorseThan: (satisfaction - threshold) x ScorePerPoint, negative for a positive ScorePerPointspeech only
246wiredcb 0x59FEE0Drinks: the lowest satisfaction (0x4CB200, 50 + mean of the satisfaction ring) among attractions older than 30 days, below SatisfactionWorseThan: (satisfaction - threshold) x ScorePerPoint, negative for a positive ScorePerPointspeech only
247wiredcb 0x59FF50Sideshows: calls the sideshow value helper 0x4CC090 as 242 does, not a satisfaction helper; the lowest value below SatisfactionWorseThan: (value - threshold) x ScorePerPoint, negative for a positive ScorePerPointspeech only
248wiredcb 0x59FFC0Food: the highest value (0x4CAAE0) among attractions older than 30 days with customers, above ValueBetterThan: (value - ValueBetterThan) x ScorePerPointspeech only
249wiredcb 0x5A0010Shops: the highest value (0x4CB300) among attractions older than 30 days with customers, above ValueBetterThan: (value - ValueBetterThan) x ScorePerPointspeech only
250wiredcb 0x5A0060Restaurant: the highest value (0x4CAAE0) among attractions older than 30 days with customers, above ValueBetterThan: (value - ValueBetterThan) x ScorePerPointspeech only
251wiredcb 0x5A00B0Drinks: the highest value (0x4CAAE0) among attractions older than 30 days with customers, above ValueBetterThan: (value - ValueBetterThan) x ScorePerPointspeech only
252wiredcb 0x5A0100Sideshows: the highest value (0x4CBBA0) among attractions older than 30 days with customers, above ValueBetterThan: (value - ValueBetterThan) x ScorePerPointspeech only
253wiredcb 0x5A0150Food: the highest satisfaction (0x4CB100, 50 + mean of the satisfaction ring) among attractions older than 30 days, above SatisfactionBetterThan: (satisfaction - threshold) x ScorePerPointspeech only
254wiredcb 0x5A01A0Shops: the highest satisfaction (0x4CB980, 50 + mean of the satisfaction ring) among attractions older than 30 days, above SatisfactionBetterThan: (satisfaction - threshold) x ScorePerPointspeech only
255wiredcb 0x5A01F0Restaurant: the highest satisfaction (0x4CB100, 50 + mean of the satisfaction ring) among attractions older than 30 days, above SatisfactionBetterThan: (satisfaction - threshold) x ScorePerPointspeech only
256wiredcb 0x5A0240Drinks: the highest satisfaction (0x4CB100, 50 + mean of the satisfaction ring) among attractions older than 30 days, above SatisfactionBetterThan: (satisfaction - threshold) x ScorePerPointspeech only
257wiredcb 0x5A0290Sideshows: the highest satisfaction (0x4CBEC0) among sideshows older than 30 days with customers, above SatisfactionBetterThan: (satisfaction - threshold) x ScorePerPointspeech only

Guest mood and thoughts#

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
3wiredcb 0x59C9D0guests whose thirst is above VisitorsThirsty.ThirstierThan (0x4C93F0, strictly greater, truncated byte; the shipped threshold 99 makes only a thirst of 100 count) x ScorePerThirstyPerson9
4wiredcb 0x59CA00guests whose hunger is above VisitorsHungry.HungrierThan (0x4C9340, same rule as 3) x ScorePerHungryPerson10
82wiredcb 0x59E380park open and no toilet built: guests needing the toilet above NeedingMoreThan (0x4C9290) x 100 / guests in the park (0x4C9130, signed) > MorePeopleThanThisNeeding: flat Score (no ride test)86
125wiredprank message (type 0xE, sender 0x4FF2EA); 0x59B060 case at 0x59B3C6 posts 125kind word 2 -> 127, 1 -> 126, 0 -> 125 (prankster id modulo 3)146
126wiredprank message type 0xE; 0x59B060 case at 0x59B348kind word 1147
127wiredprank message type 0xE; 0x59B060 case at 0x59B2CAkind word 2148
141wiredcb 0x59F4F0park open, rides >= MinimumRides and the mean live excitement of the rides (0x4CCBF0 with the age 10) > AverageScarierThan: flat VisitorsTooScared.Score159
145wiredcb 0x59F5E0guests in the park >= MinimumVisitors and the mean happiness (0x4C7BB0) >= HappierThan (equality passes): flat CongratVisitorsHappy.Scorespeech only
158wiredcb 0x59F940guests holding a balloon (0x4C9530, +0x210 nonzero) > CongratBalloons.MoreThan: flat Score174
159wiredcb 0x59F970guests in costume (0x4C95D0, +0x24 == 2) > CongratCostumes.MoreThan: flat Score175
264wiredcb 0x5A04F0the kids the guards went after this month (0x4C94A0 of 0) > MorePrankstersThan: flat LotsOfPranks.Score; no park-open testspeech only

Staff callbacks#

The 38 staff rows below that were ready are ported (AdvisorStaffCallbacks in source/OpenTPW/World/AdvisorScanStaff.cs, over IAdvisorStaffState, which EconomyParkState implements next to IAdvisorParkState; a park state without it, and a settings file without a threshold, score 0). Re-read from the code of the callbacks, this corrects the first inventory text in five places:

The remaining inputs: busy points 0x4C81E0 = half the guests on census cells, at most 100 (the same census as 0x4C9130); unhappy percent 0x4C9750(30) = the census guests whose happiness byte is below 30 x 100 / the census (IParkGuestStatistics.CensusPercentBelowHappiness); tired staff 0x4C9AA0 = energy byte below RestLevel (0x506680); staff with a patrol area 0x4C9B40(role) = area corner words other than 1 and 0x4000 (StaffMember.HasPatrolArea; argument 0 counts every role); all staff 0x4C9A10 (every thing of the models 4 to 8, where 0x4C9960 also tests the flag byte +3); visitors so far 0x4C94C0 = the lifetime counter +0x21C08 (ParkCounters.Admissions); staff rooms 0x4CA030 / closed 0x4CA0C0 = the attractions with the rest-area flag (UsageInfo.ChillsYouOut, bit 2 of +0x32) whose open word is 0. The coverage rows (19, 21, 27) and the prank rows (12, 22, 98) were ported in round 10 ("The last nine callbacks").

Staff#

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
11wiredcb 0x59CCB0park open, days since the newest hire (the hire stamp) >= DaysForStaff, no guard: (busy points (0x4C81E0 = min(100, guests in the park / 2)) - AtLeastThisBusy) x ScorePerExtraBusyPoint, not clamped17
12wiredcb 0x59CD30park open, no guard: StaffHireGuards2.Score + the kids the guards went after this month (0x4C94A0 of 0) x AdditionalPerMisbehavingKid18
13wiredcb 0x59CD90park open, days since the newest hire >= DaysForStaff, developed cells >= MinCellsForConsideration: (cells - guards x IdealDevelopedCellsPerGuard) x ScorePerExtra10Cells while above 019
14wiredcb 0x59CE30park open, no entertainer, more than 30 percent of the guests have a happiness byte below 30 (0x4C9750 of 30): (busy points - AtLeastThisBusy) x ScorePerExtraBusyPoint20
18wiredcb 0x59D0C0park months (clock / 30 days) >= MonthsIntoGameForConsideration, staff of the role >= AtLeastThisMany, percent with a patrol area set (0x4C9B40 x 100 / staff) <= DontBotherIfPatrolledUp: (100 - percent) x ScorePerUnpatrolledPctspeech only
19wiredcb 0x59D180months in game >= the area line's months word, mechanics >= AtLeastThisMany, one with an area of his own (0x4C9B40 of 4): (100 - the percent of the entrance cells the mechanics' rectangles cover, 0x4CD500 of 4, 2) x ScorePerNonCoveredPercent, 0 below the coverage Scorespeech only
20wiredcb 0x59D250park months (clock / 30 days) >= MonthsIntoGameForConsideration, staff of the role >= AtLeastThisMany, percent with a patrol area set (0x4C9B40 x 100 / staff) <= DontBotherIfPatrolledUp: (100 - percent) x ScorePerUnpatrolledPctspeech only
21wiredcb 0x59D310months in game >= the area line's months word, one handyman (no minimum count and no area test): (100 - the percent of the path and queue cells the handymen's rectangles cover, 0x4CD500 of 5, 3) x ScorePerNonCoveredPercent, 0 below the coverage Scorespeech only
22wiredcb 0x59D3B0a guard exists and the kids that got away this month (0x4C94A0 of 1) > StaffGuardBuildCamera.AcceptableTrouble: flat Score28
23wiredcb 0x59D400park months (clock / 30 days) >= MonthsIntoGameForConsideration, staff of the role >= AtLeastThisMany, percent with a patrol area set (0x4C9B40 x 100 / staff) <= DontBotherIfPatrolledUp: (100 - percent) x ScorePerUnpatrolledPctspeech only
26wiredcb 0x59D4C0park months (clock / 30 days) >= MonthsIntoGameForConsideration, staff of the role >= AtLeastThisMany, percent with a patrol area set (0x4C9B40 x 100 / staff) <= DontBotherIfPatrolledUp: (100 - percent) x ScorePerUnpatrolledPctspeech only
27wiredcb 0x59D580months in game >= the area line's months word, one entertainer (no minimum count and no area test): (100 - the percent of the built cells the entertainers' rectangles cover, 0x4CD500 of 6, 1) x ScorePerNonCoveredPercent, 0 below the coverage Scorespeech only
28wiredcb 0x59D620role exists, its training budget in the staff HQ (0x519450 +0xC to +0x1C) is not above 0, average training (0x4C9C00 = 20 x grades / members) < WorseThan: flat Score33
29wiredcb 0x59D680role exists, its training budget in the staff HQ (0x519450 +0xC to +0x1C) is not above 0, average training (0x4C9C00 = 20 x grades / members) < WorseThan: flat Score34
30wiredcb 0x59D6E0role exists, its training budget in the staff HQ (0x519450 +0xC to +0x1C) is not above 0, average training (0x4C9C00 = 20 x grades / members) < WorseThan: flat Score35
31wiredcb 0x59D740role exists, its training budget in the staff HQ (0x519450 +0xC to +0x1C) is not above 0, average training (0x4C9C00 = 20 x grades / members) < WorseThan: flat Score36
32wiredcb 0x59D7A0role exists, its training budget in the staff HQ (0x519450 +0xC to +0x1C) is not above 0, average training (0x4C9C00 = 20 x grades / members) < WorseThan: flat Score37
33wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher38
34wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher39
35wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher40
36wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher41
37wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher42
38wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher43
39wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher44
40wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher45
41wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher46
42wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher47
43wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher48
44wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher49
45wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher50
46wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher51
47wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher52
48wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher53
49wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher54
50wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher55
51wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher56
52wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher57
53wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher58
54wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher59
55wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher60
56wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher61
57wiredCMsgStaffInfo (type 0x17) from the staff manager month routine 0x509031-0x5092AA; 0x59AFC0 posts 33 + 5 x kind + role (0x59B034)kind 0 unhappy, 1 very unhappy, 2 striking, 3 happier, 4 strike over; role order handyman, mechanic, guard, entertainer, researcher62
98wiredcb 0x59E840the kids that got away this month (0x4C94A0 of 1) > MoreThanThisGotAway: count x ScorePerGetAway; no park-open test119
108wiredcb 0x59EDD0handymen hired > attractions (0x4CA8E0 kind 0) + FudgeFactor: flat Score129
109wiredcb 0x59EE20entertainers hired > attractions (0x4CA8E0 kind 0) + FudgeFactor: flat Score130
110wiredcb 0x59EE70mechanics hired > attractions (0x4CA8E0 kind 0) + FudgeFactor: flat Score131
111wiredcb 0x59EEC0guards hired > attractions (0x4CA8E0 kind 0) + FudgeFactor: flat Score132
112wiredcb 0x59EF10researchers hired > attractions (0x4CA8E0 kind 0) + FudgeFactor: flat Score133
114wiredcb 0x59EFA0the role's park limit (MaxHandymenInPark, words 0x7852E8-0x7852F8) equals MoreThan and the staff of the role >= MoreThan: flat Score; the V2 message is the line for a limit that is not MoreThan135
115wiredcb 0x59EFE0the role's park limit is not the first message's MoreThan and the staff of the role equal the limit exactly: flat Score (the repeat variant of the limit line)136
116wiredcb 0x59F020the role's park limit (MaxEntertainersInPark, words 0x7852E8-0x7852F8) equals MoreThan and the staff of the role >= MoreThan: flat Score; the V2 message is the line for a limit that is not MoreThan137
117wiredcb 0x59F060the role's park limit is not the first message's MoreThan and the staff of the role equal the limit exactly: flat Score (the repeat variant of the limit line)138
118wiredcb 0x59F0A0the role's park limit (MaxMechanicsInPark, words 0x7852E8-0x7852F8) equals MoreThan and the staff of the role >= MoreThan: flat Score; the V2 message is the line for a limit that is not MoreThan139
119wiredcb 0x59F0E0the role's park limit is not the first message's MoreThan and the staff of the role equal the limit exactly: flat Score (the repeat variant of the limit line)140
120wiredcb 0x59F120the role's park limit (MaxGuardsInPark, words 0x7852E8-0x7852F8) equals MoreThan and the staff of the role >= MoreThan: flat Score; the V2 message is the line for a limit that is not MoreThan141
121wiredcb 0x59F160the role's park limit is not the first message's MoreThan and the staff of the role equal the limit exactly: flat Score (the repeat variant of the limit line)142
122wiredcb 0x59F1A0the guards' park limit (0x7852F4, the original's copy slip) equals MaxGuards.MoreThan and the researchers >= MaxResearchers.MoreThan: flat Score; the V2 message is the line for a limit that is not MoreThan143
123wiredcb 0x59F1E0the role's park limit is not the first message's MoreThan and the staff of the role equal the limit exactly: flat Score (the repeat variant of the limit line)144
144wiredcb 0x59F590staff >= MinimumStaff and average staff happiness (0x4C7CC0, a single) >= HappierThan: flat CongratStaffHappy.Scorespeech only
146wiredcb 0x59F630the role's training budget in the staff HQ is above 0, staff of the role > Minimum and average training (0x4C9C00) > BetterThan: flat Scorespeech only
147wiredcb 0x59F6A0the role's training budget in the staff HQ is above 0, staff of the role > Minimum and average training (0x4C9C00) > BetterThan: flat Scorespeech only
148wiredcb 0x59F710the role's training budget in the staff HQ is above 0, staff of the role > Minimum and average training (0x4C9C00) > BetterThan: flat Scorespeech only
149wiredcb 0x59F780the role's training budget in the staff HQ is above 0, staff of the role > Minimum and average training (0x4C9C00) > BetterThan: flat Scorespeech only
150wiredcb 0x59F7F0the role's training budget in the staff HQ is above 0, staff of the role > Minimum and average training (0x4C9C00) > BetterThan: flat Scorespeech only
169wiredcb 0x59F9C0park months >= 3: tired staff percent (0x4C9AA0 x 100 / all staff) > PctOfStaffTired: flat Scorespeech only
170wiredcb 0x59FA60park open, visitors ever >= MinVisitorsEver, no staff at all: flat HireStaffGeneral.Scorespeech only
171wiredcb 0x59FAC0staff > MinStaffForMessage and nobody has a patrol area (0x4C9B40): flat SetPatrolsGeneral.Scorespeech only
172wiredcb 0x59FB10all staff > MinStaffForMessage and the staff HQ's mHaveEverTrained byte (+0x20 of 0x519450, set once a training budget above 0 is stored) is clear: flat TrainStaffGeneral.Scorespeech only
263wiredcb 0x5A0490staff rooms closed (0x4CA0C0: open word +0x68 is 0; the staff room's state 3, not choosable, is no closed one) x 100 / staff rooms > MoreThanThisPercentClosed: flat StaffroomClosed.Scorespeech only (response 513 plays the z_error placeholder)

Research#

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
15wiredcb 0x59CEA0park open, no researcher (0x4C9960 of 8), ride research outstanding (0x4CA630), ride types available (0x4CA450) above 0 and not all built (0x4CA7B0), built x 100 / available (signed) above StaffHireResearchers1.Most: excess x PointsPerExtraPct21
16wiredcb 0x59CF50park open, no researcher, ride research outstanding, built ride types equal to the available ones (no zero test): flat StaffHireResearchers2.Score22
17wiredcb 0x59CFE0park open, research total (0x4C9ED0) above 0, months into the game >= MonthsIntoGameForConsideration, a researcher hired and one waiting in the hiring pool (0x4C9E40 of 4), research done (0x4C9E60) x 100 / total (unsigned) below SlowerThan: flat StaffHireResearchers3.Score23
61wiredcb 0x59DA30a researcher hired, a ride type built (0x4CA7B0), ride research outstanding, ride research rate (0x503980 of 0) 0, built ride types equal to the available ones: flat RidesResearchMore.Score; no park-open test66
63wiredcb 0x59DB40months into the game >= MonthsIntoGameForConsideration, a researcher hired, no ride type with a researched upgrade level (0x4CA4C0), upgrade research rate (0x503980 of 4) 0: flat RidesNoUpgrades.Score68
64wiredcb 0x59DBF0a researcher hired, ride types with a researched upgrade level (0x4CA4C0) above 0 and not above LessAvailableThan, upgrade research rate 0: flat RidesMoreUpgrades.Score69
72wiredcb 0x59DD40a researcher hired, a shop type built, shop research outstanding (0x4CA650), shop research rate 0, built shop types equal to the available ones (0x4CA510): flat ShopsResearchMore.Score; no park-open test76
76wiredcb 0x59DFD0a researcher hired, a sideshow type built, sideshow research outstanding (0x4CA670), sideshow research rate 0, built sideshow types equal to the available ones (0x4CA570): flat SideshowsResearchMore.Score80
80wiredcb 0x59E260a researcher hired, a feature type built, feature research outstanding (0x4CA690), built feature types equal to the available ones (0x4CA5D0): flat FeaturesResearchMore.Score; the only one of the four with no research rate test84
93wiredCMsgResearchCompleted (type 0x11) sent by 0x504630; 0x59B060 posts 93-97 by category (0x59B0E6-0x59B1CE)ride 93, add-on 94, shop 95, sideshow 96, feature 97114
94wiredCMsgResearchCompleted (type 0x11) sent by 0x504630; 0x59B060 posts 93-97 by category (0x59B0E6-0x59B1CE)ride 93, add-on 94, shop 95, sideshow 96, feature 97115
95wiredCMsgResearchCompleted (type 0x11) sent by 0x504630; 0x59B060 posts 93-97 by category (0x59B0E6-0x59B1CE)ride 93, add-on 94, shop 95, sideshow 96, feature 97116
96wiredCMsgResearchCompleted (type 0x11) sent by 0x504630; 0x59B060 posts 93-97 by category (0x59B0E6-0x59B1CE)ride 93, add-on 94, shop 95, sideshow 96, feature 97117
97wiredCMsgResearchCompleted (type 0x11) sent by 0x504630; 0x59B060 posts 93-97 by category (0x59B0E6-0x59B1CE)ride 93, add-on 94, shop 95, sideshow 96, feature 97118
133wired0x503C6E (0x503CA7-0x503D07) when a research group opens: 133 ride, 134 shop, 135 sideshow, 136 featurea new research group opens154
134wired0x503C6E (0x503CA7-0x503D07) when a research group opens: 133 ride, 134 shop, 135 sideshow, 136 featurea new research group opens154
135wired0x503C6E (0x503CA7-0x503D07) when a research group opens: 133 ride, 134 shop, 135 sideshow, 136 featurea new research group opens154
136wired0x503C6E (0x503CA7-0x503D07) when a research group opens: 133 ride, 134 shop, 135 sideshow, 136 featurea new research group opens154
167wired0x503F96: all research done (full simulation only when the player ledger flag +0xB9 of every park is set)all items researchedspeech only

Challenges and golden tickets#

Ported by AdvisorChallengeCallbacks and AdvisorChallengeMessages (source/OpenTPW/World/AdvisorScanChallenges.cs) for the scan, and AutomaticAdvisor.Challenges.cs for the posts. 32 messages are wired here (the rows below with 1, 2, 124, 140, 156, 157 and 185 and 282 of the other batches), by what reading the bytes showed:

Tests: AdvisorScanChallengesTests (every callback at, below and above its thresholds, the queue through a whole scan pass, the statistics over a real economy and guest simulation, the key rule, the posts through the economy's events, the arrival ring and the snapshot).

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
215wiredgolden ticket won, 0x4D4FA0 group 1..3 (0x4D51AD, 0x4D50F2, 0x4D5037), called from 0x4D4BF0a local ticket (visitors, people, happiness, all items, profit, recent visitors) is won and the key rule gives outcome 1, no new key: the ticket's type 0-5 picks the response; 216 is outcome 2 (a key is earned), 217 outcome 3 (the keys equal what a park costs to enter)180, 181, 182, 183, 184, 185
216wiredgolden ticket won, 0x4D4FA0 group 1..3 (0x4D51AD, 0x4D50F2, 0x4D5037), called from 0x4D4BF0a local ticket is won and the key rule gives outcome 2: the tickets are a multiple of 3 and the player has a key, but no park costs that many keys to enter; the ticket's type 0-5 picks the response180, 181, 182, 183, 184, 185
217wiredgolden ticket won, 0x4D4FA0 group 1..3 (0x4D51AD, 0x4D50F2, 0x4D5037), called from 0x4D4BF0a local ticket is won and the key rule gives outcome 3: the keys now equal what one of the player's parks costs to enter; the ticket's type 0-5 picks the response180, 181, 182, 183, 184, 185
220wiredgolden ticket won, 0x4D5270 group 1..3 (0x4D52F3, 0x4D53B4, 0x4D546F)a global ticket (coaster height, go-kart excitement, water length, big park) is won for the first time and the key rule gives outcome 1; the global type 0-3 picks the response (221 outcome 2, 222 outcome 3)186, 187, 188, 189
221wiredgolden ticket won, 0x4D5270 group 1..3 (0x4D52F3, 0x4D53B4, 0x4D546F)a global ticket is won for the first time and the key rule gives outcome 2; the global type picks the response186, 187, 188, 189
222wiredgolden ticket won, 0x4D5270 group 1..3 (0x4D52F3, 0x4D53B4, 0x4D546F)a global ticket is won for the first time and the key rule gives outcome 3; the global type picks the response186, 187, 188, 189
225wiredgolden ticket won, 0x4D58F0 group 1..3 (0x4D5A7D, 0x4D59C2, 0x4D5907): the secret ticketsthe secret camera ticket is won and the key rule gives outcome 1 (226 outcome 2, 227 outcome 3); the secret type is the response190, 191
226wiredgolden ticket won, 0x4D58F0 group 1..3 (0x4D5A7D, 0x4D59C2, 0x4D5907): the secret ticketsthe secret camera ticket is won and the key rule gives outcome 2190, 191
227wiredgolden ticket won, 0x4D58F0 group 1..3 (0x4D5A7D, 0x4D59C2, 0x4D5907): the secret ticketsthe secret camera ticket is won and the key rule gives outcome 3190, 191
234wired0x4D5270 case 4 (0x4D554A-0x4D578A): a global ticket moved to this park, 0xEA + typea global ticket moved to this park (the outcome 4 of 0x5AF940): AutomaticAdvisor.GlobalTicketMovedMessage posts 234 + type and AdvisorTables defines the four rows (AwardMoved.Score); 0x4D5B30 follows, like after every ticket outcomespeech only
235wired0x4D5270 case 4 (0x4D554A-0x4D578A): a global ticket moved to this park, 0xEA + typea global ticket moved to this park (the outcome 4 of 0x5AF940): AutomaticAdvisor.GlobalTicketMovedMessage posts 234 + type and AdvisorTables defines the four rows (AwardMoved.Score); 0x4D5B30 follows, like after every ticket outcomespeech only
236wired0x4D5270 case 4 (0x4D554A-0x4D578A): a global ticket moved to this park, 0xEA + typea global ticket moved to this park (the outcome 4 of 0x5AF940): AutomaticAdvisor.GlobalTicketMovedMessage posts 234 + type and AdvisorTables defines the four rows (AwardMoved.Score); 0x4D5B30 follows, like after every ticket outcomespeech only
237wired0x4D5270 case 4 (0x4D554A-0x4D578A): a global ticket moved to this park, 0xEA + typea global ticket moved to this park (the outcome 4 of 0x5AF940): AutomaticAdvisor.GlobalTicketMovedMessage posts 234 + type and AdvisorTables defines the four rows (AwardMoved.Score); 0x4D5B30 follows, like after every ticket outcomespeech only
270wiredCMsgChallenge (type 25) from the challenge offer 0x4D2C50 (0x4D2D73); 0x59B060 forwards the id (0x59B489, id < 0x160)a challenge is offered, every offer but the park's first (that one posts 344 instead): the offer of a follow-up challenge toospeech only
271wiredCMsgChallenge from 0x4D1FF0 (0x4D223C) when the time left reaches ShortTimeLeftWarningAttime-short warning of the running challengespeech only
272wiredCMsgChallenge from 0x4D1A30 (0x4D1A5B)a challenge is won and the slot current afterwards (the won one, or the follow-up that was offered) has no follow-up type: the final win of a chain, after the follow-up's offer linespeech only
273wiredCMsgChallenge from 0x4D1AE0 (0x4D1B42), the challenge-lost routinea challenge is lost: its time ran out unmet (0x4D3140 raises the slot's loss count +0x24 through 0x4D1AE0)speech only
274wiredcb 0x5A08B0park open (0x51A280 clear) and GoldenTicketLocal.PeopleInPark (0x785794) nonzero: guests in the park x 100 / that threshold, cut to 100, > GTAmountVisitorsA.HigherPctThanThis: flat GTAmountVisitorsA.Scorespeech only
275wiredcb 0x5A0930park open and GoldenTicketLocal.PeopleInPark nonzero: guests in the park x 100 / that threshold, cut to 100, > GTAmountVisitorsB.HigherPctThanThis: flat GTAmountVisitorsB.Scorespeech only
276wiredcb 0x5A09B0park open and GoldenTicketLocal.PeopleInPark nonzero: guests in the park x 100 / that threshold, cut to 100, > GTAmountVisitorsC.HigherPctThanThis: flat GTAmountVisitorsC.Scorespeech only
278wiredcb 0x5A07D0park open: the share of the object types with a golden ticket cost that were built at least once (0x4CA740) above GTAllResearchedA.HigherPctThanThis and not above the B threshold: flat GTAllResearchedA.Scorespeech only
279wiredcb 0x5A0820park open: that share above GTAllResearchedB.HigherPctThanThis and not above the C threshold: flat GTAllResearchedB.Scorespeech only
280wiredcb 0x5A0870park open: that share above GTAllResearchedC.HigherPctThanThis: flat GTAllResearchedC.Scorespeech only
281wiredcb 0x5A0780the ring of arrival group sizes (+0x216D8) holds exactly one: flat GoldTicketExplanation.Score (the first arrival group has started)speech only
311wired0x4D5B30 (0x4D5BB6) after the first golden ticket was wona golden ticket is won and the player's tickets in all, the secret ones too (0x5AF530), are exactly one: the first-ticket line; the clues line 315 follows at oncespeech only
314wiredcb 0x5A0530the player holds no golden ticket (0x4D4AC0) and the visitors ever (0x4C94C0) are above GoldenTicketLocal.Visitors (0x785790) x GoldTicketNearToFirstOne.PeopleMultiplier, truncated: flat Scorespeech only
315wired0x4D5B30 (0x4D5C47) clues for the remaining ticketsa golden ticket is won and the player's tickets in all are exactly one: posted right after 311speech only
316wiredcb 0x5A05A0visitors ever above PeopleMultiplier x target and the visitors ticket (0x5AF7F0 flag 0) not won: flat GoldTicketNearToXPeeps.Scorespeech only
317wiredcb 0x5A05F0average happiness above HappinessMultiplier x target, guests above the target and the happiness ticket (flag 2) not won: flat Scorespeech only

Tutorial and help#

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
185wiredcb 0x5A06C0game days between TutorialUIPanel.AfterTime and CutoffTime: flat Scorespeech only
282wiredcb 0x5A0720game days between TutorialExplainTooltips.AfterTime and CutoffTime: flat Scorespeech only
323wiredsame handler 0x59AE43 posts advice 323 (0x59AEC1) when the game mode word 0xFB3B7C is 2 (Instant Action)flat PrebuiltPark.Scorespeech only

Help messages (score callback 0x59E8C0, HelpMessage.Score) are posted by window and tool code through 0x486B00 and withdrawn through 0x486B40; the descriptor table has 82 of them. 81 are in content/data/advisor-help-messages.toml: message 291 names response 551, which the response table does not have, so the table generator (and AdvisorHelpTable) leave it out, but its descriptor exists in advisor-descriptors.toml and in the inventory (kind unused). The "81 versus 82" counts in the comments and docs are the same table counted with and without 291.

Of these, 344 is posted after all: the challenge system's first offer (0x4D2C50, the nonzero argument of 0x4D2A70) posts it in place of 270, as an event (AutomaticAdvisor.Challenges), so its inventory row is an event row, wired (no call of 0x486B00 or 0x59B590 names it); the other 35 are the inventory's unused help rows, posted by nothing.

204 was in that list until its producer was found: the kart and water line tool (modes 0xB and 0x10, 0x525A1C → 0x526CB3) stores a click as the line start when it has none (0x526D0F), pushes 0xCC at 0x526D41 and jumps into the queue tool's post at 0x527629 (0x59B590, 0x5194D0 on [0x7CF83C], 0x59A940: the body of 0x486B00), the call the poster search had read as 0x151's only. The placement presets the start at the station's exit (0x52A1A0) and the track button's switch from the edit tool at the open end (0x530830), and 0x52F580 keeps both, so the line tool reaches the click only after a line closed its circuit with exactly Ctrl held and no placement's queue start pending (0x526F95, 0x527146). Neither of SetMode's withdrawal lists names 0xCC. Its row is help and wired now (AdvisorToolHelp.TrackLineStart, posted by ParkHud.ReportCellToolClick).

Other#

MsgStatusProducerCondition and scoreTAG_SYSTEM caption
0wiredCMsgEvent 0 sent by the main loop 0x54ED70 (0x54F2D7) at every level start; handler 0x59AE43 posts advice 0flat Welcome.Score; no state readspeech only
1wiredcb 0x59C8D00 while the park is open or while no ride and no sideshow is built (0x4CA8E0 kinds 0 and 2); else the guests in state 3 on the two ticket booth cells (0x4C91C0) x OpenPark.ScorePerWaitingPerson7
2wiredcb 0x59C960park open and neither a ride nor a sideshow built: flat ClosePark.Score; else 08
124wiredcb 0x59F220park younger than HypeNewpark.MaxMonths months and at least two arrival groups in the ring of the last five group sizes (+0x216D8): the newest group smaller than the one before by more than DroppedPercent percent (100 - newest x 100 / previous, the previous nonzero): flat Scorespeech only
128wiredCMsgEvent 3 from the open/close button routine 0x519EF0 (0x51A037); handler 0x59AF02 posts 128posted at every press of the open button, also when already open149
129wiredCMsgEvent 4 from 0x519EF0 (0x51A1C6); handler 0x59AF31 posts 129posted at every press of the close button, also when already closed150
140wiredcb 0x59F440the newest arrival group size in the ring (+0x216D8) larger than HowBigIsBig: flat BigBusloadArrived.Score158
156wiredcb 0x59F860park value (0x4C7DB0, read with age 10) > ValueBetterThan, guests in the park > VisitorsMoreThan, average happiness (0x4C7BB0) > HappinessGreaterThan: flat Scorespeech only
157wiredcb 0x59F8D0park value (0x4C7DB0, read with age 10) > ValueBetterThan, guests in the park > VisitorsMoreThan, average happiness (0x4C7BB0) > HappinessGreaterThan: flat Scorespeech only

Messages nothing produces#

Scored by the scan but constant zero (0x5D60C0), 21: 24-25, 58-59, 65, 90, 151-155, 160, 173, 265, 267-269, 347-350. Messages 58 and 59 (queues) and 90 (guests leaving when tired, build a rest area) are the visible ones: their captions exist, their speech exists, the callbacks were stubbed out.

No producer found, 47 (callback and poster search; a producer that builds its message id from a table or a computed value would be missed, see "Confidence"): 67, 83-84, 99, 130-132, 137-139, 142-143, 161-166, 168, 174-183, 218-219, 223-224, 228-233, 277, 310, 312-313, 318-321. Among them are the new-visitor arrival lines 137-139 (bus, plane, boat), the upgrade lines 130 and 132, the golden-ticket lines 99, 218, 219, 223, 224, 228, 229 and the award lines 230-233 (the posts found cover 215-217, 220-222, 225-227, 234-237, 311 and 315), the online lines 142 and 143, the four WELCOME lines 180-183, and the challenge lines 319 and 320 (their callback 0x5A0A30 is Challenge.Score, but the challenge system posts only 270-273).

Captions nothing references#

TAG_SYSTEM.str has 332 entries; the response rows reach 143 of them through the tag table (0x75ECA8). Many of the rest are the texts of messages whose responses carry the no-text tag 0x17F: they are not shown by v2.0 (the orphans column of the inventory lists them, matched by wording and by the constant offset to the captioned neighbours, so inferred). They also give the best written form of lines that are otherwise speech only, e.g. the price lines: 96 (food shops too expensive, message 238), 97 (food very cheap, 248), 98 / 99 (drinks bargain / too expensive, 251 / 241), 100 / 101 (shops, 239 / 249), 102 / 103 (restaurant, 240 / 250), 111-113 (sideshows, 242 / 252 / 247) and the quality lines 104-110 (243, 244 and the ingredient lines of 245, 246, 253-256); the wealth lines 121 / 122 (100 / 101); the patrol lines 24-32 (18-21, 23, 24, 26, 27); the congratulations 160-166, 172-173 and 177-179 (144-150, 156, 157, 161-163). Whether the spoken clip says the same words is not verifiable without the audio.

Restored advice (the opentpw.restored-advice extension)#

Of the 103 messages tp.exe v2.0 never says (the status "none" rows), the official extension opentpw.restored-advice (version 1.0.0, on by default, listed on the Extensions and mods screen) restores 42. Thirteen of the first 55 stood down (the ticket-win lines 99, 164, 165, 218, 219, 223, 224, 228, 229, the first-challenge hint 344, the double-or-nothing lines 319 and 320 and the track ride hint 204) because the original's own ticket advice (215-227), first-offer line (344), challenge offer and win lines (270, 272) and kart and water line tool help (204) are now ported; a restored line never tells an event the original already tells. The extension gives them a trigger and posts them through the advisor's own queue. The producer map keeps the original's status for them (the rows stay none, scan-zero or unused); each restored row carries an extra restored = "<topic>" field in content/data/advisor-producers.toml, and RestoredAdvice.Entries (source/OpenTPW/World/RestoredAdvice.cs) is the one list of them, kept equal to the inventory by AdvisorProducerInventoryTests. Every trigger is labelled [EXT:restored-advice-<topic>] at its site. Messages are referred to by id only: the captions, the Advisor.sam values and the speech transcripts are game content and are not in the repository.

Why it is safe to be on by default. AffectsSimulation is false: the extension only reads park state (ParkRestoredAdviceState) and posts advice. The advisor is outside the world state hash (WorldStateHash has no advisor member), nothing the extension does writes the economy, the guests or the cell map, and its few bookkeeping values (the poll's place, the vehicle last seen, the follow-up count) live in memory and are never saved. A park save records no mod for it, so ParkResumeMods (active = recorded) accepts every save made with or without it. The advisor state a save carries (AdvisorControllerSnapshot: pending records, history, the action reservation, the scan cursor) has the same shape either way, and all 351 descriptors exist whether the extension is on or off, so a save with a restored message pending or said loads with the extension off, and a save from before it loads with it on. The scan cursor walks the same rows with or without it (a row's restored callback only changes what that one row scores). AdvisorRestoredAdviceTests checks both directions, the hash with the extension on and off, and the mod records.

How it plugs in (a few touch points, so the scan driver stays the original's):

Repeat rules (no nagging). The descriptor group's repeat interval (120 groups of four turns for group 0, about two minutes) is not enough for a condition that stays true, so the extension adds its own, RestoredAdviceEntry.RepeatGroups, read from the advisor's own history (which a save already carries, so nothing new is saved and a save loads the same with the extension on or off): the congratulations (151-154, 160) and the arrivals (137-139, one per vehicle kind, told when the kind changes from the one last seen, not at every group) are said once per park; the persistent lines (24, 25, 58, 59, 65, 83, 84, 173, 265, 277, 318, 347, 348) wait 5400 groups (about 1.5 real hours at normal speed); the stranded riders (349, 350) and the upgrade lines (130-132) wait 900 groups. The restored own scores are low (30 to 50, the two security lines capped at 60) so the originals (50 to 110, help 1000) keep priority; keys the original callbacks name keep their values (65, 265 and 349 still repeat only after their interval). AdvisorRestoredRatesTests plays an hour (14516 turns at 248 ms) of a park whose conditions all hold: before 144 restored lines against 24 original ones, after 4 against 24; a park with no guard or camera heard 25 24 times an hour before and once after, the original's 102 unchanged at 24.

Scores. The message's own key where its descriptor callback is a getter of one (the unused rows 84, 130-132, 137-139, 143, 230-233, 318 and the stub rows whose siblings name the key: 24/25 StaffGuardCoverage, 65 RidesNoUpgrades, 265 RideExitBlocked, 349/350 the stranded-people and condemned keys); else the extension's own constant, documented where it is declared (RestoredAdvice.QueueScore, FameScore, ... [EXT:restored-advice-<topic>]). The restored keys are optional: a settings file without one leaves its message silent. The shipped file has them all (checked by EveryRestoredMessageHasItsKeysAndItsGroupInTheShippedAdvisorSettings).

What is restored#

GroupMessagesTrigger
Restorable with existing triggers (25)58, 59an open ride's queue holds 30 guests or more (59: three such rides, or half of the open rides, at least two; 59's speech sample is a silent stub, its caption plays); only the stronger line of the pair is posted
65after RidesNoUpgrades months: a researched upgrade is on offer and none has ever been bought
83, 84after 82 has been said, still no toilet and over twice MorePeopleThanThisNeeding guests with a toilet need above NeedingMoreThan; toilets exist but more than MorePeopleThanThisNeeding needy guests are 24 or more cells from the nearest
230-233the park earns a global ticket nobody held (coaster height, go-kart excitement, water length, big park): the award line
130, 131, 132an upgrade is bought with no mechanic hired, or while the mechanics strike; an upgrade is researched with no mechanic hired
137, 138, 139the bus, the seaplane or the Ferry starts an arrival group (GuestSimulation.ArrivalVehicle changing)
151, 152, 153, 154the park's best coaster height, go-kart excitement or water length record is 75 percent of its golden ticket's threshold (152: the park holds the coaster height ticket)
160retail shops sold 30 items or more in this and the last month, as many as half the visitors of those months
173free owned cells are under 8 percent of the owned terrain cells (the Buy Land hint)
277, 318the year's profit is 50 percent of the profit ticket's threshold (277), or GoldTicketNearToXProfit.ProfitMultiplier times it (318, the key the original's own getter reads), and the ticket is not won
347, 348the balance is still in the black but under twice (347), or under (348, with a loan available) the monthly staff wages; only the stronger of the pair
New tracking (5)24, 25security cover below, after StaffSetGuardArea months: the cover row's own gates (at least AtLeastThisMany guards, one with a patrol area) and 9 percent or more of the path cells uncovered (24); no guard and no camera in a park of 30 path cells (25); both scores capped at 60
265a ride's exit has no path (below)
349, 350guests aboard a broken-down ride (349), or a condemned one (350)
Tutorial leftovers (6)196, 211the training budget window and the ride upgrade window open (screens staffCosts, rideUpgrade)
202a blueprint is chosen to place (204, which the extension posted as the roller coaster tool started, is the kart and water line tool's own help now)
283, 306, 322a park starts with the pop-up help off; the camcorder is armed; the first message reaches the tube (344, the first challenge, is the original's own now)
Online and postcards (6)328, 329, 331, 332, 333, 334the Publish Park, park details, other parks, Find Parks, unsent postcards (outbox) and online world screens open (the online extension's own screens, also over a park through Go Online)

The new tracking#

Skipped, and why#

The last nine callbacks#

Ported in round 10 by AdvisorInputsCallbacks (source/OpenTPW/World/AdvisorScanInputs.cs) over IAdvisorParkState, IAdvisorStaffState and the new IAdvisorInputsState, which EconomyParkState also implements. The thresholds are words of the Advisor.sam object (AdvisorInputsCallbacks.IntegerKeys); a key the file lacks, or a park state without the view, leaves a callback at 0. Offsets below are the object's, read from the bytes of each callback.

MsgCallbackReads
120x59CD30the park open (0x51A280), no guard (0x4C9960 of 7), the kids the guards went after (0x4C94A0 of 0) x word +0xFC (AdditionalPerMisbehavingKid) + word +0xF8 (Score)
190x59D180months >= +0x138, mechanics >= +0x12C, 0x4C9B40(4) != 0, (100 - 0x4CD500(4, 2)) x +0x140, below +0x13C gives 0
210x59D310months >= +0x150, a handyman (0x4C9960 of 5 != 0, no minimum and no area test), (100 - 0x4CD500(5, 3)) x +0x158, below +0x154 gives 0
270x59D580months >= +0x188, an entertainer (of 6 != 0), (100 - 0x4CD500(6, 1)) x +0x190, below +0x18C gives 0
220x59D3B0a guard exists, the kids that got away (0x4C94A0 of 1) > +0x15C: +0x160
980x59E840the kids that got away > +0x314: that count x +0x318 (no park-open test)
1130x59EF60the first queue ride that joins no path (0x4CCB00 with the flag 0) gives +0x388; it stores the ride's thing id in the scan object's word +4
1410x59F4F0the park open (0x4C9050), rides (0x4CA8E0 of 0, 0) >= +0x41C, the mean live excitement of the rides (0x4CCBF0 with the age 10) > +0x418: +0x420; it then asks the scariest ride (0x4CCD10) for the word +4
2640x5A04F0the kids the guards went after > +0x5A8: +0x5AC (no park-open test)

The chase counters. 0x4C74F0 raises the analyser's month word (+0x21BFC) and lifetime word (+0x21C04) and, only for the argument 0, the got-away word (+0x21C00). Its only callers are the guard's chase 0x4D6790: 0x4D691B (argument 2) right after the catch 0x4FEC10 succeeds, 0x4D6A1F (argument 0) in the abandon tail 0x4D6A01 (logged "Guard: abandoned chase", 0x75A944), which every way out of the chase that gives it up reaches: no target or a timer of 0, a failed route, the held guest (0x4FA2A0 result 2), the failed catch, the failed second route to the booth (a kid caught and then set down counts twice). The getter 0x4C94A0 returns the got-away word for a nonzero argument and the month word for 0; the month close (0x4C7720, 0x4C79EB and 0x4C79F1) zeroes the month and got-away words, not the lifetime word. In OpenTPW the three words are ParkEconomy.MisbehavingKids and MisbehavingKidsEver, raised by StaffWorldSimulation.Chase through ParkEconomy.RecordGuardChase, zeroed in the month close, saved as the optional ParkSaveFile.Data.AnalyserChase (written when any is nonzero; only the advisor reads them, so the field is left out of the run hash like the analyser's caches and no pin moves), and an original save's three words (the serializer 0x4C5D70; SaveAnalyserCounters) are imported as they are.

The coverage. 0x4CD500(role, class) first marks (0x4CD340): every cell's mark word (+0x3C of the 0x44-byte record) is cleared, then each staff thing of the model with an area of its own (0x506EB0) marks the cells of its rectangle (the corner words +0x20A and +0x20C, columns and rows inclusive; a rectangle whose first column is past the second marks nothing). A jump table over the class (0x4CD708) counts the cells by the cell type word (+8): class 0 the land (not 2, 7, 30), class 1 the built cells (1, 3, 9, 10, 4, 21 and the structure test 0x5363F0), class 2 the entrance cells (9), class 3 the path and queue cells (1, 3, 9); the result is marked x 100 / counted (signed), 0 when nothing is counted. ParkEconomy.PatrolCoveragePercent reads OpenTPW's cell map with the same type rules as the net worth (CellForValue).

The queue. 0x4CCB00 walks the thing list from its head (the newest object) for an attraction whose flag word +0x32 has the bits 4 (Info.IsChoosable) and 8 (Info.HasQueue) and for which the back-of-queue test 0x4DE4A0 answers 0 (ECON-049's ParkGate.QueueConnected), skipping the selected object (0x527930 = 0x8186AC, Level.Selection). The level answers it through ParkEconomy.FirstUnconnectedQueueRide.

The excitement. 0x4CCBF0 keeps a cache (value +0x1F0F8, valid +0x1F0FC, stamp +0x1F0F4) counted again when it is invalid or (turn >> 2) - (stamp >> 2) exceeds the reader's age (10 here: the quarter-turn age at most 10, 40 to 43 turns), the mean of the low byte of 0x4E0860(thing, 0) over the attractions whose type has Info.WhichUIType 0 (a signed division, 0 without one); the byte is RideVisitorBridge.LiveExcitement (ECON/QUEUE join rules), through ParkEconomy.RideLiveExcitement. The cache is saved (the serializer 0x4C5D70 keeps value, valid byte and stamp, 0x4C6243, 0x4C6261, 0x4C6E62) in OpenTPW's unhashed AnalyserCaches; an original save's copy is not imported, as its net-worth cache is not.

What the callbacks leave over. The word +4 and dword +8 of the scan object are written by the callbacks of messages 86-89, 113, 140, 141 and 238-257 (the stores 0x59E4B2, 0x59E570, 0x59E632, 0x59E6E0, 0x59EF83, 0x59F4DD, 0x59F55B (through 0x4CCD10's out argument scan + 4), 0x59FBB1 to 0x5A02CC). The lookup 0x59C0A0 zeroes both once the row is found (0x59C10F, 0x59C115), before the mode selector and whether or not the callback runs, and copies them to its two out arguments at its end (0x59C213-0x59C228), so a row the mode excludes or a callback that stores nothing gives 0 and 0. The speech (0x59B620) copies the nonzero ones into the queued record's id and cell words (0x59B6CF..0x59B6E4) and the record carries them in the category-24 message to the tag system. The scan's own enqueue (0x59A5FD: the arguments -1, 0, -1, 0 and the message to 0x59B590) builds its record with both words 0, so the words only ever reach a record through the speech's check. Readers: the caption formatter's cases (0x509E10, jump table 0x50AE40, byte table 0x50AEA0; the advisor's 610 response rows use the tag kinds 0 (317 rows, no arguments), 2 (the object type named by the low word of the dword, 0x509F09: the ride lines 66, 68, 69, 70 and the research lines 93-97) and 5 to 8 (the golden ticket wins, which read the park's thresholds, not the record)) and, for the words of the scan callbacks, the message tube's locate buttons: the caption tags of the messages 86-89, 113 and 141 have action 3 (locate a thing: the record's id word is the thing id, 0x4867B0) and that of 140 has action 4 (locate a cell: the low word of the dword, 0x4868D0). The shop lines 238-257 have no caption. OpenTPW stores them as follows. The scan context (AdvisorScanContext.ThingId/Secondary) is cleared by AdvisorScan.ScoreOf before every callback, the callbacks store the words, AdvisorScan.CheckOf returns them with the score and AdvisorController.SpeechCheck hands them to UpdateSpeaking, which replaces the record's words by the nonzero ones. The scan's own record keeps both 0. The thing ids are the level's (ParkEconomy.ObjectThingId, set by Level.AttachAdvisorProbes: an economy instance id is not a thing id), so an economy without a level leaves the id word 0. The scariest ride (0x4CCD10) is the newest attraction of WhichUIType 0 with the strictly greatest low byte of 0x4E0860(thing, 0) (the first ride taken whatever its value); the unconnected queue (0x4CCB00) is the existing Level.FirstUnconnectedQueue walk, whose result EconomyParkState.UnconnectedQueue now keeps as an instance and a thing id; the big busload's dword is the cell word of the second bus stop (0x4D8650 with the flag 1: FixedItemInfo.BusStopB, 0x7855B4/0x7855B8, z * 128 + x + 1 as a word, zero-extended), which GuestSettings.BusStopB reads from the level's balance file; a level whose file names none leaves it 0 and nothing is made up. No saved state is added: the words live in the record (the pending-advice snapshot already keeps them) and the scan object's own words are rewritten before every read.

The researchers' lab flag. 0x5041F0 (ParkStaff.LabActive; the ResearchLab thing's mLabActive byte +0x1468, which no code but the edge test and the save reads) posts a message of type 0x13 (the 12-byte object 0x40F630 builds, vtable 0x6FD810, slot 0 0x40F650 answers 0x13) with the value 5 (a researcher is in the list and the byte was clear, 0x504090) or 6 (none and it was set, 0x504140) through 0x40FB10. The advisor subscribes to type 0x13 (0x599EF9); its handler 0x59B060 sends it to 0x59AE20, whose jump table 0x59AF98 (byte table 0x59AFB0) acts on the values 0, 2, 3, 4 and 10 (the advice 0 and 323, 106, 128, 129 and the history reset) and leaves 1 and 5 to 9 alone, so the lab flag reaches no advice. The type-5 case of 0x59B060 (0x59B092) is the one that reads a prebuilt record at message +8 with its valid byte at +0x1C: the messages of type 5 are the golden ticket code's (class 0x6FD7B0, built at 0x4D5037 to 0x4D5C47), which carry a record from 0x59B590; OpenTPW posts those advices to the controller directly.

Confidence and open points#

Implementation order#

  1. The scan driver (no message by itself): the cursor, the mode selector, one callback per advisor update, the eligibility that AdvisorController.Advise already has.

  2. Money (102, 103, 104, 105, then 100, 101, 107): the most visible warnings, all inputs exist and the numbers are small.

  3. Rides and breakdowns (5, 6, 7, 60, 62, 66, 68, 69, 71, 73-75, 77-79, 81, 85, 258-261): done (see "Park callbacks"); 70 was already wired.

  4. Cleanliness (8, 9, 10, 86-89, 262): done.

  5. Guest mood (3, 4, 82, 145, 158, 159): done (the census members are on IParkGuestStatistics); 141 and 264 followed in round 10 ("The last nine callbacks").

  6. Staff (11, 13, 14, 18, 20, 23, 26, 28-32, 108-112, 114-123, 144, 146-150, 169-172, 263): done (see "Staff callbacks"); research (15-17, 61, 63, 64, 72, 76, 80): done (see "Queues, prices and research callbacks").

  7. Prices (91, 92, then 238-257): done (see "Queues, prices and research callbacks"); the booth fills ring 0.

  8. Challenges and golden tickets (270, 272, 273, 215-227, 311, 315, 274-281, 314, 316, 317) and the park-opening, congratulation and tutorial callbacks (1, 2, 124, 140, 156, 157, 185, 282): done (see "Challenges and golden tickets"); 277 and 318 (the profit hints) stay with the restored advice.

  9. The last nine (round 10): coverage (19, 21, 27), pranks (12, 22, 98, 264), queue links (113), ride excitement (141): done ("The last nine callbacks"). Blocked: the three help windows (285, 307, 308; 285 was ported with the All Staff window in round 11).

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