mob
proc
Load()
switch(alert(usr, "Welcome to Infinite Castle", "Slot Loading","Slot 1","Slot 2","Slot 3"))
if("Slot 1")
if(fexists("players/[src.key]/Player 1"))
var/savefile/F = new("players/[src.key]/Player 1")
src.Read(F)
sleep(1)
src.savefile1=1
src.savefile2=0
src.savefile3=0
world << "[src] has entered the game!"
src.logged = 1
src.lock = 0
src.CheckPercents()
src.DivisionCheck()
src.Auto_Save()
else
alert("No savefile found in this slot!")
mob
Read(savefile/F)
..()
var/last_x
var/last_y
var/last_z
F["last_x"] >> last_x
F["last_y"] >> last_y
F["last_z"] >> last_z
src.loc = locate(last_x, last_y, last_z)
Problem description: (There is a Slot2/3 section to the load but i dont think that's neccessary.)I have a Load proc which works,more or less,because it does load the save file but it also logs out the key then logs in the charecter causing the movement to be disabled and gives a "BYOND BUG: bad mob" error it says the problem is in Read(savefile/F) specifically in finding the src in the src.Read(F). I tihnk the real problem is that it logs out then relogs when it does the load proc...any ideas?
I have tried it on multiple keys and 2 computers(while hosting) and it occurs on every load.