Hello,
I am getting the following error, as soon as I finally got my DB login working this error popped up. "Internal error:
You haven't joined any rooms! In order to interact with the server you should join at least one room.
Please consult the documentation for more infos." Now if I go to the next room and come back I can see my avatar on screen but I cant chat, I can move, but not chat. Can you help me fix or give me a documentation link to help explain this better to me. I have no idea where this sort of error would be located in the documentation.
Thanks your Ninja pal, Ninjaoninja2
Solved! Internal error: You haven't joined any rooms! Solved
-
- Posts: 204
- Joined: 22 Sep 2013, 23:33
Solved! Internal error: You haven't joined any rooms! Solved
Last edited by Ninjaoninja2 on 23 Jun 2014, 16:50, edited 1 time in total.
Re: Internal error: You haven't joined any rooms!
As the error message reports, after the login you have to join a Room before doing any other action.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
-
- Posts: 204
- Joined: 22 Sep 2013, 23:33
Re: Internal error: You haven't joined any rooms!
Bax wrote:As the error message reports, after the login you have to join a Room before doing any other action.
Alright, but here's my main problem I forgot to mention this but I have two rooms setup on my game to use triggers I have one set to autoJoin so what I don't get is why when somebody logs in that autoJoin is ignored.
Re: Internal error: You haven't joined any rooms!
Make sure the Room configuration has the "autoJoin" flag set to true, and that the client calls the SmartFoxClient.autoJoin method after the Room list has been received.
If the default login mechanism provided by SmartFoxServer is used, then the list of Rooms is received right after a successful login
Instead, if a custom login handler is implemented, the room list must be manually requested to the server using the SmartFoxClient.getRoomList method.
If the default login mechanism provided by SmartFoxServer is used, then the list of Rooms is received right after a successful login
Instead, if a custom login handler is implemented, the room list must be manually requested to the server using the SmartFoxClient.getRoomList method.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
-
- Posts: 204
- Joined: 22 Sep 2013, 23:33
Re: Internal error: You haven't joined any rooms!
Bax wrote:Make sure the Room configuration has the "autoJoin" flag set to true, and that the client calls the SmartFoxClient.autoJoin method after the Room list has been received.
If the default login mechanism provided by SmartFoxServer is used, then the list of Rooms is received right after a successful login
Instead, if a custom login handler is implemented, the room list must be manually requested to the server using the SmartFoxClient.getRoomList method.
Thanks Bax, That worked perfectly. But now I have ran into one more bug. The user will send a public message out and it will log it but it the bubble nor the message shows up in-game.
Re: Internal error: You haven't joined any rooms!
Make sure the message is received by enabling the debug mode on the SmartFoxClient instance (you will see messages traced in the Flash console).
If everything is ok, you then have to understand why the message isn't displayed in your graphical interface by reviewing your actionscript code.
If everything is ok, you then have to understand why the message isn't displayed in your graphical interface by reviewing your actionscript code.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 77 guests