andrewdsmith / edxlc

EDXLC is a companion app for the game Elite Dangerous that controls the button lights on your Saitek X52 Pro joystick so that they reflect the current state of your ship in the game.
Other
17 stars 2 forks source link
elite-dangerous joystick rgb-led x52pro

Elite Dangerous X52 Pro Light Control - EDXLC

EDXLC is a companion app for the game Elite Dangerous that controls the button lights on your Saitek X52 Pro joystick so that they reflect the current state of your ship in the game.

Download the latest zip file, unzip, and run edxlc.exe. The app runs in a console window. Exit with Ctrl+C or just close the console window.

On first run the app creates a simple text file called edxlc.toml. Edit this file to change how the app behaves. Restart the app after making any changes to this file. To reset to defaults delete the file.

The app detects the following:

Where a game control is bound in game to a button on the joystick, the button light will indicate the following states:

An example blocked state is FSD charging while mass-locked or landing gear deployed. Examples of alert states include heat sinks when overheating and landing gear when docking permission has been granted.

When hardpoints are deployed or night vision is activated the app switches to an alternative configuration.

The default configurations in edxlc.toml are:

[default]
inactive = ["off", "green"]
active = ["on", "amber"]
blocked = ["off", "red"]
alert = ["flash", "amber-flash"]

[hardpoints-deployed]
inactive = ["off", "red"]
active = ["on", "amber"]
blocked = ["off", "off"]
alert = ["flash", "amber-flash"]

[night-vision]
inactive = ["off", "off"]
active = ["on", "green"]
blocked = ["off", "off"]
alert = ["flash", "green-flash"]

The hardpoints-deployed and night-vision sections are optional and will fall back to the values in default if missing.

For each state you specify the light mode for boolean and red/amber/green lights. For boolean lights, the supported modes are:

For red/amber/green ligths, the supported modes are:

To use an alternative configuration file specify it as a command line argument:

edxlc.exe C:\Path\To\My\config.toml

By default the app reads the game control bindings from the Custom.4.0.binds bindings file used by Odyssey. You can use a different bindings file (e.g. Custom.3.0.binds for Horizons) by specifying the full path to the file in the bindings value in the [files] section of config.toml, e.g.

[files]
bindings = 'C:\Users\DavidB\AppData\Local\Frontier Developments\Elite Dangerous\Options\Bindings\Custom.3.0.binds'

Important: Due to the way the TOML file format works, you should use single quote characters around the path (as shown above).