Saveobjs()
var/savefile/F = new("Saves/REALMDATA/Narutoenvironment.sav")
var/list/L = new
for(var/mob/destructablemobobj/dmo in world)
dmo.ly=dmo.y
dmo.lx=dmo.x
dmo.lz=dmo.z
L+=dmo
F["Environment"]<<L
Loadobjs()
var/savefile/F = new("Saves/REALMDATA/Narutoenvironment.sav")
var/list/L = new
F["Environment"]>>L
for(var/mob/destructablemobobj/d2 in L)
d2.loc=locate(d2.lx,d2.ly,d2.lz)
Problem description: I am trying to save certain objects on the map so that they reappear upon server reboot. The list is saving just the way it needs to, but the variables of the objects in the list don't seem to be loading at all.
(The objects don't relocate because the lx, ly, and lz aren't loading (but they are saving)).
Also: you can look at the savefile with ExportText() to see if the variables are actually getting saved. If they aren't, it's probably because you declared them as tmp.