You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errorMessage+="\nSee logs for possible causes and solution.";
58
-
Debug.LogError($"Got service error {error.Message} with LobbyConflict. Possible conflict cause: Trying to play with two builds on the "+
59
-
$"same machine. Please use command line arg '{ProfileManager.AuthProfileCommandLineArg} someName' to set a different auth profile.\n");
60
-
break;
61
-
}
62
-
caseLobbyExceptionReason.LobbyFull:
63
-
{
64
-
PopupPanel.ShowPopupPanel("Failed to join lobby","Lobby is full and can't accept more players");
65
-
// Returning out of the function because we replace default popup panel with this.
66
-
return;
57
+
// If the error is one of the following, the player needs to know about it, so show in a popup message. Otherwise, the log in the console is sufficient.
58
+
caseLobbyExceptionReason.LobbyConflict:
59
+
// LobbyConflict can have multiple causes. Let's add other solutions here if there's other situations that arise for this.
60
+
Debug.LogError($"Got service error {error.Message} with LobbyConflict. Possible conflict cause: Trying to play with two builds on the "+
61
+
$"same machine. Please use command line arg '{ProfileManager.AuthProfileCommandLineArg} someName' to set a different auth profile.\n");
62
+
PopupPanel.ShowPopupPanel("Failed to join Lobby due to a conflict","See logs for more details.");
63
+
break;
64
+
caseLobbyExceptionReason.LobbyNotFound:
65
+
PopupPanel.ShowPopupPanel("Lobby Not Found","Requested lobby not found. See logs for details.");
66
+
break;
67
+
caseLobbyExceptionReason.NoOpenLobbies:
68
+
PopupPanel.ShowPopupPanel("Failed to join Lobby","No accessible lobbies are currently available for quick-join.");
69
+
break;
70
+
caseLobbyExceptionReason.LobbyFull:
71
+
PopupPanel.ShowPopupPanel("Failed to join Lobby","Lobby is full and can't accept more players.");
0 commit comments