Hi guys, I’m realllly stuck on an issue.
My multiplayer was working fine then i upgraded to pun2 and now when i connect I get this error:
CreateRoom failed. Client is on GameServer(must be master server for matchmaking) and ready. Wait for callback: OnJoinedLobby or OnConnectedToMaster.
I am quite sure my script is fine:
//establishing connections here:
private void Awake()
{
PhotonNetwork.ConnectUsingSettings();
}
public override void OnConnectedToMaster() // callback function for when first connection is made
{
PhotonNetwork.JoinLobby(TypedLobby.Default);
Debug.Log("Connected");
}
//Creating room here:
PhotonNetwork.CreateRoom(CreateGameInput.text, new RoomOptions() { MaxPlayers = 4 }, null);
Can anyone help? I’ve read everything i can find on this. Most posts say that there is no connection but I confirmed connection using debug in the onconnectedtomaster function as shown above…