Page 1 of 1

Create room

Posted: 05 Nov 2014, 17:29
by frcol
I´m having trouble creating rooms to use in OpenSpace.

A - static room
B - Dynamic room
C - Dynamic room

1) I´m in A, create a room B and os.loadMap(B).
2) I return to the A and de B does not destroy itself (looking from admin tool).
3) I´m in A, create a room B and os.loadMap(B). Create a room C and loadMapt(C). Return to B but the map does not renderize using the same methods as used before.

Problem 1 - Room does not destroy automatically.
Problem 2 - Map does not renderize.

Any help.

Re: Create room

Posted: 14 Nov 2014, 10:56
by Bax
Sorry for the late reply, I missed your message (actually it would have been better to post it in the OpenSpace section of the forum).
The Room is not auto-removed because (I suppose) it is not a Room of type "game". Standard Rooms are removed when their creator disconnects, while game Rooms are removed when no more users are inside.
What if you try setting it's type to "game" when creating the Room? It should disappear when leaving it, but what if you create it again? Still no rendering?

Re: Create room

Posted: 14 Nov 2014, 13:23
by frcol
Hi Bax,
I created a removeRoom() method in extension side that is called when a user leave the room and the method checks if there is nobody inside it.
It´s working ok now.

thanks.

Re: Create room

Posted: 14 Nov 2014, 15:41
by Bax
Great, that would have been my next suggestion.
Again, sorry for the late reply.