feat: add .cfbg debug command for inspecting player CFBG state#152
Merged
Conversation
Console-accessible, gated to GM 1+ (SEC_MODERATOR). Defaults to target/self in-game; console requires a player name. Dumps enable flags, fake/native/forget flags, native vs current race/team/display, the preferred race setting, and the stored FakePlayer record when faked. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.cfbg debug [$playername], a console-accessible command (GM 1+) that dumps a player's CFBG state.Faked/PlayingNative/ForgetBGPlayers/ForgetInListPlayers, class/gender, native vs current race+team+display IDs, theSETTING_CFBG_RACEpreference, and the storedFakePlayerrecord (fake + real race/morph/team) when the player is currently faked.CFBG::GetFakePlayerfromprivatetopublicso the command can read the fake record.cfbg debugincfbg_commands.sql(security1, help text), and includes it in the matchingDELETEfor idempotency.Test plan
cfbg_commands.sqlagainstacore_world..cfbg debug(self),.cfbg debugwith another player targeted,.cfbg debug PlayerName.cfbg debug PlayerName(online) and confirm offline name returnsPlayer not found.Fake recordblock appears only while inside a BG / WG war (i.e. while the player is in_fakePlayerStore)..cfbg debug.🤖 Generated with Claude Code