ID:169786
 
Ok, I just finished adding my "saving/loading" code in my game, everything works fine, except one thing:

When I load the game, my character WILL load, but then about a second later, for some reason it asks me if I want to create another character, then if I do, it overwrites the character I just loaded...

I'll add my code if needed later
When you load a character, do you have the mob go to the proc and load, as well as delete the src? It's kind of hard to explain, so I'll show you.
client/proc/LoadMob(char_ckey)
var/mob/NM
var/savefile/F = new("save")
F["/[ckey]/[char_ckey]"] >> NM
if (!NM)
return 0
else
return 1
mob/ChooseChar
proc
ChooseCharacter()
var/list/players = src.CharacterList()
var/list/Menu = new()
Menu += players
var/result = input("Who do you wish to load?,"Load")in Menu
var/s = src.client.LoadMob(result)
if (s)
del(src)
else
src.ChooseCharacter()
In response to CaptFalcon33035
Didn't work.. Still after I load a character, it still makes me create a new character.. I am now using deadron's character handling and it does the exact same thing using this well....

Anybody else have any ideas why?
In response to Luchipher
Possibly your saving system doesn't work. Are you defining both the load and save to the same file?
In response to CaptFalcon33035
Well I have it semi-fixed.. It still asking for me to create a new character after I've already loaded a character, but isn't resetting me...

EDIT:: I just tried deleting my character then trying to create a new one and see if it worked alright, and now the map won't load--the screen just stays black.....

What's going on!!??

Also, I just added GM commands, and for some reason they're showing up as "area" tiles.. They're showing up in the "mob" section of map editor.. Have a reason why this is happening?
In response to Luchipher
Ok... I'm about to friggen give up... This is driving me insane.. I've tried everything I know to do to my knowledge, I've looked at every "character saving/loading" lib/demo I can find.. EVERYTIME, and I mean EVERYTIME I add new code for saving, I'll end up getting a CRAP load of indention errors.. If I fix those, I get even MORE errors.. I have no clue what to do anymore.. This has been going on for around 2 days now....
In response to Luchipher
I'll help you out tommarrow with all of your problems. Just IM me on AIM at LuciferDLord and state that you need help with Login systems and such.

As for the times, I'll be on around 3:00-4:50 and then various times after 5:30.
In response to CaptFalcon33035
We need the programming to pinpoint the programming error.

~>Jiskuha
In response to Jiskuha
Jiskuha wrote:
We need the programming to pinpoint the programming error.

~>Jiskuha


Lol yeah I know.. I added my code in the "Code Problems" section already :P