aorecomp

Anarchy Online classic in the browser

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


docs/ground-drops.md (10219B)


Ground drops: protocol and remaining ownership contract

The shipped14.9.1 help file anarchy-vanilla-14.9.1/cd_image/text/help/The Inventory Window.txt describes left-clicking a carried item, then the ground. The original Funcom manual also documents that gesture; a preserved copy contains it on printed page29. File-host publication dates do not date the original manual.

Original client evidence

The original anarchy-vanilla-14.9.1/kkr.dll has SHA256 a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. The complete sixteen-record REA bundle is local/ground-drop/original-drop-evidence.json.

Evidence IDs for producer/constructor/reader/writer/receiver are ev_fd00e28efeb10903b3642abe4727971f8927597cda303183ff85fc15364990eb, ev_0a269971f698621ae71a994d6cf789c2e4e7aff08926a639a7d43771a2a51bb1, ev_a5abd9e7bacd85724829c31c58b86a8f6f9e72c0b6e820261530d70be7d1db8d, ev_3dc2ec7106320282a0baad82b88f43f49f822fcba596536ccd4dc17b544f6436 and ev_47089a5d0d368b5dfffe3ad898f5d657a255ea672e624e742ad7725f47f13f12.

DropDynel payload and receiver

Registration100106c0 binds the exact DropDynelIIR_t name to factory10010640. That factory allocates0x34 bytes through constructor1007de60, whose vtable is 101716b4. Its reader/writer slots point to the same1007e0b0/1007e100 used by DropTemplate. The body is therefore20 bytes: identity type/id followed by three position floats. The census-derived message key is47483633; this is original artifact evidence, not a recovered historical packet capture.

Receiver1007ded0 resolves the enclosing actor identity at object+4 and the body identity at+0x20, then casts them to SimpleChar and SimpleItem respectively. If both resolve, it calls the item's virtual+0xd0 with the character, position at+0x28 and a zero final argument. Thus the body addresses an already live item; it is not an inventory page/slot substitute for DropTemplate. The effects of that virtual callback and the server's creation/notification order remain open.

Ghidra did not recognize1007ded0 as a function. Independent disassembly of its 108 original instruction bytes agrees with the maintained client/game/kkr.dll/lifted-0037.c::sub_3607DED0 translation. The fifteen-record bundle local/ground-drop-contract/original-drop-dynel-evidence.json retains registration, factory, constructor, vtable, RTTI and receiver bytes from the same original DLL. Key records are ev_45e656e20729cb6bb93ea59dae9a78e4193e6718f208f3f271e30e2c86948b45, ev_87318fda27c3585be544373e608a27aab10c8b0ea9435a3610cac47d3ea948bd and ev_2448bd7d4910829f35c3315b0e77ffdaf42082f6910957fa877c9b2cb8bcf3c3. local/ground-drop-contract/tmp_verify.py checks the DLL digest, record target, factory/vtable/reader links and original receiver bytes. A bounded period-source follow-up found no ground-item pickup-rights or lifetime rule; the manual's corpse-decay statement cannot establish either. Ground transfers stay unsupported until those rules, creation order and property preservation are established.

Native reproduction and refusal

An ordinary outdoor two-click drop at a controlled Parnassos checkpoint sends opcode3a243f41 with source104:48 and position [320.18747,0,191.76025]. The cursor clears and the pistol icon becomes hidden, but the unanswered request leaves server item1 owned at slot64: template123742, QL2 and three loaded rounds. Two other carried items and the five original world resources remain unchanged. The global high-water mark stays8.

The server now routes this request through authenticated inventory handling and decodes only an ordinary source slot. Unsupported ground ownership is refused with source correction and original feedback text. Known carried-backpack sources use their unchanged packed identity. The refusal does not move or delete the item, allocate a world instance or claim successful original dropping. Active trade/shop sessions retain the existing inventory-action cancellation policy. Zero-write regression checks cover standalone and pending-equipment refusals; they do not assert that cancelling an active draft performs no writes.

