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: another_commander, winston
-
- Mostly Harmless
- Posts: 3
- Joined: Sun Apr 19, 2020 5:35 am
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4643
- 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: 4643
- 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.