celguar / spp-classics-cmangos

SPP Classics repack with ike3 playerbots. Based on cmangos. Supports 1.12, 2.4.3, 3.3.5. Check "Releases" for installer
200 stars 54 forks source link

Restore Deleted Character #250

Closed sarge816 closed 2 months ago

sarge816 commented 2 months ago

My knothead son accidentally deleted one of his characters when he was deleting toons he didn't play, and now I cannot restore him. I went as Admin 3 and used the in-game command of ".character deleted restore [$name]" which in this case is ".character deleted restore deadman" - is this correct syntax? If so it is supposed to work, but it does not. I have no idea what the GUID of that toon is, and I went into the database and can find no record of him. I thought the deleted toons were kept for 30 days, but unless I'm doing something wrong he appears to be truly deleted. Any ideas?

sarge816 commented 2 months ago

This is on Vanilla Beta btw. I rebuilt his character for him last night using admin commands, so he's back. But still stumped why the restore command isn't working.

celguar commented 2 months ago

.character deleted restore only works if you changed CharDeletMethod in mangos.conf to make it save deleted chars in db. If it's default (disabled) the char is deleted from DB right when you confirm it in the game. Only way to restore it in that case is restore old db backup if you have it or if you have windos file recovery enabled for that disk drive, restore previous state of Database folder in repack. But there's no guarantee it gonna work fine

sarge816 commented 2 months ago

@celguar That makes sense, I'm almost positive that is not a setting I changed from default as I mistakenly thought it was enabled already by default. I will go look and change it when I get a chance, thanks as always.

sarge816 commented 2 months ago

User Error! Solved