ID:263026
 
Code:
proc/Save_GM_Names()
var/savefile/F = new ("Staff.sav")
F["Staff names"] << Staff_Names
F["Banned"] << BP
F["Muted"] << Mute


proc/Load_GM_Names()
if(fexists("Staff.sav"))
var/savefile/F = new ("Staff.sav")
F["Staff names"] >> Staff_Names
F["Banned"] >> BP
F["Muted"] >> Mute

world/New()
..()
var/savefile/X = new("World.sav")
//some other stuff here
Load_GM_Names()
world/Del()
var/savefile/X = new("World.sav")
//some other stuff here
Save_GM_Names()
..()


Problem description:
Neither I nor Detnom could figure out why this is not working.
Yep, it's like I told you: You're not checking if the lists you've loaded are null.

Lummox JR
In response to Crzylme
Nope, unsuccessful still. I've searched all the included files I have and made sure there wasn't anything overriding world/New() and world/Del() and there wasn't anything.

What would be a better way to go about this? The reason I;m saving the lists is because I give staff members a choice on whether there char is GM char or not at creation. If it is, add the char to the list, if not continue with the rest of creation. that way i don't have to manually go in and add in everyu char name thats GM.
In response to Pyro_dragons
A little help please? Thanks to you.
In response to Pyro_dragons
No idea eh?
In response to Pyro_dragons
Dude, I already told you twice how to fix this. On the pager I told you what I suspected the problem was, and when I saw your post here it confirmed my guess. So I told you in another post on this very same thread how to fix the problem, and it's like you never read it. Before bumping a thread, try rereading its responses thoroughly.

Since you never posted a follow-up, I can safely assume that you didn't read it. If you had, to still be in this position you'd have either 1) not understood it, or 2) tried something you thought would work, neglected to say so when it didn't work, then neglected to say what you tried and ask for further clarification. The reason you're not getting timely responses is either that you're not communicating, or that you're not bothering to read what others communicate.

The reason things aren't saving right--or one of them at least--is that you're loading lists that may well be null, as in not an actual list. That'll happen if you have an old savefile to begin with and the values you try to load don't exist there. Any time you load a list, check to be sure it's really there. Or else any time you add to it, make sure you initialize it first if it doesn't already exist. That is:
if(!mylist) mylist=list()
mylist += value

It didn't have to take a week to get to that, because you had your answer last week and ignored it.

Lummox JR