Jump to content

DCS2TARGET: DCS to Thrustmaster HOTAS LED Controller (Viper Mission Pack, Viper Panel and Warthog)


Recommended Posts

Posted
16 minutes ago, CM2024 said:

Another suggestion for the F18 warthog script.

When preparing to land and lowering the landing gear, the gear handle turns red until the landing gear is fully down.

Could this be simulated with one of the LEDs on the warthog throttle?

How about using the bottom LED as a landing gear indicator, then the next 3 for the speed break, and the top for the APU?

I’ll see what I can do! Maybe combine the bottom led with the speed brake.

I might at some point design an indicator panel for landing gear lights, APU etc that connects via USB or Bluetooth and make it available as a product.

  • Thanks 1
Posted

@slughead I found one possible problem with the F18 and warthog script for the cold start.

When I start DCS with the script running and start a cold start mission, it works fine. The lights are off until I turn the battery on.

But when I start a second cold start mission, the lights start being on. I can turn the lights on and off with the battery switch, but initially they are on already.

So each time I start DCS and do the first cold start mission, it works fine. But any following cold start missions, it starts with the lights on.

I'm really enjoying the script. Just wanted to mention this inconsistency. Thanks!

Posted
8 minutes ago, CM2024 said:

@slughead I found one possible problem with the F18 and warthog script for the cold start.

When I start DCS with the script running and start a cold start mission, it works fine. The lights are off until I turn the battery on.

But when I start a second cold start mission, the lights start being on. I can turn the lights on and off with the battery switch, but initially they are on already.

So each time I start DCS and do the first cold start mission, it works fine. But any following cold start missions, it starts with the lights on.

I'm really enjoying the script. Just wanted to mention this inconsistency. Thanks!

Thanks for the report. I'm just sitting down to work on the F-18 script now so that was good timing.

Posted
On 3/22/2025 at 1:48 PM, CM2024 said:

Another suggestion for the F18 warthog script.

When preparing to land and lowering the landing gear, the gear handle turns red until the landing gear is fully down.

Could this be simulated with one of the LEDs on the warthog throttle?

How about using the bottom LED as a landing gear indicator, then the next 3 for the speed break, and the top for the APU?

This has now been added. Warthog user LED1 will flash when the gear handle lamp is lit. The speed brake still uses LEDs 1 through 4 with LED1 combined with the gear handle.

5 hours ago, CM2024 said:

@slughead I found one possible problem with the F18 and warthog script for the cold start.

When I start DCS with the script running and start a cold start mission, it works fine. The lights are off until I turn the battery on.

But when I start a second cold start mission, the lights start being on. I can turn the lights on and off with the battery switch, but initially they are on already.

So each time I start DCS and do the first cold start mission, it works fine. But any following cold start missions, it starts with the lights on.

I'm really enjoying the script. Just wanted to mention this inconsistency. Thanks!

This should be fixed.

 

Please use the latest dcs2target.zip (v1.0.11a) and tmhotasledsync.zip (v1.0.8a)

This is a pre-release. Please let me know how you get on so I can formally release it should there be no new problems.

  • Thanks 1
Posted

@slughead Thanks for looking into it. I just tried the 2 pre-release files.

When starting Target, the script seems to work, but as soon as I start a cold start mission, the script stops with the following error:

"Runtime Error: Index out of bounds for: packet in set_fa_18c_hornet_led_status (line 25 in fa-18c_hornet_led_utils.tmh) Aborting script

Script stopped!"

Posted
9 hours ago, CM2024 said:

@slughead Thanks for looking into it. I just tried the 2 pre-release files.

When starting Target, the script seems to work, but as soon as I start a cold start mission, the script stops with the following error:

"Runtime Error: Index out of bounds for: packet in set_fa_18c_hornet_led_status (line 25 in fa-18c_hornet_led_utils.tmh) Aborting script

Script stopped!"

That’s usually the result of the DCS side not sending enough bytes. So it would sound as though you may have missed some files or forgot to update the DCS scripts. Both the hooks and dcs2target folders. Can you check and let me know how you get along.

Posted

@slughead I uninstalled the old script and reinstalled the 2 pre-release items and it works without the error. Maybe some of the files didn't override the first time.

I started the test with the F18 free flight mission. The new landing gear indicator is fantastic! It works both when lowering and retracting the landing gear. It also gives the stall warning indication, which is very cool. Combing the bottom LED with the speed break is a great idea and works well.

To test the cold start, I restarted DCS and then went to the default cold start instant mission. As soon as the mission loaded, all lights on the warthog throttle turned off. I then turned on the battery and nothing happened. Turning on the APU - as soon as the APU light came on, all the other lights turned on. Personally I prefer the old way where the lights come on with the battery and then just the top LED for the APU, but either is fine.

