aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/nano-root-research/native/README.md (8994B)


Original 14.9.1 root and snare native consumers

RestrictAction53068 clears the actor's movement permission bit4. Removal restores it through balanced per-bit counters. Negative RunSpeed156 uses the ordinary modifier accumulator and subtracts the signed amount on removal. These native operations do not establish authoritative server threat or damage-break rules.

This is REA skill Step6 bounded static reuse. No fresh binary open/export, analysis session, runtime, server or production edit occurred. The earlier automatic approval rejection of a fresh open was respected without retry or workaround. Original target kkr.dll SHA-256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Original addresses use base10000000; maintained instruction lifts use36000000.

Complete retained evidence and maintained source

retained-evidence.json preserves complete matching original Evidence records, including provider limitations. provenance.json links each to an existing source bundle and its SHA-256. selected-functions.json and address-named text files are conveniences, not replacements for the complete records. sources.json gives exact maintained source/extract hashes and complete function line ranges. Maintained C is an instruction lift, not original source or a runtime observation.

Question Original procedure / complete Evidence ID
Gate/executor 100bfb40/100be8e0, ev_f28cc89d25d840908ea753e766d4e2d1a718ef5138b04f190e82062755593b1d
RestrictAction53068 100c17f0, ev_b36e6b8b14d9f960dd1705c8d5cd0779c3be3306d575aa456b07008bdb956f40
Permission counters add/remove 10059930/10059a80, ev_21b6bf56ea3b01fefafecdb673e392142538e12a995ac4070c4b8a8f1a26f59b
Permission initialization 10059770, ev_c6476a44ff6f2acef524789bf74ebddd3ea49bab979bdff76f495ac32a5de6b8
Permission query 10059ba0, ev_f120a1426717ed115aa79a77780cfb3668302f621243f5c5877df308e4523215
Signed modifier and inverse 100bd600/10074730/10074b00, ev_27c953512839b1cff0ac854ff041eb3e0813c2df061a8858060432f10da08405
Apply/remove177/65 10066010/10065b90, ev_a760dfc116df1dd38b0619334130d916b7706ee29c64a535cdef16ed448295a6
Follow steering gate 10048430, ev_437e76236c9b5d2a0d7dd122ca12b1ff620178cda1d2209666b42e29d1f39ab9
NPC follow consumers 1004af50/1004ba20, ev_1e75e2365d7f68786685da35877287cd6dc6aba5c507b06902338a1067098cc1
Server correction/follow message 1007e690, ev_8bcc339823b969bc5b5e36d6a434f625a11eee1b065ef8dcc4dfa51a8fc5cea5
53117/cf7d 100c2100, ev_74b850319e01a5d695961489586fe30fa511941488693d18d9ceb3bd4ce83148

Root activation, stacking and inverse

Gate100bfb40 admits53068/cf4c and executor100be8e0 dispatches it to100c17f0. The handler casts the recipient to SimpleChar and reads argument0x49 as mask. Normal application (instance+1c bit1 clear) calls actor+188 helper10059a80; inverse application calls10059930. The action177 add path uses normal mode; action65 removal checks active membership then applies inverse mode through the same common authored-function path. A duplicate removal does not inverse twice.

10059770 initializes32 signed-byte counters at helper+44 from existing stat224 permission bits: a present bit starts at1, absent at0.10059a80 decrements each selected counter and clears its permission bit when the result is<=0.10059930 increments and sets selected bits when the result is>0. Consequently two roots with mask4 take counter1->0->-1 and two removals restore-1->0->1. A simple toggle would incorrectly unroot after the first removal. Stat224 bit4 means permitted movement, not a positive rooted flag.53067/cf4b is the opposite activation pair. The byte-counter implementation has finite signed range; no overflow policy is recommended from this static convenience.

The optional positive argument0x19 selects an additional event1002ee20 with code0x40 for53068; mask is carried in the event payload. Typical inspected root contracts use ordinary permanent-for-nano-lifetime control plus explicit inverse. This pass does not establish an independent server restriction timer from that optional event mechanism.

