Crashcast_E Posted August 6, 2021 Report Posted August 6, 2021 (edited) *** Moved from FAQ sub-forum to main Support Forum *** Hello, Recently I've been trying to set up the PMDG MD11 with my Honeycomb Alpha Yoke. I'm trying to set up the landing lights, which there are 3 separate switches (left, right and nose), each having 3 positions (retracted, extended and on). I'm wondering how I could make all 3 switches go from retracted to on with the single landing lights switch included with the yoke. I have already made myself a little familiar with L:vars and custom macros, but I am stumped. Any help is appreciated. Edited August 7, 2021 by John Dowson Moved to main support forum
John Dowson Posted August 7, 2021 Report Posted August 7, 2021 To assign multiple actions to a button, whatever the action (e.g. controls, macro actions, lua scripts, etc) you have to comment out the currently assigned action by editing your FSUIPC .ini file. Find the assignment line in the .ini file (in an editor such as Notepad++), and place a semi-colon character after the index number of the assignment and save the file. Then, in the FSUIPC buttons assignment dialog, click the 'reload all buttons' button. This will reload the edited ini and remove the assignment, allowing you to add the second assignment. You can save (i.e. click Ok) and repeat as many times as you like to add multiple assignments. When done, edit the .ini file again and remove the semi-colons previously added and save the file. Then reload the update .ini once more from the button assignments panel, and you will now have multiple assignments to that button. You will only see the first assignment in the UI, and this will be grayed-out and un-editable. To make any further changes to multiple assignments, you have to manually edit the .ini file. John 1
Crashcast_E Posted August 8, 2021 Author Report Posted August 8, 2021 (edited) The description you gave is a little confusing. I'll try to work through it, but is there any way you could give a simpler or step-by-step explanation? I included the current status of my "buttons" section in the .ini. Thanks for your help! Edited August 8, 2021 by Crashcast_E added screenshot
John Dowson Posted August 8, 2021 Report Posted August 8, 2021 1 minute ago, Crashcast_E said: I'll try to work through it, but is there any way you could give a simpler or step-by-step explanation? Just work through it - its not that complicated. You are just assigning and then commenting out the assignment so that you can make a new assignment. And when all assignments are done, remove the comments to re-activate. And check the Advanced User guide, P19.
Crashcast_E Posted August 8, 2021 Author Report Posted August 8, 2021 This is what I've got so far. Ran it, and so far it only changes the first landing light and keeps resetting the code to the lines above every time I change it. Originally, I had it as:
John Dowson Posted August 8, 2021 Report Posted August 8, 2021 55 minutes ago, Crashcast_E said: This is what I've got so far. Ran it, and so far it only changes the first landing light and keeps resetting the code to the lines above every time I change it. Originally, I had it as: But they are both exactly the same - no point in changing the annotations (the bits between -{...}-) as they are automatically generated. So what you are currently doing with those assignments is setting the Lvar L:LIGHTS_LDG_lT_L_Switch_var to 0 3 times. If you want the other assignments to work on a different lvar, you need to assign them to a different macro entry. If doing this manually (via editing the ini), then the macro line index number is the one after the colon - in your case, its 2 for all of them, so is activating the 2nd macro in your 3rd macro file (CM3), which is the one for lvar L:LIGHTS_LDG_lT_L_Switch_var, as indicated by the annotations. Please read the documentation provided, and the instructions I have already given.
Crashcast_E Posted August 9, 2021 Author Report Posted August 9, 2021 So I got the landing lights switch to work by changing the value you suggested. Here's what it looks like now: Now I've run into another issue: while the switch gets flipped, the action (landing lights extending and turning on) doesn't actually happen for some reason. I'll try to work this out, but any help would always be appreciated. Thanks!
John Dowson Posted August 9, 2021 Report Posted August 9, 2021 2 minutes ago, Crashcast_E said: So I got the landing lights switch to work by changing the value you suggested. Here's what it looks like now: Now I've run into another issue: while the switch gets flipped, the action (landing lights extending and turning on) doesn't actually happen for some reason. I'll try to work this out, but any help would always be appreciated. Thanks! So now you have it set to both toggle the three lights (assignments 6,7,8), and then set them all to off (using the set control with a parameter of 0 on assignments 9,10,11). Try removing the last 3 assignments (the set ones) and just use the toggle controls.
John Dowson Posted August 9, 2021 Report Posted August 9, 2021 Ah, sorry - they are assigned to different buttons - 22 and 23. Try using two macro files (as really an lvar should only appear once in a macro file). Use the set control in both, but with a parameter of 1 to turn on, and 0 to turn off. I'm not sure of the behaviour if using the same lvar multiple times, even if they have separate actions. Alternatively, try logging the lvar values once you toggle or set - do they change?
Crashcast_E Posted August 9, 2021 Author Report Posted August 9, 2021 Removed the last 3 assignments, the landing lights still will not extend. They do extend when I click the switch with my mouse, though. I'll play around with a second Macro and see what I get.
John Dowson Posted August 9, 2021 Report Posted August 9, 2021 Did you try logging the lvars to see if the values changed? Maybe also worth logging buttons & keys to see what is happening. Which aircraft are you using? It is also possible that the lvars are read-only, and you need to use another method to control.
Crashcast_E Posted August 9, 2021 Author Report Posted August 9, 2021 I'm using the PMDG MD11. I've logged the L:vars. The value for the switch changes, but the value for the actual light does not. This is happening with all lights as well, Nav, Beacon and Hi-Int.
John Dowson Posted August 9, 2021 Report Posted August 9, 2021 Just now, Crashcast_E said: I'm using the PMDG MD11. I've logged the L:vars. The value for the switch changes, but the value for the actual light does not. This is happening with all lights as well, Nav, Beacon and Hi-Int. If the value changes but the lights are not activating, I suspect that they are read-only (or non-active) lvars. Do the standard light controls not work (or the light offsets)? Have you tried logging Evenbts and operating the lights from the UI, to see what, if any, events are logged? If any are logged, you can use/assign to those. Many PMDG aircraft also come with there own SDK which include custom controls for such things, but I don't know if this is available for the MD11 - please check. If not, you could try using Mouse Macros. May also be worth checking on the PMDG forums as well. Btw, which FS and version of FSUIPC are you using?
Crashcast_E Posted August 9, 2021 Author Report Posted August 9, 2021 I'm using FSX Gold Edition with the Acceleration Pack (SP2) with FSUIPC 4.97. I've checked around for MD11 macros and FSUIPC kits, but no such think exists for the MD11; I believe they ended support for this aircraft years ago. I'll take a look into logging evenbts.
John Dowson Posted August 9, 2021 Report Posted August 9, 2021 1 minute ago, Crashcast_E said: I've checked around for MD11 macros and FSUIPC kits I meant FSUIPC Mouse-macros, i.e. macros that emulate mouse actions in the UI - see P40 of the Advanced User manual. If you cannot find any events/controls that work, and writing to the lvars doesn't work, then try mouse macros. Do the logging first, as it is also not guaranteed that mouse macros will work in FSUIPC4 as it depends on how the a/c is implemented. Or are you saying that they don't work for the MD11?
Crashcast_E Posted August 9, 2021 Author Report Posted August 9, 2021 That was in reply to your comment about the PMDG forums- I can't find anyone who has made a dedicated control SDK for the MD11. I'll give a try at programming a few mouse macros for the lights. As far as I'm aware, the Mouse Macros tool built in to FSUIPC doesn't work anymore, does it?
John Dowson Posted August 9, 2021 Report Posted August 9, 2021 15 minutes ago, Crashcast_E said: As far as I'm aware, the Mouse Macros tool built in to FSUIPC doesn't work anymore, does it? I think they work for some aircraft in FSUIPC4 but not all. You will need to define the module as: Module="PMDG_MD11.DLL" This post may help - in fact, this already includes mouse macros for the lights in the MD11, so you may want to use this: John
Crashcast_E Posted August 9, 2021 Author Report Posted August 9, 2021 Thank you very much! Those mouse macros are a lifesaver. Thanks for all your help, John!
John Dowson Posted August 9, 2021 Report Posted August 9, 2021 No problem - I should have found that User Contribution post earlier to have saved us both some time!
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