I noticed that the logic on client side where we merge the room variable values is buggy. I have a room variables declared both in config.xml as well as Extension. It is called "st".
In my multiplayer game with lobby, for a user who is in lobby i call getRoomList() periodically ( 15 seconds ) and from server i get correct values for room variables. But it is in SFS Client API ( actionsctipt 3 ), that this value gets changed.
After spending 4 hours i nailed down the problem to this :
trace("PRINTING HERE FIRST ", room.getVariable("st"));
var oldRoom:Room = roomList[roomId]
if (oldRoom != null)
{
room.setVariables( oldRoom.getVariables() )
room.setUserList( oldRoom.getUserList() )
}
trace("PRINTING HERE SECOND ", room.getVariable("st"));
It prints :
PRINTING HERE FIRST 1
PRINTING HERE SECOND 0
So the value for Room Variable "st" was changed from 1 to 0 after merge.I did not analyse beyond this point. I just commented the code of merging variables and make my code work.
Satyarth
Bug in handleRoomList ( SysHandler.as AS3 API) SFS 1.69
Please read this topic: http://forums.smartfoxserver.com/viewtopic.php?t=12498
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Patch ?
Yes this also fixes the problem.
Was the fix never released in a patch ?
Was the fix never released in a patch ?