aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/ice-flechette-research/native/README.md (14400B)


Ice Flechette child delivery, original 14.9.1

The parent cast does not apply child 144632 locally. A separate active-program delivery to the target can apply the complete child exactly once. Parent 18/107 handles casting/recharge; target177 handles the child modifiers, active record, icon and visual. No extra ApplySpells or second modifier delivery is needed. This is a native consumer contract, not a captured original-server trace.

Read-only REA skill Step 6 follow-up using retained complete Evidence and maintained generated sources. No new binary open, snapshot export, runtime, DB action, production edit or REA session occurred. The earlier automatic approval rejection of a fresh native open was respected without retry or workaround.

Identity, artifacts and evidence

Original anarchy-vanilla-14.9.1/kkr.dll SHA-256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Every record selected in retained-evidence.json identifies this hash. Original addresses use base10000000; maintained generated C uses36000000. The generated sources are instruction lifts, not original source or new REA Evidence. sources.json preserves their exact ranges and source/extract hashes. provenance.json links complete reused records to their retained source bundles. Address-named text files are extracts; the full record remains authoritative.

Finding / original procedures Complete retained Evidence ID
CastNano gate and executor 100bfb40, 100be8e0 ev_f28cc89d25d840908ea753e766d4e2d1a718ef5138b04f190e82062755593b1d
Empty ATR_t::AddSpawnedIdentity, 1000c340 ev_21b6bf56ea3b01fefafecdb673e392142538e12a995ac4070c4b8a8f1a26f59b
Parent completion 100654a0 ev_4454e12e69f0ac994b39f2628681f4ea8b1c62dfb507addeb5761df50b4ce819
Parent completion original assembly ev_ad186f0988b9d48e0d36a6de81f40306e742582852c898a26e8313e9077ed6f8
Modifier execution/add/inverse 100bd600, 10074730, 10074b00 ev_27c953512839b1cff0ac854ff041eb3e0813c2df061a8858060432f10da08405
Active add/remove, action177/65 10066010, 10065b90, 1006fa30 ev_a760dfc116df1dd38b0619334130d916b7706ee29c64a535cdef16ed448295a6
Add original assembly ev_86e17289b115cdde8ecfc9574a926b958c070428196b47bcdbcb9a1a17d21144
Removal 10064ee0 ev_fd418e8113e0801a8672f3678b360186cf1bfd74a85b261dce39b79eade66941
Strain/NCU replacement 10066c80, 10066d40, record 10065ac0 ev_c3c599190c5c536182443fd9804afc7109d4a067408ab38953ed2717671edb89
Record duration original assembly ev_dbbcdc0a8339f2423c88e365d0d4a0e709e4f08cb2695c26780e6f053d3aa907
Character duration default 10072760 ev_c1327f6eacdaca324e36fd5e618006bce7107e2aad71580185e614a178fe34d9
Native hostile cancel gate 100232a0 ev_442db1232e93ae629395f4024821f61c4c9f8abe849fd3a69875e37073d62f6a
Death state 10085d60 ev_7f991d40b7f085663b59c9e4b5ebb5fe2a56fb8ad9362677a08b83504d6ef76e
Death clears cast queue 10066ea0 ev_7b4a27ace2b310e60dd6122ebb3744c9a45505d2a9b7ff75ee22cfb756a2d940
Death dispatch99/153/65/177 ev_b07ce717ef6e92588539cb41d7136436d3b1bbfd35695c7639a4947c1f518cf7
Active-remover caller inventory ev_d51d296485f8cb2f637924d0bd58366a4d1ec5972e8a77f413b881bbfae02da6

Parent and child authoring

The complete previously retained decoded catalog documents are copied into catalog-records.json. Their original payload identities are:

Resource ID Payload SHA-256 Original file offset
Startup crystal1000020 28815 5720cacb5d62ac0ca74435a79749598d59b910be4be0cf14565b32e0d8924d98 65056340
Parent nano1040005 28612 d3c582425ee42a26d8e997730685160b3bba148aeeb1784b9cfafcb249e0497d 91564336
Child nano1040005 144632 2468d892714587cda36f453b19b3cdbd501eff2ee06bc05b395b1fcbb0bcfdcc 69240919

