This code here does not seem to work correctly and I am not positive how to make a savefile correctly.
var |
ID:149437
Apr 29 2002, 2:37 pm
|
||
This is my first forray into savefiles. I need to save and load world globals. Also a quick question. Can lists be saved?
This code here does not seem to work correctly and I am not positive how to make a savefile correctly.
| ||
var/list/bah
world/New()
..()
var/savefile/F = new("bah.sav")
F["bah"] >> bah
if(isnull(bah))
bah = new /list
world/Del()
var/savefile/F = new("bah.sav")
F["bah"] << bah
..()
That should work post if it doesn't :)
Also one thing I believe what you put should have worked.. Did you get errors and are you sure they aren't saving and loading?