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 test snapshots
The frame snapshot includes mission booths (56001) and entrances (56006) in the same
native directory as characters, floor items and shop machines. Filtering these
types out made GameTest.pick report a missing entity while the visible booth
still produced native hover56001/3221228472. The type51005 object with that
numeric ID is a separate scene door at102.95067,115,130.01703; substituting it
would select the wrong object.
The original constructors establish the shared layout. In
client/game/kkr.dll/lifted-0009.c, factory sub_36017510 constructs the booth
and returns its n3Dynel base at object+0x8c. Entrance factory sub_36017090
returns the same base through constructors sub_3608C9B0, sub_36097290 and
sub_3609C3C0.
The shared visual constructor calls n3VisualDynel_t at that base. In
client/game/llr.dll/lifted-0008.c, constructor sub_38017660 registers that
pointer through PutInDir (sub_38017900); GetGlobalPos (sub_38017F50) reads its
Vehicle at+0x60.
The directory already holds the adjusted pointer, so snapshotting must not add
another0x8c. Native N3Msg_GetPos (sub_36022A00) uses this same typed lookup and position
bridge. These are layout/lookup facts, not a guarantee that every statel is
currently loaded.
The focused WASM fixture gives the booth and entrance equal numeric IDs but different positions and verifies both records without changing guest registers. It fails with the old filter. The ordinary browser regression reaches Backyard1 on foot and checks the three distinct typed objects before using the booth.
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, a 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.
The initial observations above preceded the complete offer serializer. The
implemented fixed offer and its native validation are documented in
mission offers. Complete reward/objective semantics and
canonical generated content remain unresolved. 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 remain distinct from accepted contracts, whose values, exterior destination and first key now commit together before success; journal replay reaches only 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.