aorecomp

Anarchy Online classic in the browser

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


docs/clothing.md (5479B)


Catalog clothing in 14.9.1

Clothing admission uses the item's actual native type 51022, ItemType 76 equal to 2, Can 30 bit 4, and slot mask 298. Clothing mask bit zero means absolute slot 16. A template's header must match the owned identity type. Qualities must equal the authored record, except for the existing reviewed Metaplast pairs. This avoids treating vehicles, belts, NCU and implants as body clothing merely because they share native type 51022.

The original kkr.dll SHA-256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Dispatcher 10060510 routes ItemTypes 2/3 to the common gate 10090970, which checks CanWear and action 6. Missing action 6 succeeds. ItemType 1 uses 10090c70 and action 8. Move sender 1002a1f0 adds 16 to clothing slots and 32 to implant slots; utility/weapon slots remain unshifted. Retained evidence and the five starter/vehicle catalog records are under local/starter-equipment-research/.

The shared server requirement interpreter follows the native postfix stack for equality, strict comparisons, AND, OR and NOT. Empty lists succeed; the final top value is the result, with no implicit AND for leftover operands. Unknown stats/operators and stack underflow fail the entire evaluation, even inside an OR or NOT. Unequal is supported for intrinsic breed, faction, title, level, sex, profession and race; other stats need proof of native getter-mode 2 semantics. Metaplast requirement values retain quality interpolation. See requirement evidence.

Effects and starter gifts

OnWear Skill 53012 and Modify 53045 contribute their authored signed stat amounts. Both use native additive handler 100bd600 (Modify wrapper 100bd4d0); removal subtracts the corresponding instance contribution. Supported clothing modifiers must be unconditional, target the wearer, and have one tick with zero interval. Native mesh, texture and visual handlers 53030/53035/53037/53038/53039/53054/53055/53079 remain client presentation. 53051, 53100 and 53162 do nothing in this client, which does not establish their authoritative server meaning. They and other unknown OnWear functions are rejected until their gameplay effects are understood and implemented. See effect handlers. The same stat/presentation validation now supports catalog HUD, utility and deck equipment, with its own native slot-mask and action-8 admission rules.

Starter gift Template Absolute slot Wear criteria OnWear
Omni-Tek Shirt 29426 21, chest Side 33 equals 2 Melee AC 91 +10; texture 14038/category 1
Clan Merits - Basic Board 96358 17, neck None None
Omni-Tek Award - Basic Board 99719 17, neck None None

The basic boards' faction/token predicates belong to their use/upgrade functions. They do not restrict wearing and do not grant the next board's advertised bonuses. Since both have CanUse bit 8, native right-click invokes use; drag them to the neck slot to wear. Token collection and upgrades remain unimplemented.

Wear completion rechecks requirements and commits the existing item identity and destination atomically before notifying owner and observers. Failed validation/persistence leaves the source item intact. Cold bootstrap uses the existing native OnWear reconstruction, avoiding duplicate effects. Armor overequipping now obtains all six abilities and supported skills from the shared stat lookup, and ignores zero raw thresholds without division. Signed penalties still apply per effect using the recovered armor table.

Remaining boundaries

This is catalog admission and shared stat-modifier support, not full gameplay for every garment. Expansion/token predicates, unmodeled stats, active OnWear effects, use actions and unpaired intermediate qualities remain open. The existing Pre-Universe wearable-container action-8 fallback is a separate server policy: its ItemType 2 native common gate reads action 6 only. Resolve that older uncertainty before claiming universal container requirements.

Verification

Public inventory-move tests cover all factions for the three gifts, real Pilgrim armor profession alternatives and strict Stamina boundaries, malformed and unknown criteria, unsupported/conditional/repeating effects, completion revalidation, failed writes, item conservation and cold recovery. All six abilities are checked across armor OE tiers, including a zero raw threshold with a negative effective ability. Counterfactual runs against the preceding implementation reproduce the missing admission and boolean-expression handling.

Two actual GPU/OpenGL WASM clients verified a newly issued shirt's appearance and Melee AC sequence 10/0/10 for wear/removal/re-wear on owner and observer. A Clan wear attempt retained the shirt with zero AC. Both basic boards reached neck slot 17, including a Clan board worn by an Omni character, with zero added AC. After a cold server restart the same shirt/board instance IDs and slots returned, with exactly 10 Melee AC on both clients. Screenshots, native heap observations, WebSocket traces and SQLite snapshots are retained under local/starter-equipment-smoke/. Browser errors remained empty. The final conservative unknown-effect guard was also exercised in the built server with two WASM clients; its snapshots and production source hashes are under local/clothing-final-smoke/.