[5165] character Already in Use problem!

09/13/2011 13:53 salem rey#1
Anyone familiar this problem? when someone not properly exited, like adjusting the sreen size the character didnt log out. but the game disappear. and the account is always online...
09/13/2011 16:13 .Beatz#2
Not sure as never has this problem... Are you using a MySql database or flatfile?
09/13/2011 16:39 _DreadNought_#3
Read the message "Character already in use" find out what triggers that(ie, where the message is given to you) make sure your logout code is correct.
09/13/2011 22:28 .Beatz#4
Quote:
Originally Posted by _DreadNought_ View Post
Read the message "Character already in use" find out what triggers that(ie, where the message is given to you) make sure your logout code is correct.
The logout code seems to be correct since OP has not said anything about a player not being able to log back on when they log out... Seems to only happen when they change the screen sixe (in game)
09/14/2011 01:02 pro4never#5
Sounds like you're not handling object cleanups very well...

IE: removing from your map system, clearing out the player class from other users, etc.


Should be fairly simple. Just go to your Disconnection code and make sure you are removing the user from your map system and remove any other needed things (like auto attack lockons and stuff which could trigger the object to be re-added to user's screens)