Skip to content

style(debug): reformat .cfbg debug into grouped, aligned sections#158

Merged
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:feat/cfbg-debug-wg-v2
May 31, 2026
Merged

style(debug): reformat .cfbg debug into grouped, aligned sections#158
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:feat/cfbg-debug-wg-v2

Conversation

@Nyeriah

@Nyeriah Nyeriah commented May 31, 2026

Copy link
Copy Markdown
Member

Follow-up to #157 — pure reformat of the .cfbg debug output, no behaviour change.

Summary

  • Splits the dump into Header / Faction / State / Fake record / Wintergrasp sections with consistent label widths and one value per line.
  • Renders WG set membership as a two-column Alliance / Horde table instead of the inline Queue A/H=Y/- Invited A/H=... string.
  • Adds an oddities count next to the section title (Oddities (3):).

Example output

=== CFBG debug: <Name> ===
  GUID: ...
  Config:  System=yes  WG=yes

  Faction
    Native     Alliance  (race 1)
    Current    Horde     (race 5)
    BG team    Horde
    Display    20578 (current) / 19724 (native)

  State
    Faked              yes
    Playing native     no
    In battleground    no
    Class / Gender     2 / 0
    Preferred race     0
    Forget BG players  no
    Forget in list     no

  Fake record
    Fake  team=Horde     race=5  morph=20578
    Real  team=Alliance  race=1  morph=...  nativeMorph=...

  Wintergrasp
    In WG zone   yes (zone 4197)
    War time     yes
    Player in sets:
                   Alliance  Horde
      Queue           -        -
      Invited         -        -
      In war          -        Y

  Oddities (1):
    ! Current team (Horde) does not match core WG side (Alliance)

Test plan

  • .cfbg debug on a player outside any BG/BF — visual check, no oddities.
  • .cfbg debug on a faked player in WG during war — visual check, oddities and set table populated as expected.

🤖 Generated with Claude Code

Splits the dump into Header / Faction / State / Fake record /
Wintergrasp sections with consistent label widths and one value per
line, and renders WG set membership as a two-column Alliance/Horde
table instead of an inline string. Oddities count is now shown next
to the section title.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Nyeriah Nyeriah force-pushed the feat/cfbg-debug-wg-v2 branch from e326fa0 to 4b12f83 Compare May 31, 2026 23:30
@Nyeriah Nyeriah changed the title feat(debug): WG-tailored .cfbg debug with team-desync checks style(debug): reformat .cfbg debug into grouped, aligned sections May 31, 2026
@Nyeriah Nyeriah merged commit 6968739 into azerothcore:master May 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant