Jump to content
The simFlight Network Forums

johanknol

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by johanknol

  1. Ok, here is the reply from Ryan:

    When you say "every other load" do you mean loading the aircraft over itself without shutting the sim down and restarting it first? If so, that's a big no no with most complex addons - there's bugs in FSX that cause all the data to corrupt if you do that...

    That makes sense, so maybe we have to live with it. I can, with just another reload :).

    Regards,

    Johan

  2. ...

    I wish I'd known about this BEFORE building a brand new release! I was going to have the weekend off! :sad:

    ...

    Please don't kill the messenger :)

    ...

    If you do ask PMDG about it please do let me know what they say, though they may be none wiser than us about this.

    ...

    I just did and will keep you informed.

    Regards

    Johan

  3. Thanks Pete, this will make live a lot easier!

    Your implementation however shows the same anomalies as my C# wrapper (no. 99 in this topic): the ngx seems dead. I tracked it down so far that

    every other time the plane gets loaded it does not send SIMCONNECT_RECV_ID_CLIENT_DATA messages to the dispatch proc.

    E.g., using that nice fsuicp feature on the logging tab I have offset 6570 on screen, toggle the gear lever, the value changes with it. Reload the plane, nope. Reload the plane, yes! And that goes in the same pace as the lights on my mip with just the C# wrapper and a IOWarrior usb board. (Yes, I also tried without my C# wrapper running :).

    So I don't think it's fsuicp, I still hoped to find something on my side, but now I think pmdg needs a call about this. I "fixed" it by the way, by detecting a ngx load, disconnect and reconnect to simconnect.

    I know it's not only my machine since I had a couple of mails about this issue from other people.

    Hth and thanks again for the update,

    Johan Knol

  4. I had the same problem, and was a little bit confused by the values from MAIN_GearLever variable // 0: UP 1: OFF 2: DOWN

    the reply from a pmdg support ticket was:

    "He is right that the MAIN_GearLever variable has 3 possible values,

    0=up, 1=off, 2=down..

    This variable is converted from the actual gear lever animation step,

    which has much more intermediate positions. When he tries to set gear

    lever to a "direct" position like 0..1..2, nothing useful happens

    because this is interpreted as an animation step, not "up - off - down".

    He should try using mouse click simulation instead, i.e. pass

    MOUSE_FLAG_LEFTSINGLE or MOUSE_FLAG_RIGHTSINGLE instead of 0, 1, 2. This

    is described in the SDK docs. Send EVT_GEAR_LEVER with a left- or

    right-click parameter to move lever to UP or DOWN, and send

    EVT_GEAR_LEVER_OFF with a left-click parameter to move it to OFF."

    Works like a charm.

    HTH,

    Johan

  5. Hi roarkr! I was already looking for some sioc support for named variables like in:

    Var 0737, name flapsin, Link PMDGIN, Input MAIN_TEFlapsNeedle

    VAR 738, name flapsout, Link PMDGOUT, Output EVT_CONTROL_STAND_FLAPS_LEVER

    But I read somewhere that opencockpits self is working on it, so I decided to wait what that brings first.

    If you intend to implement the whole set like above I would be more then glad to help you though. I need that for my next to buy overhead anyway.

    But I don't think you need my wrapper for this at all. Since you are already programming in c++ you need only a few line of my wrapper code. Which is nothing more really than also a small part of the sdk example code. But I can imagen that the simconnect stuff frightens you off a little.

    What you described about can be done easily, but maybe we should continue to discuss the details offline and come back here when there is news?

    regards,

    Johan Knol

  6. I made a small dll wrapper with just 2 exported methods and an internal SimConnect_CallDispatch thread

    void *GetPmdgData()

    and

    int RaisePMDGEvent(EPmdgEvent event, int parameter)

    I use it to Marshal it into C# where I emacs-ed PMDG_NGX_SDK.h into C# structs and enums. If someone is interested I could post or upload some code here.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.