Archived

This topic is now archived and is closed to further replies.

guenseli

FSUIPC commands

Recommended Posts

I have made some little LUA and MACRO files for different aircrafts the last weeks and d'like to share them here.With the LUA commands below you have the possibility to control ND Range and ND Mode!LUA commandsHere's a very short tutorial how to "install" LUA filesTo get acces to the single commands you have to do the following:1) copy the code below2) insert it into an empty editor or wordpad file and save it as e.g. J41.LUA into the FSX - Modules Folder3) open FSUIPC menu and choose LUA J41 from the drop down4) insert different parameter numbers depending on the action you want (green field)fr6tcbg5.jpg(this example picture is for the J41. For the 747 you have to name the file of course 747.LUA or whatever. Them the name in the dropdown (red field) will be Lua 747)Here is the list of 747X parameter numbers:-- 1 EFIS WXR-- 2 EFIS STA-- 3 EFIS WPT-- 4 EFIS ARPT-- 5 EFIS DATA-- 6 EFIS POS--7 EFIS FPV-- 8 EFIS MTRS-- 9 EFIS Minimums reset-- 10 EFIS IN/HPA-- 11 EFIS BARO Std-- 12 EFIS VOR L inc-- 13 EFIS VOR L dec-- 14 EFIS VOR R inc-- 15 EFIS VOR R dec-- 16 EFIS ND Mode inc-- 17 EFIS ND Mode dec-- 18 EFIS ND Range inc-- 19 EFIS ND Range dec-- 20 EFIS Minimums inc-- 21 EFIS Minimums dec-- 22 TOGA-- 23 EFIS TFC

-- 1 EFIS WXR-- 2 EFIS STA-- 3 EFIS WPT-- 4 EFIS ARPT-- 5 EFIS DATA-- 6 EFIS POS--7 EFIS FPV-- 8 EFIS MTRS-- 9 EFIS Minimums reset-- 10 EFIS IN/HPA-- 11 EFIS BARO Std-- 12 EFIS VOR L inc-- 13 EFIS VOR L dec-- 14 EFIS VOR R inc-- 15 EFIS VOR R dec-- 16 EFIS ND Mode inc-- 17 EFIS ND Mode dec-- 18 EFIS ND Range inc-- 19 EFIS ND Range dec-- 20 EFIS Minimums inc-- 21 EFIS Minimums dec-- 22 TOGA-- 23 EFIS TFC-- EFIS WXR	if ipcPARAM == 1 then   	ipc.control(72020) 	end-- EFIS STA	if ipcPARAM == 2 then   	ipc.control(72021) 	end-- EFIS WPT	if ipcPARAM == 3 then   	ipc.control(72022) 	end-- EFIS ARPT	if ipcPARAM == 4 then   	ipc.control(72023)  	end-- EFIS DATA	if ipcPARAM == 5 then   	ipc.control(72024) 	end-- EFIS POS	if ipcPARAM == 6 then   	ipc.control(72025) 	end-- EFIS FPV	if ipcPARAM == 7 then   	ipc.control(72000)	end-- EFIS MTRS	if ipcPARAM == 8 then   	ipc.control(72001) 	end-- EFIS MINS_RST	if ipcPARAM == 9 then   	ipc.writeLvar("L:EFIS_L_MINS_RST_Switch_var", 1)	ipc.sleep(250)	ipc.writeLvar("L:EFIS_L_MINS_RST_Switch_var", 0) 	end-- EFIS IN HPA	if ipcPARAM == 10 then   	ipc.control(72007)	end-- EFIS BARO_STD	if ipcPARAM == 11 then   	ipc.writeLvar("L:EFIS_L_BARO_STD_Switch_var", 1)	ipc.sleep(250)	ipc.writeLvar("L:EFIS_L_BARO_STD_Switch_var", 0) 	end-- EFIS VOR L inc	if ipcPARAM == 12 then   	ipc.control(66587, 72010)	end-- EFIS VOR L dec	if ipcPARAM == 13 then   	ipc.control(66587, 72011)	end-- EFIS VOR R inc	if ipcPARAM == 14 then   	ipc.control(66587, 72018)	end-- EFIS VOR R dec	if ipcPARAM == 15 then   	ipc.control(66587, 72019)	end-- EFIS ND Mode inc	if ipcPARAM == 16 then   	ipc.control(66587, 72013)	end-- EFIS ND Mode dec	if ipcPARAM == 17 then   	ipc.control(66587, 72012)	end-- EFIS ND Range inc	if ipcPARAM == 18 then   	ipc.control(66587, 72016)	end-- EFIS ND Range dec	if ipcPARAM == 19 then   	ipc.control(66587, 72015)	end-- EFIS Minimums inc	if ipcPARAM == 20 then   	ipc.control(66587, 72005)	end-- EFIS Minimums dec	if ipcPARAM == 21 then   	ipc.control(66587, 72004)	end-- TOGA	if ipcPARAM == 22 then   	ipc.control(73010)	end-- EFIS TFC	if ipcPARAM == 23 then   	ipc.control(72017)	end-- EFIS TFC	if ipcPARAM == 24 then   	ipc.control(72014)	end

Macros

[Macros]Module="B767oh.GAU"1=Panel light=R12=Taxi lgt2.1=R102.2=R112.3=R123=Flood light=R134=Landing Lt4.1=R94.2=R84.3=R75=BCN=R36=NAV6.1=R26.2=R56.3=R67=STROBE=R424=Landing Left=R725=Landing right=R826=Nose gear=R9Module1="B767Afds.GAU"8=Autobrake inc=R1:X1ed0*Xa1cc9=Autobrake dec=R1:X1f00*Xa1cc27=Master warn=R1:X1cc0*X8bccModule2="B767Radios.GAU"10=TCAS inc=R2:X1c90*Xa1cc11=TCAS dec=R2:X1c50*Xa1ccModule3="B767Overhead.GAU"12=Battery=R3:X26e0*Xa1cc13=APU on=R3:X24a0*Xa1cc14=Smoking OFF=R3:X1800*Xa1cc15=Smoking on=R3:X1840*Xa1cc16=Seat OFF=R3:X17e0*Xa1cc17=Seat ON=R3:X1820*Xa1cc18=ENG1 Start=R3:X3070*Xa1cc19=Eng2 start=R3:X30b0*Xa1cc20=Wiper inc=R3:X2de0*Xa1cc21=Wiper dec=R3:X2dc0*Xa1cc28=Generators28.1=R3:X2550*Xa1cc28.2=R3:X2520*Xa1cc29=Stby Power inc=R3:X2730*Xa1cc30=Stby Power dec=R3:X2710*Xa1ccModule4="B767pedestal.GAU"22=Fuel L on=R4:X18d0*X83cc23=Fuel R on=R4:X1950*X8300

Read FSUIPC Manual for more information about LUA!!Do everything at your own risk; don't blame PMDG, Pete Dowson or (most important) me for any errors!Have fun!

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!