76 lines
5.7 KiB
Markdown
76 lines
5.7 KiB
Markdown
# Native boss mods (BigWigs functionality baked into the client) — design, 2026-11-22
|
|
|
|
Owner direction: BigWigs warnings, timers, sounds and announcements must be native to the client, with no 1.12
|
|
compatibility layer and no inter-client syncs (BigWigs desynced the whole raid on Firemaw breath more than once).
|
|
|
|
## Why BigWigs desyncs
|
|
Each 1.12 client parses its own combat-log *text* ("Firemaw begins to cast …") and raiders re-broadcast detections
|
|
as throttled addon syncs. A missed or late line in one client (range, log filtering, a server change — Octo's own
|
|
Firemaw module notes the Shadow Flame cast text "no longer appears in logs since 1.18") shifts that client's bars,
|
|
and syncs from it shift everyone else's.
|
|
|
|
## Native design (revised 2026-11-22: built-in client module on native events)
|
|
The 70334 client already turns the server packets the Backend translates into its own native events:
|
|
COMBAT_LOG_EVENT_UNFILTERED (SPELL_CAST_START/SUCCESS, SPELL_DAMAGE, AURA_APPLIED/_DOSE, UNIT_DIED, with spell IDs and
|
|
GUIDs), CHAT_MSG_MONSTER_YELL/EMOTE and RAID_BOSS_EMOTE. A Backend-side engine would read the same packets and add
|
|
nothing in accuracy, so the engine is a built-in client module, `client_addons/OctoBossMods`, keyed by spell ID (or the
|
|
native spell name for Octo-only spells the local data lacks). Same authority, no text parsing, no syncs.
|
|
Offline test: `tests/bossmods_harness.lua` (ctest client-bossmods-harness) drives real encounter event sequences.
|
|
|
|
## Original plan (superseded where it conflicts with the above)
|
|
1. **Authoritative input, per client, no syncs.** The Backend already translates every server packet. Encounter
|
|
detection reads those packets directly: SPELL_START / SPELL_GO (caster GUID + exact spell ID), aura updates,
|
|
MONSTER_YELL / EMOTE / RAID_BOSS_EMOTE text IDs, unit deaths, health fields, ENCOUNTER engage (combat state of the
|
|
boss GUID). Every raider's client gets the same packets, so every client computes the same timers.
|
|
2. **Compiled encounter data.** One table per boss: engage/wipe/kill conditions (creature entry), triggers
|
|
(spell id + event kind, yell text, health %, death of entry), actions (start bar N s, warn at T-k, announce,
|
|
sound, cancel/restart bar, phase change). Data is derived from Octo's current BigWigs fork
|
|
(octowow.st/git Hapto/Bigwigs, ~200 modules incl. Karazhan, Emerald Sanctum, Black Morass, TMH) by an extractor
|
|
that reads module timer/spellId/locale tables; triggers given only as combat text are mapped to spell IDs from
|
|
the client Spell DB2 and verified against a live packet capture before use. Generated header, pinned to the
|
|
fork commit, like the other generated profiles.
|
|
3. **Native presentation.**
|
|
- Warnings: native RaidBossEmoteFrame / RaidWarningFrame path (native chat type RAID_BOSS_EMOTE presentation,
|
|
local only — never sent to the server or to other players).
|
|
- Sounds: Octo's 72 voice/alert OGGs imported into client content (CASC FDIDs + SoundKit/SoundKitEntry rows),
|
|
played by a local native SMSG_PLAY_SOUND.
|
|
- Timer bars: built-in Blizzard-styled bar frame (own templates, native look), fed by the Backend's local
|
|
presentation channel; options in the native Settings panel.
|
|
- Pull / countdown: native START_TIMER (type 2). `/pull` and native `/countdown` interoperate with BigWigs users
|
|
through the original `BigWigs` raid addon message (PulltimerSync / PulltimerStopSync) — requires the peer
|
|
addon relay below.
|
|
4. **Peer addon relay** (prerequisite for pull interop; Turtle 1.12 SendAddonMessage PARTY/RAID/GUILD/WHISPER):
|
|
currently only reviewed TW_* service prefixes pass; peer traffic is dropped.
|
|
|
|
## Order
|
|
1. Peer addon relay + pull/countdown (host-tested).
|
|
2. Encounter engine in the Backend + presentation, with Firemaw as the reference encounter (host test feeds real
|
|
packet sequences; timers must match the module's timer table).
|
|
3. Extractor + all modules, raids first: MC, BWL, ZG, Karazhan (owner test list), then the rest.
|
|
4. Live verification on the local server per raid (one login, offline), then owner raid test.
|
|
|
|
## Revision 2026-11-22b: Backend feed (no combat log in 70334)
|
|
|
|
In-client probe on the LOCAL copy showed `CombatLogGetCurrentEventInfo` is nil and registering
|
|
`COMBAT_LOG_EVENT_UNFILTERED` from an addon raises ADDON_ACTION_BLOCKED. OctoBossMods therefore takes
|
|
server facts from the Backend:
|
|
|
|
- Subscription (client → Backend only, never sent to the server): self-WHISPER addon messages with prefix
|
|
`OctoBM`: `R` (reset, feed on), `S <id> <id> ...` (spell IDs the loaded modules handle, ≤4096), `O` (off).
|
|
Sent on PLAYER_ENTERING_WORLD.
|
|
- Facts (Backend → client, local addon message, prefix `OctoBM`): `sub;spell;src;dst;amount;extra`,
|
|
actor `-` | `P<name>` | `C<entry>:<counter>`.
|
|
- SMSG_SPELL_START 0x131 → SPELL_CAST_START, SMSG_SPELL_GO 0x132 → SPELL_CAST_SUCCESS
|
|
- SMSG_SPELLNONMELEEDAMAGELOG 0x250 → SPELL_DAMAGE / SPELL_PERIODIC_DAMAGE (amount = damage)
|
|
- SMSG_SPELLLOGMISS 0x24b → SPELL_MISSED per target
|
|
- UNIT_FIELD_AURA / AURAAPPLICATIONS changes on visible units (not creations) → SPELL_AURA_APPLIED /
|
|
REMOVED / APPLIED_DOSE / REMOVED_DOSE (amount = stacks = byte + 1)
|
|
- creature UNIT_FIELD_HEALTH → 0 → UNIT_DIED (spell 0)
|
|
- own melee swing VICTIMSTATE_PARRY → SWING_MISSED extra PARRY (spell 0)
|
|
- Core.lua rebuilds GUID strings (`Creature-0-0-0-0-<entry>-<counter>`, own player = UnitGUID("player"))
|
|
and calls the module handlers with the old combat-log argument positions, so modules stay unchanged.
|
|
- Not fed: other players' swings, creature names (handlers keyed by Octo-only creature names, e.g.
|
|
Shadowflame Spark, stay inert until the local server has the content).
|
|
|
|
Every raider's Backend sees the same server packets at the same time, so no addon sync can desync.
|