OpenDream icon indicating copy to clipboard operation
OpenDream copied to clipboard

Global var definition not recognizing another previously declared global var.

Open Hinaichigo opened this issue 2 years ago • 1 comments

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/activeis 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.

Hinaichigo avatar Jun 17 '22 06:06 Hinaichigo

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.

Hinaichigo avatar Jun 19 '22 00:06 Hinaichigo

This error no longer occurs.

Hinaichigo avatar Sep 14 '23 16:09 Hinaichigo