From bfa14f2c2557b8a7d036dae9e6ec697d99832f22 Mon Sep 17 00:00:00 2001 From: Leshana Date: Mon, 2 Mar 2020 13:58:42 -0500 Subject: [PATCH] Cause the maploader to log an error if dmm file contains an undefined type. This will greatly ease debugging as otherwise the only error you might get is Runtime in reader.dm,370: list index out of bounds, and even then only if the turf has no objects. --- code/modules/maps/tg/reader.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/maps/tg/reader.dm b/code/modules/maps/tg/reader.dm index a95f16a287..6efb035a3f 100644 --- a/code/modules/maps/tg/reader.dm +++ b/code/modules/maps/tg/reader.dm @@ -292,6 +292,7 @@ var/global/use_preloader = FALSE old_position = dpos + 1 if(!atom_def) // Skip the item if the path does not exist. Fix your crap, mappers! + error("Maploader skipping undefined type: '[trim_text(copytext(full_def, 1, variables_start))]' (key=[model_key])") continue members.Add(atom_def)