Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started by: LordHorusNL on October 24, 2017, 02:43:04 PM
-
I need a action for the photon package to get the server time or more precisely the timestamps
Also would a action that gets the TimeSinceLastTick be possible.
Does something like this exist yet?
-
Hi,
I'll work on this. Should be available tomorow
Bye,
Jean
-
Thanks jean very much appreciated!
Also would a "Switch Master" action be possible? So the current master can be switched to another client.
I believe photon supports this now.
-
Hi,
why would you want to switch master? Photon does that automatically. I don't recommend doing this at all to begin with, but maybe you have a use case?
Bye,
Jean
-
Hi,
ok, all available on the updated version on the Ecosystem,
Let me know how it goes.
Bye,
Jean
-
Thanks jean, the actions seem to be working fine.
As i inderstand it when host migration occurs photon does not pick the player with the least latency to migrate to, it just picks the next player in the queue.
So if a player with a weak connection is chosen to host, he can transfer those responsibilities to another client. (or in situation where the host expires after a certain amount of time)
I was also thinking it would be possible to make a vote system with this so players can choose to pick another master if the current client-host is cheating/abusive.
Atleast thats what i gathered from reading the photon docs.
-
Hi,
Good answers :), however the major problem remains that for a given client, pings will be different from another, so to choose a host with the best connection means storing these value on a server and have the server do the math as to who is the best compromise to become the new masterClient.
bye,
Jean