Jump to content

Hack for TM Warthog with 120 programmable DX buttons


sedenion
 Share

Recommended Posts

If you post your script that might help as well...

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Virpil T50CM3 Throttle, T-50CM2 Base & Constellation Alpha + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to comment
Share on other sites

ARRGH! Okay, I have GOT to be missing a step. All the buttons are working correctly in device analyzer, but when I go into DCS and try to map, say the RDR ALTM switch, it still only works in the up position, tripping JOY_BTN25, instead of the newly scripted DX67.

 

What step am I missing here? Is there more configuring that I have to do in TARGET to assign all the new DX buttons to the hardware? How do I use the controls page in DCS to map my newly scripted DX buttons? DCS is still just seeing the default 32 DX button mapping on the throttle and stick.

 

I appreciate any help...it's got to be something I'm just missing.

 

 

Are you running the script before you start DCS? If you do, there is only one device for the stick and throttle called "thrustmaster combined". You need to assign the controls to this device in DCS.

Windows 10 64bit, Intel i9-9900@5Ghz, 32 Gig RAM, Palit RTX 2080 TI, 1 TB SSD, 43" 2160p@1440p monitor.

Link to comment
Share on other sites

also you have to keep it running... closing target will "close" the script

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Virpil T50CM3 Throttle, T-50CM2 Base & Constellation Alpha + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to comment
Share on other sites

Also, can someone help me understand how to make the DMS switch just four more DX buttons, rather than the POV, as I use TrackIR? Really appreciate the assist, thank you.

 

DMS is mapped as H3 ala:

 

// DMS //
	MapKey(&Joystick,H3U,DX15);	
	MapKey(&Joystick,H3D,DX16);
	MapKey(&Joystick,H3L,TEMPO(DX17,DX78,500));
	MapKey(&Joystick,H3R,DX18);

note I map a long press on H3L as the Castle Switch depress on the Hornet

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Virpil T50CM3 Throttle, T-50CM2 Base & Constellation Alpha + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to comment
Share on other sites

Tintifaxl, you nailed it...I was trying to map commands in DCS to the physical throttle, not the newly created virtual one. It took opening the TARGET manual to trip my memory about having seen that gotcha before. Working beautifully now!!

 

I would like to figure out how to remove the Shift function that the author wrote in for the EAC switch. The script I’m using at the moment is the first posted hack, but I’d like to use the updated one from post #50, as it is cleaner and has the LED functionality scripting as well. But, I want to make the stick H3 back to just DX inputs (instead of POV as he has it now) and turn the EAC switch back into just a two-way DX toggle) I imagine I need to delete the include for the .pov file, but I’m very new to this, so I’ll ask for help. I’ll post the code line here, maybe you guys can help me figure it out...really appreciate the responses.

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

DMS is mapped as H3 ala:

 

// DMS //
	MapKey(&Joystick,H3U,DX15);	
	MapKey(&Joystick,H3D,DX16);
	MapKey(&Joystick,H3L,TEMPO(DX17,DX78,500));
	MapKey(&Joystick,H3R,DX18);

note I map a long press on H3L as the Castle Switch depress on the Hornet

 

 

So, when you map a long press (which would be very useful for many applications) you list both the short press DX and the long press DX, followed by what, the time interval? Is that what the 500 is?

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

DMS is mapped as H3 ala:

 

// DMS //
	MapKey(&Joystick,H3U,DX15);	
	MapKey(&Joystick,H3D,DX16);
	MapKey(&Joystick,H3L,TEMPO(DX17,DX78,500));
	MapKey(&Joystick,H3R,DX18);

note I map a long press on H3L as the Castle Switch depress on the Hornet

 

Also, I assume when I replace the POV code line for DMS with these DX buttons, I need to use the next DX buttons available, right? I think the ones you list are already used in the script, so just find the last assigned DX button and pick up the numbering from there?

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

yeah use which ever ones you have, that was from how mine are set

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Virpil T50CM3 Throttle, T-50CM2 Base & Constellation Alpha + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to comment
Share on other sites

So, when you map a long press (which would be very useful for many applications) you list both the short press DX and the long press DX, followed by what, the time interval? Is that what the 500 is?

 

