aorecomp

Anarchy Online classic in the browser

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


docs/mission-keys.md (10278B)


Mission key copying

The original Mission Key Duplicator28564 creates another key to the source key's accepted assignment. Both inputs remain owned. Each result is a distinct type51053/template28577/QL1 instance with its own durable mission_keys row; the template, slot, journal owner and numeric mission ID are not credentials.

Source and native request

Shipped template28564 is type51054/QL1, with Carry/Use capabilities and no authored sections or charges. Its description specifies picking up the tool and using it on a Mission Key, then giving copies to friends; possession admits entry without team membership. Template28577 is type51053/QL1 with base name Mission Key to. Original payload hashes are respectively acca734f1dbcfa07e880e8d2e8baa83244da1b0f4824eee026008b8f2d4e81d6 and d97843d6c7ac43741bcc808046d2cbb1ba7991d279aa222bb15624c7d640f72c. The shipped text/help/The Mission Window.txt independently describes tools from shops for duplicating mission keys.

The native WASM check picks up the ordinary duplicator and Shift-right-clicks the ordinary key. The actual request is CharacterAction81: {81,104,sourceNativeSlot,104,targetNativeSlot}. The captured source50/target49 translate to saved slots66/65. An unmodified right-click emitted no request; the generic Use5 contract alone was insufficient evidence of key-copy routing. The server previously replied with ordinary combination failure {84,2,0,0,0}. Captures are retained in local/mission-key-copy/.

Atomic behavior and boundaries

The existing combination handler authenticates the current living, ready session, distinct carried slots and busy inventory state. Copying requires the exact QL1/count1 duplicator and key types, an actual source-key binding, a live uncompleted assignment and a free ordinary slot. A banked or reclaimed key is not a carried combination target. Keys received from another player use their binding independently of journal ownership or team membership.

The new key, first-free placement, global allocation and assignment binding commit in one inventory transaction. Required insertion and final binding/item/ placement verification precede COMMIT and native AddTemplate delivery. Failed or ignored writes and failed COMMIT publish no result. Lost output preserves the committed copy for reconnect. No XP, credit reward or extra journal is granted. Copies use the existing key revocation and physical ownership rules.

Action81 has no operation nonce. Each admitted request intentionally creates another distinct copy, including when the source is itself a copy. Concurrent requests serialize allocation; this does not promise exactly-once retries after the referenced inputs remain reusable.

TestMissionKeyCopy* verifies native socket dispatch, copied-key-only cold entry, invalid inputs and unavailable assignments, full inventory, eight transaction failures and retry, concurrent copies, lost output, and an actual player trade followed by guest copying and entry. TestBrowserMissionKeyCopy verifies the real native gesture, exact packet, newly usable key, restored reusable inputs, page replay and cold database loading. The original controlled copy check provisioned its tool; the purchase check below now obtains it through the native shop instead.

Shop acquisition

Original item28564 has value/stat74 equal to20. The shipped mission-window help establishes shop acquisition; the later scraped Missions wiki identifies the Tools kiosk. Applying its QL1 entry to the nine existing original Tools templates is a bounded stock policy. A period per-terminal membership list, complete inventories and stock generation remain unrecovered; the later placement evidence does not establish those original server details.

The fixed subset retains Lock Pick at catalog index0 and adds the original duplicator at index1. Delivery uses its original type51054, QL1 and count1 through the shared purchase transaction; it needs no separate live weapon object or package charges. Other vendor categories do not inherit the entry.

The native check opens actual OT Basic Tools3221488799 in playfield1183, selects the duplicator, pays20 of its controlled100 credits, and immediately uses that newly delivered instance3 on accepted key2. The same tool and original key remain, and copy4 binds to assignment2. Page replay and cold loading retain all four instances, both bindings and80 credits. The accepted contract, shop position and funds are controlled; this does not prove earned travel or income. The two focused public-handler checks protect the nine-template stock boundary, purchase/repeated Accept, immediate copy and cold ownership. Captures are in local/mission-key-acquisition/.

Native name route

