ID:143002
 
Code:
client
verb
Save()
set category = "Social"
SaveMob()
usr << "<i>Saving...</i>"
sleep(10)
usr << "<i>Saved!</i>"

client/proc/SaveMob()
var/firstletter=copytext(src.ckey, 1, 2)
var/savefile/F = new("players/[firstletter]/[src.ckey].sav")


Problem description:there are no errors but when i run the game nd save it, nd i open nd load it again it doesnt load the same thing i saved b4 or could it be a load problem?


No actual saving is ocurring in that code, you need to actually write something to the file, not just create it. You'll need to load it back again as well. Very basically:
var/savefile/f = new("savefile.sav") // You have this bit
f["whatever"] << thing_to_save

//And then:
f["whatever"] >> var_to_load_into
In response to Hazman
or just use Write() and Read()
In response to Scizzees
Write() and Read() are called when you use << and >> with savefiles, so calling them directly is not needed.
In response to Hazman
so i just add that piece you gave me? what do i put in the whatevers?
In response to Iraqii
this is my load peice
client/proc/LoadMob(char_ckey)
var/firstletter=copytext(src.ckey, 1, 2)
var/savefile/F = new("players/[firstletter]/[src.ckey].sav")
F["/[ckey]/[char_ckey]"]>>src.mob

mob
proc/Load()
var/list/characters = src.CharacterList2()

var/newCharacterChoice = "New Character"
var/DeleteCharacterChoice = "Delete Character"
var/list/menu = new()
menu += characters
/* menu += newCharacterChoice
menu += DeleteCharacterChoice*/


var/result = input("Loading...", "Ages") in menu

if (result == newCharacterChoice)
src.Start()
if (result == DeleteCharacterChoice)
src.DeleteCharacter2()
src.Start()
else
var/success = src.client.LoadMob(result)

if (success)
del(src)
else
src.Start()
proc/CharacterList2()
var/firstletter=copytext(src.ckey, 1, 2)
var/savefile/F = new("players/[firstletter]/[src.ckey].sav")
F.cd = "/[ckey]"
var/list/characters = F.dir
return characters