mroschk Posted October 24, 2019 Report Posted October 24, 2019 Hello, i have still no solution found, why the "event.sim(ANY, and also the "event.sim(AIRCRAFTCHANGE is not fired ? When i have a little lua file in the Modules folder whits only this little script: function test() ipc.display("test") end event.sim(ANY, "test") why is the text not displayed when i load another aircraft ?( which means the function is not called at Aircraft change ) Matthias
Pete Dowson Posted October 24, 2019 Report Posted October 24, 2019 The ipc.display function uses the SimConnect Message Window, which, if you are using P3D4 (you don't say) can be suppressed. When testing Lua plug-ins it is best to use "ipc.log" so that the message is directed into the FSUIPC log file (or into a separate Lua log file if so opted). Anyway, without more information, like how your plug-in is being loaded (is it actually running?), which FSUIPC version, and which sim you are using, it isn't really possible to help further. Pete
John Dowson Posted October 25, 2019 Report Posted October 25, 2019 Hi Matthias, to start your lua automatically, it must be added to the [Auto] section of your ini file. See Automatic running of Macros and Lua plugins, on p40 of the Advanced Users manual. John
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