The problem is when shutting down the plane, the warthog throttle lights no longer turn off. I also tested it by doing a cold start, turning on the battery and APU, waiting for the lights to come on, and then turning off the APU and battery, but the lights stay on.

When starting a new cold start mission, without restarting DCS, the lights just stay on. So in short, with the pre-release files the only time all the lights are off is when first starting DCS and starting the first mission.

Posted
1 hour ago, CM2024 said:

@slughead I uninstalled the old script and reinstalled the 2 pre-release items and it works without the error. Maybe some of the files didn't override the first time.

I started the test with the F18 free flight mission. The new landing gear indicator is fantastic! It works both when lowering and retracting the landing gear. It also gives the stall warning indication, which is very cool. Combing the bottom LED with the speed break is a great idea and works well.

To test the cold start, I restarted DCS and then went to the default cold start instant mission. As soon as the mission loaded, all lights on the warthog throttle turned off. I then turned on the battery and nothing happened. Turning on the APU - as soon as the APU light came on, all the other lights turned on. Personally I prefer the old way where the lights come on with the battery and then just the top LED for the APU, but either is fine.

The problem is when shutting down the plane, the warthog throttle lights no longer turn off. I also tested it by doing a cold start, turning on the battery and APU, waiting for the lights to come on, and then turning off the APU and battery, but the lights stay on.

When starting a new cold start mission, without restarting DCS, the lights just stay on. So in short, with the pre-release files the only time all the lights are off is when first starting DCS and starting the first mission.

Right ok. Thanks for the thorough test and explanation. I will have another look at this.

Posted

@CM2024 Could you try the following patches please?

Place this one into your dcs2target folder fa-18c_hornet_lamps.lua

And this one where you TMHotasLEDSync files are led_utils.tmh

Both files replace existing ones.

This should solve the problems you raised and also improved LED test on start and end of mission plus the Warthog backlight will be turned off when the mission ends.

Posted

@slughead Fantastic!

When starting a cold start mission, both after starting DCS and when starting another one, or even restarting, works perfectly.

Also the landing gear raise/lower/stall works with and without the speed break. This is really great.

One last suggestion: When ending a mission, all lights and LEDs briefly light up. I think this is set at the highest light level and really bright for just one second. Is it possible to set that to the lowest light level?

 

Posted
7 hours ago, CM2024 said:

One last suggestion: When ending a mission, all lights and LEDs briefly light up. I think this is set at the highest light level and really bright for just one second. Is it possible to set that to the lowest light level?

Yes. That’s an easy one. Perhaps just turn them off altogether instead of doing the LED test? Just leave the LED test for when the script starts on the Thrustmaster side.

  • Thanks 1
Posted
2 hours ago, LoLevel said:

Hi Slughead, please can you help me?

I installed everything as described and updated the software, but unfortunately the LED does not light up. Do you have any advice?

TMHotasLEDSync v1.0.8a.txt 938 B · 2 downloads

From the log:

Error:InitSocketServer failed with 0x00002740 : Only one usage of each socket address (protocol/network address/port) is normally permitted.

I expect that indicates that either two copies of the script are running or something else on your system is already using port 1000. If you reboot your PC and try again, that should eliminate any duplicate execution of the script you may have managed to do.

If that doesn't solve it, try turning off all other software except the script and see if it works. If it does, you know something else is using port 1000. Then, shut down the script, turn on one of the programs you shut down previously, and start the script again. Repeat until you find the culprit.

If that fails, your firewall might be blocking the Thrustmaster software, and you will need to enable it in your firewall, probably the Windows firewall.

Posted

Formal release

  1. Added F-18C gear handle lamp and mapped to flash Warthog user LED1.
  2. F-18C speed brake remains on Warthog user LEDs 1 through 4, with LED1 shared with gear handle lamp.
  3. Fixed F-18C issue where console lights would remain on for subsequent cold starts when the battery switch is set to OFF when entering the cockpit.
  4. Fixed the behaviour of lights when missions are restarted and aircraft are shutdown.
  5. Corrected LED test when script starts.
  6. LED test on mission end removed.
  7. Warthog console lighting and all indicators extinguished on mission end.
  8. Ethernet port number moved to a random port in user port space.

 

DCS2Target is now at version: 1.0.11

TMHotasLEDSync is now at version: 1.0.8

Other versions of dcs2target/tmhotasledsync are not compatible with this release. You must only use the versions listed above.

For support issues, read the first post thoroughly, then follow the "Need Help" section before requesting support.

 

  • Thanks 1
  • 2 weeks later...
Posted

Hey~

Somehow i have encountered this error while tried to get the TQS led working:

 

TMHotasLEDSync v1.0.8

