Chris CDN Posted September 3, 2016 Posted September 3, 2016 BLUF I'm brand new to modifying and extracting data from DCS. I'd like to learn how to pull certain data from DCS to inject into a third party application to integrate DCS with PilotEdge to so some flying with real world ATC. I have someone who can take the extracted data and push it to the third party application, but I need to do the DCS side on my own before that can happen. Essentially, I'm looking to extract the following: Aircraft type Aircraft position in L/L Aircraft speed (Ground) Aircraft heading Aircraft altitude Pitch/Yaw/Roll values Radio Frequencies (Not so much FM, but absolutely UHF and VHF) Radio Tx on/off Gear position Flap position Speedbrake position (if applicable) Position Lights on/off Strobe on/off Landing light on/off Can anybody point me in the right direction? NSDQ
LeVince Posted September 4, 2016 Posted September 4, 2016 Essaie de contacter DArt qui bosse sur LotAtc il pourra surement t'aider Elève Su-25 EVAC
jcbak Posted September 4, 2016 Posted September 4, 2016 LotATC. I would love to see you succeed with a PilotEdge type program. I would also be very interested in participating as a controller. [sIGPIC][/sIGPIC]WIN 10, i7 10700, 32GB DDR4, RTX 2080 Super, Crucial 1TB SSD, Samsung EVO 850 500GB SSD, TM Warthog with 10cm extension, TIR5, MFG Crosswind Pedals, Wheelstand Pro, LG 40" 4K TV, Razer Black Widow Ultimate KB[/size]
DArt Posted September 5, 2016 Posted September 5, 2016 The simplest way is to use the Export.lua file, just open it from DCSW/Scripts/export and you will have all the needed documentation to get the datas (example available in it). [ https://www.lotatc.com ]
Chris CDN Posted September 5, 2016 Author Posted September 5, 2016 Merci à tous / thanks guys. I'm still trying to mangle my way through this project, but hoping I can get a bit of a buy in from someone with more experience than I. I'll keep plugging away and let you guys know how to goes. NSDQ
Vyrtuoz Posted September 6, 2016 Posted September 6, 2016 Dart is right: the best way to connect DCS World with an external application right now is in the export.lua. You can find samples in the official file: C:\Program Files\Eagle Dynamics\DCS World\Scripts\Export.lua However, whenever you will be ready to code in this file, do it in the following folder to be clean (DCS World will load the user export.lua at each mission startup): C:\Users\[Your Name]\Saved Games\DCS\Scripts\Export.lua You should be able to get all the data you have listed for the player aircraft. However, AI and network aircraft export will expose only few data like position/rotation and name. Also, keep in mind, that, during network session, the server can disable export capabilities to prevent cheating. In that case, your program may not work (like Tacview). Anyway this should be more than enough data to start working on prototypes and will probably work fine in most of the cases. 1
Recommended Posts