Jump to content

Recommended Posts

Posted

is it possible to map the manual wingsweep lever to an axis? what is it called in controls?

7700k @5ghz, 32gb 3200mhz ram, 2080ti, nvme drives, valve index vr

Posted (edited)

Yes, it’s possible, but you have to add a line to your joystick lua file. I have mine attached to a slide potentiometer and it works just fine. However when you are in auto wingsweep you get a crazy animation in game because the lever in game is trying to move but it senses your pot not moving. I plan to fix this by using a motorized sliding pot. I’ll post the code when I get home to add to your joystick axis lua. 

Edited by hitmanalpha1
  • Like 1
  • Thanks 1
Posted (edited)

Here are the lines I've added so far to my joystick lua. You can see the wingsweep axis at the top. This file is under C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\F14\Input\F-14B-Pilot\joystick\default.lua

Open the file with Notepad++ and  Add them to the bottom under the --joystick axes

 

{action = device_commands.WINGSWEEP_EmergencySweepLever, cockpit_device_id=devices.WINGSWEEP, name=_('Emergency Wing Sweep')},
{action = device_commands.RADIO_ICS_Vol_Sidewinder, cockpit_device_id=devices.ICS, name = _("ICS Sidewinder Volume")},
{action = device_commands.RADIO_ICS_Vol_ALR67_Pilot, cockpit_device_id=devices.ICS, name = _("ICS ALR-67 Volume")},
{action = device_commands.RADIO_VHF_VOL_PILOT, cockpit_device_id = devices.ARC182, name = _("ARC-182 Volume")},
{action = device_commands.RADIO_ICS_Vol_Pilot, cockpit_device_id = devices.ICS, name = _("ICS Volume")},
{action = device_commands.LIGHTS_Console, cockpit_device_id = devices.COCKPITMECHANICS, name = _("Console Light Intensity")},
{action = device_commands.LIGHTS_ACMPanel, cockpit_device_id = devices.COCKPITMECHANICS, name = _("ACM Panel Light Intensity")},
{action = device_commands.LIGHTS_Formation, cockpit_device_id = devices.COCKPITMECHANICS, name = _("Formation Light Intensity")},
{action = device_commands.LIGHTS_Instruments, cockpit_device_id = devices.COCKPITMECHANICS, name = _("Instrument Light Intensity")},
{action = device_commands.AoA_IndexerStrength, cockpit_device_id = devices.AOASYSTEM, name = _("AoA Indexer Light Intensity")},
{action = device_commands.Temperature, cockpit_device_id = devices.COCKPITMECHANICS, name = _("A/C Temperature")},
{action = device_commands.TACAN_Knob_Vol_Pilot, cockpit_device_id = devices.TACAN, name = _("TACAN Volume")},
{action = device_commands.RADIO_UHF_BRT_Pilot, cockpit_device_id = devices.ARC159, name = _("UHF ARC-159 Display Brightness")},
{action = device_commands.RADIO_UHF_VOL_Pilot, cockpit_device_id = devices.ARC159, name = _("UHF ARC-159 Volume")},
{action = device_commands.ARA63_Chnl_Knob, cockpit_device_id = devices.ILS, name = _("AN/ARA-63 Channel Knob")},

 

 

For wingsweep (and most other volume knobs), I find it works better if you Tune the Axis to 50,55,60,65,70,75,80,85,90,95,100 and make sure to click the slider checkbox.

 

Edited by hitmanalpha1
Added Stuff
  • Like 1
  • Thanks 2
Posted
17 hours ago, hitmanalpha1 said:

Here are the lines I've added so far to my joystick lua. You can see the wingsweep axis at the top. This file is under C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\F14\Input\F-14B-Pilot\joystick\default.lua

Open the file with Notepad++ and  Add them to the bottom under the --joystick axes

 

