guenseli Posted November 23, 2009 Report Posted November 23, 2009 I have made some little LUA and MACRO files for different aircrafts the last weeks and d'like to share them here. MACRO [Macros] Module="PMDG_MD11.DLL" 1=EFIS TRFC=RX5860*X8b00 2=EFIS DATA=RX5870*X8b00 3=EFIS WPT=RX5880*X8b00 4=EFIS VOR NDB=RX5890*X8b00 5=EFIS ARPT=RX58a0*X8b00 6=EFIS MAP=RX5820*X8b00 7=EFIS PLAN=RX5830*X8b00 8=EFIS VOR=RX5840*X8b00 9=EFIS APPR=RX5850*X8b00 10=EFIS TCAS=RX58b0*X8b00 11=EFIS Range INCR=RX5900*X8b00 12=EFIS Range DECR=RX5910*X8b00 13=EFIS VOR1=RX58c0*X8b00 14=EFIS VOR2=RX58e0*X8b00 15=EFIS ADF1=RX58d0*X8b00 16=EFIS ADF2=RX58f0*X8b00 17=EFIS IN HP=RX5740*X8bcc 18=EFIS BARO DECR=RX57a0*X8bcc,13 19=EFIS BARO INCR=RX57a0*X8bcc,14 20=EFIS MIN incr=RX57f0*X8b00,14 21=EFIS MIN dec=RX57f0*X8b00,13 22=EFIS BARO pull=RX5760*Xf7cc,31 23=PED AutoBrake de=RXf8d0*X8b00 24=PED AutoBrake in=RXf8d0*X8b00,31 25=PED Retr Spoiler=RXd990*X8bcc 26=PED 1/3 Spoiler=RXd9b0*X8bcc 27=PED 2/3 Spoiler=RXd9d0*X8bcc 28=PED Full Spoiler=RXd9f0*X8bcc 29=PED DialAFlap in=RXd560*X8bcc 30=PED DialAFlap de=RXd560*X8bcc,31 31=PED Flap up=RXd480*X8bcc 32=PED Flaps Stats=RXd4a0*X8bcc 33=PED Flaps Dial=RXd4c0*Xa1cc 34=PED Flaps 28=RXd500*X8bcc 35=PED Flaps 35=RXd520*X8bcc 36=PED Flaps 50=RXd540*X8bcc 37=MCP Autoflight=RX63b0*X8b00 38=MCP Appr=RX6440*X8b00 39=MCP NAV=RX6430*X8bcc 40=MCP PROF=RX6400*X8bcc 41=MCP ALT Push=RX6490*X8bcc 42=MCP Alt Pull=RX6490*X8bcc,31 43=MCP HDG Push=RX6410*X8b00 44=MCP HDG Pull=RX6410*X8b00,31 45=MCP SPD Push=RX6450*X8b00 46=MCP SPD Pull=RX6450*X8b00,31 47=MCP IAS MACH=RX6380*X8b00 48=MCP HDG Track=RX6370*X8bcc 49=MCP VS decr=RX6330*X8bcc 50=MCP VS incr=RX6330*X8bcc,14 51=MCP FT MTR=RX6390*X8b00 52=MCP VS FPA=RX63a0*X8b00 53=MCP SPD incr=RX6470*X8bcc,14 54=MCP SPD decr=RX6470*X8bcc,13 55=MCP HDG incr=RX6310*X8b00,14 56=MCP HDG decr=RX6310*X8b00,13 57=MCP ALT incr=RX64b0*X8bcc,14 58=MCP ALT decr=RX64b0*X8bcc,13 59=Lights LDG_ON Le 59.1=RX3270*X8bcc 59.2=RX3270*X8bcc 60=Lights LDG_OFF L 60.1=RX3270*X8bcc,31 60.2=RX3270*X8bcc,31 61=LightsTaxi_ON 61.1=RX32b0*X8bcc 61.2=RX32b0*X8bcc 62=Lights Taxi_OFF 62.1=RX32b0*X8bcc,31 62.2=RX32b0*X8bcc,31 63=Lights Nav+ 63.1=RX33b0*X8bcc 63.2=RX3390*X8bcc 64=Lights STROBE=RX33f0*X8bcc 65=Lights BCNt=RX33d0*X8bcc 66=Lights Panel=RX3450*X8bcc 67=Traffic inc=RX7220*X8b00,31 68=Traffic dec=RX7220*X8b00 69=OHD: Batt on 69.1=RX9300*X8bcc 69.2=RX9300*X8bcc 70=Master Warn Ligh=RX4ee0*X8b78 71=Wiper inc 71.1=RX3550*X8bcc,31 71.2=RX3530*X8bcc,31 72=L:pmdg_hide_yoke=tog 73=Wiper dec 73.1=RX3530*X8bcc 73.2=RX3550*X8bcc 74=MCP FMS SPD=C66587, 71015 75=PED AT Disc=C66587, 73152 76=OHD: APU=RXdf20*X8bcc 77=Lights LDG_ON ri 77.1=RX3290*X8bcc 77.2=RX3290*X8bcc 78=Lights LDG_OFFri 78.1=RX3290*X8bcc,31 78.2=RX3290*X8bcc,31 79=Fuel2 ON=RXd060*X8bcc 80=Lights Emer arm=RX32f0*X8bcc 81=Eng3 start=RXd020*X8bcc,31 82=Eng 2 Start=RXd000*X8bcc,31 83=Eng1 start=RXcfe0*X8bcc,31 84=Fuel3 OFF=RXd080*X8bcc,31 85=Fuel3 ON=RXd080*X8bcc 86=Fuel2 OFF=RXd060*X8bcc,31 87=Fuel1 ON=RXd040*X8bcc 88=Fuel1 OFF=RXd040*X8bcc,31 89=IGNITION A=RXcbf0*X8bcc 90=Lights Panl inc 90.1=RX4f30*X8bcc,14 90.2=RX4f10*X8b00,14 90.3=RX34f0*X8bcc,14 90.4=RX34d0*X8bcc,14 90.5=RX3490*X8bcc,14 90.6=RX34b0*X8bcc,14 91=Lights panl dec 91.1=RX4f30*X8bcc,13 91.2=RX4f10*X8b00,13 91.3=RX34f0*X8bcc,13 91.4=RX34d0*X8bcc,13 91.5=RX34b0*X8bcc,13 91.6=RX3490*X8bcc,13 93=Lights Thunder=RX3470*X8bcc 94=LightWing+Runw 94.1=RX3350*X8bcc 94.2=RX3370*X8bcc LUA MD11 Initialisation code With this codelines assigned to a key or button ar in use with FSUIPC [AUTO] function (read FSUIPC manual for it) you have lowered the yokes, switched off the lights and switched on the framerate-saving overhead switch (PMDG MD-11 introduction.pdf page 54 [chapter 0.00.54]) with one click. cool, or? ipc.sleep(2000) ipc.writeLvar("L:pmdg_hide_yoke", 0) ipc.writeLvar("L:pmdg_hide_yoke", 1) ipc.writeLvar("L:HIDE_OVERHEAD_SWITCHES_var", 1) ipc.control(65574) -- all lights on ipc.control(65574) -- all lights off LUA for panelstate As the MD11 has unfortunately no possiblity to load a defined panelstate, this LUA will help a little. It uses the method that you can generate keystrokes with LUA. This LUA does nothing else than you will do if you load a panelstate via the FS and PMDG menu. But it does it much more faster and with just one click. Look into te LUA file to change the loading of different panelstates. Note: as the LUA always counts down through the panelstates which are in the PMDG menu you should rename the PMDG panelstates from e.g. "PMDG MD-11 After Engine Start.sav" to "00_PMDG MD-11 After Engine Start.sav" so they are always at top of the list. The panelstates are found in the folder: X:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\PMDG\MD11\panelstate -- MD-11 panel status automatic -- ipc.keypressplus(18,1,4) -- ALT and focus to FS ipc.keypressplus(65) -- A for Addons ipc.sleep(50) ipc.keypressplus(80) -- P for PMDG ipc.sleep(50) ipc.keypressplus(40) -- Cursor right for PMDG Menue ipc.keypressplus(40) -- Csr Down 7 times to get to panel state ipc.keypressplus(40) ipc.keypressplus(40) ipc.keypressplus(40) ipc.keypressplus(40) ipc.keypressplus(40) ipc.keypressplus(13) -- Enter -- below are the Panel States -- be sure to have the same order in your PMDG/MD11/panelstate folder -- be sure not to have any previously saved panelstates before this -- for PAX and Freighter Version maybe you have to create two different files -- Delete the entries below your prefered panelstate (now its before engine start) ipc.keypressplus(40) -- After Engine Start ipc.keypressplus(40) -- Before Engine Start --ipc.keypressplus(40) -- Cold and Dark --ipc.keypressplus(40) -- Long Ground Turn --ipc.keypressplus(40) -- Short Ground Turn --ipc.keypressplus(40) -- Tutorial --ipc.keypressplus(40) -- Freighter C&D --ipc.keypressplus(40) -- Freighter Long Ground --ipc.keypressplus(40) -- Freighter Short Ground ipc.sleep(1000) -- little pause of 1s ipc.keypressplus(13) -- ENTER to press OK button ipc.sleep(100) ipc.control(65574) -- all lights on ipc.sleep(100) ipc.control(65574) -- all lights off FSUIPC4.ini codes for ND Mode change: insert this line into the keys (or button) section into your FSUIPC4.ini: 110=117,26,x510066C0,x00040001 ;ND Mode inc start 111=B66C0=0 117,26,66587,71132 112=B66C0=1 117,26,66587,71133 113=B66C0=2 117,26,66587,71134 114=B66C0=3 117,26,66587,71135 115=B66C0=4 117,26,66587,71136 116=115,26,x610066C0,x00040001 ;ND Mode dec start 117=B66C0=0 115,26,66587,71132 118=B66C0=1 115,26,66587,71133 119=B66C0=2 115,26,66587,71134 120=B66C0=3 115,26,66587,71135 121=B66C0=4 115,26,66587,71136 ;ND Mode end don't forget to change your personal keyassignment numbers (red). If you want them assigned to to joystickbuttons, then change also the green lines and add an "C": 116=PB,1,Cx610066C0,x00040001 [EDITED by Pete: the C has to come before the "x", as the latter is just a number prefix denoting "hexadecimal" instead of "decimal"] [edited by guenseli: thanks Pete!] (in this example it is assigned to Joystick B, Button 1) All files work at my system with latest FSUIPC version. no guarantee that they will work for you (but they should, I'm sure - tested only at FSX Acceleration) Do any codings at your own risk and just do things if you know what you do... Be patient that I could not support any question. Please inform yourself how to handle MACROS and LUA files and the power of FSUIPC. Have fun! --- update 16th dezember 2009: few new macro commands and changes added
mtjoeng Posted December 1, 2009 Report Posted December 1, 2009 I miss the CDU(FMS) buttons NAVRAD MENU PROG TO/APPR L1 L1 .. R5 R6 etc I tried myself, but no variables or macro's seem to work is this correct - CDU cannot be accessed? (but by VRInsight Mouse Screen macro's - I have the VRInsight Combo) thx mt
guenseli Posted December 1, 2009 Author Report Posted December 1, 2009 I miss the CDU(FMS) buttons Could be. I haven't tried myself because if I assign that one also I run definitely out of buttons. But feel free to research further...
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