MMORoom and Room joining

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Mrm83
Posts: 155
Joined: 17 Dec 2017, 04:02

MMORoom and Room joining

Postby Mrm83 » 08 Jan 2021, 17:57

I have one main MMROOM working. I want to now create additional rooms which users can join but for some reason, as soon as i join the new Room, the user automatically leaves the MMORoom.

Why is that?

Zone setting has max rooms allowed per user set to 3. Is there a setting that automatically leaves a room on joining a room on by default?
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: MMORoom and Room joining

Postby Lapo » 11 Jan 2021, 09:52

Hi,
a couple of things to keep in mind:

1) you can't join more than one MMORoom at the same time.
2) you can join one MMORoom and multiple other non-MMO Rooms. When you do so, however, keep in mind that the default Join request will always assume that you want to leave the previous Room before joining the new one.

You can however override the behavior by specifying that you do not want to leave the previous Room. The option is available both in the server and client side API. Check the docs for the details:
http://docs2x.smartfoxserver.com/

Left hand menu --> "Client API Documentation" or "Server API Documentation"

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 42 guests