Jump to content
The simFlight Network Forums

Recommended Posts

Posted
15 hours ago, Cuantreau said:

Hello John, I tried with the PMDGAutoBrake.lua you provided, can't seem to make it to work. This is what I'm doing. Copy the .lua to FSUIPC install folder, edit it by replacing myJoynum with A (which is the letter shown when I press the button I wish to assign in fsuipc with running sim), replace myRtoButton with 30, myOffButton with 31, etc. Then look for the PMDGAutoBrake.lua from Select for FS Control ticked and find it in "control sent when button pressed" section. But the rotary switch I use is not responding to that. What am I doing wrong here? Thx.

First, use the number for your device - I suspect that it is 0, but you can confirm by looking at the  joy letter / id mapping in the [Joy\names] section of your FSUIPC7.ini.
Second, the lua must be auto-ran - add it to your [Auto] section, or, better still, your [Auto.xxx] section (where xxx is the name of the profile you use for the PMDG 737).
You do not need  to make any assignments to the lua. Anu issues, activating logging for Lua Plugins and show me your FSUIPC7.ini and FSUIPC.log files.

17 hours ago, mtjoeng said:

I think a 0-state read is missing in the latest LINDA file at the moment, only inc dec work (I notified on the forum)

Not 100% sure what this means, but looks ok to me. keep this thread updated if you hear anything, thanks.

Posted
9 hours ago, John Dowson said:

First, use the number for your device - I suspect that it is 0, but you can confirm by looking at the  joy letter / id mapping in the [Joy\names] section of your FSUIPC7.ini.
Second, the lua must be auto-ran - add it to your [Auto] section, or, better still, your [Auto.xxx] section (where xxx is the name of the profile you use for the PMDG 737).
You do not need  to make any assignments to the lua. Anu issues, activating logging for Lua Plugins and show me your FSUIPC7.ini and FSUIPC.log files.

Not 100% sure what this means, but looks ok to me. keep this thread updated if you hear anything, thanks.

