mob
proc/LoadCharacter()
ASSERT(hasSavefile(src.ckey) && src.client)
var/letter = copytext(ckey,1,2)
var/savefile/F = new("Players/[letter]/[ckey].sav")
var/mob/M = F["mob"]
M.Move(locate(F["x"], F["y"], F["z"]))
var/list/vlist = F["verbs"]
for(var/v in vlist)
M.verbs += text2path("[v]")
M.verbs.Add(typesof(/mob/verb))
//M.client = src.client
world<<"<b><font color=silver><u>Server Information:</u></font> <font color=green>[M.name] has just connected to the server."
M.CreatePlayerName()
Problem description:
runtime error: Cannot execute null.Move().
proc name: LoadCharacter (/mob/proc/LoadCharacter)
source file: Title Screen.dm,331
usr: Raimo (/mob/BaseCamp/ChoosingCharacter)
src: Raimo (/mob/BaseCamp/ChoosingCharacter)
call stack:
Raimo (/mob/BaseCamp/ChoosingCharacter): LoadCharacter()
LoadButton (/obj/LoadButton): Click(the turf (487,5,1) (/turf), "mapwindow.map", "icon-x=26;icon-y=16;left=1;scr...")
I don't get why I have the runtime error there. I would be pleased if anyone helps me out on this.