ID:271563
 
Well, I tried putting this under code problems, but I think it may get some respose here.

I'm trying to figure out how to save World variables, like a ban list, or an Admin list, ect.

I've tried just saving them directly, or assigning them to a mob that gets saved. It's not seeming to work.
proc/SaveList(list/L)
var/savefile/F=new("SavedLists/[L].sav")
F["[L]"] << L.Copy()
proc/LoadList(list/L)
var/savefile/F=new("SavedLists/[L].sav")
for(var/f in F["[L]"]) L.Add(f)


world
New()
.=..()
LoadList(BanList)
Del()
SaveList(BanList)
..()


WARNING: Indentations are wrong.

And you dont have to set saves for Admin lists. Just pre-define them. IE

var/list/AdminList=list("Mikey")