Jump to content
The simFlight Network Forums

still struggeling with event.sim(ANY, "")


Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.