ID:268175
 
In Deadron's Character Saving, everytime you try to delete a character, it doesn't work. How is this happening?

Non-PC
Non-PC wrote:
In Deadron's Character Saving, everytime you try to delete a character, it doesn't work. How is this happening?

Non-PC

I've noticed that before, pretty weird.
In response to Kappa the Imp
I too noticed this, I fixed it, but I cant remember what I did.
Non-PC wrote:
In Deadron's Character Saving, everytime you try to delete a character, it doesn't work. How is this happening?

Non-PC

Try the CharacterSaving demo -- it works there. Probably there is some proc you are overriding that is needed. I can't look right now but if you look in the library code you can see where the deletion is happening and see if you are overriding that proc without calling ..().
In response to Deadron
Deadron wrote:
Non-PC wrote:
In Deadron's Character Saving, everytime you try to delete a character, it doesn't work. How is this happening?

Non-PC

Try the CharacterSaving demo -- it works there. Probably there is some proc you are overriding that is needed. I can't look right now but if you look in the library code you can see where the deletion is happening and see if you are overriding that proc without calling ..().

I found a solution. Use the Character Saving, then include ONLY the implementation from the Character HANDLING Library. It works when you do that.

-Kappa the Imp
In response to Deadron
Deadron wrote:
Non-PC wrote:
In Deadron's Character Saving, everytime you try to delete a character, it doesn't work. How is this happening?

Non-PC

Try the CharacterSaving demo -- it works there. Probably there is some proc you are overriding that is needed. I can't look right now but if you look in the library code you can see where the deletion is happening and see if you are overriding that proc without calling ..().

That's what he is trying.
In response to SSJ4_Gohan_Majin
How does it work? I read this post an included only the implementation but when I go to delete a character it freezes up.
I've been having the same problem, but I do believe I've managed to fix it.

The problem lies within the CharacterHandling library, "implementation.dm" to be precise. The DeleteCharacterMenu proc does not call the DeleteCharacterResult proc. So instead of responding to your choice from the menu, nothing happens and the screen just goes blank.

Here's my fix:

Change the line (the last one in the DeleteCharacterMenu proc)

return input(src, "Which character do you want to delete?", "Deleting character", default) in menu

To

var/result = input(src, "Which character do you want to delete?", "Deleting character", default) in menu

Then add the line

DeleteCharacterResult(result)

after that, with the same indentation.

It worked for me, at least. You might want to make sure you can change it back in case it doesn't work for you, so that you're no worse for trying.
In response to Deadron
Actually Deadron, in the latest version of charhandling, I found a bug. It causes the deleting of characters (when you aren't using the html form thingie(because you call the delete differently with that demo)) to not work.

On line 214
DeleteCharacterMenu(menu)

should be

DeleteCharacterResult(DeleteCharacterMenu(menu))


~Cheuq