aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit e91dd574e67c04cf88cf57b2bc045ad75c09b9f5
parent 869a6b55f649772b6b4d80b5e652c1ab8c42b8ef
Author: anon <anon@example.com>
Date:   Tue, 27 Oct 2026 05:17:52 +0000

Open native mission terminal controls

Diffstat:
MTODO.md | 14++++++++++++++
Adocs/mission-terminals.md | 141+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mserver/gamedata/load.go | 2++
Aserver/gamedata/mission_booths.yaml | 1961+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aserver/gamedata/mission_booths_test.go | 82+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mserver/gamedata/types.go | 7+++++++
Mserver/main.go | 2++
Aserver/mission_booths.go | 62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aserver/mission_booths_test.go | 188+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atools/data/extract_mission_booths.py | 77+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10 files changed, 2536 insertions(+), 0 deletions(-)

diff --git a/TODO.md b/TODO.md @@ -1355,12 +1355,26 @@ client rendering fixes and checks are in [nano damage](docs/nano-damage.md). ## Missions +- [x] Open the native mission-terminal selection controls. Check: the actual + starter booth sends Use and receives a validated callback that opens the + difficulty window without accepting a mission or changing rewards/inventory. + The catalog retains392 authored booths and their statel overrides, excluding + seven test displays. Go checks cover native socket dispatch, template faction/ + level gates, team/free-slot requirements, range, session and packet rejection. + Real GPU WASM interaction now opens the native window; offers remain open. + See [mission terminals](docs/mission-terminals.md). - [ ] [P1] Browse one mission terminal offer. Check: its native details and location render correctly without accepting it automatically. + Recover the complete native QuestAlternative/Quest_t offer serialization; + keep browsing distinct from CreateQuest acceptance. Preserve authored style + selectors rather than interpreting them as playfield IDs or faction numbers. - [ ] [P1] Accept that mission. Check: its journal entry and assigned destination survive reconnect. - [ ] [P1] Enter and leave one fixed mission interior. Check: the assigned door selects the right instance and returns the player to the right entrance. + Introduce explicit instance isolation across visibility, combat, nanos, loot, + inspection, trading and vicinity chat. Persist significant assignment/return + transitions immediately; ordinary periodic position checkpoints are insufficient. - [ ] [P1] Complete one mission objective. Check: a chosen target or object completes the mission once, with the expected reward. Commit completion with XP, credits and any item reward atomically through the diff --git a/docs/mission-terminals.md b/docs/mission-terminals.md @@ -0,0 +1,141 @@ +# Mission terminals + +Target: the original 14.9.1 client. Mission selection, acceptance and completion +are separate operations. Opening a terminal must not allocate a mission, +grant a key or award XP, credits or items. + +## Authored booths + +`python3 tools/data/extract_mission_booths.py` reads the original ResourceDatabase +in `anarchy-vanilla-14.9.1`. Its resource-index SHA256 is +`46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71`. +The extractor validates all selected statel descriptors using the existing +HighLow parser and retains raw record/resource hashes in +`local/mission-terminal-research/extracted.json`. + +There are 399 type56001 placements. Seven template41568 objects in test +playfield1511 describe implant displays and have no OriginatorType/stat490; +they are excluded. The remaining 392 booths use 13 templates across165 +playfields:262 city terminals and130 starter booths. The server catalog keeps +the original template, playfield, position and stat overrides. Template Use +criteria remain in the shared item catalog, including faction and basic +terminal Level<26 requirements. + +Starter template118128 lacks stat490 in its base definition. Placement overrides +provide both the originator and style selectors. Omni backyard3000 uses +490=5 and801=802=100001; Clan3100 uses490=3 and100000; neutral3080 uses490=1 +and100002. Ordinary Omni individual template85306 instead has490=3. +Do not derive faction from the originator number. No playfield resource with +ID100000,100001 or100002 was found; these selectors do not establish map IDs. + +The nearby starter objects in backyard3000 are: + +| Type | ID | Template | Position | Purpose | +| --- | --- | --- | --- | --- | +| 56001 | 3221228472 | 118128 | 100.03333,114.99999,148.27986 | Mission booth | +| 56006 | 3221228472 | 84130 | 89.30216,115.14444,151.16087 | Surveillance Office entrance | + +The numeric ID is shared across two different object types. An entrance is not +a terminal, and nearby type51016/template118262 doors are apartments. + +## Native interaction + +The original `kkr.dll` at +`local/client/game-14.9.1/images/kkr.dll` has SHA256 +`241b2e665dcd127399b7686cddda8a5b0876d9cde9b3af7a73940dd0b86ecaa7`. +REA/Ghidra12.1.2 observations and their complete provenance are retained in +`local/mission-terminal-research/kkr-evidence.json`. Pseudocode is recovered +analysis, not original source; indirect calls and compiler argument recovery +need corroboration by the native client. + +`kkr.dll!0x3609ad20` checks team membership for team origins and at least two +free inventory slots before using the booth (Evidence +`ev_54a9c8acbb34a769b1b870b39fee401bb06f2fa03ad9acf8ca315eec1286f397`). +The lifted predicate at0x360f74b0 recognizes origins2,4,6,8 as team origins. +The server validates those conditions, the current session, readiness/life, +authored playfield, five-metre distance and shared template Use requirements. +Valid Use requests get the ordinary native callback; rejected terminal uses +get failure, and malformed or repeated sequences are ignored. + +Before implementation, an GPU WASM client right-clicked the actual starter +booth and sent UseIIR0x52526858 with words +`0,1,3,1,50000,237,56001,3221228472`. No callback arrived and no difficulty +window opened. This controlled check edited only the owned visitor's location +and side; it is not evidence of ordinary player progression. + +With the callback implemented, that same real booth opens the original window: +six empty selection slots, difficulty slider, Request Mission, disabled Accept +and Cancel. Requesting with zero credits displays the native requirement for +at least one credit without sending a generation request. Dismissing it and +cancelling works without a page exception. A later one-credit fixture is used +only to capture generation traffic, not to claim a funded progression test. +It sends QuestAlternativeIIR0x5c436609, with native payload +`040600000000000000000000050000dac1c0000bb800`: version4, difficulty6, +six zero dimensions, seed0, origin5, booth56001/3221228472 and zero offers. +The original window displays Generating Mission until an offer reply arrives; +Cancel and reopening work while the server has no offer implementation. +Expanding advanced controls and clicking alternate ends produces dimensions +`-3,1,-3,1,-3,1`, confirming signed byte delivery. The trough clicks move the +slider incrementally: the screenshots named `hard-difficulty` and +`*-minimum`/`*-maximum` record intended clicks, not successful endpoint values; +the captured difficulty remains6. No extrema test is claimed. + +The expanded Go run passed23 roots/98 test results across the mission tests, +native bank/shop dispatch, insurance persistence/admission and the existing +unassigned-mission-door regression. The full gamedata package also passed. +The new admission matrix includes exact five-metre acceptance and vertical/ +horizontal rejection, ordinary/basic/starter/team booths, faction/level gates, +two versus one free slots, equipped slots, pending equip/trade, dead/loading/ +replaced clients, forged identities, wrong versions/actions, truncation and +duplicate sequences. These checks do not verify generated offers or acceptance. +The existing descriptor parser's eight Python regression tests passed, and +rerunning extraction reproduced the catalog. Native page exception lists are +empty. Each browser startup also logged one HTTP404 whose URL was not captured; +the retained console logs do not establish a completely error-free page load. + +## Offer protocol recovered so far + +`n3EngineClientAnarchy_t::N3Msg_GenerateMissions@0x36021680` constructs +QuestAlternativeIIR; `N3Msg_SelectMission@0x36021ac0` constructs CreateQuestIIR. +Their separate paths establish that browsing must not perform acceptance +(Evidence `ev_9bf8876532b584f8b6eddb1ad09788085581a8e91e6032ade3c4996a06f3b2ad` +and `ev_0118feb009b1d14c0cc2639a117d636e027d1ad31364069e193fb316a2dadf58`). + +The common ACGQuest reader at0x360f4b50 reads version, difficulty byte1..11, +six signed dimension bytes each -100..100, seed DWORD, originator byte1..8 and +originator identity. QuestAlternative's version function at0x360f6d80 returns4. +Its reader at0x360f7120 then reads a byte count0..5 and, for each offer, a quest +identity, complete Quest_t record and one selection byte. The quest parser at +0x360c4d80 accepts versions7..14; its writer at0x360c4b10 emits14. Quest records +include description, rewards, world position, actions and multiple lists; +empty identity lists use the native1009 count encoding. Returning only an +icon or invented short payload cannot establish a usable offer. + +These observations do not yet establish complete reward/objective semantics, +canonical generated content or a fully tested offer serializer. The original +shipped `The Mission Window.txt` confirms difficulty selection, accepted journal +entries, details, coordinate upload and duplicating mission keys. Original +key28577 and duplicator28564 descriptions also establish key-based admission; +team membership alone does not replace a key. + +## Remaining integration + +Offers must remain distinct from accepted contracts. Persist acceptance, +contract values and destination assignment together before sending success; +replay the journal only to the owner. Private interiors require an explicit +world instance distinct from the client asset playfield. Current visibility, +combat, nanos, loot, inspection, trade, chat and broadcasts use playfield alone; +sharing a fixed template would leak actors across missions. + +Persist significant instance/return-context transitions immediately. Ordinary +position-only zoning currently reaches SQLite on the periodic checkpoint and +cannot alone make an accepted mission assignment durable. Keep unassigned +mission doors inert and test two owners with the same exterior entrance. + +Completion must commit once with XP, credits and reward items. Reuse shared +XP/level arithmetic without pretending completion is an NPC kill, and join +completion state to the inventory/reward transaction rather than calling an +independently committing grant method. Cover weapon, special, nano and periodic +objective deaths, full inventory, failed writes/commit, disconnect, restart, +duplicate completion and abandon. One fixed private interior precedes layout +generation; deeper content coverage remains separate work. diff --git a/server/gamedata/load.go b/server/gamedata/load.go @@ -30,6 +30,7 @@ var ( TerrainEvidence TerrainExtractionEvidence Playfields map[uint32]Playfield ShopMachines map[uint32]ShopMachine + MissionBooths map[uint32]MissionBooth ShopStock map[uint32][]uint32 ItemCombinations map[uint32]map[uint32]ItemCombination PlayerAppearances struct { @@ -81,6 +82,7 @@ func init() { loadYAML("player_appearances.yaml", &PlayerAppearances) loadYAML("banks.yaml", &BankTerminals) loadYAML("shops.yaml", &ShopMachines) + loadYAML("mission_booths.yaml", &MissionBooths) loadYAML("shop_stock.yaml", &ShopStock) loadYAML("profession_resources.yaml", &ProfessionTitles) loadYAML("experience.yaml", &ExperienceLevels) diff --git a/server/gamedata/mission_booths.yaml b/server/gamedata/mission_booths.yaml @@ -0,0 +1,1961 @@ +# Generated from original 14.9.1 statels by extract_mission_booths.py. +3221225977: + template: 85306 + playfield: 505 + position: [1867.9945068359375, 24.999996185302734, 1203.9801025390625] + stats: [] +3221226012: + template: 85307 + playfield: 540 + position: [441.96728515625, 7.999953269958496, 326.128662109375] + stats: [] +3221226017: + template: 85307 + playfield: 545 + position: [365.99395751953125, 11.799927711486816, 476.603515625] + stats: [] +3221226022: + template: 85307 + playfield: 550 + position: [1597.5, 35.000099182128906, 345.0] + stats: [] +3221226023: + template: 85307 + playfield: 551 + position: [2423.5, 22.800100326538086, 3376.0] + stats: [] +3221226032: + template: 85307 + playfield: 560 + position: [1850.0, 43.40010070800781, 1159.0] + stats: [] +3221226037: + template: 85302 + playfield: 565 + position: [1497.873046875, 31.675785064697266, 2713.671875] + stats: [] +3221226038: + template: 206090 + playfield: 566 + position: [269.6363525390625, 32.40999984741211, 322.37255859375] + stats: [] +3221226039: + template: 85302 + playfield: 567 + position: [1085.9945068359375, 33.62701416015625, 423.3741149902344] + stats: [] +3221226057: + template: 85304 + playfield: 585 + position: [1893.8873291015625, 9.900099754333496, 1182.169921875] + stats: [] +3221226058: + template: 85307 + playfield: 586 + position: [425.753173828125, 8.248983383178711, 686.0149536132812] + stats: [] +3221226072: + template: 85302 + playfield: 600 + position: [2445.334228515625, 13.5, 2150.54296875] + stats: [] +3221226077: + template: 85307 + playfield: 605 + position: [2241.412353515625, 30.399940490722656, 2208.70703125] + stats: [] +3221226082: + template: 85306 + playfield: 610 + position: [1247.199462890625, 21.599979400634766, 2355.896240234375] + stats: [] +3221226097: + template: 85306 + playfield: 625 + position: [1319.0, 24.900100708007812, 688.0] + stats: [] +3221226102: + template: 85302 + playfield: 630 + position: [1225.30908203125, 8.410000801086426, 2390.84375] + stats: [] +3221226107: + template: 85306 + playfield: 635 + position: [805.2562255859375, 46.19999694824219, 1594.739501953125] + stats: [] +3221226112: + template: 206094 + playfield: 640 + position: [497.3999938964844, 8.000106811523438, 437.0] + stats: [] +3221226118: + template: 85302 + playfield: 646 + position: [2846.614501953125, 31.200000762939453, 733.1477661132812] + stats: [] +3221226119: + template: 85307 + playfield: 647 + position: [1000.1435546875, 15.199999809265137, 1968.21484375] + stats: [] +3221226122: + template: 85302 + playfield: 650 + position: [1783.15966796875, 21.000097274780273, 2191.849853515625] + stats: [] +3221226137: + template: 85307 + playfield: 665 + position: [721.8475952148438, 14.800000190734863, 1456.044921875] + stats: [] +3221226142: + template: 85306 + playfield: 670 + position: [1132.378662109375, 15.40015697479248, 4022.26611328125] + stats: [] +3221226157: + template: 85306 + playfield: 685 + position: [2445.30615234375, 1.399831771850586, 1197.65625] + stats: [] +3221226159: + template: 85306 + playfield: 687 + position: [425.09381103515625, 15.000100135803223, 832.5999755859375] + stats: [] +3221226167: + template: 85306 + playfield: 695 + position: [3281.0, 20.00010108947754, 791.0] + stats: [] +3221226177: + template: 206092 + playfield: 705 + position: [920.0, 16.39993667602539, 626.0] + stats: [] +3221226182: + template: 85306 + playfield: 710 + position: [562.0, 8.0, 418.0] + stats: [] +3221226188: + template: 85306 + playfield: 716 + position: [301.7069091796875, 9.80007266998291, 2203.43115234375] + stats: [] +3221226207: + template: 85306 + playfield: 735 + position: [694.1429443359375, 17.39940643310547, 220.4031982421875] + stats: [] +3221226212: + template: 85306 + playfield: 740 + position: [265.7989807128906, 17.3997859954834, 408.07818603515625] + stats: [] +3221226232: + template: 85306 + playfield: 760 + position: [1178.9000244140625, 20.5, 1245.0] + stats: [] +3221226262: + template: 85302 + playfield: 790 + position: [1194.213623046875, 5.000092506408691, 2856.731201171875] + stats: [] +3221226267: + template: 85306 + playfield: 795 + position: [2030.92431640625, 33.39999771118164, 819.4533081054688] + stats: [] +3221226272: + template: 85302 + playfield: 800 + position: [632.6140747070312, 72.80021667480469, 545.519775390625] + stats: [] +3221228472: + template: 118128 + playfield: 3000 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228473: + template: 118128 + playfield: 3001 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228474: + template: 118128 + playfield: 3002 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228475: + template: 118128 + playfield: 3003 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228476: + template: 118128 + playfield: 3004 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228477: + template: 118128 + playfield: 3005 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228478: + template: 118128 + playfield: 3006 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228479: + template: 118128 + playfield: 3007 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228480: + template: 118128 + playfield: 3008 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228481: + template: 118128 + playfield: 3009 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228482: + template: 118128 + playfield: 3010 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228483: + template: 118128 + playfield: 3011 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228484: + template: 118128 + playfield: 3012 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228485: + template: 118128 + playfield: 3013 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228486: + template: 118128 + playfield: 3014 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228487: + template: 118128 + playfield: 3015 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228488: + template: 118128 + playfield: 3016 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228489: + template: 118128 + playfield: 3017 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228490: + template: 118128 + playfield: 3018 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228491: + template: 118128 + playfield: 3019 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228492: + template: 118128 + playfield: 3020 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228493: + template: 118128 + playfield: 3021 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228494: + template: 118128 + playfield: 3022 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228495: + template: 118128 + playfield: 3023 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228496: + template: 118128 + playfield: 3024 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228497: + template: 118128 + playfield: 3025 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228498: + template: 118128 + playfield: 3026 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228499: + template: 118128 + playfield: 3027 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228500: + template: 118128 + playfield: 3028 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228501: + template: 118128 + playfield: 3029 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228502: + template: 118128 + playfield: 3030 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228503: + template: 118128 + playfield: 3031 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228504: + template: 118128 + playfield: 3032 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228505: + template: 118128 + playfield: 3033 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228506: + template: 118128 + playfield: 3034 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228507: + template: 118128 + playfield: 3035 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228508: + template: 118128 + playfield: 3036 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228509: + template: 118128 + playfield: 3037 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228510: + template: 118128 + playfield: 3038 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228511: + template: 118128 + playfield: 3039 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228512: + template: 118128 + playfield: 3040 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228513: + template: 118128 + playfield: 3041 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228514: + template: 118128 + playfield: 3042 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228515: + template: 118128 + playfield: 3043 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228516: + template: 118128 + playfield: 3044 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228517: + template: 118128 + playfield: 3045 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228518: + template: 118128 + playfield: 3046 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228519: + template: 118128 + playfield: 3047 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228520: + template: 118128 + playfield: 3048 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228521: + template: 118128 + playfield: 3049 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228522: + template: 118128 + playfield: 3050 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228523: + template: 118128 + playfield: 3051 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228524: + template: 118128 + playfield: 3052 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228525: + template: 118128 + playfield: 3053 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228526: + template: 118128 + playfield: 3054 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228527: + template: 118128 + playfield: 3055 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228528: + template: 118128 + playfield: 3056 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228529: + template: 118128 + playfield: 3057 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228530: + template: 118128 + playfield: 3058 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228531: + template: 118128 + playfield: 3059 + position: [100.03333282470703, 114.99999237060547, 148.2798614501953] + stats: [[12, 95689], [801, 100001], [802, 100001], [490, 5]] +3221228532: + template: 118128 + playfield: 3060 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228533: + template: 118128 + playfield: 3061 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228534: + template: 118128 + playfield: 3062 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228535: + template: 118128 + playfield: 3063 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228536: + template: 118128 + playfield: 3064 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228537: + template: 118128 + playfield: 3065 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228538: + template: 118128 + playfield: 3066 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228539: + template: 118128 + playfield: 3067 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228540: + template: 118128 + playfield: 3068 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228541: + template: 118128 + playfield: 3069 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228542: + template: 118128 + playfield: 3070 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228543: + template: 118128 + playfield: 3071 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228552: + template: 118128 + playfield: 3080 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228553: + template: 118128 + playfield: 3081 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228554: + template: 118128 + playfield: 3082 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228555: + template: 118128 + playfield: 3083 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228556: + template: 118128 + playfield: 3084 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228557: + template: 118128 + playfield: 3085 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228558: + template: 118128 + playfield: 3086 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228559: + template: 118128 + playfield: 3087 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228560: + template: 118128 + playfield: 3088 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228561: + template: 118128 + playfield: 3089 + position: [96.90565490722656, 39.000099182128906, 98.67872619628906] + stats: [[12, 96271], [801, 100002], [802, 100002], [490, 1]] +3221228572: + template: 118128 + playfield: 3100 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228573: + template: 118128 + playfield: 3101 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228574: + template: 118128 + playfield: 3102 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228575: + template: 118128 + playfield: 3103 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228576: + template: 118128 + playfield: 3104 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228577: + template: 118128 + playfield: 3105 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228578: + template: 118128 + playfield: 3106 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228579: + template: 118128 + playfield: 3107 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228580: + template: 118128 + playfield: 3108 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228581: + template: 118128 + playfield: 3109 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228582: + template: 118128 + playfield: 3110 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228583: + template: 118128 + playfield: 3111 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228584: + template: 118128 + playfield: 3112 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228585: + template: 118128 + playfield: 3113 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228586: + template: 118128 + playfield: 3114 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228587: + template: 118128 + playfield: 3115 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228588: + template: 118128 + playfield: 3116 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228589: + template: 118128 + playfield: 3117 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228592: + template: 118128 + playfield: 3120 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228593: + template: 118128 + playfield: 3121 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228594: + template: 118128 + playfield: 3122 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228595: + template: 118128 + playfield: 3123 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228596: + template: 118128 + playfield: 3124 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228597: + template: 118128 + playfield: 3125 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228598: + template: 118128 + playfield: 3126 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228599: + template: 118128 + playfield: 3127 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228600: + template: 118128 + playfield: 3128 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228601: + template: 118128 + playfield: 3129 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228602: + template: 118128 + playfield: 3130 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228603: + template: 118128 + playfield: 3131 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228604: + template: 118128 + playfield: 3132 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228605: + template: 118128 + playfield: 3133 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228606: + template: 118128 + playfield: 3134 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228607: + template: 118128 + playfield: 3135 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228608: + template: 118128 + playfield: 3136 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228609: + template: 118128 + playfield: 3137 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228610: + template: 118128 + playfield: 3138 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228611: + template: 118128 + playfield: 3139 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228612: + template: 118128 + playfield: 3140 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228613: + template: 118128 + playfield: 3141 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228614: + template: 118128 + playfield: 3142 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228615: + template: 118128 + playfield: 3143 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228616: + template: 118128 + playfield: 3144 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228617: + template: 118128 + playfield: 3145 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228618: + template: 118128 + playfield: 3146 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228619: + template: 118128 + playfield: 3147 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228620: + template: 118128 + playfield: 3148 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221228621: + template: 118128 + playfield: 3149 + position: [57.9761962890625, 25.000389099121094, 47.681396484375] + stats: [[12, 96269], [801, 100000], [802, 100000], [490, 3]] +3221291513: + template: 85305 + playfield: 505 + position: [1864.0284423828125, 25.0, 1203.97705078125] + stats: [] +3221291548: + template: 85307 + playfield: 540 + position: [422.0, 8.000100135803223, 458.0] + stats: [] +3221291553: + template: 85304 + playfield: 545 + position: [372.911376953125, 11.799992561340332, 473.8184814453125] + stats: [] +3221291558: + template: 85304 + playfield: 550 + position: [1595.0, 35.000099182128906, 345.0] + stats: [] +3221291559: + template: 85304 + playfield: 551 + position: [2424.0, 22.800100326538086, 3378.5] + stats: [] +3221291568: + template: 85304 + playfield: 560 + position: [1852.0, 43.40010070800781, 1159.0] + stats: [] +3221291573: + template: 85303 + playfield: 565 + position: [1497.88671875, 31.800111770629883, 2711.763671875] + stats: [] +3221291574: + template: 206093 + playfield: 566 + position: [302.5915222167969, 32.41007995605469, 299.4747314453125] + stats: [] +3221291575: + template: 85303 + playfield: 567 + position: [1083.557373046875, 33.626888275146484, 423.40679931640625] + stats: [] +3221291593: + template: 85307 + playfield: 585 + position: [1895.7591552734375, 9.900100708007812, 1180.17578125] + stats: [] +3221291594: + template: 85304 + playfield: 586 + position: [425.90411376953125, 8.10010051727295, 693.9170532226562] + stats: [] +3221291608: + template: 85303 + playfield: 600 + position: [2445.34130859375, 13.500020980834961, 2147.58349609375] + stats: [] +3221291613: + template: 85304 + playfield: 605 + position: [2237.969970703125, 30.399890899658203, 2209.073486328125] + stats: [] +3221291618: + template: 85305 + playfield: 610 + position: [1244.046875, 21.599979400634766, 2355.88037109375] + stats: [] +3221291633: + template: 85305 + playfield: 625 + position: [1319.0, 24.900100708007812, 693.0] + stats: [] +3221291638: + template: 85303 + playfield: 630 + position: [1228.139404296875, 8.410000801086426, 2390.899169921875] + stats: [] +3221291643: + template: 85305 + playfield: 635 + position: [766.9503173828125, 46.20000076293945, 1708.295654296875] + stats: [] +3221291648: + template: 206091 + playfield: 640 + position: [497.3999938964844, 7.9999871253967285, 434.0] + stats: [] +3221291654: + template: 85303 + playfield: 646 + position: [2847.22119140625, 31.200000762939453, 732.2939453125] + stats: [] +3221291655: + template: 85304 + playfield: 647 + position: [1001.8629760742188, 15.600000381469727, 1972.1832275390625] + stats: [] +3221291658: + template: 85303 + playfield: 650 + position: [1770.2713623046875, 20.60125732421875, 2176.025390625] + stats: [] +3221291673: + template: 85304 + playfield: 665 + position: [724.5752563476562, 14.828763008117676, 1455.9136962890625] + stats: [] +3221291678: + template: 85305 + playfield: 670 + position: [1132.4056396484375, 15.400018692016602, 4020.986083984375] + stats: [] +3221291693: + template: 85305 + playfield: 685 + position: [2454.52392578125, 1.399749517440796, 1197.6534423828125] + stats: [] +3221291695: + template: 85305 + playfield: 687 + position: [425.034423828125, 15.000100135803223, 830.5230712890625] + stats: [] +3221291703: + template: 85305 + playfield: 695 + position: [3283.0, 20.00010108947754, 791.0] + stats: [] +3221291713: + template: 206102 + playfield: 705 + position: [920.0, 16.399934768676758, 622.0] + stats: [] +3221291718: + template: 85305 + playfield: 710 + position: [562.0, 8.0, 416.0000305175781] + stats: [] +3221291724: + template: 85305 + playfield: 716 + position: [300.6175537109375, 9.800041198730469, 2203.67724609375] + stats: [] +3221291743: + template: 85305 + playfield: 735 + position: [691.2868041992188, 17.399484634399414, 220.38690185546875] + stats: [] +3221291748: + template: 85305 + playfield: 740 + position: [268.5946044921875, 17.399797439575195, 408.0651550292969] + stats: [] +3221291768: + template: 85305 + playfield: 760 + position: [1179.9561767578125, 20.5, 1245.0] + stats: [] +3221291798: + template: 85303 + playfield: 790 + position: [1195.66064453125, 5.000077724456787, 2856.005126953125] + stats: [] +3221291803: + template: 85305 + playfield: 795 + position: [2030.907470703125, 33.399993896484375, 820.866455078125] + stats: [] +3221291808: + template: 85303 + playfield: 800 + position: [632.6197509765625, 72.8001480102539, 547.5682983398438] + stats: [] +3221357049: + template: 85307 + playfield: 505 + position: [2007.489013671875, 42.00003433227539, 3740.48779296875] + stats: [] +3221357084: + template: 85307 + playfield: 540 + position: [462.0, 15.000100135803223, 410.0] + stats: [] +3221357089: + template: 85307 + playfield: 545 + position: [463.95172119140625, 15.400022506713867, 450.186279296875] + stats: [] +3221357094: + template: 85304 + playfield: 550 + position: [1700.5, 30.000099182128906, 1957.5438232421875] + stats: [] +3221357095: + template: 85307 + playfield: 551 + position: [2573.0, 54.5, 2120.0] + stats: [] +3221357104: + template: 85307 + playfield: 560 + position: [2406.0, 17.800100326538086, 3145.0] + stats: [] +3221357109: + template: 85303 + playfield: 565 + position: [3251.0, 24.610000610351562, 1930.0] + stats: [] +3221357110: + template: 206090 + playfield: 566 + position: [302.5549011230469, 32.410011291503906, 297.0965270996094] + stats: [] +3221357144: + template: 85306 + playfield: 600 + position: [3856.665771484375, 20.700000762939453, 1932.053955078125] + stats: [] +3221357169: + template: 85306 + playfield: 625 + position: [1167.5, 24.900100708007812, 455.0] + stats: [] +3221357174: + template: 85302 + playfield: 630 + position: [2296.0, 3.0001001358032227, 1828.0] + stats: [] +3221357184: + template: 206094 + playfield: 640 + position: [402.5, 8.0, 460.29998779296875] + stats: [] +3221357190: + template: 85307 + playfield: 646 + position: [1901.857177734375, 29.100000381469727, 1503.3720703125] + stats: [] +3221357191: + template: 85307 + playfield: 647 + position: [1893.41064453125, 24.700000762939453, 2255.114990234375] + stats: [] +3221357194: + template: 85306 + playfield: 650 + position: [739.2979125976562, 10.40000057220459, 1334.3438720703125] + stats: [] +3221357209: + template: 85303 + playfield: 665 + position: [730.2930297851562, 14.999988555908203, 1461.173095703125] + stats: [] +3221357229: + template: 85306 + playfield: 685 + position: [454.4527587890625, 15.399812698364258, 2378.622802734375] + stats: [] +3221357231: + template: 85306 + playfield: 687 + position: [645.5498046875, 17.799945831298828, 1412.56591796875] + stats: [] +3221357239: + template: 85306 + playfield: 695 + position: [1440.0, 37.60000228881836, 700.0] + stats: [] +3221357249: + template: 206092 + playfield: 705 + position: [946.0, 16.399744033813477, 391.79998779296875] + stats: [] +3221357254: + template: 85306 + playfield: 710 + position: [246.0, 8.0, 408.0] + stats: [] +3221357260: + template: 85302 + playfield: 716 + position: [318.5480651855469, 11.2427396774292, 1857.2108154296875] + stats: [] +3221357279: + template: 85306 + playfield: 735 + position: [693.3782958984375, 17.399869918823242, 408.2312927246094] + stats: [] +3221357284: + template: 85306 + playfield: 740 + position: [266.5611267089844, 17.40201759338379, 220.24118041992188] + stats: [] +3221357304: + template: 85306 + playfield: 760 + position: [1298.669921875, 29.0, 1455.300048828125] + stats: [] +3221357334: + template: 85302 + playfield: 790 + position: [1274.090576171875, 9.999813482863829e-05, 2866.53759765625] + stats: [] +3221357339: + template: 85307 + playfield: 795 + position: [3830.8916015625, 48.40019989013672, 1559.6424560546875] + stats: [] +3221357344: + template: 85302 + playfield: 800 + position: [629.7979736328125, 66.80010223388672, 713.0740966796875] + stats: [] +3221422585: + template: 85304 + playfield: 505 + position: [2008.5, 42.00004577636719, 3741.800048828125] + stats: [] +3221422620: + template: 85304 + playfield: 540 + position: [462.0, 15.000100135803223, 406.0] + stats: [] +3221422625: + template: 85304 + playfield: 545 + position: [466.37744140625, 15.40000057220459, 450.134765625] + stats: [] +3221422630: + template: 85307 + playfield: 550 + position: [1707.0, 30.00043296813965, 1960.011474609375] + stats: [] +3221422631: + template: 85304 + playfield: 551 + position: [2566.0, 54.5, 2115.0] + stats: [] +3221422640: + template: 85304 + playfield: 560 + position: [2406.0, 17.800100326538086, 3143.0] + stats: [] +3221422645: + template: 85302 + playfield: 565 + position: [3255.009765625, 24.610000610351562, 1934.935791015625] + stats: [] +3221422646: + template: 206093 + playfield: 566 + position: [266.6663818359375, 32.409942626953125, 322.4903259277344] + stats: [] +3221422680: + template: 85305 + playfield: 600 + position: [3857.88623046875, 20.700000762939453, 1932.10546875] + stats: [] +3221422705: + template: 85305 + playfield: 625 + position: [1165.0, 24.900100708007812, 457.5] + stats: [] +3221422710: + template: 85303 + playfield: 630 + position: [2294.0, 3.0001001358032227, 1828.0] + stats: [] +3221422720: + template: 206091 + playfield: 640 + position: [402.5, 8.0, 458.29998779296875] + stats: [] +3221422726: + template: 85304 + playfield: 646 + position: [1902.9937744140625, 29.100000381469727, 1503.3612060546875] + stats: [] +3221422727: + template: 85304 + playfield: 647 + position: [1892.3011474609375, 24.799999237060547, 2251.7431640625] + stats: [] +3221422730: + template: 85305 + playfield: 650 + position: [742.5999755859375, 10.410000801086426, 1337.0] + stats: [] +3221422745: + template: 85302 + playfield: 665 + position: [730.2334594726562, 15.00001335144043, 1458.33984375] + stats: [] +3221422765: + template: 85305 + playfield: 685 + position: [454.4759521484375, 15.399869918823242, 2380.700439453125] + stats: [] +3221422767: + template: 85305 + playfield: 687 + position: [646.66015625, 17.79999351501465, 1412.2073974609375] + stats: [] +3221422775: + template: 85305 + playfield: 695 + position: [1440.0, 37.60000228881836, 708.0] + stats: [] +3221422785: + template: 206102 + playfield: 705 + position: [950.0, 16.399669647216797, 391.79998779296875] + stats: [] +3221422790: + template: 85305 + playfield: 710 + position: [246.0, 8.0, 410.0] + stats: [] +3221422796: + template: 85303 + playfield: 716 + position: [319.65142822265625, 11.366086959838867, 1856.6251220703125] + stats: [] +3221422815: + template: 85305 + playfield: 735 + position: [690.5242919921875, 17.39982032775879, 408.25152587890625] + stats: [] +3221422820: + template: 85305 + playfield: 740 + position: [269.3939208984375, 17.402570724487305, 220.27638244628906] + stats: [] +3221422840: + template: 85305 + playfield: 760 + position: [1299.800048828125, 29.0, 1455.300048828125] + stats: [] +3221422870: + template: 85303 + playfield: 790 + position: [1273.0662841796875, 9.999999747378752e-05, 2867.648681640625] + stats: [] +3221422875: + template: 85304 + playfield: 795 + position: [3829.72265625, 48.40038299560547, 1558.4971923828125] + stats: [] +3221422880: + template: 85303 + playfield: 800 + position: [631.54345703125, 66.80016326904297, 713.4652099609375] + stats: [] +3221488121: + template: 85307 + playfield: 505 + position: [2026.5692138671875, 42.00003433227539, 3712.741455078125] + stats: [] +3221488156: + template: 85307 + playfield: 540 + position: [406.0, 15.000100135803223, 382.0] + stats: [] +3221488161: + template: 85307 + playfield: 545 + position: [506.2145690917969, 22.400100708007812, 550.5636596679688] + stats: [] +3221488167: + template: 85307 + playfield: 551 + position: [1302.0, 32.29999923706055, 1750.0] + stats: [] +3221488176: + template: 85307 + playfield: 560 + position: [1294.5, 31.20009994506836, 2563.500244140625] + stats: [] +3221488182: + template: 206090 + playfield: 566 + position: [319.3091125488281, 32.40999984741211, 336.2350158691406] + stats: [] +3221488201: + template: 85302 + playfield: 585 + position: [1318.7633056640625, 9.60010051727295, 2037.587158203125] + stats: [] +3221488221: + template: 85306 + playfield: 605 + position: [352.28759765625, 35.65306091308594, 2242.580322265625] + stats: [] +3221488241: + template: 85306 + playfield: 625 + position: [1791.959716796875, 24.900100708007812, 439.5] + stats: [] +3221488246: + template: 85302 + playfield: 630 + position: [1527.0, 18.600000381469727, 362.0] + stats: [] +3221488256: + template: 206094 + playfield: 640 + position: [450.0, 8.0, 329.5] + stats: [] +3221488262: + template: 85307 + playfield: 646 + position: [2114.015869140625, 9.80001449584961, 859.1259765625] + stats: [] +3221488263: + template: 85307 + playfield: 647 + position: [2608.750732421875, 21.299999237060547, 2725.220703125] + stats: [] +3221488281: + template: 85305 + playfield: 665 + position: [2365.90380859375, 7.200099945068359, 2253.94384765625] + stats: [] +3221488301: + template: 85306 + playfield: 685 + position: [1486.4954833984375, 15.399744033813477, 2345.615234375] + stats: [] +3221488311: + template: 85306 + playfield: 695 + position: [1460.0001220703125, 7.400100231170654, 2447.0] + stats: [] +3221488321: + template: 206092 + playfield: 705 + position: [850.0, 16.397602081298828, 787.5] + stats: [] +3221488326: + template: 85306 + playfield: 710 + position: [431.2841491699219, 17.000011444091797, 336.52813720703125] + stats: [] +3221488332: + template: 85306 + playfield: 716 + position: [485.39532470703125, 39.39992904663086, 1854.1529541015625] + stats: [] +3221488351: + template: 85306 + playfield: 735 + position: [530.1141967773438, 17.400035858154297, 168.80422973632812] + stats: [] +3221488356: + template: 85306 + playfield: 740 + position: [428.76715087890625, 17.400035858154297, 171.78033447265625] + stats: [] +3221488411: + template: 85302 + playfield: 795 + position: [3645.65087890625, 30.5999698638916, 566.952392578125] + stats: [] +3221488416: + template: 85302 + playfield: 800 + position: [738.88671875, 59.999996185302734, 706.457275390625] + stats: [] +3221553657: + template: 85304 + playfield: 505 + position: [2026.4713134765625, 42.00004577636719, 3711.300048828125] + stats: [] +3221553692: + template: 85304 + playfield: 540 + position: [406.0, 15.000100135803223, 386.0] + stats: [] +3221553697: + template: 85304 + playfield: 545 + position: [506.1912536621094, 22.400100708007812, 552.9031982421875] + stats: [] +3221553703: + template: 85304 + playfield: 551 + position: [1295.0, 32.29999923706055, 1748.5] + stats: [] +3221553712: + template: 85304 + playfield: 560 + position: [1293.0, 31.20009994506836, 2566.000244140625] + stats: [] +3221553718: + template: 206093 + playfield: 566 + position: [317.04241943359375, 32.40999984741211, 335.5461120605469] + stats: [] +3221553737: + template: 85303 + playfield: 585 + position: [1320.8319091796875, 9.60010051727295, 2037.5379638671875] + stats: [] +3221553757: + template: 85305 + playfield: 605 + position: [352.44921875, 35.29999923706055, 2243.7392578125] + stats: [] +3221553777: + template: 85305 + playfield: 625 + position: [1788.5, 24.900100708007812, 436.0] + stats: [] +3221553782: + template: 85303 + playfield: 630 + position: [1527.0, 18.600000381469727, 370.0] + stats: [] +3221553792: + template: 206091 + playfield: 640 + position: [447.6000061035156, 8.0, 329.5] + stats: [] +3221553798: + template: 85304 + playfield: 646 + position: [2114.04345703125, 9.800004005432129, 868.813232421875] + stats: [] +3221553799: + template: 85304 + playfield: 647 + position: [2606.7724609375, 21.299999237060547, 2723.152587890625] + stats: [] +3221553817: + template: 85306 + playfield: 665 + position: [2366.04638671875, 7.200099945068359, 2258.10595703125] + stats: [] +3221553837: + template: 85305 + playfield: 685 + position: [1485.5281982421875, 15.40000057220459, 2347.76171875] + stats: [] +3221553847: + template: 85305 + playfield: 695 + position: [1460.0001220703125, 7.400100231170654, 2449.0] + stats: [] +3221553857: + template: 206102 + playfield: 705 + position: [850.0, 16.398311614990234, 792.5] + stats: [] +3221553862: + template: 85305 + playfield: 710 + position: [425.4830627441406, 16.99991226196289, 330.57806396484375] + stats: [] +3221553868: + template: 85305 + playfield: 716 + position: [486.7979736328125, 39.39984893798828, 1854.121337890625] + stats: [] +3221553887: + template: 85305 + playfield: 735 + position: [530.0995483398438, 17.400054931640625, 172.0746612548828] + stats: [] +3221553892: + template: 85305 + playfield: 740 + position: [428.74273681640625, 17.4000186920166, 168.26934814453125] + stats: [] +3221553947: + template: 85303 + playfield: 795 + position: [3645.63623046875, 30.59999656677246, 565.52099609375] + stats: [] +3221553952: + template: 85303 + playfield: 800 + position: [740.2935791015625, 59.999996185302734, 705.0643310546875] + stats: [] +3221619193: + template: 85306 + playfield: 505 + position: [779.994384765625, 29.999996185302734, 1612.080078125] + stats: [] +3221619228: + template: 85304 + playfield: 540 + position: [448.0718078613281, 7.999953269958496, 325.9746398925781] + stats: [] +3221619233: + template: 85304 + playfield: 545 + position: [454.14874267578125, 0.7462106347084045, 362.7242126464844] + stats: [] +3221619239: + template: 85307 + playfield: 551 + position: [963.5, 44.29999923706055, 1144.5] + stats: [] +3221619248: + template: 85307 + playfield: 560 + position: [606.5750732421875, 32.80010223388672, 2881.7509765625] + stats: [] +3221619254: + template: 206090 + playfield: 566 + position: [432.8411560058594, 25.009906768798828, 309.139892578125] + stats: [] +3221619293: + template: 85307 + playfield: 605 + position: [3208.53173828125, 3.928692579269409, 406.0420837402344] + stats: [] +3221619313: + template: 85306 + playfield: 625 + position: [2374.0, 54.00010299682617, 1074.0] + stats: [] +3221619318: + template: 85306 + playfield: 630 + position: [2821.0, 33.000099182128906, 2529.0] + stats: [] +3221619353: + template: 85307 + playfield: 665 + position: [901.0588989257812, 49.40010070800781, 3760.8017578125] + stats: [] +3221619383: + template: 85302 + playfield: 695 + position: [2830.0, 10.000100135803223, 2817.500244140625] + stats: [] +3221619393: + template: 206092 + playfield: 705 + position: [584.0, 16.40009880065918, 318.0] + stats: [] +3221619423: + template: 85306 + playfield: 735 + position: [530.1232299804688, 17.400100708007812, 456.6105651855469] + stats: [] +3221619428: + template: 85306 + playfield: 740 + position: [428.75213623046875, 17.399974822998047, 315.7347717285156] + stats: [] +3221619483: + template: 85304 + playfield: 795 + position: [3750.4765625, 48.41007995605469, 1607.37939453125] + stats: [] +3221684729: + template: 85305 + playfield: 505 + position: [776.0283203125, 30.0, 1612.0770263671875] + stats: [] +3221684764: + template: 85304 + playfield: 540 + position: [426.0, 8.000100135803223, 458.0] + stats: [] +3221684769: + template: 85307 + playfield: 545 + position: [452.23553466796875, 0.6959252953529358, 362.7414855957031] + stats: [] +3221684775: + template: 85304 + playfield: 551 + position: [955.5, 44.29999923706055, 1142.0] + stats: [] +3221684784: + template: 85304 + playfield: 560 + position: [604.861572265625, 32.80010223388672, 2880.576171875] + stats: [] +3221684790: + template: 206093 + playfield: 566 + position: [435.1519775390625, 25.010046005249023, 308.9185791015625] + stats: [] +3221684829: + template: 85304 + playfield: 605 + position: [3217.9990234375, 4.120007514953613, 402.400146484375] + stats: [] +3221684849: + template: 85305 + playfield: 625 + position: [2374.0, 54.00010299682617, 1069.0] + stats: [] +3221684854: + template: 85305 + playfield: 630 + position: [2823.0, 33.000099182128906, 2529.0] + stats: [] +3221684889: + template: 85304 + playfield: 665 + position: [901.2055053710938, 49.40010070800781, 3763.882568359375] + stats: [] +3221684919: + template: 85303 + playfield: 695 + position: [2830.0, 10.000100135803223, 2819.500244140625] + stats: [] +3221684929: + template: 206102 + playfield: 705 + position: [580.0, 16.40009880065918, 318.0] + stats: [] +3221684959: + template: 85305 + playfield: 735 + position: [530.104248046875, 17.400100708007812, 460.1849670410156] + stats: [] +3221684964: + template: 85305 + playfield: 740 + position: [428.72705078125, 17.399948120117188, 312.17425537109375] + stats: [] +3221685019: + template: 85307 + playfield: 795 + position: [3751.75244140625, 48.41011428833008, 1608.64208984375] + stats: [] +3221750265: + template: 85307 + playfield: 505 + position: [2153.199951171875, 38.20009994506836, 3114.699951171875] + stats: [] +3221750300: + template: 85307 + playfield: 540 + position: [258.0, 8.000100135803223, 398.0] + stats: [] +3221750320: + template: 85307 + playfield: 560 + position: [3245.7685546875, 31.00010108947754, 1453.08056640625] + stats: [] +3221750385: + template: 85306 + playfield: 625 + position: [1829.5, 68.70010375976562, 2151.0] + stats: [] +3221750390: + template: 85306 + playfield: 630 + position: [2989.0, 35.000099182128906, 675.0] + stats: [] +3221750400: + template: 206091 + playfield: 640 + position: [497.89453125, 7.9998393058776855, 542.3657836914062] + stats: [] +3221750406: + template: 85307 + playfield: 646 + position: [1797.9111328125, 27.5, 682.3311767578125] + stats: [] +3221750455: + template: 85302 + playfield: 695 + position: [3277.0, 7.000100135803223, 2930.0] + stats: [] +3221750465: + template: 206092 + playfield: 705 + position: [348.0, 16.40009880065918, 565.0] + stats: [] +3221750470: + template: 85306 + playfield: 710 + position: [246.0, 8.0, 345.0] + stats: [] +3221750495: + template: 85306 + playfield: 735 + position: [530.148681640625, 17.399911880493164, 312.63507080078125] + stats: [] +3221750500: + template: 85306 + playfield: 740 + position: [428.76678466796875, 17.400007247924805, 456.16412353515625] + stats: [] +3221815801: + template: 85304 + playfield: 505 + position: [2153.199951171875, 38.20004653930664, 3113.199951171875] + stats: [] +3221815836: + template: 85304 + playfield: 540 + position: [266.0, 8.000100135803223, 398.0] + stats: [] +3221815856: + template: 85304 + playfield: 560 + position: [3244.82177734375, 31.00010108947754, 1458.01025390625] + stats: [] +3221815921: + template: 85305 + playfield: 625 + position: [1834.5, 68.70010375976562, 2151.0] + stats: [] +3221815926: + template: 85305 + playfield: 630 + position: [2989.0, 35.000099182128906, 673.0] + stats: [] +3221815936: + template: 206094 + playfield: 640 + position: [495.9779052734375, 7.9996771812438965, 542.3856811523438] + stats: [] +3221815942: + template: 85304 + playfield: 646 + position: [1796.1470947265625, 27.399999618530273, 679.9758911132812] + stats: [] +3221815991: + template: 85303 + playfield: 695 + position: [3277.0, 7.000100135803223, 2934.0] + stats: [] +3221816001: + template: 206102 + playfield: 705 + position: [348.0, 16.40009880065918, 569.0] + stats: [] +3221816006: + template: 85305 + playfield: 710 + position: [246.0, 8.0, 347.0] + stats: [] +3221816031: + template: 85305 + playfield: 735 + position: [530.1289672851562, 17.39987564086914, 316.1632080078125] + stats: [] +3221816036: + template: 85305 + playfield: 740 + position: [428.77166748046875, 17.400009155273438, 459.7806396484375] + stats: [] +3221881337: + template: 85307 + playfield: 505 + position: [1556.800048828125, 37.200035095214844, 3693.800048828125] + stats: [] +3221881392: + template: 85306 + playfield: 560 + position: [1369.836669921875, 40.40010070800781, 587.8814086914062] + stats: [[12, 95691]] +3221881457: + template: 85306 + playfield: 625 + position: [2762.0, 71.70010375976562, 465.0] + stats: [] +3221881462: + template: 85306 + playfield: 630 + position: [412.5, 20.00010108947754, 1506.0] + stats: [] +3221881472: + template: 206094 + playfield: 640 + position: [402.0137634277344, 8.00008773803711, 561.11572265625] + stats: [] +3221881478: + template: 85307 + playfield: 646 + position: [763.0, 15.399999618530273, 1241.0] + stats: [] +3221881527: + template: 85302 + playfield: 695 + position: [2918.0, 10.000100135803223, 2930.0] + stats: [] +3221881537: + template: 206092 + playfield: 705 + position: [575.5, 16.40009880065918, 630.0] + stats: [] +3221881542: + template: 85306 + playfield: 710 + position: [562.0, 8.0, 356.0] + stats: [] +3221881567: + template: 85306 + playfield: 735 + position: [614.0337524414062, 17.400026321411133, 308.669677734375] + stats: [] +3221881572: + template: 85306 + playfield: 740 + position: [345.08599853515625, 17.39989471435547, 319.6578063964844] + stats: [] +3221946873: + template: 85304 + playfield: 505 + position: [1557.11279296875, 37.20004653930664, 3692.28076171875] + stats: [] +3221946928: + template: 85305 + playfield: 560 + position: [1341.3189697265625, 40.40010070800781, 589.7169189453125] + stats: [[12, 95690]] +3221946993: + template: 85305 + playfield: 625 + position: [2753.0, 71.70010375976562, 465.0] + stats: [] +3221946998: + template: 85305 + playfield: 630 + position: [414.5, 20.00010108947754, 1506.0] + stats: [] +3221947008: + template: 206091 + playfield: 640 + position: [404.1765441894531, 8.000094413757324, 561.0940551757812] + stats: [] +3221947014: + template: 85304 + playfield: 646 + position: [768.0, 15.399999618530273, 1241.0] + stats: [] +3221947063: + template: 85303 + playfield: 695 + position: [2922.0, 10.000100135803223, 2930.0] + stats: [] +3221947073: + template: 206102 + playfield: 705 + position: [572.5, 16.40009880065918, 630.0] + stats: [] +3221947078: + template: 85305 + playfield: 710 + position: [562.0, 8.0, 354.0] + stats: [] +3221947103: + template: 85305 + playfield: 735 + position: [613.944091796875, 17.40009307861328, 318.82415771484375] + stats: [] +3221947108: + template: 85305 + playfield: 740 + position: [345.1968994140625, 17.399904251098633, 309.90606689453125] + stats: [] +3222012464: + template: 85302 + playfield: 560 + position: [2868.000244140625, 36.600101470947266, 1896.0001220703125] + stats: [] +3222012599: + template: 85306 + playfield: 695 + position: [1580.0, 45.000099182128906, 518.0000610351562] + stats: [] +3222012639: + template: 85305 + playfield: 735 + position: [687.2880859375, 17.40019989013672, 342.36175537109375] + stats: [] +3222012644: + template: 85306 + playfield: 740 + position: [271.5987854003906, 17.400226593017578, 339.8798522949219] + stats: [] +3222078000: + template: 85303 + playfield: 560 + position: [2860.0, 36.600101470947266, 1896.0001220703125] + stats: [] +3222078135: + template: 85305 + playfield: 695 + position: [1580.0001220703125, 45.000099182128906, 530.0000610351562] + stats: [] +3222078175: + template: 85306 + playfield: 735 + position: [687.3386840820312, 17.400146484375, 339.9587707519531] + stats: [] +3222078180: + template: 85306 + playfield: 740 + position: [271.74603271484375, 17.39994239807129, 287.69976806640625] + stats: [] +3222143671: + template: 85306 + playfield: 695 + position: [1530.0, 7.400100231170654, 2470.0] + stats: [] +3222143711: + template: 85306 + playfield: 735 + position: [687.4304809570312, 17.400188446044922, 288.6325988769531] + stats: [] +3222143716: + template: 85305 + playfield: 740 + position: [271.6138000488281, 17.400175094604492, 342.5842590332031] + stats: [] +3222209207: + template: 85305 + playfield: 695 + position: [1530.0, 7.400100231170654, 2462.10009765625] + stats: [] +3222209247: + template: 85305 + playfield: 735 + position: [687.4564208984375, 17.400117874145508, 286.0382995605469] + stats: [] +3222209252: + template: 85305 + playfield: 740 + position: [271.7616271972656, 17.399816513061523, 285.0981750488281] + stats: [] diff --git a/server/gamedata/mission_booths_test.go b/server/gamedata/mission_booths_test.go @@ -0,0 +1,82 @@ +package gamedata + +import ( + "crypto/sha256" + "encoding/binary" + "fmt" + "math" + "slices" + "testing" +) + +func TestMissionBoothsMatchOriginalStatels(t *testing.T) { + var identities []uint32 + for identity := range MissionBooths { + identities = append(identities, identity) + } + slices.Sort(identities) + digest := sha256.New() + playfields, templates := map[uint32]bool{}, map[uint32]bool{} + + for _, identity := range identities { + booth := MissionBooths[identity] + definition := ItemTemplates[booth.Template] + if identity&65535 != booth.Playfield || definition == nil || definition.HeaderWords[0] != 56001 { + t.Fatalf("invalid mission booth: %d %+v", identity, booth) + } + playfields[booth.Playfield], templates[booth.Template] = true, true + var data []byte + for _, value := range []uint32{identity, booth.Template, booth.Playfield} { + data = binary.BigEndian.AppendUint32(data, value) + } + for _, value := range booth.Position { + data = binary.BigEndian.AppendUint32(data, math.Float32bits(value)) + } + data = binary.BigEndian.AppendUint32(data, uint32(len(booth.Stats))) + for _, stat := range booth.Stats { + data = binary.BigEndian.AppendUint32(data, stat[0]) + data = binary.BigEndian.AppendUint32(data, stat[1]) + } + digest.Write(data) + } + + // Independent raw-resource audit of all 399 type56001 statels excludes seven displays. + if fmt.Sprintf("%x", digest.Sum(nil)) != "a2d7c6509b9cd1a97f0f0e6791a0cdf5a9b958b4ddde63fc2348556e4e9d78a1" { + t.Fatal("mission booths differ from original 14.9.1 placements and overrides") + } + if len(identities) != 392 || len(playfields) != 165 || len(templates) != 13 { + t.Fatalf("mission booth coverage changed: %d booths, %d playfields, %d templates", len(identities), len(playfields), len(templates)) + } +} + +func TestStarterMissionBoothsRetainAuthoredSelectors(t *testing.T) { + for _, test := range []struct { + name string + id uint32 + playfield uint32 + originator uint32 + style uint32 + }{ + {"Omni", 3221228472, 3000, 5, 100001}, + {"Neutral", 3221228552, 3080, 1, 100002}, + {"Clan", 3221228572, 3100, 3, 100000}, + } { + t.Run(test.name, func(t *testing.T) { + booth := MissionBooths[test.id] + stats := map[uint32]uint32{} + for _, stat := range ItemTemplates[booth.Template].Stats { + stats[stat[0]] = stat[1] + } + _, templateOriginator := stats[490] + + for _, stat := range booth.Stats { + stats[stat[0]] = stat[1] + } + + if booth.Template != 118128 || booth.Playfield != test.playfield || templateOriginator || + stats[490] != test.originator || stats[801] != test.style || stats[802] != test.style { + t.Fatalf("starter selector lost or inferred from faction: %+v %v", booth, stats) + } + }) + } +} diff --git a/server/gamedata/types.go b/server/gamedata/types.go @@ -8,6 +8,13 @@ type ShopMachine struct { Stats [][2]uint32 `yaml:"stats,omitempty"` } +type MissionBooth struct { + Template uint32 `yaml:"template"` + Playfield uint32 `yaml:"playfield"` + Position [3]float32 `yaml:"position"` + Stats [][2]uint32 `yaml:"stats"` +} + type ItemCombination struct { Result uint32 `yaml:"result"` Skills [][2]uint32 `yaml:"skills,flow"` diff --git a/server/main.go b/server/main.go @@ -520,6 +520,8 @@ func (server *server) serveWorldClient(client *worldClient) error { err = server.handleOwnedItemUse(client, body) } else if len(body) == 48 && binary.BigEndian.Uint32(body[40:44]) == 51035 { err = server.handleShopUse(client, body) + } else if len(body) == 48 && binary.BigEndian.Uint32(body[40:44]) == 56001 { + err = server.handleMissionBoothUse(client, body) } else if len(body) == 48 && (binary.BigEndian.Uint32(body[40:44]) == 51005 || binary.BigEndian.Uint32(body[40:44]) == 51059) { err = server.handleTerminalUse(client, body) } else { diff --git a/server/mission_booths.go b/server/mission_booths.go @@ -0,0 +1,62 @@ +package main + +import ( + "ao/server/gamedata" + "encoding/binary" + "time" +) + +func (server *server) handleMissionBoothUse(client *worldClient, body []byte) error { + if len(body) != 48 { + return nil + } + server.updateMutex.Lock() + defer server.updateMutex.Unlock() + server.mutex.Lock() + defer server.mutex.Unlock() + player := server.characters[client.id] + if !client.target || server.clients[client.id] != client || !client.ready || client.loading || player.health == 0 || + binary.BigEndian.Uint32(body[4:8]) != 50000 || binary.BigEndian.Uint32(body[8:12]) != client.id || + binary.BigEndian.Uint32(body[16:20]) != 0 || binary.BigEndian.Uint32(body[24:28]) != 3 || + binary.BigEndian.Uint32(body[28:32]) != 1 || binary.BigEndian.Uint32(body[32:36]) != 50000 || + binary.BigEndian.Uint32(body[36:40]) != client.id || binary.BigEndian.Uint32(body[40:44]) != 56001 { + return nil + } + sequence := binary.BigEndian.Uint32(body[20:24]) + if sequence <= client.useSequence { + return nil + } + client.useSequence = sequence + + // Validate the authored object and its Use criteria before the native callback. + booth, exists := gamedata.MissionBooths[binary.BigEndian.Uint32(body[44:48])] + accepted := exists && player.playfield == booth.Playfield && client.equipment == nil && client.trade == nil + if accepted { + position := predictedPosition_locked(player, time.Now()) + x, y, z := position[0]-booth.Position[0], position[1]-booth.Position[1], position[2]-booth.Position[2] + definition := gamedata.ItemTemplates[booth.Template] + accepted = x*x+y*y+z*z <= 5*5 && itemStat(definition, 30)&8 != 0 && player.templateUseRequirementsMet(definition) + originator := itemStat(definition, 490) + for _, stat := range booth.Stats { + if stat[0] == 490 { + originator = stat[1] + } + } + // QuestBooth::Use requires two free inventory slots and a team for even origins. + free := 30 + for _, item := range player.inventory.Items { + if item.Slot >= 64 { + free-- + } + } + accepted = accepted && free >= 2 && (originator%2 != 0 || player.team != nil) + } + + // Opening the difficulty window does not accept a mission or grant rewards. + reply := append([]byte(nil), body[16:]...) + binary.BigEndian.PutUint32(reply, 2) + if accepted { + binary.BigEndian.PutUint32(reply, 1) + } + return client.send(n3Packet(0x52526858, 50000, client.id, reply)) +} diff --git a/server/mission_booths_test.go b/server/mission_booths_test.go @@ -0,0 +1,188 @@ +package main + +import ( + "ao/server/gamedata" + "bytes" + "encoding/binary" + "reflect" + "testing" +) + +func missionBoothUseRequest(id, sequence uint32) []byte { + var body []byte + for _, value := range []uint32{0, sequence, 3, 1, 50000, 1, 56001, id} { + body = binary.BigEndian.AppendUint32(body, value) + } + return n3Packet(0x52526858, 50000, 1, body)[20:] +} + +func TestMissionBoothNativeSocketOpensWithoutAwarding(t *testing.T) { + world, _ := newEquipmentWorld(t) + player := world.characters[1] + player.playfield = 3000 + player.position = [3]float32{100, 115.75, 145} + if err := world.savePosition_locked(player); err != nil { + t.Fatal(err) + } + world = newTestInventoryServer(t) + player = world.characters[1] + connection := connectZoningClient(t, world, true) + defer connection.Close() + before := player.userData() + + request := missionBoothUseRequest(3221228472, 1) + if _, err := connection.Write(targetPacket(n3Packet(0x52526858, 50000, 1, request[16:]))); err != nil { + t.Fatal(err) + } + packet, err := readPacket(connection) + + if err != nil || len(packet) != 61 || binary.BigEndian.Uint32(packet[16:20]) != 0x52526858 || + binary.BigEndian.Uint32(packet[29:33]) != 1 || !bytes.Equal(packet[33:], request[20:]) { + t.Fatalf("native booth callback missing or changed: %x %v", packet, err) + } + world.mutex.Lock() + defer world.mutex.Unlock() + if !reflect.DeepEqual(before, player.userData()) { + t.Fatal("opening the terminal changed the character or inventory") + } +} + +func TestMissionBoothAdmission(t *testing.T) { + for _, scenario := range []string{"starter", "ordinary", "basic", "too far", "wrong playfield", "unknown", "entrance type", + "wrong side", "basic level 25", "basic level 26", "team alone", "team member", "two free slots", "one free slot", + "equipped items", "at range", "vertical range", "equipping", "trading", "dead", "loading", "not ready", "stale session", "legacy client", + "forged sender", "forged actor", "wrong subject type", "wrong actor type", "reply", "zero sequence", "truncated", "wrong action", "wrong version"} { + t.Run(scenario, func(t *testing.T) { + world, conn := newEquipmentWorld(t) + player, client := world.characters[1], world.clients[1] + player.appearance = player.appearance&^(3<<9) | 2<<9 + id := uint32(3221228472) + accepted, silent := true, false + switch scenario { + case "ordinary", "wrong side", "team alone", "team member": + id = 3221357254 + if scenario == "team alone" || scenario == "team member" { + id = 3221422790 + } + case "basic", "basic level 25", "basic level 26": + id = 3221226177 + } + booth := gamedata.MissionBooths[id] + player.playfield, player.position = booth.Playfield, booth.Position + request := missionBoothUseRequest(id, 1) + switch scenario { + case "too far": + player.position[0] += 5.01 + accepted = false + case "at range": + player.position[0] += 5 + case "vertical range": + player.position[1] += 5.01 + accepted = false + case "equipping": + client.equipment, accepted = &equipmentMove{}, false + case "trading": + client.trade, accepted = &playerTrade{}, false + case "wrong playfield": + player.playfield++ + accepted = false + case "unknown": + binary.BigEndian.PutUint32(request[44:48], 42) + accepted = false + case "entrance type": + binary.BigEndian.PutUint32(request[40:44], 56006) + silent = true + case "wrong side": + player.appearance &^= 3 << 9 + accepted = false + case "basic level 25": + player.level = 25 + case "basic level 26": + player.level, accepted = 26, false + case "team alone": + accepted = false + case "team member": + player.team = &playerTeam{id: 1} + case "two free slots", "one free slot", "equipped items": + player.inventory.Items = nil + count := 28 + if scenario == "one free slot" { + count, accepted = 29, false + } + for slot := 0; slot < count; slot++ { + player.inventory.Items = append(player.inventory.Items, ownedItem{Slot: uint32(64 + slot)}) + } + if scenario == "equipped items" { + player.inventory.Items = append(player.inventory.Items, ownedItem{Slot: 6}, ownedItem{Slot: 21}, ownedItem{Slot: 23}) + } + case "dead": + player.health, silent = 0, true + case "loading": + client.loading, silent = true, true + case "not ready": + client.ready, silent = false, true + case "stale session": + world.clients[1], silent = &worldClient{id: 1}, true + case "legacy client": + client.target, silent = false, true + case "forged sender": + binary.BigEndian.PutUint32(request[8:12], 2) + silent = true + case "forged actor": + binary.BigEndian.PutUint32(request[36:40], 2) + silent = true + case "wrong subject type": + binary.BigEndian.PutUint32(request[4:8], 56001) + silent = true + case "wrong actor type": + binary.BigEndian.PutUint32(request[32:36], 56001) + silent = true + case "reply": + binary.BigEndian.PutUint32(request[16:20], 1) + silent = true + case "zero sequence": + binary.BigEndian.PutUint32(request[20:24], 0) + silent = true + case "truncated": + request, silent = request[:47], true + case "wrong action": + binary.BigEndian.PutUint32(request[24:28], 5) + silent = true + case "wrong version": + binary.BigEndian.PutUint32(request[28:32], 2) + silent = true + } + conn.packets = nil + before := player.userData() + stored, err := readTestItemStore(world) + if err != nil { + t.Fatal(err) + } + + if err := world.handleMissionBoothUse(client, request); err != nil { + t.Fatal(err) + } + after, err := readTestItemStore(world) + + if err != nil || !bytes.Equal(stored, after) || !reflect.DeepEqual(before, player.userData()) { + t.Fatalf("terminal use changed saved or live game state: %v", err) + } + if silent { + if len(conn.packets) != 0 || client.useSequence != 0 { + t.Fatal("invalid request received a callback or consumed a sequence") + } + return + } + status := uint32(2) + if accepted { + status = 1 + } + if len(conn.packets) != 1 || binary.BigEndian.Uint32(conn.packets[0][29:33]) != status || client.useSequence != 1 { + t.Fatalf("wrong native callback for %s: %x", scenario, conn.packets) + } + if err := world.handleMissionBoothUse(client, request); err != nil || len(conn.packets) != 1 { + t.Fatalf("duplicate use repeated callback: %x %v", conn.packets, err) + } + }) + } +} diff --git a/tools/data/extract_mission_booths.py b/tools/data/extract_mission_booths.py @@ -0,0 +1,77 @@ +import hashlib +import json +import pathlib +import struct + +import ao_database +import extract_backyards +import extract_items + + +def main(): + client = pathlib.Path('anarchy-vanilla-14.9.1') + assert (client / 'version.id').read_text().strip() == '14.9.1' + database = ao_database.Database(client) + templates = {} + for kind, identity in sorted(database.records): + if kind == 1000020: + payload = database.read(kind, identity) + if struct.unpack_from('<I', payload)[0] == 56001: + templates[identity] = extract_items.parse_item(payload, kind, identity) + booths, records, excluded = {}, [], [] + + # Keep placement overrides: starter booths lack OriginatorType in the template. + for kind, playfield in sorted(database.records): + if kind != 1000026: + continue + payload = database.read(kind, playfield) + offset = 4 + for ordinal in range(struct.unpack_from('<I', payload)[0]): + size = struct.unpack_from('<I', payload, offset)[0] + offset += 4 + raw = payload[offset:offset + size] + offset += size + assert len(raw) == size and size == 64 + struct.unpack_from('<I', raw, 60)[0] + identity_type, identity = struct.unpack_from('<II', raw) + template = struct.unpack_from('<I', raw, 56)[0] + if identity_type != 56001 and template not in templates: + continue + assert identity_type == 56001 and template in templates + attributes = extract_backyards.parse_descriptor(raw[64:]) + stats = [] + for attribute in attributes: + assert set(attribute) in ({'stats'}, {'name', 'description'}) + if 'stats' in attribute: + stats.extend(attribute['stats']) + effective = dict(templates[template]['stats']) + effective.update(stats) + record = dict(identity=identity, playfield=playfield, template=template, + ordinal=ordinal, sha256=hashlib.sha256(raw).hexdigest(), + resource_sha256=hashlib.sha256(payload).hexdigest(), raw_hex=raw.hex()) + if 490 not in effective: + excluded.append(record) + continue + assert 1 <= effective[490] <= 8 and identity not in booths + booths[identity] = dict(template=template, playfield=playfield, + position=list(struct.unpack_from('<3f', raw, 24)), stats=stats) + records.append(record) + assert offset == len(payload) + database.close() + + # Store authored admission data without deriving faction from originator numbers. + lines = ['# Generated from original 14.9.1 statels by extract_mission_booths.py.'] + for identity, booth in sorted(booths.items()): + lines.append(f'{identity}:') + for field, value in booth.items(): + lines.append(f' {field}: {json.dumps(value)}') + output = pathlib.Path('server/gamedata/mission_booths.yaml') + output.write_text('\n'.join(lines) + '\n') + report = pathlib.Path('local/mission-terminal-research/extracted.json') + report.parent.mkdir(parents=True, exist_ok=True) + report.write_text(json.dumps(dict(index_sha256=hashlib.sha256(database.index).hexdigest(), + records=records, excluded=excluded), indent=2) + '\n') + print(f'{output}: {len(booths)} mission booths, {len(excluded)} non-mission displays excluded') + + +if __name__ == '__main__': + main()