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

hearth and portal profile

benny32

Member
Joined
Jan 18, 2010
Messages
81
Reaction score
0
So my grand plan was to use arelog to use a uldum profile for X amount of time, then run a profile that hearthed and used the deepholm portal, then switch to a deepholm farming profile. Or at least that seemed logical to me, there may a more efficient way to do this but this is my first try at arelog. The travel profile is what's hosing me up right now.

I attached the profile so you could take a look at my first attempt at this profile.

When I try that profile all by itself to see if it will hearth and use the portal here's what I get in my log.

Code:
[2:20:27 PM:691] Compiling quest behavior from 'E:\HB\Quest Behaviors\UseHearthstone.cs'
[2:20:27 PM:830] Failed to create UseHearthstone behavior.
Exception:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Styx.Bot.Quest_Behaviors.UseHearthstone..ctor(Dictionary`2 args) in e:\HB\Quest Behaviors\UseHearthstone.cs:line 61
[2:20:27 PM:835] Could not create current in quest bot; exception was thrown
[2:20:27 PM:836] System.Threading.ThreadAbortException: Thread was being aborted.
   at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
   at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at Bots.Quest.QuestOrder.ForcedCodeBehavior.#h.#fn.#zpc(Type t)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Bots.Quest.QuestOrder.ForcedCodeBehavior.#Aoc(Assembly asm, Dictionary`2 args)
   at Bots.Quest.QuestOrder.ForcedCodeBehavior..ctor(CodeNode codeNode)
   at Bots.Quest.Actions.ForcedBehaviorExecutor.#enc(OrderNode node)
   at Bots.Quest.Actions.ForcedBehaviorExecutor.#h.#nF.MoveNext()
[2:20:27 PM:836] Stop called!
[2:20:27 PM:878] Activity: Honorbuddy Stopped
[2:20:28 PM:890] System.Threading.ThreadAbortException: Thread was being aborted.
   at Styx.Logic.BehaviorTree.TreeRoot.Tick()
   at Styx.Logic.BehaviorTree.TreeRoot.Run()
[2:20:28 PM:890] System.Threading.ThreadAbortException: Thread was being aborted.
   at Styx.Logic.BehaviorTree.TreeRoot.Run()

I have attached both log and profile just so you could take a look at the whole log if it helps. Thanks for taking a look!
 

Attachments

If I remove the UseHearthstone custom behavior it works, is there something I am not doing correctly with that behavior?
 
Code:
System.Collections.Generic.KeyNotFoundException: [B]The given key was not present in the dictionary.[/B]
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Styx.Bot.Quest_Behaviors.UseHearthstone..ctor(Dictionary`2 args) in e:\HB\Quest Behaviors\[B]UseHearthstone.cs:line 6[/B]1
Your problem is at the ligne 61 of the file
UseHearthstone.cs because it isn't able to find a key in a dictionary.
 
You could also make this all in a single PB profile.
 
Yeah, found a multiprofile that does it much more efficiently than I thought was possible with Professionbuddy. Thanks!
 
I have a bandaid construction with an if-condition that calls the hb function for bindlocation and if it matches, calls useitem (hearthstoneid).
 
Back
Top