JoinRandomRoom Problems

edited May 2013 in DotNet
Hello,
I'm having problem with random matchmaking.
When my game call PhotonNetwork.JoinRandomRoom(), instead of joining on a open room, it returns the following errors:

Cannot send op: 225 Not connected. PeerState: Disconnecting
Cannot send op: 225 Not connected. PeerState: Connecting
JoinRandomRoom aborted: You can only join a room while not currently connected/connecting to a room.
JoinRandom failed: OperationResponse 225: ReturnCode: -3 (Not authenticated.). Parameters: {}.
OpJoinRoom() failed. Please specify a roomname.
JoinRoom aborted: You can only join a room while not currently connected/connecting to a room.

I'm using unity 3d. Thanks for the help.

Comments

  • That sounds like you call JoinRandomRoom() immediately (or too soon) after ConnectUsingSettings(). Establishing the connection is a process which must finish before you can call operations (like JoinRandomRoom).
    Check the examples.
  • Thanks you solved my problem :)
  • where are the examples at?
  • Download PUN from the Asset Store, import and look for the folder Demos.
    You can also find a menu item in the Unity Editor to set them up: Window, Photon Unity Networking, Configure Demos.
Sign In or Register to comment.