Jump to content

LUA Scripts for AirbusX (+ real throttle); upd. 16th Sept


guenseli

Recommended Posts

Hi Etienne,

have you simply tried to assign the standard FSX baro?

Its called "Kohlsman" etc...

To your code above:

It isn't said, that the code for turning knobs is the same as for setting the values.

So, you simply has to search for other LUA variables till you find the right one. Sorry its hard, but thats the way it works...

Link to comment
Share on other sites

  • Replies 101
  • Created
  • Last Reply

Guenseli,

Thank you for the excellent suggestion.

I had been fooling around with the lua variable: L:Kohlsman_mem and L:ASC_Kohlsmann without succes.blush.gif

Now combining in the key press the variable L:AB_MPL_Baro_set (turning the baro knob) with the knob release command, the standard FSX baro variable (Kohlsman inc and Kohlsman dec), I get a turning baro knob with the corresponding display change!

Thanks again! biggrin.gif

Etienne

Link to comment
Share on other sites

  • 1 month later...

Hello john i have a christmas present to you :-)

Here there is a LUA script attached for the wipers. There is for left and right side and made 1 for left + right at same time. Note the butoon would rotate in vc. as could find any info for the rotation button.

Best regards LN

wipers.zip

Link to comment
Share on other sites

Guest vbdriver

Hello john i have a christmas present to you :-)

Here there is a LUA script attached for the wipers. There is for left and right side and made 1 for left + right at same time. Note the butoon would rotate in vc. as could find any info for the rotation button.

Best regards LN

many thanks for the present ... i hope you too enjoy the season !

Link to comment
Share on other sites

Just remember it dosent work as the script in here more like to the goflight, so you would se 1 named slow, fast and stop in the folders thats what you should find in the drop down menu in FSUIPC. and no parameter.

Link to comment
Share on other sites

Hi guys,

for the Baro I use the following:

--> Set the BARO to Normal

LVarSet = "L:AB_MPL_Baro_STD"

ipc.writeLvar(LVarSet, 0)

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

--> Set the BARO to STD

LVarSet = "L:AB_MPL_Baro_STD"

ipc.writeLvar(LVarSet, 1)

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

--> Decrease Baro

currbaro = ipc.readUW(0x330)

currbaro = currbaro - 10

ipc.writeUW(0x330, currbaro)

--> Increase Baro

currbaro = ipc.readUW(0x330)

currbaro = currbaro + 10

ipc.writeUW(0x330, currbaro)

Kosta

Link to comment
Share on other sites

Good evening,

after a long pause I have changed my ATI card to a NVIDIA card and now flying makes a lot more fun.

But somehow I do not manage to get the MCP Combo Panel working. Maybe you can assist me with your knowledge. I would appriciate it.

What I have done so far:

1. Bought VSPE for Win7

2. Bought FSUIPC (full version)

3. Downloaded latest LUA script

4. Started an emulation (COM2 <=> COM5, Device "Pair", Status "Ready"... saying Initialization OK)

5. Checked the COM Port of MCP in SerialFP2 (COM3)

6. Added the FSUIPC4.cfg file

Is it right that the MCP Panel does not appear in the joystick section?

[JoyNames]

AutoAssignLetters=No

0=G940

1=Logitech G940 Throttle

2=Logitech G940 Pedals

0.GUID={F1BFAD20-B35F-11DF-8001-444553540000}

1.GUID={B88A9D10-1280-11DF-8007-444553540000}

2.GUID={B88A9D10-1280-11DF-8008-444553540000}

[WideServer]

WideFSenabled=Yes

[buttons]

ButtonRepeat=20,10

Added the Lua file in the modules folder of FSX

[LuaFiles]

1=AS_AirbusX

[AutoSave]

AutoSaveEnabled=No

[GPSout]

GPSoutEnabled=No

[GPSout2]

GPSoutEnabled=No

Here I followed the documentation of AndyB? First COM Port of SerialFP2, second COM Port of VSPE (first number of pair)

