aorecomp

Anarchy Online classic in the browser

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


docs/nano-range.md (8648B)


Nano range modifiers

Casting uses the caster's signed equipment and active-program stat381 through one range calculation. Target admission and completion share the same rule; the recipient's range bonuses do not extend an incoming cast.

base = signed NanoItem NFRange287, default20
modifier = equipment381 + nano381
product = signed_int32(base * modifier)
range = min(40, trunc(base + product * float32(.01)))
distance = float32(sqrt(dx*dx + dy*dy + dz*dz))
admitted = distance <= range

The full cast path has two spatial gates. The first truncates distance, then calls a second gate for another actor. That gate subtracts the global binary32 coordinates in the wider intermediate, computes the square root, stores the distance as binary32, and compares it directly with the integer range. The server uses this final predicate. The percentage is the binary32 value0.009999999776482582. For example, base12 with+50 gives17 after truncation, not18. There is no minimum-range clamp. Zero range accepts only zero distance after the binary32 store; negative range rejects even the caster at the first gate. The40-metre cap does not grant a fractional-metre allowance. No creature extents are added.

The two original Computer Deck Range Increasers95516/95517 contribute110/150 through the ordinary equipment path. Belt/deck requirements, exact qualities, the authored10-second equip delay and removal remain unchanged. Complete range implants now admit708 complete authored contracts through this same consumer;148 incomplete companions remain rejected as whole items.

Complete programs

Ten ordinary programs and ten single-program crystal uploaders qualify. Every authored modifier is applied; no program identity dispatches range behavior.

Program Crystal Range381 Cost318 Strain / NCU
CrunchCom Code Sieve95407 95427 5 -6 148 / 4
CrunchCom Nano Compressor Pro95412 95423 20 -18 148 / 38
CrunchCom Nano Compressor95415 95422 13 -11 148 / 15
Nano Cloud Supplement95442 95450 86 2 181 / 46
Notum Overload95443 95451 104 4 181 / 54
Coherent Nano Pathway95444 95454 50 0 181 / 13
Cohesion Amplifier95445 95449 57 0 181 / 20
Superior Nano Command95446 95455 67 0 181 / 29
Enhance Nano Cohesion95447 95453 42 0 181 / 7
Enhance Nano Communication95448 95452 36 0 181 / 2

The two strains stack; replacement within each strain removes exactly that program's complete contribution. Nano Cloud Supplement and Notum Overload increase casting costs. The three CrunchCom programs reduce costs while also extending range. All fourteen complete cost-modifier programs are covered by the shared signed cost tests.

The full original search has43 stat381 programs. The other33 are special False/Mimic/Assume Profession contracts and remain rejected as whole programs. A raw integer search also finds Glacial Cloak55748's HP amount381; that is not a range selector, and its unimplemented absorption companions keep it rejected. The47 candidate uploaders include bulk/special contracts, of which only the ten complete ordinary uploaders qualify here. All44 raw programs and47 item payloads are hash-checked and independently reparsed from the original resources.

Evidence and policy boundaries

Original kkr.dll SHA-256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Range helper10098c10 and initial spatial admission100646a0/10064af8..10064b19 are retained under evidence IDs ev_9081c9ee969a3f64c9cfb5aec6a5d90477aa638090d6ed38e5791a3d0d58eeda and ev_b222a29a2449ed800e75228fac8a9ad597f8c73dce740b461b7fae780389796b. Maintained instruction sources are client/game/kkr.dll/lifted-0046.c::sub_36098C10 and client/game/kkr.dll/lifted-0030.c::sub_360646A0. The connected call10064b72 enters client/game/kkr.dll/lifted-0030.c::sub_36066310, with the second comparison at 10066328..10066390. Its body is present in the maintained instruction source; the bounded retained-report search contains its caller reference only. Actual WASM casting rejected a selected recipient at12.736 metres for a 12-metre program before any cast19 request, corroborating that second gate. The signed default/getter pipeline, coefficient bytes, input hashes and exact instruction findings are in docs/research-notes/nano-range-research/native/ledger.md.

The server deliberately mirrors the complete inspected client predicate. This does not establish the historical server's tolerance, completion revalidation or line-of-sight policy. Original runtime x87 control-word/CRT details and the stat381 trickle-table entry remain unverified in this retained evidence scope. There is no new binary analysis/export session in this investigation.

The range fixtures retain exact metadata, complete functions, criteria, getter and attack dictionaries, and uploader contracts. SHA-256 is 2a2f16fff6273f3ec57bd68fa9729aa282ec46cea9fd6566412b9ca8ba0ac80e. Original source/record hashes are in local/nano-range-research/program-contract-ledger.json.

Verification

Automated checks pin every complete original program and uploader, all33 special-program rejections, and the raw-search false positive. All ten ordinary programs exercise upload, refresh without stacking, complete companions, unchanged trained values, cold load and exact expiry. Casting checks cover both device qualities, independent strains, signed/zero/negative ranges, three dimensions, binary32 distance storage and the40 cap. Completion rechecks the caster's current effects; removal, expiry and target movement cancel and refund once. The recipient's own range bonus cannot extend an incoming cast. Failed/ignored SQL and failed COMMIT preserve the old complete effect and resources; retry replaces both range and cost companions together.

Two actual GPU WASM clients use owned level200 NT control-panel profiles, with abilities1300, trained nano skills1000 and NanoInit5. All five chosen crystals upload through native inventory use. Source range/cost getters agree on both replicas:36/100,41/94 after CrunchCom,55/94 after Coherent replaces the weaker strain181 program, and259/83 with Notum Overload, CrunchCom, the QL200 range device and a CPU. Weaker replacement rejects without a cast request. The QL50 device adds exactly110 and its removal clears exactly110; QL200 adds150.

Native GUI casts establish the complete distance boundary:12.736 metres rejects with the base12 range and succeeds after a range buff. The cap rejects 41.64 metres even when the uncapped result is43, while36.89 succeeds. The CPU changes that cast's reservation to37. Coherent alone gives a17-metre result: 17.05 rejects and15.95 succeeds, verifying the percentage truncation boundary.

At full defense, removing Notum Overload during a pending cast drops effective range below the selected target's distance. Both replicas remove the effect; the server emits action108 without a result107. Nano points go7107->7070 for the37 reservation, then7077 after one7-point regeneration visit, then7114 for the exact37 refund. Recomputing cost after modifier removal would yield35 and would be incorrect.

Snapshots, frame/SQLite observations and executable assertions are retained in local/nano-range-smoke/; gameplay uses GUI actions, with read-only heap, wire and database observations. No runtime gameplay calls or heap writes are injected.

Cold restarts preserve both program strains at55/94, then the worn QL200 range device, CPU and Coherent at200/85. Owner inventory proxies retain exact identities, qualities and endpoints, with the same seven unconsumed instances. A post-restart Strength Boost reserves38. Removing the owned effects and both devices returns the source to range0/cost100 without losing an item. Both browser contexts close without recorded errors. Fixture cleanup removes only the two owned players and seven items; all unrelated rows are unchanged and SQLite foreign-key/integrity checks pass. The single preview remains on its default LAN HTTPS8443 port.

The full tracked suite passes9,189 server checks and18 game-data checks in 1528.555 server seconds. The focused complete-predicate suite passes113 checks in19.651 seconds; two race repetitions pass286 checks in139.604 seconds. Build and vet pass. Final terminals, source hashes and verification reports are retained in local/nano-range-research/verification.json. The initial incomplete predicate's interrupted run and separate diagnostic failures remain recorded under their own filenames; they are excluded from these passing results.