The original generic SimpleItemFullUpdateIIR 0x3b11256f supports a per-instance name. Its SimpleItem11 reader 0x100b2440 reads a length and raw bytes into message+0x74. Apply routine 0x100b2830 passes that allocation to 0x10090d90, which stores it at item+0x78. The name virtual 0x10090df0 prefers that pointer over the static template name. Include the terminating NUL in the payload and its length. Setter evidence is ev_fbe6657d0c75b2eef160313bf11216372ada2f3c060a7f219466177864c4d2b9 in local/mission-key-name/native/kkr-evidence.json; reader/apply and getter evidence are retained in local/ncu-upgrade-research/native/ and local/mission-key-metadata/ respectively. These concern original kkr.dll, SHA256 a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.

The protocol adapter now translates this generic update's carried slots64..93 to native48..77, preserving first-free111 and other pages. Parentless updates include a transform before placement and must not use the carried offset. The first/last-slot regression failed before this correction; the world case protects transform bytes that resemble a page/slot pair.

TestBrowserMissionKeyNameRoute starts with two controlled, unbound key instances. Generic updates attach the two live identities to their existing inventory rows, with labels Mission Key to Destination A and Mission Key to Destination B. Real Shift-clicks show each distinct name in its native tooltip and information window. The short check verifies native slots48/49, no client errors and unchanged cold ownership/allocation. These test labels are not recovered historical destination wording or mission bindings. Captures and protocol verification are in local/mission-key-name/.

Production keys and copies still display the base name. Destination publication, historical label wording and live-item reclaim/reconnect behavior remain open. The original activation ignores already-existing dynels, so fresh creation alone cannot prove those lifetime paths. Historical key retention after completion/abandonment remains separately unresolved.

Bank identity rows

Reopening the native bank rebuilt a named Mission Key as a template proxy: Destination A disappeared both in the bank and after withdrawal. The bank snapshot now uses flag2 for the exact type51053/template28577 key, retaining its physical identity and live name. Other ordinary rows keep flag3.

Original name resolver 0x1005e3c0 selects the live object's name virtual when the row permits it and that object exists. It otherwise falls back to the template dummy. Thus a key without an instantiated name remains usable with its normal template name. This is retained evidence ev_419217e366aa4db03b3b2a17ae953a8ebd65fd7f01f54fd4aff8955f5f6e11c7 in local/mission-key-metadata/kkr-evidence.json.

The expanded TestBrowserMissionKeyNameRoute first deposits, reopens and withdraws an uninstantiated ordinary key. It then applies the two controlled labels and repeats that same key's bank round trip without another FullUpdate. The bank and withdrawn information windows retain Destination A, while the second instance keeps its own label. Exact IDs, slots and zero cash survive cold loading. The separate public bank-Use regression protects both row flags, unchanged ownership/allocation and zero writes on opening.

The before/after captures are local/mission-key-name/20261103-182253/ and 20261103-182555/; the corrected check takes17 seconds. The bank fixture position and labels are controlled. This does not establish historical destination wording or name publication on cold reconnect.

Player trade delivery

The peer's ordinary AddTemplate seed rebuilt a live named key as a template proxy, displaying only the original base name. Mission-key offers now follow the existing count-one live-item route: a generic FullUpdate seeds the exact type51053 instance, then Trade7 references that identity. The shared missionKeyPacket encoder also supplies the controlled bank/name fixture. Other ordinary counted offers keep their existing template path.

TestBrowserNamedMissionKeyTrade gives the host template a controlled label and seeds the owner's live instance with that same label. The original client resource stays unchanged. This isolates transport from the still-unimplemented per-assignment name producer. The native peer displays Destination A with its own temporary prefix during the offer, then without that prefix after acceptance. Cancellation, a repeated offer and acceptance retain the usable exact instance. The recipient then uses a controlled reusable duplicator on that live key through real Shift-right-click input. Cold loading retains original2 and copy4 bound to assignment2, tool3, the giver's axe1 and both unchanged wallets. No second journal or new assignment is granted.

The public-handler wire regression checks FullUpdate before Trade7, the exact identity/slot and terminated base name, and no ownership/checkpoint writes for an offer. Production currently supplies the original base template name to this transport; deriving destination labels from persisted bindings remains open. The copied result also retains its current base-name delivery path.

The before capture is local/named-key-trade/20261103-183641/; the corrected 17-second trade/copy check is 20261103-184311/. These are controlled protocol and ownership fixtures, not earned progression or recovered historical wording.