ID:140916
 
GAMECode:
mob/proc/Save_Mob()
if(src.savefile1) // if your character is slot 1
var/savefile/F = new("Playersnew/[key]/[key](1).sav") // creates the save file
src.savefile1=1 // just makes sure you are still in slot 1
src.V += src.verbs
src.Write(F) // writes your location
world.Export("[addr]:[port]?action=saveplayer1",F)
return
mob/proc/Load()
switch(alert(src, "Choose a Slot to Load", "Save Slot Loading","A","B","C")) // asks which slot you want to load
if("A") // if you chose slot 1.....
if(!src.client.loaded)
src.savefile3=0 // makes your character go to slot one for saves
src.savefile2=0 // makes your character go to slot one for saves
src.savefile1=1 // makes your character go to slot one for saves
var/savefile/F = new("Playersnew/[key]/[key](1).sav")
F["ckey"] << key
F["Address"] << world.address//this is the worlds adress.
F["Port"] << portd//this value the host changes on login to match his worlds port.
world.Export("[addr]:[port]?action=loadplayer1",F)// the values addr and port are static values which is the save servers permanent location.


SAVESERVER:
if("loadplayer1")
var/X = world.Import()
if(X)
var/savefile/F = new(X)
var/address
var/port
var/keys
F["ckey"] >> keys
F["Address"] >> address
F["Port"] >> port
Load1(keys,ad
proc
Load1(key,addr,port)
if(fexists("Playersnew/[key]/[key](1).sav"))
var/savefile/F = new("Playersnew/[key]/[key](1).sav")
F["KEY"] << key
world.Export("[addr]:[port]?action=loadplayer1",F)// this is where i think it goes wrong.
world<<"\[[time2text(,"Month DD, YYYY hh:mm:ss")]\] [key]'s savefile has been successfully been loaded ([addr]:[port])"
return


GAMES TOPIC.
if("loadplayer1")
var/X = world.Import()
if(X)
var/savefile/F = new(X)
var/CKEY
F["KEY"] >> CKEY
for(var/mob/M in world)
if(M.key==CKEY)
M << "Connecting to Save server version 1.0"
M.client.loaded = 1
M.Read(F)
M << "Please be patient as your account is being retrieved from the save server."
M.loader()


Problem description:

Right im using Max Omegas Savefile server and its working well. However only i can acces the save serever from my local network. I can open many servers on different comps and it works However when someone else tries it doesnt load.

I think its the export proc thats causing the problem since you can save but not load on the other servers.
                F["Address"] << world.address//this is the worlds adress.


world.address is the local address. You need to use world.internet_address.

You also need to rewrite basically everything you have there but I'm just too tired to do that right now.
In response to Garthor
Everything o.o .

Anyway thanks for the quick fix. When your all rested you can show me the other errors? :)