I have encountered a bug with player ids and switching from player to spectator. I originally posted on the unity client board, but I have since determined this is a server issue. First post here: http://www.smartfoxserver.com/forums/viewtopic.php?p=42674#42674
Basically it boils down to this. When SFSApi.PlayerToSpectator is called, instead of freeing the User's PlayerId with IPlayerIdGenerator.freePlayerSlot, getPlayerSlot is called instead. This results in the server not believing the player is a spectator (User.isSpectator returns false), and the incorrect PlayerId is communicated to clients. This essentially "leaks" PlayerIds, as those Ids are never freed, and switching back and forth enough times will exhaust the room's supply of valid PlayerIds.
Thanks in advance for giving this issue some attention.
Player to Spectator issue (player ids)
Awesome, this has been nagging me for a while. Did report back in december - viewtopic.php?t=9629
Who is online
Users browsing this forum: No registered users and 71 guests