{action = device_commands.WINGSWEEP_EmergencySweepLever, cockpit_device_id=devices.WINGSWEEP, name=_('Emergency Wing Sweep')},
{action = device_commands.RADIO_ICS_Vol_Sidewinder, cockpit_device_id=devices.ICS, name = _("ICS Sidewinder Volume")},
{action = device_commands.RADIO_ICS_Vol_ALR67_Pilot, cockpit_device_id=devices.ICS, name = _("ICS ALR-67 Volume")},
{action = device_commands.RADIO_VHF_VOL_PILOT, cockpit_device_id = devices.ARC182, name = _("ARC-182 Volume")},
{action = device_commands.RADIO_ICS_Vol_Pilot, cockpit_device_id = devices.ICS, name = _("ICS Volume")},
{action = device_commands.LIGHTS_Console, cockpit_device_id = devices.COCKPITMECHANICS, name = _("Console Light Intensity")},
{action = device_commands.LIGHTS_ACMPanel, cockpit_device_id = devices.COCKPITMECHANICS, name = _("ACM Panel Light Intensity")},
{action = device_commands.LIGHTS_Formation, cockpit_device_id = devices.COCKPITMECHANICS, name = _("Formation Light Intensity")},
{action = device_commands.LIGHTS_Instruments, cockpit_device_id = devices.COCKPITMECHANICS, name = _("Instrument Light Intensity")},
{action = device_commands.AoA_IndexerStrength, cockpit_device_id = devices.AOASYSTEM, name = _("AoA Indexer Light Intensity")},
{action = device_commands.Temperature, cockpit_device_id = devices.COCKPITMECHANICS, name = _("A/C Temperature")},
{action = device_commands.TACAN_Knob_Vol_Pilot, cockpit_device_id = devices.TACAN, name = _("TACAN Volume")},
{action = device_commands.RADIO_UHF_BRT_Pilot, cockpit_device_id = devices.ARC159, name = _("UHF ARC-159 Display Brightness")},
{action = device_commands.RADIO_UHF_VOL_Pilot, cockpit_device_id = devices.ARC159, name = _("UHF ARC-159 Volume")},
{action = device_commands.ARA63_Chnl_Knob, cockpit_device_id = devices.ILS, name = _("AN/ARA-63 Channel Knob")},

 

 

For wingsweep (and most other volume knobs), I find it works better if you Tune the Axis to 50,55,60,65,70,75,80,85,90,95,100 and make sure to click the slider checkbox.

 

 

thanks for that.
1 where do i find that lua file?

2 when i  put that line in does it appear in the control menu under axis assign?

20 hours ago, Longiron said:

Came to post about this binding request and you beat me to it.

youve been watching growling sidewinder too then? lol

 

  • Thanks 1

7700k @5ghz, 32gb 3200mhz ram, 2080ti, nvme drives, valve index vr

Posted
49 minutes ago, eatthis said:

thanks for that.
1 where do i find that lua file?

2 when i  put that line in does it appear in the control menu under axis assign?

youve been watching growling sidewinder too then? lol

 

The file is here:   

 

C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\F14\Input\F-14B-Pilot\joystick\default.lua

 

Be sure to open with Notepad ++

 

and yes it will then appear in your Controls menu under Axis Commands for F14 Pilot.

  • Thanks 1
Posted
7 hours ago, eatthis said:

i cant get anything to appear in controls menu

 

I’m not home but I’ll post some screenshots tomorrow. 

4 hours ago, VFGiPJP said:

Follow-up question: can we make a key bind for popping up the emergency lever?  I cannot find one by default

 

I’ve got that too. I’ll post tomorrow when I get home.

  • Like 1
Posted

found it in axis controls, havnt had time to test it yet. and yeh a toggle to lift/drop the lever would be great

 

 

7700k @5ghz, 32gb 3200mhz ram, 2080ti, nvme drives, valve index vr

Posted

Here is what I have for the Wingsweep Lever and Cover:

 