[VRInsight]

1=COM3, COM2

If I open FSX and browse to the "Buttons & Switches" tab, nothing happens if I press a button on my panel. Can not choose LUA from the drop down box.

Can anyone tell me where my mistake is?

Again, many thanks for your assistance.

Regards,

Adrian

Link to comment
Share on other sites

I finally made it... it turns out that my system reacted a bit strange. So today I installed Win7 again and now the LUA-Script is working for me.

Thanks Guenseli for all your work with the script. It is a dream to use the MCP Combo Panel now.

But I need one hint from the expert side as I have one small issue.

What do I have to do or which parameter do I have to choose to activate V/S. Increase and decrease is addressed but somehow I am missing how to activate it... Normally I have to push the V/S button in the VC to be able to decrease or increase the value.

Can anyone help me out here?

Thanks in advance.

Adrian

EDIT: Found it.

Link to comment
Share on other sites

  • 5 months later...

Hi!

There is any chace to add to a .lua scrip the offsets of the MCDU buttons?

Please, make my dream come true, and thanks for the .lua script, is works fine!:D

José Maia

Link to comment
Share on other sites

  • 2 weeks later...

Hello Airbus X users,

I'd like to invite you to try the new freeware which allows to assign custom controls to your hardware devices in a much more easy and friendly way.

Support for Airbus X is included by default (based on advanced version of Lua script published in this thread).

VRinsight MCP Combo is supported with full display sync..

Joysticks (USB HID devices) supported too.

Some of the fun features for MCP Combo and Airbus X:

  • BARO rotary on EFIS panel has two modes of pressure indication (hPa/inHg) synced with Airbus X panel indication.
  • MCP SPD rotary sync for both IAS/MACH modes on Airbus X panel indication (use FLCH button on MCP panel to toggle IAS/MACH modes)
  • EFIS MINS rotary to cycle between ECAM pages with current page indicated on MCP display

More information and support forum is here: http://forum.avsim.n...linda-released/

p. s.

Hope I didn't brake any rules here?

Link to comment
Share on other sites

Hello Airbus X users,

I'd like to invite you to try the new freeware which allows to assign custom controls to your hardware devices in a much more easy and friendly way.

Support for Airbus X is included by default (based on advanced version of Lua script published in this thread).

VRinsight MCP Combo is supported with full display sync..

Joysticks (USB HID devices) supported too.

Some of the fun features for MCP Combo and Airbus X:

  • BARO rotary on EFIS panel has two modes of pressure indication (hPa/inHg) synced with Airbus X panel indication.
  • MCP SPD rotary sync for both IAS/MACH modes on Airbus X panel indication (use FLCH button on MCP panel to toggle IAS/MACH modes)
  • EFIS MINS rotary to cycle between ECAM pages with current page indicated on MCP display

More information and support forum is here: http://forum.avsim.n...linda-released/

p. s.

Hope I didn't brake any rules here?

Not today you didn't :)

Not to say you have any other time either.

Link to comment
Share on other sites

  • 1 month later...

LUA scripts for AirbusX throttle

thanks to Pete we have now the possibility to assign the AirbusX throttles via FSUIPC

I copy Petes "How-To" out of his FSUIPC Forum

Try the following two Lua plug-ins:

First this, saved as AirbusX_Thr1.lua:

    ipc.writeLvar("L:AS_FADEC_0", ipcPARAM*-2)
And this, saved as AirbusX_Thr2.lua:
ipc.writeLvar("L:AS_FADEC_1", ipcPARAM*-2)

Save them in the FSX Modules folder.

Then, in FSUIPC axis assignments, assign Throttle 1 to the so-called 'FS control' Lua AirbusX_Thr1, and similarly Throttle 2 to Lua AirbusX_Thr2. Note that you'll find these listed in the "Send to FS as normal axis" mode, NOT in the "Send direct to FSUIPC" mode. This is a quirk of how macros and plug-ins are recognised.

