Room Delete issue with 1.6.7 api

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
Rohit Sharma
Posts: 31
Joined: 05 Nov 2008, 05:27
Location: Delhi,India
Contact:

Room Delete issue with 1.6.7 api

Post by Rohit Sharma »

Hi,

When a user is in a game room, he does not get a roomdelete event when another game room gets deleted.
Now if the user comes back to lobby, his client side room list will still have the deleted room.
To overcome this issue, I started calling getRoomList() whenever I come back to lobby to get latest rooms.
Now, I am seeing a new problem with 1.6.7 API. In the earlier API's clearRoomList() was called as soon as a roomlistupdate comes, and the room list always contained the latest rooms.
With the 1.6.7 api, the clearRoomList() was commented out and now room list merging occurs. Because of this, if I come back to lobby, I always end up getting the deleted room because onroomdelete event does not come, and onroomlistupdate() does not remove non-existing rooms.

Please let me know if I a missing something or there is something else I need to do to overcome this issue.

Thanks,
Rohit Sharma,
Lead Developer and Co-Founder,
Mactabilis Arts.
www.mactabilisarts.com
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Smartfox's forum is my daily newspaper.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Hi,
the problem was solved with the latest AS 2/3 API release 1.6.3
http://forums.smartfoxserver.com/viewtopic.php?p=30434
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply