Is it possible to export the entire map as a single png image?
Is there any hidden export functionality I'm missing?
Nov 4 2015, 4:47 pm
|
|
There is not, you'd have to build the image manually. I think someone over on the Off-Topic forum posted some code a while back that did it, but I'm unsure of the exact topic.
|
I developed something like this for SS13 a while ago. It automatically builds a map based on the turfs around, but also caches the result so that it doesn't have to regenerate the PNG if the map hasn't changed.
See https://github.com/tgstation/-tg-station/blob/master/code/ game/machinery/computer/crew.dm for the relevant file. In the event something happens to the above URL I'll also post the relevant code here: /datum/crewmonitor So namely what I'm doing is generating an md5 hash of all the tiles on the map. The result is a unique hash that can be easily saved to a file and compared against. Generating an md5 hash is much faster than generating the map. "mapbase1024.png" is a 1024x1024 PNG file that contains a space background. I don't draw the main turf (/turf/space) to speed up the drawing process. |
To remove the definition for MINIMAP_DEBUG and prevent conflicts with other code files. Admittedly it should be left out as a developer should first check if a define is already in use.
|
In response to NullQuery
|
|
NullQuery wrote:
To remove the definition for MINIMAP_DEBUG and prevent conflicts with other code files. Admittedly it should be left out as a developer should first check if a define is already in use. I mean, within the context of your snippet, MINIMAP_DEBUG isn't even defined, and much less used. |