pilotjohn Posted September 19, 2011 Report Posted September 19, 2011 EDIT: Latest version (1.1.3) attached as of 1/17/2012 I wrote this Lua script to allow the button below the detent on a Saitek quadrant lever to be used to toggle whether the lever acts toward forward or reverse thrust. State feedback is via display or sounds (attached). It currently handles the first two throttles but can be quickly expanded (by adding a configuration section) to include all four. I wasn't allowed to upload a .lua file, so it's attached as a .txt that you have to rename to .lua after you download it. Below is more information from the header: -- Throttle Manager for FSUIPC -- E-mail: pilotjohn at gearsdown.com -- Sounds: http://www.freesound.org/people/milton./packs/5284/ -- -- Manage throttles to provide both forward and reverse thrust -- on single axes by allowing functionality toggle through dedicated -- joystick buttons (such as those below the detent on Saitek quadrants). -- Can be configured to auto-toggle to forward thrust, and in many other ways. -- Setup (do steps 2-5 for each throttle to manage): -- -- 1. Edit "FSUIPC.ini" and add (substitute X for 1 or next # if exists): -- [Auto] -- X=Lua ThrottleManager -- -- 2. In FSX "Settings" "Controls", -- delete joystick assignment for throttle N -- -- 3. In FSUIPC "Axis Assignment", -- "MOVE" "LEVER", -- select "Send direct to FSUIPC Calibration" -- and check "Throttle N" -- -- 4. In FSUIPC "Joystick Calbiration", -- on "3 of 11: Separate throttles per engine", -- check "No reverse Zone", -- and "Set" "Min" and "Max" for "Throttle N" -- -- 5. In FSUIPC "Buttons + Switches", -- check "Select for FS control", -- choose "LuaToggle ThrottleManager", -- and enter "N" for "Paramater" -- -- 6. Configure below as desired. ThrottleManagerF.wav ThrottleManagerNR.wav ThrottleManagerR.wav ThrottleManager.txt 1
mtjoeng Posted October 21, 2011 Report Posted October 21, 2011 really clever idea, Im gonna try EDIT: tested: this is a Great Mod (some problems with hanging REV (I suspect dirty switches perhaps?), but sort of 'cleaning themselves' now that I use these buttons more) the 'automatic toggle back to forward throttle' is quite an experience
pilotjohn Posted November 4, 2011 Author Report Posted November 4, 2011 really clever idea, Im gonna try EDIT: tested: this is a Great Mod (some problems with hanging REV (I suspect dirty switches perhaps?), but sort of 'cleaning themselves' now that I use these buttons more) the 'automatic toggle back to forward throttle' is quite an experience If you turn on "Filter" on the throttle axis, you won't have the hang in REV problem. You can also increase the threshold where the auto-forward toggles.
pilotjohn Posted December 2, 2011 Author Report Posted December 2, 2011 Update to ignore IPC flag state and keep state internally so that it works regardless of FSUIPC version. ThrottleManager.txt
antney Posted December 18, 2011 Report Posted December 18, 2011 John I like this idea but what is a LUA file, sorry not familiar with that. Is this a file that goes in the fsuipc folders?
Pete Dowson Posted December 18, 2011 Report Posted December 18, 2011 I wasn't allowed to upload a .lua file You can if you ZIP it first, same for any executables. Regards Pete
pilotjohn Posted December 18, 2011 Author Report Posted December 18, 2011 John I like this idea but what is a LUA file, sorry not familiar with that. Is this a file that goes in the fsuipc folders? Yes... <FSX>\Modules. Then open both FSUIPC.ini and ThrottleManager.lua in Notepad and follow the instruction in ThrottleManager.
Pete Dowson Posted December 18, 2011 Report Posted December 18, 2011 I like this idea but what is a LUA file, sorry not familiar with that. Is this a file that goes in the fsuipc folders? Lua is another programming language, but one designed for things like scripting and configuring other programs. It can be quite powerfiul in terms of scope, mainly because of the libraries of functions also provided. There's a Lua compiler / interpreter built into FSUIPC (and WideClient) to allow all sorts of applications to be "plugged in" to FSUIPC and WideFS. If you look in the FSUIPC Documents folder (in your FS Modules folder) you'll find documentation and examples provided for you. Supporting Lua in FSUIPC/WideFS is a way of allowing the power of FSUIPC to be expanded indefinitely, as folks find more interesting and useful things to do. Regards Pete
antney Posted January 2, 2012 Report Posted January 2, 2012 John trying to do this now. If I understand correctly, I open my fsuipc.ini file, I place at the end of the notepad [auto] and then under that 1=LUA ThrottleManager. Is this all I need to do in the ini file? The rest I set up in the fsx modules section of FSUIPC? When I go through the setup and into fsx and set axies and joysticks when I get to button and switches I dont see LUA ThrottleManager as an option.
pilotjohn Posted January 2, 2012 Author Report Posted January 2, 2012 John trying to do this now. If I understand correctly, I open my fsuipc.ini file, I place [auto] and then under that 1=LUA ThrottleManager. Is this all I need to do in the ini file? The rest I set up in the fsx modules section of FSUIPC? Correct... and place ThrottleManager and sounds in FSX\Modules. Then if FSUIPC is running you should have an Add-ons->FSUIPC menu entry and set everything else up there.
antney Posted January 2, 2012 Report Posted January 2, 2012 just place the throttleManager txt file in the fsx/modules folder? I am sorry, but when it comes to computers I am not the brightess! After all that I still do not see anything in the drop down menu on button and switches for the lua throttle manager. In the fsuipc.ini file, I just basically added at the end the following.... [auto] 1=LuaToggle ThrottleManager I have nothing else in the ini,file. Should I be putting all the text in the throttlemanager here?
antney Posted January 2, 2012 Report Posted January 2, 2012 got the throttle manager now. didnt save the file to an LUA file!
antney Posted January 2, 2012 Report Posted January 2, 2012 when you say "N" I am assuming that is the engine number? If that is the case I followed the instructions to the best of my ability, I got the joystick and axises set, button and switch set. What is the next step? When I bring my throttle lever down to the button stage and move it back up no reverse occurs. The configuration section, is that something I am to place somewhere?
pilotjohn Posted January 2, 2012 Author Report Posted January 2, 2012 when you say "N" I am assuming that is the engine number? If that is the case I followed the instructions to the best of my ability, I got the joystick and axises set, button and switch set. What is the next step? When I bring my throttle lever down to the button stage and move it back up no reverse occurs. The configuration section, is that something I am to place somewhere? Yes, it has to be named .lua, not .lua.txt. You can right-click on it and rename. And in FSUIPC it should be: [auto] 1=Lua ThrottleManager You show "LuaToggle" which is for the Button+Switches assignment. And, yes, N is the engine number (e.g. 1 or 2) Everything after step 1, you do in FSX after a flight is loaded, since all the steps there are based on the FSX and FSUIPC GUIs. FSUIPC is accessed via Add-Ons->FSUIPC menu item. And just for the record, you do need a registered version of FSUIPC.
antney Posted January 2, 2012 Report Posted January 2, 2012 ok, if that is all I do then it is not engaging the reverse thrust. I use the ch throttle quad. I tried using the detent below idle as the button and another separate button to engage reverse. I will play around with it, maybe I have something saved wrong.
pilotjohn Posted January 2, 2012 Author Report Posted January 2, 2012 ok, if that is all I do then it is not engaging the reverse thrust. I use the ch throttle quad. I tried using the detent below idle as the button and another separate button to engage reverse. I will play around with it, maybe I have something saved wrong. ok, if that is all I do then it is not engaging the reverse thrust. I use the ch throttle quad. I tried using the detent below idle as the button and another separate button to engage reverse. I will play around with it, maybe I have something saved wrong. You should turn on Lua logging in FSUIPC (GUI). That will tell you whether the ThrottleManager script is actually loaded and it should log changes in throttle behavior.
antney Posted January 2, 2012 Report Posted January 2, 2012 This is what I got when I tried logging my actions. I dont see the script running in this. ********* FSUIPC4, Version 4.749e by Pete Dowson ********* User Name="Anthony Neumann" User Addr="antney79@aol.com" FSUIPC4 Key is provided WIDEFS7 not user registered, or expired [Continuation log requested by user] Running inside FSX on Windows 7 Module base=61000000 1242844 System time = 02/01/2012 14:00:45, Simulator time = 13:51:56 (19:51Z) 1243094 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N 1244670 FS Control Sent: Ctrl=66080, Param=0 1244670 FS Control Sent: Ctrl=66423, Param=-16384 1244670 FS Control Sent: Ctrl=66429, Param=-14433 1244670 FS Control Sent: Ctrl=66426, Param=-14563 1244670 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN 1244794 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 475 (0x000001db) THROTTLE1_SET 1244841 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 1368 (0x00000558) THROTTLE1_SET 1244935 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 2698 (0x00000a8a) THROTTLE1_SET 1244982 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 4075 (0x00000feb) THROTTLE1_SET 1245060 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 5322 (0x000014ca) THROTTLE1_SET 1245106 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 6355 (0x000018d3) THROTTLE1_SET 1245153 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 7134 (0x00001bde) THROTTLE1_SET 1245247 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 8170 (0x00001fea) THROTTLE1_SET 1245294 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 8948 (0x000022f4) THROTTLE1_SET 1245340 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 9495 (0x00002517) THROTTLE1_SET 1245340 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 10309 (0x00002845) THROTTLE1_SET 1245418 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 10387 (0x00002893) THROTTLE1_SET 1245465 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 11062 (0x00002b36) THROTTLE1_SET 1245465 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 11915 (0x00002e8b) THROTTLE1_SET 1245559 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 11938 (0x00002ea2) THROTTLE1_SET 1245606 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 12604 (0x0000313c) THROTTLE1_SET 1245652 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 13137 (0x00003351) THROTTLE1_SET 1245730 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 14137 (0x00003739) THROTTLE1_SET 1245777 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 14860 (0x00003a0c) THROTTLE1_SET 1245871 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 15683 (0x00003d43) THROTTLE1_SET 1245918 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16061 (0x00003ebd) THROTTLE1_SET 1245964 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16235 (0x00003f6b) THROTTLE1_SET 1246042 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16315 (0x00003fbb) THROTTLE1_SET 1246089 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16352 (0x00003fe0) THROTTLE1_SET 1246183 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16369 (0x00003ff1) THROTTLE1_SET 1246230 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16377 (0x00003ff9) THROTTLE1_SET 1246276 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16380 (0x00003ffc) THROTTLE1_SET 1246370 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16382 (0x00003ffe) THROTTLE1_SET 1246401 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16383 (0x00003fff) THROTTLE1_SET 1246542 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16384 (0x00004000) THROTTLE1_SET 1248429 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16233 (0x00003f69) THROTTLE1_SET 1248476 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 15749 (0x00003d85) THROTTLE1_SET 1248554 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 15074 (0x00003ae2) THROTTLE1_SET 1248601 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 14273 (0x000037c1) THROTTLE1_SET 1248648 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 13490 (0x000034b2) THROTTLE1_SET 1248741 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 12225 (0x00002fc1) THROTTLE1_SET 1248788 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 11115 (0x00002b6b) THROTTLE1_SET 1248835 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 10001 (0x00002711) THROTTLE1_SET 1248913 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 8772 (0x00002244) THROTTLE1_SET 1248960 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 7903 (0x00001edf) THROTTLE1_SET 1249053 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 6546 (0x00001992) THROTTLE1_SET 1249100 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 5309 (0x000014bd) THROTTLE1_SET 1249147 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 4318 (0x000010de) THROTTLE1_SET 1249240 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 3097 (0x00000c19) THROTTLE1_SET 1249287 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 2114 (0x00000842) THROTTLE1_SET 1249365 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 742 (0x000002e6) THROTTLE1_SET 1249412 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 111 (0x0000006f) THROTTLE1_SET 1249459 Button changed: bRef=0, Joy=0, Btn=16, Pressed 1249459 [buttons] 13=P0,16,CL3:T,1 1249459 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 0 (0x00000000) THROTTLE1_SET 1251268 Button changed: bRef=0, Joy=0, Btn=16, Released 1251487 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 14 (0x0000000e) THROTTLE1_SET 1251534 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 542 (0x0000021e) THROTTLE1_SET 1251534 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 1276 (0x000004fc) THROTTLE1_SET 1251580 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 1360 (0x00000550) THROTTLE1_SET 1251658 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 2579 (0x00000a13) THROTTLE1_SET 1251658 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 3971 (0x00000f83) THROTTLE1_SET 1251705 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 3753 (0x00000ea9) THROTTLE1_SET 1251799 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 4943 (0x0000134f) THROTTLE1_SET 1251799 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 6312 (0x000018a8) THROTTLE1_SET 1251846 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 6066 (0x000017b2) THROTTLE1_SET 1251892 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 6812 (0x00001a9c) THROTTLE1_SET 1251970 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 7871 (0x00001ebf) THROTTLE1_SET 1252017 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 8472 (0x00002118) THROTTLE1_SET 1252111 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 9389 (0x000024ad) THROTTLE1_SET 1252158 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 10037 (0x00002735) THROTTLE1_SET 1252204 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 10674 (0x000029b2) THROTTLE1_SET 1252282 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 11307 (0x00002c2b) THROTTLE1_SET 1252329 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 11900 (0x00002e7c) THROTTLE1_SET 1252423 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 12624 (0x00003150) THROTTLE1_SET 1252470 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 13260 (0x000033cc) THROTTLE1_SET 1252516 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 13778 (0x000035d2) THROTTLE1_SET 1252594 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 14582 (0x000038f6) THROTTLE1_SET 1252641 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 15103 (0x00003aff) THROTTLE1_SET 1252735 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 15794 (0x00003db2) THROTTLE1_SET 1252782 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16112 (0x00003ef0) THROTTLE1_SET 1252828 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16259 (0x00003f83) THROTTLE1_SET 1252906 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16326 (0x00003fc6) THROTTLE1_SET 1252953 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16357 (0x00003fe5) THROTTLE1_SET 1253047 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16371 (0x00003ff3) THROTTLE1_SET 1253094 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16378 (0x00003ffa) THROTTLE1_SET 1253140 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16381 (0x00003ffd) THROTTLE1_SET 1253218 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16382 (0x00003ffe) THROTTLE1_SET 1253265 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16383 (0x00003fff) THROTTLE1_SET 1253359 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16384 (0x00004000) THROTTLE1_SET 1255465 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 16271 (0x00003f8f) THROTTLE1_SET 1255543 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 14597 (0x00003905) THROTTLE1_SET 1255590 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 13186 (0x00003382) THROTTLE1_SET 1255636 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 11783 (0x00002e07) THROTTLE1_SET 1255714 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 8483 (0x00002123) THROTTLE1_SET 1255761 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 6200 (0x00001838) THROTTLE1_SET 1255855 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 2621 (0x00000a3d) THROTTLE1_SET 1255902 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 975 (0x000003cf) THROTTLE1_SET 1255948 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 218 (0x000000da) THROTTLE1_SET 1256026 *** AXIS: Cntrl= 65820 (0x0001011c), Param= 0 (0x00000000) THROTTLE1_SET
antney Posted January 2, 2012 Report Posted January 2, 2012 this is what my ini.file is, I am only working on throttle #1 so disregard other throttle numbers. [General] UpdatedByVersion=4749e History=VJ0C0KD10LE4MAW58D6RI MouseWheelTrim=No MouseWheelTrimSpeed=1 JoystickTimeout=20 FixControlAccel=No FixMachSpeedBug=No VisibilityOptions=No OneCloudLayer=No CloudTurbulence=No CloudIcing=No GenerateCirrus=No SuppressCloudTurbulence=No MaxIce=-4 MinIce=-4 UpperWindGusts=No SuppressWindTurbulence=No SuppressWindVariance=No WindTurbulence=No TurbulenceRate=1.0,5.0 TurbulenceDivisor=20,20,40,40 SuppressAllGusts=No MaxSurfaceWind=0 WindLimitLevel=200 WindDiscardLevel=400 WindAjustAltitude=No WindAjustAltitudeBy=2000 SmoothBySimTime=No WindSmoothing=Yes WindSmoothness=2 WindSmoothAirborneOnly=Yes PressureSmoothness=0 TemperatureSmoothness=0 DisconnTrimForAP=No ZeroElevForAPAlt=No ThrottleSyncAll=No WhiteMessages=No ShowPMcontrols=No SpoilerIncrement=512 MagicBattery=No RudderSpikeRemoval=No ElevatorSpikeRemoval=No AileronSpikeRemoval=No ReversedElevatorTrim=No ClockSync=No ClockSyncMins=5 ClearWeatherDynamics=No OwnWeatherChanges=No TimeForSelect=4 LoadFlightMenu=No LoadPlanMenu=No PauseAfterCrash=No BrakeReleaseThreshold=75 SaveDataWithFlights=No ZapSound=firework ShortAircraftNameOk=No UseProfiles=No TCASid=Flight TCASrange=40 AxisCalibration=No DirectAxesToCalibs=No ShowMultilineWindow=Yes SuppressSingleline=No SuppressMultilineFS=No AxisIntercepts=No DontResetAxes=No WeatherReadFactor=2 WeatherRewriteSeconds=1 CustomWeatherModify=No SimConnectStallTime=1 Console=No PollGFTQ6=Yes BlankDisplays=No GetNearestAirports=No LuaRerunDelay=66 EnableMouseLook=No AxesWrongRange=No InitDelay=0 ConsoleWindow=175,175,852,534 FSVersionUsed="Microsoft Flight Simulator X",10.0.61472.0 SimConnectUsed=10.0.61259.0 LogLua=Yes LogWrites=Yes LogReads=Yes LogEvents=Yes LogAxes=Yes LogButtonsKeys=Yes LogExtras=Yes [JoyNames] AutoAssignLetters=No 1=Logitech Extreme 3D 1.GUID={BCCF1070-741B-11DF-8001-444553540000} 2=Saitek Pro Flight Rudder Pedals 2.GUID={2F062140-1904-11E1-8001-444553540000} 0=CH Throttle Quadrant USB 0.GUID={27DAF2F0-5132-11E0-8003-444553540000} [buttons] ButtonRepeat=20,10 4=R1,4,C65607,0 5=R1,2,C65615,0 8=P1,3,C65758,0 9=P1,5,C65759,0 10=P0,5,CL3:T,1 12=R0,7,C65971,0 13=P0,16,CL3:R,1 [AutoSave] AutoSaveEnabled=Yes Interval=300 Files=10 SaveOnGround=No Next=10 1=Thu 221534 2=Thu 222034 3=Thu 222533 4=Thu 223033 5=Thu 223532 6=Thu 224032 7=Mon 101538 8=Mon 102037 9=Mon 102537 10=Sun 152121 [GPSout] GPSoutEnabled=No Port=COM1 Speed=4800 Interval=2000 PosTo6Decimal=No Sentences= [GPSout2] GPSoutEnabled=No Port=<none set> Speed=4800 Interval=2000 PosTo6Decimal=No Sentences= [WideServer] WideFSenabled=Yes [JoystickCalibration] AllowSuppressForPFCquad=Yes ExcludeThrottleSet=No ExcludeMixtureSet=Yes ExcludePropPitchSet=Yes SepRevsJetsOnly=Yes ApplyHeloTrim=No UseAxisControlsForNRZ=No FlapsSetControl=0 FlapDetents=No ReverserControl=66292 Reverser1Control=66422 Reverser2Control=66425 Reverser3Control=66428 Reverser4Control=66431 MaxThrottleForReverser=256 AileronTrimControl=66731 RudderTrimControl=66732 CowlFlaps1Control=66162 CowlFlaps2Control=66163 CowlFlaps3Control=66164 CowlFlaps4Control=66165 SteeringTillerControl=0 MaxSteerSpeed=60 Aileron=-16380,-96,128,16380/8 Elevator=-16380,-32,128,16380/8 Rudder=-16254,-194,0,16380 Throttle=-16380,16380/16 Throttle1=-13652,-11052,-11052,16383/40 Throttle2=-15733,-14433,-11442,15232/40 Reverser=-16380,16380 Reverser1=-16380,16380 Reverser2=0,16380 LeftBrake=-16380,16380/16 RightBrake=-16380,16380/16 Throttle3=-15863,-13263,-11312,15232/40 Throttle4=-15863,-14433,-11572,15222/40 SyncSlopeThrottle2=26/26,30/31,55/55,94/96,127/128 SyncSlopeThrottle3=26/26,30/31,53/55,96/96,127/128 SyncSlopeThrottle4=26/26,30/31,55/55,100/96,127/128 SlewSide=-16380,-512,512,16380 Spoilers=-16384,-14433,-512,16383/16 Flaps=0,16380 [Axes] 0=0X,256,D,22,0,0,0 1=0Y,256 2=0Y,U,8320,16383,66079,0 3=0Y,D,-16384,-9102,66080,0 4=0Z,256,D,9,0,0,0 5=0R,256,F,66423,0,0,0 6=0U,256,F,66429,0,0,0 7=0V,256,F,66426,0,0,0 8=1X,256,D,1,38,0,0 9=1Y,256,D,2,39,0,0 10=1P,0,F,66416,0,0,0 11=2X,256,D,7,0,0,0 12=2Y,256,D,8,0,0,0 13=2R,256,D,3,0,0,0 [JoystickCalibration.Feelthere A320 IAE United 1] AllowSuppressForPFCquad=Yes ExcludeThrottleSet=No ExcludeMixtureSet=Yes ExcludePropPitchSet=Yes SepRevsJetsOnly=Yes ApplyHeloTrim=No UseAxisControlsForNRZ=No FlapsSetControl=0 FlapDetents=No ReverserControl=66292 Reverser1Control=66422 Reverser2Control=66425 Reverser3Control=66428 Reverser4Control=66431 MaxThrottleForReverser=256 AileronTrimControl=66731 RudderTrimControl=66732 CowlFlaps1Control=66162 CowlFlaps2Control=66163 CowlFlaps3Control=66164 CowlFlaps4Control=66165 SteeringTillerControl=0 MaxSteerSpeed=60 Aileron=-15503,-738,770,15862 Elevator=-15503,-457,1050,15337 Rudder=-16380,-2846,2269,16380 Throttle=-16380,16380 Throttle1=-16384,-14953,-14043,14208 Throttle2=-16384,-14043,-11572,15351 Spoilers=-16384,15616/16 Reverser=-16380,16380 Reverser1=-16380,16380 Reverser2=0,16380 [Axes.Feelthere A320 IAE United 1] 0=0X,256,D,22,0,0,0 1=0U,256,F,65821,0,0,0 2=0V,256,F,65820,0,0,0 [buttons.Level D Simulations B767-300ER - United Airlines (circa 2011) N673UA] 0=P1,11,C66059,0 [sounds] Path=C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Sound\ Device1=Primary Sound Driver Device2=Speakers (Realtek High Definition Audio) Device3=Realtek Digital Output(Optical) (Realtek High Definition Audio) Device4=Realtek Digital Output (Realtek High Definition Audio) [Window.Radar Contact] Docked=304, 13483, 3537, 2436 Undocked=2196, 550, 434, 197 [MacroFiles] 1=iFly737 2=leveld767 [LuaFiles] 1=ipcReady 2=linda [Auto] 1=Lua ThrottleManager [JoystickCalibration.PMDG 737-800NGX PMDG House Winglets] AllowSuppressForPFCquad=Yes ExcludeThrottleSet=No ExcludeMixtureSet=Yes ExcludePropPitchSet=Yes SepRevsJetsOnly=Yes ApplyHeloTrim=No UseAxisControlsForNRZ=No FlapsSetControl=0 FlapDetents=No ReverserControl=66292 Reverser1Control=66422 Reverser2Control=66425 Reverser3Control=66428 Reverser4Control=66431 MaxThrottleForReverser=256 AileronTrimControl=66731 RudderTrimControl=66732 CowlFlaps1Control=66162 CowlFlaps2Control=66163 CowlFlaps3Control=66164 CowlFlaps4Control=66165 SteeringTillerControl=0 MaxSteerSpeed=60 Aileron=-15503,-738,770,15862 Elevator=-15503,-457,1050,15337 Rudder=-16380,-2846,2269,16380 Throttle=-16380,16380 Throttle1=-16384,-15213,-13783,14080 Throttle2=-16253,-14043,-12743,15351 Spoilers=-13263,15616/16 Reverser=-16380,16380 Reverser1=-16380,16380 Reverser2=0,16380 [Window.LUA display] Docked=7413, 3243, 3537, 2436 [Monitor] Display=15
pilotjohn Posted January 2, 2012 Author Report Posted January 2, 2012 In the FSUIPC GUI in FSX enable Lua logging which will create a separate log file for every Lua script. If it then doesn't create one for ThrottleManager (ThrottleManager.log) it didn't start it the script.. ThrottleManager.lua is in you FSX/Modules directory correct (and it is .lua not .lua.txt or .txt)? If ThrottleManager.lua were in there, this section: [LuaFiles] 1=ipcReady 2=linda would list it. That section gets updated with any new Lua scripts placed in Modules, so at least you can check whether FSUIPC sees ThrottleManager. That tells me it's likely that the extension is not correct.
antney Posted January 2, 2012 Report Posted January 2, 2012 in the throttle manager do I need to change anything in that before saving it to a lua file? Like engine numbers? For the recap, this is what I did... 1- Opened up FSUIPC.INI and put a new line [Auto] 1=LUA ThrottleManager 2- Set up control axis for engine #1 per directions listed above 3- Save throttlemanager.txt as a lua.file
pilotjohn Posted January 2, 2012 Author Report Posted January 2, 2012 in the throttle manager do I need to change anything in that before saving it to a lua file? Like engine numbers? For the recap, this is what I did... 1- Opened up FSUIPC.INI and put a new line [Auto] 1=LUA ThrottleManager 2- Set up control axis for engine #1 per directions listed above 3- Save throttlemanager.txt as a lua.file No, it's pre configured for the first two engines. If its not showing up in the section of the INI I mentined above tthen it's not in the Modules directory or it's not named .lua. You are not hiding extensions of known files are you, which could cause it to be named .lua.txt when you try to rename it?
antney Posted January 2, 2012 Report Posted January 2, 2012 it is names lua, i double checked that. so should the 1=LUA ThrottleManager be under the [LuaFiles] or I should make [Auto] up and place it there?
pilotjohn Posted January 2, 2012 Author Report Posted January 2, 2012 it is names lua, i double checked that. so should the 1=LUA ThrottleManager be under the [LuaFiles] or I should make [Auto] up and place it there? It should be in [Auto] that you create but FSUIPC would also add it to the [LuaFiles] section if it sees it in the directory. If it didn't update the INI with it, adding it to [Auto] won't do anything. You may want to post to the general forum to see if Pete can offer any ideas or ways to debug why it may not be seen. If its named .lua and it's in the same directory that ipcReady.lua is in (i see that in your INI) it should be visible and loading.
antney Posted January 5, 2012 Report Posted January 5, 2012 it is working now, I think I might of had pressed the wrong LUA function on the button and switches. Appreciate your help, great tool.
pilotjohn Posted January 5, 2012 Author Report Posted January 5, 2012 It should not (but pick either ANSI or UTF8)... if after you place it into the Modules folder, run FSX, start a flight, exit FSX, it's not in FSUIPC.INI then for some reason FSUIPC is not seeing it. As a simple test, create a blank text file and save it in Modules called "test.lua" to see if that shows up in the LuaFiles section of the INI. The other thing you can do is duplicate one of the existing .lua file (in case it's an extensions issue) rename it to ThrottleManager.lua, edit with Notepad, and paste the contents of the attached text file into it. This is just in case there is some issue with extensions.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now