Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Posted

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

Posted (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

image.png

image.png

image.png

Edited by prestonflying
  • Like 2
Posted (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 by ANDR0ID
  • Thanks 1
  • 11 months later...
Posted (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

image.png

image.png

image.png

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 by pierre0000
Posted

@pierre0000

The steps would look something like this

  1. Open the file, use NotePad++, VSCode, or other code editor:
    C:\Program Files (x86)\SimAppPro\resources\app.asar.unpacked\dcs_event_bind_config.js
  2. 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"]
              }
          ]
      }
    ];

    Ā 

  • Like 1
Posted
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

DCS Juli 2025.jpg

Posted

@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

DCS Juli 2025.jpg

Posted

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"

Ā 

  • Thanks 1
Posted (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 by Invictus84
Added link to Skunkworks DCS-BIOS GitHub site.
  • Like 1
  • Thanks 1

Ā 


Ā 
Posted (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 by pierre0000
Posted
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

image.png

Ā 

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

DCS Juli 2025.jpg

Posted

@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"]
			}
		]
	},

Ā 

  • Thanks 1
Posted

@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

DCS Juli 2025.jpg

Posted

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

DCS Juli 2025.jpg

Posted

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

DCS Juli 2025.jpg

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...