stretch1365 Posted April 4, 2013 Report Share Posted April 4, 2013 Hi Peter, This is probably going to sound like a really silly question. I found on the A2A forum a small lua script for making the reverser's work in the A2A simulations B377 Stratocruiser, using FSUIPC. I asked in the forum about where this code should be copied too and was told in needs to be in the FSX modules folder, as that is where FSUIPC lives. I was told that the instruction "B377 reverse" and "B377 reverse exit" would then appear in the list of button options in FSUIPC's drop down box. So after typing the said code, which I include a copy of below, I see nothing in the "FSX Buttons" drop down. Script #1:- Enter reverse pitch - file named "B377_Reverse.lua" This script sends "F1" (key code 112) and then multiple F2's (keycode 113). The number of times that F2 is sent was chosen to move the VC throttles all the way back to full reverse position. Code: i = 0 ipc.keypress(112) ipc.sleep(250) while i < 14 do ipc.keypress(113) ipc.keypress(113) ipc.keypress(113) ipc.sleep(50) i = i + 1 end Script #2 - Exit reverse pitch File name "B377_Exit_Revers.lua" The script sends F3 (keycode 114) multiple times...enough to move the VC throttles out of the reverse zone and just into the 'normal' range..or idle thrust. Code: i = 0 while i < 15 do ipc.keypress(114) ipc.sleep(50) ipc.keypress(114) ipc.sleep(50) i = i + 1 end So my question is really about how to place these files in the "Modules" folder, do they have to be saved as special file format, in a sub folder, do I need to download a program to create these files in the correct format? or are these just saved as "text" files? I maybe should mention that while I have FSUPIC set up with profiles for each aircraft etc, I can alter cfg files too my ends and do stuff like that, I have never tried to write my own code, which this essentially is, so I'm currently slightly overwhelmed with what is probably a very simple problem, and just need some advice to get started. Thanks for any advice. David Phillips Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now