From 0e2ced9e5e97ccd8577d63a0673717ef00b17a27 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Sat, 16 Jan 2016 12:00:08 +0100 Subject: [PATCH] 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). --- code/__HELPERS/files.dm | 4 +- code/modules/admin/admin_verbs.dm | 3 +- code/modules/admin/verbs/randomverbs.dm | 39 +++++++++++++++++++ code/modules/awaymissions/maploader/writer.dm | 14 +++---- code/setup.dm | 8 ++++ 5 files changed, 56 insertions(+), 12 deletions(-) diff --git a/code/__HELPERS/files.dm b/code/__HELPERS/files.dm index 24450339995..f1fb0dbd981 100644 --- a/code/__HELPERS/files.dm +++ b/code/__HELPERS/files.dm @@ -66,7 +66,7 @@ for(var/file in args) src << browse_rsc(file) -/client/proc/browse_files(root="data/logs/", max_iterations=10, list/valid_extensions=list(".txt",".log",".htm", ".csv")) +/client/proc/browse_files(root="data/logs/", max_iterations=10, list/valid_extensions=list(".txt",".log",".htm", ".csv", ".dmm")) var/path = root for(var/i=0, i