bones1014 Posted October 23, 2021 Share Posted October 23, 2021 It something that broke with the last update. It used to display either the radio channel or freq based on the mode. I've been trying different things and checking the numbers being exported but I can't figure it out. This is what's in the LUA right now ----------------------------------- -----Get F14 Radio Frequencies----- ----------------------------------- -----UHF----- --[[ 1. Get the state of the switch to determine if presets or freqs are being used 2. Get the channel or freq 3. Using the above logic, present the Channel or Freq 4. Preceede channels with "CH ". 5. Dont preceede freqs with anything. ]] --[[ [2033] = "%.4f", -- Mode selector knob (GUARD|MANUAL|PRESET) 0.0 = preset 0.5 = MANUAL 1.0 = GUARD ]] local UHF_ARC159_infoBase = ExportScript.Tools.split(list_indication(8), "%c")--this contains the formated table of the base radio local UHF_ARC159_readoutBase = UHF_ARC159_infoBase[10] -- so far it has always been 10 in both channel and freq modes local UHF_ARC159_FreqMode = string.format("%0.1f", mainPanelDevice:get_argument_value(2033)) if UHF_ARC159_FreqMode == "1.0" or UHF_ARC159_FreqMode == "0.5" then ExportScript.Tools.SendData(60000, string.format("ARC-159\n" .. UHF_ARC159_readoutBase:sub(1,3) .. "." .. UHF_ARC159_readoutBase:sub(4,6))) ExportScript.Tools.SendData(60001, string.format(UHF_ARC159_readoutBase:sub(1,3) .. "." .. UHF_ARC159_readoutBase:sub(4,6))) elseif UHF_ARC159_FreqMode == "0.0" then ExportScript.Tools.SendData(60000, string.format("ARC-159\n" .. "CH " .. UHF_ARC159_readoutBase:sub(4,6))) ExportScript.Tools.SendData(60001, string.format("CH " .. UHF_ARC159_readoutBase:sub(4,6))) end local UHF_ARC159_infoPilot = ExportScript.Tools.split(list_indication(9), "%c")--this contains the formated table of the Pilot radio local UHF_ARC159_readoutPilot = UHF_ARC159_infoPilot[16] -- so far it has always been 10 in both channel and freq modes local UHF_ARC159_FreqMode = string.format("%0.1f", mainPanelDevice:get_argument_value(2033)) if UHF_ARC159_FreqMode == "1.0" or UHF_ARC159_FreqMode == "0.5" then ExportScript.Tools.SendData(60002, string.format("ARC-159\n" .. UHF_ARC159_readoutPilot:sub(1,3) .. "." .. UHF_ARC159_readoutPilot:sub(4,6))) ExportScript.Tools.SendData(60003, string.format(UHF_ARC159_readoutPilot:sub(1,3) .. "." .. UHF_ARC159_readoutPilot:sub(4,6))) elseif UHF_ARC159_FreqMode == "0.0" then ExportScript.Tools.SendData(60002, string.format("ARC-159\n" .. "CH " .. UHF_ARC159_readoutPilot:sub(4,6))) ExportScript.Tools.SendData(60003, string.format("CH " .. UHF_ARC159_readoutPilot:sub(4,6))) end local UHF_ARC159_infoRio = ExportScript.Tools.split(list_indication(9), "%c")--this contains the formated table of the Rio radio local UHF_ARC159_readoutRio = UHF_ARC159_infoRio[16] -- so far it has always been 10 in both channel and freq modes local UHF_ARC159_FreqMode = string.format("%0.1f", mainPanelDevice:get_argument_value(2033)) if UHF_ARC159_FreqMode == "1.0" or UHF_ARC159_FreqMode == "0.5" then ExportScript.Tools.SendData(60004, string.format("ARC-159\n" .. UHF_ARC159_readoutRio:sub(1,3) .. "." .. UHF_ARC159_readoutRio:sub(4,6))) ExportScript.Tools.SendData(60005, string.format(UHF_ARC159_readoutRio:sub(1,3) .. "." .. UHF_ARC159_readoutRio:sub(4,6))) elseif UHF_ARC159_FreqMode == "0.0" then ExportScript.Tools.SendData(60004, string.format("ARC-159\n" .. "CH " .. UHF_ARC159_readoutRio:sub(4,6))) ExportScript.Tools.SendData(60005, string.format("CH " .. UHF_ARC159_readoutRio:sub(4,6))) end -----V/UHF ARC182----- --[[ [353] = "%0.1f", -- VHF/UHF ARC-182 Freq Mode (UHF GUARD|V/UHF|V/UHF GUARD|PRESET|V/UHF|LOAD?) 0.0 = UHF GUARD 0.2 = V/UHF 0.4 = V/UHF GUARD 0.6 = PRESET 0.8 = V/UHF 1.0 = LOAD? ]] local VHF_ARC182_infoBase = ExportScript.Tools.split(list_indication(12), "%c")--this contains the formated table of the base radio local VHF_ARC182_readoutBase = VHF_ARC182_infoBase[10] -- so far it has always been 10 in both channel and freq modes local VHF_ARC182_FreqMode = string.format("%0.1f", mainPanelDevice:get_argument_value(353)) if VHF_ARC182_FreqMode == "0.0" or VHF_ARC182_FreqMode == "0.2" then ExportScript.Tools.SendData(60006, string.format("ARC-182\n" .. VHF_ARC182_readoutBase:sub(1,3) .. "." .. VHF_ARC182_readoutBase:sub(4,6))) ExportScript.Tools.SendData(60007, string.format(VHF_ARC182_readoutBase:sub(1,3) .. "." .. VHF_ARC182_readoutBase:sub(4,6))) elseif VHF_ARC182_FreqMode == "0.4" or VHF_ARC182_FreqMode == "0.8" then ExportScript.Tools.SendData(60006, string.format("ARC-182\n" .. VHF_ARC182_readoutBase:sub(1,3) .. "." .. VHF_ARC182_readoutBase:sub(4,6))) ExportScript.Tools.SendData(60007, string.format(VHF_ARC182_readoutBase:sub(1,3) .. "." .. VHF_ARC182_readoutBase:sub(4,6))) elseif VHF_ARC182_FreqMode == "1.0" then ExportScript.Tools.SendData(60006, string.format("ARC-182\n" .. VHF_ARC182_readoutBase:sub(1,3) .. "." .. VHF_ARC182_readoutBase:sub(4,6))) ExportScript.Tools.SendData(60007, string.format(VHF_ARC182_readoutBase:sub(1,3) .. "." .. VHF_ARC182_readoutBase:sub(4,6))) elseif VHF_ARC182_FreqMode == "0.6" then ExportScript.Tools.SendData(60006, string.format("ARC-182\n" .. "CH " .. VHF_ARC182_readoutBase:sub(4,6))) ExportScript.Tools.SendData(60007, string.format("CH " .. VHF_ARC182_readoutBase:sub(4,6))) end end Link to comment Share on other sites More sharing options...
bones1014 Posted October 23, 2021 Share Posted October 23, 2021 I fixed it. Change this line local UHF_ARC159_infoBase = ExportScript.Tools.split(list_indication(8), "%c")--this contains the formated table of the base radio to local UHF_ARC159_infoBase = ExportScript.Tools.split(list_indication(9), "%c")--this contains the formated table of the base radio 1 Link to comment Share on other sites More sharing options...
Bailey Posted October 28, 2021 Author Share Posted October 28, 2021 (edited) F-16C Update (https://github.com/asherao/DCS-ExportScripts/wiki/F-16C) - Removed F-18 code (haha, idk how it got in there) - Fixed CMDS readouts - Added more CMDS readouts - Added fuel totalizer readout - Added fuel flow readout - Added Media Pic This update was inspired by this post: Edited October 28, 2021 by Bailey 1 1 DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
Lange_666 Posted October 29, 2021 Share Posted October 29, 2021 (edited) Oh boy this Github... why is it so complicated? Always makes me nervous when ending up there. Finding the correct download link always seems to be a big problem for me (yeah i'm getting old). Who not: Latest version --> link --> click? Edited October 29, 2021 by Lange_666 Win11 Pro 64-bit, Ryzen 5800X3D, Corsair H115i, Gigabyte X570S UD, EVGA 3080Ti XC3 Ultra 12GB, 64 GB DDR4 G.Skill 3600. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base, MFG Crosswind combat pedals, TrackIR4, Rift-S. Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance! Link to comment Share on other sites More sharing options...
Bailey Posted October 29, 2021 Author Share Posted October 29, 2021 33 minutes ago, Lange_666 said: Oh boy this Github... why is it so complicated? Always makes me nervous when ending up there. Finding the correct download link always seems to be a big problem for me (yeah i'm getting old). Who not: Latest version --> link --> click? I agree, its a headache. After clicking this link (https://github.com/asherao/DCS-ExportScripts), click the "Code" square/button and then click "Download Zip" in the dropdown. Then unzip/install as other mods/scripts. You can also navigate to the lua you want and copy/paste the code into the lua file already on your pc. DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
Lange_666 Posted October 29, 2021 Share Posted October 29, 2021 Big thanks ! Win11 Pro 64-bit, Ryzen 5800X3D, Corsair H115i, Gigabyte X570S UD, EVGA 3080Ti XC3 Ultra 12GB, 64 GB DDR4 G.Skill 3600. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base, MFG Crosswind combat pedals, TrackIR4, Rift-S. Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance! Link to comment Share on other sites More sharing options...
Bailey Posted November 6, 2021 Author Share Posted November 6, 2021 (edited) Updated Gazelle M lua - Reworked and added Radio exports, see wiki for details (https://github.com/asherao/DCS-ExportScripts/wiki/Gazelle-M) - Added many Gaz stock button pics - Added Gazelle M media Edited November 7, 2021 by Bailey DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
Mordants Posted November 8, 2021 Share Posted November 8, 2021 On 11/6/2021 at 11:17 AM, Bailey said: Updated Gazelle M lua - Reworked and added Radio exports, see wiki for details (https://github.com/asherao/DCS-ExportScripts/wiki/Gazelle-M) - Added many Gaz stock button pics - Added Gazelle M media Is there a Stream Deck file to go with this? I have managed to incorporate the radio and ADF readouts to my SA342M file but for the life of me cannot get the ADF dials to decrease, If I add a negative value to the increment it still increases. I can't figure out the above dials numbers in the lua file. Apologies if its straight forward but I'm not too bright. I have many hours tinkering with DCS interface values, but it can get frustrating sometimes. Thanks for your time, It's really great the work you do for the community. SYSTEM SPECS: Hardware Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz, 3792 Mhz, 64Gb RAM, NVIDIA GeForce RTX 4090, CONTROLS: VPC Rotor TCS Base, VPC Hawk-60 Collective Grip, VPC MongoosT-50CM3 Base, VPC Constellation ALPHA Prime [R], Thrustmaster Warthog – Throttle, Thrustmaster TPR - Pendular Rudder Pedals, Honeycomb Alpha Flight Control (For Anubis C-130 Hercules), Meta Quest Pro. SOFTWARE: Microsoft Windows 11, Link to comment Share on other sites More sharing options...
Bailey Posted November 8, 2021 Author Share Posted November 8, 2021 2 hours ago, Mordants said: Is there a Stream Deck file to go with this? I have managed to incorporate the radio and ADF readouts to my SA342M file but for the life of me cannot get the ADF dials to decrease, If I add a negative value to the increment it still increases. I can't figure out the above dials numbers in the lua file. Apologies if its straight forward but I'm not too bright. I have many hours tinkering with DCS interface values, but it can get frustrating sometimes. Thanks for your time, It's really great the work you do for the community. Here, try this. https://github.com/asherao/DCS-ExportScripts/tree/master/docu/StreamDeck Examples I found the solution on accident because of a fortunate typo I made. For the decrease, make the "Increment range min/max" -1 and 1, respectively. Please let me know if you are able to load the profile in the link above. Thanks for the thanks! It is much appreciated. DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
Mordants Posted November 8, 2021 Share Posted November 8, 2021 1 hour ago, Bailey said: Here, try this. https://github.com/asherao/DCS-ExportScripts/tree/master/docu/StreamDeck Examples I found the solution on accident because of a fortunate typo I made. For the decrease, make the "Increment range min/max" -1 and 1, respectively. Please let me know if you are able to load the profile in the link above. Thanks for the thanks! It is much appreciated. You are definitely the man! I've downloaded and installed the profile and works a treat, love it. Now I'm just going to analyse how you did it to see where I went wrong. Though I'm sure I tried all permutations of negative numbers. Obviously not otherwise we wouldn't be having this dialogue! Once again thanks for your generous help, I am indebted. 1 SYSTEM SPECS: Hardware Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz, 3792 Mhz, 64Gb RAM, NVIDIA GeForce RTX 4090, CONTROLS: VPC Rotor TCS Base, VPC Hawk-60 Collective Grip, VPC MongoosT-50CM3 Base, VPC Constellation ALPHA Prime [R], Thrustmaster Warthog – Throttle, Thrustmaster TPR - Pendular Rudder Pedals, Honeycomb Alpha Flight Control (For Anubis C-130 Hercules), Meta Quest Pro. SOFTWARE: Microsoft Windows 11, Link to comment Share on other sites More sharing options...
hasole Posted November 12, 2021 Share Posted November 12, 2021 On 11/7/2021 at 12:17 AM, Bailey said: Updated Gazelle M lua - Reworked and added Radio exports, see wiki for details (https://github.com/asherao/DCS-ExportScripts/wiki/Gazelle-M) - Added many Gaz stock button pics - Added Gazelle M media I need to make buttons like these for the Tomcat RWR, SW, ICS Link to comment Share on other sites More sharing options...
lassekongo Posted December 28, 2021 Share Posted December 28, 2021 @Bailey I wrote what it said on the export wiki for the f16. I can get alt pressure readout to work but not 3000-3007 readouts for chaff and flare Link to comment Share on other sites More sharing options...
Bailey Posted January 4, 2022 Author Share Posted January 4, 2022 On 12/28/2021 at 9:41 AM, lassekongo said: @Bailey I wrote what it said on the export wiki for the f16. I can get alt pressure readout to work but not 3000-3007 readouts for chaff and flare I have updated the lua. Please try again. 3000-3007 are working on my end. If it still does not work please post your lua file and the location it was in. DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
lassekongo Posted January 4, 2022 Share Posted January 4, 2022 @Bailey Will check soon with new F16 export module lua Link to comment Share on other sites More sharing options...
Bailey Posted January 4, 2022 Author Share Posted January 4, 2022 (edited) Cat's outta the bag. F16 has been updated with the ECM Panel to include the buttons and their colors. Check out this post and the ones surrounding it for the research, collaboration, and awesome teamwork: Please remember to read the wiki for more information. Enjoy! https://github.com/asherao/DCS-ExportScripts/wiki/F-16C Edited January 4, 2022 by Bailey 1 DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
lassekongo Posted January 9, 2022 Share Posted January 9, 2022 So this new f16 lua file seems to send inputs but not recive any to the switch icon images Link to comment Share on other sites More sharing options...
lassekongo Posted January 9, 2022 Share Posted January 9, 2022 On 1/4/2022 at 1:53 AM, lassekongo said: @Bailey Will check soon with new F16 export module lua @Bailey can now confirm sadly that the values for 3000-3007 (chaff flare etc) does still not work for me on the text display. I also posted an other answer to you in New stream deck plugin thread about my issue with the ecm buttons Oh and second weird issue i am having is that for some reason the switch input and momentary button with lamps is sending inputs and working but is not changing to second state image. I have checked that it is only the F16 module that is having this issue. I have experinced many kinds of errors before with dcs interface (especially ecport lua hehe) and have now reached an ok ish understanding of the varoious things of what causes issues but have never experinced that it is only one module that is having problems like this of changing button state or rather reading it but can send it. As it is only the f16 could there be something with the new Lua perhaps ? Link to comment Share on other sites More sharing options...
Bailey Posted January 9, 2022 Author Share Posted January 9, 2022 18 minutes ago, lassekongo said: @Bailey can now confirm sadly that the values for 3000-3007 (chaff flare etc) does still not work for me on the text display. I also posted an other answer to you in New stream deck plugin thread about my issue with the ecm buttons Oh and second weird issue i am having is that for some reason the switch input and momentary button with lamps is sending inputs and working but is not changing to second state image. I have checked that it is only the F16 module that is having this issue. I have experinced many kinds of errors before with dcs interface (especially ecport lua hehe) and have now reached an ok ish understanding of the varoious things of what causes issues but have never experinced that it is only one module that is having problems like this of changing button state or rather reading it but can send it. As it is only the f16 could there be something with the new Lua perhaps ? Please attach the lua you are using. DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
Bailey Posted January 10, 2022 Author Share Posted January 10, 2022 (edited) 21 hours ago, Bailey said: Please attach the lua you are using. 21 hours ago, lassekongo said: @Bailey can now confirm sadly that the values for 3000-3007 (chaff flare etc) does still not work for me on the text display. I also posted an other answer to you in New stream deck plugin thread about my issue with the ecm buttons Oh and second weird issue i am having is that for some reason the switch input and momentary button with lamps is sending inputs and working but is not changing to second state image. I have checked that it is only the F16 module that is having this issue. I have experinced many kinds of errors before with dcs interface (especially ecport lua hehe) and have now reached an ok ish understanding of the varoious things of what causes issues but have never experinced that it is only one module that is having problems like this of changing button state or rather reading it but can send it. As it is only the f16 could there be something with the new Lua perhaps ? Issue solved. Remember to keep those luas updated! https://forums.eagle.ru/topic/230609-new-streamdeck-plugin/?do=findComment&comment=4864852 Edited January 10, 2022 by Bailey DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
Bailey Posted January 17, 2022 Author Share Posted January 17, 2022 (edited) Updated the library: - Added Mi-8 Hip digital compass (https://github.com/asherao/DCS-ExportScripts/wiki/Mi-8MT-Hip) - Added UH-60L mod lua (https://github.com/asherao/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportsModules/UH-60L.lua) - Documentation to come later Edited January 17, 2022 by Bailey DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
scoobie Posted January 17, 2022 Share Posted January 17, 2022 Hi, @bones1014! Just a tiny tip (and optional to use) that can make life easier a bit. You don't need "string.format()" where inside it you have a ready to use string. So, for example, instead of: ExportScript.Tools.SendData(60001, string.format("CH " .. UHF_ARC159_readoutBase:sub(4,6))) You can simply write: ExportScript.Tools.SendData(60001, "CH " .. UHF_ARC159_readoutBase:sub(4,6)) It's the same. Well actually the latter is faster to run for two reasons (but this shouldn't matter much), but it's also healthier for the eyes (less reading)! i7-8700K 32GB 2060(6GB) 27"@1080p TM Hawg HOTAS TPR TIR5 SD-XL 2xSD+ HC Bravo button/pot box Link to comment Share on other sites More sharing options...
bones1014 Posted January 17, 2022 Share Posted January 17, 2022 3 hours ago, scoobie said: Hi, @bones1014! Just a tiny tip (and optional to use) that can make life easier a bit. You don't need "string.format()" where inside it you have a ready to use string. So, for example, instead of: ExportScript.Tools.SendData(60001, string.format("CH " .. UHF_ARC159_readoutBase:sub(4,6))) You can simply write: ExportScript.Tools.SendData(60001, "CH " .. UHF_ARC159_readoutBase:sub(4,6)) It's the same. Well actually the latter is faster to run for two reasons (but this shouldn't matter much), but it's also healthier for the eyes (less reading)! Where did I do that? Link to comment Share on other sites More sharing options...
scoobie Posted January 17, 2022 Share Posted January 17, 2022 Oh, wait... so the text wasn't yours, you only quoted what you had found in a file written by someone else? Sorry then Never mind, I didn't mean anything wrong - it's no big deal, the code will work either way, it just struck me that someone is/was putting more work into that Lua than neccessary. Here: https://forums.eagle.ru/topic/283178-dcs-exportscripts-for-stream-deck-community-github-library/?do=findComment&comment=4805362 i7-8700K 32GB 2060(6GB) 27"@1080p TM Hawg HOTAS TPR TIR5 SD-XL 2xSD+ HC Bravo button/pot box Link to comment Share on other sites More sharing options...
bones1014 Posted January 17, 2022 Share Posted January 17, 2022 2 minutes ago, scoobie said: Oh, wait... so the text wasn't yours, you only quoted what you had found in a file written by someone else? Sorry then Never mind, I didn't mean anything wrong - it's no big deal, the code will work either way, it just struck me that someone is/was putting more work into that Lua than neccessary. Here: https://forums.eagle.ru/topic/283178-dcs-exportscripts-for-stream-deck-community-github-library/?do=findComment&comment=4805362 Oh ok. I don't mind pointers. spaghetti code is bad and wastes time! If there's ever a better way to do something let me know. Coding can be tough. Link to comment Share on other sites More sharing options...
scoobie Posted January 17, 2022 Share Posted January 17, 2022 14 minutes ago, bones1014 said: If there's ever a better way to do something let me know. Black humour, I like it! I can make coffee instead, I don't get that Lua contraption, maybe like 10% of it, at best. I'd love to read one day how this strange language works Sorry for off-topic! i7-8700K 32GB 2060(6GB) 27"@1080p TM Hawg HOTAS TPR TIR5 SD-XL 2xSD+ HC Bravo button/pot box Link to comment Share on other sites More sharing options...
Recommended Posts