[Server Bug] Cache Count not correct

09/20/2016 16:33 NickHough#1
Hello,

It seems that for some unknown reason to me that the players in the cache server isn't the same as the one in the WorldServer.

This is causing players to not be able to connect to the game on certain characters.

The image below shows my problem.


As you can see there is a significant different in online count, and it seems to be a problem that when players logout it doesn't always register that they have done so on that specific character but have done so on their account as they can login again on the account without any problems but not the exact same character again (at least from looking at it)
09/22/2016 07:16 alfredico#2
Couldn't it be other players are connected in second or third channel?

What is the //a? Just make it easy, check why the user is not removed from cache. PACKETTYPE_LEAVE (World, Neuz, Login, Cache and Core)
09/22/2016 18:29 NickHough#3
There doesn't seem to be any players in second or third and that number matches up with the one on in my web script to count in-game players.

I have checked the packet for leaving, however what im thinking is if the client crashes for whatever reason it may not send that packet in time.

Edit:
Tried several different attempts of trying to re-produce this problem. It doesn't seem to be a problem with removing players when people crash, network disconnects or computer shutdown suddenly. I am actually at a loss here :/
09/22/2016 20:25 alfredico#4
When client crashes and you re-login, you get that message of account connected and when clicking yes it disconnects.

Have you checked the connected IP to the cache? Might be some kind of flood. There is a limit somewhere with max amount of connections at once.
09/22/2016 20:28 NickHough#5
See that is what i thought to begin with, there doesn't seem to be any extra connections and the problems actually restricts users from using that character until it is removed from the m_mapPlayers.

But i can't see anything obvious that would cause this sort of problem.