ID:146837
 
The loading code is weird cause it loads everything just freezes after F["Mob"] >> new_mob it basically loads the mob but then doesnt teleport and I put in the X,Y,Z but I was just testin with numbers. Anyways it just stops doing the rest of the proc after F["Mob"] >> new_mob


LoadCharacter()
var/savefile/F = new("players/[src.ckey].sav")
var/X
var/Y
var/Z
var/mob/new_mob = new /mob
F["name"] >> new_mob.name
F["X"] >> X
F["Y"] >> Y
F["Z"] >> Z
F["Mob"] >> new_mob
src.client.mob = new_mob
new_mob.Move(locate(50,50,1))
oh i know why don't you just jam that long hard code "F["Mob"] >> new_mob" at the bottom. Nothing needs to happen at the end of this complex proc...
In response to Ryne Rekab
I tried that but then it teleports you as usual but then doesnt load for you so you're just a blank icon with no stats
In response to VcentG
Well, lets just affect the mob itself, let it try and run from that!

            F["Mob"] >> src.client.mob
src.client.mob.Move(locate(50,50,1))
In response to Ryne Rekab
lol I thank you but it still doesnt work it still does the load thing but doesnt teleport >_>
As soon as the mob is loaded from the savefile (F["Mob"] >> new_mob), src.mob automatically transfers to the loaded mob. When this happens, LoadCharacter() is halted, probably because you have it set as a mob/proc. I would suggest making LoadCharacter() a client-based proc.