Indoor two-click and held-drag trials did not emit this request; the two-click trial left the item on the cursor. Those observations do not prove an original indoor restriction or a server-side loss. Full canonical ground transfers remain an open TODO alongside the immediate disappearing-icon fix.

Verification

TestGroundDropRefusalPreservesOwnedSourcesAndEquipment covers carried and open/closed backpack sources, a separate/admitted pending equip, foreign actors, unknown handles, invalid slots and worn-page refusals. Two repeats preserve ownership, selected qualities, loaded rounds, handles and deadlines with zero standalone ownership writes. Native source decoding tests preserve all position bytes at both inventory boundaries and leave packed backpack positions intact.

TestBrowserGroundDropRefusal sends two actual carried requests and a packed backpack request, then normally withdraws the retained pistol. Page and fresh server/WASM recovery preserve three owned IDs, the laboratory's three charges, the pistol's three loaded rounds, all five original resource placements and global counter8. The phases pass in 16.69/8.68 seconds under local/ground-drop/20261103-151542/ with six clean traces.

Related Go checks pass70roots/276results, focused race checks pass4/15, and vet and driver syntax checks pass. local/ground-drop/verification.json independently checks the failed original request, actual refusal packets, absence of success echoes, native endpoint pairs, exact physical ledgers and shipped-binary evidence.

Stale carried ground-drop sources

A completed controlled backpack deposit can leave an old carried icon visible when its refresh is withheld. Native two-click dropping of that icon sends DropTemplate104:48, but the server previously ignored the now-empty source. The client hid the icon without receiving a refusal. The pistol remained in its actual backpack; this was a stale-view defect, not a durable item loss.

For an idle owner and a valid empty carried slot, the refusal now sends action146 to cancel the pending source, then action112 to clear only that empty row, then the existing refusal text. It neither destroys the detached item nor changes ownership, creates a ground object or allocates an identity. Pending-equipment, foreign-actor, invalid-slot and unsupported-page guards remain in effect.

The focused handler check first failed with zero replies at both saved slots64 and93. It now verifies repeated cancellation/clear/refusal, exact cold ownership and zero checkpoint writes. Related focused checks pass5 roots/25 results; vet and driver syntax checks pass.

The added stale phase of TestBrowserGroundDropRefusal uses controlled ownership and withheld publication, not earned progression. Its original request timed out under local/ground-drop/20261103-204413/. The corrected run at local/ground-drop/20261103-204559/ clears the stale row, opens the real backpack and withdraws the same physical pistol through native input. Page and fresh-server recovery retain all three items, selected QLs, three loaded rounds, three laboratory charges, five original world resources and global counter8. The stale phase passes in16.11 seconds; ordinary refusal and cold phases also pass. All ten retained traces are free of client errors and dropped events.

Stale backpack ground-drop sources

The same missing-reply defect also affected a known backpack handle after its contents moved. A controlled move from bag slot0 to1 withholds its refresh; native dropping still sends packed source107:65536. The original server handler returns no response even though the pistol is durably owned in slot1.

The refusal now cancels a valid source in a known owned bag. If that source is empty and the bag is open, it also publishes current contents. A closed bag is not reopened. Unknown handles, foreign actors and positions beyond slot20 do not receive a correction. Repeated open/closed stale requests preserve exact ownership, handles and cold state with zero checkpoint writes. The focused Go group passes5 roots/28 results; vet and driver syntax checks pass.

The actual native baseline is retained in local/ground-drop/20261103-205035/stale-contained/. An earlier trial stopped before opening the bag and is not defect evidence. The combined verification run also hit this input ordering issue before exercising the new path; its ordinary and stale-carried phases passed. The final fixture opens/deposits before adjusting the camera and waits for the camera's mouse release to be consumed.

The targeted corrected run at local/ground-drop/20261103-205320/ passes the contained phase in15.72 seconds and fresh-server phase in8.45 seconds. Native refresh exposes slot1, withdrawal retains physical pistol1 with its exact QL2 and three loaded rounds, and page/cold recovery conserves the bag, three-charge laboratory, five original world resources and allocator8. All five traces are free of client errors and dropped events. This is controlled stale-view evidence; canonical ground-object transfers remain open.