Bailey Posted June 4, 2024 Author Posted June 4, 2024 updated F4: https://github.com/asherao/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportsModules/F-4E-45MC.lua PILOT_HSI_BAR_POINTER = 10064, PILOT_FUEL_READOUT = 10069, PILOT_HDG_CRS = 10070, PILOT_HSI_COMPASS = 10071, PILOT_HSI_POINTER = 10072, 15 hours ago, Yogi_25 said: Hello, Awesome work here, congratulations. About the barometric altimeter, I added some code that works great for me. I did a pull request yesterday, just in case. function ExportScript.ALT_indicator(mainPanelDevice) local ones = mainPanelDevice:get_argument_value(91) * 100 local hundreds = round(mainPanelDevice:get_argument_value(92) * 10) local thousands = round(mainPanelDevice:get_argument_value(93) * 10) local tenthousands = round(mainPanelDevice:get_argument_value(94) * 10) local ALT = tenthousands * 10000 + thousands * 1000 + hundreds *100 + ones ExportScript.Tools.SendData(export_ids.BARO_ALT,string.format("%05.0f", ALT)) end I see that in the last merge the arguments for the altimeter were changed from "%.1f" to "%.3f", is there a specific reason ? I checked both codes and they worked OK for me, but I'm curious since this implies more computing with 3 digit outputs. This is looking odd to me. I didn't add it. Is anyone else seeing oddness? 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 | Kiowa Integrated Overlays
Bailey Posted June 4, 2024 Author Posted June 4, 2024 20 hours ago, bones1014 said: function ExportScript.HSI(mainPanelDevice) -- Pilot HSI Course Roller local pilotCourseSet_ones = string.format("%d", mainPanelDevice:get_argument_value(674) * 10) local pilotCourseSet_tens = string.format("%d", mainPanelDevice:get_argument_value(675) * 10) local pilotCourseSet_hundreds = string.format("%d", mainPanelDevice:get_argument_value(676) * 10) local bearing_value = mainPanelDevice:get_argument_value(670) * 360 --bearmat local formatted_bearing = string.format("%.0f", bearing_value) --bearmat ExportScript.Tools.SendData(export_ids.PILOT_HSI_COURSE_WINDOW, string.format("HSI\n" .. pilotCourseSet_hundreds .. pilotCourseSet_tens .. pilotCourseSet_ones .. "\nCRS\n" .. formatted_bearing)) --[[ExportScript.Tools.SendData(export_ids.PILOT_HSI_COURSE_WINDOW, string.format(pilotCourseSet_hundreds .. pilotCourseSet_tens .. pilotCourseSet_ones))]] @Bailey @Bearmat the course needle defaults to your current heading when you're in NAV COMP mode and is user set in TAC and VOR/ILS mode. With the combined tile it would be a breeze to match your current course with what is either automatically or manually set with the course set knob. I'm going to combine them if you don't mind. null I added this but in a slightly different way. Check it out above. 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 | Kiowa Integrated Overlays
Yogi_25 Posted June 4, 2024 Posted June 4, 2024 Hello, I tested more thoroughly the new code for the Pilot_Altimeter : In the last 50 ft, between x950 and z000 I get one more thousand than expected before going back to normal. If I pass the new thousand quite slowly, one excess digit is displayed. It is a "1" in all cases (11000, 21000, 31000 instead of 1000, 2000, 3000) It is most striking between 0950 and 1000, because you get 0950 then 1951. Reaching 1000, you get then, when climbong slowly, 11000 before getting back to 1000. This happens in all tested cases between 0900 and 23000 ft Hop this helps... P.S. no Phantom were harmed during those tests.
salival007 Posted June 5, 2024 Posted June 5, 2024 (edited) Has anyone linked a profile for the F4E? Here's what i've been using, its pretty basic from the first LUA you guys worked on. I'd love if someone had something more complete with all the fancy stuff. Thanks F-4E.streamDeckProfile Slight update - forgot to mention i use Streamdeck XL. Outdated. Edited June 7, 2024 by salival007 2
Bailey Posted June 5, 2024 Author Posted June 5, 2024 (edited) Added OH-58D Kiowa lua: https://github.com/asherao/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportsModules/OH58D.lua Added: - Radio repeater, channel, and selector (can change arrow type with line 489 in the lua). I recommend binding each of the 4 radio buttons to the radio select in the Kiowa. Use another two SD Tiles for channel up and channel down. WIP: - Parameter window and readouts - Flare and Chaff readouts Edited June 5, 2024 by Bailey 3 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 | Kiowa Integrated Overlays
b1n4ry Posted June 5, 2024 Posted June 5, 2024 Hi, you think it would be possible to export Jester commands or AI Pilot commands (Kiowa)? I would like to bind them on my Stream Deck. AMD R5 3600 @ 4,5GHz, ASUS TUF RTX 3070 Ti, MSI Tomahawk B450 MAX, 32GB G.Skill Aegis DDR4-3200, Liquid Freezer II 280, Corsair HXi Series HX750i
Bailey Posted June 5, 2024 Author Posted June 5, 2024 4 minutes ago, b1n4ry said: Hi, you think it would be possible to export Jester commands or AI Pilot commands (Kiowa)? I would like to bind them on my Stream Deck. Use the hotkey feature on your streamdeck. That is the best way at the moment. 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 | Kiowa Integrated Overlays
salival007 Posted June 6, 2024 Posted June 6, 2024 Bones or Bailey, do you have a f-4e streamdeck profile to go along with the lua files? I don't see it in the github, perhaps im missing it. Sorry if so.
Yogi_25 Posted June 6, 2024 Posted June 6, 2024 11 hours ago, salival007 said: Bones or Bailey, do you have a f-4e streamdeck profile to go along with the lua files? I don't see it in the github, perhaps im missing it. Sorry if so. Hello @salival007, you can get it here, it is part of the package: https://github.com/asherao/DCS-ExportScripts/blob/master/docu/StreamDeck Examples/F-4E.streamDeckProfile
bones1014 Posted June 7, 2024 Posted June 7, 2024 18 hours ago, salival007 said: Bones or Bailey, do you have a f-4e streamdeck profile to go along with the lua files? I don't see it in the github, perhaps im missing it. Sorry if so. I have one but I haven't shared it. I have 4 different stream decks with different controls on different decks. Sharing it isn't easy to do cuz it comes out as 4 different profiles.
Bailey Posted June 7, 2024 Author Posted June 7, 2024 (edited) 8 hours ago, Yogi_25 said: Hello @salival007, you can get it here, it is part of the package: https://github.com/asherao/DCS-ExportScripts/blob/master/docu/StreamDeck Examples/F-4E.streamDeckProfile I have one that I use but, but certainly not at the level I would release for the public. I do not plan to release one myself. I'd gladly help develop one with someone though! Edited June 7, 2024 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 | Kiowa Integrated Overlays
salival007 Posted June 7, 2024 Posted June 7, 2024 (edited) As I listed mine - definitely not complete but works for the basics. I find it's useful if you list yours so others can modulate it and create their own, whether using your icons or taking ideas. Generally its easier to copy peoples icons that you need - than create your own - if that makes sense. It would be a great help to the community, even if it won't work from a functionality point of view (bones). More options the better - even if they're WIP Just my 2cents. Edited June 7, 2024 by salival007 1
Bailey Posted June 7, 2024 Author Posted June 7, 2024 I like the functionality of the ones I tend to make. Need a button? Look it up and slap it on. Need a switch? Look it up and slap it on, too. My major apprehension is that I like the profile to also look nice too. There are some very useful and beautiful pieces of art in some of these stream deck profiles. I guess I have been spoiled in that regard, haha. If someone can team up an make some great art, I'd gladly add the code necessary for them to come to life in a profile. Or vice versa. If someone offers their time to make the art, I'd gladly make a profile beforehand. 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 | Kiowa Integrated Overlays
ChwyNiblet Posted June 7, 2024 Posted June 7, 2024 On 6/5/2024 at 1:19 PM, Bailey said: Added OH-58D Kiowa lua: https://github.com/asherao/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportsModules/OH58D.lua Added: - Radio repeater, channel, and selector (can change arrow type with line 489 in the lua). I recommend binding each of the 4 radio buttons to the radio select in the Kiowa. Use another two SD Tiles for channel up and channel down. WIP: - Parameter window and readouts - Flare and Chaff readouts Thank you for this, very helpful and I am in the process of creating a profile now. As for the readouts, do we need to specify a DCS ID for them? I see the export ID but do I need to specify anything else in the .lua?
bones1014 Posted June 7, 2024 Posted June 7, 2024 (edited) I added a TACAN command status light option to the TACAN channel export. I made it export 10073. I'll work on one for the Comm Command light too. Should be done here shortly. *EDIT* I guess the UHF hasn't been completed yet so the comm command light will have to wait. function ExportScript.TACAN_channels(mainPanelDevice) -- PILOT local ones = mainPanelDevice:get_argument_value(643) local tens = mainPanelDevice:get_argument_value(644) local hundreds = mainPanelDevice:get_argument_value(645) local mode = mainPanelDevice:get_argument_value(656) > 0.5 and "Y" or "X" local _, tens_decimal = math.modf(tens) if tens_decimal > 0.91 then tens_decimal = 0 end --tacan command indicator local tacan_command if mainPanelDevice:get_argument_value(170) > 0 then tacan_command = "" else tacan_command = "" end ExportScript.Tools.SendData(export_ids.PILOT_TACAN_FREQ_CMD_LGHT, string.format("%.0f%.0f%.0f%s", hundreds * 10, tens_decimal * 10, ones * 10, mode) .. "\n" .. tacan_command) ExportScript.Tools.SendData(export_ids.PILOT_TACAN_FREQUENCY, string.format("%.0f%.0f%.0f%s", hundreds * 10, tens_decimal * 10, ones * 10, mode)) -- WSO local ones = mainPanelDevice:get_argument_value(650) local tens = mainPanelDevice:get_argument_value(651) local hundreds = mainPanelDevice:get_argument_value(652) local mode = mainPanelDevice:get_argument_value(660) > 0.5 and "Y" or "X" local _, tens_decimal = math.modf(tens) if tens_decimal > 0.91 then tens_decimal = 0 end ExportScript.Tools.SendData(export_ids.WSO_TACAN_FREQUENCY, string.format("%.0f%.0f%.0f%s", hundreds * 10, tens_decimal * 10, ones * 10, mode)) end nullnull Edited June 7, 2024 by bones1014 3
Phoenix FR Posted June 8, 2024 Posted June 8, 2024 On 6/7/2024 at 2:00 AM, bones1014 said: I have one but I haven't shared it. I have 4 different stream decks with different controls on different decks. Sharing it isn't easy to do cuz it comes out as 4 different profiles. It could be helpful for others even if we don't have the same configuration. We can pick keys that work for adding them to our own profile.
Bailey Posted June 8, 2024 Author Posted June 8, 2024 Working on a WIP Streamdeck XL Profile for the Kiowa. 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 | Kiowa Integrated Overlays
Bailey Posted June 8, 2024 Author Posted June 8, 2024 (edited) 5 hours ago, Bailey said: Working on a WIP Streamdeck XL Profile for the Kiowa. Uploaded. Remember, this is WIP and only serves to give you an idea of what a profile could look like in its early stages. Don't mind the AI directional pics . Just a heads up, there are a lot of hotkey commands. You will have to deconflict on your own, or wait for my VoiceAttack profile to release Profile: https://github.com/asherao/DCS-ExportScripts/blob/master/docu/StreamDeck Examples/OH-58D Kiowa by Bailey WIP.streamDeckProfile Pics: Edited June 8, 2024 by Bailey 4 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 | Kiowa Integrated Overlays
Phoenix FR Posted June 8, 2024 Posted June 8, 2024 Bailey, you made an error in the name. You use OVH56D instead of OVH 58D.
Bailey Posted June 8, 2024 Author Posted June 8, 2024 15 minutes ago, Phoenix FR said: Bailey, you made an error in the name. You use OVH56D instead of OVH 58D. OH-58D Wiowa I said it was WIP, remember? Corrected. Thank you. And updated with more AI controls and some other little things. 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 | Kiowa Integrated Overlays
RogueSqdn Posted June 8, 2024 Posted June 8, 2024 Having trouble with the IFF master knob on the F-16. I can move the knob but not get text labels out of it. I just get a value of 1.0 returned, no matter what position the knob's in. I've tried both 539 and 540 as the DCS ID in the Title Text section. nullnull DEFENSOR FORTIS Spoiler Systems: Falcon NW Talon: Ryzen 9 5950X @4.9GHz, 64GB DDR4, RTX 3090 FE; Falcon NW Mach V: Core i7 3930K @3.2GHz, 32GB DDR3, GTX 1080 FE Cockpit: MonsterTech MTX F, 42" 4K TV, HP Reverb G2, Oculus Rift S, PointCTRL Controls: RS F16SGRH CE, RS F18CGRH, VPC T-50CM2, VFX, WarBRD (Grips); VPC T-50CM2, RS FSSB R3L (Bases); Winwing F/A-18C, VPC T-50CM3, VPC T-50CM, TM Warthog, Cougar (Throttles); VPC ACE2 (Rudders)
Bailey Posted June 8, 2024 Author Posted June 8, 2024 1 hour ago, RogueSqdn said: Having trouble with the IFF master knob on the F-16. I can move the knob but not get text labels out of it. I just get a value of 1.0 returned, no matter what position the knob's in. I've tried both 539 and 540 as the DCS ID in the Title Text section. nullnull The text is defined by the user (you). Click the checkmark that says "Display string unaltered" in your screenshot. You will then see the example format you will need to use to associate values with words. 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 | Kiowa Integrated Overlays
Bailey Posted June 9, 2024 Author Posted June 9, 2024 On 6/8/2024 at 7:40 AM, bones1014 said: I added a TACAN command status light option to the TACAN channel export. I made it export 10073. I'll work on one for the Comm Command light too. Should be done here shortly. *EDIT* I guess the UHF hasn't been completed yet so the comm command light will have to wait. function ExportScript.TACAN_channels(mainPanelDevice) -- PILOT local ones = mainPanelDevice:get_argument_value(643) local tens = mainPanelDevice:get_argument_value(644) local hundreds = mainPanelDevice:get_argument_value(645) local mode = mainPanelDevice:get_argument_value(656) > 0.5 and "Y" or "X" local _, tens_decimal = math.modf(tens) if tens_decimal > 0.91 then tens_decimal = 0 end --tacan command indicator local tacan_command if mainPanelDevice:get_argument_value(170) > 0 then tacan_command = "" else tacan_command = "" end ExportScript.Tools.SendData(export_ids.PILOT_TACAN_FREQ_CMD_LGHT, string.format("%.0f%.0f%.0f%s", hundreds * 10, tens_decimal * 10, ones * 10, mode) .. "\n" .. tacan_command) ExportScript.Tools.SendData(export_ids.PILOT_TACAN_FREQUENCY, string.format("%.0f%.0f%.0f%s", hundreds * 10, tens_decimal * 10, ones * 10, mode)) -- WSO local ones = mainPanelDevice:get_argument_value(650) local tens = mainPanelDevice:get_argument_value(651) local hundreds = mainPanelDevice:get_argument_value(652) local mode = mainPanelDevice:get_argument_value(660) > 0.5 and "Y" or "X" local _, tens_decimal = math.modf(tens) if tens_decimal > 0.91 then tens_decimal = 0 end ExportScript.Tools.SendData(export_ids.WSO_TACAN_FREQUENCY, string.format("%.0f%.0f%.0f%s", hundreds * 10, tens_decimal * 10, ones * 10, mode)) end nullnull Great idea! It works well, and you can add the button press to take command. Great thinking. I also put the WSO in there too. Exports and 10073 and 10074. The Git has been updated with this addition. Thank you! 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 | Kiowa Integrated Overlays
salival007 Posted June 9, 2024 Posted June 9, 2024 (edited) Basic F-4E Phantom that has a few read outs, and what you need to drop some bombs. White Border with green text is a readout not a button Most icons are just from the plane, and roughly in the locations correlating to the planes layout. Has a few shortcuts to speed up things - - Reticle presets set to mavericks (45) or Zero or Wall Eye - Weapon Delivery there is a Reset to Off to setup for Air to Air. -Sel Stores sets the jettison knob to Stores (for fuel tank jettison) The + are folders, and are incomplete. nullF-4E XL v.01.streamDeckProfilenullnullnull Edited June 9, 2024 by salival007 5
Deyth Posted June 10, 2024 Posted June 10, 2024 On 6/3/2024 at 4:56 PM, bones1014 said: It was changed because between 7k and 8k feet the altimeter was showing 6k. It seems to be working in the newest version of the export lua. Download it and try to see if it's working for you. Using the latest export script version, I noticed the value for 10061 "PILOT_ALTIMETER" jumping an extra 1000 feet while flying between 900 and 1000 feet. It'd jump to 1900 and then back.
Recommended Posts