I have tested this with my Saitek X52 and Saitek throttle quadrant and works perfect.

But of course, other hardware could have problems, maybe.

Even if I don't think so.

Please try it out and feel free to report back!

Thanks again and all credits to Pete Dowson!

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

With Petes throttle plugins, my FADEC script is obsolete.

You can of course download it if you like, but the above solution is much better!!!!

AS_AirbusX_FADEC

With this LUAs you can assign some throttle detends to your hardware throttle.

If you don't want to assign a FSX throttle this is for you.

Best way is via FSUIPC throttle detends;

Only disadvantage is, that you just have the fixed throttle detends, also for taxiing.

I can fly very well with it as I never use manual thrust with the Bus ^_^

Please Guenseli, I keep staring at monitor for last 2 hours, but cant understand anything. I have got registered FSUIPC, and want to use Airbus X throttle with it. Can you explain me how to do this step by step ? Thanks alot.

Salim

Btw I use Saitek x52 pro, it has got only one throttle lever.

Link to comment
Share on other sites

well i have attached the file for you as lua file so just insert it to the modulse foler and start FSX and folow the video :

Note i have attached the version from here and 1 for 1 throttle leaver it include the same, but as 1 file as that seems to work as wel as no need to assigne more fiels than needed as the file contain both lines in 1 dokument. and seesm to work best for my saiteck device

hope that helps.

KAPTEJ, thank you very much mate. It works now flawlessly.

Salim

Link to comment
Share on other sites

  • 1 month later...

well i dont have the modul but as far as i remember it have to be set as whit a script indevidualy and not as increase and decrease so here is they 1 file for each possion. just note there 1 only 4 modes on the goflight device where there is 5 inthe airbus and i made them all so its up to you if you want to assign abutton els where fore the last 1.

GF-EFIS.zip

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...

update 16th Sept

and another one:

several new commands: TCAS, Battery, "Avionics" etc...

new items since release are marked in the parameter list

you have to redownload AS_AirbusX.txt and copy the content into your LUA

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

update 15th of Sept

inserted parameters for fast increase and decrease of SPD (36, 37) and HDG (25, 26) (see list of parameters)

(credits to PaulMidd for this idea!)

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

updated 14th of Sept

reason: added Petes throttle plugin, so that my FADEC script is obsolete.

now you have working throttles with FSUIPC!

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

updated 8th, September

reason for update: LUA throttle controls added

look at end of thread

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

Hello dear AirbusX customer,

I have written a LUA Script during Betatest because Finn provided me nicely with the LUA Variables.

You can assign this functions via a registered copy of FSUIPC

Here's a very short tutorial how to "install" LUA files

I copied this tutorial out of one of my stickies in the FSUIPC forum.

The "tutorial" is for the PMDG J41, but thats just a case of naming. Simply change "J41" to "AS_AirbusX" or whatever you like.

To get acces to the single commands you have to do the following:

1) download the file (AS_AirbusX.txt) below

2) rename it as e.g. AS_AirbusX.LUA and put it into the FSX - Modules Folder

3) open FSUIPC menu and choose LUA AirbusX from the drop down

4) insert different parameter numbers depending on the action you want (green field)

fr6tcbg5.jpg

(this example picture is for the J41. For the AirbusX you have to name the file of course AS_AirbusX.LUA or whatever. Then the name in the dropdown (red field) will be Lua AS_AirbusX)!

Note: I have to make slight corrections the next days/weeks (depends on my time), e.g. some switch sounds are not fitting. You can already "install" this LUA script, the parameter number will NOT change with a newer version. You simply have to overwrite this one when a new LUA Script will be provided.

All functions are for ON/OFF or toggle switches, whatever fits your hardware.

Please have a close look into FSUIPC manual. Every question regearding LUA or FSUIPC is answered there!!!

Here is a list which function are in this LUA file:

-- List of parameters

--

-- Autopilot -----------

--

-- 1 AP1 button on

-- 2 AP1 button off

-- 3 AP1 button toggle

