Cannot join random room if setting UserID

Hello,
I have ran into an issue where if I set my UserID with the code :smile:

PhotonNetwork.AuthValues = new AuthenticationValues();
PhotonNetwork.AuthValues.UserId = Steamworks.SteamUser.GetSteamID().ToString();

Then I am not able to join any random rooms any more...
If I remove this code all works fine but then I cannot search for friends to join friends.

Any help would be appreciated !

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @Mashman12,

    Thank you for choosing Photon!

    What is the PUN version you are using?

    I don't think not being able to join random rooms is related to explicitly setting the UserId to the SteamID.
    Implement error callbacks for join random and join room operations to see what's wrong.
    Do you have some useful logs? any errors?
  • Hello,

    I am using the latest version of PUN. Just got it a week ago.

    I think the issue is that I am trying to test on the same computer with multiple instances and each instance of the game sets the same user ID based on my Steam account ID so it seems that you cannot join your own room which makes sense to me now haha.