Difference between revisions of "Wizhelp/Crash"

From DikuMUD Wiki
Jump to navigation Jump to search
(Crash: the exact phrase, no abbreviation, standing, level 255; assert-based so a Release build ignores it; the old note kept, from act_wizard.cpp do_crash)
 
(Crash works in any build)
 
Line 9: Line 9:
 
refused. You must be standing. It is logged.
 
refused. You must be standing. It is logged.
  
−
It crashes the game by a failed assertion, so it only works in a build  
+
It aborts the server, as a failed assertion would, in any build: the
−
with assertions, such as the Debug build. In a Release build, which is
+
core dump and the restart follow as after a real crash.
−
compiled without them, nothing happens at all.
 
  
 
''From the old help:'' "This wiz-command is the only possible way of  
 
''From the old help:'' "This wiz-command is the only possible way of  

Latest revision as of 07:13, 8 November 2026

Crash (255)

Usage:

crash the entire game...

Crashes the game on purpose, to test what happens when it goes down (the core dump, the restart scripts). You must type the whole phrase exactly, with the three dots, and the command itself in full: an abbreviation is refused. You must be standing. It is logged.

It aborts the server, as a failed assertion would, in any build: the core dump and the restart follow as after a real crash.

From the old help: "This wiz-command is the only possible way of crashing the game." Kira added: "Maaaybe I'm wrong, but I think there might be one or two other ways to crash the game *grin*."


See Also:

> {Wizhelp Reboot}
> {Wizhelp Shutdown}