aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/shop-purchase-research/native/equipment-admission.md (5198B)


NPI HUD/utility slot and admission distinction

Read-only native follow-up to delivery.md. Original KKR target/digest and profile remain identical. Reused implant/armor equipment evidence first, then inspected the precise template callbacks and vtable. New records are in equipment-admission-evidence.json; owned REA session closed. No production edits, client execution or database writes.

Slots and effect delivery

Original resource1000020/161699 is type51022, ItemType76=1, QL1. LocationMask298=32830=0x803e has bits1,2,3,4,5,15 and DefaultPos88=2. Original callback0x1008eda0 checks stat298 & (1 << suppliedSlot) directly for0..16. Generic equip admission0x10060510 passes destination&0xf, so the allowed native/saved slots are exactly1,2,3,4,5,15. No ordinary-inventory slot conversion applies. These use page101, unlike clothing page102.

Reused mask evidence from local/reports/implant-protocol-1491-evidence.json: ev_3187e55bd4a6de90cf05c1dcf9851bb261a2b770c8eb45dfcd85746e36754db0. The same bundle's0x1005c610 handles ItemType1 deck-slot availability9..14; it does not select a different action for HUD or utility positions.

TemplateAction0x35505644 action6/7 uses the same generic template proxy path as clothing:0x1005e980 resolves QL/low/high through0x100894c0, then invokes wear virtual+0x74 or remove virtual+0x78. NPI's OnWear14 function53045 adds 2NanoProgramming160. Neither AddTemplate nor this effect dispatcher requires a separately delivered live SimpleItem dynel. Keep the usual owner inventory move acknowledgement and TemplateAction notifications; a live FullUpdate is not required merely because the template's native type is51022.

Owner ContainerAdd helper0x1005dd60 resolves the source template row, emits inventory notifications and moves the row through0x1002d380. It does not call the wear/remove virtuals. The explicit TemplateAction effect notification is therefore meaningful on this path, as in the existing clothing implementation. Reconnect initialization's normal owner FullCharacter effects should continue to avoid a second extra owner wear action.

Reused TemplateAction evidence: ev_3cd89062e7b4d4a2c5c8aa85884ffc09b99e65eacca95d800b704227eff26bc4 in delivery-evidence.json. Move helper evidence: ev_ca3b544e617f693a15193dbb11303ccaae381dc0a5c322c52dc0dd2f5a9af6ff in equipment-admission-evidence.json.

Authored action6 versus observed drag admission action8

The complete NPI record has one Wear6 requirement: stat19 (Intelligence) strictly greater than12. It has no profession requirement and no action8. This is retained in npi-161699.json, payload SHA-256 43023833474d36381a4721d42d56028fdd3b5ef91f0b54fe96ef9258582fda1f.

However, original generic inventory-to-equipment admission0x10060510 reads ItemType76 and selects callbacks as follows:

ItemType76 Equip predicate Authored criterion selected
2 or3 Template virtual+0x60 ->0x10090970 action6
1 Template virtual+0x68 ->0x10090c70 action8

Vtable0x101729f8 contains these exact addresses. The ItemType1 branch does not inspect DefaultPos88 or distinguish HUD/utility slots from belt/deck slots when selecting the action. It then separately checks the location mask; destination7 additionally requires an empty deck, and6/8 have dual-wield checks. None applies an action6 fallback to the NPI.

0x10090c70 calls0x1008f990(8). If action8 is absent, it returns2 (allowed) when stat76==1; otherwise0. An existing but empty action8 also passes. A populated action8 runs the postfix evaluator. Thus belts check their authored action8 CL criterion, while NPI's ordinary native drag admission does not enforce its distinct action6 Intelligence criterion in this inspected path.

Effect execution action6 and admission criterion selection are separate. Calling TemplateAction6 to apply OnWear14 does not imply the admission callback evaluated criterion6. No historical server implementation was recovered; it may have additionally enforced NPI's authored6. If this reconstruction does so, describe it as an authored-data server policy stricter than the observed ItemType1 client admission, not as a recovered native fallback. The read-only investigation does not decide that server policy.

Focused evidence and source paths

All following IDs are in equipment-admission-evidence.json:

Procedure Evidence ID
Generic admission10060510 ev_c0637c99b0b32adec9081a8f14509f3804654ea2e9cd93dd3d5f6f96b556c2aa
ItemType1 predicate10090c70 ev_6c6e7cf16ed98f94de330fd62ea3fa90e8d3c8793ecf8c5c2312e4be1a622c0f
Wear predicate10090970 ev_b39bf01b97edb10774d7f9b36eb95985bd99930682b05bc3abae786cb1d49269
Remove predicate10090b70 ev_ed9d84578822f9c58f17853e16ad2964964fae2101bf442255f32c9a2a78f7ad
Exact action lookup1008f990 ev_00430073995bb4d63bbd1c04456eb6a22f58a66ae23357ecd7d9f19407b25fda
Vtable at10172a58 (20 bytes) ev_9bc43252823f8adb0d19f5da654bb172ab9d724b66197953ae09e5018ec159fc

Generated sources client/game/kkr.dll/lifted-0029.c:sub_36060510; lifted-0042.c:sub_36090970, sub_36090C70, sub_36090B70, sub_3608F990, sub_3608EDA0; lifted-0028.c:sub_3605DD60.