Jump to content
The simFlight Network Forums
KAPTEJNLN

AirbusX - Lua file - GF-MCP Displays

Recommended Posts

well hello,

Now the work is done whit a very big amount of help from Pete i had to understand and find out how to get it working from his exsampels so the thanks goes to Pete not me.

So what to expect ? well now you would be abel to get goflight MCP display show the same as in the Airbus X.

So if you want to try it out go download it, all info included in the manual.

another hint would be visiting my other post where i tell a bit of info to goflight user`s about an update of FSUIPC and some shorter codes of guenseli work for the MCP ONLY.

Best Regards Lars whis you all a plesent flight.

UPDATE 15 JUL 2011

for the latest file go to post NR:3 for the files to the advanced MCP.

Share this post


Link to post
Share on other sites

Hi all!

Now i would give a littel tip about how to get your goflight led turn on and off. The following could be used for goflight MCP but also pushbutons from other gf devices. i give an exsampel on how it loks to work then you could edit the things required to get it doeing what you want. A litel hint would be that you can find all the lvars like this("L:Landlight_switch") in the file from guenseli that is the easy way to find it as you already use his file for the rest i think. To locate the Lvars go to the parameter and look in the text like show before just whit the name for the Lvars you should need. ("L:xxxx_xxxx") easy to locate as L: is in the code.

exampel of how the ipcReady file looks see my attaced file.

you can try study it out and se what it doese and then edit it so it stays as you want. you can try to have a look at the post where pete helped whit it. just to give better understanding: viewtopic.php?f=54&t=81549&start=30

But plz note that you can`t use my code for all comands as some of them would not show corect.

Best regards

Lars have a nice flight to all....

IPCREADY.zip

Share this post


Link to post
Share on other sites

!If you have previus version delt all files you got in previus version especialy the ipcready as thats replaced!

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

how to set it up (Note the displays would not work yet as thats first next step)

______________________________________________________________________________________________________________________________________________________________________________________________

When FSX is shutdown then go to the modules folder and open the fsuipc.ini file and search for ShortAircraftNameOk=NO then

changes it to yes if you havent already did that before.

then go down to the programing you jus made for the airbus might look like [buttons.Airbus A320] just longer whit the livery name rename it to the name shown: [buttons.Airbus A320]

then copy from [buttons.Airbus A320] + all the lines to where it ends. then place it where the previus lines ends whit a space and paste it then rename it [buttons.Airbus A321]

so you have 2 sections that contain the same info. as shown in the end ofthis post under the files from my ini file

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Now go to the end of the dokument and insert this 1 space under the last line:

[auto.Airbus A32]

1=LUA Airbus-X

save the file and you are done

just to show what i mean here is some of the importan info from my fsuipc.ini file:

[Buttons.Airbus A320]
22=P157,2,CL16:R,0
23=P157,3,CL14:R,0
24=P149,22,CL16:R,0
25=P149,21,CL15:R,0
28=P149,29,CM15:6,0
29=P149,30,CM15:7,0
31=P149,17,CL12:R,0
34=P149,18,CL11:R,0
35=P149,19,CL9:R,0
36=P149,16,CL10:R,0
39=U149,19,CL9:R,0
40=U149,16,CL10:R,0
41=U157,2,CL16:R,0
42=P157,1,CL15:R,0
43=U157,1,CL15:R,0
44=P157,0,CL13:R,0
45=U157,0,CL13:R,0
46=U157,3,CL14:R,0
47=P157,14,CL11:R,0
48=P157,13,CL12:R,0
49=U157,13,CL12:R,0
50=U157,14,CL11:R,0
51=P157,15,CL9:R,0
52=U157,15,CL9:R,0
53=P157,12,CL10:R,0
54=U157,12,CL10:R,0
55=P157,10,CL7:R,0
56=U157,10,CL7:R,0
57=P157,9,CL6:R,0
58=U157,9,CL6:R,0
59=P157,11,CL5:R,0
60=U157,11,CL5:R,0
61=P157,8,CL4:R,0
62=U157,8,CL4:R,0
63=P158,2,CL17:R,0
64=P158,3,CL18:R,0
65=P158,4,CL19:R,0
66=U158,4,CL33:R,0
67=P158,14,CL36:R,0
68=U158,14,CL35:R,0
70=P158,16,CL30:R,0
71=P158,11,CL29:R,0
72=P158,19,CL23:R,0
73=P158,7,CL22:R,0
74=P158,18,CL26:R,0
76=P158,20,CL21:R,0
77=P158,21,CL32:R,0
78=P158,15,CL27:R,0
79=P158,12,CL25:R,0
80=U158,12,CL25:R,0
81=P158,13,CL20:R,0
82=P158,5,CL28:R,0

