Skip to content

Row 205: v83 GM slash commands + HC ADMIN_RESULT and GmCommands - #1007

Merged
neeerp merged 1 commit into
masterfrom
v83/gm-slash
Oct 25, 2026
Merged

neeerp merged 1 commit into
masterfrom
v83/gm-slash

Conversation

@neeerp

@neeerp neeerp commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Row 205: the v83 client's own GM slash commands, on both the client and the server (report b175).

Server

  • ADMIN_BROADCAST (0x76): E1 scope, E1 type, Str text. Scope is 0 world, 1 channel, 2 map; type is 0 notice, 1 alert, 4 slide. It becomes a BROADCAST_MSG to that scope. A slide with no text takes the slide down (build_slide). GM tier.
  • ADMIN_COMMAND 0x1E warning (/w NAME MSG): an alert to NAME on any channel, and ADMIN_RESULT 0x1E 1 or 0 to the GM. Helper tier.
  • ADMIN_LOG (0x81): each line the client sends after a command is logged under gm_audit. 0x86 (/slideax) is accepted and does nothing.

HeavenClient

  • ADMIN_RESULT (144, AdminResult), read as v83's FUN_005352e9 does:
    • modes 4, 5, 6, 9, 0x13, 0x1d, 0x1e and 0x26 give their chat lines;
    • 0x13 also reads 0x1d's byte;
    • 0x1b and 0x1c turn the minimap off and on.
  • A scrolling notice turned off now takes the one showing down.
  • AccountGrade::rank() follows FUN_0052f031. The GM commands are read only for grade bit 0 or a sub-grade of 0x20, 0x40 or 0x80, before the players' commands (GmCommand::parse and GmCommands::run, hooked into UIChatBar). Commands by rank:
    • rank 4 or below: /h N;
    • rank 3 or below: /ch N, /u, /w NAME MSG, /ban NAME and /uclip;
    • rank 2 or below: the twelve /alert*, /notice* and /slide* commands (with /alertm and /noticem) and /slideax.
  • Each command is followed by ADMIN_LOG.
  • Not done: /flag, /block's dialog, /c, /clip. The server ignores /u, /uclip and /ban for now; /ban is planned with the discipline commands.

Tests

  • Unit tests: admin_command (net).
  • Client tests: admin_result_tests, gm_command_tests and account_grade_tests (build-dbg).
  • Harness: gm_slash, a GM's notice and warning reaching a player, and a player's being ignored. gm_commands also passes.

… GM_SLIDE 0x86, 0x80 0x1E warn) and HC's ADMIN_RESULT handler and GmCommands, by v83's rank ladder
@neeerp
neeerp merged commit e4e7899 into master Oct 25, 2026
1 check passed
@neeerp
neeerp deleted the v83/gm-slash branch October 25, 2026 19:43
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