Page 1 of 1

Bug in handleRoomList ( SysHandler.as AS3 API) SFS 1.69

Posted: 27 Dec 2011, 06:24
by Satyarth
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

Posted: 27 Dec 2011, 11:11
by Bax

Patch ?

Posted: 27 Dec 2011, 11:37
by Satyarth
Yes this also fixes the problem.

Was the fix never released in a patch ?

Posted: 27 Dec 2011, 13:01
by Bax
Not yet.
We will release the 1.6.10 patch as soon as possible.