My project was connecting fine about 3 hours ago when suddenly my Editor build and exported build were no longer able to join the same room.
To connect to photon I use
public void ConnectToPhoton()
{
PhotonNetwork.GameVersion = gameVersion;
PhotonNetwork.ConnectUsingSettings();
Debug.Log("ConnectToPhoton");
}
public override void OnConnectedToMaster()
{
PhotonNetwork.JoinLobby();
Debug.Log("OnConnectedToMaster");
//PhotonNetwork.JoinRandomRoom(null,0);
}
public override void OnJoinedLobby()
{
Debug.Log("OnJoinedLobby");
//PhotonNetwork.JoinRandomRoom(null, 0);
PhotonNetwork.JoinRandomRoom(null, 0);
}
public override void OnJoinRandomFailed(short returnCode, string message)
{
print(message + " " + returnCode);
Debug.Log("OnPhotonRandomJoinFailed() was called by PUN. No random room available, so we create one. Calling: PhotonNetwork.CreateRoom(null, new RoomOptions() {maxPlayers = 4}, null);");
PhotonNetwork.CreateRoom(null, new RoomOptions() { MaxPlayers = 4 }, null);
}
The error code from OnRandomJoinFailed gives me 32760 No rooms
Typically I was able to use either the exported build or the Editor build to host. At the time I was working i wasnt affecting any code related to this. I have even gone back to my previous git pull and am still unable to get my builds to connect to each other. I can't seem to find the cause and would be glad to help.