Load()
var
savefile/F=new("Saves/[uppertext(copytext(key,1,2))]/[key].sav")
tempcontents = list()
i = 0
F["contents"] >> tempcontents
for(var/S in tempcontents)
contents += S
F["name"] >> name
F["verbs"] >> verbs
F["arm"] >> arm
F["leg"] >> leg
F["body"] >> body
F["head"] >> head
F["phys_power"] >> phys_power
F["phys_endur"] >> phys_endur
F["spirit_power"] >> spirit_power
F["spirit_endur"] >> spirit_endur
F["evasion"] >> evasion
F["seal_speed"] >> seal_speed
F["critical"] >> critical
F["accuracy"] >> accuracy
F["exp"] >> exp
F["fatigue"] >> fatigue
F["yen"] >> yen
F["quests"] >> quests
F["kills"] >> kills
F["deaths"] >> deaths
F["status"] >> status
F["skillpoints"] >> skillpoints
F["birds_kicked"] >> birds_kicked
F["trash_cleaned"] >> trash_cleaned
F["on_mission"] >> on_mission
F["icon_type"] >> icon_type
F["hair_type"] >> hair_type
for(var/town_idx in towns)
var/town/V = towns[town_idx]
if(V.CheckMembership(src))
town = V
V.online += src
break
for(var/A in contents)
i ++
src << output(A, "grid2:[i],[i]")
loc = locate(F["x"], F["y"], F["z"])
mob
Login()
// temporary stuff for testing
loc = locate(1, 3, 1)
winshow(src,"show",0)
winshow(src, "Creation", 0)
winset(src,"main","is-maximized = true")
winset(src,"show","pos = 0x700")
spawn() Output_Stats()
spawn() Cycle()
if(fexists("Saves/[uppertext(copytext(key,1,2))]/[key].sav"))
Load()
else
winshow(src, "Creation", 1)
winshow(src, "main", 0)
src << output("We've noticed this is your first time logging in, so go ahead and create. We hope that you enjoy the game, and thanks for trying it out!", "error")
Problem description:
This is the first time I've ever had problems with a savefile. but it saves fine(I checked this already), it just never loads anything from the savefile, any idea why? I've done checks to make sure it's called, and it is being called.
but, why save and load all this stuff individually?