ID:177744
 
How would I save the whole map? I really need help with this as soon as possible! PLZ I run a game called Blessed Lands and the guild system won't work without map saving! Help me plz! Is there some way to tweak deadrons save lib cause thats what I'm currently using!
I think there is a library out for it... I THINK... go look.
YOU must give credit to Green Lime
proc/SaveObjects()
var/savefile/F = new ("objects.sav")
var/list/L = new
for(var/obj/build/B in world)
B.saved_x = B.x
B.saved_y = B.y
B.saved_z = B.z
L += B
F[""] << L
proc/LoadObjects()
var/savefile/F = new ("objects.sav")
var/list/L = new
F[""] >> L
if(!L) return

for(var/obj/build/B in world) if(B.loc) del(B)

for(var/obj/build/B in L)
B.loc = locate(B.saved_x,B.saved_y,B.saved_z)

world
New()
LoadObjects()

Del()
SaveObjects()


Edit it to your needs

Thiefy