-- 4 AP2 button on

-- 5 AP2 button off

-- 6 AP2 button toggle

-- 7 ATHR button on

-- 8 ATHR button off

-- 9 ATHR button toggle

-- 10 AP LOC button on

-- 11 AP LOC button off

-- 12 AP LOC button toggle

-- 13 AP APPR button on

-- 14 AP APPR button off

-- 15 AP APPR button toggle

-- 16 AP EXPED button on

-- 17 AP EXPED button off

-- 18 AP EXPED button toggle

-- 20 Heading mode selection; normal

-- 21 Heading mode selection: managed

-- 22 Heading mode selection normal/managed toggle

-- 23 Heading inc

-- 24 Heading dec

-- 25 Heading inc fast

-- 26 Heading dec fast

-- 30 Speed/mach mode selection toggle

-- 31 Speed mode selection; normal

-- 32 Speed mode selection: managed

-- 33 Speed mode selection normal/managed toggle

-- 34 Speed or Mach inc

-- 35 Speed or Mach dec

-- 36 Speed or Mach inc fast

-- 37 Speed or Mach dec fast

-- 40 Altitude rate selection toggle (100/1000)

-- 41 Altitude rate selection slow (100)

-- 42 Altitude rate selection fast (1000)

-- 43 Altitude mode selection: normal

-- 44 Altitude mode selection: managed

-- 45 Altitude mode selection normal/managed toggle

-- 46 ALT inc slow or fast

-- 47 ALT dec slow or fast

-- 48 ALT inc slow (100)

-- 49 ALT inc fast (1000)

-- 50 ALT dec slow (100)

-- 51 ALT dec fast (1000)

-- 52 V/S Level

-- 53 V/S inc

-- 54 V/S dec

-- 60 F/D ON

-- 61 F/D OFF

-- 62 F/D Toggle

-- 63 LS ON

-- 64 LS OFF

-- 65 LS Toggle

--

-- Navigations Display (ND)---------------------------------

--

-- 70 CSTR on

-- 71 WPT on

-- 72 VOR on

-- 73 NDB on

-- 74 ARPT on

-- 80 Nd Mode inc

-- 81 Nd Mode dec

-- 82 Nd Range inc

-- 83 Nd Range dec

-- 90 VOR1 button on

-- 91 ADF1 button on

-- 92 VOR/ADF1 button off

-- 93 VOR2 button on

-- 94 ADF2 button on

-- 95 VOR/ADF2 button off

-- 96 BARO/STD toggle

-- 97 Master Warning off

-- 98 Master Caution off

-- 99 Master Warning AND Caution off

--

-- lights and signs ------------------------------------------

--

-- 100 strobe on

-- 101 strobe auto

-- 102 strobe off

-- 103 strobe toggle on/off

-- Beacon: Uses standard FSX assignment i.e: (A:LIGHT BEACON, bool)

-- Winglights:Uses standard FSX assignment i.e: (A:LIGHT WING, bool)

-- NAV / Logo lights:Uses standard FSX assignment i.e: (A:LIGHT NAV, bool);(A:LIGHT LOGO, bool)

-- (Note !! Both are tswitched with the same switch)

-- 104 Runway lights on

-- 105 Runway lights off

-- 106 Landing light retracted

-- 107 Landing light on

-- 108 Landing light off

-- 109 Landing light toggle on/off

-- 110 Taxi light off

-- 111 Taxi light on

-- 112 Taxi light T.O

-- 113 Taxi light toggle off/T.O

--Panel lights:Uses standard FSX assignment i.e: (A:LIGHT PANEL, bool)

-- 114 seat sign off

-- 115 seat sign auto

-- 116 seat sign on

-- 117 seat sign toggle off/on

-- 118 smoke sign off

-- 119 smoke sign auto

-- 120 smoke sign on

-- 121 smoke sign toggle off/on

-- 122 emergency light off

-- 123 emergency light armed

-- 124 emergency light on

--

