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

Combat get executed without actually combat, UI is not showing on buttonpress...

  • Thread starter Thread starter weischbier
  • Start date Start date
W

weischbier

Guest
Hi,

so I just "finished" my work on Necrophilia Advanced and ran into some issues I don't understand because I do nothing else than I did in my previous CCs.

1. Combat gets executed from start...but why?
2. UI is not showing on button press...but why? I call it like I learned it from Codenameg a year ago.

Project is attached.

greetz

Weischbier
 
well i took a look at your CC earlier when the thread first popped up, i haven't had the time to sit and debug it, but a couple of things you might wanna try.

i noticed in you have a bunch of folders, while its not a bad thing to separate things out, you might get the forum working by moving them all into the same folder.

as for the combat thing, the only time HB would jump directly into Combat() is if your already in combat. then it will just skip the pull sequence all together, since the whole point of whats in Pull() is to get you into combat.
 
well i took a look at your CC earlier when the thread first popped up, i haven't had the time to sit and debug it, but a couple of things you might wanna try.

i noticed in you have a bunch of folders, while its not a bad thing to separate things out, you might get the forum working by moving them all into the same folder.

as for the combat thing, the only time HB would jump directly into Combat() is if your already in combat. then it will just skip the pull sequence all together, since the whole point of whats in Pull() is to get you into combat.

Thanks for looking at it, always appreciate your help...sadly the rep system is s**t. There are not many projects atm that deserve reps so I stuck on you, bobby, apoc and some others. :P

I'll try to disable Pull and see whats going to happen.
And what do you mean by a bunch of folders? I use two :D

greetz

Weischbier
 
Code:
[09:51:26:293] System.NullReferenceException: Object reference not set to an instance of an object.
   at Weischbier.Manager.Unit.IsBoss(WoWUnit unit) in c:\Users\Laptop\Desktop\HB_PQ\Honobuddy\HB - Combat\CustomClasses\Necrophilia - Advanced\Weischbier.Manager\Weischbier.Manager.cs:line 571
   at Weischbier.Necrophilia.Advanced.DeathKnight.<PillarofFrost>b__7e(Object ret) in c:\Users\Laptop\Desktop\HB_PQ\Honobuddy\HB - Combat\CustomClasses\Necrophilia - Advanced\Necrophilia - Advanced.cs:line 560
   at TreeSharp.Decorator.CanRun(Object context)
   at TreeSharp.Decorator.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.PrioritySelector.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.PrioritySelector.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.Decorator.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.PrioritySelector.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.Decorator.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.PrioritySelector.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.Sequence.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.Decorator.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.PrioritySelector.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at Weischbier.Combatbot.LockSelector.Tick(Object context) in c:\Users\Laptop\Desktop\HB_PQ\Honobuddy\HB - Combat\Bots\Combatbot by Weischbier\Index.cs:line 190
   at TreeSharp.Decorator.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at TreeSharp.PrioritySelector.#h.#nF.MoveNext()
   at (Object )
   at TreeSharp.Composite.Tick(Object context)
   at Styx.Logic.BehaviorTree.TreeRoot.Tick()

So I just debugged it and added

Code:
        static List()
        {
            foreach (uint bossId in Dummies)
            {
                Bosses.Add(bossId);
            }
        }

to the Manager file in List.

Somehow HB has a problem with

Code:
        public static bool IsBoss(this WoWUnit unit)
        {
            return List.BossIds.Contains(unit.Entry);
        }

Full log is attached.
 
pretty sure

return List.BossIds.Contains(unit.Entry);

isnt a bool

change it to.



public static bool IsBoss(this WoWUnit unit)
{
if(List.BossIds.Contains(unit.Entry))
{
return true;
}
return false;
}
 
pretty sure

return List.BossIds.Contains(unit.Entry);

isnt a bool

change it to.



public static bool IsBoss(this WoWUnit unit)
{
if(List.BossIds.Contains(unit.Entry))
{
return true;
}
return false;
}

Its the same method Singular uses. Thats why it *****s me up...
 
dont just copy and paste stuff from singular, build your own, so at least you know how it works.
 
Back
Top