Jump to content
The simFlight Network Forums

arzabico

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by arzabico

  1. 4 hours ago, Pete Dowson said:

    It's because it's actually a negative number (parameters are signed because they often need to be, eg, for yoke positions, throttles with reverse, vertical speed, etc).

    Try putting - in front, otherwise FSUIPC thinks it is positive and that's the "nearest", binary-wise.

    Or try entering x80000000. That might work.

    FSUIPC is doing nothing more than sending the control number with the parameter. It cannot interfere with this. It is probably just the matter of the negative parameter.

    With parameters you can always enter them in hex by preceding the value with an x. Saves trying to get more complex decimal sequences correct in cases like the PMDG mouse codes.

    Pete

     

    You are my Hero Pete!
    I already tried before in hex notation to no avail (tried again, not working) and I thought it could be a sign problem too, but didnt occur to me to try with a negative sign. It works flawlesly!
    Thank you very much for your support, very apreciated.

    Arza

  2. Hi Pete,
    I write here cos is related to the same issues with the SDK from the PMDG NGX to the new NGXu.
    Thats what i found so far:

    For example the custom control or eventID of the Capt Baro Setting is the 69997 in both versions, and in the classic pmdg it works with either the parameter for mouse left click (increase) that is 2147483648 or 0x80000000, and the right (decrease) click that is 536870912 or 0x‭20000000‬.

    The thing is that using the FSUIPC UI for this control doesnt accept the value 2147483648 as a parameter, and substracts one to it letting it in 2147483647, (kind of a overflow?) but it sitill works!

    But then in the new NGXu, the right click works, but the left click doesnt. In this control or any other.

    Whitin a lua script is exactly the same.

    Can be this a problem of FSUIPC or of the NGXu SDK?

    Thanks in advance and regards,

    Arza

  3. Thanks Pete! Its an honour to salute you by the way.
    The timing thing in ipc.display was my mistake, i think it does 1sec less than you ask, i was asking for 2 and was making varely 1, if i ask for 10 does 9, so really doesnt matter...

    So regarding SetDisplay, it has no effect any more either over p3dv4, does it? just tested and has no effect to me, and getdisplay return all variables to 0.

    As I said, an honour, your jop done with fsuipc is amazing. Thank you.

    Arza

×
×
  • 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.