aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/damage-nano-research/native/README.md (10619B)


Positive damage and weapon-range nano consumer audit

Read-only review of retained original14.9.1 evidence, maintained lifted C and current Go producers/consumers. No binary was opened, no REA session/export was created, and no native/game/browser/server process or request injection was used. No tracked file was edited by this independent scope.

Original target identity is anarchy-vanilla-14.9.1/kkr.dll, SHA256 a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Every selected original record in retained-records.json binds exactly that identity. Original10000000 addresses map to maintained36000000 by adding26000000. source-hashes.txt fixes reviewed current sources and pre-existing records; tmp_audit.py reproducibly selects unchanged existing records. These files create no new original EvidenceID.

Generic modifier application and inverse: answered, static native evidence

Original53045 Modify passes through100bd4d0 to100bd600. Original53012 Skill uses100bd600 directly. Stat argument key0 and signed amount key39 pass through 10074730(add) /10074b00(remove). The former increments the selected modifier row at100747b4; the latter subtracts at10074b47 and writes at10074b49. Neither handler rejects278,279,280,281,282,311,315,316,317 or380. These IDs use the same ordinary temporary additive balance and inverse lifecycle as existing buffs. They do not rewrite the base/trained foundation. Stat-specific notifications following the generic arithmetic do not replace that arithmetic.

Common original evidence is ev_27c953512839b1cff0ac854ff041eb3e0813c2df061a8858060432f10da08405, retained unchanged as shared-modify-record.json from local/reports/combat-client-decompiles-21.json. Matching maintained bodies are lifted-0056.c::sub_360BD4D0/sub_360BD600 and lifted-0034.c::sub_36074730/sub_36074B00. Skill's opaque key24 is serialized by100b9aab/100b8039. Existing full census in docs/nano-skill-buffs.md and local/critical-nano-research/ establishes all1387 Skill calls across297 original programs have zero here. Preserve the complete four-byte-zero gate; generic numeric support does not establish a meaning for nonzero opaque companions.

Signed getter/add/remove original assembly IDs in docs/research-notes/signed-stat-research/ledger.md remain applicable:

Stat identity and weapon consumer boundary: answered with limits

Original10031700's names, original evidence ev_98e4abebdc945ad44f630f266643a271f9826c40b98314ddfc955b1513b1e525, identify these modifiers:

ID Exact named identity Existing selected weapon damage type
278 ProjectileDamageModifier 90
279 MeleeDamageModifier 91
280 EnergyDamageModifier 92
281 ChemicalDamageModifier 93
282 RadiationDamageModifier 94
311 ColdDamageModifier 95
315 NanoDamageModifier 168
316 FireDamageModifier 97
317 PoisonDamageModifier 96
380 RangeIncreaserWeapon weapon range percentage

The315 name is a stat identity, not proof that direct or periodic53002 Hit nano outcomes receive a flat bonus. The already reconstructed weapon path maps weapon DamageType168 to315. Keep that bounded existing consumer and include an admitted nano contribution there. Do not add315,278..317 or AC reduction to server/nano_damage.go from labels or this audit. Client normal combat outcomes do not recover original server arithmetic. Existing flat-addition ordering after AR/AC is contemporary reconstruction documented in docs/combat-equipment-modifiers.md, not proved anew by the client name table.

At the reviewed source, weaponDamage adds only attacker.equipmentBonus(modifier) after its existing AR/roll/AC floor. The missing ordinary consumer is adding attacker.nanoBonus(modifier) there. This naturally covers fists, normal/special weapon outcomes and criticals that already call that same function. Preserve existing damage-type validation, minimum/critical/OE order, outcomes, XP, threat and transaction handling. A pure nonmatching damage modifier does not change a hit; for an invalid weapon type the existing projectile fallback must choose both AC and modifier.

A separate actor stat339 override is read by original100ab5a0 at100ab5f2; when nonzero and accepted by100aae70 it substitutes the damage type at100ab60d. Evidence ev_04d595c32db19eaf94e17c9aed01711425c70a290b867d43817b798423bdb693 is retained unchanged; current body is lifted-0050.c::sub_360AB5A0. Current Go weapon selection has no339 consumer. Exclude full programs carrying an unsupported type-changing function/stat until its complete semantics are implemented. This client presentation path alone does not prove every original server override ordering, multiple override interaction or fists behavior.

Weapon range: answered, exact original signed/float/cap order

