Jump to content

All your rotary knobs are belong to us - extra axis binds for the Hog


Recommended Posts

So, i was bored (no, not really 🙂) and hopefully got all the rotary switches (all those that turn freely without snapping into positions) made bindable. If i missed some, please let me know. Started after reading the stuff in this thread, so cheers especially to @Seapiglet @scoobie and @LeCuvier for giving a good start!

 

As a foreword: the HSI course and heading knobs and altimeter pressure knob can be put on an axis, but they for some reason work more like a button press (yet they use the "default_axis" function. I did not mess around with the different arguments available within this too much and had no joy so far).

Every time you rotate your physical axis a "tick", a button press is sent rotating the ingame knob a "tick". Rotating altimeter pressure from (your physical knobs) zero clockwise 10 "ticks", all seems to works fine apparently, altimeter changes by 10 "ticks" clockwise.

Problem is, when you dial back from this position to zero, on every "tick" moving back another button press clockwise is sent until your physical knob is at zero again. Vice versa for moving from zero counter-clockwise. This means dialing from physical zero to clockwise ten and then back to zero will add twenty on the altimeter. Same for the two HSI knobs.

 

For this reason i have commented those out (with the -- in front) but left them in for completeness. If you want to test the behavior yourself, remove the two dashes -- in front to "activate" that line.

 

How to:

 

- Move to "DCS World\Mods\aircraft\A-10C_2\Input\A-10C_2\joystick" folder.

- There you will find several .lua files for different joysticks and throttles.

- Of ALL files you modify, always put a copy of that file on your desktop or some other suitable location. When something gets messed up, just need to copy it back. Don't move, copy the files 😉

- Open the appropriate .lua file of your controller that got axis controls (for me it was "Throttle - HOTAS WarthogThrottle.lua" since i have a Thrustmaster Warthog HOTAS) in your basic windows editor (or equivalent, i use notepad++ which is really nice). Do not (!) use Word or similar for different reasons, which might mess the file up.

- Just to the end of the file, you will find a line "axisCommands = {"

- Below that line, paste the extra axis commands code from below.

- Save the file.

- If you got several devices providing axis controls, you've got to repeat that for each device in it's appropriate .lua file.

- Best practice is to make a backup of all these modified files in some other location. DCS likes to reset those files on each update, so have a copy of your modified ones ready to paste in after each update/repair.

- The same procedure should work fine for the old A-10C module too (did not test!). Folder is "DCS World\Mods\aircraft\A-10C\Input\A-10C\joystick"

- As always with modifications, you do this at your own risk. Make backups of everything you modify! If in doubt, ask! No salt please.

 

image.png

 

- Enjoy and have some happy Easter holidays everyone!

 

 

 

The extra code:

 

-- extra axes
{action = 3009, cockpit_device_id  = 4 , name = _('CMSP - Adjust Display Brightness'), category = _('CMSP')},

{action = 3006, cockpit_device_id  = 5 , name = _('CMSC - Adjust Display Brightness'), category = _('CMSC')},
{action = 3007, cockpit_device_id  = 5 , name = _('CMSC - Volume Knob'), 			   category = _('CMSC')},

{action = 3006, cockpit_device_id  = 37 , name = _('Throttle Friction Control'), category = _('Engine System')},

{action = 3003, cockpit_device_id  = 41, name = _('Environmental - Canopy Defog'), 		category = _('Environmental')},
{action = 3009, cockpit_device_id  = 41, name = _('Environmental - Flow Level Control'), category = _('Environmental')},
{action = 3013, cockpit_device_id  = 41, name = _('Environmental - Temp Level Control'), category = _('Environmental')},

--{action = 3001, cockpit_device_id  = 35, name = _('Altimeter - Set Pressure'), category = _('Altimeter')},

{action = 3009, cockpit_device_id  = 49, name = _('Lighting Panel - Formation Lights'), 					category = _('Lighting Panel')},
{action = 3001, cockpit_device_id  = 49, name = _('Lighting Panel - Engine Inst Lights'), 					category = _('Lighting Panel')},
{action = 3002, cockpit_device_id  = 49, name = _('Lighting Panel - Flight Inst Lights'), 					category = _('Lighting Panel')},
{action = 3003, cockpit_device_id  = 49, name = _('Lighting Panel - Aux Inst Lights'), 						category = _('Lighting Panel')},
{action = 3005, cockpit_device_id  = 49, name = _('Lighting Panel - Flood Lights'), 						category = _('Lighting Panel')},
{action = 3006, cockpit_device_id  = 49, name = _('Lighting Panel - Console Lights'), 						category = _('Lighting Panel')},
{action = 3015, cockpit_device_id  = 49, name = _('Lighting Panel - Refuel Status Indexer Lights'), 		category = _('Lighting Panel')},
{action = 3016, cockpit_device_id  = 49, name = _('Lighting Panel - Weapon Station Lights. No function'),	category = _('Lighting Panel')},
{action = 3018, cockpit_device_id  = 49, name = _('Lighting Panel - Refueling Lighting Dial'), 				category = _('Lighting Panel')},

