Two player are in the same scene but not in the same voice room

Hello!

I am using Photon Voice for my project. The Photon Network setup is pretty easy for me but I have encountered a problem that I have not solved for a week.

I followed the suggested workflow from https://doc.photonengine.com/en-US/voice/current/getting-started/voice-for-pun. And I have first instantiated a player in editor and the another in the build in Windows platform.

My two players can join the same room. I suppose it means that they are connected to the same Game server, right?

But when I want to talk to each other, the other player from either build version or the editor can not hear from other player.

I then enabled the support logger to log the information, and got fancy results:

This is from EDITOR:
SupportLogger Info: AppID: "a8c14124***" AppVersion: "" ClientVersion: 4.1.4.4 Build: 2019.3.10f1, WindowsEditor, ENABLE_MONO, DEBUG, NET_STANDARD_2_0, UNITY_64 UserId: "196774c3-6d7f-47c2-aa11-fe3a87774a03" AuthType: None Auth PayloadEncryption PeerID: 113 NameServer: ns.exitgames.com Server: ns.exitgames.com:5058 IP: 52.188.143.243:5058 Region: Socket: ExitGames.Client.Photon.SocketUdp

This is from BUILD:
[2.704] SupportLogger Info: AppID: "a8c14124***" AppVersion: "" ClientVersion: 4.1.4.4 Build: 2019.3.10f1, WindowsPlayer, ENABLE_MONO, DEBUG, NET_STANDARD_2_0, UNITY_64 UserId: "21936b2e-0983-429f-bc6a-09386507631a" AuthType: None Auth PayloadEncryption PeerID: 18950 NameServer: ns.exitgames.com Server: ns.exitgames.com:5058 IP: 52.188.143.243:5058 Region: Socket: ExitGames.Client.Photon.SocketUdp
[5.126] SupportLogger OnConnected().
[5.127] SupportLogger Info: AppID: "a8c14124***" AppVersion: "" ClientVersion: 4.1.4.4 Build: 2019.3.10f1, WindowsPlayer, ENABLE_MONO, DEBUG, NET_STANDARD_2_0, UNITY_64 UserId: "21936b2e-0983-429f-bc6a-09386507631a" AuthType: None Auth PayloadEncryption PeerID: 24910 NameServer: ns.exitgames.com Server: 92.223.82.17:5055 IP: 92.223.82.17:5055 Region: us Socket: ExitGames.Client.Photon.SocketUdp

I realize that the first time the logger show the message in BUILD, only the UserId is different, but the second time neither the Server and the IP address is different from the information in EDITOR. I am wondering if it is acceptable?

This is from EDITOR:
[5.616] SupportLogger OnJoinedRoom(Room: 'eb3dd29f-0719-438d-841f-ce792e827b08_voice_' hidden,open 1/0 players.). GameServer:169.54.101.112:5056

This is from BUILD:
[5.881] SupportLogger OnJoinedRoom(Room: '34be118f-0d7a-4a49-a2db-63172588e246_voice_' hidden,open 1/0 players.). GameServer:92.223.82.53:5056

And the final message in support logger shows that both the voice room and the game server is different. But I do not understand why even the gameserver is different, I can still see two players in the same network room? How can I fix it even I have followed the suggested steps?

Thanks advance for your help!

Comments

  • Hi @Yuchen,

    Thank you for choosing Photon!

    Most likely each client is connected to a different Photon Cloud region.
    BUILD client is connected to region US.
    EDITOR client's support logger log is early as the client is still on the name server and did not connect to a master server (region) yet.

    Please read here.
  • Thanks for your help!

    After I disable Dev Region, the problem is solved. But I am still not quite sure why the Dev Region will cause such an issue?

    I notice that my Dev Region is always "cae" since it has the lowest ping value, but when I go through the second client support logger message(Not matter the second client is in Editor or Build), it will auto direct to us, which is not the region I have set in the "Dev Region". Could you explain a bit why it would happen?
  • JohnTubeJohnTube mod
    edited July 21
    I can't really explain without the actual ping values for each region per client and per calculation attempt.
    The "Dev Region" is a Fixed Region for Development build and Editor.
    All info about this is in the same documentation page I shared earlier.
Sign In or Register to comment.