Jump to content
The simFlight Network Forums

can I use LUA to read/write to FSUIPC/FS?


Recommended Posts

4 hours ago, Brian S said:

I'm looking for a simple way to read information from flight sim (p3d v4.1) without have to try to learn C++, etc.

Can I do that with a LUA script? can I write to Flightsim as well with a LUA script?

Yes, both. the documentation of the Lua functions to do this is in your FSUIPC documents folder 9see the "ipc" library part of the Library pdf), and there are plenty of different examples in the "Exmples" ZIP file in the same folder.

Lua itself, as a language, is documented on the lua.org website, and also in books easily obtainable.

Pete

 

Link to comment
Share on other sites

On 19/12/2017 at 7:34 PM, Brian S said:

I'm looking for a simple way to read information from flight sim (p3d v4.1) without have to try to learn C++, etc.

Can I do that with a LUA script? can I write to Flightsim as well with a LUA script?

You may like to look at LINDA which provides a easy way to integrate sophisticated actions using LUA. There are many available modules for specific aircraft. It free to use. 

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.