aorecomp

Anarchy Online classic in the browser

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


docs/npc-appearances.md (24325B)


NPC outfits and recovered appearances

Recovered visible equipment

The November 6 captain report reopened A3 for missing armor and weapons. The maintained zone YAMLs now contain a visual list on 130 NPC definitions across 22 zones. These are direct appearance resources, not invented inventory items: head is the head mesh; textures rows are [category, texture]; meshes rows are [attachment slot, mesh, texture override, layer]. Texture categories are hands, body, feet, arms and legs (0 through 4). Every entry carries a source comment distinguishing original-post matches, cross-zone and cross-role inferences. The population generator preserves these fields from the maintained YAMLs. Reviewed role defaults additionally supply 75 military visual lists when zones load; explicit per-post visuals and item outfits take precedence.

Original population code Assigned NPCs Appearance
MACA 35 Nanomage male captain, Elite armor, helmet and plasma weapon
MALI 52 Solitus male lieutenant, Elite armor, helmet and plasma weapon
FECA 8 Opifex female captain, matching Elite uniform and weapon; female head and helmet
FELI 15 Solitus female lieutenant, matching Elite uniform and weapon; female head and helmet
FECO / MACO 25 / 21 Corporals, best-effort captain uniform and weapon with body-specific heads and helmets
FEEL / MAEL 8 / 21 Additional Elite Guards, best-effort Elite armor with body-specific heads and helmets
CSBI 3 Container supplier clothing and pistol
BQAU 4 Basic armor merchant clothing and pistol
BQPW 3 Basic nano merchant clothing and pistol
BQWR 5 Basic weapons merchant clothing and pistol
BTMV 1 Medical vendor clothing and pistol
TAIL 4 Tailor clothing and pistol

Fifteen records match original posts: one captain and eight lieutenants in Rome Blue, plus six merchants in the subway. Another 92 assignments require the same original population code and body, and are explicitly inferred across zones. The 23 female officers use the corresponding male role's uniform as an explicit cross-role inference. Modern Arete-only roles and ambiguous guard replacements remain outside these recovered visual assignments.

The armor textures are original resources 15805 through 15809. Male captain head/helmet meshes are 40171/20038; lieutenant meshes are 40687/20106. Their weapon mesh is 35566 (plasmaburster_heavy.abiff). The merchants use original textures 30862, 40903, 30839 and 30886, body-specific heads, and pistol mesh 7777 (weapon_projectilesmall01.abiff). The initial 20 distinct referenced resources were checked against the original 14.9.1 resource database. Mesh 35566 occurs in both Supernova Mk VI and Westinghouse IM-50 item families, so it cannot identify the equipped item or its quality level. These visual lists add no armor, damage, loot or inventory items.

Appearance provenance and limits

The original population data supplies posts, codes, bodies and headings, but does not supply these outfits. Appearance assignments use later AORebirth reconstruction and live-capture evidence, with resources verified against 14.9.1. They are not recovered 2003 server equipment lists.

The source extracts, resource manifest, post matches and expanded assignments are retained locally under local/npc-appearances/recovered/. Earlier group comments describe the original template/name evidence; the adjacent visual source comments describe this separate appearance evidence.

The recovered lists use native spawn-packet clothing and mesh attachments. The original kkr.dll clothing reader at 0x10005370 consumes category, texture and blend; the mesh reader at 0x10001d20 consumes an encoded count and slot/mesh/override/layer rows. The lifted spawn reader client/game/kkr.dll/lifted-0038.c:sub_36082DA0 reads three clothing layers at 0x36083811. REA evidence IDs are ev_d121c44a2aef69e8ec1cd0793fceed169e2f89e0783a6f07cea30b32a7e6785d and ev_5f81f341294ff2728ecaf034b470b46de5a6fc9af0ec6e8324284915bbc02ab6. The binary identity is recorded in the facing investigation. Static parsing evidence establishes the layout; the browser checks exercise the original translated consumers at runtime.

