proc
WorldSave()
var/savefile/F = new("world.sav")
for(var/vgoldinbank)
F["vgoldinbank"] << vgoldinbank
WorldLoad()
var/savefile/F = new("world.sav")
var/atom/A
while(!F.eof)
F >> A
Problem description:
Okay, basically I am sticking the procs into the World/New() and World/Del() but no matter what I do or try, I can't seem to get them to load properly. Something is saving, because it is making the world.sav and storing some data; but nothing ever loads. Upon closing/opening server, the data disappears. I've tried world/proc, removing the var/atom/A and while bits and just using F["vgoldinbank"] >> vgoldinbank, and different other methods that I've seen discussed around the Dev Forums, but I can't really find much information about saving world vars.
A lot of the time, the entire game freezes up upon attempting to close or open it, with this in place.
If you're wondering what I'm attempting to do, if it helps any, is make a per village banking system. All villagers can use the same bank to deposit funds into so that the leader of the village can use those funds to make village defense upgrades.
Didn't want to post for help, but I'm really stumped.
while(!F.eof)
What's eof ?
Also, the WorldLoad() should only be this.