aorecomp

Anarchy Online classic in the browser

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


docs/tradeskills.md (10470B)


Original inventory combinations

The server handles fixed-QL inventory combinations through the original 14.9.1 CharacterAction81 request. item_combinations.yaml declares ordered inputs, result, effective skills and consumption for both input roles. The NCU recipe combines a regular Lock Pick 95577 with Nano Programming Interface161699, requiring effective Nano Programming 25 and Breaking & Entering60. The current result is QL1 NCU Hacker Interface 158416. Both ingredients commit as consumed in the same transaction that creates one new durable result. Failed requirements or persistence preserve the inputs. The Blood Plasma recipe retains its reusable tool and consumes only the Monster Part through the same handler and transaction.

Evidence and reconstruction limits

The November2002 and February2003 Anarchy Arcanum guides establish the input pair, skill thresholds, shop categories and exclusion of Personal Lock Pick156639. Original14.9.1 records establish both inputs at QL1, result endpoints158416/158417 at QL1/200, its NoDrop flag, HUD2 placement, six nano-skill modifiers and Fixer wear requirements. Retained source bytes, dates and hashes are in local/tradeskill-research/sources/source-ledger.json and local/tradeskill-research/catalog/source-ledger.json.

Initial QL1 output is reconstruction policy inferred from the fixed QL1 inputs and level-one result endpoint. Both-component consumption has explicit later November2005 corroboration; it has not been directly established from a target-era server. Wearing requires Fixer, but the period guides do not establish a separate profession check on creation. The implemented combine checks the evidenced skill requirements without adding that unproven restriction.

Creation XP is unimplemented because its amount, including whether it is zero, remains unproven. Manual leveling, cash costs and other NCU upgrade behavior are separate unfinished work. Supporting this recipe does not establish generic tradeskill XP, variable QL/bumping, reusable tools, container/equipped combinations or the complete historical recipe set.

Native contract

Original kkr.dll SHA-256: a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. The exported evidence bundle is local/tradeskill-research/native-evidence.json.

Producer n3EngineClientAnarchy_t::N3Msg_TradeskillCombine at1002aa90 validates carried inputs and requires both references to use ordinary page104. It constructs CharacterActionIIR through1007d4b0 with action81, source identity and target identity. Stationary-object range checks exist in the producer, but it ultimately rejects nonordinary pages; their broader server behavior is not implemented.

The five network-order DWORDs after the standard N3 header are 81,104,sourceSlot,104,targetSlot. Native slots48..77 map to server slots64..93. Both references must be translated. The socket regression exercises this exact request through the public world connection and verifies the result after reload.

The original CharacterAction receiver1007d640 dispatches into SimpleChar1006fa30. Action84 invokes100561d0, which formats combination feedback through the original stat-name lookup and native chat. Failure fields are:

Five DWORDs Native feedback
84,2,0,0,0 It is not possible to assemble those two items. Maybe the order was wrong?
84,32,0,stat,required You need following skill to combine: followed by stat name and requirement

Bit0 selects a different preview wording; successful quality-grading variants also exist. Their historical server selection remains unproven and is not invented here. Creation delivers the resulting item without a guessed grade.

After the atomic save, original Delete112 messages remove only consumed input template pairs. AddTemplate delivers one result into the first free ordinary slot. This sequence also works with a full inventory because consuming an input frees space. IDs are server-owned; the temporary native template proxy receives its persistent instance identity on reconnect.

Ownership and verification

Every request checks the exact current client, readiness, life state, both ordinary slots, recipe order, input type/QL/count and effective skills. Pending equipment blocks combinations. An open player/shop basket cancels first and returns without acting on slots whose contents may have changed on restoration.

Detached candidates remove consumed ingredients and allocate one result before one existing inventory transaction. SQLite failure publishes neither ownership nor deletion/result messages; retry creates once. A lost postcommit reply cannot reverse consumption or allocate the result again. The protocol has no operation nonce: an old request cannot be distinguished from a new request after the referenced slots again contain eligible matching inputs.

