Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi all

 

who know in which manual of Pete i could find how to run an LUA Script on pc Client connected to my P3D V2.1 PC with Wideclient.exe ?

 

thanks for your help and ideas

 

friendly of frenchy

Thierry

Posted

Hi,

 

this is copied from FSUIPC Lua Plug-Ins.pdf. As you can see on WideClient you just drop a Lua file into its folder and it will run as soon WideClient connects to FS. You also can run it before FS connects by naming it INITIAL.LUA .

 

Can I run Lua plug-ins on a WideFS client PC?
Yes. Such facilities have now been added. Since version 6.81, WideClient automatically runs any Lua programs it finds in its own folder (i.e. the folder containing the WideClient.exe being used). These are started only after WideClient is fully connected to FS on the server PC.
Additionally, WideClient will look for a Lua program called "Initial.lua" when it first starts up. This will run immediately, before any access to FS and FSUIPC is obtained, so it should not be used for anything dependent upon valid offset values. It can run other Lua programs, using the "ipc.runlua" function, but they will need to be located elsewhere—not in the WideClient folder—or else they will be restarted when FS is connected. The INITIAL.LUA program is not re-run later and is the only exception.
Note that the library support for Lua on WideClient is a subset of that provided in FSUIPC. The library document highlights those functions omitted in WideClient.

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.