-- systems ------------------------------------------

--

-- 130 APU Master on

-- 131 APU Master off

-- 132 Master toggle

-- 133 APU Start on

-- 134 APU Start off

-- 135 STart toggle

-- 136 APU Master AND Start toggle

-- 140 Autobrake inc

-- 141 Autobrake dec

-- 142 Autobrake MAX

-- 143 Autobrake OFF

-- 144 Autobrake MIN

-- 145 Autobrake MED

-- 148 TCAS dial inc

-- 149 TCAS dial dec

-- 150 Engine1 Master on

-- 151 Engine1 Master off

-- 152 Engine1 Master toggle

-- 153 Engine2 Master on

-- 154 Engine2 Master off

-- 155 Engine2 Master toggle

-- 156 IGN on

-- 157 IGN off

-- 158 IGN toggle

--

-- ECAM ------------------------------------------

--

-- 160 ECAM ENG

-- 161 ECAM BLEED

-- 162 ECAM PRESS

-- 163 ECAM ELEC

-- 164 ECAM HYD

-- 165 ECAM FUEL

-- 166 ECAM APU

-- 167 ECAM COND

-- 168 ECAM DOOR

-- 169 ECAM WHEEL

-- 170 ECAM FCTL

-- 171 ECAM ALL

-- 175 ECAM CLR

-- 176 ECAM RCL

-- 180 ECAM TO config

-- 185 ECAM, PFDs, NDs, Radio on ("avionics")

-- 186 ECAM, PFDs, NDs, Radio off ("avionics")

--

-- further systems ------------------------------------------

--

-- 190 APU Bleed on

-- 191 APU Bleed off

-- 192 APU Bleed toggle

-- 200 BAT1 on

-- 201 BAT1 off

-- 202 BAT1 toggle

-- 203 BAT2 on

-- 204 BAT2 off

-- 205 BAT2 toggle

-- 206 BAT1+2 on

-- 207 BAT1+2 off

-- 208 BAT1+2 toggle

the AS_AirbusX.LUA version is 1.0 from Friday the 13th.

New Versions will be announced here!

Check Version numbers!

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

LUA scripts for AirbusX throttle

thanks to Pete we have now the possibility to assign the AirbusX throttles via FSUIPC

I copy Petes "How-To" out of his FSUIPC Forum

Try the following two Lua plug-ins:

First this, saved as AirbusX_Thr1.lua:

 ipc.writeLvar("L:AS_FADEC_0", ipcPARAM*-2)
And this, saved as AirbusX_Thr2.lua:
ipc.writeLvar("L:AS_FADEC_1", ipcPARAM*-2)

Save them in the FSX Modules folder.

Then, in FSUIPC axis assignments, assign Throttle 1 to the so-called 'FS control' Lua AirbusX_Thr1, and similarly Throttle 2 to Lua AirbusX_Thr2. Note that you'll find these listed in the "Send to FS as normal axis" mode, NOT in the "Send direct to FSUIPC" mode. This is a quirk of how macros and plug-ins are recognised.

I have tested this with my Saitek X52 and Saitek throttle quadrant and works perfect.

But of course, other hardware could have problems, maybe.

Even if I don't think so.

Please try it out and feel free to report back!

Thanks again and all credits to Pete Dowson!

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

With Petes throttle plugins, my FADEC script is obsolete.

You can of course download it if you like, but the above solution is much better!!!!

AS_AirbusX_FADEC

With this LUAs you can assign some throttle detends to your hardware throttle.

If you don't want to assign a FSX throttle this is for you.

Best way is via FSUIPC throttle detends;

Only disadvantage is, that you just have the fixed throttle detends, also for taxiing.

I can fly very well with it as I never use manual thrust with the Bus happy.gif

In the Instructions (3. What 'pull down' are you referring to please? When I open the throttle assignments, after following your instructions, I see no other choice than normal?
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Archived

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


×
×
  • Create New...

Important Information

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. Privacy Policy & Terms of Use