Movement and native NPC routing

Original10048430 asks10059ba0(4). If absent, it returns the unchanged current vehicle position at+54 before ordinary movement/follow calculations. This is an actual native control consumer. NPC follow routines1004af50 and1004ba20 call it when a follow target exists (argument0/1 respectively), so the gate also reaches native NPC representations. Separate explicit path-guide branches exist; this bounded pass does not prove every NPC movement branch is blocked by this gate.

Original1007e690 still applies a nonzero received position through Vehicle::SetRelPos before installing follow/path information, with no permission query. It may clear/restart an NPC path through1004adc0, then10048260 stores the follow target and path triples. Therefore an authoritative Go NPC that keeps moving can continue sending corrections despite the native root. The server must stop its simulation movement and publish the appropriate stop/current-position state. Sending177 alone cannot establish authoritative immobilization. Remote position corrections are not evidence that the websocket wrapper buffers roots.

Maintained10088750 queries the same mask4 for a native status result1/2; unresolved actor returns3. Maintained10059a80 also emits vehicle event0x15 when movement permission becomes clear and the actor lacks flag0x20000;10059930 emits0x22 (and conditional0x18) when restoring it. The exact state-machine meanings of all these event codes are not established here.

Snare RunSpeed156

Gate admits53045/cf35; dispatcher calls100bd4d0, whose maintained lift simply checks recipient and forwards to100bd600. That original retained handler reads stat argument0 and signed amount argument0x27. Normal mode calls10074730; inverse calls10074b00(amount,0). The first adds the signed amount to an accumulator; the second subtracts it and deletes a zero accumulator. Thus a negative snare amount is restored by subtracting the same negative number, with no snare-specific ID branch. Both helpers invalidate/update the affected stat;156/0x9c also refreshes the attached vehicle through100480e0(1).

Maintained10047be0 reads effective RunSpeed156 and current/max HP before computing a movement scalar. This supports routing snares through effective RunSpeed, not substituting a hardcoded percentage. This pass does not recover original server NPC speed defaults, the complete scalar's constants/caps, or every NPC movement branch; the instruction lift is separately retained and not treated as original runtime proof.

##53117 and break stats remain server questions

Gate admits53117/cf7d and dispatches100c2100. The original full handler reads arguments0x78,0x79,0x27 and0xb, but discards these return values. It resolves caster identity from instance+10 and an NPC-marked SimpleChar recipient. It then calls the caster's10079880(targetID,0,0) combat/attack-permission helper and may emit local errors for missing or unattackable targets. On success it reads0x19 and returns. There is no magnitude-dependent threat accumulation, damage, victim retaliation mutation or random roll in this handler. The maintained full helper is retained as a separate source, not newly decompiled original evidence. The label TauntNPC is a catalog/community semantic interpretation; this client consumer does not prove authoritative server taunt math or threat switching.

break-stat-search.json records a bounded exact-immediate search of every maintained kkr.dll lifted file for385/386/422 (hex181/182/1a6). Hits are their zero initialization in10098600 and an unrelated exception-state ordinal1a6 in 10031700. No literal stat read, chance roll, damage/nano event binding or active nano cancellation consumer was found by this search. Dynamic accesses, other modules and original server behavior are outside its negative coverage. These stats must not be silently ignored to admit a supposedly complete root/snare contract. Their per-event trigger, chance denominator, whether misses/resists or periodic damage count, and cancellation ordering remain unresolved here.

Result and limits

Answered: native mask4 activation/inverse and stacking; concrete follow gate; server correction bypass; signed RunSpeed modifier/inverse; bounded53117 client consumer. Partially answered: every native NPC path and speed computation. Unresolved: original server taunt/threat policy, damage/nano/debuff-break probabilities and triggering events, original resistance algorithm using weighted Level54 plus NanoResist168, and all corresponding persistence/atomicity behavior. No production root/snare admission follows until the full server contract can be honored and tested. tmp_verify.py checks record identity, complete source-record provenance, selected decompile contents, maintained source/extract hashes and the bounded search sources.