59 lines
3.7 KiB
Markdown
59 lines
3.7 KiB
Markdown
# Source authority audit and offline bake
|
||
|
||
`../addon_source_authority.py ROOT --icons` classifies the selected addon/native
|
||
rows against read-only LOCAL SQL and effective Source MPQ snapshots. Patch-O
|
||
wins over patch-5; ambiguous base archives fail closed. Icon classification uses
|
||
RGBA from every authored mip, with exact blob identity reported separately.
|
||
Only the observed BC1 unused-directory underflow is recognized; normalization
|
||
in staging clears unused directory fields and must preserve all decoded pixels.
|
||
|
||
`stage.py` takes explicit `--root`, `--baseline` (native DB2 directory),
|
||
`--decoded` (complete baseline ItemEffect/ItemXItemEffect JSONL), `--exclusions`,
|
||
`--package` (ID reservations only), `--baker`, and `--defs`. It stages 3 DB2s and
|
||
new icon assets under ROOT/candidate. No client storage is written. Existing
|
||
icon resources are reused only after content/pixel checks. New FDIDs use the
|
||
existing 8790000–8790999 icon reservation and are checked against every current
|
||
ROOT group. The candidate allocation must be rechecked before content packaging.
|
||
|
||
Source spell slots retain trigger, charges, cooldowns, category and slot index.
|
||
New effects are private to each corrected item; old shared ItemEffect rows are
|
||
preserved. Links are replaced only for accepted items. Missing native spell or
|
||
category references hold the entire item. Spell PPM remains Source server data;
|
||
native Name/Misc/Effect presence establishes references, not gameplay parity.
|
||
Generated transmog stand-ins remain excluded. Current Source agrees with DB2
|
||
for all 40 differing set-spell lists; no stale addon set spells are restored.
|
||
|
||
Build only `addon-source-authority-tests`. Run CTest `-R '^addon-source-authority$'`.
|
||
Set GW_ADDON_SOURCE_AUTHORITY_ROOT and GW_ADDON_SOURCE_AUTHORITY_READER to the
|
||
owned snapshot directory and existing read-only Db2Read.dll for the full
|
||
artifact gate. It independently reloads all baseline and candidate rows,
|
||
compares the complete intended delta, checks Source slot values and asset pixels.
|
||
Each bake also requires roundtripBad=0. The normal test uses synthetic fixtures.
|
||
|
||
This produces offline candidates, not a physical CASC content step. Composition
|
||
must update ROOT/ENCODING/storage on the pinned parent and include all 37 assets
|
||
alongside Item.db2. Do not install the DB2s alone. LOCAL visual/gameplay review
|
||
and the hotfix authority check are required before deleting addon tables.
|
||
|
||
## Reviewed follow-up 20b
|
||
|
||
`convert_spells.py` stages only the seven Source IDs authorized in 20a. It calls
|
||
`octo_spell_presentation.presentation_rows`, extracted without changing the
|
||
existing converter's field rules. Every Source row must match its already
|
||
present analogue except ID, localized name and the reviewed effect magnitude.
|
||
Timing/range/trigger references must exist. New child IDs exceed both installed
|
||
and packaged IDs. The seven explicitly approved dangling item slots are omitted
|
||
only while their spells remain absent from Source and native SpellName.
|
||
|
||
`compose_content.py --root ROOT --parent FROZEN_PARENT --client READ_ONLY_CLIENT
|
||
--listfile LISTFILE` uses the existing icon/DB2 composer and physical packager.
|
||
It requires the frozen parent's build-info hash to match LOCAL, allocates a fresh
|
||
archive segment, and leaves publication HOLD. The physical index layout belongs
|
||
to the frozen parent; a compacted LOCAL store requires the normal content delivery
|
||
workflow, not blindly copying that plan. No install/publication action is included.
|
||
|
||
Build `source-spell-conversion-tests`; run CTest `-R '^source-spell-conversion$'`.
|
||
Set GW_SOURCE_SPELL_CONVERSION_ROOT and GW_ADDON_SOURCE_AUTHORITY_READER for the
|
||
full artifact gate, including complete DB2 delta checks and forward/inverse
|
||
rehearsal in a temporary snapshot. The rehearsal does not claim engine acceptance.
|