mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Paradise error handler (#10571)
* Ports the Paradise error handler. Made by @Krausus Initial code port, it compiles! * It now looks cool! All kinds of fancy CSS and HTML things. * Stuff Fixes Comic's comments. Ports some more changes from Paradise. The src from the machinery process is NOT included. I consider stack traces more valuable.
This commit is contained in:
@@ -174,6 +174,12 @@
|
||||
|
||||
var/enable_roundstart_away_missions = 0
|
||||
|
||||
// Error handler config options.
|
||||
var/error_cooldown = 600 // The "cooldown" time for each occurrence of a unique error
|
||||
var/error_limit = 9 // How many occurrences before the next will silence them
|
||||
var/error_silence_time = 6000 // How long a unique error will be silenced for
|
||||
var/error_msg_delay = 50 // How long to wait between messaging admins about occurrences of a unique error
|
||||
|
||||
/datum/configuration/New()
|
||||
. = ..()
|
||||
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
||||
@@ -544,6 +550,15 @@
|
||||
enable_roundstart_away_missions = 1
|
||||
if("enable_wages")
|
||||
roundstart_enable_wages = 1
|
||||
if("error_cooldown")
|
||||
error_cooldown = value
|
||||
if("error_limit")
|
||||
error_limit = value
|
||||
if("error_silence_time")
|
||||
error_silence_time = value
|
||||
if("error_msg_delay")
|
||||
error_msg_delay = value
|
||||
|
||||
else
|
||||
diary << "Unknown setting in configuration: '[name]'"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user