philstyle Posted January 16, 2019 Share Posted January 16, 2019 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 More sharing options...
TOViper Posted January 16, 2019 Share Posted January 16, 2019 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 More sharing options...
rainyday Posted January 16, 2019 Share Posted January 16, 2019 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. A-10C Warthog | AJS-37 Viggen | F-5E Tiger II | Mig-15bis | MiG-19P Farmer Link to comment Share on other sites More sharing options...
philstyle Posted January 17, 2019 Author Share Posted January 17, 2019 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 More sharing options...
LeCuvier Posted January 17, 2019 Share Posted January 17, 2019 (edited) 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 January 18, 2019 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 More sharing options...
RedeyeStorm Posted February 15, 2019 Share Posted February 15, 2019 +1 Using the AFK button under autopilot by assigning joystick button only activates the AFK but doesn’t turn it off. Will check the other one. Link to comment Share on other sites More sharing options...
CARTOK Posted March 20, 2019 Share Posted March 20, 2019 Away from computer at the moment, has this been fixed yet? Link to comment Share on other sites More sharing options...
Recommended Posts