SFS 1.9 + Unity can´t CreateRoom

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

Moderators: Lapo, Bax

User avatar
frcol
Posts: 99
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

SFS 1.9 + Unity can´t CreateRoom

Postby frcol » 04 May 2014, 08:11

Hi, I´m trying to create a room dinamically in the client side (Unity).
1- I connect to SFS
2- Login into a zone
3- Get the RoomList
4- Join a Static Room
5- Create the room
6- Try to login into the new room

Code: Select all

NewRoomDescriptor roomDesc = new NewRoomDescriptor ("UnityRoom", 5, true);
smartFox.CreateRoom (roomDesc);


It doesn´t return the onCreateRoomError or onRoomAdded, and tells me that the room that I´m trying to join doesn´t exist.

Any Help?
Fabio Colombini
Brazil
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: SFS 1.9 + Unity can´t CreateRoom

Postby Bax » 05 May 2014, 08:15

When creating a Room like that (you are passing the first three parameters to the NewRoomDescriptor constructor only), you will be joined in the Room immediately after its creation.
Maybe the Room is being created and you are already inside?
Anyway, did you check the server logs for Room creation errors?
Paolo Bax
The SmartFoxServer Team

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 55 guests