ID:1677067
 
(See the best response by Gluscap.)
Could somebody post a snippet of how I would go about making a basic World Save system? I continue messing up with mine each time I try, so I'd like to see how to do it the right way.

A world save to save players or objects or what?
In response to Neimo
Wow, sorry! I forgot to mention what I wanted.

I'd like it to save world variables and a list.
Best response
world
New()
..()
load_world()

world
Del()
..()
save_world()

proc
load_world()
if(fexists("saves/world.sav"))
var/savefile/f = new("saves/world.sav")
f >> var1
f >> var2

save_world()
if(fexists("saves/world.sav"))
fdel("saves/world.sav")
var/savefile/f = new("saves/world.sav")
f << var1
f << var2


Lists are vars. var1/var2/varY could be the list.