Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 13, 2024
1 parent e9c9c2d commit 20d1d2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Fika.Core/UI/Custom/MatchMakerUIScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,16 @@ private IEnumerator JoinMatch(string profileId, string serverId, Button button)
button.enabled = false;
}

NotificationManagerClass.DisplayMessageNotification("Connecting to server...", iconType: EFT.Communications.ENotificationIconType.EntryPoint);
NotificationManagerClass.DisplayMessageNotification("Connecting to session...", iconType: EFT.Communications.ENotificationIconType.EntryPoint);

FikaPingingClient pingingClient = new(serverId);
if (pingingClient.Init())
{
int attempts = 0;
bool success;

FikaPlugin.Instance.FikaLogger.LogInfo("Attempting to connect to host session...");

do
{
attempts++;
Expand All @@ -213,6 +215,8 @@ private IEnumerator JoinMatch(string profileId, string serverId, Button button)
"Unable to connect to the server. Make sure that all ports are open and that all settings are configured correctly.",
ErrorScreen.EButtonType.OkButton, 10f, null, null);

FikaPlugin.Instance.FikaLogger.LogError("Unable to connect to the session!");

if (button != null)
{
button.enabled = true;
Expand Down

0 comments on commit 20d1d2c

Please sign in to comment.