Scotfleiger Posted September 25, 2019 Report Posted September 25, 2019 I have been working with mouse macros with FSUIPC 5.152. It appears that only one .MCRO file can be used using LUA ipc.macro("test: button1"). Any reference to another .MCRO file is ignored (ie. ipc.macro("other: button2")). Thisappears wrong as why would be able to refer to other macro files. It also appears that .MCRO file(s) are only loaded when FSUIPC is restarted with P3D. Is there a way of forcing a .MCRO reload without restarting P3D.
John Dowson Posted September 25, 2019 Report Posted September 25, 2019 3 hours ago, Scotfleiger said: Is there a way of forcing a .MCRO reload without restarting P3D. You can Reload all assignments from the Axis Assignment tab, or Reload all buttons from the Buttons + Switches tab. 3 hours ago, Scotfleiger said: It appears that only one .MCRO file can be used using LUA ipc.macro("test: button1"). Any reference to another .MCRO file is ignored (ie. ipc.macro("other: button2")). Thisappears wrong as why would be able to refer to other macro files. Yes, you should be able to refer to any loaded macro file. I'll look into this later, but could you check that the .mcro file & macro that you are referencing are correct (i.e. the .mcro file is loaded/referenced in your ini, and the macro name exists in that file).
Scotfleiger Posted September 25, 2019 Author Report Posted September 25, 2019 1 hour ago, John Dowson said: could you check that the .mcro file & macro that you are referencing are correct (i.e. the .mcro file is loaded/referenced in your ini, and the macro name exists in that file). Thanks Pete. I have checked for the correct file and macro names. For example, with the same macro in 2 different files, I changed the ipc.macro call to refer to each file. One works the other doesn't.
John Dowson Posted September 25, 2019 Report Posted September 25, 2019 45 minutes ago, Scotfleiger said: Thanks Pete John, not Pete! Could you post your ini file, your lua file and your two macro files and I'll take a look.
Scotfleiger Posted September 26, 2019 Author Report Posted September 26, 2019 Sorry John. Will send files later.
John Dowson Posted September 26, 2019 Report Posted September 26, 2019 Ok. I have just ran some tests with multiple macro files being called from a single lua and cannot see any issues. You could also try logging Debug/Trace Lua plugins and maybe Events (non-axis controls) (from FSUIPC' Logging tab) to trace what is happening. You can also attach this log with your lua/mcro files.
Scotfleiger Posted September 27, 2019 Author Report Posted September 27, 2019 One more question. Is the a size/length limit for the .MCRO filename or the macro tags?
John Dowson Posted September 27, 2019 Report Posted September 27, 2019 The size limit for the macro filename is 16 characters, including the extension. The limit for the macro names is also currently 16 characters. When using LVARS, the length for the lvar name is currently 32 characters, but has been increased to 64 for future releases and this update is also available in this post: 1
Scotfleiger Posted September 28, 2019 Author Report Posted September 28, 2019 Thank you the size clarification. This has solved the issue I was having.
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