Skip to content

Commit 8ab726c

Browse files
fix: Added some additional logging to attempt to find queue bug
1 parent 5428b50 commit 8ab726c

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Helpers/LoadServerProfile.cs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ public class LoadServerProfile
132132
Yuweyawata
133133
};
134134

135-
private static readonly string[] Greetings = {
135+
private static readonly string[] Greetings =
136+
{
136137
"Hola",
137138
"Bonjour",
138139
"Hallo",
@@ -427,7 +428,6 @@ internal static bool TryLoad(string profile)
427428

428429
internal static async Task RunDutyTask(DutyType dutyType, string profileUrl, int dungeonDutyId, int dungeonZoneId, int QueueType, int UnlockQuest, bool GoToBarracks, bool sayHello, bool sayHelloCustom, string SayHelloMessages, int trustId)
429430
{
430-
431431
while (DutyManager.QueueState != QueueState.InDungeon)
432432
{
433433
await GeneralFunctions.StopBusy(false);
@@ -524,6 +524,10 @@ internal static async Task RunDutyTask(DutyType dutyType, string profileUrl, int
524524
else if (DutyManager.QueueState == QueueState.None)
525525
{
526526
Log.Error("Something went wrong attempting to queue for Trust, queueing again...");
527+
Log.Error($"Duty {DataManager.InstanceContentResults[(uint)dungeonDutyId].CurrentLocaleName} unlocked: {LlamaLibrary.Helpers.GeneralFunctions.IsDutyUnlocked((uint)dungeonDutyId)}");
528+
Log.Error($"Job: {Core.Me.CurrentJob} Level: {Core.Me.ClassLevel}");
529+
Log.Error($"Queue status: {DutyManager.QueueState}");
530+
;
527531
}
528532
}
529533

@@ -552,6 +556,9 @@ internal static async Task RunDutyTask(DutyType dutyType, string profileUrl, int
552556
else if (DutyManager.QueueState == QueueState.None)
553557
{
554558
Log.Error("Something went wrong attempting to queue for Duty Support, queueing again...");
559+
Log.Error($"Duty {DataManager.InstanceContentResults[(uint)dungeonDutyId].CurrentLocaleName} unlocked: {LlamaLibrary.Helpers.GeneralFunctions.IsDutyUnlocked((uint)dungeonDutyId)}");
560+
Log.Error($"Job: {Core.Me.CurrentJob} Level: {Core.Me.ClassLevel}");
561+
Log.Error($"Queue status: {DutyManager.QueueState}");
555562
}
556563
}
557564

@@ -581,6 +588,9 @@ internal static async Task RunDutyTask(DutyType dutyType, string profileUrl, int
581588
else if (DutyManager.QueueState == QueueState.None)
582589
{
583590
Log.Error("Something went wrong attempting to queue regular dungeon, queuing again...");
591+
Log.Error($"Duty {DataManager.InstanceContentResults[(uint)dungeonDutyId].CurrentLocaleName} unlocked: {LlamaLibrary.Helpers.GeneralFunctions.IsDutyUnlocked((uint)dungeonDutyId)}");
592+
Log.Error($"Job: {Core.Me.CurrentJob} Level: {Core.Me.ClassLevel}");
593+
Log.Error($"Queue status: {DutyManager.QueueState}");
584594
}
585595
}
586596
else
@@ -722,7 +732,8 @@ await Coroutine.Wait(-1,
722732
}
723733
else
724734
{
725-
Log.Error("Something went wrong, we're in a duty but the Zone Id isn't the expected ID.");
735+
Log.Error($"Something went wrong, we're in a duty but the Zone Id isn't the expected ID.");
736+
Log.Error($"Expected Zone: {DataManager.InstanceContentResults[(uint)dungeonDutyId].CurrentLocaleName} {dungeonZoneId}. Current Zone: {CurrentLocalizedZoneNameById(WorldManager.ZoneId)} {WorldManager.ZoneId}");
726737
TreeRoot.Stop("Something went wrong, we're in a duty but the Zone Id isn't the expected ID");
727738
}
728739
}

0 commit comments

Comments
 (0)