EDCD / EDMarketConnector

Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
GNU General Public License v2.0
993 stars 155 forks source link

How to integrate with OBS? #429

Closed XenHat closed 5 years ago

XenHat commented 5 years ago

I currently use EDDiscovery AND EDMC at the same time while I play Elite Dangerous.

I would prefer to use EDMC alone, but I could not find any existing plugin that would convert the JSON data to plain text files for OBS text overlays.

Could we get such functionality, or a workable way of achieving the same result?

Marginal commented 5 years ago

What's OBS?

Maldor commented 5 years ago

Open Broadcaster software. Basically allows for streaming gameplay to twitch or similar service.

Marginal commented 5 years ago

Writing an EDMC plugin to output to OBS should be easy, or at least do-able. But the only reference I can find to text input sources is this, which only talks about plain text not structured JSON. Is there any other documentation I should be looking at?

Other alternatives are:

XenHat commented 5 years ago

But the only reference I can find to text input sources is this, which only talks about plain text not structured JSON.

The way most users I know do this is indeed through plain text. The software monitors the content of a file and displays it as an element. An example would be:

# ship_model.txt
Krait mkII

I could write a C# application that would parse the JSON file repeatedly and split the relevant data into several text files but I think a plugin would be much more convenient.

EDDiscovery has a plugin for this, so it is at least doable in some way, here's an example with system name and nearest body/fallback to system name, and universe coordinates, overlaid with a texture (another OBS element that can be added) image

I do not wish to use the EDMC Overlay feature for everything as the data is mostly there for the viewers. That is however an interesting idea for global position at least.

Marginal commented 5 years ago

Please try this plugin and let me know how you get on.

XenHat commented 5 years ago

Thank you very much! It is pretty late and I have to head to bed but so far it seems to be working. I will spend more time reviewing this the next time I play and will post issues/improvements/suggestions on that plugin's bug tracker.

https://imgur.com/2ouzCs0

Marginal commented 5 years ago

Great. Please do.