#Best Possible Way To Create Multiple Instances
1 messages · Page 1 of 1 (latest)
Really depends on the type of game. It will be easier with a card game than a fps game. A turn based game will be able to handle a lot more concurrent players with multiple matches going on.
But it's way way easier to just have multiple servers running on a machine than it will be to start juggling ports and client connections manually. The dedicated server package has tools that will help you strip down server builds so they less resource intensive.
Not netcode but I used this with Mirror. It’s just a self hosted relay system https://github.com/Derek-R-S/Light-Reflective-Mirror
Its a turn based game, is there a way to handle it.
Thanks for sharing, but i need to use netcode
There is always a way. You can have your server open a new session for each match. And a main session for the network. Players will join the match lobby and once its full the server can have the join the network session and begin the match. The server can use the lobby id as a match id
I am sorry if i couldnt express myself clearly
This is the thing that i am doing rn
Exactly the thing to be clear
But its resource consuming
Its very inefficient
If i could open up different matches in single session it would be perfect
I was looking for this
when i say a new session, i don't mean a new unity process. this is all in the one unity server. it can make multiple lobbies for matches
is there a name that i can look up
i couldnt find anything like that
opening seperate sessions
networkmanager supports single instance
You can start multiple sessions with no network. It will act just like a Lobby.
I believe only one can have a network though. With a direct server connection, in theory, you should be able to have the server listen on different ports. I've never tested multiple network connections on a server before.