TestSave()
var/savefile/F = new()//make a new one
rank = md5("newbie")
F["usr"] << usr
usr.client.Export(F)
// File seperation here
client/New()
..()
var/savefile/client_file = new(Import())
if(client_file)
client_file["usr"] >> mob
return ..()
Problem description:
It doesn't work.. In the demo I acquired it from it works perfectly. I've tried to use it, reproduced it, hell even make the variables the original uses, the original is as follows.
mob/var/saved = 0
mob/var/money = 0
mob/var/description
/* Below is the code for saving the file */
mob/verb/save()
var/savefile/F = new()//make a new one
// F["usr"] << usr// use this if you want to save ALL the vars
F["saved2"] << saved
F["money"] << money
F["description"] << description
usr.client.Export(F)
/* Below is the code for loading the saved file */
client/New()
..()
var/savefile/client_file = new(Import())
if(client_file)
// client_file["usr"] >> mob //use this if you want to save ALL of the users vars
client_file["saved2"] >> mob.saved
client_file["money"] >> mob.money
client_file["description"] >> mob.description
return ..()
Since the code above is all out dated. I haven't found any means to be up to date. Any or all assistance is appreciated.