mob/proc/Save()
var/savefile/F = new("players/[src.ckey]")
F["last_x"] << src.x
F["last_y"] << src.y
F["last_z"] << src.z
Write(F)
mob/proc/Load()
if(fexists("players/[src.ckey]"))
var/savefile/F = new("players/[src.ckey]")
Read(F)
F["last_x"] >> src.x
F["last_y"] >> src.y
F["last_z"] >> src.z
mob
Login()
usr.new_char()
mob
proc
new_char()
switch(input("Welcome to Tales of Xenologia!", "New Character")in list("Create new Character", "Load Character"))
if("Create new Character")
usr.race_choose()
if("Load Character")
usr.Load()
mob
proc
race_choose()
switch(input("Welcome to Tales of Xenologia!", "Race?")in list("Lizard-Human", "Human", "Demon"))
if("Lizard-Human")
usr.icon = 'Human White.dmi'
usr.loc = locate(1,1,1)
mob
Logout()
usr.Save()
Problem description:When I load the game, it loads all the vars and things(Such as name) but the screen just goes black. It's just randomly happened to all my games. One day it's working fine, the next it's stuffed. I'm not sure whats wrong with it.