Create a character makes more then 1 character

4 replies [Last post]
Posts: 95

not sure if this is an issue from my coding or netgore's but here we go:

If I create a character called zidsal it will create 1 character called zidsal and one called ~0_zidsal if I make a character called zidsalC it will make two characters one called zidsalC and one called ~1_zidsalC

any feedback would be nice as I want to know if its an error from my coding or not.

Posts: 1691

I'll look into it if anyone can confirm this on an unaltered NetGore.

Posts: 263

Heavily altered netgore here, but more or less updated to the SVN (Think I'm about 2 days behind atm).

Create a new char name dadaada
SELECT id,`name` FROM `character` WHERE NAME LIKE "%dada%"
650, dadaada
Delete char
650, ~650_dadaada

So, seems to work as intended here (Atleast, I think this is intended usage... Although, wont this create a lot of pointless records in the db, if the characters are never actually deleted? What's the point of it? :-/)

Posts: 1691

The point is that you retain the character record, even if it is removed from the account. If you delete the character, EVERYTHING about that character to ever exist is deleted, and there is no way (at least not without rollbacks) to reverse it.

If garbage is a concern (which it probably shouldn't be), you can just delete the records automatically every day or so through a cron job.

Posts: 263

Gotcha, thanks.