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

Unable to compile CustomBehavior for tag

evil4you

New Member
Joined
Nov 30, 2010
Messages
8
Reaction score
0
Code:
[18:26:36:406] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> 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.ForceTrain..ctor(Dictionary`2 args) in c:\Documents and Settings\COMPUTERs\Desktop\HB\Quest Behaviors\ForceTrain.cs:line 25
   --- End of inner exception stack trace ---
   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 Bots.Quest.QuestOrder.ForcedCodeBehavior..ctor(String file, Dictionary`2 args, XElement element)
[18:26:36:406] Unable to compile CustomBehavior for tag: <CustomBehavior File="ForceTrain" ForceTrain="1" />
[18:26:36:406] Honorbuddy stopped
[18:26:36:406] Stop called!
[18:26:36:468] ThreadAbortException caught inside.
[18:26:36:468] System.Threading.ThreadAbortException: Thread was being aborted.
   at Styx.Logic.BehaviorTree.TreeRoot.b()
   at Styx.Logic.BehaviorTree.TreeRoot.a()
[18:26:36:468] ThreadAbortException caught outside.
[18:26:36:468] System.Threading.ThreadAbortException: Thread was being aborted.
   at Styx.Logic.BehaviorTree.TreeRoot.a()

It turns to this error at every "CustomBehaviour" command...but it does the rest very well...
I`ve reinstalled HB & net framework...no luck...
When will the next HB update be ready?...
 
Im guessing the XML in the profile is wrong, but I don't know alot about quest profiles! Maybe if you post it here someone may be able to help?
 
HB isn't dealing very well with Custom Behaviours in general for many people. Despite the code being correct.

The reply from Devs: 'Wait till next release' where Questing will still be in Beta and any issues will be replied to with variations of: 'wait till next release'

Have a Natfoths thread, some1 posted a fix for this HB version that helps SOME people.
 
The given key was not present in the dictionary.
[18:26:36:406] Unable to compile CustomBehavior for tag: <CustomBehavior File="ForceTrain" ForceTrain="1" />

/// <summary>
/// ForceTrain by Nesox
/// Allows you to force HB to go train spells.
/// ForceSetVendor can also be used to achieve this.
/// ##Syntax##
/// QuestId: Id of the quest. If 0 is specified it will run anways.
/// </summary>

Your tag should look like this
<CustomBehavior File="ForceTrain" QuestId="0" />
or
<CustomBehavior File="ForceTrain" QuestId="12345" />

Or if ure using Natfoth's forcetrain
<CustomBehavior File="ForceTrain" ForceTrain="1" />

however you should use ForceSetVendor instead it's alot more powerful.
 
HB isn't dealing very well with Custom Behaviours in general for many people. Despite the code being correct.

The reply from Devs: 'Wait till next release' where Questing will still be in Beta and any issues will be replied to with variations of: 'wait till next release'

Have a Natfoths thread, some1 posted a fix for this HB version that helps SOME people.

yeah...I`ve figured something is wrong with HB...just hoped there is a fix...thanks for the reply anyway...

@Nesox you don`t understand...it does this to EVERY CustomBehavior tag...not just forcetrain...and I`ve tried all of them...
 
Last edited:
Back
Top