Page 1 of 1

Strange issue with joining a room

Posted: 09 Jul 2010, 20:39
by pilot
Hi there,

I seem to be having some trouble with joining a room. Here is what I'm doing:
- Connecting to server
- Using autoJoin to join the Private room
- Communicating with an extension to determine some vital room setup details
- Creating a room via the API
- Assigning a person to the room

This is the response I'm getting:

- After autoJoining and determining the new of the room I'm going to create and move into, the server sends a join room error despite nothing being sent: the evt.params.error is passed with untitled.

- My administrator reads out that I've joined the Private room and that my new room has been created correctly

- Using:

var room:Object = new Object()
room.name = roomName;
room.isGame = false;
room.exitCurrentRoom = true;
room.extension = { name: 'eniac', script: 'eniac.as' };
_sessionId = roomName;
smartfox.createRoom(room);

This works but when an event is passed with onRoomAdded I try to join it: smartfox.joinRoom(_sessionId, '', false, false);

Absolutely nothing happens.

So really two issues concern me. Before I even create the room, I'm getting an error right after autoJoin (despite it working) and then nothing happens when I attempt to join the room I just created.

Thanks for your help!

Dave

Posted: 10 Jul 2010, 01:32
by pilot
We can consider this a non-issue. This is what I noticed: unless you pass a maxUsers value into the room object upon creating a room, it will not allow any amount of users in. This should probably default to a certain value. The issue took 2 hours to debug because I didn't know that and the error handling response was returning undefined (for an unknown reason).

Arg!