OpenDream
OpenDream copied to clipboard
Global var definition not recognizing another previously declared global var.
When trying to compile /vg/station, the following error occurs:
Error at __DEFINES\global.dm:120:21: Type /datum/map/active does not exist
at the following location:
120 var/shuttle_z = map.zCentcomm //default
/datum/map/active
is defined multiple times in map .dm files. The only one included in the .dme by default is Box Station. The contents of the relevant file, tgstation.dm
, where /datum/map/active
is defined, are:
#ifndef MAP_OVERRIDE
...
/datum/map/active
nameShort = "box"
nameLong = "Box Station"
map_dir = "boxstation"
tDomeX = 128
tDomeY = 58
tDomeZ = 2
zLevels = list(
...
#include "tgstation.dmm"
#endif
I'm not sure what the issue is caused by.
Line 38 in __DEFINES\global.dm
, where map
is declared, is:
/var/global/datum/map/active/map = new() //Current loaded map
And something different about that line is that there is a /
before var
. I thought that might be related but removing the /
had no effect.
This error no longer occurs.