{down = device_commands.WINGSWEEP_EmergencySweepCover,     up = device_commands.WINGSWEEP_EmergencySweepCover, value_down = 1, value_up = 0, cockpit_device_id = devices.WINGSWEEP, name = _('Emergency Wing Sweep Handle Cover OPEN else Close'), category = _('-Pmods')},
{down = device_commands.WINGSWEEP_EmergencySweepCover,         cockpit_device_id = devices.WINGSWEEP, value_down = 0, name = _('Emergency Wing Sweep Cover CLOSE'), category = { _('-Pmods')}},
{down = device_commands.WINGSWEEP_EmergencySweepCover,         cockpit_device_id = devices.WINGSWEEP, value_down = 1, name = _('Emergency Wing Sweep Cover OPEN'), category = { _('-Pmods')}},
{down = device_commands.WINGSWEEP_EmergencySweepCover,     up = device_commands.WINGSWEEP_EmergencySweepCover, value_down = 1, value_up = 0, cockpit_device_id = devices.WINGSWEEP, name = _('Emergency Wing Sweep Cover OPEN else CLOSED'), category = _('-Pmods')},
{down = device_commands.WINGSWEEP_EmergencyLeverExtended,up=device_commands.WINGSWEEP_EmergencyLeverExtended, cockpit_device_id=devices.WINGSWEEP, value_down=1.0, value_up=0.0, name=_('Emergency Wing Sweep Handle PopOut else In'),     category=_('-Pmods')},

 

It will create a new category called Pmods but you can edit that last part and called it whatever you want. 

If anyone needs a binding just ask, I have a lot of them. I plan to upload them all once I get it how I want. 

  • Like 1
  • Thanks 2
Posted
1 hour ago, hitmanalpha1 said:

Here is what I have for the Wingsweep Lever and Cover:

 


{down = device_commands.WINGSWEEP_EmergencySweepCover,     up = device_commands.WINGSWEEP_EmergencySweepCover, value_down = 1, value_up = 0, cockpit_device_id = devices.WINGSWEEP, name = _('Emergency Wing Sweep Handle Cover OPEN else Close'), category = _('-Pmods')},
{down = device_commands.WINGSWEEP_EmergencySweepCover,         cockpit_device_id = devices.WINGSWEEP, value_down = 0, name = _('Emergency Wing Sweep Cover CLOSE'), category = { _('-Pmods')}},
{down = device_commands.WINGSWEEP_EmergencySweepCover,         cockpit_device_id = devices.WINGSWEEP, value_down = 1, name = _('Emergency Wing Sweep Cover OPEN'), category = { _('-Pmods')}},
{down = device_commands.WINGSWEEP_EmergencySweepCover,     up = device_commands.WINGSWEEP_EmergencySweepCover, value_down = 1, value_up = 0, cockpit_device_id = devices.WINGSWEEP, name = _('Emergency Wing Sweep Cover OPEN else CLOSED'), category = _('-Pmods')},
{down = device_commands.WINGSWEEP_EmergencyLeverExtended,up=device_commands.WINGSWEEP_EmergencyLeverExtended, cockpit_device_id=devices.WINGSWEEP, value_down=1.0, value_up=0.0, name=_('Emergency Wing Sweep Handle PopOut else In'),     category=_('-Pmods')},

 

It will create a new category called Pmods but you can edit that last part and called it whatever you want. 

If anyone needs a binding just ask, I have a lot of them. I plan to upload them all once I get it how I want. 

is there a command to have a momentary button as a toggle for the lever lift/drop? 

7700k @5ghz, 32gb 3200mhz ram, 2080ti, nvme drives, valve index vr

Posted (edited)
6 hours ago, VFGiPJP said:

Where should I put the new lines?

 

Okay, get it figured out. Thanks. But it seems that I can pop out the level even when the cover is down, no biggie either.

 

Yeah goes in keyboard lua file. Yep you can pop it out Regardless of cover up or down. 

5 hours ago, eatthis said:

is there a command to have a momentary button as a toggle for the lever lift/drop? 

Yeah the last command that says pop out else in will work with either. On or momentary switch 

Edited by hitmanalpha1
Mess up
  • Thanks 1
Posted
14 hours ago, hitmanalpha1 said:

Yeah goes in keyboard lua file. Yep you can pop it out Regardless of cover up or down. 

Yeah the last command that says pop out else in will work with either. On or momentary switch 

 

wont it just go back in when i let go of the button?

 

7700k @5ghz, 32gb 3200mhz ram, 2080ti, nvme drives, valve index vr

Posted
15 hours ago, hitmanalpha1 said:

Yeah goes in keyboard lua file. Yep you can pop it out Regardless of cover up or down. 

Yeah the last command that says pop out else in will work with either. On or momentary switch 

 

its put the command in axis not buttons, how do i get it in buttons?

7700k @5ghz, 32gb 3200mhz ram, 2080ti, nvme drives, valve index vr

