- Coded in a debug report feature for the master controller. If the MC's delaying loop does not pass within 600 iterations (roughly 60 seconds) it means the procs are likely broken. A warning + report is displayed to admins as well as it being saved to the admin log.

The MC Delayer in the screenshot is an item coded for testing purposes which simulates a proc break. It is not part of this commit. Clicking on it will open up the view variables panel for the item.

Last-processed-item logging is supported for diseases, processing objects and machinery.

Screenshot:
http://www.kamletos.si/MC%20debug%20report.PNG

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3848 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-06-17 06:20:24 +00:00
parent 3e5723574a
commit ab734d0472
2 changed files with 41 additions and 17 deletions

View File

@@ -3,15 +3,17 @@ var/global/BSACooldown = 0
////////////////////////////////
/proc/message_admins(var/text, var/admin_ref = 0)
/proc/message_admins(var/text, var/admin_ref = 0, var/admin_holder_ref = 0)
var/rendered = "<span class=\"admin\"><span class=\"prefix\">ADMIN LOG:</span> <span class=\"message\">[text]</span></span>"
log_adminwarn(rendered)
for (var/mob/M in world)
if (M && M.client && M.client.holder)
var/msg = rendered
if (admin_ref)
M << dd_replaceText(rendered, "%admin_ref%", "\ref[M]")
else
M << rendered
msg = dd_replaceText(msg, "%admin_ref%", "\ref[M]")
if (admin_holder_ref && M.client.holder)
msg = dd_replaceText(msg, "%holder_ref%", "\ref[M.client.holder]")
M << msg
/obj/admins/Topic(href, href_list)