From fa407a034a602a7d4e7a4150446bd59f3410e2c8 Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Wed, 17 Sep 2025 05:36:34 -0700 Subject: [PATCH] [MIRROR] runtime viewer fixes (#11668) Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> --- .../components/antags/changeling/powers/shriek.dm | 2 +- code/game/machinery/doors/airlock.dm | 2 +- code/game/objects/items/devices/laserpointer.dm | 2 +- code/modules/admin/topic.dm | 11 +++++++++++ code/modules/error_handler/error_viewer.dm | 2 +- .../mob/living/silicon/robot/subtypes/lost_drone.dm | 6 +++--- code/modules/projectiles/gun.dm | 2 +- code/modules/reagents/reagent_containers/pill.dm | 2 +- 8 files changed, 20 insertions(+), 9 deletions(-) diff --git a/code/datums/components/antags/changeling/powers/shriek.dm b/code/datums/components/antags/changeling/powers/shriek.dm index ed2e25ae5e..c3f6a8ff3a 100644 --- a/code/datums/components/antags/changeling/powers/shriek.dm +++ b/code/datums/components/antags/changeling/powers/shriek.dm @@ -141,7 +141,7 @@ changeling.set_cooldown(CHANGELING_SCREECH, 10 SECONDS) addtimer(CALLBACK(src, PROC_REF(changeling_screech_ready)), 10 SECONDS, TIMER_DELETE_ME) visible_message(span_notice("[src] appears to shout.")) - add_attack_logs(src,null,"Use dissonant shriek") + add_attack_logs(src,src,"Use dissonant shriek") return TRUE /mob/proc/changeling_screech_ready() diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index e1912c96ce..6c3dea98d3 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -773,7 +773,7 @@ About the new airlock wires panel: else if(duration) //electrify door for the given duration seconds if(usr) shockedby += text("\[[time_stamp()]\] - [usr](ckey:[usr.ckey])") - add_attack_logs(usr,name,"Electrified a door") + add_attack_logs(usr,src,"Electrified a door") else shockedby += text("\[[time_stamp()]\] - EMP)") message = "The door is now electrified [duration == -1 ? "permanently" : "for [duration] second\s"]." diff --git a/code/game/objects/items/devices/laserpointer.dm b/code/game/objects/items/devices/laserpointer.dm index 1cd93ea0b0..0280336bae 100644 --- a/code/game/objects/items/devices/laserpointer.dm +++ b/code/game/objects/items/devices/laserpointer.dm @@ -165,7 +165,7 @@ if(prob(effectchance * diode.rating)) C.emp_act(4 - diode.rating) outmsg = span_notice("You shine the [src] into the lens of [C].") - add_attack_logs(user,C.name,"Tried disabling using [src]") + add_attack_logs(user,C,"Tried disabling using [src]") else outmsg = span_info("You missed the lens of [C] with [src].") diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index b4aad3630d..bfacac7c3d 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1224,6 +1224,17 @@ sleep(2) C.jumptocoord(x,y,z) + else if(href_list["viewruntime"]) + var/datum/error_viewer/error_viewer = locate(href_list["viewruntime"]) + if(!istype(error_viewer)) + to_chat(usr, span_warning("That runtime viewer no longer exists."), confidential = TRUE) + return + + if(href_list["viewruntime_backto"]) + error_viewer.show_to(owner, locate(href_list["viewruntime_backto"]), href_list["viewruntime_linear"]) + else + error_viewer.show_to(owner, null, href_list["viewruntime_linear"]) + else if(href_list["adminchecklaws"]) output_ai_laws() diff --git a/code/modules/error_handler/error_viewer.dm b/code/modules/error_handler/error_viewer.dm index 45771405e3..71a2cf641a 100644 --- a/code/modules/error_handler/error_viewer.dm +++ b/code/modules/error_handler/error_viewer.dm @@ -25,7 +25,7 @@ GLOBAL_DATUM(error_cache, /datum/error_viewer/error_cache) var/name = "" /datum/error_viewer/proc/browse_to(client/user, html) - var/datum/browser/browser = new(user.mob, "error_viewer", null, 600, 400) + var/datum/browser/browser = new(user.mob, "error_viewer", null, 800, 400) browser.set_content(html) browser.set_head_content({"