aorecomp

Anarchy Online classic in the browser

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


docs/nano-effect-attachments.md (5623B)


Nano effects and unavailable attachment poses

A nano's projectile must finish before its native casting queue can be removed. An inactive mesh's rendering placeholder is not a usable projectile destination. The shared effect attachment resolver now uses the actor root while the skeleton is unavailable, then resumes its authored attachment when the pose is ready. This is a visual fallback; it does not change server casting or recharge rules.

Reproduction and evidence

A normally created Atrox Nano-Technician uploaded Ice Flechette, trained skills with starting IP, equipped its issued pistol and shirt, and killed two ordinary level 1 Leets. No character stats, funds, items, enemies or rewards were edited. After one cast in the second fight, subsequent shortcut presses were rejected locally with "Nanobots are recharging." Only one cast request reached the server. Its admission arrived after 4 ms and completion after another 330 ms.

Read-only WASM samples separate the relevant gates:

The maintained native paths explain those observations:

The resolver in client/game/kkr.dll/lifted-0086.c, sub_36133580, now retains its initialized local identity for valid bone/attractor requests when either readiness condition fails. Its existing caller composes that with the actor's world transform. Root requests, invalid attachment rejection, ready bones and unindexed meshes retain their existing paths. Rendering throttles and the BBR placeholder producer remain unchanged. The same readiness conditions protect shadow height initialization.

This uses maintained source, existing matching original-controller extracts and live WASM observations. No new binary analysis session was opened. Original controller evidence and its limits are recorded in nano timing. The detailed samples, wire stream and source hashes are under local/nt-starter-play/.

Verification

client/tests/effect_attachment.c exercises the target getter through its real attachment resolver, original placeholder producer and matrix composition. It checks inactive and throttled root fallback, recovery on the same endpoint, unindexed and ready bone attachments, root requests, invalid attachment rejection, and the guest stack/register/FPU/exception-chain contract. The corrected fixture fails against the original source and passes with the fix on Linux in direct and paged memory modes and in WebAssembly.

The full native client suite passed all 110 fixture commands. Focused Go casting, reservation and asset regressions passed 18 roots / 36 results; eight asset checks also passed against the published bundle. The published source digest matches the maintained inputs, and the headed browser reports the GPU OpenGL driver.

Two WASM clients received all three completions in the visible-target check. That character later died while the test paused to inspect the live encounter; it resurrected in the same client, recovered with four laboratory charges, and retained its 200 earned XP, 1158 remaining IP, four credits and every item instance. The issued health First Aid kit remained at three charges, consistent with the separate unsupported combat-healing delivery path.

After ordinary travel through Entertainment, Trade and Backyard18, a browser reconnect repeated combat against an off-screen Leet. Its mesh was inactive through all seven captured projectile samples. Their distances were 1.62..4.99m, and all four nuke requests completed on both clients. The pistol finished the kill, leaving 45/79 HP and 300 total earned XP. The nano queue and its temporary timers were empty afterward; the independent weapon timer remained valid. Two more successful laboratory uses restored health/nano, leaving 17 charges.

A cold server restart retained the exact player/item snapshots, including the independent backyard return contexts, earned XP, credits and remaining IP. Two clients then completed four further native nukes and another ordinary kill. The final character retained 400 earned XP and 1158 IP, with the casting queue and temporary nano timers cleared. No administrative provisioning was used.

These checks fix a concrete repeated-casting blocker. They do not establish the complete normal-play progression loop, level-up, historical creature balance or ordinary funding of useful shop upgrades.