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

Flightmaster question

Truman422

Member
Joined
Jan 10, 2011
Messages
198
Reaction score
14
I'm in the works of making a CC where it's person controlled except for the skills/spells, but there's one thing that is just pissin me off. Every time I try to use a flightmaster, honorbuddy is closing the window instantly before I can fly somewhere. Is there something I can add to my code to avoid this from happening? Or is there a setting that I'm completely missing? Thanks.
 
I'm in the works of making a CC where it's person controlled except for the skills/spells, but there's one thing that is just pissin me off. Every time I try to use a flightmaster, honorbuddy is closing the window instantly before I can fly somewhere. Is there something I can add to my code to avoid this from happening? Or is there a setting that I'm completely missing? Thanks.
whats it saying in the log when you talk to the flight-master?
 
Nothing. Doesn't put anything new in the log at all, it just instantly closes the window on me. A new one did pop up randomly though, maybe you can explain what this is. Maybe it's even a delayed result of the flightmaster, who knows.

Code:
[12:16:18 PM:894] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Styx.InvalidObjectPointerException: Cannot read a descriptor on an invalid object.
   at Styx.WoWInternals.WoWObjects.WoWObject.#eve[T](UInt32 field)
   at Styx.WoWInternals.WoWObjects.WoWObject.#dve[T](Int32 offsetIndex)
   at Styx.WoWInternals.WoWObjects.WoWUnit.get_Level()
   at Honorbuddy.MainWindow.#3Uc()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
 
are you using lazyraider or the combat bot? or are you doing something weird in the CC itself to get the effect you want, because if your using the combat bot that should NEVER happen.
 
Hmm, using combat bot, so it must be something wrong with my code then you say? Very possible, I'm not very good at coding, just kinda throw it at the wall and see if it sticks.
 
Hmm, using combat bot, so it must be something wrong with my code then you say? Very possible, I'm not very good at coding, just kinda throw it at the wall and see if it sticks.
the aperture science method is great and all, but how about posting your project and ill take a look.
 
ok, so what exactly are you trying to do here?
Code:
        public override void Pulse()
        {
            if (Truman.Instance.Settings.UseRogue)
            {
                base.Pulse();
            }
        }
        public Truman()
        {
            Instance = this;
            Settings = new TrumanSettings();
        }
 
Hmm. I think my friends brother did that part, I honestly don't know what that base.Pulse(); is. The public truman part is my settings crap.
 
uhm id say just register an event for the flightmaster window opening. just a c# noob speaking here, but that should work imho since whatever action is in there overrides the current hb action. from my understanding hb doesnt multithread so it only does one thing at a time. when you register an event, your code should get fired up first if im not entirely mistaken.

edit: your code could be something like "while (boolflightmasterwindowisopen) {}"

edit2: this is long overdue and it seems to me that whoever is responsible in the dev team either doesnt give a shit or is an imbecile. ^^

edit3: i think this is how you properly register an event, at least its how it worked for me in another scenario:

Code:
public override void Initialize()
{
[INDENT][...your other code...]
Lua.Events.AttachEvent("TAXIMAP_OPENED", LetUserFly);[/INDENT]
}

private void LetUserFly(object obj, LuaEventArgs args)
{
[INDENT]while (NumTaxiNodes()>0) {}[/INDENT]
}

You better fucking say thank you if this works. ;P
 
Last edited:
I believe it is something in hb. Some time ago, I tried making a pb profile use a fp, but when interacting with the npc, the window closed again instantly, making me unable to fire commands that would make him fly.
 
I believe it is something in hb. Some time ago, I tried making a pb profile use a fp, but when interacting with the npc, the window closed again instantly, making me unable to fire commands that would make him fly.
it is, and im trying to get a hold of a dev to see what the problem is, but as of now, theres no way for a user to override this behavior.
 
damn, im sorry then. it works just fine for me and another user posted that it worked for him. ill check it again right now, maybe i upped the wrong version. i intentionally added fail code so the plugin wouldnt load once lol. ill check what i upped there.


this is really weird. try to dl again and see if it works. i reupped and made sure its the same version. works 100% reliably here on several accounts, only one box though.
 
Last edited:
Back
Top