yes correct time interval is in ms, so that s a half second

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Virpil T50CM3 Throttle, T-50CM2 Base & Constellation Alpha + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to comment
Share on other sites

Whelp, after looking at it some more, it seems that Sedenion made it idiot proof, even for me! Discovered how to enable/disable the shift mode, and I think that I can use the POV on the DMS as is, just map the functions to POV positions.

 

The final question (because I'm not at the sim right now) is whether or not I still need the hack file targetdx128 to make this new version work.

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

Spool, ready to download and try it out, once you've made your final adjustments. Just got my throttle about a week and a half ago.

Rig: Alienware Aurora R9 - 9th Gen Core i7 9700K 4.6GHz 8 Cores | NVIDIA GeForce RTX 2070 SUPER 8GB GDDR6 | 2TB M.2 PCIe NVMe SSD | 32GB Dual Channel HyperX FURY DDR4 XMP at 2933MHz | Dell 32" Curved s3220DGF | TM Warthog HOTAS w/F-18 grip | Logitech G Pro RP | TM Cougar MFDs | TrackIR 5 Pro | VR Oculus Quest 2 |

 

Modules: FC3 | F/A-18C | F-16C | A-10C II | F-14 | M-2000C | AV-8B | F-5E | JF-17 | P-51D | KA-50 | UH-1H | Supercarrier | Combined Arms | Nevada | Persian Gulf | Syria | Normandy | Chanel |

Link to comment
Share on other sites

Wolf, that's about my timeline as well! I just need to try it out tonight and make sure it's working the way I want, but I'm almost there, and it's actually really easy to install and use. I had one hiccup with the controller parameters in the registry that I had to alter, but after I fixed that, it's been loading up no problem. I'll post back here once I confirm it's good to go. It's really a game changer in my opinion, makes the throttle base SO much more useful.

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

Wolf, just tested out the script with the shift state disabled. Worked 4.0. What an awesome addition to the Warthog. Use the second file in post #50 of this thread, the one that's named TM Warthog Universal.

 

Open up that zipped file and place the main.tmc file in your Thrustmaster Scripts folder

Place the entire folder that is name "include" in your scripts folder as well. Do not take the three files out of that folder...leave them in there and place the whole folder in your Scripts folder.

 

Go into Script Editor and open up the main.tmc file.

 

Just below all the intro headers, you'll see this line:

 

define SHIFT_ENABLED 1 // Enable (1) or Disable (0) Shift Submode

 

Change the number 1 to a 0. This will disable the shift submode.

 

And that's it! Check out Sedenion's excellent images to see where each new DX button is located on the throttle and stick. The Hat 3 on the stick (Viper DMS switch) is setup as a POV in this script, but you can map functions to it as it is, so no need to disable that part of the script.

 

Let me know if you run into problems...I spent about five hours figuring this out as I have no experience with TARGET, but it's super easy now.

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

Speed or Sedenion...now I just need to figure out how to alter this script to support the Hornet grip. If I just switch the grips, will the script still work, or do I need to re-write the stick portion to make the new grip work?

 

Also, Sedenion...I will be replacing my throttle slew eventually...any changes need to be made when that happens? I though I saw mention about there being an issue after that mod...

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

i replaced my slew it didnt make much difference from a target pov... I dont have the Hornet stick, so i can't comment ... but likely you will need to remap certain buttons for example i think it has a castle depress , which takes the place of something else on the F-16 stick

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Virpil T50CM3 Throttle, T-50CM2 Base & Constellation Alpha + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to comment
Share on other sites

Spool, what if I only want the throttle script, but not the stick?

Rig: Alienware Aurora R9 - 9th Gen Core i7 9700K 4.6GHz 8 Cores | NVIDIA GeForce RTX 2070 SUPER 8GB GDDR6 | 2TB M.2 PCIe NVMe SSD | 32GB Dual Channel HyperX FURY DDR4 XMP at 2933MHz | Dell 32" Curved s3220DGF | TM Warthog HOTAS w/F-18 grip | Logitech G Pro RP | TM Cougar MFDs | TrackIR 5 Pro | VR Oculus Quest 2 |

 

Modules: FC3 | F/A-18C | F-16C | A-10C II | F-14 | M-2000C | AV-8B | F-5E | JF-17 | P-51D | KA-50 | UH-1H | Supercarrier | Combined Arms | Nevada | Persian Gulf | Syria | Normandy | Chanel |

Link to comment
Share on other sites

Wolf, in that case, you'll want to use a different script...one that I started with, actually, and may go back to if I can't figure out how to write a new portion for the Hornet grip. There was an error in one of the files though...let me post the correct ones here...standby.

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

Okay Wolf here you go...

 

Credit for this one goes to both Sedenion and ReflexArc as they each created one of these useful scripts...

 

Save both the attachments to your desktop and rename them by deleting the .txt at the end of each file.

 

Place BOTH files in your Thrustmaster /TARGET/scripts folder

 

Open TARGET Script Editor and Open WarthogThrottleALLSwitchPos.tmc

 

Run the script...

 

Assuming no errors on loading, you will now see a Thrustmaster virtual device in your control settings in DCS, in addition to the physical throttle. To avoid any cross control inputs, ensure you clear out the physical throttle bindings so that column is blank, and map all your commands for the throttle to the Thrustmaster Virtual controller column.

 

Let me know if you run into any problems! I'll probably go back to using this one, since I'm not sure I can figure out how to incorporate the Hornet grip in to the one I'm using now...though I really like it, as it has some additional features in it. We'll see...I should probably just learn how to add the Hornet grip to the existing script!

targetdx128.tmh.txt

WarthogThrottleALLSwitchPos.tmc.txt

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

Spool, assigning switches for engine crank didn't work. APU switching is buggy. Unable to use right/left throttles to idle/off doesn't work. Did I miss something?

Rig: Alienware Aurora R9 - 9th Gen Core i7 9700K 4.6GHz 8 Cores | NVIDIA GeForce RTX 2070 SUPER 8GB GDDR6 | 2TB M.2 PCIe NVMe SSD | 32GB Dual Channel HyperX FURY DDR4 XMP at 2933MHz | Dell 32" Curved s3220DGF | TM Warthog HOTAS w/F-18 grip | Logitech G Pro RP | TM Cougar MFDs | TrackIR 5 Pro | VR Oculus Quest 2 |

 

Modules: FC3 | F/A-18C | F-16C | A-10C II | F-14 | M-2000C | AV-8B | F-5E | JF-17 | P-51D | KA-50 | UH-1H | Supercarrier | Combined Arms | Nevada | Persian Gulf | Syria | Normandy | Chanel |

Link to comment
Share on other sites

Hey Wolf,

 

So, I was messing with it last night and saw some of the same stuff. The engine start switches were being actuated, but the throttles are an issue, because with the DX script, it only assigns a DX switch to the position behind the detent, when you drop them in for engines off. When you take them out, there is no DX command, so you can't map them in the IDLE position. I actually WAS able to engine light off using the engine start button and moving the throttle all the way up and back...but that's not what I want. Also, a gotcha with the engine start switches...because they are spring loaded back to the middle position, when you are mapping them in the Controls page, you have to click the green "okay" button while you are holding the switch in the up position. If you let it spring back to the middle and then press okay, it maps the middle position, which is obviously not what you want. The applies to the speed brake and china hat switches as well...any spring loaded switch.

 

Because the throttle detents aren't working the way I want, I started playing with the GUI, building an F-5 script from scratch, and doing that, it was super easy to get the throttles to actuate in the pit in both the OFF position, and the IDLE position, just like they should, because the GUI has an input for both the IDLEON and IDLEOFF positions of the throttle levers.

 

BUT, that way uses key presses instead of DX mapping, and I don't want to do that. So...I'm going to experiment with a different DX profile (Gizzy - also found on this site) and see if that one works any better. I'll report back.


Edited by Spool

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

Hey Wolf,

 

So, I was messing with it last night and saw some of the same stuff. The engine start switches were being actuated, but the throttles are an issue, because with the DX script, it only assigns a DX switch to the position behind the detent, when you drop them in for engines off. When you take them out, there is no DX command, so you can't map them in the IDLE position. I actually WAS able to engine light off using the engine start button and moving the throttle all the way up and back...but that's not what I want. Also, a gotcha with the engine start switches...because they are spring loaded back to the middle position, when you are mapping them in the Controls page, you have to click the green "okay" button while you are holding the switch in the up position. If you let it spring back to the middle and then press okay, it maps the middle position, which is obviously not what you want. The applies to the speed brake and china hat switches as well...any spring loaded switch.

 

Because the throttle detents aren't working the way I want, I started playing with the GUI, building an F-5 script from scratch, and doing that, it was super easy to get the throttles to actuate in the pit in both the OFF position, and the IDLE position, just like they should, because the GUI has an input for both the IDLEON and IDLEOFF positions of the throttle levers.

 

BUT, that way uses key presses instead of DX mapping, and I don't want to do that. So...I'm going to experiment with a different DX profile (Gizzy - also found on this site) and see if that one works any better. I'll report back.

 

Spool, you're a stud! I await your research!

Rig: Alienware Aurora R9 - 9th Gen Core i7 9700K 4.6GHz 8 Cores | NVIDIA GeForce RTX 2070 SUPER 8GB GDDR6 | 2TB M.2 PCIe NVMe SSD | 32GB Dual Channel HyperX FURY DDR4 XMP at 2933MHz | Dell 32" Curved s3220DGF | TM Warthog HOTAS w/F-18 grip | Logitech G Pro RP | TM Cougar MFDs | TrackIR 5 Pro | VR Oculus Quest 2 |

 

Modules: FC3 | F/A-18C | F-16C | A-10C II | F-14 | M-2000C | AV-8B | F-5E | JF-17 | P-51D | KA-50 | UH-1H | Supercarrier | Combined Arms | Nevada | Persian Gulf | Syria | Normandy | Chanel |

Link to comment
Share on other sites

Alright Wolf, I GOT IT!

 

Gizzy's profile is the shit. It does everything you want it to do on the throttle. IDLEON IDLEOFF works, the engine start buttons stay pressed as long as you want...everything f-ing works. It's amazing.

 

Check out the files in the zip. I don't use the .bat, I just dropped his .tmc file into my scripts folder and ran it.

 

Once in-game, you have to map things a little weird to get the three position and throttle idle positions to work. Gizzy uses R-Shift as his modifier in the script. So, for instance, when you map the Speed Brake switch in the F-5 like I'm doing, when you press forward, you'll see JOY_07 pop up. Click okay. Then, to map the middle position, (OFF in the F-5), you click that one to map, and slide the switch to the middle position. You'll see the modifier R-Shift populate, but no JOY button. To get the middle position mapped, you have to slide the switch forward again. Then you will see the R-Shift modifier, with the JOY_07 button populate. Click okay. Then cycle it. Voila.

 

The throttle idles work the same way. When you slide the throttle over the hump and into the OFF position, you'll see JOY_29 populate (on the left throttle, it's 30 on the right side). Click out of that map, then go into the map for Throttle IDLE, click that one open, and slide the throttle over the hump and into the IDLE position. You'll see the R-Shift populate in the modifier field. Slide the throttle back into the OFF position, and you'll see JOY_29 pop in. Click okay. Now, you have working OFF and IDLE positions. It's f-ing awesome.

 

I also learned about how when you save your controls .diff.lua file, it's actually specific to the device colum you have highlighted. So, if you are making backups, you'll want to make one for your Virtual Throttle (remember, leave the actual physical throttle column completely unmapped), and save another file for your stick mapping.

 

I ran into problems last night when I loaded a stick map onto the virtual map and everything got all screwy. I thought DCS was making up its own mappings, but I was actually loading .diff.lua files where they didn't belong.

 

This thing works perfect for me...let me know if you run into any problems...the two .pdfs he includes are helpful. I followed the Help file step by step, even though I'm not flying the Hawg right now.

 

Enjoy and cheers to Gizzy!

[sIGPIC][/sIGPIC]

Website:https://cvw-8.enjin.com/

Discord:https://discord.gg/b8AgE5m

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...