vJaBoG32_Siddharta Posted February 3, 2020 Posted February 3, 2020 Hello all, i'd like to export the DCS Engine Values: LoGetEngineInfo() -- (args - 0 ,results = table) engineinfo = { RPM = {left, right},(%) Temperature = { left, right}, (Celcium degrees) HydraulicPressure = {left ,right},kg per square centimeter fuel -- fuel quantity kg } But none of these values seem to work. Or did a make something wrong? ... function LuaExportAfterNextFrame() local engine = LoGetEngineInfo(); socket.try(c:send(string.format("RPM = %.4f, \n", engine.RPM)) end end If no error...is the another way to get these values e.g. via exporting instrument values? If yes, how? THX for any help!!!
Capt Zeen Posted February 4, 2020 Posted February 4, 2020 use engine.RPM.left and try Capt_Zeen_HELIOS PROFILES_WEBSITE Capt_Zeen_Youtube Channel
vJaBoG32_Siddharta Posted February 7, 2020 Author Posted February 7, 2020 (edited) Thx but doa'nt work, at least at most aircrafts. I'll noted that simshaker uses the Instrumentpanel for this: get_argument_value e.g. local RPM = MainPanel:get_argument_value(50) * 100 But the responsible value number differs for every aircraft. May someone know how i can figure out the right panel value number? EDIT: found it. Values can be found are under Your Drive:\DCS World\Mods\aircraft\*Aircraft*\Cockpit\Scripts\mainpanel_init.lua Edited February 7, 2020 by vJaBoG32_Siddharta
Capt Zeen Posted February 7, 2020 Posted February 7, 2020 Yes, the LoGetEngineInfo() gives information of FC airplanes. For other airplanes you need to use the get argument functions. And yes, every airplane got his own values. You can check in the file mainpanel_init.lua, usually over there you found the data you need. For example: in the KA50 D:\DCS World OpenBeta\Mods\aircraft\Ka-50\Cockpit\Scripts\mainpanel_init.lua --------------------------------------------------- -- Rotor RPM RotorRPM = CreateGauge() RotorRPM.arg_number = 52 RotorRPM.input = {0.0, 110.0} RotorRPM.output = {0.0, 1.0} RotorRPM.controller = controllers.RotorRPM So to get the value you need to do: local MainPanel = GetDevice(0) rotorRPM= MainPanel:get_argument_value(52) .. Capt_Zeen_HELIOS PROFILES_WEBSITE Capt_Zeen_Youtube Channel
Bergison Posted April 22, 2020 Posted April 22, 2020 Any idea where to find this information for the F-18C? In its mainpanel_init there are only arguments for left and right throttle position (e.g. LeftThrottle.arg_number = 104), but not for engine RPM. Any help with this would be greatly apprechiated. I need the Hornet engine RPM for refining the bass-shaker output on the Motion Integrated G-Seat. Already wrote to ED regarding this but received no reply. my simpit website: bergisons.simpit.info
mavness Posted July 8, 2020 Posted July 8, 2020 Any idea where to find this information for the F-18C? In its mainpanel_init there are only arguments for left and right throttle position (e.g. LeftThrottle.arg_number = 104), but not for engine RPM. Any help with this would be greatly apprechiated. I need the Hornet engine RPM for refining the bass-shaker output on the Motion Integrated G-Seat. Already wrote to ED regarding this but received no reply. Did you ever figure this out? I am looking to get the same data, for the exact same reason (bass shaker, not the g seat). Thanks mate!
winghunter Posted January 11, 2022 Posted January 11, 2022 -- 104 = Left Engine Throttle local leftThrottle = MainPanel:get_argument_value(104) -- 105 = Right Engine Throttle local rightThrottle = MainPanel:get_argument_value(105) DCS Web Editor - New 3D Mission Editor for DCS that runs in your browser DCS Web Viewer free browser based mission planner 4090 RTX, 13700KF, water cooled, Quest 3
Bergison Posted May 28, 2024 Posted May 28, 2024 Resuscitating a very old thread here, but I am struggling to find the panel argument of the fuel on board value for the FA-18. Looked through all the IFEI files, can't find anything. Any help is apprechiated! my simpit website: bergisons.simpit.info
Trigati Posted May 28, 2024 Posted May 28, 2024 It's not part of the mainpanel, to get the values of the IFEI you need to pull the device info using the ListIndicator. Something like (depends on what scripts you are using to get data output): IFEI = getListIndicatorValue(5) Upper_Readout = IFEI.txt_FUEL_UP Lower_Readout = IFEI.txt_FUEL_DOWN Bingo_Readout = IFEI.txt_BINGO
Bergison Posted May 28, 2024 Posted May 28, 2024 Wow thanks, that looks very promising already! Do you maybe know how to use 'getListIndicatorValue' with a hook lua script? I have tried local IFEI = getListIndicatorValue(5) local own_fuel = IFEI.txt_FUEL_UP and local IFEI = Export.getListIndicatorValue(5) local own_fuel = IFEI.txt_FUEL_UP but none works. Thanks again for your help! my simpit website: bergisons.simpit.info
Trigati Posted May 28, 2024 Posted May 28, 2024 I’ve not played with Hook scripts but I’ll take a look and let you know if I figure it out.Sent from my iPhone using Tapatalk
Trigati Posted May 28, 2024 Posted May 28, 2024 Also, try this instead of the getlistindicator as I think that’s part of the exportscript lia I useAnd, worth checking it’s not a null value before trying to grab the data from it as that can crash the DCS export.IFEI = list_indication(5)iSent from my iPhone using Tapatalk
Recommended Posts