Hi everyone,
I'm new to the game and this is my first post on the forum. I'm building a cockpit and was hoping to display med data on external screens like flight simmers (not sure if that's the term) do with radio sets etc.
Sorry if this is in the wrong section or been asked before but I can't find any info on it.
Thanks
Is there a way to display game data externally in oolite
Moderators: winston, another_commander
-
- Mostly Harmless
- Posts: 3
- Joined: Sun Apr 19, 2020 5:35 am
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Is there a way to display game data externally in oolite
Welcome aboard, commander!Cmd_viperdad wrote: ↑Sun Apr 19, 2020 5:47 amI'm new to the game and this is my first post on the forum.
If you mean is it possible to read data from an active game and use it outside of Oolite, the answer is probably, yes, but not in the standard game. The Java Console debugging tool reads data from an active game, so you could potentially use the same pathways for this purposes. But you would need to install the developer release.Cmd_viperdad wrote: ↑Sun Apr 19, 2020 5:47 amdisplay med data on external screens like flight simmers
-
- Mostly Harmless
- Posts: 3
- Joined: Sun Apr 19, 2020 5:35 am
Re: Is there a way to display game data externally in oolite
Hmmmm, that sound complex but worth more research. Thank you for the info. I may just make some seven segments and led blink randomly lol.
Re: Is there a way to display game data externally in oolite
I think, there is one relatively simple way:
- each OXP have access to nearly all game data, so if you look into some of OXP which display something (fighter HUD or such), you probably could copy the way, they get speed, orientation of ship etc. pretty regulary
- then you can make you own OXP, which collects data of your interest in real time
- maybe there is a way to send such data to some COM port or any other Arduino accessible place and then make light show of your choise
- or you can simply log your data in some easy to parse format (like "## SPEED: 1234") and then read Latest.log file by your own program, simply discard all other lines and parse your own lines accordingly
( tail -f Latest.log | grep "## "| myprog.sh )
- each OXP have access to nearly all game data, so if you look into some of OXP which display something (fighter HUD or such), you probably could copy the way, they get speed, orientation of ship etc. pretty regulary
- then you can make you own OXP, which collects data of your interest in real time
- maybe there is a way to send such data to some COM port or any other Arduino accessible place and then make light show of your choise
- or you can simply log your data in some easy to parse format (like "## SPEED: 1234") and then read Latest.log file by your own program, simply discard all other lines and parse your own lines accordingly
( tail -f Latest.log | grep "## "| myprog.sh )
Lady of Fate, we adore you . . .
-
- Mostly Harmless
- Posts: 3
- Joined: Sun Apr 19, 2020 5:35 am
Re: Is there a way to display game data externally in oolite
Thanks Gilad. That seems like a workable solution. Would it be better in java script of is it objective C the other on?
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Is there a way to display game data externally in oolite
JavaScript is the weapon of choice for oxp development.
Actually, is the only weapon. But you’re still free to choose it.
Actually, is the only weapon. But you’re still free to choose it.
- hiran
- Theorethicist
- Posts: 2411
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Is there a way to display game data externally in oolite
This third point (maybe there is a way to send such data to some COM port or any other Arduino accessible place) is the blocker. OXPs cannot send data anywhere but the debug console or the logs.gilhad wrote: ↑Sun Apr 19, 2020 11:02 pmI think, there is one relatively simple way:
- each OXP have access to nearly all game data, so if you look into some of OXP which display something (fighter HUD or such), you probably could copy the way, they get speed, orientation of ship etc. pretty regulary
- then you can make you own OXP, which collects data of your interest in real time
- maybe there is a way to send such data to some COM port or any other Arduino accessible place and then make light show of your choise
- or you can simply log your data in some easy to parse format (like "## SPEED: 1234") and then read Latest.log file by your own program, simply discard all other lines and parse your own lines accordingly
( tail -f Latest.log | grep "## "| myprog.sh )
However meanwhile there is a way out: newer versions of OoliteStarter behave like a debug console but rather than bluntly displaying the message in a window it forwards them to MQTT. Plus OoliteStarter is able to receive messages from MQTT and feed it into Oolite.
It allows to add MQTT code to Arduino (and similar) projects so these devices can interact with Oolite. Be it to render information or to collect information for Oolite.
Have a look at
- https://github.com/OoliteProject/Oolite ... figuration
- viewtopic.php?t=21653
- viewtopic.php?p=297155&hilit=mqtt#p297155
Sunshine - Moonlight - Good Times - Oolite
Re: Is there a way to display game data externally in oolite
For that is the fourth point - log it to file, have somewhere else running program, that read the log as it is written a acts on the data somehow (eg. send it to Serial port for Arduino, or display results in window, or anything else or all together )hiran wrote: ↑Tue Sep 10, 2024 6:32 pmThis third point (maybe there is a way to send such data to some COM port or any other Arduino accessible place) is the blocker. OXPs cannot send data anywhere but the debug console or the logs.gilhad wrote: ↑Sun Apr 19, 2020 11:02 pmI think, there is one relatively simple way:
- each OXP have access to nearly all game data, so if you look into some of OXP which display something (fighter HUD or such), you probably could copy the way, they get speed, orientation of ship etc. pretty regulary
- then you can make you own OXP, which collects data of your interest in real time
- maybe there is a way to send such data to some COM port or any other Arduino accessible place and then make light show of your choise
- or you can simply log your data in some easy to parse format (like "## SPEED: 1234") and then read Latest.log file by your own program, simply discard all other lines and parse your own lines accordingly
( tail -f Latest.log | grep "## "| myprog.sh )
But MQTT is nice solution too
Lady of Fate, we adore you . . .