Background:
I bought X4 couple of weeks ago
I play in a very relaxed way, and to be honest, the biggest gratification came from the bankroll constantly raising due to the trade/mining of my station.
At a certain point, I've found myself alt-tabbing now and then to check my balance, and I become tired of this, so I pick my weekend to develop a small thing that I'm going to present here. I'm not sure if this will be used at all by anyone, but this thing may open various options for out of the game experiences. I'm absolutely noob with X4 and which kind of information we can gather from it.
The bottom line, my goal was printing the In-game balance on a small LCD connected to Arduino.
Challenge accepted, challenge completed : )
To give an overview of the project:
There's an X4 mod that is in charge to write the balance to a debug log file every 60 seconds, which requires X4 to be launched via
Code: Select all
-debug all -logfile debuglog.txt
On Heroku is deployed a very small app server, which supports a couple of operation (store/retrieve of the balance). This information is persisted on Redis which is used by the backend.
The information can be retrieved as a JSON item via GET call over the internet (which my Arduino is doing). The URL of my pilot current balance now is: https://floating-river-62652.herokuapp. ... SE-TAID-55
Since the information is accessible over the Internet via a GET, you can easily build a notification ticker/ android or iOS app / whatever.
I wanted to share this approach of exporting data from within the game to outside, I'm sure other mods more knowledgable than me could create wonders
I'm unsure how many would be willing to use this in this form, anyhow for me has been a really nice weekend of learning. If anyone wants to give it a try, post here. If I see traction I'll post the sources to github