aorecomp

Anarchy Online classic in the browser

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


docs/npc-profile-eligibility.md (4929B)


NPC profile eligibility

A visible Leet stand-in does not identify a Leet. The stable population group must have inferred_species appearance evidence and MonsterData matching the actor before the server selects a generic species/level combat profile. An explicitly template-bound profile also accepts best_effort evidence for an exact member of its template_codes list and matching body. The shared data rule applies when allocating, loading and replacing an NPC; names never establish profile eligibility. See the current mapping integration.

Initial native weapons now come from that admitted actor profile in character serialization. The target wire converter only adapts the packet layout; it no longer selects a bite from the rendered MonsterData and level. Supported Leets retain their original 120910/120911 bite endpoints and actor quality. Unresolved stand-ins retain the existing prototype 43712/43713 weapon initialization.

This removes unintended Leet-specific health, combat, XP, Monster Parts, cash, respawn delay and corpse lifetime from unresolved groups. It does not implement their proper behavior: prototype combat and ordinary corpse handling still apply. Carbonrich Rocks render as static world items with reviewed raw pickup; extraction-tool processing and replenishment remain open. Previously committed rewards, contents and lifecycle deadlines are not reversed when loading a changed definition; replacement profile eligibility is checked again for the new life.

The earlier population audit found 850 placements in 831 unresolved groups selecting levels 1 or 2 with the stand-in MonsterData. These included 140 Carbonrich Rock groups and Good Time Party Mixer. The 181 placements with supported species evidence retain their profiles. These counts describe the current inclusive-range placement policy, not historical population allocation. The complete group evidence is retained in local/npc-profile-eligibility/population-audit.json.

Four regression roots cover shared body/name with different evidence, ordinary attack/death rewards, missing or mismatched cold definitions, and live/cold replacement eligibility. A negative baseline reproduced eight failures with two positive controls passing. Supported Leets retain one committed reward and lifecycle; rejected stand-ins generate no Leet rewards or item identities. Changing evidence does not reverse an already committed kill. Existing native spawn/weapon tests verify both supported levels across restart.

Native checks

Two headed GPU WASM clients inspected an existing level-1 Leet in Omni Training, Good Time Party Mixer in Reet Retreat, and Carbonrich Rock in Parnassos. Only the owned characters' locations were changed through the control panel. No NPCs, combat stats, rewards or inventory were provisioned. These are controlled identity/initialization checks, not proof of ordinary travel or progression.

Both clients bound Leet Bite 120910/120911 at QL 1 for the real Leet and 43712/43713 for both unresolved stand-ins. Captured initial spawn lists and read-only native holder/item probes agree. The real Leet receives its later profile packet; neither unresolved NPC receives one. All three retain their names, MonsterData 17655 and native creature appearance. Tab selection and T inspection completed without a loading loop or page error.

Both clients closed before the single preview restarted. Reconnecting and repeating all three inspections preserved the same distinction. All fourteen issued item instances, XP, IP, level and cash stayed unchanged. Screenshots, packet streams, probe samples and assertions are retained in local/npc-profile-eligibility/runtime-verification.json.

Automated verification and scope

The complete server run exercised 1,388 roots. Its two failing roots were the process-crash and team-loot restart fixtures, which constructed unidentified NPCs while expecting Leet profiles after cold loading. Those fixtures now supply their intended stable Leet definition. The original failures remain in the report; the final related retest is recorded separately, rather than presenting the original run as a clean single-binary suite pass. The corrected related retest passed. Together, the full run and final fixture retests cover all 1,388 roots / 14,722 distinct passing results; no failure remains unresolved. The audit is retained in local/npc-profile-eligibility/verification.json.

The focused regressions passed 104 roots, and the targeted race run passed 104 roots / 311 results. All 18 gamedata tests, eleven Python population/parser tests and go vet ./server/... passed. Production code did not change after the native-verified preview build; later changes only identify test fixtures. The evidence directory retains both test binaries, source hashes, full logs, negative baseline, corrected fixture runs and native verification artifacts.