xxJohnxx Posted August 15, 2013 Posted August 15, 2013 Hi guys, I am working on a little software to log flighthours in multiplayer. I know my way arround in C#, but I absoulty don't have any abilities in lua. Basically I would love to read out when a unit (which should be the player) starts his engine, takes off, lands and stops the engine. Is there a way to get that information? Thanks, Jonathan Check out my YouTube: xxJohnxx Intel i7 6800k watercooled | ASUS Rampage V Edition 10 | 32 GB RAM | Asus GTX1080 watercooled
xxJohnxx Posted August 16, 2013 Author Posted August 16, 2013 Nobody? Maybe it will help if I better explain what I need? Basically, I am looking for a lua script, which will read out the following paramters (for the Huey): -engine rpm -altitude above ground -basic information if the player is still alive or if he died or something like that I would like to import that into my software. Doing that could be accomplished like by writing into a simple text file. Any other system I could theoretically pick up would be also fine. If you have any suggestion / or you could help me creating such a file, it would be really appricated. Thank you! Jonathan Check out my YouTube: xxJohnxx Intel i7 6800k watercooled | ASUS Rampage V Edition 10 | 32 GB RAM | Asus GTX1080 watercooled
Flagrum Posted August 17, 2013 Posted August 17, 2013 Nobody? Maybe it will help if I better explain what I need? Basically, I am looking for a lua script, which will read out the following paramters (for the Huey): -engine rpm -altitude above ground -basic information if the player is still alive or if he died or something like that I would like to import that into my software. Doing that could be accomplished like by writing into a simple text file. Any other system I could theoretically pick up would be also fine. If you have any suggestion / or you could help me creating such a file, it would be really appricated. Thank you! Jonathan This could be of interest for you: http://forums.eagle.ru/showthread.php?t=45895 That guy wrote a small programm to control different LEDs on the G940 HOTAS throttle depending on the state of switches/buttons in the cockpit and uses the export.lua of DCS to which he connects via an UDP port. Details of his solution may not apply to your project, but perhaps it can give you a general idea of how to get data from the cockpit into your own program. 1
xxJohnxx Posted August 17, 2013 Author Posted August 17, 2013 Hi Flagrum, That is definatelly a point into the right the right direction. Thank you very much for that! That what the guy did is at least create some understandable stuff. I will try to work my way into it. If anyone else can offer any more help, it is still appricated. ;) Thanks, Jonathan Check out my YouTube: xxJohnxx Intel i7 6800k watercooled | ASUS Rampage V Edition 10 | 32 GB RAM | Asus GTX1080 watercooled
159th_Falcon Posted August 17, 2013 Posted August 17, 2013 Search the forum for Servman (V3?). I believe its source code should be posted here somewhere. Think the post would be made by Panzertard, so include his name in the search to help narrow down the results. This may help as its a lua scripted software installed on servers to help manage them. And, amongst other things, it logs; Player that fired a Weapon His coalition His airplane The weapon fired The target he destroyed if any What target he destroyed So i guess it has most parameters in its code that your looking for. Personally i have no experience whit coding, so i'm afraid i cant help you much more then that. [sIGPIC][/sIGPIC] The keeper of all mathematical knowledge and the oracle of flight modeling.:)
xxJohnxx Posted August 17, 2013 Author Posted August 17, 2013 Thank you Falcon! I will check it out too! At the momment I am trying to figure out how to get that work what Flagrum linked, however, until now I hadn't any joy. Best regards, Jonathan Check out my YouTube: xxJohnxx Intel i7 6800k watercooled | ASUS Rampage V Edition 10 | 32 GB RAM | Asus GTX1080 watercooled
Bosence Posted August 19, 2013 Posted August 19, 2013 Hello, There's a very good guide here on exporting data with Lua in DCS. http://www.digitalcombatsimulator.com/en/dev_journal/lua-export/, I hope this helps.
Recommended Posts