45 lines
4.2 KiB
Markdown
45 lines
4.2 KiB
Markdown
# Hunter stance-bar rows for Gitea #11
|
||
|
||
The Octo 1.12 spell catalogue marks 21 Hunter spells with `Spell.AttributesExB & 0x10`. The current LOCAL 70334 data drops this bit on 13 spells and gives 20 spells a different stance order. The component restores the bit in `SpellMisc.Attributes[2]` and writes the signed order to `SpellShapeshift.StanceBarOrder`. The game continues to determine which ranks the character knows.
|
||
|
||
| Octo family | Octo order | Ranks | Changes on LOCAL build 6838d93c |
|
||
| --- | ---: | ---: | --- |
|
||
| Monkey | 0 | 1 | Set the display bit. Zero is the implicit native order. |
|
||
| Hawk | 1 | 7 | Set the display bit and add order rows. |
|
||
| Wolf | 2 | 7 | Add order rows. |
|
||
| Cheetah | 3 | 1 | Set the display bit and add an order row. |
|
||
| Pack | 4 | 1 | Set the display bit and add an order row. |
|
||
| Beast | 5 | 1 | Set the display bit and add an order row. |
|
||
| Wild | 6 | 2 | Set the display bit and add order rows. |
|
||
| Viper | −1 | 1 | Restore the explicit signed value. Its on-screen position needs a client check. |
|
||
|
||
The Turtle and Snake spells lack the Octo display flag. The generator selects spells by the source class family and display bit, so trainer wrappers, same-name triggered spells and those two abilities receive no rows.
|
||
|
||
## Evidence
|
||
|
||
- The Octo `bonusactionbarframe.lua` reads the engine's `GetNumShapeshiftForms()` at line 134 and `GetShapeshiftFormInfo(i)` at line 170. It casts through `CastShapeshiftForm(id)` at line 205. Build 70334 `Blizzard_ActionBar/Shared/StanceBar.lua` calls the same APIs at lines 31, 70 and 107.
|
||
- Turtle's `src/game/Spells/SpellDefines.h` names bit 4 of the second extended attribute word `SPELL_ATTR_EX2_DISPLAY_IN_STANCE_BAR`. The 70334 schema reference's `src/server/game/Miscellaneous/SharedDefines.h` names it `SPELL_ATTR2_USE_SHAPESHIFT_BAR`.
|
||
- Paladin Devotion Aura (465) is a native control with the bit set and no order child. Retribution Aura (7294) has the same bit and an order-1 child (39546). Native Paladin order children for source-marked auras match Octo values 1 through 7. The 70334 table includes 783 rows with signed order −1.
|
||
- The effective Octo source census used 30,790 spell rows. Its 21 Hunter selections, orders and two generated row batches also match the separately extracted patch-O catalogue. The source and input table SHA-256 digests are in [the manifest](manifest.json).
|
||
|
||
## Rebuild and verify
|
||
|
||
Extract enUS FileDataIDs 1003144 (`SpellMisc.db2`) and 1139929 (`SpellShapeshift.db2`) from the integration parent into a private directory. The checked-in batches use LOCAL build `6838d93c8b480717352db03f968cf7e0`. From the repository root, generate fresh inputs against the chosen parent. The output directory must be new.
|
||
|
||
```sh
|
||
python3 ops/hunter_aspect_rows.py "$octo_spell_dbc" "$parent_dir" "$dbd_dir" "$db2_gameplay_dll" "$rows_dir"
|
||
```
|
||
|
||
For the recorded parent, run both Db2Bake operations into an empty private directory. Each line should report `roundtripBad=0`.
|
||
|
||
```sh
|
||
dotnet "$db2_bake_dll" setrows "$parent_dir" "$dbd_dir" SpellMisc "$rows_dir/SpellMisc.setrows.json" "$baked_dir/SpellMisc.db2"
|
||
dotnet "$db2_bake_dll" addrows "$parent_dir" "$dbd_dir" SpellShapeshift "$rows_dir/SpellShapeshift.addrows.json" "$baked_dir/SpellShapeshift.db2"
|
||
```
|
||
|
||
On a future parent, any nonempty `SpellShapeshift.setrows.json` updates existing order rows. Apply it with Db2Bake `setrows` first and use that output as the input to the `addrows` step. Skip empty batches. Running the generator against the fully edited tables should produce three empty batches.
|
||
|
||
On the recorded parent the pre-change check found 13 flag mismatches and 20 order mismatches. After baking, a separate all-field readback compared every one of the 43,376 SpellMisc rows and all 3,467 existing SpellShapeshift rows. Only the 13 expected flag bits changed, and 20 zero-mask order children were added. All 21 spells then matched both source fields. The output digests are `53d59c8783a9cf98f0d5ed79719787dbfbd3bfa9f94bd086a3c8653d4b6a9cb0` for SpellMisc and `836caae4d2a11836964acba0f80bbdc0eaadf262f0f7dd5d0605a0b7f4bb6940` for SpellShapeshift.
|
||
|
||
The remaining gameplay check is to log into a LOCAL Hunter with known aspects, verify that only the learned ranks appear, switch between them, and observe the active button and cooldown.
|