hey man I signed up for your hosting services. it seems i can only use the beta testing service. the problem is that whenever i try to load a saved character i get disconnected. it says it disconnected. can you help me?
Numbered Steps to Reproduce Problem:
Loading a saved character.
Code Snippet (if applicable) to Reproduce Problem:
var/inpt=input("Do what?") in list("New", "Load", "Delete")
switch(inpt)
if("New")
if(fexists("players.sav"))
src << "You already have a savefile. Delete it first."
else
done=1
if("Load")
if(fexists("players.sav"))
// done=1
..()
var/savefile/s=new("players.sav")
Read(s)
src << "Character loaded"
src.addname("[src.key]")
//health_bar = new(src, 'DemoHealthBar.dmi', 14, src.hp, src.max_hp, pixel_y = -8)
// Create a mana bar, using the properties of the /bar_overlay/mana_bar type (defined below)
//mana_bar = new(src, 'DemoManaBar.dmi', 14, "Mana", "mana_max", pixel_y = -16)
health_bar = new(src, 'DemoHealthBar.dmi', 14, "hp", "max_hp", pixel_y = -8)
// Create a mana bar, using the properties of the /bar_overlay/mana_bar type (defined below)
mana_bar = new(src, 'DemoManaBar.dmi', 10, "stamina", "max_stamina", pixel_y = -16, state_prefix="Mana")
return
//done=1
else
src << "You don't have a savefile"
mob/Write(savefile/S)
//var/list/ver=list()
var{saved_x=src.x; saved_y=src.y; saved_z=src.z}
S << saved_x
S << saved_y
S << saved_z
S << src.icon_state
//for(var/i in src.overlays)
// src.overlays-=i
S["Verbs"] << src.verbs
..()
mob/Read(savefile/S)
var/list/ver=list()
var{saved_x; saved_y; saved_z}
S >> saved_x
S >> saved_y
S >> saved_z
S >> src.icon_state
//S >> src.verbs
..()
S["Verbs"] >> ver
//world << ver
for(var/i in ver)
src.verbs+=i
for(var/i in src.overlays)
src.overlays-=i
/*S >> saved_x
S >> saved_y
S >> saved_z*/
//src << sound('Field2.ogg',1,0,9)
src.Move(locate(saved_x, saved_y, saved_z))
Expected Results: Loading a character
Actual Results: I get disconnected.
Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?
When does the problem NOT occur?
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
N/A.
Workarounds:?
Another thing to do is to update your game and put it in #define DEBUG mode then start printing to the user debug lines -- src << "1" .. 2... 3.. after each like to see where exactly it disconnects you at. This will help pinpoint the source of the problem.
Edit:
Those are some things you can look in to to try to fix.