Jump to content

Recommended Posts

Posted

Hello,

 

Sorry if this is a dumb question, but I am trying to find information on how to read real time data from the game. By that I mean can I read things like gauge position, CDU output, etc. from some kind of network interface, or shared memory access? Is there documentation available for this?

 

I have been using the Googles and while I get close to what I want, a lot of solutions seem to rely on software that is already available but doesn't necessarily work the way I want. I was hoping to extract the data for my own nefarious purposes.If anyone can tell me where to look it would be much appreciated.

 

Thanks!

Posted (edited)

You want to look up Export.lua.

Archive.org still has a copy of the original blog post by ED that documents the basics of Export.lua.

Since that was written, the location of Export.lua has changed to %USERPROFILE%\Saved Games\DCS\Scripts\Export.lua.

 

There is currently a project underway to come up with an Export.lua file that implements a protocol that everyone can agree on, please take a look at this thread.

If you decide to do your own thing, please make sure you get the basics that are mentioned in that thread right to play well with other Export.lua files.

Edited by [FSF]Ian
Posted

You have DCS Bios or Ultra MFCD, I have no idea on if the two are compatible with each other.

Anything with a Rotary Wing is fun and challenging.

Use SRS radio.

Saitek X55 Modding

System Specs

 

Mixed Metals: i7 4790K@4.6, 32GB Kingston HyperX ram@2400Mhz, Gigabyte GA-Z97MX Gaming 5, ASUS Vega 64, 3xSamsung SSD drives, FSP Aurum 1000W PSU, Custom watercooling with EK blocks, Vive, Virpil MT 50, X55 throttle.

 

Posted

I have only just discovered those, not sure if I can or will use them.

 

Ultimately I am hoping to create a service which will act as a data server to various other applications. If that means I have to do it all manually then so be it. I am not adverse to digging into the guts of the system.

Posted

 

It's a good example that is just as complex as it needs to be to get something working.

 

However, be aware that it will break other software like Helios, TacView, or DCS-BIOS unless it is the very first thing that is loaded, because it does not save and call previous callback functions. It also won't work in multiplayer mode because it assumes there is an active aircraft in LuaExportStart(). When you are in spectator mode, LoGetSelfData() will return nil, which it does not handle (and you can also change the aircraft later, in recent DCS versions that's possible even in single player mode).

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...