aorecomp

Anarchy Online classic in the browser

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


docs/belts-ncu.md (8704B)


Belt and NCU memory in 14.9.1

The initial verified fixtures are exact QL 1 endpoints from server/gamedata/items/items_001.yaml, native type 51022, ItemClass 76 = 1. Their catalog action 8 requires Computer Literacy 161 strictly greater than 5. Neither has profession restrictions or authored removal requirements.

Item Template Native placement OnWear modifier EquipDelay 211
Belt Component Platform Ti-100X 36783 Page 101, slot 7 BeltSlots 45 +1 7000 centiseconds, 70 seconds
2 - 3 NCU Memory 36779 Page 101, slots 9..14 MaxNCU 181 +2 1000 centiseconds, 10 seconds

The shipped records have payload SHA-256 values 5cefb7653517d67f673ffc1d9b67915d615dffc7b90f1ebc1c20ee17c4aa9d94 and 139d9af1a46a516558f0dea5f558ab345fad2b257faca1bbba46722db157da13. Historical 14.2.1 records corroborate the belt and memory. The memory's name describes a range across qualities; this exact QL 1 item adds 2 NCU. Other exact catalog belts and memories now use the shared stat-equipment path; arbitrary intermediate qualities remain unsupported. The sparse QL1/20/40/50/120/200 anchors differ in preferred slots and icons; period quality reports do not establish their pairing. See period evidence and limits.

Capacity and equipment rules

Original client defaults establish BeltSlots 45 = 0, used NCU 180 = 0 and MaxNCU 181 = 8. With no active programs the native display is therefore:

Equipment Enabled deck positions Used / maximum NCU
None None 0 / 8
Ti-100X belt Slot 9, Deck 1 0 / 8
Belt and QL 1 memory Slot 9, Deck 1 0 / 10
Memory removed, belt retained Slot 9, Deck 1 0 / 8

The memory's location mask is 0x7e00, permitting slots 9..14. Native validation also requires slot - 9 < effective BeltSlots. This one-slot belt therefore enables only slot 9. The server checks availability before beginning the move and again before committing it. Loading persisted inventory rejects memory in a disabled slot or without its belt.

Belt removal requires every slot 9..14 to be empty, regardless of the class of the installed item. The native client enforces the same rule for belt replacement. The server rejects occupied equipment destinations generally; replacing equipped items remains outside its current move support. Native replacement timing would add both source and destination delays: 140 seconds for two of these belts, or 20 seconds for two of these memories.

The client starts its equip timer and sends ContainerAddItem immediately. The server waits the authored delay once. A pending move leaves the saved item at its source; completion atomically saves the move before sending an acknowledgement or effects. Ownership, equipment combat restrictions, occupied positions and full ordinary inventory removal checks remain enforced. Unequipping does not require retaining the installation skill.

Computer Literacy is a persisted base skill. Resource 1000204/161 assigns all its trickle weight to Intelligence: [0,0,0,100,0,0]. The native initializer sets its default base to 5. New and older profiles missing the field use that client baseline; historical server character-creation values remain unproven. The recovered skill formula adds the ability contribution, while FullCharacter sends the base skill. In the fixture, Intelligence 10 plus base Computer Literacy 4 produces effective skill 6.

Server equipment bonuses are derived from the equipped inventory's unconditional OnWear Modify 53045 functions. Belt capacity, NCU capacity and AC use this shared sum. Totals are not persisted as another mutable balance. Maximum NCU is native baseline 8 plus the equipped MaxNCU modifiers.

Used NCU is distinct from maximum and free capacity: native buff bookkeeping adds or subtracts each program's NCU cost from stat 180. Active nano programs are not implemented by this milestone. Memory removal has no used-versus-maximum rejection in the recovered move validation, but the historical handling of existing buffs after capacity shrinks remains unresolved.

Native protocol and evidence

Moves use ContainerAddItem 47537a24. Installation starts from ordinary page 104; belt/deck removal starts from page 101. Destination 111 requests the first free ordinary position. Only ordinary slots are translated between saved 64..93 and native 48..77; equipment slots 7 and 9..14 keep their native values.

TemplateAction 35505644 action 6 executes the item's OnWear effects; action 7 removes them. Placement is page 101 and the actual worn slot. This differs from the catalog's action-8 requirement check. Utility items use these template effects and do not require a WeaponItem instance. Observer initialization sends the corresponding wear actions. The owner's FullCharacter already restores these effects, so it must not receive another wear action on initialization.

Original kkr.dll SHA-256: a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Addresses below use its original base 0x10000000; generated C uses 0x36000000. local/reports/belt-ncu-protocol-1491-evidence.json retains 26 REA records. Catalog, historical-page and skill-weight extracts are retained in local/belt-ncu-smoke/source-ledger.json and companion files.

Finding Original function Evidence ID
Default belt, NCU and Computer Literacy stats 10072760 ev_262150600e8d5205a324934ce17968bf1440814efc918e5344b3ad29103466e9
Enabled deck count 1005dc80 ev_b76f6a7a32b0606c40b7871a088238279a97cfac4ca46c11929755ee760f7350
Belt removal and replacement restrictions 10060510 ev_c0637c99b0b32adec9081a8f14509f3804654ea2e9cd93dd3d5f6f96b556c2aa
Owner equipment effect initialization 1005f150 ev_2f66eca0926b9507b6a9bc79113271eb694bd9260f2b79cc46fa35a57f2923c9
Equip delay sum 100628b0 ev_eca04975cbda45cb61403839b013e83355fd2635c09844a221e637a6b9ea84d2
Immediate move request 1002a1f0 ev_178142dff667fea800df25ab5ae2730e84892895651154915ea1bb29f35215d3

Verification

The maintained go test ./server/... -count=1 suite passed in 88.445 seconds. Focused race checks for belt/NCU, existing equipment, backpacks, stats and world initialization passed in 121.596 seconds.

Focused Go tests cover both requirement boundaries, persisted Computer Literacy and its missing-field default, real catalog delays, first-free removal, disabled deck positions, occupied equipment, unsupported item identities and qualities, interrupted installs, failed saves and invalid persisted deck state. The existing armor, implant and stack equipment tests also pass with the shared equipment bonus calculation.

The two-client Chromium WASM run is retained in local/belt-ncu-smoke/, with screenshots, packet excerpts, seven read-only native inventory snapshots and verification.json. It used the full 70-second belt and 10-second memory delays. The server retained each item at its source until its deadline. Native checks observed:

All seven item IDs and quantities matched saved inventory in the native heap. Projectile AC stayed 6, Melee AC 14 and attack rating 400 throughout; existing weapon, armor and implant slots were unaffected. A gesture aimed at disabled Deck 2 also triggered a request for the occupied preferred slot 9, so that gesture is not counted as direct native evidence of slot-10 server validation; the Go tests cover all disabled slots 10..14.

There were no client exceptions or adapter failures. The 29 connection-refused console messages were confined to the two intentional server restarts. All test-owned browser contexts, servers and native analysis sessions were closed. The temporary fixture binary was removed.