TestRecoveredNPCVisualsSurviveReloadWithoutEquipment checks the captain's exact packet resources and unchanged gameplay state before and after cold load. TestRecoveredNPCVisualsHaveBoundedPopulationAssignments checks the 205 visual assignments and exclusions. test_population_regeneration_preserves_recovered_visuals checks that regenerating population data retains the YAML resources. TestBrowserNPCRecoveredAppearances covers five representative profiles: male and female captains and lieutenants, and a weapons dealer. It checks two observers, native picking, reconnect, and native heading comparisons. These are controlled appearance fixtures: unrelated NPCs are removed to avoid occlusion, while the selected NPC retains its authored position and facing.

November 6 browser runs passed for these three representatives. The captain and lieutenant captures are under local/npc-appearances/20261106-092711/, and the weapons dealer is under local/npc-appearances/20261106-093131/. Visual inspection confirms armor, helmets and plasma weapons on the officers, and the merchant's clothing and pistol. Additional merchant checks encountered counter-obstructed views; those fixture experiments are not required coverage. Focused Go regressions, go vet ./server/..., the four Python assignment tests and the complete 11,965-entry assignment catalog check passed. A broad server suite was not rerun for this change.

Female officer omission and coverage audit

The Female Captain report exposed an assignment-policy gap: the recovered outfit pass required identical population code and body, so it excluded FECA and FELI despite dressed male counterparts. The bounded-assignment test even required an undressed Female Captain. Name/body completeness and successful male-only browser fixtures did not establish uniform coverage.

All eight FECA and fifteen FELI posts now use their counterpart's five Elite armor textures and plasma weapon mesh. The existing female bodies remain: MonsterData 26137 supplies head 40209, and 26076 supplies head 40635 in server/gamedata/monsters.yaml. Item 22250 in server/gamedata/items/items_000.yaml selects helmet 20055 for Opifex female (breed 2, sex 3) and 20089 for Solitus female (breed 1, sex 3). These are original resources with inferred role assignments, not recovered female equipment lists. They add no combat stats or inventory items.

TestOfficerUniformsCoverBothSexesAtEveryPost checks all four officer codes, including exact body-specific heads, helmets, textures and weapons. Packet/cold reload and population-regeneration regressions cover both female profiles. The packet test excludes transport padding before parsing the appearance tail; the previous male-only case happened to need no padding.

Both female browser fixtures passed with two observers and reconnect; inspected captures show their Elite armor, female helmets and plasma weapons. Artifacts are under local/npc-appearances/20261109-233343/. Focused Go regressions, all six Python assignment tests, the 11,965-entry catalog check and go vet ./server/... ./tools/data/audit_npc_outfits passed.

Run go run ./tools/data/audit_npc_outfits to audit explicit outfit coverage independently of name/body confidence. It groups by code, body and appearance, shows partially assigned profiles first, and gives an unassigned example for each profile. It counts authored placements, not just currently loaded actors. After the female-officer fix, 157 of 6,232 human placements had assigned outfits. The best-effort role expansion below raises that to 419. Absence of an assignment does not prove a base mesh has no clothing.

Best-effort outfits across zones

The Corporal report established the fallback policy: a plausible uniform from a related role is preferable to an undressed NPC when no distinct outfit is known. A bounded online search did not yield usable evidence for a separate Female Corporal outfit. Both corporal codes therefore borrow the captain's Elite textures and plasma weapon, using original body-specific heads and item 22250 helmet variants. These are best-effort assignments, not historical claims.

The audit also found exact-code, exact-body counterparts of already dressed NPCs. The following defaults in server/gamedata/npc_outfits.go now apply at every matching post, including posts added or regenerated later:

