aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/nano-death-research/wire.md (7716B)


Native death, resurrection and active nano state

Target: original anarchy-vanilla-14.9.1/kkr.dll, SHA-256 a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Read-only Ghidra 12.1.2 static analysis. No original server or runtime was observed. Existing admission snapshot was imported, then relevant new native queries were made. Production source was not edited.

Findings

  1. Death presentation does not remove active nanos. CharacterAction handler 1006fa30 action 99 goes to 10070327: it sets actor flag 0x10, assigns death animation stat387 from B.instance, and calls visual method10071460(1). Action153 goes to 1007035b, calling10072340 with B.instance as death reason. That method prints the local-character death/reclaim text and sets HP27 to zero. Its stat setter1006e030 does not clear active nano state. Neither action has a program-flag-dependent active-buff purge.

  2. The death visual clears the casting queue, not active effects. Death state constructor10085d60 first stops the weapon holder if necessary, sets death animation/sound/UI state, then calls10066ea0. This last method walks nano-controller+0x18 (its casting queue), cancels timers via10065420, erases queue nodes and clears actor casting flag0x80. The persistent active nano list is controller+0x14 and is not traversed or erased here. Confusing these adjacent lists would incorrectly suggest an automatic buff purge.

  3. Explicit action65 remains the established active-effect removal. Its dispatch invokes10064ee0(B,0,1,0). The latter checks active membership for (53019,B.instance) before subtracting NCU180, removing the local icon, and invoking10065b90 to remove effects and the active record. Repeating the same 65 cannot subtract NCU/modifiers a second time. Direct caller inventory of 10064ee0 is only10066010(add/replacement) and1006fa30(action dispatch); 10065b90 has only caller10064ee0. This is bounded resolved-static-call coverage; unknown indirect callers are not thereby proven absent.

  4. ResurrectIIR does not replace that removal. Its constructor10080dc0 installs vtable101718d0. The activation pointer is10080e20. Exact original bytes and objdump show activation assigning its two serialized DWORDs to HP27 and nano214, then calling10053230. That method handles local reclaim, resurrection shock247 at level>15, UI, visibility and movement state. Its reclaim1005fa40 examines inventory slots48+, not nano records. No active buff list clear or death-persistence mask appears in these inspected paths. Ghidra did not define10080e20 or10080e90 as procedures; preserve that limitation rather than treating generated C as native decompiler evidence. resurrect-activation.objdump.txt independently decodes the original bytes.

  5. Drain pending weapon outcomes before authoritative HP correction. Stop activation100842f0 calls actor+0x16c virtual+0x44(1), the established holder stop10079250. That stop drains pending result rings through100ab5a0 before clearing the opponent and attack state.100ab5a0 subtracts each queued damage amount from current HP and invokes death-reason handling when the holder stores one.1007a660 may also force immediate drain if the attacker's corpse flag0x10 is already set or the holder is idle. A preceding absolute HP snapshot can consequently be damaged again by a queued result. The native handler100b0a50 for quiet HealthDamage writes absolute HP directly, with separate signed-change/death-reason fields; it is suitable after draining.

Integration inference and remaining unknowns

For the currently supported pure ability Modify buffs, removal is server policy: durably remove the chosen records, cancel future swings/casts, send StopFight for existing combatants to drain already-announced outcomes, send recipient-envelope action65 for each removed program, then resource maxima and any final quiet HP0/nano clamp, and death presentation. Keep ordinary weapon/nano lethal result delivery consistent with the existing combat path. Do not add ApplySpells or a second stat modifier removal alongside65. Send65 to owner and observers representing that recipient; only the owner gets the icon UI. On actual return, ResurrectIIR supplies the resurrection resources. The exact packet interleaving remains an integration inference to test in published WASM with a pending weapon result, because static analysis does not establish the original server's ordering or runtime frame timing.

No historical server death-persistence flags were established. The client does not select a death-persistent subset in the inspected99/153/death-state/ resurrection paths. It can represent whatever subset the server preserves or removes using65 and replay. Therefore, this evidence supports implementing explicit cleanup but cannot alone prove which programs the14.9.1 server removed, when offline timers advanced, or any later expansion exception. The supported ability program catalog flags should not be reinterpreted as death rules without separate target-era evidence.

Evidence index

Complete wire-evidence.json:96 retained records,13757250 bytes, SHA-256 46252732faf02248ca88262661d4d7073d0853215ff3a05708311fbd1d16515c. Some records are reused admission snapshot entries; all retain artifact and analysis-profile identities. No unknown records in the export does not mean the historical policy questions above are resolved.

Subject Evidence ID
CharacterAction dispatch including65/99/153/177 ev_b07ce717ef6e92588539cb41d7136436d3b1bbfd35695c7639a4947c1f518cf7
Death-reason handler10072340 ev_04b785e8d2d8a4995401604dd0351b58a12bad1aecd5f55ffee13373ce8ceeac
HP/stat setter1006e030 ev_a4eae5511486116cd3c919e0043b89887a08d2f1db7fdd184e021803ae77bb7b
Death visual10085d60 ev_7f991d40b7f085663b59c9e4b5ebb5fe2a56fb8ad9362677a08b83504d6ef76e
Casting-queue clear10066ea0 ev_7b4a27ace2b310e60dd6122ebb3744c9a45505d2a9b7ff75ee22cfb756a2d940
Cast timer cancellation10065420 ev_c21a26014b6e563fbfaa8c282f07dcd455eb0d3a6fe829c892f90fff430f1cc0
Active membership/NCU removal10064ee0 ev_78db76b2b885e2743bedb33ec9c11de4507c645ad456c0951a4c51edb0ff3180
Active modifier/record removal10065b90 ev_244d42145a9762256a226661adc74465971930a80fd72c1ef4dc762611467de7
Active-record-remover caller inventory ev_d51d296485f8cb2f637924d0bd58366a4d1ec5972e8a77f413b881bbfae02da6
Resurrection constructor10080dc0 ev_0b6bd225196daaa2ef362b71862f67e72aa3d936e2ed68f42888c432e8bbb557
Resurrection vtable101718d0 ev_5d124ff6cb12e38c06b662d9aa7b2f86516744c320e21075000915615de996a4
Resurrection activation exact bytes10080e20 ev_743e7c347dce8d55943c4adfa5d0412023d6a5551f4b4d3b1607c40676afc17f
Resurrection activation unavailable as Ghidra procedure ev_7bf6630d94dcc5d56e417fa3db2ee82edbd79e129d1d62ca97635af741534cd9
Resurrection method10053230 ev_0a97b716e9b2e3943a91942937a68c3d5a9e8515f91a4b7b1be8e69bd09de170
Reclaim1005fa40 ev_b0ee3cfc9b02e9056884667f4a5082688796aa45faaf1d4e5725a10386c580d1
StopFight activation exact bytes100842f0 ev_86b63f934f2be5c6d81c71a2b5f90295d750a7f7c06a33db82518a5eae46256b
Holder stop/drain10079250 ev_afd195b48995cd70d43bb2504ce109e10c38211ed2060553cd6f7680604e31f8
Pending result consumer100ab5a0 ev_04d595c32db19eaf94e17c9aed01711425c70a290b867d43817b798423bdb693
Result queue ingress/forced drain1007a660 ev_8e823c84d91132cd52602d061e60cc83a3386e85b9cd0ece2c9c853290c5f4c3
Quiet absolute HP handler100b0a50 ev_95eb9c9e6fc45e464baa0509ab5f3c4402832683a3cb1365ca385ad9d88f5a4e