ID:142141
 
Code:
mob/proc
Load()
if(fexists("Savefiles/[src.key].sav"))
var/savefile/F=new("Savefiles/[src.key].sav")
Read(F)
src.loggedin=1
for(var/stuff in src.saveverbs)
src.verbs += stuff
src.CheckBan()
src.CheckPermaBan()
world<<"<font size=1><font color=red><B>Naruto Lost Shinobi:<font color=white>[src]([src.key]) has logged in..."
else
alert(src,"No save file found !")

SaveChar()
if(src.loggedin)
src.saveverbs=src.verbs
usr<<"Your character has been saved."
var/savefile/F=new("Savefiles/[src.key].sav")
Write(F)


Problem description:
Photobucket

And then the connection dies...

Please note that it creates a copy of my character, once I checked if there was two save files there was only one...


I know it's said that a picture is worth a thousand words, but this is one of those cases where that isn't true. I can't tell what the problem is you're asking about. Please describe the issue.

Lummox JR
I had this lib before, it gave me a headache trying to get it to work. I just got another save system...Lol
In response to Lummox JR
I press load and:

Check our forum
http://narutolostshinobi.proboards55.com/index.cgi?/
Naruto Lost Shinobi:Cybork (Cybork) has left the server.
Naruto Lost Shinobi:Zetsu Cybork (Zetsu Cybork) has left the server.
Naruto Lost Shinobi:Zetsu Cybork(Cybork) has logged in...

After a few seconds: (In the screenshot I took you can see two mobs with the exact same name and stuff while I was testing offline...)

An update is available!
Connection closed.
Connection failed.
In response to Cybork
Cybork wrote:
I press load and:

Check our forum
http://narutolostshinobi.proboards55.com/index.cgi?/

I don't have time to wade through an entire forum with nothing more than a guess as to what to look for. If you have a specific forum post for me to look at, I'll be happy to take a look, but please meet me halfway and give me some actual information.

Naruto Lost Shinobi:Cybork (Cybork) has left the server.
Naruto Lost Shinobi:Zetsu Cybork (Zetsu Cybork) has left the server.
Naruto Lost Shinobi:Zetsu Cybork(Cybork) has logged in...

I'm not sure I understand the significance of these messages without context. What's happening at this point? Do these represent actual logins and disconnects? Is it happening only when someone logs in or when someone logs out, where some of those messages are being generated unexpectedly?

After a few seconds: (In the screenshot I took you can see two mobs with the exact same name and stuff while I was testing offline...)

An update is available!
Connection closed.
Connection failed.

I'm not sure what's causing the connection to go down, but it could be related to Logout() being called at an unexpected time.

At a guess, I'd say that you're probably experiencing something like the classic rollback issue, where a mob is saved in a savefile where it doesn't belong. If one of the mobs you see is totally inactive, there's part of the answer. The system you're using to store your characters--I gather it's a generic system you didn't write yourself--may not be properly accounting for some of this. Also, a lot depends on how you organize the vars in your project. Make sure you're not saving turfs along with characters, that your mobs and objs don't have (or at least, save) any references to other mobs, and so on.

Lummox JR
In response to Lummox JR
Lummox JR wrote:
Cybork wrote:
I press load and:

Check our forum
http://narutolostshinobi.proboards55.com/index.cgi?/

I don't have time to wade through an entire forum with nothing more than a guess as to what to look for. If you have a specific forum post for me to look at, I'll be happy to take a look, but please meet me halfway and give me some actual information.

^ That's the message that appears when you login his game, as seen in the screen shot.
In response to Andre-g1
Andre-g1 wrote:
That's the message that appears when you login his game, as seen in the screen shot.

Ah. That does clear up some confusion on my part, thanks.

Lummox JR
In response to Lummox JR
The problem is that it logs me off and then logs me in and disconnects...
In response to Lummox JR
Your saying that I should build a object save system ?