Cougar133 Posted December 19, 2018 Share Posted December 19, 2018 Hello ! I'm a little bit Lost ...with F18 . I'm Trying to extract some data from scripts , but i dont know what file to check . simple export.lua included in my DCS Folder ? / Scripts/export.lua or what about this file ? i don't understand https://github.com/s-d-a/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportsModules/FA-18C_hornet.lua i want to extract some simple data like AOA , Speed , altitude , heading , mach number , roll , pitch .. thanks :) [sIGPIC][/sIGPIC] https://www.facebook.com/RSDvirtuel/ Ryzen 7950X / Z670E - 32Gb DDR5 6000CAS36 - 4070TI - ReverbG2 - Hotas Cougar FSSBR1 Link to comment Share on other sites More sharing options...
fl0w Posted December 19, 2018 Share Posted December 19, 2018 I would try using a lua script within the Cockpit/Scripts (not sure if it would mess up the module though) to try and get this data. dofile(LockOn_Options.script_path.."command_defs.lua") dofile(LockOn_Options.script_path.."devices.lua") local dev = GetSelf() local sensor_data = get_base_data() local update_time_step = 0.01 make_default_activity(update_time_step) function update() [indent]local ias = sensor_data:getIndicatedAirSpeed() local tas = sensor_data:getTrueAirSpeed() local pitch = sensor_data:getStickRollPosition() local pitch = sensor_data:getStickPitchPosition() local roll = sensor_data:getStickRollPosition() local rudder = sensor_data:getRudderPosition() local heading = sensor_data:getHeading() local mach = sensor_data:getMachNumber()[/indent] end Hope that helps! :) Link to comment Share on other sites More sharing options...
Cougar133 Posted December 21, 2018 Author Share Posted December 21, 2018 i would like to build new flight instruments in Node JS or Java for my homebuilt cockpit . i will try your solution thanks . [sIGPIC][/sIGPIC] https://www.facebook.com/RSDvirtuel/ Ryzen 7950X / Z670E - 32Gb DDR5 6000CAS36 - 4070TI - ReverbG2 - Hotas Cougar FSSBR1 Link to comment Share on other sites More sharing options...
Nero.ger Posted December 30, 2018 Share Posted December 30, 2018 while sirius example is correct for the "Plane enviroment" (something you should only touch if you are a serious modder) for the "export enviroment" (more end user friendly) you need different scripts. I suggest downloading "Helios" or one of the other similar programms and look how they do it in thier Export.lua and how to get data to your JS, probably a socket connection 'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction. Link to comment Share on other sites More sharing options...
fl0w Posted January 1, 2019 Share Posted January 1, 2019 That method is surely better. My method would at least have some heavy modifications for the systems (likely in DLL) meaning the Lua could just break the module. Have you tried of using DCS BIOS before? I've seen many DCS simpit owners use it. Link to comment Share on other sites More sharing options...
Cougar133 Posted January 6, 2019 Author Share Posted January 6, 2019 i'm not used with DLL files :noexpression: it seems to be to complex for me and i don't have the knowledge about it . DCS bios seems to be more easier to handle . [sIGPIC][/sIGPIC] https://www.facebook.com/RSDvirtuel/ Ryzen 7950X / Z670E - 32Gb DDR5 6000CAS36 - 4070TI - ReverbG2 - Hotas Cougar FSSBR1 Link to comment Share on other sites More sharing options...
Recommended Posts