Files

17 lines
2.6 KiB
Markdown

# Weapon enchantment visuals on build 70334
The Octo archive search selected the complete `DBFilesClient/SpellItemEnchantment.dbc` from `patch-5.mpq`. Of 1,522 enchantments, 109 have a nonzero ItemVisual. In the shipped enUS client, 108 of those values identify an ItemVisuals record with a positive ModelFileID. Enchantment 2605 has the sentinel 0xffffffff. The generator preserves all 82 previous positive mappings and recovers 26, including Windfury 283 → 81. Crusader 1900 remains 103. [Input digests, new mappings and model references](receipt.json)
The client receives ItemVisual directly in its visible equipment fields. Catalog matching therefore uses the effective source enchantment's visual and the native ItemVisuals model references. A mapped permanent enchant takes precedence. A permanent layer with no usable visual allows a mapped temporary enchant to show. The production codec already uses the same lookup for initial self equipment, owner updates and other players' equipment. NativeInventoryTranslation sends cached slot fields on owner changes. The peer writer receives the cached snapshot and a sparse delta. Both player-visible and virtual weapon fields carry the visual.
## Rebuild
1. Read the effective Octo `SpellItemEnchantment.dbc` using the archive precedence for the source installation. Recheck the winning archive and the digest in the receipt.
2. Extract FDID 1343605 from the active enUS content build. Decode `ItemVisuals.db2` with the 1.60.1.70334 definitions, requesting `ModelFileID` and preserving all five values for each ID.
3. Run `python ops/item_enchantment_visual_profile.py --source <effective-dbc> --native-visuals <decoded-json> --output runtime/<new-directory>`. Compare the generated header with `include/gateway/item_enchantment_visual_profile.hpp`.
4. Refresh that header in the codec's source closure and rebuild the equipment writer before running the host parity tests. Physical client tables already contain the required records.
## Verification
The shipped codec failed the Windfury case. With the refreshed header, two registered CTests passed using the candidate codec CLI. The profile suite covers authoritative rows, missing records, empty model arrays, the sentinel and temporary fallback. The wire suite compares 56 complete packets and four empty-slot updates, including self and peer creation, sparse peer enchant changes, cached owner slot updates and the visible weapon copies. The tests include Windfury, Crusader and both enchant layers together. Report 190007 gave no enchantment ID. In-game rendering of the player's particular enchantment remains unverified.