What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Error spammed in my console

TwoCigars

Active Member
Joined
May 4, 2014
Messages
992
Reaction score
41
Fresh install of DB Beta 605 post here: https://www.thebuddyforum.com/demon...-setup-4-grift-80-realistic-200-exp-hour.html
Trinity .45
Adventurer .18
QuestTools .13

I get a constant error scrolling through the console on my Barbarian account:

Code:
02:56:47.807 ERROR BotMain Exception during bot tick.Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Trinity.Combat.Abilities.BarbarianCombat.get_CanUseCallOfTheAncients() in c:\Users\ReM0vEd\Desktop\605\Plugins\Trinity\Combat\Abilities\[COLOR=#a52a2a][B]BarbarianCombat.cs:line 212[/B][/COLOR]
   at Trinity.Combat.Abilities.BarbarianCombat.GetPower() in c:\Users\ReM0vEd\Desktop\605\Plugins\Trinity\Combat\Abilities\[B][COLOR=#a52a2a]BarbarianCombat.cs:line 29[/COLOR][/B]
   at Trinity.Trinity.AbilitySelector(Boolean IsCurrentlyAvoiding, Boolean UseOOCBuff, Boolean UseDestructiblePower) in c:\Users\ReM0vEd\Desktop\605\Plugins\Trinity\Combat\AbilitySelector.cs:line 85
   at Trinity.Trinity.TargetCheck(Object ret) in c:\Users\ReM0vEd\Desktop\605\Plugins\Trinity\Combat\TargetCheck.cs:line 113
   at Trinity.Helpers.BotManager.<MainCombatTask>d__6.MoveNext() in c:\Users\ReM0vEd\Desktop\605\Plugins\Trinity\Helpers\BotManager.cs:line 125
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Zeta.Bot.ActionRunCoroutine.'p-`/8UD\,!<q\*i"AN:Al\\Be\\".q/#:VE%"z"12)jm=8brgA$~o2.MoveNext()
   --- End of inner exception stack trace ---
   at Buddy.Coroutines.Coroutine.?????????????????????????????????????????(Boolean )
   at Buddy.Coroutines.Coroutine.?????????????????????????????????????????(Boolean )
   at Buddy.Coroutines.Coroutine.Resume()
   at Zeta.Bot.ActionRunCoroutine.Run(Object context)
   at Zeta.TreeSharp.Action.RunAction(Object context)
   at Zeta.TreeSharp.Action.o6q4a7j3"\\B<Ntnr%|QIv#vj\,.MoveNext()
   at Zeta.TreeSharp.Composite.Tick(Object context)
   at Zeta.TreeSharp.PrioritySelector.\[`\& k0e4|P-h/U-naQgA\,\[\[g$.MoveNext()
   at Zeta.TreeSharp.Composite.Tick(Object context)
   at Zeta.Common.HookExecutor.Run(Object context)
   at Zeta.TreeSharp.Action.RunAction(Object context)
   at Zeta.TreeSharp.Action.o6q4a7j3"\\B<Ntnr%|QIv#vj\,.MoveNext()
   at Zeta.TreeSharp.Composite.Tick(Object context)
   at Zeta.TreeSharp.PrioritySelector.\[`\& k0e4|P-h/U-naQgA\,\[\[g$.MoveNext()
   at Zeta.TreeSharp.Composite.Tick(Object context)
   at Zeta.Bot.BotMain.?????????????????????????????????????????()

BarbarianCombat.cs line 29
Code:
  public static TrinityPower GetPower()        {
            if (UseDestructiblePower)
                return DestroyObjectPower;


            if (UseOOCBuff)
            {
                // Call of The Ancients
[COLOR=#a52a2a][B]                if (CanUseCallOfTheAncients && Sets.ImmortalKingsCall.IsFullyEquipped)[/B][/COLOR]
                    return PowerCallOfTheAncients;


                // Sprint OOC
                if (CanUseSprintOOC)
                    return PowerSprint;
            }
            else
            {
                if (QueuedPower != null && !Player.IsIncapacitated && PowerManager.CanCast(QueuedPower.SNOPower) && !Player.IsCastingOrLoading)
                {
                    Logger.LogVerbose(LogCategory.Behavior, "Casting Queued Power {0}", QueuedPower);
                    var next = QueuedPower;
                    QueuedPower.MaxFailedCastReTryAttempts = 5;
                    QueuedPower.WaitBeforeUseDelay = 750;
                    QueuedPower = null;
                    return next;
                }
            }


BarbarianCombat.cs line 212
Code:
 public static bool CanUseCallOfTheAncients
        {
            get
            {
                if (IsCurrentlyAvoiding || !CanCast(SNOPower.Barbarian_CallOfTheAncients) || Player.IsIncapacitated)
                    return false;


[COLOR=#b22222][SIZE=3]             [B]   if (!Sets.ImmortalKingsCall.IsFullyEquipped && (CurrentTarget.IsEliteRareUnique ||[/B][/SIZE][/COLOR]
                    TargetUtil.AnyMobsInRange(25f, 3)))
                    return true;


                if (Sets.ImmortalKingsCall.IsFullyEquipped && Trinity.PlayerOwnedAncientCount < 3)
                    return true;


                return false;
            }
        }
 
Last edited:
is this a show stopper or just the exceptions?
 
It's not killing my bot, but I was hoping that it was a simple error in how the .CS was written so I could get the spamming to stop.

It's tough to track down other things in the log, and the file gets pretty large, pretty fast (About 50-60 MBs per day, depending on other logs).

I have tried turning off all logging settings that are available in Trinity, is there another way to turn them off?
 
Try grabbing the latest SVN version, it should be fixed there.
 
Back
Top