ID:262470
 
Code:
mob
proc
Save()
var/savefile/F = new("Save/[src.ckey]")
src.Oldx = src.x; src.Oldy = src.y; src.Oldz = src.z
Write(F)
src << "<center>SAVED"
Load()
var/savefile/F = new("Save/[src.ckey]")
if(fexists(F))
Read(F)
src.x = src.Oldx; src.y = src.Oldy; src.z = src.Oldz
src << sound('Main.mid',1)


Problem description:
NEVER not in 1 of my games, has my save file system worked. Everytime either people save files get corrupted, or it makes the game have a big error, or logs me in invisible..

If this is the wrong way, I really need a new way..

k do this:

mob
proc
Save()
var/savefile/F = new("Save/[src.ckey]")
F["x"] << src.x
F["y"] << src.y
F["z"] << src.z
F["src"] << src
Write(F)
src << "<center>SAVED"
Load()
var/savefile/F = new("Save/[src.ckey]")
if(fexists(F))
Read(F)
F["x"] >> src.x
F["y"] >> src.y
F["z"] >> src.z
F["src"] >> src
src.loc = locate(x,y,z)
src << sound('Main.mid',1)
Sniper Joe wrote:
Problem description:
NEVER not in 1 of my games, has my save file system worked. Everytime either people save files get corrupted, or it makes the game have a big error, or logs me in invisible..

If this is the wrong way, I really need a new way..


Dude if u are having this much trouble check the libraries or go to BYOND Developer home page and search for Save World and some things should come up.. They explain there how to do it and maybe this will help you make your code!