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

@@ -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<max_iterations, i++)
@@ -106,4 +106,4 @@
return 1
fileaccess_timer = world.time + FTPDELAY
return 0
#undef FTPDELAY
#undef FTPDELAY