aorecomp

Anarchy Online classic in the browser

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


docs/mission-placement.md (4625B)


Fixed mission encounter placement

The far encounter uses Z46 in the fixed reconstruction's authored positions. Its Leet body fits inside the actual cave mesh and has a clear combat approach. The other four placements retain their admitted positions and profiles. This coordinate is a reconstruction choice, not an original mission-generation rule.

Geometry evidence

The original llr.dll SHA256 ebb09047f6ead192388f7ddfb4795da5013a60f7c2d1c3933ec02eef58a10132 implements room admission in n3Room_t::IsPosInside at 0x10031910, with tile lookup at 0x100326e0. These check the rotated tile bounds, nonempty tile type, floor and ceiling heights. They do not test the character's body against the room mesh. REA/Ghidra evidence is retained as ev_4b104d28c92b6f5d53a7c6d27ef53d25ac5f6cc0775c80e06570914ad054cf56 and ev_c10492347dc4e670a2642c1cb0f309840ea4cbd7bc4ade90a4bc041ebaeb0058 under local/mission-placement/llr-room-*.json. Static decompilation establishes that admission boundary, independently of runtime picking.

At Z48, the accepted root passes the room/floor checks but its original Leet collision sphere intersects the back-wall mesh. Probing the copied actor through the shared physical integration settles it at approximately [15.010143, .011, 48.260735], matching the earlier native WASM observation. Combat visibility from the reachable Z43 approach is blocked. Z47.5 can miss a sphere collision while still lying behind the wall; a floor or collision miss alone therefore does not establish a reachable encounter.

At Z46, the body has no wall contact and the approach has clear visibility. The correction changes the authored coordinate. It does not alter physical collision, native picking, room visibility, or server combat LOS rules. Accepted instances retain their concrete saved actors rather than re-reading the recipe; the earlier completed assignment retains its original far-wall actor until normal retirement.

Regression checks

server/mission_placement_test.go enters a real accepted instance and attacks each of its five full-health enemies through the ordinary ranged combat handler. Each clear approach produces a nonlethal hit and one ammunition cost; a world checkpoint and cold load retain those results. Back-wall and side-wall attempts must preserve health, ammunition and zero kill progress. The pre-fix regression fails the far-room approach and back-wall distinction.

The focused server/gamedata run passed 161 roots and 921 results, including mission acceptance, movement, encounters, kill progress, retirement and combat visibility. Race checks passed four roots and fifteen results. Vet and the preview build passed. Logs and the temporary physical probe are retained in local/mission-placement/.

Native room-clear check

The GPU WASM run resumed the earned level-2 Enforcer, cast its learned Thug's Delight and accepted a fresh fixed assignment. The native far encounter settled at Z46.01, with no back-wall displacement. Native targeting and ordinary bat combat defeated all five original 100HP enemies, starting each fight at the character's full 91HP. Kills awarded 500XP in total; purchased laboratory charges supplied recovery. No skills, HP, enemies, cash or equipment were provisioned.

Native opening of two corpses awarded five credits. A drag did not transfer the first displayed Monster Part, and it expired before the subsequent pick/place attempt completed. Picking fresh Part68 and placing it into inventory slot71 succeeded. Normal expiry subsequently removed all five corpse actors while retaining that exact owned item and all five saved deaths.

Returning bound book65 to the issuing booth completed assignment64 and awarded 20credits and QL2 Metaplast glove69. Key64/book65 were consumed while Part68 remained owned. The character finished at level2, 2500 cumulative XP (1050 within the level), 5139IP, 52credits, full 91HP/24nano and 26 laboratory charges (13 used). Its two earlier earned QL2 gloves and all issued/equipped instances remained intact. Completion XP/token eligibility is still a separate P0 task; this check adds no inferred completion XP or token reward.

A cold server restart and fresh GPU WASM client retained all eleven owned instances, including Part68 and reward69, their native template endpoints, resources and all five deaths. No private corpse actor was recreated. The previous completed assignment retained its own separate population. Database integrity/foreign-key checks and native exception/abort checks passed. Owned test clients were closed, leaving the single default-port preview available.