Rokmonkey Posted August 15, 2011 Share Posted August 15, 2011 I'm working on some external instruments for DCS Black Shark and have decided to explore export.lua and have a couple questions that I haven't been able to answer through my reading. First and foremost, what is the frame rate for the simulation engine. Is it a fixed rate, or is it tied to something else? Is it something that needs to compensated for when playing online with people who have their simulations running at different rates (doubtful, but still..) The other, slightly less important, but handy to know; Is there a large compiled list for arguments for the instrument values and joystick pitch/roll/yaw data? There is the nice list in the export.lua file but there are more buried in other files, just wondering if there is a completel list floating about. Thanks. Link to comment Share on other sites More sharing options...
Moa Posted August 15, 2011 Share Posted August 15, 2011 The export rate is connected to your frame rate. You can use RIGHT CTRL + PAUSE to see the frame rate information. For each frame the export functions can be called. Usually exporting data for every frame is meaningless (the data for instruments does not change much over a timescale of milliseconds) so time-based exports are usually done (eg. export at approximately 10Hz no matter what your frame rate is). This is the strategy employed by TacView. To discover how exports can be used I suggest you look at the customized export scripts of the following third-party addons to LockOn: TacView Yoda's LEAVU2 Yoda's GEAR (the successor to LEAVU2). This is designed to handle the exports for you so you can hook custom instruments up to it. It is a work-in-progress at the moment. If you search these forums you'll find the threads (particularly in the modding thread) that describe these. 1 Link to comment Share on other sites More sharing options...
Rokmonkey Posted August 15, 2011 Author Share Posted August 15, 2011 Perfect, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts