Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,

I would like to use FSUIPC from outside of FS To read the LUA Vars from the sim, and write to them again fromn the external program.

Is this possible?

Many thanks.

Best regards,

Robin.

Posted

I would like to use FSUIPC from outside of FS To read the LUA Vars from the sim, and write to them again fromn the external program.

What "LUA Vars"? Do you perhaps mean "L:Vars" instead -- gauge local variables?

The easiest way from an external program already interfacing to FSUIPC would be use read/write FSUIPC offsets. There are 64 free bytes 0x66C0 to 0x66FF reserved for general use such as that.

Alternatively you could use a file on disk, or a pipe (at type of file but with a special name -- read/written using file functions though), or use TCP/IP protocols. FSX's SimConnect itself uses pipes and TCP/IP for its data exchanges with clients, so you'd be in good company. Files are supported by the standard Lua libraries built into FSUIPC and WideClient, and TCP/IP is supported by the Sockets facilities, which are partially built in plus support from external parts. There's an example of the use of sockets included in the Lua package installed with FSUIPC, running two PCs with master and slave copies fo FS.

Regards

Pete

Posted (edited)

Hi Pete,

I tried to send you a PM but it is apparently not working? Is there a way I can contact you off-forum? Many thanks. My e-mail address is in my profile, if you can see it.

Best regards,

Robin.

Edited by 3-2-1-Now
Posted

There is commercially sensitive information I'd like to discuss with you. I would PM you, but it seems that is not working.

I don't accept PMs here because when I did it was regularly used for normal support questions. This is also why I don't generally provide my email, which, nevertheless, folks seem to find all the time. petedowson at btconnect dot com. Okay?

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.