ParadiseSS13 / Paradise

Paradise Station's GitHub main repository.
https://www.paradisestation.org/forum
GNU Affero General Public License v3.0
397 stars 1.18k forks source link

Runtimes dealing with inactive AI #18094

Open moxian opened 2 years ago

moxian commented 2 years ago

Issue Description:

[2022-06-26T07:19:23] Runtime in antag_hud.dm,35: bad index
[2022-06-26T07:19:23]   proc name: set antag hud (/proc/set_antag_hud)
[2022-06-26T07:19:23]   usr: Shrike () (/mob/living/silicon/ai)
[2022-06-26T07:19:23]   usr.loc: The floor (184,121,2) (/turf/simulated/floor/plasteel)
[2022-06-26T07:19:23]   src: null
[2022-06-26T07:19:23]   call stack:
[2022-06-26T07:19:23]   set antag hud(Shrike (/mob/living/silicon/ai), null)
[2022-06-26T07:19:23]   Tracy Ray (/datum/mind): transfer antag huds(null)
[2022-06-26T07:19:23]   Tracy Ray (/datum/mind): transfer to(Shrike (/mob/living/silicon/ai))
[2022-06-26T07:19:23]   Shrike (/mob/living/silicon/ai): New(the floor (184,121,2) (/turf/simulated/floor/plasteel), Crewsimov (/datum/ai_laws/crewsimov), the Man-Machine Interface: Tra... (/obj/item/mmi), 0)
[2022-06-26T07:19:23]   the inactive AI (/obj/structure/AIcore/deactivated): screwdriver act(Red Lecter (/mob/living/carbon/human), the screwdriver (/obj/item/screwdriver))
[2022-06-26T07:19:23]   the inactive AI (/obj/structure/AIcore/deactivated): tool act(Red Lecter (/mob/living/carbon/human), the screwdriver (/obj/item/screwdriver), "screwdriver")
[2022-06-26T07:19:23]   the screwdriver (/obj/item/screwdriver): tool attack chain(Red Lecter (/mob/living/carbon/human), the inactive AI (/obj/structure/AIcore/deactivated))
[2022-06-26T07:19:23]   the screwdriver (/obj/item/screwdriver): melee attack chain(Red Lecter (/mob/living/carbon/human), the inactive AI (/obj/structure/AIcore/deactivated), "icon-x=23;icon-y=14;left=1;but...")
[2022-06-26T07:19:23]   Red Lecter (/mob/living/carbon/human): ClickOn(the inactive AI (/obj/structure/AIcore/deactivated), "icon-x=23;icon-y=14;left=1;but...")
[2022-06-26T07:19:23]   the inactive AI (/obj/structure/AIcore/deactivated): Click(the floor (184,121,2) (/turf/simulated/floor/plasteel), "mapwindow.map", "icon-x=23;icon-y=14;left=1;but...")
[2022-06-26T07:19:23] Runtime in data_huds.dm,316: bad index
[2022-06-26T07:19:23]   proc name: diag hud set status (/mob/living/silicon/proc/diag_hud_set_status)
[2022-06-26T07:19:23]   usr: Shrike (**CKEY**) (/mob/living/silicon/ai)
[2022-06-26T07:19:23]   usr.loc: The floor (184,121,2) (/turf/simulated/floor/plasteel)
[2022-06-26T07:19:23]   src: Shrike (/mob/living/silicon/ai)
[2022-06-26T07:19:23]   src.loc: the floor (184,121,2) (/turf/simulated/floor/plasteel)
[2022-06-26T07:19:23]   call stack:
[2022-06-26T07:19:23]   Shrike (/mob/living/silicon/ai): diag hud set status()
[2022-06-26T07:19:23]   Shrike (/mob/living/silicon/ai): update stat("mob login")
[2022-06-26T07:19:23]   Shrike (/mob/living/silicon/ai): Login()
[2022-06-26T07:19:23]   Shrike (/mob/living/silicon/ai): Login()
[2022-06-26T07:19:23]   Shrike (/mob/living/silicon/ai): Login()
[2022-06-26T07:19:23]   Tracy Ray (/datum/mind): transfer to(Shrike (/mob/living/silicon/ai))
[2022-06-26T07:19:23]   Shrike (/mob/living/silicon/ai): New(the floor (184,121,2) (/turf/simulated/floor/plasteel), Crewsimov (/datum/ai_laws/crewsimov), the Man-Machine Interface: Tra... (/obj/item/mmi), 0)
[2022-06-26T07:19:23]   the inactive AI (/obj/structure/AIcore/deactivated): screwdriver act(Red Lecter (/mob/living/carbon/human), the screwdriver (/obj/item/screwdriver))
[2022-06-26T07:19:23]   the inactive AI (/obj/structure/AIcore/deactivated): tool act(Red Lecter (/mob/living/carbon/human), the screwdriver (/obj/item/screwdriver), "screwdriver")
[2022-06-26T07:19:23]   the screwdriver (/obj/item/screwdriver): tool attack chain(Red Lecter (/mob/living/carbon/human), the inactive AI (/obj/structure/AIcore/deactivated))
[2022-06-26T07:19:23]   the screwdriver (/obj/item/screwdriver): melee attack chain(Red Lecter (/mob/living/carbon/human), the inactive AI (/obj/structure/AIcore/deactivated), "icon-x=23;icon-y=14;left=1;but...")
[2022-06-26T07:19:23]   Red Lecter (/mob/living/carbon/human): ClickOn(the inactive AI (/obj/structure/AIcore/deactivated), "icon-x=23;icon-y=14;left=1;but...")
[2022-06-26T07:19:23]   the inactive AI (/obj/structure/AIcore/deactivated): Click(the floor (184,121,2) (/turf/simulated/floor/plasteel), "mapwindow.map", "icon-x=23;icon-y=14;left=1;but...")

Extra information: this is from round 31832 runtime log; i was not in the round and have no further context

GDNgit commented 1 year ago

I need to test this, but this seems to be due to an ai being constructed Happens with diag huds too