ID:263314
 
Problem description:
It is adding the new guild to the list, but it is not loading them..it says "Guilds Loaded" but does not add the Guild to the Guilds list.
Code:
var
list/Guild_Names = list()
list/Guilds = list()
proc
Save_Guilds()
var/savefile/F = new("Guild.sav")
var/list/L = list()
for(var/obj/Guild/G in Guilds)
L.Add(G)
F["Guilds"] << L
world << "<font color=red><center>Guilds saved!"
Load_Guilds()
var/savefile/F = new("Guild.sav")
var/list/L = list()
F["Guilds"] << L
for(var/obj/Guild/G in L)
Guilds.Add(G)
world << G
world << "<font color=red><center>Guilds loaded!"



In your load section, I see this: F["Guilds"] << L

That makes the guild saved into the savelist as a null, you want >> not <<

BTW, when loading, also check if L is a list after loading, because if there was no guild before loading, L = null, not list()

- GhostAnime