aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/aggdef-nano-fist-clock-research/findings.md (5888B)


Fist clock 308/308: bounded retained-source explanation

The extra8 centiseconds is explained exactly by the native item's initial QL200 interpolation for the currently supplied fist pair. It does not require a startup-jitter explanation. The current server's fixed QL1 fist policy predicts 300/300; the current native representation predicts308/308. This identifies the source of the observed difference without establishing the canonical original-server fist-selection rule or proposing a timing change.

Observation and independent corroboration

Both retained captures, local/aggdef-nano-smoke/51-unbuffed-combat-owner.json and 52-unbuffed-combat-observer.json, show actor99 with Level54=200, effective51=-100 and effective120=0. Owner MartialArts100=0; observer's remote copy has MartialArts100=5. Abilities16..21 are all1, 51 and120 modifiers are0, and the active slot0 timer has attack308/recharge308. Their remaining values differ (about173 and13.1), as expected for snapshots at different phases. Those remaining values are not the duration fields.

The retained read-only weapon snapshot samples damage stats but does not sample item210/294 or its701 QL directly. It reports slot0 damage286=28,285=115,284=201 in both clients. All three independently match the same QL200 interpolation. observations.json preserves the complete actor observations and source hashes are in sources.json; no new native read was performed.

Native construction and interpolation

Current server/target_protocol.go:convertTargetPacket supplies players the row {43712,43713,100,1} after count2018. The last row parameter is unresolved and must not be called QL. Maintained lifted-0035.c:sub_3607B9A0 obtains actor Level54 through getter mode2 at0x3607B9E0..E4, masks its low16 bits and passes it as the requested item QL to sub_360F11D0. It loads the supplied template pair and map key100. MartialArts100 is not read to select QL in this path.

lifted-0070.c:sub_360F11D0 calls sub_360F0F50 at0x360F11EB. That function constructs both endpoints and calls sub_360F00A0 at0x360F10D0 with the requested QL. Interpolated stat processing reaches sub_360F0C80 and sub_360EFF20. For210 the0x360F0C8F..95 comparison selects0x360F0D07 directly. For294 the maintained client/data/kkr_dll.c:data_96 lookup at0x360F0DD0+(294-236) selects slot0, whose target is also0x360F0D07. That branch calls EFF20 at0x360F0D1D. native-constants.json preserves this decoded table result.

For increasing positive endpoints, EFF20's0x360EFF59..96 path returns:

lowValue + trunc((requestedQL-lowQL)*(highValue-lowValue)/(highQL-lowQL) +0.5)

The0.5 constant is source data0x36170464. The two original RDB endpoint records were freshly reparsed and compared in full with current YAML:

ID QL 210 /294 286 min 285 max 284 critical
43712 1 125 /125 3 5 3
43713 500 145 /145 65 280 500

Both author initiative selector440=120. Payload hashes:

At requestedQL200,210 and294 become 125+trunc(199*20/499+0.5)=133. The same calculation gives286=28,285=115 and 284=201, matching every sampled damage field in both captures. Complete raw endpoint definitions are in original-fist-endpoints.json.

Active durations and separate startup jitter

sub_3607AB40 reads item294 mode2, item440, effective actor initiative and effective51. sub_3607AC10 reads item210 and follows the analogous recharge path. With initiative0 their recovered calculation is simply max(100,itemDelay+75-effective51). At133 and51=-100, each is308. Constants75 at0x36171580 and minimum100 at0x36170888 are decoded from maintained C source data. No floating boundary lies near an integer in this zero-init case.

sub_3607AA30 first obtains those durations, converts them through _ftol, and passes them to sub_36052550, which stores attack at timer+4 (0x360525A5) and recharge at+8 (0x36052596). It initializes remaining+0 to attack, then AA30's 0x3607AA76..AB startup path changes only remaining+0 by:

remaining = attackCs +50 - trunc(rand()*attackCs*0.5/32767)

It does not add jitter to attack+4 or recharge+8. sub_3607AAD0 directly writes fresh _ftol duration results to+4/+8 at0x3607AAFC..FF, leaving remaining intact. sub_3607A940 iterates and initializes/stages these timers, with the wider holder effects already described by the retained active-refresh audit; it adds no fixed8 to the duration fields. Therefore the observed308/308 fields are not explained by the known startup jitter even though jitter may affect the remaining/first-hit phase.

Scope and limits

sources.json retains12 complete maintained functions, full source and excerpt hashes, existing report/document hashes and both exact capture hashes. Original kkr.dll identity is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0; maintained addresses are rebased from original0x100xxxxx to0x360xxxxx. Existing local/fist-selection-smoke/verification.json already corroborates this initial actor-Level construction at levels1 and100 and unchanged item QL when MA changes.

The selected captures do not directly contain item210/294/701. The explanation combines the complete current construction/interpolation source with three matching independent sampled item stats and both timer readings; it is not a new guest-memory observation of133. The current server-supplied pair is a reconstruction choice. Original-server MA-to-fist-QL selection, pair selection, caps, later dynamic updates and authoritative phase timing remain unknown. No inference about a generic nano admission defect or timer workaround follows. No tracked source/test/runtime/client/DB/preview/engine/session/export changed.