Bit's doesn't work if you don't have roomlist
Bit's doesn't work if you don't have roomlist
I'm making a lobby, in the lobby I have a chatbox and userlist. I don't want a roomlist in my lobby, users will invite other players to a game by clicking on their name and "challenging" them. It look slike the chatbox component won't work unless the roomlist component is on the stage. Is there anyway to get around this?
No, this is incorrect.
All the Bits depend on the Connector component only, not one on each other. So the ChatBox works without the RoomList being on the stage.
The component is initialized and enabled as soon as a room is joined. If this doesn't work for you, it probably depends on the fact that you are joining the room before the ChatBox is instantiated.
All the Bits depend on the Connector component only, not one on each other. So the ChatBox works without the RoomList being on the stage.
The component is initialized and enabled as soon as a room is joined. If this doesn't work for you, it probably depends on the fact that you are joining the room before the ChatBox is instantiated.
Last edited by Bax on 05 May 2008, 08:26, edited 1 time in total.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
An update on this.
We checked the "Lobby" example which comes with the SmartFoxBits package, and you are right: if the RoomList is removed, the ChatBox doesn't seems to work.
The reason is simple: the RoomList component takes care of auto-joining a room as soon as it is initialized; so, if you remove it, no room is joined and you have to do it manually. In this case, after the successful joining, the ChatBox will work as expected.
We checked the "Lobby" example which comes with the SmartFoxBits package, and you are right: if the RoomList is removed, the ChatBox doesn't seems to work.
The reason is simple: the RoomList component takes care of auto-joining a room as soon as it is initialized; so, if you remove it, no room is joined and you have to do it manually. In this case, after the successful joining, the ChatBox will work as expected.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
All the SmartFoxBits docs can be found here: http://www.smartfoxserver.com/bits/docs.php
Glad you appreciate the product. We hope we will be able to release the as3 version in the next months.
Glad you appreciate the product. We hope we will be able to release the as3 version in the next months.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “SmartFoxBits for SFS 1.x”
Who is online
Users browsing this forum: No registered users and 23 guests