Population Newly dressed placements Basis
Female / Male Corporal (FECO, MACO) 25 / 21 Captain uniform; Solitus female/male helmet 20089/20106 and default head 40629/40687
Female / Atrox Elite Guard (FEEL, MAEL) 8 / 21 Trade guards' Elite armor; helmet 20089/20005 and default head 40629/40111
Food Provider (OFPO) 9 Same code and body as the two Trade providers; white uniform
Omni / Neutral guides (OTGD, NEGD) 60 / 22 Same code and body as the training guides; white uniform
Clan guides (CLGD) 48 Same code and body as the Clan training guide; rustic clothing
Diversionist / Informer (H320, H476) 3 / 29 Same code and body as the dressed training opponents; rustic clothing
Mercenary/resident populations (H410, H660) 3 / 13 Same code and body as the dressed training mercenaries; rustic clothing

The 262 additions are guarded by population code and MonsterData, rather than display name or body alone. Explicit outfits remain authoritative. The seven item-equipped Trade guards retain their armor bonuses; the 29 added guards use appearance-only armor and retain their existing combat behavior. They receive no weapon beyond their reference outfit. Corporals' visible guns add no weapon stats. Civilian garments have no armor bonuses or transferable item identities. No additional populations gain combat support or loot.

TestOfficerUniformsCoverBothSexesAtEveryPost, TestReviewedCivilianOutfitsCoverEveryPlacement and TestEliteGuardVisualsFillUnassignedPosts check all reviewed codes and counts. Cold-load regressions verify exact military packet resources, civilian garment identities, unchanged combat eligibility and zero added civilian armor. TestBrowserNPCBestEffortOutfits covers female/male corporals, an Atrox Elite Guard, a Food Provider, a Clan guide and an Opifex Diversionist with two clients and reconnect at authored placements. All six browser fixtures passed; inspected captures are retained under local/npc-appearances/20261110-002700/. The complete game-data suite, focused outfit/reload regressions and go vet ./server/... ./tools/data/audit_npc_outfits also passed. The audit confirms all twelve reviewed codes now have complete outfit coverage.

The remaining audit entries need another role review; many Wandering Mercenary names are low-confidence fallbacks for distinct original codes. The same label does not establish that all of them should share one outfit. Generic guards and named or dungeon NPCs also need faction/role checks before borrowing a uniform. Reopen historical outfit research when a capture or template supplies actual clothing/mesh resources; the absence of such evidence does not block a separately reviewed best-effort assignment.

Provisional early-route outfits

The A3 implementation equips the seven Omni Trade Elite Guards, both Food Providers, three faction training-ground Secondhand Peddlers, five training guides, the Neutral training-ground guard and six human opponent populations. The garments and body/head meshes come from the original 14.9.1 catalogs. Assigning these particular outfits to those actors is provisional, rather than recovered server outfit data.

Actors Garment templates and equipment slots
Trade Elite Guards: 710/district/0/fixed/8,9,10, 710/district/1/fixed/0,2,6,7 QL 200 Omni-Pol Elite: helmet 22250/18, body 22068/21, sleeves 21959/23 and /25, gloves 22200/24, pants 22335/27, boots 22146/30
Trade Food Providers: 710/district/0/fixed/18,19 QL 1 uniform: shirt 82912/21, sleeves 82919/23 and /25, pants 82911/27, boots 82913/30
Secondhand Peddlers: 950/district/1/fixed/0, 952/district/3/fixed/0, 954/district/1/fixed/0 QL 1 rustic clothing: shirt 82102/21, sleeves 82092/23 and /25, pants 82101/27, boots 82100/30
Omni guides: 950/district/2/fixed/0,1; Neutral guide: 954/district/2/fixed/1 QL 1 uniform, as above
Clan guides: 952/district/0/fixed/0,1 QL 1 rustic clothing, as above
Neutral guard: 954/district/2/fixed/0 QL 200 faction-independent Kevlar: body 22026/21, sleeves 21929/23 and /25, gloves 22178/24, pants 22301/27, boots 22116/30; original head remains visible
Fresh Clan Functionary: 950/district/3/group/0/authored_point QL 1 uniform, as above
Daft Clan Diversionist and Informer: 950/district/1/group/0/authored_point, 950/district/4/group/0/authored_point; Wandering Mercenaries: 952/district/2/group/0/authored_point, 952/district/3/group/1/authored_point, 954/district/4/group/3/spread_authored_point QL 1 rustic clothing, as above

gamedata.NPCOutfits supplies definition equipment on spawn, world reload and respawn. It uses the shared item wear and armor consumers. Equipment has no transferable item identity and creates no player items rows; the separate authored corpse-loot table still determines rewards. Head meshes use the selected MonsterData template's stat 64. This does not establish the historical guard protection values or add rifle equipment.

The human opponents' clothing adds no armor bonuses. Their six populations now have bounded combat and corpse support, with explicit provisional balance and reward rules. Outfit assignments do not establish historical equipment or ordinary progression pace.

Native initialization order

Clothing requires SimpleChar flag bit 3 (CanChangeClothes, stat 223), followed by ordinary TemplateAction wear messages. Sending those alone crashed a Food Provider when the original client composited its shirt with naked skin.

The retained diagnostic at local/npc-appearances/browser-food-skin-http.log showed the actor's render object had breed 0 / sex 1 and requested _<nothing>male_naked.png, although the actor's final stats were Solitus male. These translated native consumers explain the mismatch:

The client also has a humanoid NPC path. The original N3Msg_IsNpc export at 0x10025A80 (client/game/kkr.dll/lifted-0015.c:sub_36025A80) accepts either the monster-instance marker or status flag 0x00800000. SimpleChar bit 18 supplies that status flag at 0x36082BB5-0x36082BCC, independently of bit 0. With bit 0 clear, the native initializer applies breed/sex before MonsterData.

Outfitted human NPCs now use bit 18, InPlay bit 1 and the humanoid field layout. Their actual MonsterData and explicit head/textures remain in the same spawn packet, followed by equipment replay. All observers use the same interest-entry path, including reconnect. No translated native code or published browser assets are changed. The historical name of bit 18 is unknown; its native classification behavior is established by the consumer.

The rejected zero-MonsterData/deferred-stat experiment made NPCs invisible: SimpleChar activation skipped its visibility/material setup without a mesh. The working protocol keeps mesh construction inside the original activation.

Verification and remaining scope

TestNPCEliteOutfitSurvivesReload checks exact garment identities, head, absence of transferable items, and the login packet order before and after a cold world load. TestBrowserNPCOutfits uses the published browser bundle at the original placements, with two observers, native picking, reconnect, packet inspection and effective armor comparisons against server state.

November 5 runs passed for female and Atrox Elite Guards, both Food Providers and all three Peddlers. The published WASM SHA-256 was 48d48eaccef7c4eccd877a7f30b1e655bb3358e177cfad64076ac07a1688dd3b. The first Food Provider's capture is under local/npc-appearances/20261105-103434/; the other six are under local/npc-appearances/20261105-103658/. Both observers inspect the same NPC before and after reconnect; the guard's eight native effective ACs equal 3500, 3500, 3500, 872, 3059, 3059, 3059, 3059, matching the server. The Food Provider also passes the existing right-click/E, buy/sell, cancel, reconnect and range-rejection scenario with the new humanoid NPC flags; captures are under local/npc-vendors/20261105-104244/.

The six training staff subsequently passed the same two-observer and reconnect scenario at their authored placements, using front-facing observation points. Captures are under local/npc-appearances/20261105-105114/; the run is retained in local/npc-appearances/browser-staff.log. Visual inspection confirms the male/female guide heads, white or rustic uniforms, and the Neutral Atrox guard's head and Kevlar armor. The guard's native ACs match the server's 2750, 2750, 2403, 1717, 550, 1717, 1717, 550 on both clients after reconnect. These assignments use existing garment consumers without further protocol changes.

