Hayrake YE-ZB Posted March 16, 2024 Posted March 16, 2024 Hi there, Is there a guide or video that shows how to set up the light feedback on the PTO2 controller? It works beautifully out of the box with the F18, but Iām trying to get the master caution light, and the landing gear position lights, and the gear and hook transition lights to work with other aircraft.Ā Iāve read the SimappPro guide, and donāt quite see where to start. Any help would be appreciated.
ANDR0ID Posted March 17, 2024 Posted March 17, 2024 Is this a capability? I thought the only option was to sync with DCS, which really means the F-18.Ā Link to my Mods (Armed Blackhawk, ACH-47F, Kiowa Weapons Pack, A-29B Extra Weapons, UH/MH-60 Liveries, etc)
MustangSally Posted March 17, 2024 Posted March 17, 2024 Currently The F-18 is the only aircraft to have the capability Ryzen 9 7950X3D - MSI MAG X670E TomaHawk MB, ASUS ROG Ryujin III 360 AIO 64gig Corsair DDR5@6000, Gigabyte GeForce RTX 4090 AORUS Winwing Super Taurus, Orion2, TO / Combat panels, Collective with Topgun MIP Winwing Skywalker pedals, NLR Boeing Mil Edition Simpit, 55" Samsung Odyssey Ark, Trackir
Hayrake YE-ZB Posted March 17, 2024 Author Posted March 17, 2024 I see, well that would explain why I canāt find the information. For some reason, I thought that separate profiles could be built to hook into different aircraft.Ā Thanks.
Wostg Posted March 18, 2024 Posted March 18, 2024 Suggest raising a ticket, they're usually very responsive and willing to take a feature request, at leastĀ I can think of nothing heavier than an airplane I can think of no greater conglomerate of steel and metal I can think of nothing less likely to fly
prestonflying Posted March 19, 2024 Posted March 19, 2024 (edited) This is a current ability of SimApp Pro using the provided `C:\Program Files (x86)\SimAppPro\resources\app.asar.unpacked\dcs_event_bind_config.js` file, you can define your own aircraft profiles (In a json dictonary, but there is an example of the F18 and other planes that work), Attached are images of a JF-17 using custom lights and the F18 profile. You can extend this to work with any plane and any light valueĀ You will need to look in the game files of the module to determine the value for `dcs_id` as this is the argument number for the module. Example, dcs_id 376 controls the APU light in the hornet. You can find these values in "<DCS_INSTALL>/Mods/aircraft/FA-18C/Cockpit/Scripts/MainPanel/lamps.lua" Other modules will have similar files to get the light values needed for the `dcs_event_bind_config.js`nullnull Edited March 19, 2024 by prestonflying 2
ANDR0ID Posted March 19, 2024 Posted March 19, 2024 @prestonflying does it again! An interesting project to tackle when I get time.Ā Ā Link to my Mods (Armed Blackhawk, ACH-47F, Kiowa Weapons Pack, A-29B Extra Weapons, UH/MH-60 Liveries, etc)
ANDR0ID Posted March 28, 2024 Posted March 28, 2024 (edited) I had a chance to test this a bit... adding additional aircraft shouldn't be too difficult, but for those using the universal UFC mod the PTO, etc. functions will sadly be disabled (or not work correctly) as the universal UFC project currently mimics the F18, and thus all the PTO lights follow the F18 logic too.Ā I was really hoping we could have our cake and eat it too, but no so at the moment. Perhaps in the future with some more investigation.Ā Edited March 28, 2024 by ANDR0ID 1 Link to my Mods (Armed Blackhawk, ACH-47F, Kiowa Weapons Pack, A-29B Extra Weapons, UH/MH-60 Liveries, etc)
pierre0000 Posted March 4 Posted March 4 (edited) On 3/19/2024 at 4:43 PM, prestonflying said: This is a current ability of SimApp Pro using the provided `C:\Program Files (x86)\SimAppPro\resources\app.asar.unpacked\dcs_event_bind_config.js` file, you can define your own aircraft profiles (In a json dictonary, but there is an example of the F18 and other planes that work), Attached are images of a JF-17 using custom lights and the F18 profile. You can extend this to work with any plane and any light valueĀ You will need to look in the game files of the module to determine the value for `dcs_id` as this is the argument number for the module. Example, dcs_id 376 controls the APU light in the hornet. You can find these values in "<DCS_INSTALL>/Mods/aircraft/FA-18C/Cockpit/Scripts/MainPanel/lamps.lua" Other modules will have similar files to get the light values needed for the `dcs_event_bind_config.js`nullnull Hey Preston, could you explain a bit how this works? I do not find the references for lights in the F4E folder... Thx in advance! Edited March 4 by pierre0000
prestonflying Posted March 5 Posted March 5 @pierre0000 The steps would look something like this Open the file, use NotePad++, VSCode, or other code editor: C:\Program Files (x86)\SimAppPro\resources\app.asar.unpacked\dcs_event_bind_config.js Add this into the list of exported objects, you will need to look for the DCS Module argument to power the light, I put a random one of `120`, which will not work. I do not own F4E so I can not look at the list of arguments, but they will be in this folder in some lua files:Ā DCS_INSTALL_PATH/Mods/aircraft/F-4E-45MC module.exports = [ {*F18 Code block, etc}, {*Other module code blocks, etc}, { aircraft_name: ["F-4E-45MC"], isResetLight: true, recv: [ { dcs_id: "0.120", // You must find the DCS argument for the given data you want to drive this light. Look inside DCS_INSTALL_PATH/Mods/aircraft/F-4E-45MC/ and look through the lua files for the arguments you wish. Others on the forms might be able to help if you post device_name: ["F18_TAKEOFF_PANEL"], led: ["Landing_gear_lights"] } ] } ]; Ā 1
Nightdare Posted March 5 Posted March 5 18 hours ago, prestonflying said: you will need to look for the DCS Module argument to power the light Very noob question: How do I 'recognize' these arguments? I've been diving in my F-14 directory, since there is no "MainPanel" folder,Ā looking around in various .Lua's, looking for something simple like the 'Jett' light and in draw_args.lua, I found numbers like: WARN_EmergJett = 15031 PILOT_JETT_Light = 701 WEAP_Emer_Jettison = 239 Ā Intel I5 13600kĀ / AsRock Z790 Steel Legend / MSI Ā 4080s 16G GamingĀ X Slim / Kingston Fury DDR5 5600 64Gb /Ā Adata 960 Max / HP Reverb G2 v2 Rhino FFB / Virpil MT50 Mongoost T50 Throttle,Ā T50cm Grip, VFX Grip, ACE Rudder / WinWing Orion2 Navy, UFC&HUD, PTO2, 2x MFD1, PFP7 / Logitech Flight Panel / VKB SEM V Ā / 2x DIY Bodnar Button Panels
prestonflying Posted March 5 Posted March 5 @NightdareĀ Do you have a light or switch in mind to activate the Winwing Panel Light? I can take a look in the F14 dir and explain how I got there
Nightdare Posted March 5 Posted March 5 @prestonflying I was on recon in the files Trying to find things like jettison, landing gear, hook, flaps and master caution as these are buttons/lights represented in the F-14 as well as on the PTO2 (Too many hardpoints on the F-14 to represent on the station select buttons, nor do I use them for any weapon management) Ā Intel I5 13600kĀ / AsRock Z790 Steel Legend / MSI Ā 4080s 16G GamingĀ X Slim / Kingston Fury DDR5 5600 64Gb /Ā Adata 960 Max / HP Reverb G2 v2 Rhino FFB / Virpil MT50 Mongoost T50 Throttle,Ā T50cm Grip, VFX Grip, ACE Rudder / WinWing Orion2 Navy, UFC&HUD, PTO2, 2x MFD1, PFP7 / Logitech Flight Panel / VKB SEM V Ā / 2x DIY Bodnar Button Panels
prestonflying Posted March 5 Posted March 5 Cockpit/draw_args.lua looks to be the right spot. I see `Landing_Gear_Light=15001`, `WEAP_Master_Caution=9200`, etc.Ā You would input this into the the winwing js file asĀ Ā dcs_id: "0.9200" Ā 1
Invictus84 Posted March 6 Posted March 6 (edited) Interesting discussion - need to try this myself.Ā On a side note - you all might want to consider looking at the aircraft module files for DCS ExportScript and/or DCS-BIOS.Ā They have the most of the DCS ID numbers you need to do this stuff. https://github.com/asherao/DCS-ExportScripts https://github.com/DCS-Skunkworks/dcs-bios I've attached the DCS-ExportScript and DCS-BIOS JF-17 scripts as examples of the data you can pull from their scripts. There are also several tools you can use to pull this data from DCS aircraft modules: https://github.com/asherao/dcs-unclickabledata-extract https://github.com/charlestytler/dcs-clickabledata-extract Ā Ā Ā Ā JF-17.lua JF-17.lua Edited March 6 by Invictus84 Added link to Skunkworks DCS-BIOS GitHub site. 1 1 Ā Ā
pierre0000 Posted March 7 Posted March 7 (edited) If someone could help with the F4E I would appreciate it ! I digged into the lua files but it's huge and I don't find it It's a bit disappointing that winwing doesn't do it for us , for trained programmers I guess it super easy ... Edited March 7 by pierre0000
Nightdare Posted March 8 Posted March 8 On 3/5/2025 at 10:54 PM, prestonflying said: Cockpit/draw_args.lua looks to be the right spot. I see `Landing_Gear_Light=15001`, `WEAP_Master_Caution=9200`, etc.Ā You would input this into the the winwing js file asĀ Ā dcs_id: "0.9200" Ā Ā Seems I have the initial trouble of module ID Ā I tried "F-14A-135-GR" / "F-14" / "F14" / "F-14B" /Ā "F14" /Ā "HEATBLUR_F-14" Same Could be I removed some [] or {} Ā This is what I tried out module.exports = [{ Ā // Receive signals from multiple aircraft Ā aircraft_name: ['F-14B', 'F-14A-135-GR'], Ā isResetLight: true, Ā recv: [ Ā Ā // Bind the device id of the DCS to the lighting of the physical device Ā Ā { Ā Ā Ā // Landing gear lights Ā Ā Ā dcs_id: '0.15001', Ā Ā Ā device_name: ['F18_TAKEOFF_PANEL', 'TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['Landing_gear_lights'] Ā Ā }, Ā Ā { Ā Ā Ā // FLAPS Ā Ā Ā dcs_id: '0.15046', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['FLAPS'] Ā Ā }, Ā Ā { Ā Ā Ā // HALF Ā Ā Ā dcs_id: '0.9205', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['HALF'] Ā Ā }, Ā Ā { Ā Ā Ā // FULL Ā Ā Ā dcs_id: '0.9204', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['FULL'] Ā Ā }, Ā Ā { Ā Ā Ā // LEFT Ā Ā Ā dcs_id: '0.8302', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['LEFT'] Ā Ā }, Ā Ā { Ā Ā Ā // NOSE Ā Ā Ā dcs_id: '0.8301', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['NOSE'] Ā Ā }, Ā Ā { Ā Ā Ā // RIGHT Ā Ā Ā dcs_id: '0.8305', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['RIGHT'] Ā Ā }, Ā Ā { Ā Ā Ā // JETT Ā Ā Ā dcs_id: '0.15031', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['JETT'] Ā Ā }, Ā Ā { Ā Ā Ā // Master_Caution Ā Ā Ā dcs_id: '0.9200', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['Master_Caution'] Ā Ā }, Ā Ā { Ā Ā Ā // HOOK Ā Ā Ā dcs_id: '0.15090', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['HOOK'] Ā Ā } Ā ] }, ]; Ā Intel I5 13600kĀ / AsRock Z790 Steel Legend / MSI Ā 4080s 16G GamingĀ X Slim / Kingston Fury DDR5 5600 64Gb /Ā Adata 960 Max / HP Reverb G2 v2 Rhino FFB / Virpil MT50 Mongoost T50 Throttle,Ā T50cm Grip, VFX Grip, ACE Rudder / WinWing Orion2 Navy, UFC&HUD, PTO2, 2x MFD1, PFP7 / Logitech Flight Panel / VKB SEM V Ā / 2x DIY Bodnar Button Panels
prestonflying Posted March 8 Posted March 8 @NightdareĀ Looking at the default dcs_event_bind_config.js, there appears to be an entry for the F-14B, does the default profile landing gear light work? If so, I would use the existing one and tweak/add to it. Otherwise there might an issue within SimApp ProĀ Ā { // f-14bé»č®¤ę²”ęå®å ØåƹåŗēēÆļ¼ä½ęÆåÆä»„čŖå·±čŖå® // f-14b does not have a completely corresponding light by default, but you can customize it yourself aircraft_name: ["F-14B","F-14A-135-GR"], isResetLight: true, recv: [ //F-14B { // ę§å¶å°ēÆå 亮度 dcs_id:1801//ē®ååŖč½ęé®č°čļ¼9äøŖę”£ä½ // å¦å¤čæę仪蔨ēÆå 亮度 dcs_id:1800 // åÆé©¾é©¶ē仪蔨ēÆå 亮度 dcs_id:1802 // åÆé©¾é©¶ēę§å¶å°ēÆå 亮度 dcs_id:1803 dcs_id: "0.1801", process: (dcs_id, dcsmag) => {// äø“ę¶ä½äøŗååå¤ē // Temporary as reverse processing dcsmag = 1 - dcsmag; return dcsmag; }, device_name: 0, led: ["Backlight","INST_PNL_Backlight"] }, { // čµ·č½ę¶ęē¤ŗēÆ // Landing Gear Indicator // ē®åęę¶å°čµ·č½ę¶ę示ēÆę å°äøŗčµ·č½ę¶ęęēÆ // Currently, the landing gear indicator is temporarily mapped to the landing gear handle light dcs_id: "0.15001", device_name: ["F18_TAKEOFF_PANEL", "TAKEOFF_PLANEL_2"], led: ["Landing_gear_lights"] } ] }, Ā 1
Nightdare Posted March 8 Posted March 8 @prestonflying Ā Got that working Though I think I did find the error in my code,... a comma missing after the "hook" section Ā The only thing now is that I have 2 error codes 0x0012, 0x0013 in environment, but that may be due to WWT, after resetting the Simapp data, since I can't see any data on my UFC anymore Intel I5 13600kĀ / AsRock Z790 Steel Legend / MSI Ā 4080s 16G GamingĀ X Slim / Kingston Fury DDR5 5600 64Gb /Ā Adata 960 Max / HP Reverb G2 v2 Rhino FFB / Virpil MT50 Mongoost T50 Throttle,Ā T50cm Grip, VFX Grip, ACE Rudder / WinWing Orion2 Navy, UFC&HUD, PTO2, 2x MFD1, PFP7 / Logitech Flight Panel / VKB SEM V Ā / 2x DIY Bodnar Button Panels
Nightdare Posted March 9 Posted March 9 Well, this is for the most standard F-14 indicators Ā Made "Center"-station the NWS Engage indicator, all 4 others are added to the backlighting The only thing I'm wondering ATM is if adding Orion2 throttle was necessary, as my MFDs and UFC/HUD work with the console lights when SimApp sync option was selected as well Ā aircraft_name: ['F-14B', 'F-14A-135-GR'], Ā isResetLight: true, Ā recv: [ Ā Ā // F-14B Ā Ā { Ā Ā Ā // PTO2 BACKLIGHTING Ā Ā Ā dcs_id: '0.1801', Ā Ā Ā process: (dcs_id, dcsmag) => { // äø“ę¶ä½äøŗååå¤ē // Temporary as reverse processing Ā Ā Ā Ā dcsmag = 1 - dcsmag; Ā Ā Ā Ā return dcsmag; Ā Ā Ā }, Ā Ā Ā device_name: 0, Ā Ā Ā led: ['Backlight', 'INST_PNL_Backlight', 'LI', 'RI', 'LO', 'RO', 'Orion_Throttle_Base_II'] Ā Ā }, Ā Ā { Ā Ā Ā // čµ·č½ę¶ęē¤ŗēÆ Ā Ā Ā // Landing Gear Indicator Ā Ā Ā // ē®åęę¶å°čµ·č½ę¶ę示ēÆę å°äøŗčµ·č½ę¶ęęēÆ Ā Ā Ā // Currently, the landing gear indicator is temporarily mapped to the landing gear handle light Ā Ā Ā dcs_id: '0.15001', Ā Ā Ā device_name: ['F18_TAKEOFF_PANEL', 'TAKEOFF_PLANEL_2'], Ā Ā Ā led: ['Landing_gear_lights'] Ā Ā }, Ā Ā { Ā Ā Ā // JETT Ā Ā Ā dcs_id: '0.15031', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['JETT'] Ā Ā }, Ā Ā { Ā Ā Ā // Master_Caution Ā Ā Ā dcs_id: '0.9200', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['Master_Caution'] Ā Ā }, Ā Ā { Ā Ā Ā // HOOK Ā Ā Ā dcs_id: '0.15090', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['HOOK'] Ā Ā }, Ā Ā { Ā Ā Ā // FLAPS Ā Ā Ā dcs_id: '0.15046', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['FLAPS'] Ā Ā }, Ā Ā { Ā Ā Ā // LEFT GEAR Ā Ā Ā dcs_id: '0.8302', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['LEFT'] Ā Ā }, Ā Ā { Ā Ā Ā // NOSE GEAR Ā Ā Ā dcs_id: '0.8301', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['NOSE'] Ā Ā }, Ā Ā { Ā Ā Ā // RIGHT GEAR Ā Ā Ā dcs_id: '0.8305', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['RIGHT'] Ā Ā }, Ā Ā { Ā Ā Ā // HALF SPEEDBRAKE Ā Ā Ā dcs_id: '0.8307', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['HALF'] Ā Ā }, Ā Ā { Ā Ā Ā // FULL SPEEDBRAKE Ā Ā Ā dcs_id: '0.8308', Ā Ā Ā device_name: ['TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['FULL'] Ā Ā }, Ā Ā { Ā Ā Ā // NWS ENGAGE Ā Ā Ā dcs_id: '0.9353', Ā Ā Ā device_name: ['F18_COMBAT_READY_PANEL', 'TAKEOFF_PLANEL_2'], // Multiple device names. 0: means all devices Ā Ā Ā led: ['CTR'] Ā Ā }, Ā ] }, Ā Intel I5 13600kĀ / AsRock Z790 Steel Legend / MSI Ā 4080s 16G GamingĀ X Slim / Kingston Fury DDR5 5600 64Gb /Ā Adata 960 Max / HP Reverb G2 v2 Rhino FFB / Virpil MT50 Mongoost T50 Throttle,Ā T50cm Grip, VFX Grip, ACE Rudder / WinWing Orion2 Navy, UFC&HUD, PTO2, 2x MFD1, PFP7 / Logitech Flight Panel / VKB SEM V Ā / 2x DIY Bodnar Button Panels
Nightdare Posted March 15 Posted March 15 Found the RIO lights also translating when in the pilot seat Set my TWS Auto/RWS to A/A, A/G on my Orion2 with that Intel I5 13600kĀ / AsRock Z790 Steel Legend / MSI Ā 4080s 16G GamingĀ X Slim / Kingston Fury DDR5 5600 64Gb /Ā Adata 960 Max / HP Reverb G2 v2 Rhino FFB / Virpil MT50 Mongoost T50 Throttle,Ā T50cm Grip, VFX Grip, ACE Rudder / WinWing Orion2 Navy, UFC&HUD, PTO2, 2x MFD1, PFP7 / Logitech Flight Panel / VKB SEM V Ā / 2x DIY Bodnar Button Panels
Recommended Posts