In response to Vokicpower
Read what dream dameon has to say in the bug report, it isn't just there for looks.
In response to Vokicpower
Copying what's in Write() and Read() is not how you do things. The example I showed in client/New() and client/Del(), and then suggested looking at again, and then told you to mimic, and then gave you another example of, is how you are supposed to save and load.
In response to Garthor
Okay thanks I will go On Check stuff before trying to understand until then I bet I have some more questions
In response to Vokicpower
Okay I have to say that I Seriously dont get it , I worked through the night and didnt made ANY progress, My Title screen just wont load the file with the stats I cant do it anymore. I cant understand how it works I need someone who shows me a code that works otherwise I dont know. Like I said at the beginning, Call me Stupid but I dont get it and without a working code I cant seem to understand what to do ..
In response to Vokicpower
[link]

That is a full, complete, 100% working example of how to save and load characters. If you wish for saving and loading to be done somewhere other than in client/New() and client/Del(), then move the code that is within client/New() and client/Del() to where you want saving and loading to occur. Again, the one caveat is that outside client/New(), loading a character is going to result in a leftover mob which you will need to delete.
In response to Garthor
Yeah but How do I Combine that with my Load Turf ? I dont know Thats what Im trying to Understand the whole Night
What should I do ?
In response to Vokicpower
Move the code from client/New() to wherever you want it. Change mob to really any other variable (usr would make the most sense, though). Remember to delete the old mob, so:
var/mob/M = usr
F["mob"] >> usr
del(M)


Also, again, you need to delete any old savefiles, because they will no longer work.
In response to Garthor
Thanks I will try that right now
And I have this problem:
Client worked and is working right now.
It saves the stats and Everything without Leaveing a mob behin But When I Restart the server All the Status is gone but the icon stays

turf/Load
density = 1
layer = 999
mouse_opacity2
layer10
Click()
usr.Load()






mob/var/
controling=0






mob //makes whatever is up a /mob
var //whatever is next is a /mob/var (variable)
faceicon = "" //creates the variable face_icon in /mob/var with no value.


turf
New
icon='player.dmi'
icon_state="New"
density=1
mouse_opacity=2
layer=10
Click()
usr.CreateCharacter()

client
New()
if(fexists("Playersaves/[key].sav"))
var/savefile/F = new("Playersaves/[key].sav")
F[ "mob" ] >> mob
mob.loc = locate(9,9,4)
..()

Del()
var/savefile/F = new("Playersaves/[key].sav")
F[ "mob" ] << mob



mob
Write(var/savefile/F)
..()
F["x"] << x
F["y"] << y
F["z"] << z
Read(var/savefile/F)
..()
loc = locate(F["x"], F["y"], F["z"])




mob/var/list
mob

turf
Load
icon='player.dmi'
icon_state="Load"
density=1
mouse_opacity=2
layer=10
Click()
usr.Load()


mob
proc
Load()
if(fexists("Playersaves/[src.key].sav"))
var/savefile/F = new("Playersaves/[src.key].sav")
Read(F)

mob/verb/save()
var/savefile/F = new("Playersaves/[usr.key].sav")
F << usr //write the player's mob
usr.client.Export(F)



mob
verb
SaveVerb()
set name ="Save"
var/savefile/F = new("Playersaves/[usr.key].sav")
Write(F)


Yes I know I have 2 save verbs but I dont know if they work ... Please take a look at it
In response to Vokicpower
Stop calling Read() and Write() directly. Doing that instead of what I am telling you to do is causing this to not work.

Additionally, F << usr is not the same as F["mob"] << usr.


Here is the Reference entry for savefiles.
Here is an article on savefiles.

You should read those.
In response to Garthor
Oh I know those Wait I will read until I get it
In response to Vokicpower
Okay Garthor Ive did what you said and i dont care who calls you an unhelpful peace of "" You really helped me, i learned how to do it and thats the only way to code I thank you , I made it so everything saves even after the server goes down
Your The best I definetly recommend Your help.
If peopel dont get it, they are simply to lazy.
I know now what I need to do I thank you very much
Page: 1 2