Original100aae10 reads weapon287 and actor380(mode0/effective). It computes signed32-bit product first (imul100aae42), loads signed product into x87 (fild100aae48), multiplies originalfloat32 at10170894 (fmul100aae4b), then adds original signed weapon range (fiadd100aae51). Conversion through_ftol at100aae54 truncates towardzero. Only afterward, signed comparison at100aae59 caps values above40; there is no lower clamp or intermediatefloat32 store. Original constant bits3c23d70a are0.009999999776482582. Original assembly ID: ev_caffa5ac96df90e71084d5f068e035270b37d97a28beb95abb889dd010d2527d; maintained lifted-0050.c::sub_360AAE10 matches this order.

The existing Go combatInRange_locked reproduces this, including signed multiply and float32constant promoted tofloat64 before add/truncation, but reads only equipment380. Sum equipment380 plus nano380 BEFORE multiplying. Do not adjust the range once per contributing effect:22 withtotal50 yields32, not33;22 withtotal5 yields23;10 withtotal10 yields10;22 withtotal100 caps40. Keep extents afterward and the negative-distance guard before squaring. The existing nativeLinux/WASM range fixture and public boundary tests are useful regression coverage; the new nano path needs its own boundary/replay tests.

Equipment OE isolation: answered, bounded static caller coverage

Original10062f80 visits worn slots16..31;10063130 selects each item's event14 Modify53045 functions and changes old/new adjusted item deltas. It does not multiply the final actor modifier balance and does not iterate active nanos. Thus a worn OE-adjusted addition and a nano's full addition coexist in one map. For this group, the100734e0 whitelist includes278,279,280,281,282,311,316,317 and380. It notably does NOT include315. A blanket statement that all nine damage additions are subject to equipment OE would be false. Current server equipmentBonus should preserve this existing per-item table distinction; nano contributions should not pass through that item-only scaler.

Original evidence retained:

Exact47-entry table and owner/remote gates remain in local/armor-oe-research/native-audit.md and native-table.json. Remote SimpleChar may retain authored worn deltas while the owner/server use OE-effective deltas; do not mistake that established observer distinction for nano scaling or repair it by applying a blanket multiplier.

Foundations and duplicate counting: answered for reviewed packet paths

server/world.go full snapshot transmits baseStats plus explicit identity, resources, progression and flags. It does not transmit278..317/380 as final base balances; equipment activation and active-nano replay supply them once. Compact SimpleChar carries abilities/identity/resources/appearance/motion, not these damage/range stats. Reviewed100821d0 activation includes its known Scale360 modifier reset, not an all-modifier-map reset. No new base stat or stat-refresh packet is needed for pure damage/range buffs.

characterInfoPacket carries current/maxHP, regeneration and identity data; remote InfoPacket1005b1a0 folds/clears only modifier1. teamResourceStats carries 343,342,364,363,214,221,1,27;10084740 folds/clears resource modifiers1/221. Neither current packet producer/consumer absorbs or clears278..317/380. The detailed retained identity/field/call evidence is reused from docs/research-notes/ac-nano-research/native/README.md, docs/character-info.md and docs/team-resources.md: Info serializer/decoder ev_9757bf4c1ea87a6c956385944b865747d7fc39852948c4e924483be99a0e916a / ev_3cedbe5b069de93a1e1edc950983ea6dc092c5addeb822813d7fa2534a84dd7c, plus delivery/cache ev_fc823b8931bd96ad507647cc2bdf315574d4eb30eb9b2f10e47bc2acbc3476cf and assembly ev_13f8d0ea148b7b93dae51450a703f4501f5e38126b623ccedb656595bd735ced. This is bounded packet coverage, not proof that every unknown extension packet can never assign a modifier. MixedHP or skill contracts retain their complete existing resource/OE lifecycle; do not drop those companions.

Integration checks and unresolved questions

Admit only whole original ordinary positive contracts established by the independent resource census: complete metadata, selectors, signed arguments, third Skill zero, flags, criteria and supported companions. No program-ID rule, new schema, persisted balance, special removal path or client adapter is needed. Preserve every unsupported companion as a reason to reject a complete contract.

Check matching/nonmatching type, fists, invalidtype/projectile fallback, normal/critical/minimum/AR/OE paths, stacked equipment and full nano bonuses, range sum before truncation/cap and nextfloat boundary, public upload/cast/ cancel/replace/expiry/restart, capacity/criteria failures and rollback/refund. NativeUI should observe owner and observer stat balances before/after remote inspection, cold replay, cancellation and natural expiry, and at least one ordinary real combat outcome. Never infer direct nano bonus semantics from315. Signed negative damage/range admission, reflect/absorb ordering and original server overflow/highvalue arithmetic remain outside these positive contracts.