Tests cover effective-skill boundaries, wrong order/Personal Lock Pick, missing/equipped/banked/contained/foreign references, stale sessions, loading, death, pending equipment, unsupported QL/type, full inventory, concurrent replay, ingredient/result/placement SQL failures, cancellation of both basket types, lost replies, native slot conversion and wearing/removing the crafted item. QL1 wear adds and removes the original six nano-skill bonuses through the shared equipment path. Native runtime evidence is retained in local/tradeskill-smoke/. Both clients verified those modifiers. After cold recovery the same persistent result and unrelated items remain; neither ingredient returns. An exploratory upgrade click on the fresh result emitted no Use request, while the cold-restored instance sent Use and received failure2. The follow-up hardware run in local/fresh-item-use-smoke/ could not reproduce the missing request: fresh template proxy, same-pointer wear/removal, away/back and reconnect all sent Use and received failure2 without changing items or cash. The original screenshot's stale Free tooltip and later preview exit are leads, not established causes. Retained native guards in local/fresh-item-use-research/ establish no rejection of the proxy's null ID or row flag0x20. This bounded result does not justify a delivery workaround; upgrading remains unsupported.

NCU equipment qualities

The NCU Hacker Interface supports wearing at every QL1..200 through the shared item interpolation path. The exact original records158416/158417 have aligned action/function lists; their six nano-skill amounts run from1 to60, and Action8 requires Fixer with level greater than QL minus1. Numeric values use the existing original kkr.dll100eff20 rounding rule. Both stored endpoint IDs normalize to the same low/high pair; exact QL1/200 packets use only their matching endpoint. The source Nano Programming Interface161699 is a separate item and does not gain this range. Catalog and native evidence are retained in local/tradeskill-research/catalog/ncu-quality-audit.json and ncu-quality-findings.txt.

QL Each of six nano-skill bonuses Minimum level
1 1 1
2 1 2
3 2 3
50 16 50
100 30 100
101 31 101
199 60 199
200 60 200

The six stats are122,127,128,129,130,131. Tests cover both stored endpoints, wear/removal, owner/observer packets, cold snapshots, level/profession/slot rejection, changed requirements during the equipment delay, SQL failure and control-panel QL bounds. Equipment quality support does not advance item QL on Use or establish the upgrade's cash/deletion policy.

Two hardware WASM clients verified QL2,3,50,100,101,199,200, including identical owner/observer modifiers and complete removal. Native attempts below the level requirement and with the wrong profession preserved the item. A stored158417 record at QL101 retained its persistent identity and exactly +31 after a process restart; removal cleared both clients again. The owner initializes its effect from the restored character, while the observer receives one explicit wear message. Exact packet tuples, native/SQLite snapshots, negative cases and fixture-only cleanup evidence are in local/ncu-quality-smoke/.

Manual upgrade research

Original OnUse contains function53064 with code FINC, followed by53130. The FINC integer interpolates from2 at QL1 to201 at QL200; this is an authored parameter, not proof of the server's cap or replacement policy. Function53064 is rejected by the inspected local effect executor, so its server behavior cannot be reconstructed from that dispatch alone.

Effect53130 is current-use-item deletion. Template prediction1005e4e0 saves the action's page/slot into the actor's inventory/attributes helper atE4/E8. Handler100c2810 resolves the subject character and invokes10061bc0 on that helper. The latter calls the established Delete helper1005f270 on the saved reference, then clears both words. It is not an NPC controller operation. Any replacement and source consumption must commit together before clients receive a deletion effect. This does not prove original server instance-ID or destination rules.

SimpleItemFullUpdate key3b11256f has a verified original registration, reader and generic51022 factory. It ignores an already existing subject dynel. Explicit-slot attachment changes only the row identity and flags, preserving the old QL/templates. Slot111 instead creates a count1 row first-free with the transmitted QL/templates. Neither path automatically replaces worn NCU modifiers. InventoryUpdated only notifies the GUI. These are protocol facts, not a reason to use an in-place FullUpdate as an upgrade implementation.

The November2002/February2003 Arcanum guides describe a small cash charge but give no amount or insufficient-credit rule. Later2006/2007 player comments disagree about fees. Neither original endpoint contains a Cash effect or requirement; absence there does not establish a free server operation. Historical fee, cap, destination and worn-use outcome remain open. No explosion roll is established by the description or a player's report of no explosions. Evidence, original bytes, source dates and exact limits are retained in local/ncu-upgrade-research/{root,native,sources}/.

Unsupported ordinary and worn weapon/HUD Use requests receive GenericCmd failure2 with the original sequence/page/slot. This preserves the item and its modifiers without enabling upgrades. Native verification uses actual page101/slot15 requests; it does not substitute an unequip action.