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

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
Satyarth
Posts: 131
Joined: 06 Nov 2008, 12:45
Location: Delhi, India
Contact:

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

Post 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
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Paolo Bax
The SmartFoxServer Team
Satyarth
Posts: 131
Joined: 06 Nov 2008, 12:45
Location: Delhi, India
Contact:

Patch ?

Post by Satyarth »

Yes this also fixes the problem.

Was the fix never released in a patch ?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Not yet.
We will release the 1.6.10 patch as soon as possible.
Paolo Bax
The SmartFoxServer Team
Post Reply