[Multiplayer] How does a server host every room

Get help using Construct 2

Post » Mon Mar 21, 2016 11:54 pm

Hi, everyone. Since Construct 2 uses peer-to-peer multiplayer, everyone is kicked from the lobby after the host quits. This wouldn't be a problem in a game with 2 people (leaving would crash the game in any case), but if a room has 15 people and the host decides to leave, everyone gets kicked in the middle of a game. Is there a way for a server to host multiple rooms at one time so they don't rely on a player?

Thank you in advance.
B
29
S
14
G
6
Posts: 160
Reputation: 5,752

Post » Tue Mar 22, 2016 12:49 am

Open multiple tabs/windows for each game on your server
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Tue Mar 22, 2016 12:40 pm

Thank you. But is opening hundreds of tabs the best solution to this problem?
B
29
S
14
G
6
Posts: 160
Reputation: 5,752

Post » Tue Mar 22, 2016 1:00 pm

Do you need hundreds of hosted game instances? A hundred tabs is one way. A hundred virtual servers is another. Or physical ones. Up to you. I think when you get to the scale of hosting thousands of players you might have another back end solution lined up that doesn't rely on the multiplayer plugin.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Tue Mar 22, 2016 8:47 pm

I just had a thought that technically you could have one single host that all peers connect to, and use a custom pseudo-room system to divide up the peers within the same game room instance yourself. But then you would not be able to use the host sync action, and would have to create a custom client update messaging system as well. This is probably not a good idea.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], Lancifer, nahima and 11 guests