-
Posts
49 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by Adamski
-
-
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.
-
Thanks, John! I created a new topic in User Contributions:
As to the window sizing, I opted to use a FIXED window as it's less obtrusive - and added instructions on how to resize/move it in the readme 🙂
Thanks again!
Adam.
-
https://www.nzfsim.org/?smd_process_download=1&download_id=3241
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 OFFBUTTON 2 (toggles freeze to OFF):
Control sent when button pressed: Lua AP Freeze OFF
Control sent when button released: Lua Kill AP Freeze OnIMPORTANT:
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=UB0x66C0After 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- 1
-
Thanks, John - much appreciated!!
-
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=3241Here'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 OFFBUTTON 2 (toggles freeze to OFF):
Control sent when button pressed: Lua AP Freeze OFF
Control sent when button released: Lua Kill AP Freeze OnIMPORTANT:
=============
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=UB0x66C0DISCLAIMER
=============
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 -
Thanks again, John. Luckily, the next time I ran it, the LVAR in question was near the top - and updating nicely.
Still having fun getting the script to work though LOL!
UPDATE: Good News!!! I have the script working! I added the LVAR to the .ini file and pointed it to a user offset. Yippee!
-
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!
-
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!!!
-
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.
-
Fantastic!!! I just set 0x310A to 255 when the autopilot (0x07BC) is set. This effectively disables the lot 🙂
Now I can pan around and customise my views for screenshots without upsetting things!
Thanks again!
-
Many thanks, John - I'll let you know how I get on!
-
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.
-
I've upgraded my setup to an X56 (which FCR picks up with no problems) ... so (sadly) I can no longer test FCR with the X52.
Hopefully, some other X52 user(s) may be able to help debugging!
-
7 hours ago, FabioMerlo said:
Very strange that you cannot be able to choose your x52 .... i ll investigate ASAP !
You're a star - many thanks!!
BTW - I use FSUIPC (paid) ... and tried running without it (in case it was getting in the way) but same problem.
- 1
-
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.
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..
-
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.
-
Hi! I'm trying to update my FSC to 9.75 - but my only option for downloading at PCAviator is for v10 - which I can't use as I'm on P3Dv4.3.
Should I be contacting PCAviator - or can I download it from somewhere else?
Many thanks,
Adam.
-
Worked great on my system too! Many thanks :-)
-
Thanks, Pete - welcome back!!! I hope you had a good break - straight back in the saddle, I see!
Looking forward to 5.123d!
Adam.
-
For me, 5.123a or even 5.123b worked as well as 5.122.
-
Hi Volker,
Thanks for the quick reply! I'll repost with all the info as required/described in that link. I don't think I've ever had to report a problem with FSC before, so was unaware of the correct procedure.
Adam.
-
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.
-
5 minutes ago, Pete Dowson said:
but that's supposed to be handled automatically by Windows.
There's our problem, then LOL!!! I'd still be keen to hear if anyone else out there shares my problem. I can't be the only one, Shirley?
Adam.
-
Thanks, Pete. Out of interest (it's all news to me):
https://support.microsoft.com/en-gb/help/305097/how-to-view-the-system-registry-by-using-64-bit-versions-of-windowsMaybe there's some mixup in the installer between the two versions of the HKLM keys (64/32-bit)? It does seem a coincidence that it's the HKLM path that's going weird.
Adam.
LVAR Offset for throttle axis
in FSUIPC7 MSFS
Posted
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.