Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by ajaybhojani · Jan 13, 2016 at 04:05 AM · multiplayerphotonclientmaster

set otherplayer as master client when master client leaves room photon

set other player as master client when master client leaves room photon ??

How its possible ?

Thank you

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image junior52999 · Aug 19, 2021 at 03:04 PM 0
Share

I'm also looking for how to change the MasterClient in real game time, even if the first MasterClient hasn't come out.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · Aug 19, 2021 at 03:41 PM

Host migration (which is the buzzword here) is a quite complex topic. As you can read in the photon docs:

There is no generic solution in Photon for "Host Migration". However, we make things much easier for you.


Also:

Photon does not hand all information that the former Master Client had about the room's state to the newly elected one.


So you have to handle most things yourself. What exactly soley depends on your own architecture. There are two main scenarios that need to be distinguished:


  • The host suddenly lost the internet connection.

  • The host is actively promoting one of the other clients to become the new master.


The first case is much more difficult because in order for a client to take over as master, every client has to have a copy of the whole gamestate. This is generally actually not a good approach for most games since it's usually the master / host that has certain secret information that would give cheaters an advantage. The host / master could always cheat. However if the whole gamestate is always shared with all other clients, everybody could see any information there is about the game.


The second case is a lot easier since the current master can actively send the relevant data to just one client. This can be done either on command or when the host actively clicks a disconnect / leave button. Of course such a migration would not be possible if the game is force-closed. For example for WebGL builds force closing is the most likely case as people would simply close the browser tab.


As I already said, noone can tell you what information the current master should or have to send to the newly choosen master. That's up to your game.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

52 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Photon SceneObject Creating by Client 0 Answers

What is master server in unity is it okay to use it in my multiplayer?? 1 Answer

Photon Instantiate object not disappear after dc master client 0 Answers

Photon enable/disable objects on all views? 1 Answer

Can I disable UI visibility for the LOCAL player and not other players? (using photon) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges