D
D
DrSpritz2015-10-06 12:48:02
Game development
DrSpritz, 2015-10-06 12:48:02

[Unity 5.1 network] How to transfer the role of the master server to another client when it disconnects?

Hello!
This question is about working with the network api and multiplayer services introduced in the new version of unity 5.
I am new to networking and am currently trying to make my first network game. The game is created in the form of a session shooter/racing. I use matchMaker from the standard NetworkManager component and everything works great, but as soon as the master server (the player who created the current match) falls off or leaves the game at will, all players are immediately thrown out, which is logical in principle. I had some experience with PhotonCloud , where the principle of working with the network API is almost identical (if you don’t get deep into the wilds), only there, when the master server was turned off, the rest of the players did not disconnect from the current game, the role of the master server was transferred to another player .
I'm sure that there is such an opportunity in the unity network, but I just can't find how to do it.
Please tell me how can I solve my problem? I can't even compose a normal search query, because I don't know what is the correct name for the process of transferring the role of the master server to another client when it is disconnected.
I would be extremely grateful to people who can give a couple of links to the help with a description of the classes / methods that will help me figure out how I can do this.

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CapJack, 2015-10-17
@DrSpritz

this is called host migration and is not yet supported by unity. promise in unity 5.3 which will be released on December 8th.
https://unity3d.com/en/unity/roadmap

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question