Crystal28815 uploads28612. Parent28612 OnUse contains Hit53002 [27,-13,-17,95] and CastNano53051 [144632], both target3/count1/interval0. Child144632 has flags80018000 (BuffNano10000 and hostile8000), QL/NCU54=1, TimeExist8=6000cs, FX413=1141, school405=1, attack294=1cs, recharge210=1cs. Its four target3/count1/interval0 OnUse Modify53045 functions are:

Stat Authored signed delta
NanoInit149 -6
PhysicalInit120 -6
RangedInit119 -6
MeleeInit118 -6

The decoded catalog is generated evidence from the original resources; this task did not re-open or reparse the original resource database. Source locations are server/gamedata/items/items_000.yaml:32611, items_166.yaml:51451, and items_171.yaml:2295.

Why parent finish cannot double the child

  1. 100654a0 is the normal queue transition after action18 and107. In original 100656d0..100657a2, a SimpleChar target has a nonzero Beholder pointer and jumps past action4/action0 execution. The execution calls are in a SimpleItem fallback. This applies to NPC and player SimpleChar targets, independently of their local-character byte. See local/nano-buff-research/admission.md and maintained client/game/kkr.dll/lifted-0030.c:7762..8372.
  2. CastNano53051 is cf3b. The gate100bfb40 explicitly admits it, unlike Hit. The executor100be8e0 case cf3b calls the exported name ATR_t::AddSpawnedIdentity at1000c340. This shared function is empty: the maintained instruction at3600c340 is ret 8 (client/game/kkr.dll/lifted-0004.c:372..385). Its export name must not be interpreted as an implemented local child cast. It neither sends a request nor calls10066010, reads144632, or mutates a stat.
  3. Parent28612 lacks BuffNano10000. Sending a fabricated parent177 would not turn it into the child's active effect. Use the authored child identity.

Thus even invoking the admitted CastNano effect directly through the common executor would not apply the child on this client. Historical server CastNano handling is absent; a separate server result must establish the child state.

Concrete child177 delivery and negative modifiers

Use recipient envelope (50000,targetID) with the ordinary CharacterAction body, all DWORDs in normal big-endian wire order:

action = 177
A = (53019, 144632)
B = (casterCharacterID, 6000)

1006fa30 constructs caster identity (50000,B.type) and calls 10066010(A,B.instance,1,1,casterIdentity,1). The add method loads the child by ID, applies its action4/action0 containers in addition mode, creates one active record and visual, and notifies the local recipient icon. It does not run a new casting queue or use child attack/recharge stats. Child18/107 is unnecessary for this proven active-effect delivery path. Historical server send choice and interleaving are not established by the consumer dependency alone.

Modify53045 (cf35) is admitted and dispatches100bd4d0 ->100bd600. The latter requires a SimpleChar, then updates its helper atactor+154. Addition mode calls10074730, whose map value is signed oldValue + authoredDelta. Removal mode calls10074b00, whose value is signed oldValue - authoredDelta. Therefore add -6 reduces each stat; removing -6 restores +6. There is no clamp, sign reversal, owner-only gate or player-only subtype check in this mutation path. The local byte is read later for feedback. NPC and remote-player SimpleChar representations receive the same modifier arithmetic; only the owning player gets the active-program icon. Final effective-stat behavior uses the existing stat system; this pass did not infer a new server combat/timer formula.

Do not send an additional ApplySpells, matching snapshot active record, or separate modifier packet along with177 for the same installation: those are additional application routes. Ordinary parent18/107 is safe because it does not execute the child's effects.

Defaults, NCU, strain and duration

Omitted raw strain75 defaults to the program ID, not zero. This is an instruction-lift finding rather than an independently retained constructor decompile. Loader100b4000 creates a nano object with (53019, programID) through 10098540 before loading resource1040005. Constructor10098540 stores the ID at object+84 and calls10098600. Initializer100986a1..ae loadsobject+84 and writes that value to stat75. The later catalog has no75 override for144632. The effective default strain is consequently144632. Sources:

The same initializer defaults duration8 to1000cs and NCU54 to1, but this child explicitly authors6000cs and1. Hostile8000 causes10066010 to skip increasing usedNCU180, and10064ee0 to skip decreasing it. Neither MaxNCU181 capacity validation nor a player/monster distinction is introduced by these consumers. The local removal request100232a0 rejects hostile buffs; that UI gate does not block an authoritative incoming65.

