Adds an adminverb to write map files.

Map files are stored in data/logs/saved_maps, as such they can be retried with .getserverlog.

Note: map files exported still need a LOT of cleaning afterwards (literally every turf has redundant variables that might even break things written to them).
This commit is contained in:
PJB3005
2016-01-16 12:00:08 +01:00
parent 2edef6b3f6
commit 0e2ced9e5e
5 changed files with 56 additions and 12 deletions

View File

@@ -1464,3 +1464,11 @@ var/proccalls = 1
#define NORMAL_ATTACK 0
#define ATTACK_BITE 1
#define ATTACK_KICK 2
// Defines for the map writer, moved here for reasons.
#define DMM_IGNORE_AREAS 1
#define DMM_IGNORE_TURFS 2
#define DMM_IGNORE_OBJS 4
#define DMM_IGNORE_NPCS 8
#define DMM_IGNORE_PLAYERS 16
#define DMM_IGNORE_MOBS 24