proc
SaveObjects()
var/savefile/F = new ("Map.sav")
var/list/L = new
for(var/obj/O in world)
if(!O.owner) continue
if(O.owner)
O.saved_x = O.x
O.saved_y = O.y
O.saved_z = O.z
O.saved_owner = O.owner
O.saved_object = O
L += O
F[""] << L
proc/LoadObjects()
var/savefile/F = new ("Map.sav")
var/list/L = new
F[""] >> L
if(!L) return
for(var/obj/O in world)
for(var/obj/O in L)
O.loc = locate(O.saved_x,O.saved_y,O.saved_z)
O.owner = (O.saved_owner)
O = (O.saved_object)</b>
obj
var
saved_x
saved_y
saved_z
saved_owner
saved_object
mob/verb
SaveObjects()
SaveObjects()
LoadObjects()
LoadObjects()</b>
The problem is that the code does not save the layering. I know I've made the object's layer right, because I've used the wording codes. Like
wooden_floor layer=TURF_LAYER...And when the map saves and than you load it, the floor layer is over an OBJ_Layer which is a higher layer. Can anyone tell me why?