Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,

Can I access LUA through FSUIPC progmatically, e.g. to use it to read L:Vars and their state, and to trigger events?

I hope to be able to dig into the documentation tomorrow.

Best regards,

Robin.

Posted

Can I access LUA through FSUIPC progmatically, e.g. to use it to read L:Vars and their state, and to trigger events?

You can of course run Lua plug-ins via the facilities at offset 0D70. But also you can handle them through that offset by using LuaKill, LuaSet, LuaToggle, LuaClear and LuaValue. Thus you have ways of sending simple flag and numerical information to them and starting and stopping them.

To get information from them, or sending strings like L:Var names, you would have to communicate with them via Offsets, for example the free user offsets 66C0-66FF. You'd use these to exchange data or instructions or strings.

I have considered also to allow Lua Global variables to be accessible via the Offset system, but it gets rather complex and the need is small.

Regards

Pete

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.