Never getting a Master Client
Hello!
I've been playing around with PUN in Unity and so far I'm very impressed.
I've encountered one issue though I can't seem to find answers:
Multiple users join the room, they see each other, all seems fine, but no there is no Master Client.
My use case:
I want to create a Hashtable for custom room properties and use "PhotonNetwork.isMasterClient" to detect a Master Client so it can create the table.
Checking "PhotonNetwork.IsMasterClient" always returns false, even if I am the first one joining the room.
Anyone got any ideas on the possible reasons for this behaviour?
Again, everything runs fine (it seems), it's just that no one gets assigned to be the Master Client.
Thanks a lot, Happy Holidays!
Answers
-
This is a new one. We got your mail about this and .. so far, I have no idea how this would happen.
I'll try to update this thread once we found an explanation.
0 -
Found the culprit:
Photon Pun wasn't the problem, my snippet of code ran a tad bit before the room was joined.
Thanks to your mail I could identify the problem using the "Support Logger" (https://doc-api.photonengine.com/en/pun/v2/class_photon_1_1_realtime_1_1_support_logger.html).
A really helpful tool! Thank you so much for your support!
0