Gurney's TARGET Script for Thrustmaster Warthog HOTAS

Rev 03 now available. See change log below. Basically it takes advantage of the secondary trigger pull (thanks Kirk!), and I moved a few other things around for convenience. I'm also redoing the entire "up/ui" layer as I just don't need to use it as is. So not sure where I'll go with that, but I've got a few ideas. That'll be Rev 04.

IRL I'm a software engineer and work on "space" ships. I've been looking forward to the ED launch, and recently picked up the TM Warthog.



I've implemented a TARGET Script that tries to stay true to the in-game defaults (pitch is where you'd expect it to be...), but builds it out to approach a full mapping of capability. I focused on:
(1) Take advantage of short/long button press (not uncommon with military aircraft, short vs. long button presses will result in different actions).
(2) Build in default options for those people with and without Track IR and Pedals
(3) Take advantage of Thrustmaster control "layers" to support a "Flight Mode" and a "UI Navigation Mode." Ensure the Throttle Pinky Switch is in the middle position when you start off (this is "normal flight mode"). Track IR users, you can leave Track IR on, and use this layer to navigate the panels.

Pinky Switch Forward puts the controls in the Thrustmaster "Up" Layer which is the UI Navigation Mode. This layer is really for people who either don't have Track IR, or do have Track IR and don't like looking out the corner of their eyes at the left/right panel displays (good Track IR profile use mitigates this a bit). UI Navigation mode basically lets you use the stick to completely navigate the target, systems, comms, sensors panels (I will add Galaxy Map to this mode, that's really the last piece to do). If you have Track IR and you want to use the UI Navigation Mode layer, make sure you pause Track IR (F9 which is mapped to a throttle toggle switch).

(4) Add capability so that all keyboard keys are mapped to HOTAS. I went through forger's most excellent pilot's guide
https://forums.frontier.co.uk/showthread.php?t=34437&highlight=manual
and mapped just about all the keys.
(5) Future: Occulus mode option (sadly the Occulus DK2 crashes our local machine and I can't test with it right now)


Installation
First, copy the Gurney.binds file into your binds folder. This will prevent over writes on your existing settings, and give you a "Gurney" menu option in-game when you go to Options -> Controls. Your binds folder is probably located somewhere like:
C:\Users\<your windows user name>\AppData\Local\Frontier Developments\Elite Dangerous\Options\Bindings
If you can't find the folder, search for "Custom.binds" and that should help you locate it. Also, the AppData folder is sometimes hidden, just type in the path explicitly or "show hidden folders" under your folder options.

Second, if you haven't used Thrustmaster's TARGET script, this is what you'll need to do:
1. Download Thrustmaster TARGET Software from: http://ts.thrustmaster.com/eng/index.php?pg=view_files&gid=1&fid=3&pid=311&cid=5
2. Install it
3. Copy the attached files (GurneyEliteDangerous.tmc, EDKeyMap.tmh, editMe.tmh) into a singer folder.
4. Run TARGET Script Editor (it sounds scary, it's not). Select Menu, then open GurneyEliteDangerous.tmc.
5. At this point you could press Run and then start the game (once in game, make sure you go to Options->Controls and select the "Gurney" preset). If you want to play with some options first, press Compile, select editMe.tmh and follow the instructions.

If you don't have Track IR, you can set it off in editMe.tmh. That will map the look up/down/left/right as shown in the control mapping images attached.

If you don't have Pedals, you'll need to manually map the Throttle Slew Control in-game to Yaw (another thing to automate on my todo list).

Control Mappings: http://i.imgur.com/xyO9pgO.png
xyO9pgO.png


// Change Log
// 0.2
// Removed countermeasures from H4 and added Panel navigation controls instead for M layer (more convenient even if you do have Track IR).
// Next/Previous panel is long press right/left with H4
// Added panel selection to hat 3 on M layer (previously unused hat due to TrackIR look, but sometimes its annoying to look
// out of the corner of your eyes... regardless of TrackIR profile setup
// Disable flight assist added to S4 on M layer

// 0.3
// Added Pulse to Next/Previous Target and SubSystem selection (fixed a bug where it wouldn't always work)
// Moved TrackIR reset to the Throttle Motor Ingition switch (EORIGN)
// Added countermeasures to the Mic hat on the throttle (MSR and MSL)
// Moved heat sink from boat switch to Mic Switch (down) with other countermeasures
// Secondary fire also on jstick paddle switch and secondary trigger pull. This helps in situations where you want
// things like FSD Interdiction and Scanners on the secondary

Note I've added a script for Cougar for those who have asked for it (I can't test it though, as I don't have this stick). It should get you started though.

 
Last edited:
Thanks a lot, will definitely try, I'm back after two month off from the elite and looking forward to play with the TARGET myself over xmas
 
I will try this. Did You Set the ingame controlbindings to "Warthog"?

If you deployed the "Gurney.bindings" file to your bindings folder, the in-game option to select will be "Gurney."

- - - - - Additional Content Posted / Auto Merge - - - - -

Hey any chance you can adapt this for the "Cougar" ??

The TARGET script software is compatible with the Cougar. It shouldn't take me too much effort to do that. I'll look into it tonight.

Update: Okay, I've completed support for the Cougar, but I can't test it since I don't have a Cougar. Dablin, I'll send it to you directly and you can test it out. If it's good, I'll put it up on here for broader consumption. If anyone else would like the TARGET script for Cougar to test out, let me know.
 
Last edited:
Hi Gurney,

Thanks for sharing! Quick question : are you typing the labels on the images (of the ED functions) manually, or is there some sort of utility which can convert the bind file into a sort of picture template? I suspect it's just a manual affair, but thought I'd ask.
 
Very excellent :)

It's not 100% working showing the correct binds, but it's a very good starting point. Seems that it gets a bit confused on multi-mode hats, and some of the throttle toggles. But much faster than going into photoshop. Thanks :)
 
Hi, my Thrustmaster package has just arrived - I am a very happy man!! :) I would just like to thank Gurney for the script files, good work fella - you have saved me a lot of time...
 
Definitely going to use this as a starting point when my Warthog arrives Monday.

You made a quick note about adding yaw if you don't have pedals. I take it you are referring to the resistance slider, or something else?

Thanks for all your work on this!

Nevermind I found it on your chart. Can't wait to play with this...
 
Last edited:
Having an issue...

I do believe I did everything correct. Found the directory to drop the binds file into, but it doesn't show up on the dropdown. Of course once I run the script, the default Warthog no longer is listed. I did check my game controllers and see that the stick/thruster have a ! and a new controllers show up "HID Compliant Controller" and a "HID Compliant Mouse".
.
Looking in my Bindings folder, there is a log file. It states the following.
.
There where errors when loading preset file: Custom.binds
Failed to find semantic: UI_Back
.
There where errors when loading preset file: Gurney.binds
Failed to find semantic: UI_Back
.

I am not sure if that means anything or not. I am running windows 8.1 so that may be part of it, I remember seeing people having issues setting up their Warty using TARGET, but I haven't found the thread yet. :)
.


Any thoughts?
 
Last edited:
Hi thanks for this +rep for you.
Just got my warthog and will definitely use it!
Just two questions, one can simply bind all keys and axis using the in game control settings.

What exactly does TARGET do?

Does it need to be running or just once to set it up?
 
Last edited:
I haven't even got the Warthog and I'm + repping Gurney :D. Only got the T-flight myself and it's really quite good.

Love the vast majority of this community and the people who can helping others. Nice one Commander Gurney!
 
Just two questions, one can simply bind all keys and axis using the in game control settings.

Yes you can.

What exactly does TARGET do?

In short, it gives you a lot more control over how the hardware behaves, for example you can set up curves for the axes, send complex macros by a simple press of one button, and on and on... Since E: D is a rather simple game compared to some of my flight-sims, I have not felt the need to use Target, setting it all up in game to my preferences was no trouble at all.

Does it need to be running or just once to set it up?

Target and the script must be running for it to work.
 
Last edited:
Hey Gurney - thanks for your efforts - I'll have a look at this when I'm back from visiting relatives over christmas. I'm sure I'll find something useful to improve my own Target setup. One thing I found very useful that your script doesn't seem to do, judging from your bimding schematics is making the two stage trigger work using target.

I simply bound primary fire to 1, secondary to 2 to both in target and in the game, then assigned both keypresses as hold commands to the primary triggers second stage. Result: press it slightly -> primary fire; pull it all the way through -> unleash hell ;)

Works like a charm when you're sitting right under a rather stationary python and want to just give her everything you've got.

Just for your consideration.
 
Kirk, thanks man, that's a great tip. I had tried to initially do that when I first started with the scripting but couldn't get the secondary to work and put it aside to complete everything else. I will definitely add that in to the current rev. I'm looking forward to sinking some more time into the scripting this weekend. I feel like I've only brushed the surface of what it can do.


Hey Gurney - thanks for your efforts - I'll have a look at this when I'm back from visiting relatives over christmas. I'm sure I'll find something useful to improve my own Target setup. One thing I found very useful that your script doesn't seem to do, judging from your bimding schematics is making the two stage trigger work using target.

I simply bound primary fire to 1, secondary to 2 to both in target and in the game, then assigned both keypresses as hold commands to the primary triggers second stage. Result: press it slightly -> primary fire; pull it all the way through -> unleash hell ;)

Works like a charm when you're sitting right under a rather stationary python and want to just give her everything you've got.

Just for your consideration.
 
Kirk, thanks man, that's a great tip. I had tried to initially do that when I first started with the scripting but couldn't get the secondary to work and put it aside to complete everything else. I will definitely add that in to the current rev. I'm looking forward to sinking some more time into the scripting this weekend. I feel like I've only brushed the surface of what it can do.


Yeah - I'll be toying around with Target this weekend too. Some things I regularly tried/do:

- Control winamp (Play/pause, vol +/-, next/previous song using the APU and engine operation switches - use that a lot)
- Launch a heatsink at enabling silent running for instant cooldown (sounded like a good idea, but returned to doing it manually - the heatsink itself may raise attention).
- I'm thinking about adding full pips to weapons at pulling the second stage and returning them to balanced at release (wouldn't be a problem, but I'm not sure if I like the reset to balanced at each release - returning them to the previous setting would be better, but I haven't come up with an idea on how to achieve that - maybe you come up with something - I'm a functional illiterate when it comes to scripting.)
 
Getting the same problem with UI_Back error. Any fixes yet?

Having an issue...

I do believe I did everything correct. Found the directory to drop the binds file into, but it doesn't show up on the dropdown. Of course once I run the script, the default Warthog no longer is listed. I did check my game controllers and see that the stick/thruster have a ! and a new controllers show up "HID Compliant Controller" and a "HID Compliant Mouse".
.
Looking in my Bindings folder, there is a log file. It states the following.
.
There where errors when loading preset file: Custom.binds
Failed to find semantic: UI_Back
.
There where errors when loading preset file: Gurney.binds
Failed to find semantic: UI_Back
.

I am not sure if that means anything or not. I am running windows 8.1 so that may be part of it, I remember seeing people having issues setting up their Warty using TARGET, but I haven't found the thread yet. :)
.


Any thoughts?
 
Back
Top Bottom