Lua Macros script not working with Fly with Lua.
-
- Posts: 13
- Joined: 03 May 2019, 01:17
Lua Macros script not working with Fly with Lua.
Hi! After making a simple Lua Script with Lua Macros and putting the script into the Scripts folder, It never seems to work when I click a button on my other keyboard.
Hope anyone can help!
Hope anyone can help!
- Attachments
-
- gffdfd.PNG (10.41 KiB) Viewed 10156 times
-
- dff.PNG (6.54 KiB) Viewed 10156 times
Re: Lua Macros script not working with Fly with Lua.
Luamacros and FlyWithLua are completely different programs. They are just both using Lua language as "scripting engine". Don't expect luamacros script to work with fly with lua and vice versa.
Petr Medek
LUAmacros author
LUAmacros author
-
- Posts: 13
- Joined: 03 May 2019, 01:17
Re: Lua Macros script not working with Fly with Lua.
That is good to know! I have written the code in LuaMacros with the lmc_xpl_command and when I click the play button, I do not see anything happen in X-Plane. Can you help?
Thanks!
Thanks!
Re: Lua Macros script not working with Fly with Lua.
Did you install lmc plugin? What is the code?
Petr Medek
LUAmacros author
LUAmacros author
-
- Posts: 13
- Joined: 03 May 2019, 01:17
Re: Lua Macros script not working with Fly with Lua.
Hi! I do have the xpl_lmc-plugin in my X-Plane Plugins folder.
Here is my test code for using a second keyboard in X-Plane 11
Here is my test code for using a second keyboard in X-Plane 11
- Attachments
-
- qmgd.PNG (15.81 KiB) Viewed 10134 times
Re: Lua Macros script not working with Fly with Lua.
And are device names correctly assigned? Do you see that "not yet assigned" message for other keys or do you see keyboards with names when printing devices? Is the calc started for C?
Petr Medek
LUAmacros author
LUAmacros author
-
- Posts: 13
- Joined: 03 May 2019, 01:17
Re: Lua Macros script not working with Fly with Lua.
Each Keyboard is named correctly and if I press "c" on one keyboard, it will open the calculator but if I press "c" on the other keyboard ( the one I want to use as an overhead panel ) it will not do anything. C is assigned to Start APU but it does move the switch to the start position. If I am not in X-Plane, nothing happens when I press C.
Thanks!
Thanks!
- Attachments
-
- nay.PNG (31.77 KiB) Viewed 10131 times
Re: Lua Macros script not working with Fly with Lua.
Try if the xpl communication is working with something simplier.
E.g. run script:
Doest the text appear in xplane?
Also you can create empty file lmc_log_file_trigger.log in xplane folder and after doing the test check its content.
See some troubleshooting tips for xplane in this thread: http://hidmacros.eu/forum/viewtopic.php?f=10&t=3832
E.g. run script:
Code: Select all
lmc_log_module('XPL')
lmc_xpl_text('From LUA macros')
Also you can create empty file lmc_log_file_trigger.log in xplane folder and after doing the test check its content.
See some troubleshooting tips for xplane in this thread: http://hidmacros.eu/forum/viewtopic.php?f=10&t=3832
Petr Medek
LUAmacros author
LUAmacros author
-
- Posts: 13
- Joined: 03 May 2019, 01:17
Re: Lua Macros script not working with Fly with Lua.
The communication did work. Know we need to figure out how to make the keyboard interact with the switches.
Re: Lua Macros script not working with Fly with Lua.
Do some debugging then. Try to run xpl command as single line in script - to see if it works.
Try to print debug output from your keyboard handler - too see that "if" command gets executed
Try to print debug output from your keyboard handler - too see that "if" command gets executed
Petr Medek
LUAmacros author
LUAmacros author