crazyave Posted August 15, 2022 Posted August 15, 2022 (edited) I have a TM Warthog throttle, I'd like to use a 3pos switch for the Dogfight switch, but only the two outer positions register. Has anyone edited the input LUA to add this functionality? I'd imagine you'd want to add a 3rd possibility, both the outer switch positions being off would be the third position I'm looking for, ie "Center". Edited August 15, 2022 by crazyave
Tiger-II Posted August 15, 2022 Posted August 15, 2022 (edited) No, and this functionality has been missing since release. For some reason there is a bit of inconsistency with which keys can be mapped, and how between modules. There is an issue where some WH "press-and-hold" switches will not work for momentary presses. It must luterally be mapped to a momentary switch, which gets very annoying (e.g. the flaps switch and boat switch become totally unmappable for certain functions). Edited August 15, 2022 by Tiger-II 1 Motorola 68000 | 1 Mb | Debug port "When performing a forced landing, fly the aircraft as far into the crash as possible." - Bob Hoover. The JF-17 is not better than the F-16; it's different. It's how you fly that counts. "An average aircraft with a skilled pilot, will out-perform the superior aircraft with an average pilot."
Jascha Posted August 15, 2022 Posted August 15, 2022 (edited) 3 hours ago, crazyave said: I have a TM Warthog throttle, I'd like to use a 3pos switch for the Dogfight switch, but only the two outer positions register. Has anyone edited the input LUA to add this functionality? I'd imagine you'd want to add a 3rd possibility, both the outer switch positions being off would be the third position I'm looking for, ie "Center". I don't fully understand. What switch exactly you want to bind it to? There is a forward position, aft position and center-press. So it's not a typical 3-way switch, since you must press it in center position (if I understand this correctly). TM Wathog's CM switch is perfect for this (and it's in same position on the joystick like in real F-5E): (taken from F-5E Chuck's Guide) If you still want to use a 3 position switch for this (pinky or boat switch on the throttle I assume) you can do it too, but it's a bit tricky. I recommend using Joystick Gremlin and the method described here: Edited August 15, 2022 by Jascha 3
Tiger-II Posted August 17, 2022 Posted August 17, 2022 The dogfight switch is supposed to be assigned to a switch like the CWS hat on the stick. My comment was general about how certain functions can (or can not) be mapped due to how DCS handles certain button types. 1 Motorola 68000 | 1 Mb | Debug port "When performing a forced landing, fly the aircraft as far into the crash as possible." - Bob Hoover. The JF-17 is not better than the F-16; it's different. It's how you fly that counts. "An average aircraft with a skilled pilot, will out-perform the superior aircraft with an average pilot."
stormrider2 Posted August 17, 2022 Posted August 17, 2022 (edited) On 8/15/2022 at 8:22 PM, crazyave said: I have a TM Warthog throttle, I'd like to use a 3pos switch for the Dogfight switch, but only the two outer positions register. Has anyone edited the input LUA to add this functionality? I'd imagine you'd want to add a 3rd possibility, both the outer switch positions being off would be the third position I'm looking for, ie "Center". You can program it in TM Target software or as suggested in Joystick Gremlin. I prefer the later for my profiles because in my peripherals ecosystem, I use different brands of gears and Joystick Gremlin allows me to bind them to virtual interfaces (vjoy). I also do a lot of programming in terms of "Modes", to increase the combinations of buttons. To give an example, when I lower the landing gear, its two way permanent switch is programmed to also change to a "Landing Mode", which assigns different functions to, say, the weapons buttons that are obviously not necessary during landing. These new functions range from "Comms" shortcuts, Jester shortcuts, to toggling the Hook and so on. It gets complex quite quickly, but the range of possibilities that it opens up is infinite. Edited August 17, 2022 by stormrider2
LeCuvier Posted August 21, 2022 Posted August 21, 2022 (edited) My answer is a bit late as I had not seen this post (should have been under "Controller Questions and Bugs). I don't fly the F-5 much, but I gave it a try adding these 2 lines to the file "Throttle - HOTAS Warthog.lua" {down = asg31_commands.DgMode, up = asg31_commands.ResumeSearch, cockpit_device_id = devices.AN_ASG31, value_down = -1, value_up = 1, name = _('Dogfight/Resume Search Switch - FORWARD (DM)/CENTER (RESUME'), category = {_('Stick')}}, {down = asg31_commands.DgMode, up = asg31_commands.ResumeSearch, cockpit_device_id = devices.AN_ASG31, value_down = 1, value_up = 1, name = _('Dogfight/Resume Search Switch - AFT (DG)/CENTER (RESUME'), category = {_('Stick')}}, I bound the two new commands to the positions "PATH" and "ALT" of the Autopilot switch on the TM Warthog throttle, and it seems to work. But I'm not an F-5 expert, so why don't you give it a try? Edit: I've re-bound the new commands to the Boat Switch. That seems more handy. Edited August 22, 2022 by LeCuvier 1 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
Recommended Posts