aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/shop-live-purchase-research/native/README.md (7513B)


Live shop purchase delivery in original 14.9.1

Read-only static follow-up, 2026-10-25. Reused complete REA records before inspecting maintained generated C. Original KKR SHA-256: a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Original addresses below use base0x10000000; generated KKR uses0x36000000. No production, DB, browser or server actions. No REA session opened successfully.

Answer

A new live weapon or backpack can be delivered with ONE appropriate subclass FullUpdate, parent (50000,owner), real outer identity (51018,itemID) or (51017,itemID), page104 and slot111. Do not first send AddTemplate for the same item: that creates a separate proxy row, then111 selects another free slot. An explicit-slot FullUpdate alone does not create a row in an empty slot.

The supported composition is durable purchase commit, Trade Complete3, then one new typed FullUpdate per count-one live item, in server first-free-slot order, then authoritative cash as needed. This composition follows observed native operations; exact historical purchase ordering and actual purchase runtime success remain unobserved. Period shop membership is a separate question.

Row creation and identity: observed original evidence

Parent attachment100b25c0 attaches the dynel to its character and calls10063340. That function reads item stat220 (placement slot) and stat55 (page):

Evidence in live-delivery-reused-evidence.json: ev_9fab4fbc5cd930032d5fb4ae3d31570b6b63d3b3ebe70ba4a53a57fe762beeec, ev_8565b1dc163d3baca6f7edaba73ba92601f92e2a4b9a5d6dbabcd06474e60fdc.

Row creator1002d870 allocates32 bytes, sets flags0x22 and count1, copies the actual type/ID from item+0x90/+0x94, reads QL701/low702/high703, retains QL low16, substitutes low when high0, and installs through1002db10. Count is always1; N purchased live objects require N durable IDs and N messages, not one message with a quantity stat. Native first-free search1002d210 returns-1 when full; capacity must be checked before committing and sending the grant. Evidence ev_6e9238bdd15df500e6381e1dfc7d605c86f3881888c5c8824074b6a5fb0b54b1, ev_659d032fef98973ce37dd53c9a902729d0d6247c5bfceb5aef22dcd0698b594d, ev_8a79ec83e7157a3eb923b942f4e96cff697bd171a48122cc9e4804e5dfccb3db.

Typed message bodies and factories

Both bodies start with SimpleItem11: u32 version11; parent type/ID; playfield; auxiliary identity0,0; byte page104; byte slot111; encoded stat pairs; u32 extra blob length0. Send explicit stats23=staticTemplate,701=QL,702=low,703=high to preserve the authored selection. Four pairs use token51009. Include durable weapon Energy26/ammunition where relevant; five pairs use61009.

SimpleItem reader100b2440, setup100b2830 and attach100b25c0 are retained: ev_b5f02e19265a6b57a350cc5736417f0c4804fec484212d5629b81963c64a9c2f, ev_06a54a4e5296f634115da21462e98d97fe0b90e53de27c2fd3929a4f555f9c85. Setup loads stat23's template, sets page/slot, applies streamed stats/endpoints and executes OnActivate. It does not imply all OnWear effects are applied.

WeaponItemFullUpdate, key0x3b1d2268, outer (51018,itemID): body ends at SimpleItem's extra-length0. Generated reader100b3840 delegates to100b2440 and checks stream state without an additional suffix (source cross-check). Registration10011200 -> factory10011180 -> message ctor100b3720/vtable10174e70 -> activation100b38b0. Setup100b3870 requires WeaponItem and delegates100b2830. Activation requires absent item identity, correct type51018 and existing playfield; existing identities are ignored. Constructor cross-check100b37c0 calls WeaponItem constructor100aba20. Evidence ev_9a64af19c208580a03b460c675f562e2c7153ee9ba1118ae45457540018bb8f9, ev_c299ae84c450860816c69773a42ae48beef33c3b2c6caf3b8265d1fb001d3e0d, ev_e7ff52865839248f305df5322c3b5ddd1f0b8c2666ad39d9ce69b56c4e2c17a5, ev_6ad357ca30912f7fdb800917d4ad31823cfef2a1722a3a1c335b0e528b4b13fd, ev_2552f0c6f7bbaad61c7846a542aff9457f58b45192eddf5272feb1aa1fd8a02d.

ChestFullUpdate, key0x465a5d73, outer (51017,itemID): append u32 Lockable version2, lock value0, identity-list token1009, Chest version3. Reader100af210 calls100b1030/100b2440. Activation100af370 requires an absent identity and type51017. Its ribosome constructor100af190 allocates the Chest through1008b3b0, and setup100af340 calls100b10a0 ->100b2830. This creates the live Chest and owned row without opening its contents window. InventoryUpdate is for separately supplying/opening Chest contents when requested. Evidence ev_275528c4a10136c1a2de368bd4bdbb1c2bf5c0b29f946a68808e609e47d9218d, ev_5054d5c7cc5fa44ad12e08e8a8dabde36e9fae35724b1764dd21bd79233f1b7e, ev_9dbcdb537349dfe20e0eb7ad48bbe6c4805a08f6df965abea4736ec0899bb28c, ev_e5da0c7194f51f3cb248dc74da29b6039ee9e4a89ecf22a9742cd7d8dee07029, ev_a2c1003de0628c15e6256a09c71d0300086536c5b99d8ba8282ddc996d965a05.

Generic SimpleItemFullUpdate is not established as a substitute for either subclass. The generated-source constructor100b29c0 handles two special types and otherwise calls SimpleItem constructor1009c3c0, not WeaponItem100aba20 or Chest1008b3b0. Complete source snapshots and hashes are in source-provenance.json; this is a source cross-check, not a fresh REA result.

Existing constructors and converter hazard

server/equipment.go:equippedWeaponPackets supplies the correct Weapon body shape, but hardcodes equipped page1/slot6 and omits explicit endpoint stats. It cannot be reused unchanged for inventory grants. server/backpacks.go:backpackPacket already supplies the Chest body and endpoint stats; use grant slot111.

At inspection, server/target_protocol.go Chest case subtracts16 whenever page==104, without checking the slot range. Passing111 would become95 and skip row creation. Preserve111 explicitly or limit conversion to shared ordinary slots64..93. Weapon delivery needs equivalent ordinary-slot conversion only if using an explicit shared slot;111 must remain111 for both typed messages. These are implementation observations, not original protocol evidence.

Limits and provenance

live-delivery-provenance.json points every copied complete record to its prior export. tmp_live_delivery_collect.py checks the exact original target hash; tmp_validate.py checks every README Evidence ID. Existing shop finalizer analysis remains docs/research-notes/shop-purchase-research/native/README.md: Complete clears staged sale rows and machine selections, with no purchased-item allocation loop.

The composed delivery needs native runtime validation: no AddTemplate duplicate, correct first-free slot after sales, real subtype/ID/QL/endpoints, immediate wear/open/transfer, multiple purchases, reconnect and repeat Accept. No historical server sequence or durable schema is recovered here. Generic FullUpdate subclass creation was source-cross-checked; a fresh REA query was blocked by automatic approval review on potential binary/snapshot export. No connector workaround was used and no owned analysis session remained open.