[Buttons.Airbus A321]
22=P157,2,CL16:R,0
23=P157,3,CL14:R,0
24=P149,22,CL16:R,0
25=P149,21,CL15:R,0
28=P149,29,CM15:6,0
29=P149,30,CM15:7,0
31=P149,17,CL12:R,0
34=P149,18,CL11:R,0
35=P149,19,CL9:R,0
36=P149,16,CL10:R,0
39=U149,19,CL9:R,0
40=U149,16,CL10:R,0
41=U157,2,CL16:R,0
42=P157,1,CL15:R,0
43=U157,1,CL15:R,0
44=P157,0,CL13:R,0
45=U157,0,CL13:R,0
46=U157,3,CL14:R,0
47=P157,14,CL11:R,0
48=P157,13,CL12:R,0
49=U157,13,CL12:R,0
50=U157,14,CL11:R,0
51=P157,15,CL9:R,0
52=U157,15,CL9:R,0
53=P157,12,CL10:R,0
54=U157,12,CL10:R,0
55=P157,10,CL7:R,0
56=U157,10,CL7:R,0
57=P157,9,CL6:R,0
58=U157,9,CL6:R,0
59=P157,11,CL5:R,0
60=U157,11,CL5:R,0
61=P157,8,CL4:R,0
62=U157,8,CL4:R,0
63=P158,2,CL17:R,0
64=P158,3,CL18:R,0
65=P158,4,CL19:R,0
66=U158,4,CL33:R,0
67=P158,14,CL36:R,0
68=U158,14,CL35:R,0
70=P158,16,CL30:R,0
71=P158,11,CL29:R,0
72=P158,19,CL23:R,0
73=P158,7,CL22:R,0
74=P158,18,CL26:R,0
76=P158,20,CL21:R,0
77=P158,21,CL32:R,0
78=P158,15,CL27:R,0
79=P158,12,CL25:R,0
80=U158,12,CL25:R,0
81=P158,13,CL20:R,0
82=P158,5,CL28:R,0

[auto.Captain Sim 757]
1=LUA C757

[auto.Airbus A32]
1=LUA Airbus-X

post-13706-0-08175300-1311258144_thumb.p

Airbus X- mcp-pro Version1.0.zip

Share this post


Link to post
Share on other sites

Hello, Kaptejnln,

Does this work for AXE? I'm trying to assign some of my GoFlight buttons and rotaries on MCP and RP48 to the internal functions of AXE via your lua scripts. Do you know if there are updated files for AXE that can be used for programming GoFlight modules. I tried Linda, but Linda does not have interface to read GoFlight inputs.

Thanks,

Dirk.

Share this post


Link to post
Share on other sites

Ok, I've written my first LUA! Lol, as if I understand anything, but somehow it works:

============================================================

FD = ipc.readLvar("L:AB_MPL_FD")

if(FD == 1) then

ipc.writeLvar("L:AB_MPL_FD", 0)

else

ipc.writeLvar("L:AB_MPL_FD", 1)

end

ipc.writeLvar("L:SmallOverheadPushButtons", 1)

=============================================================

This code switches FD in AXE.

I wonder if there is Lvar for FD toggle in AXE? I imagine too many "If" loops can be bad for performance.

Thanks,

Dirk.

Share this post


Link to post
Share on other sites

well thefile here is not working whit AXE as they chagesed some names so it have to be redone and i have no plans of doeing that as i have stoped helping aerosoft as i got diserpointed whit this release as for me it´s even bigger problems then the privius version when it comes to how sensetive it is and crash the sim even whit out using the hardware so sorry.. i know other have the variables and perhaps you could ask them and get a awenser..

Share this post


Link to post
Share on other sites

well thefile here is not working whit AXE as they chagesed some names so it have to be redone and i have no plans of doeing that as i have stoped helping aerosoft as i got diserpointed whit this release as for me it´s even bigger problems then the privius version when it comes to how sensetive it is and crash the sim even whit out using the hardware so sorry.. i know other have the variables and perhaps you could ask them and get a awenser..

Understood. Just in case, KAPTEJNLN, here you'll find all the new names (follow the link to aerosoft SDK http://forum.aerosof...-sdk-variables/ ) and improved scripting concept for AXE (compared to what had been done for AX):

http://forum.simflig...-into-one-file/

Cheers,

Dirk.

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.