Jump to content

Recommended Posts

Posted

Hi guys,

 

i want to map the boat switch to the dogfight switch on my cougar throttle.

 

now i can assign both boat fwd and aft to the respective Dogfight/MRM sides, but i cannot program boat switch center to the center of the dogfight switch.

 

in the F18 default.lua, you can set a 3-way switch by programming -1,0,and +1 to the switch and give each a seperate binding, but the A10 lua file looks so different, i have no clue how to do this.

 

an ideas?

time is never wasted when you're wasted all the time...

 

my rig: I7-9700K@4,9 Ghz, 1080ti, 32Gb RAM@3733 Mhz, HP Reverb Pro, TM Cougar with FSSB R2, TM MFD's

Posted

...

an ideas?

 

I detect the button release of the dogfight button, using Foxy. The code looks like this:

 

Rem ################################################
Rem   T7-T8 : Boat Switch
Rem ################################################

BTN T7 /P   HOTAS_Boat_Switch_Aft 
            /R    HOTAS_Boat_Switch_Center 
BTN T8 /P   HOTAS_Boat_Switch_Forward 
            /R    HOTAS_Boat_Switch_Center 

 

/P is for press, /R for release

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted

Gracias Rudel,

 

I'm trying to keep my stick as universal as possible so I don't have to flash it everytime I switch between DCS and BMS, but if that works, it works..

time is never wasted when you're wasted all the time...

 

my rig: I7-9700K@4,9 Ghz, 1080ti, 32Gb RAM@3733 Mhz, HP Reverb Pro, TM Cougar with FSSB R2, TM MFD's

Posted

Copy the file 'Throttle - HOTAS Warthog.lua' and name it equal to the Cougar controller name and then you'll be able to use the same commands as that device.

Posted

Frederf's suggestion is interesting.

Pro: the new file you create will not be overwritten by Update/Repair.

The default bindings from "Throttle - HOTAS Warthog.lua" will probably bind to the wrong switches, so you will have to re-do all the bindings. But that's no real disadvantage because if you use the bindings from "default.lua" you will have to create all bindings anyway.

 

The other alternative is to modify the "default.lua" using the logic from "Throttle - HOTAS Warthog.lua" but without the "combos..." stuff that provides the default bindings. You would add these 2 lines of code to "default.lua":

{down = iCommandPlane_HOTAS_BoatSwitchAft,up = iCommandPlane_HOTAS_BoatSwitchCenter, name = _('HOTAS Boat Switch Aft/Center'), category = _('HOTAS')},
{down = iCommandPlane_HOTAS_BoatSwitchForward,up = iCommandPlane_HOTAS_BoatSwitchCenter, name = _('HOTAS Boat Switch Forward/Center'), category = _('HOTAS')},

This solution is what you originally asked for.

Note: I'm using different names to reflect what these commands really do, and to avoid duplication.

Con: the Update/Repair processes restore the original files. So you need a process to back up your modified file and copy it back in after Update/Repair. Personally, I have a lot of added lines in the "default.lua" and I use OvGME to back out my modifications before a UpDate/Repair, and copy them back in afterwards.

If this would be your only modification of the "default.lua" I think that Frederf's solution is simpler and more robust.

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

Posted

I don't know if my idea will be erased on every update or not. If updates wipe out the "default.lua" but leaves "XXX.lua" where XXX is the name of your particular controller. If it doesn't overwrite the custom file every patch then that should save a lot of headache.

 

Personally I've done all my editing on the default.lua file which requires that I unapply/reapply a JSGME mod before/after every update. It's annoying but a lot faster than editing it again every time. It would be smarter for me to use the specific lua for that controller and I am trying to do that now.

 

The difference is that default.lua will always show up regardless of which joysticks are present while XXX.lua commands will only show up if XXX is present. If that's positive or negative or neutral value (dependency on XXX present) it's up to you.

Posted
I don't know if my idea will be erased on every update or not. ..

If your file name is different from the file names ED uses, it will not be overwritten. And it won't be erased, assuming you don't enable the option to search for extra files.

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

  • Recently Browsing   0 members

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