Multiples instances
Options
Laykker
✭
In the api, the function for load map is :
It actually load only the map for the server.
But, Is there a way to dynamically load multiples instances of a scene without launch a server/scene (like a MOBA style) ?
Thx for your replies
BoltNetwork.LoadScene(map);
It actually load only the map for the server.
But, Is there a way to dynamically load multiples instances of a scene without launch a server/scene (like a MOBA style) ?
Thx for your replies
0
Comments
-
By MOBA you mean there are many games happening at the same time?0
-
Exactly !
At the moment i have a server which can connect with some clients but only load 1 map.
I just want to know if there is a way to generate "rooms" in runtime, meaning that many games can be play at the same time ?
0 -
No, it's not possible to run multiple games (scenes) in one host.
Unity loads the scenes, runs the physics, etc. It's not possible to have multiple distinct locations in Unity's "world".
0 -
What if you had multiple copies of the same world within your scene? Then just allocate/create new "world" instances as necessary and put the players there.
This works as long as the instances don't start getting placed 9000m away from the origin, otherwise you'll start getting floating-point errors.1 -
Fholm said some people do that. I guess you have to find a balanced between the overhead of Unity and the amount of players in each instance.0
-
I think you would benefit from multiple server instances and treating each server as a room. That is what Zeus is there to facilitate.0