diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index fc8621d715e..106139f59bb 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -795,6 +795,15 @@ GLOB.error_cache.show_to(src) + // The runtime viewer has the potential to crash the server if there's a LOT of runtimes + // this has happened before, multiple times, so we'll just leave an alert on it + if(GLOB.total_runtimes >= 50000) // arbitrary number, I don't know when exactly it happens + var/warning = "There are a lot of runtimes, clicking any button (especially \"linear\") can have the potential to lag or crash the server" + if(GLOB.total_runtimes >= 100000) + warning = "There are a TON of runtimes, clicking any button (especially \"linear\") WILL LIKELY crash the server" + // Not using TGUI alert, because it's view runtimes, stuff is probably broken + alert(usr, "[warning]. Proceed with caution. If you really need to see the runtimes, download the runtime log and view it in a text editor.", "HEED THIS WARNING CAREFULLY MORTAL") + /client/proc/pump_random_event() set category = "Debug" set name = "Pump Random Event"