Creating an empty room in LoadBalancing server

Options
Hi, please help me! I need to create an empty room without any player connected to it (only by the server). And then players should be able to connect to this server.

There are no problems with creating the room. Room is listed and all okay. But when the player tries to connect to the room, the next bug appears:
bug
And then room is removed from the list (and from the server). IncomingGameServerPeer::OnEvent calls IncomingGameServerPeer::HandleRemoveGameState and so on.

What should i do? How to solve the problem? How to create a literally empty room without errors?

Thank you!

Comments

  • chvetsov
    Options
    Hi, @Dubzzy

    LoadBalancing does not support such functionality. The only thing you can do is setting EmptyRoomTTL to something != 0. if you are going to use photon cloud then this value has limit 5 minutes or so. if you plan to self host your server code, then you may set this value as big as you like. But be aware when game will be finished, room will not be closed. it will stay there as long as you set

    best
    ilya