Jump to content

AFK not toggling


philstyle

Recommended Posts

Hi folks,

 

 

I have the AFK lever set to a single keyboard button, which should toggle it on and off again.

 

The button press works to toggle AFK mode on, but if I press the button again, the AFK lever does not return to the off position. I have to use mouse click to dsiable AFK mode.

Is this the same for others?

Am I missing a key binding here?

On YouTube: https://www.youtube.com/philstylenz

Storm of War WW2 server website: https://stormofwar.net/

 

Link to comment
Share on other sites

Hi folks,

 

 

I have the AFK lever set to a single keyboard button, which should toggle it on and off again.

 

The button press works to toggle AFK mode on, but if I press the button again, the AFK lever does not return to the off position. I have to use mouse click to dsiable AFK mode.

Is this the same for others?

Am I missing a key binding here?

 

 

2.5.3 or 2.5.4?

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

I dunno if it's related - but there are two entries for 'Autothrottle mode AFK'

 

One can be found in the list with 'ALL' - other can be accessed when choosing the 'AUTOPILOT' subcategory.

 

See the screenshots - it's the same name but they are not the same 'Autothrottle mode AFK' - there is keybinding assigned in the other one (Autopilot), but not in the other one (All).

 

I am using the one that can be found in the 'AUTOPILOT' subcategory - and atleast that one is working.

AFK_1.thumb.jpg.bf0d2cc190ba2ca5bb4733620ca064bf.jpg

AFK_2.thumb.jpg.2599fff289695a409eb9edc4bf733329.jpg

A-10C Warthog | AJS-37 Viggen | F-5E Tiger II | Mig-15bis | MiG-19P Farmer

Link to comment
Share on other sites

I dunno if it's related - but there are two entries for 'Autothrottle mode AFK'

 

 

 

Yes, this fixed it!

One of them works as a toggle in both directions. The other only works to turn it on, but not off again.

I wonder if HB knows this?

 

 

I have now swapped the binding over and it works. Much apprecaited.

On YouTube: https://www.youtube.com/philstylenz

Storm of War WW2 server website: https://stormofwar.net/

 

Link to comment
Share on other sites

This is really confusing! This post is updated after some more in-depth research.

The default.lua has 2 different entries for this command, both withe same name:

{combos = {{key = 'J'}}, down = 3304, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, name = 'Autothrottle mode AFK', category = 'Autopilot'},
{down = 3104, value_down = 1.000000, cockpit_device_id = devices.ENGINEPANEL, name = _('Autothrottle mode AFK'), category = _('Autopilot')},

It's obviously a glitch that we have 2 commands with the same name as the Options/Controls screen will never show both.

Findings:

The command using "3104" works as a toggle switch, i.e. it cycles between ON an OFF each time you push the button bound to it.

The command using "3304" is incomplete as it only implements the "ON" command. In order to get both ON and OFF with a maintained ON/OFF switch I created the complete command:

{down = 3304, up = 3304, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'Autothrottle 2-Pos. AFK/OFF', category = 'Autopilot'},

It is important to give this added command a distinct name to avoid confusion, especially as the two original commands are included in all 3 versions of "default.lua" in the folders "joystick", "keyboard" and "mouse".

 

 

@Heatblur: You should make it a priority to clean this up. Will take rather little time but avoid a lot of confusion and frutration.


Edited by LeCuvier

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...
  • Recently Browsing   0 members

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