Physical USB HID devices managed by script!
Currently plugged USB HID devices[7]:
1: "Viper TQS" - "USB\VID_044F&PID_0412&REV_0200"
2: "Joystick - HOTAS Warthog" - "USB\VID_044F&PID_0402&REV_0100"
3: "T-Rudder" - "USB\VID_044F&PID_B679&REV_0110"
4: "F16 MFD 1" - "USB\VID_044F&PID_B351&REV_0100"
5: "F16 MFD 2" - "USB\VID_044F&PID_B352&REV_0100"
6: "F16 MFD 2" - "USB\VID_044F&PID_B352&REV_0100"
7: "F16 MFD 1" - "USB\VID_044F&PID_B351&REV_0100"
USB HID device with hardware id "VID_044F&PID_0404" cannot be found
USB HID device "Viper TQS"(USB\VID_044F&PID_0412\3655327C3530) selected
USB HID device with hardware id "VID_044F&PID_0413" cannot be found
USB HID device with hardware id "VID_044F&PID_0416" cannot be found
USB HID device with hardware id "VID_044F&PID_0417" cannot be found
Virtual HID devices managed by script!
Connecting virtual joystick...Script stopped!
Done
Device name set to Thrustmaster Combined

Runtime Error: STOP request received while running main on line 65 in "C:\Users\Jarrod\Saved Games\DCS\ViperTQSLight\TMHotasLEDSync\TMHotasLEDSync.tmc"
Error:Script run timed out!
 

===========

I can confirm TARGET software and TQS firmware are all newest. Is there anything I could do to slove this? 

 

Many thanks! 🙂

 

Posted
49 minutes ago, JarrodR5 said:

Hey~

Somehow i have encountered this error while tried to get the TQS led working:

 

TMHotasLEDSync v1.0.8

Physical USB HID devices managed by script!
Currently plugged USB HID devices[7]:
1: "Viper TQS" - "USB\VID_044F&PID_0412&REV_0200"
2: "Joystick - HOTAS Warthog" - "USB\VID_044F&PID_0402&REV_0100"
3: "T-Rudder" - "USB\VID_044F&PID_B679&REV_0110"
4: "F16 MFD 1" - "USB\VID_044F&PID_B351&REV_0100"
5: "F16 MFD 2" - "USB\VID_044F&PID_B352&REV_0100"
6: "F16 MFD 2" - "USB\VID_044F&PID_B352&REV_0100"
7: "F16 MFD 1" - "USB\VID_044F&PID_B351&REV_0100"
USB HID device with hardware id "VID_044F&PID_0404" cannot be found
USB HID device "Viper TQS"(USB\VID_044F&PID_0412\3655327C3530) selected
USB HID device with hardware id "VID_044F&PID_0413" cannot be found
USB HID device with hardware id "VID_044F&PID_0416" cannot be found
USB HID device with hardware id "VID_044F&PID_0417" cannot be found
Virtual HID devices managed by script!
Connecting virtual joystick...Script stopped!
Done
Device name set to Thrustmaster Combined

Runtime Error: STOP request received while running main on line 65 in "C:\Users\Jarrod\Saved Games\DCS\ViperTQSLight\TMHotasLEDSync\TMHotasLEDSync.tmc"
Error:Script run timed out!
 

===========

I can confirm TARGET software and TQS firmware are all newest. Is there anything I could do to slove this? 

 

Many thanks! 🙂

 

Are you using a USB HUB?

Posted (edited)
3小时前,slughead说:

Are you using a USB HUB?

Hi slughead!

Thanks for the prompt reply! Yes i am using an USB hub because of too many usb devices, wanted to tried to make it tideier.

Shall i not using it? or are there any methods i can do to make it work without switching to direct plug?

Many thanks!

Edited by JarrodR5
Posted

@slughead I'm starting to learn the A-10C2. Would it be possible to update the script for the warthog throttle?

It would be great to have similar functionality like the F18. Especially to have the lights turn on and off with the battery switch. The gear handle lamp would also be a great addition.

I don't think there is a separate APU light like in the F18, but the "Canopy unlocked" indicator could be a good option for the top LED.

Really enjoying the script. Thank you!

Posted
8 minutes ago, CM2024 said:

@slughead I'm starting to learn the A-10C2. Would it be possible to update the script for the warthog throttle?

It would be great to have similar functionality like the F18. Especially to have the lights turn on and off with the battery switch. The gear handle lamp would also be a great addition.

I don't think there is a separate APU light like in the F18, but the "Canopy unlocked" indicator could be a good option for the top LED.

Really enjoying the script. Thank you!

Sure. I’ll see what I can do. 👍

  • Thanks 1
Posted
On 4/10/2025 at 7:30 PM, slughead said:

Always connect directly to the pc when fault finding. Not all usb hubs are equal and many cheap ones are poorly constructed and are electrically noisy. Connect direct to the pc then see. If it works, get a better hub or usb pci card.

Could you suggest a good quality hub please?
 

  • Recently Browsing   0 members

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