Jump to content
The simFlight Network Forums

Adamski

Members
  • Posts

    49
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Adamski

  1. Thanks, John (and hi!!) ... you're quite correct, as ever.

    It turns out I was forgetting to pass the axis through FSUIPC (I'd been fiddling with Axis & Ohs) .... mega DUH!!!

    I wrote the scripts almost exactly two years ago ... I'm amazed they still work, LOL!

    I'm amending it so it can work across the board (without checking for autopilot engage y/n) - mainly for the aircraft that use detents (FBW A320 or Fenix A320) where it's easy for the throttle to creep out of the slot.

    I think a more effective solution would be to do a hardware mod on the throttle (clear the jelly/gloop). Unbelievable how Saitek/Logitech produce this expensive cr*p!

    Thanks again,

    Adam.

    • Like 1
  2. A thousand apologies if this has already been covered (I couldn't find it). It's been a *long* time since I did any LUA programming - and my grey cells aren't what they used to be!!

    I suffer from the dreaded Logitech X-56 "throttle creep" and used to use a LUA script I wrote to disable all throttle inputs when in autopilot, using the offset 310A.

    The scripts (on/off) appear to work (and write a value to that offset) but the throttle remains active.

    Does MSFS use a different offset? If so, how can I find out what it is? I've Googled without success, but think I should be able to track/trace it when flying ... but how?

    TIA!

    Adam.

     

  3. https://www.nzfsim.org/?smd_process_download=1&download_id=3241

    AP-Freeze-500-200.jpg?dl=1

    I have an X-56 stick/throttle combo and often find that when panning around in external view (taking screenshots) I can't help moving the stick slightly - disturbing (or even de-activating) the autopilot.

    Also - my X-56 suffers from [the dreaded] "throttle creep", which is particularly bothersome with the FBW A32NX when it drifts out of one of the detents.

    These scripts are an attempt to lock/disable all flight controls (including throttle) when the autopilot is active.

    1) AP_Freeze_ON
    =======================
    Checks to see which A/P is enabled (GEN or FBW).
    If either is enabled, all controls axes are disabled (Offset 0x310A set to 255).

    2) AP_Freeze_OFF
    =======================
    Resets/enables all controls axes (Offset 0x310A set to 0).

    The scripts are mapped to separate switches on the throttle base, using the FSUIPC "Button & Switch Assignments":

    BUTTON 1 (toggles freeze to ON):
    Control sent when button pressed:  Lua AP Freeze On
    Control sent when button released: Lua Kill AP Freeze OFF

    BUTTON 2 (toggles freeze to OFF):
    Control sent when button pressed:  Lua AP Freeze OFF
    Control sent when button released: Lua Kill AP Freeze On

    IMPORTANT:
    For FSUIPC to be able to read the status of the FBW autopilot, the following two lines need to be added - either to
    fsuipc.ini or (if using profiles) to your FBW profile. Make backups of the original files!

    [LvarOffsets]
    1=A32NX_AUTOPILOT_1_ACTIVE=UB0x66C0

    After the first run, the size/position of the windows can be changed in the [ExtWindow] entry (x,y,size x,size y).

    [ExtWindow]
    Fixed Window Freeze ON=[30,30,130,56]
    Fixed Window Freeze OFF=[30,100,130,56]

    DISCLAIMER
    This is my first ever foray into LUA programming (!), so these scripts may be far from perfect - please use at your own risk!

    CREDITS
    1) John Dowson for his patience.
    2) Jason Fayre (the original author of the MyDisplay.lua script that was a starting point for mine.
    3) Pete Dowson for the original FSUIPC. I can't imagine running any sim without it.

    =======================================================================
    Adamski_NZ
    www.nzfsim.org

    • Like 1
  4. Firstly - thanks, John, for fixing the LVARS scroll problem!!!

    Now ... I'm thinking of allowing people to download my script(s) but I'm wondering if I could prevail on anyone here to run through what I've done to see if there are any "gotchas" <?>.

    The archive is (temporarily) at:
    https://www.nzfsim.org/?smd_process_download=1&download_id=3241

    Here's a copy of the README that goes with it (should I just paste the Lua files here as well?):

    Autopilot Freeze - FSUIPC LUA Scripts
    ====================================================

    I have an X-56 stick/throttle combo and often find that when panning around in external view (taking screenshots) I can't
    help moving the stick slightly - disturbing (or even de-activating) the autopilot.

    Also - my X-56 suffers from [the dreaded] "throttle creep", which is particularly bothersome with the FBW A32NX when it
    drifts out of one of the detents.

    These scripts are an attempt to lock/disable all flight controls (including throttle) when the autopilot is active.

    1) AP_Freeze_ON
    =======================
    Checks to see which A/P is enabled (GEN or FBW).
    If either is enabled, all controls axes are disabled (Offset 0x310A set to 255).

    2) AP_Freeze_OFF
    =======================
    Resets/enables all controls axes (Offset 0x310A set to 0).

    The scripts are mapped to separate switches on the throttle base, using the FSUIPC "Button & Switch Assignments":

    BUTTON 1 (toggles freeze to ON):
    Control sent when button pressed:  Lua AP Freeze On
    Control sent when button released: Lua Kill AP Freeze OFF

    BUTTON 2 (toggles freeze to OFF):
    Control sent when button pressed:  Lua AP Freeze OFF
    Control sent when button released: Lua Kill AP Freeze On

    IMPORTANT:
    =============
    For FSUIPC to be able to read the status of the FBW autopilot, the following two lines need to be added - either to
    fsuipc.ini or (if using profiles) to your FBW profile.
    Make backups of the original files!

    [LvarOffsets]
    1=A32NX_AUTOPILOT_1_ACTIVE=UB0x66C0

    DISCLAIMER
    =============
    This is my first ever foray into LUA programming (!), so these scripts may be far from perfect - please use at your own risk!

    CREDITS
    =============
    1) John Dowson for his patience.
    2) Jason Fayre (the original author of the MyDisplay.lua script that was a starting point for mine.
    3) Pete Dowson for the original FSUIPC. I can't imagine running any sim without it.

    =======================================================================
    Adamski_NZ
    www.nzfsim.org
    19 April 2022

     

  5. The aircraft was loaded and ready. It turns out a PC/MSFS reboot got that going 🙂

    *However* I now have another problem. When I list the LVARS (in WASM - now working, thank you!) ... I get a long list - but can't scroll it in any way, so can't get to see the actual LVARS I need (!!). I tried resizing the window etc. but to no avail. This was Win10x64 + all latest .net (as far as I know).

    In the meantime, I'll try the .ini method!

  6. Thanks, John! I found those two Lvars earlier, but after a fair bit of Googling and reading, I couldn't find a way of reading the Lvar value.

    Bear in mind that this is my first foray into LUA programming and (at this stage) understanding the docs is a bit of a struggle!!! I've used FSUIPC for donkeys' years but have never need to "look under the hood" before! The functionality is mind boggling!

    I tried enabling WASM but all the options were greyed out - and my test script still couldn't serve up a value. I'm obviously missing a few steps, so will re-visit those [advanced] docs!!!

  7. OK - so far so good!

    With the FBW A32NX and X56 Throttle, I get an annoying "throttle creep" that often takes me out of the detent (regardless of how I set the friction).

    I thought this newly created "freeze controls" LUA would cure that - but the offset for the FBW A/P must be something else. Does anyone happen to know what it might be? I'll ask in the FBW channels as well.

     

  8. Is there a way (in MSFS/FSUIPC) to disable all flight controls input when the autopilot is engaged?

    I spend a lot of time screenshotting (in external views) and often move the controller when panning/zooming.

    I know there's an option to disconnect the elevator TRIM axis for A/P mode - and wondered it could be possible to add similar options for the primary controls.

  9. First post, so a BIG hello to Fabio and all here!

    I have a problem trying to assign device shortcuts. My X52 Pro isn't being recognised though (strangely!) my rudders are.

    fcr-devices.png?dl=1

    Is there a fix for this - or any way I could add it manually in the .xml file?

    This is with the latest version (downloaded today): FM-FlightControlReplayv4.5.2201.12CameraManagerUpdate. Win10x64.

    Recording/replay looking good so far (congratulations) but having problems saving video files (I'll start a new topic for that).

    Adam..

  10. Thanks, Volker. I hadn't set the "Follow" option, so missed your post (above). Now rectified.

    I've managed to add FSC to the new Aerosoft database site (no problem there) ... but the D/L link is still 9.7.0.

    I'm sorry, but I'm a little confused (easily done at my age!!) ... is 9.75 available for P3Dv4 - or is my current 9.7.0 the only/latest version that is able to work with P3Dv4 (for legal reasons)?

    Thanks for all your help!

    Adam.

  11. FSC 9.7 Build 26 July 2017

    I have all my paths set up correctly in FSC, yet I always get this "error in writing pmdg plan (9)" error when trying to save with the PMDG box ticked.

    The dialog box says that PMDG will read from the default P3D folder for routes - but that isn't true. In P3dV4.1, PMDG flight plans are stored in [...]\Prepar3D v4\PMDG\FLIGHTPLANS or [...]\Prepar3D v4\PMDG\FLIGHTPLANS\NGX.

    Also, PMDG plans are in RTE format - which FSC no longer seems to create (possibly because of the above error) <??>.

    HELP!!

    Adam.

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