--{action = 3001, cockpit_device_id  = 45, name = _('HSI - Heading Set Knob'), 	category = _('HSI')},
--{action = 3002, cockpit_device_id  = 45, name = _('HSI - Course Set Knob'), 	category = _('HSI')},

{action = 3001, cockpit_device_id  = 47, name = _('ADI - Pitch Trim Knob'), 	category = _('ADI')},

{action = 3003, cockpit_device_id  = 48, name = _('SAI - Standby ADI Knob rotary'), category = _('SAI')},

{action = 3005, cockpit_device_id  = 74, name = _('TACAN - Audio Volume'), 		category = _('TACAN')},

{action = 3001, cockpit_device_id  = 52, name = _('Stall - Volume'), 			category = _('Stall')},
{action = 3002, cockpit_device_id  = 52, name = _('Stall - Peak Volume'), 		category = _('Stall')},

{action = 3011, cockpit_device_id  = 54, name = _('UHF Radio - Volume'), 		category = _('UHF Radio')},

{action = 3005, cockpit_device_id  = 55, name = _('VHF/AM Radio - Volume'), 	category = _('VHF AM Radio')},

{action = 3005, cockpit_device_id  = 56, name = _('VHF/FM Radio - Volume'), 	category = _('VHF FM Radio')},

{action = 3002, cockpit_device_id  = 58, name = _('Intercom - INT Volume'), 	category = _('Intercom')},
{action = 3004, cockpit_device_id  = 58, name = _('Intercom - FM Volume'), 		category = _('Intercom')},
{action = 3006, cockpit_device_id  = 58, name = _('Intercom - VHF Volume'), 	category = _('Intercom')},
{action = 3008, cockpit_device_id  = 58, name = _('Intercom - UHF Volume'), 	category = _('Intercom')},
{action = 3010, cockpit_device_id  = 58, name = _('Intercom - AIM Volume'), 	category = _('Intercom')},
{action = 3012, cockpit_device_id  = 58, name = _('Intercom - IFF Volume'), 	category = _('Intercom')},
{action = 3014, cockpit_device_id  = 58, name = _('Intercom - ILS Volume'), 	category = _('Intercom')},
{action = 3016, cockpit_device_id  = 58, name = _('Intercom - TCN Volume'), 	category = _('Intercom')},
{action = 3018, cockpit_device_id  = 58, name = _('Intercom - Master Volume'), 	category = _('Intercom')},

{action = 3005, cockpit_device_id  = 44, name = _('HARS - Latitude Dial'), 			category = _('HARS')},
{action = 3007, cockpit_device_id  = 44, name = _('HARS - Push-to-sync rotary'),	category = _('HARS')},

{action = 3001, cockpit_device_id  = 29, name = _('RWR Adjust Display Brightness'),	category = _('RWR')},

{action = 3013, cockpit_device_id  = 38, name = _('SAS - Yaw Trim'), category = _('SAS')},

 

How it should look like in your editor:

 

image.png

 

And at the end of that block, your Joystick axes section should follow:

 

image.png

 

@BIGNEWY It would be super nice to have this as a sticky i guess, or, even better, simply put in 2.7 or another future update so everyone can happily enjoy their axis with no editor hassle and no copypasta galore after each update. If you guys got some spare time 😛 correctly working axis for the HSI and altimeter knobs (as talked above) would be a blast! Cheers and you ED guys have some nice holiday too!

 

As always, i for sure overlooked something or messed up. I'll mention changes right below here.

 

 

 

 

  • Like 2
  • Thanks 3

bts_100.jpg.22eae5ddd2a463fc09375990ad043870.jpg

 

Hardware: MSI B450 Gaming Plus MAX | Ryzen 5 3600X (6*3.8 Ghz) | 32 GB RAM | MSI Radeon RX5700 | Samsung SSD 860 QVO 1TB | Win 10 (64-bit) TM Warthog HOTAS, MFD and rudder pedals, TrackIR5

Wishlist:  Northern Germany/Baltic Sea theater | DCS level Su-25A

Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...