The six human opponent populations also pass both observers and reconnect. The Diversionist, Informer and second Clan Mercenary passed in local/npc-appearances/20261105-105735/. The first run exposed a fixture issue at the other three placements: the camera cut off actors below the chat panel on steep terrain, so native picking could not reach them. Ordinary right-button mouse-look now frames each actor before picking. Those three cases and the Informer passed in local/npc-appearances/20261105-110059/, with no client exceptions and zero armor bonuses from their clothing. The captures show the Opifex Diversionist, Nanomage Functionary, female Solitus Informer and male Solitus Mercenaries with their intended heads and garments. The Functionary's authored position remains partly screened by grass.

The focused server checks cover outfit reload and packet order, NPC shops, interest boundaries, population membership and respawn persistence. Shop fixtures now construct valid NPC definitions. The population membership fixture places actors in range and uses the authored 1,842-actor count for playfield 646; its previous range-dependent expectations also failed on the prior build.

Creature appearance scope

TestBrowserNPCCreatureAppearances selects the lowest actor identity at one authored placement for each distinct creature body in the three training routes. Shared species on other placements use the same MonsterData consumer. The shared fixture bases viewing distance on the collision extent, with wider 8m Snake and 12m Stalker views because their render models extend beyond that sphere. It uses ordinary mouse-look to frame the actor before native picking. It checks both observers and reconnect, retaining the server identity and MonsterData beside the captures. Armor comparisons apply to equipped humans; this creature appearance check does not audit combat foundations.

Route Creature MonsterData Representative definition
Omni Training Leet 17655 950/district/1/group/1/authored_point
Omni Training Giant Snake 30252 950/district/1/group/2/authored_point
Omni Training Reet of Paradise 30365 950/district/2/group/1/authored_point
Omni Training Malle 17660 950/district/4/group/1/authored_point
Omni Training Tiny Stalker 17708 950/district/4/group/3/authored_point
Omni Training Aquaan Boss 30369 950/district/6/fixed/0
Clan Training Green Lizard / Grecko 22794 952/district/0/group/1/authored_point
Clan Training Rollerrat 17687 952/district/2/group/2/authored_point
Clan Training Blubbag 40075 952/district/3/group/0/authored_point
Clan Training Salamander Boss 30354 952/district/5/fixed/0
Neutral Training Android 17649 954/district/0/group/0/authored_point
Neutral Training Biofreak Noskin 30258 954/district/0/group/1/authored_point
Neutral Training Clawfinger 38387 954/district/0/group/2/spread_authored_point
Neutral Training Eye Mutant 17653 954/district/0/group/3/spread_authored_point
Neutral Training Blackout the TechnoMaster 45873 954/district/5/fixed/0

November 5 visual review confirms all 15 creature bodies and their textures, including the second observer after reconnect. The published WASM is unchanged. The retained runs are:

Capture directory under local/npc-appearances/ Result
20261105-110817/ First 12 creature scenarios completed; the runner then received SIGTERM while starting Clawfinger. Remaining work was resumed in short batches.
20261105-111935/ Snake and Stalker passed again with their complete render models in frame; the original close Stalker capture showed only its legs.
20261105-112113/ Clawfinger and Eye Mutant passed.
20261105-112446/ Blackout the TechnoMaster passed.
20261105-112359/ The retained Elite Guard outfit scenario passed with the shared fixture, including all eight armor values.

The corresponding logs are browser-creatures.log, browser-creatures-wide.log, browser-creatures-neutral.log and browser-creatures-final.log. Every completed scenario checks both initial observers and both reconnects, ordinary native picking and absence of client exceptions. The fixture rejects an unequipped human so creature support does not weaken the outfit requirement. Test clients and servers are closed between runs.

A3 is complete for the 24 human populations listed above and the 15 distinct creature bodies in this table. The seven Elite Guards share two checked body variants; every other human definition has its own checked placement. This verification adds no creature behavior or combat content. The controlled appearance checks do not establish earned progression, encounter balance or exact historical outfits, and do not claim coverage of the full world catalog.