Ok John, for the number (it's 4).

For the second part I've added

[Auto.PMDG 737-700]
1=PMDGAutoBrake.lua

Here are the files including my edited PMDGAutoBrake.lua one

Thank you very much

PMDGAutoBrake.lua

Posted
36 minutes ago, Cuantreau said:

For the second part I've added

[Auto.PMDG 737-700]
1=PMDGAutoBrake.lua

This is not correct. Why don't you consult the documentation if you do not know how to use a facility before posting....
The correct format should be:

[Auto.PMDG 737-700]
1=Lua PMDGAutoBrake

In your lua file,why didn't you just change the variables at the top of the file? Doesn't really matter, but you didn't change the last event.button call:
 

Quote

event.button(4, 30, "PMDG_MPNL_AUTOBRAKE_RTO")
event.button(4, 31, "PMDG_MPNL_AUTOBRAKE_OFF")
event.button(4, 132, "PMDG_MPNL_AUTOBRAKE_1")
event.button(4, 133, "PMDG_MPNL_AUTOBRAKE_2")
event.button(4, 134, "PMDG_MPNL_AUTOBRAKE_3")
event.button(myJoynum, myMaxButton, "PMDG_MPNL_AUTOBRAKE_MAX")
 

That last one should probably be:
    event.button(4, 135, "PMDG_MPNL_AUTOBRAKE_MAX")\

Any further issues, try looking at the documentation first, and also check your log file (you can add appropriate logging) which should tell you what is happening.

 

Posted
23 minutes ago, John Dowson said:

This is not correct. Why don't you consult the documentation if you do not know how to use a facility before posting....
The correct format should be:

[Auto.PMDG 737-700]
1=Lua PMDGAutoBrake

In your lua file,why didn't you just change the variables at the top of the file? Doesn't really matter, but you didn't change the last event.button call:
 

That last one should probably be:
    event.button(4, 135, "PMDG_MPNL_AUTOBRAKE_MAX")\

Any further issues, try looking at the documentation first, and also check your log file (you can add appropriate logging) which should tell you what is happening.

 

Ok John, will try, thanks a lot

Posted

Hi John,

thanks for taking the time to write this script. Unfortunately it does not work for me 😞
I placed it inside the main FSUIPC7 folder and added the following part to my fsuipc7.ini file.

[Auto]
1=Lua PMDGAutoBrake

 

Then I changed the script header to the following..

-- ## Auto Brake
local PMDG_EVT = 66587

--
-- Change the following to match your joysyick and button numbers
--
local myJoynum = A 
local myRtoButton = 0
local myOffButton = 1
local my1Button = 3
local my2Button = 4
local my3Button = 5
local myMaxButton = 7

Since my joynames section contains this I tried it with letter "A" and number "0".
The name of the rotary device is BU0836-LC Interface


[JoyNames]
0=BU0836-LC Interface
0.GUID={C66388B0-0C9E-11EB-8001-444553540000}
4=T-Pendular-Rudder
4.GUID={0F828800-228C-11EA-8004-444553540000}
6=UnoJoy Joystick
6.GUID={E424C0B0-1AEC-11EB-8001-444553540000}
A=BU0836-LC Interface
A.GUID={C66388B0-0C9E-11EB-8001-444553540000}
B=Alpha Flight Controls << MISSING JOYSTICK >>
B.GUID={0F81EBC0-228C-11EA-8001-444553540000}
C=SideWinder Force Feedback 2 Joystick
C.GUID={E2BE39C0-D661-11E9-8006-444553540000}
D=JoyWarrior A8-16
D.GUID={71EE1820-F9FE-11EA-8001-444553540000}
E=T-Pendular-Rudder
E.GUID={0F828800-228C-11EA-8004-444553540000}
F=8AI-36DI-01
F.GUID={298609A0-8683-11EB-8001-444553540000}
G=UnoJoy Joystick
G.GUID={E424C0B0-1AEC-11EB-8001-444553540000}
H=BU0836-LC Interface
H.GUID={0856FD90-3014-11EB-8001-444553540000}
5=Controller (XBOX 360 For Windows)
5.GUID={0B9569C0-D4E6-11EB-8002-444553540000}
J=Controller (XBOX 360 For Windows)
J.GUID={0B9569C0-D4E6-11EB-8002-444553540000}
2=Button Box Interface
2.GUID={09EEC740-1D77-11EC-8001-444553540000}
K=Button Box Interface
K.GUID={09EEC740-1D77-11EC-8001-444553540000}
3=JoyWarrior A8-16
3.GUID={71EE1820-F9FE-11EA-8001-444553540000}
1=AGRONN Yoke P V1.0
1.GUID={96FE7D00-A48C-11EC-8001-444553540000}
L=AGRONN Yoke P V1.0
L.GUID={96FE7D00-A48C-11EC-8001-444553540000}

With both I get this result in the logging console.

   510704 *** EVENT: Cntrl= 67276 (0x000106cc), Param= 0 (0x00000000) AUTOBRAKE_LO_SET
   510719 *** EVENT: Cntrl= 67276 (0x000106cc), Param= 0 (0x00000000) AUTOBRAKE_LO_SET
   510750 *** EVENT: Cntrl= 67276 (0x000106cc), Param= 0 (0x00000000) AUTOBRAKE_LO_SET
   510766 *** EVENT: Cntrl= 67276 (0x000106cc), Param= 0 (0x00000000) AUTOBRAKE_LO_SET
   510782 *** EVENT: Cntrl= 67276 (0x000106cc), Param= 0 (0x00000000) AUTOBRAKE_LO_SET
   510813 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511204 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511235 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511250 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511266 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511297 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511313 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511344 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511360 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511375 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511407 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511422 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511438 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511469 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511485 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511500 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511532 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511547 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511579 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511594 *** EVENT: Cntrl= 67277 (0x000106cd), Param= 0 (0x00000000) AUTOBRAKE_MED_SET
   511610 *** EVENT: Cntrl= 67278 (0x000106ce), Param= 0 (0x00000000) AUTOBRAKE_HI_SET
   512016 *** EVENT: Cntrl= 67278 (0x000106ce), Param= 0 (0x00000000) AUTOBRAKE_HI_SET
   512047 *** EVENT: Cntrl= 67278 (0x000106ce), Param= 0 (0x00000000) AUTOBRAKE_HI_SET
   512063 *** EVENT: Cntrl= 67278 (0x000106ce), Param= 0 (0x00000000) AUTOBRAKE_HI_SET

 

Any idea what might be wrong?
Thank you!

 

Best regards Andi

 

 

Posted
36 minutes ago, 737Andi said:

Any idea what might be wrong?

No, not with what you showed me...

Can you activate logging for Buttons & Keys, Events and Lua Plugins.  Then generate a log (full please, not a continuation) where you press each of your buttons assigned to the autobrake positions, in turn. Then exit FSUIPC7, and show me/attach your FSUIPC7.log, FSUIPC7.ini and PMDGAutoBrake.lua files.
I will take a look at them tomorrow.

John

Posted

Andy, even though I appreciate John's help with this, couldn't get it to work myself either. But what worked flawlessly for me was to enable WASM and selecting the presets. This is done like this: open FSUIPC app, right click on the FSUIPC system in tray icon, show, add-ons, WASM and enable it. Close FSUIPC. Open the sim and fsuipc (if it has not opened automatically). Start a flight. Go to fsuipc buttons and swithces, rotate your rotary button for example to the left and then choose PMDG_B737-7_ANTISKID_RTO_POS_SW,0

Do the same for PMDG_B737-7_ANTISKID_OFF_POS_SW,0      etc... Done, that easy.

Posted
3 minutes ago, Cuantreau said:

But what worked flawlessly for me was to enable WASM and selecting the presets.

If there are presets available then using those is certainly preferable to using lua...,I missed them in the preset list as they are called ANTISKID and not BRAKE...

The lua script also requires the WASM to be enabled, as it is using lvars...

Posted
1 hour ago, Cuantreau said:

Andy, even though I appreciate John's help with this, couldn't get it to work myself either. But what worked flawlessly for me was to enable WASM and selecting the presets. This is done like this: open FSUIPC app, right click on the FSUIPC system in tray icon, show, add-ons, WASM and enable it. Close FSUIPC. Open the sim and fsuipc (if it has not opened automatically). Start a flight. Go to fsuipc buttons and swithces, rotate your rotary button for example to the left and then choose PMDG_B737-7_ANTISKID_RTO_POS_SW,0

Do the same for PMDG_B737-7_ANTISKID_OFF_POS_SW,0      etc... Done, that easy.

Thank you very much! I enabled WASM and searched for the PMDG_B737-7_ANTISKID_OFF_POS_SW,0 command under FSControl. Unfortunately I could not find it there 😞

Posted
5 minutes ago, 737Andi said:

Thank you very much! I enabled WASM and searched for the PMDG_B737-7_ANTISKID_OFF_POS_SW,0 command under FSControl. Unfortunately I could not find it there 😞

Andi, if you have v7304, they should be there.

Untitled.png

Posted
12 hours ago, 737Andi said:

Petes lua is working too if WASM is enabled

Its John - Pete retired several years ago.
Thanks for reporting back - as I said, you need the WASM enabled for the script as it is using an lvar.

John
 

Posted
37 minutes ago, John Dowson said:

Its John - Pete retired several years ago.
Thanks for reporting back - as I said, you need the WASM enabled for the script as it is using an lvar.

John
 

Hi John, sorry! Thanks again for writing it!

  • 3 months later...
Posted
On 5/25/2022 at 11:31 AM, Cuantreau said:

Andy, even though I appreciate John's help with this, couldn't get it to work myself either. But what worked flawlessly for me was to enable WASM and selecting the presets. This is done like this: open FSUIPC app, right click on the FSUIPC system in tray icon, show, add-ons, WASM and enable it. Close FSUIPC. Open the sim and fsuipc (if it has not opened automatically). Start a flight. Go to fsuipc buttons and swithces, rotate your rotary button for example to the left and then choose PMDG_B737-7_ANTISKID_RTO_POS_SW,0

Do the same for PMDG_B737-7_ANTISKID_OFF_POS_SW,0      etc... Done, that easy.

Hi.  When you did this, did you need the .lua script too?  I can't get it to work.  Thanks.

Posted
27 minutes ago, mtjoeng said:

Was searching quite a while for 'autobrake' but 'autoskid' was in the events.txt

Yes, that was the problem I had - did you not review the comments on this thread? You need to read the thread before asking on an issue that has already been discussed on the same thread....

John

Posted
13 hours ago, Dreamflight767 said:

Hi.  When you did this, did you need the .lua script too?  I can't get it to work.  Thanks.

Hi, I did not. Don't forget that after enabling WASM the way i explained, you have to close the sim, be sure FSUIPC closes too and run both again to get WASM enabled.

Posted
1 minute ago, Cuantreau said:

Don't forget that after enabling WASM the way i explained, you have to close the sim, be sure FSUIPC closes too and run both again to get WASM enabled.

This is not necessary - just disconnect and re-connect from the MSFS menu (in FSUIPC7). But, in the latest releases, the WAPI is enabled by default, so you only need to enable if explicitly disabled.

John

 

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
×
×
  • Create New...

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.