June 29, 2025Jun 29 Hi Not sure if I needed to start another topic, my bad if I had to continue the one asking about the setting up axis for the reverse thrust After great help from Lorby, ChatGPT and some other topics, I managed to set up several one-click buttons from my joystic to events for the Maddog (essentially, EPR and THRUST selection) What I need your help with, now, please is to configure a button to ARM the ALTITUDE. I found that in MaddogX_interior.xml there is a section for the variable in particular (I observed it in AAO and it changes from 0 to 5 at first after arming a certain altitude) but only refers to the ANIMATION and doesn't give me any event code <UseTemplate Name="MaddogX_Anim_LocalVar_Template"> <ANIM_NAME>fgcp_alt_button1</ANIM_NAME> <ANIM_LENGTH>20</ANIM_LENGTH> <ANIM_OFFSET>10</ANIM_OFFSET> <VAR_NAME>fgcp_alt_button1</VAR_NAME> </UseTemplate> In the variable scanner, I see when I arm an altitude, initially the variable goes from 0 to 5 but then, when I press the button to arm an altitude, it will flicker to 0 for an instant and then return to 5 as value Would you know how to set a script to assign a button to arm the altitude? Thanks
June 29, 2025Jun 29 Commercial Member Why aren't you using the MD events that are already there in AAO? You can just select them from the list(s), as I wrote in the other thread. Leonardo provide a documentation PDF too. Edited June 29, 2025Jun 29 by Lorby_SI LORBY-SI
June 29, 2025Jun 29 Commercial Member The specification PDF is here: \Documents\Maddog X Files\Docs\List of Commands.pdf That's quite simple really. The first part says "IPC LVars (read only)" so you know that they are of type L: and can only be read. In AAO your would use them like this: (L:md_ipc_com1_active_freq_mhz, Number) The second part are the custom commands (which are in the AAO list shown above, read to be doubleclicked) Example: "LEFT LDG SET 69642" in AAO is n (>K:#69642) n is the value that you want to send with this event, in this case 0, 1, 2 for the three positions of the left landing light switch. You don't have to use scripts, these events can be assigned to buttons directly, and the value is supplied with the little numerical box to the right (use the mouse wheel) Edited June 29, 2025Jun 29 by Lorby_SI LORBY-SI
June 29, 2025Jun 29 Commercial Member 29 minutes ago, pepetrueno said: but only refers to the ANIMATION and doesn't give me any event code That is what LVars are for (in general). Some developers use them differently, but normally they are only for controlling animations and lighting. You cannot "operate" them. Be mindful that simulator LVars MUST have a unit in AAO, otherwise they are treated as internal variables, that never leave the app) (L:whatever, Number) LORBY-SI
June 29, 2025Jun 29 Commercial Member 58 minutes ago, pepetrueno said: I found that in MaddogX_interior.xml IMHO that is the wrong way to go about it. Use the behavior debug dialog in MSFS instead. Activate the MSFS developer mode -> open "Tools-> Behaviors" -> click back into the simulator window Now hover the mouse over the switch you are interested in and press Ctrl - G. This will (usually) bring up the behavior code for that switch (=the same code as you are looking at in the XML, but already compiled and assembled - and you know that it is the correct switch too). Check out MouseRect or "Interaction" components of the component to find out what happens when you use the mouse on the switch. Replicate that in AAO. With this particular aircraft this shouldn't be necessary though. Edit: OK, I just realized that this method doesn't work with the MD. Too bad. Better stick to the custom commands then. Edited June 29, 2025Jun 29 by Lorby_SI LORBY-SI
Create an account or sign in to comment