Load2()
var/savefile/load
var/last_x
var/last_y
var/last_z
var/HK
//var/HK
load = new ("Player Saves/[mob.ckey]/Save File [mob.savefile].sav")
load["mob"] >> src.mob
load["last_x"] >> last_x
load["last_y"] >> last_y
load["last_z"] >> last_z
load["last_Jutsus"] >> src.mob.Jutsus
src<<"Account loaded. [src.mob], [last_x], [last_y], [last_z]"
world<<"<b>Login Info:</b> [src.mob] has logged in!"
src.mob.loc=locate(last_x,last_y,last_z)
new/HK/Hotkey1(src.mob.client)
new/HK/Hotkey2(src.mob.client)
new/HK/Hotkey3(src.mob.client)
new/HK/Hotkey4(src.mob.client)
new/HK/Hotkey5(src.mob.client)
new/HK/Hotkey6(src.mob.client)
new/HK/Hotkey7(src.mob.client)
new/HK/Hotkey8(src.mob.client)
new/HK/Hotkey9(src.mob.client)
new/HK/Hotkey0(src.mob.client)
for(var/HK/H in src.mob.client.screen)
load["[H]K"] >> HK
if(H)
H.skill= HK
H.overlays+=HK
src.mob.Inventory+=new/obj/Clothing/Head/HeadbandIcon
src.mob.Refresh()
src.mob.Update()
src.mob.ChakraRegen=10
Save()
if(!src)return
if(!src.mob)return
if(src.mob.savefile>=1&&src.mob.savefile<=3)
var/savefile/save
save = new ("Player Saves/[mob.ckey]/Save File [mob.savefile].sav")
save["mob"] << src.mob
save["last_x"] << src.mob.x
save["last_y"] << src.mob.y
save["last_z"] << src.mob.z
save["last_Jutsus"] << src.mob.Jutsus
for(var/HK/H in src.mob.client.screen)
if(H.skill)
save["[H]K"] << H.skill
//src.mob<<"Saved [H.skill] to [H]!"
src<<"Successfully saved to <b>slot [mob.savefile]</b>"
Problem description: Recently out of nowhere the save system just became corrupt, like it would tell me I've saved and it would save and load hotkeys and coordinates but for some reason it isn't saving and loading variables.. I don't understand why this is happening.. any ideas?
Most likely the issue is that the old mob is sticking around and screwing things up in some manner when you load. Seeing an ExportText() of the savefile would be helpful.
Also, src.mob.client is amusing to me.