Skip to content

Installing the Module

chrilith edited this page May 4, 2020 · 12 revisions

This module is provided as 32-bit and 64-bit versions and can be used in various games and softwares with a specific installation procedure. The module is based on Lua v5.1.4, may not work with newer version of the language.

Requirements

This module requires the 32-bit and/or 64-bit version of the Microsoft VC2015 Runtime. This runtime is usually installed along with most recent games but you can always find it on the Microsoft website.

Warning

If you are using a 32-bit version of the module on a 64-bit system, as with FSUIPC for instance, the latest Saitek driver will not work properly resulting in no device detected or no value returned by the API methods and thus a failing Lua script. You will need version 7.0.39.0 or lower in order to use it as expected.

With the Lua Interpreter

If you are using the Lua for Windows distribution you can install the DLL in the clibs folder in the installation directory.

With other version it should also be clibs at the same level as the lua.exe. To be sure, check the documentation of the related engine implementation.

With Flight Simulator

FSUIPC is required in order to use this module with Flight Simulator 2004 or X. It is installed in the Modules folder of Flight Simulator. Copy the content of the Passerelle folder (32-bit version) in it. If you want to use GD you should also copy the content of the GD folder. The directory structure should look like this:

FS Installation Path
`-- Modules
    |-- dll
    |   |-- lua5.1.dll
    |   `-- ...(all the GD dependencies)
    |-- lua
    |   |-- passerelle.dll
    |   `-- gd.dll
    |-- FSUIPC.dll
    |-- ...(some more modules files)
    `-- test.lua

If you have installed the Lua environment, you don't need to copy GD or the Lua DLL.

The common procedure is to test the module from Flight Simulator is:

  • Create a new Lua script and put it in the Modules folder
  • Launch FS and open the FSUIPC dialog from the Add-ons menu
  • Add a new key action to execute your Lua script

With Prepar3D

This is basically the same procedure as with Flight Simulator. Just read the related section.

With DCS Simulators

Eagle Dynamics provides a way to interact with their software using the LUA scripting language. Export files are available to get live data from the simulators.

To use the window capture feature with recent versions of Windows 10, you must configure DCS in order to allow fullscreen capture.

With X-Pane

This module hasn't been tested. But there is a module for X-Plane, called FlyWithLua, that adds Lua support to the simulator.

With World of Warcraft

This module hasn't been tested. But there is Lua engine built-in. You can check the related documentation on https://wowwiki.fandom.com/wiki/Lua.

Back to Contents