Create room

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

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

Create room

Postby frcol » 05 Nov 2014, 17:29

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.
Fabio Colombini
Brazil
User avatar
Bax
Site Admin
Posts: 4332
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Create room

Postby Bax » 14 Nov 2014, 10:56

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?
Paolo Bax
The SmartFoxServer Team
User avatar
frcol
Posts: 96
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

Re: Create room

Postby frcol » 14 Nov 2014, 13:23

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.
Fabio Colombini
Brazil
User avatar
Bax
Site Admin
Posts: 4332
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Create room

Postby Bax » 14 Nov 2014, 15:41

Great, that would have been my next suggestion.
Again, sorry for the late reply.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 2 guests