Hey.
I just bought a virpil throttle, which has these nice buttons with multi-color LEDs in them.
There is a tool for making the leds light up corresponding to various states in Elite Dangerous (it does so, by reading a status.json file).
In moving on to setting up the throttle with X4, I wonder if there is any way to read some ship and/or game states, outside the game, that would allow the buttons to reflect these game states?
I wouldn't mind doing some minor programming in python or the like if these states would be available in a file, but have anyone done anything like this already?
controlling external led's
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 19
- Joined: Tue, 1. Apr 08, 20:52
Re: controlling external led's
Check out the X4 External App on Nexus.
It used Mod Support API to get what it needs.
That should help as a starter so you can see how to read the data.
I did think there was another one too. But I can't recall the name
It used Mod Support API to get what it needs.
That should help as a starter so you can see how to read the data.
I did think there was another one too. But I can't recall the name
-
- Posts: 81
- Joined: Thu, 11. Jun 20, 21:14
Re: controlling external led's
Mebbe mine: https://github.com/bekopharm/x4-simpit
May need some tinkering for Windows. I don't have a confirmed installation on this yet but I do format the data the way Elite does so processing this should be dead simple.

-
- Posts: 573
- Joined: Wed, 4. Feb 04, 21:39
Re: controlling external led's
Hi,
wow, that sounds extremely exciting. I use EDDI for Elite in conjunction with Voice-Attack to control my stage LED spotlights and to control corresponding light scenes to match the ship's status and mode.
Would it be conceivable that EDDI (with adjustments) would also work for X4?
For which states are Elite-like entries generated in the JSON file?
Thanks for any information.
Greetings Trajan from Olb
Translated with DeepL.com (free version)
wow, that sounds extremely exciting. I use EDDI for Elite in conjunction with Voice-Attack to control my stage LED spotlights and to control corresponding light scenes to match the ship's status and mode.
Would it be conceivable that EDDI (with adjustments) would also work for X4?
For which states are Elite-like entries generated in the JSON file?
Thanks for any information.
Greetings Trajan from Olb
Translated with DeepL.com (free version)
Mein Traum vom Glück ist der Traum von einer anderen Menschheit. (S. Lem)
-
- Posts: 81
- Joined: Thu, 11. Jun 20, 21:14
Re: controlling external led's
I don't know EDDI really but I took a quick look at it's source and it appears to parse the ED Status file, which also determines the ship status and mode: https://github.com/EDCD/EDDI/blob/84702 ... ce.cs#L159Trajan von Olb wrote: ↑Fri, 26. Jul 24, 16:51 Hi,
wow, that sounds extremely exciting. I use EDDI for Elite in conjunction with Voice-Attack to control my stage LED spotlights and to control corresponding light scenes to match the ship's status and mode.
Would it be conceivable that EDDI (with adjustments) would also work for X4?
For which states are Elite-like entries generated in the JSON file?
x4-simpit does currently implement the following events:
It should be trivial to write a little connector that drops my Status payload as json on the disk, where it can be picked up by EDDI again. Here is an example payload:
Code: Select all
{"Pips":[4,4,4],"Flags":35651912,"Latitude":82136.8359375,"LegalState":1,"Altitude":5,"Heading":-120,"Pos":[82136.8359375,5.880098342895508,144849.140625],"Speed":"10","Oxygen":1,"Health":1,"Shield":1,"FireGroup":1,"Cargo":0,"BodyName":"Argon Prime","Balance":10500,"Fuel":{"FuelMain":0,"FuelReservoir":0},"timestamp":"2024-07-27T17:30:54.777Z","GuiFocus":1,"Longitude":144849.140625,"event":"Status"}