The inspected ordinary client admission/completion/add chain contains no MaxNCU181 versus usedNCU180 capacity comparison for friendly or hostile nanos. It therefore does not establish original-server NCU admission policy. In particular, hostile usedNCU suppression is directly proved, while a server-side rule requiring spare NCU for hostile children is not proved here. The child177 consumer does not run the parent cast admission checks at all. See retained local/nano-buff-research/admission.md, NCU capacity and replacement section.

177's duration is its explicit unsigned B.instance; zero returns without application. It does not substitute program TimeExist8 when duration is zero. For6000cs, the visual receives60 whole seconds. Active-record10065ac0 computes both duration fields as trunc(recipientStat464 * durationCs * .01), proven by original10065b08..2b assembly; the decompiler omits the arithmetic. Shared SimpleChar initializer10072760 sets464 to100, so default record duration remains 6000cs. A nondefault recipient464 multiplier can alter it. Do not silently multiply both server and client duration; exact original handling of nondefault duration modifiers is unresolved. Server expiry remains authoritative.

Refresh, stacking and removal

10066010 reads effective strain75 and NCU54, then10066c80 searches the recipient's active list for first equal-strain program with existing NCU <= incoming NCU. It removes that record/effects before adding the incoming one. Same child/strain144632/NCU1 therefore refreshes the duration and restores then reapplies each -6, yielding -6 rather than -12. The native add uses NCU54 for this ordering even for hostile effects whose usedNCU accounting is suppressed. Strain priority551 and FX413 are not compared in this path.10066d40 detects a same-strain existing program with higher NCU in ordinary cast admission/finish; incoming177 itself does not call that rejection predicate. Server acceptance remains necessary, rather than treating177 as a request to validate.

Remove using recipient envelope (50000,targetID):

action = 65
A = (0, 0)
B = (casterCharacterID, 144632)

Dispatch calls10064ee0(B,0,1,0), which reconstructs program identity (53019,B.instance) and checks membership.10065b90 then invokes effect-removal mode, terminates visual, and erases the active record. The inverse modifier operation subtracts -6. Membership makes repeated65 unable to subtract twice. B.type contributes possible caster termination feedback; it is not part of the active membership key. Owner receives icon removal/termination text; NPC and other actors still lose modifiers/visual and active record. The hostile flag continues to suppress NCU180 subtraction.

Countdown reaching zero does not itself remove modifiers in the inspected active-list code. Retained caller inventory bounds10065b90 to10064ee0, reached by replacement/add and action dispatch. Send an explicit65 at expiry or other authoritative removal. Unknown indirect callers are not proved absent by this resolved-static caller inventory.

Death and replay boundary

Death actions99/153, HP0 setter, and death-state10085d60 do not erase the active list. Death clears nano controller+18 (cast queue) via10066ea0, while persistent active records are controller+14. Therefore NPC and player visual death is not a substitute for65. Native hostile/buff flags in these inspected death paths do not choose persistence or purge policy. See docs/research-notes/nano-death-research/wire.md for the complete bounded death proof and resurrection limitations. Exact original-server Ice persistence-on-death policy is unresolved; any server decision to remove must be explicitly represented.

Spawn snapshot restoration10066dd0 also calls10066010 with add-record=false, restoring modifiers once for the serialized active record. Use either that active snapshot representation or177 replay per installation, avoiding both. The parent cast queue can be absent while a child active record remains.

Checklist and limits

Question Status / confidence
Parent finish locally casts child? Answered no, high: original completion assembly plus empty CastNano executor
Separate child177 works? Answered yes, high: complete original active-add/dispatch records
Negative modifiers on NPC/player targets? Answered, high: SimpleChar cast plus signed add/inverse arithmetic
Child NCU/duration and omitted strain Answered, high; omitted-strain default supported by maintained instruction lift, not new native decompile
Same-child refresh and explicit65 removal Answered, high for native consumer behavior
Automatic expiry/death cleanup No cleanup in inspected paths; bounded static finding, not universal indirect-call proof
Original server timing, secondary resist roll, admission, death persistence Unresolved: no original server implementation/trace
Actual WASM integration / ordering test Parent scope; no runtime action performed here

The concrete minimal consumer path is parent18/107 plus its separate HP result, and one target177 for child144632, followed by explicit65 on authoritative expiry/removal. Ordering among damage, child installation and parent completion is a reconstruction decision to verify in runtime; this static pass does not claim a historical packet capture.