Posted
7 hours ago, eatthis said:

its put the command in axis not buttons, how do i get it in buttons?

I have mine set for when the cover opens the handle pops up. When I close the cover the handle goes down.  The handle files go in the keyboard lua file. The axis command for wrong sweep goes on joystick lua.

Posted
44 minutes ago, hitmanalpha1 said:

I have mine set for when the cover opens the handle pops up. When I close the cover the handle goes down.  The handle files go in the keyboard lua file. The axis command for wrong sweep goes on joystick lua.

ivr got it working, pressing the button lifts the lever but then it wont go back in unless i mouse click it, how can i make it a toggle?

7700k @5ghz, 32gb 3200mhz ram, 2080ti, nvme drives, valve index vr

Posted (edited)
On 8/22/2021 at 8:06 PM, eatthis said:

ivr got it working, pressing the button lifts the lever but then it wont go back in unless i mouse click it, how can i make it a toggle?

Have you lifted the cover open? Technically one should lift open the wing sweep cover first before popping out/back in the lever. However, the key binding some how allows one to pop out the level without lifting up the cover, but not back in.

 

Hope this helps.

 

Edit: Now I map "emergency wing sweep pop out else in", "emergency wing sweep cover up else down" and "master reset" (which reset the wing sweep back to automatic), into 3 buttons on my throttle.

Edited by VFGiPJP

I Fly, Therefore I Am.

One cannot go around not saying "Thank you" every time these days, can't you?

YouTube: https://www.youtube.com/channel/UCc9BDi-STaqgWsjNiHbW0fA

Posted
4 hours ago, VFGiPJP said:

Have you lifted the cover open? Technically one should lift open the wing sweep cover first before popping out/back in the lever. However, the key binding some how allows one to pop out the level without lifting up the cover, but not back in.

 

Hope this helps.

 

Edit: Now I map "emergency wing sweep pop out else in", "emergency wing sweep cover up else down" and "master reset" (which reset the wing sweep back to automatic), into 3 buttons on my throttle.

 

il check, i only did a quick test

 

7700k @5ghz, 32gb 3200mhz ram, 2080ti, nvme drives, valve index vr

  • 3 months later...
Posted (edited)

Holy heck.  After spending 2.5 hrs in learning what the codes meant, I finally got the HUD brightness, HSD brightness, and the VDI brightness as well as its contrast made bindable via axis; likewise, the ARC-159 and ARC-182 volume control were also axis bindable now.

Copy and paste the following small piece of code at the near bottom (keep it neat) inside the "default.lua" within: Eagle Dynamics\DCS World\Mods\aircraft\F14\Input\F-14B-Pilot\joystick\default.lua 

The asterisk were there to force the customized axis binding item populate up the very top for easy finding.  Lastly, please be aware this is base on OpenBeta v2.56 as I have not updated to v2.7x, yet (I am uncertain did the v2.7x already included those entries).  Also, as always, make a backup copy of whichever file before modification for reversibility sake.

Cheers.

Quote

{action = device_commands.RADIO_VHF_VOL_PILOT, cockpit_device_id = devices.ARC182, name = _("*ARC-182 Volume")},
{action = device_commands.RADIO_UHF_VOL_Pilot, cockpit_device_id = devices.ARC159, name = _("*UHF ARC-159 Volume")},
{action = device_commands.VDIG_HUD_bright, cockpit_device_id = devices.HUD, name = _("*HUD Brightness")},
{action = device_commands.VDIG_VDI_contrast, cockpit_device_id = devices.VDI, name = _("*VDI Screen Contrast")},
{action = device_commands.VDIG_VSDI_bright, cockpit_device_id = devices.VDI, name = _("*VSDI Screen Brightness")},
{action = device_commands.HSD_Knob_Brightness, cockpit_device_id = devices.HSD, name = _("*HSD Brightness")},

 

Thanks Heatblur and ED. 🙂

Disclaimer: Please know I cannot assume any liability in event the above did not work or break anything.  

Edited by Pally
clarification for "default.lua"; version clarification.
  • Like 2
Posted
Just now, VFGiPJP said:

you wish to combine it into on mod as per below?

Sure thing.  If it helps out others to enjoy the experience better.

  • Like 1
  • Recently Browsing   0 members

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