Jump to content

Recommended Posts

Posted

Is it possible to make toggle switches on the Warthog Hotas Throttle work with the flaming cliffs 3 aircraft?

 

If I go into my install folder for 1.5 and look in Mods\aircraft\Flaming Cliffs\Input\f-15c\joystick\

 

Tthere is no Warthog lua files. So I have nothing to edit. If I copy the default lua file and rename it to:

 

Throttle - HOTAS Warthog.lua

 

Then edit the file to have this entry:

 

{down = iCommandPlaneFonar, up = iCommandPlaneFonar, down = 1, up = 0, name = _("Canopy Open/Close TOGGLE"), category = _("Systems"), },

 

or

 

{down = iCommandPlaneFonar, up = iCommandPlaneFonar, value_down = 1, value_up = 0, name = _("Canopy Open/Close TOGGLE"), category = _("Systems"), },

 

It doesn't' work.

 

Is it a. because you can't Or b. because I'm doing it wrong?

Posted

I don't believe you can edit the functions because they are not "hard coded"

[sIGPIC][/sIGPIC]

Primary Computer

ASUS Z390-P, i7-9700K CPU @ 5.0Ghz, 32GB Patriot Viper Steel DDR4 @ 3200Mhz, ZOTAC GeForce 1070 Ti AMP Extreme, Samsung 970 EVO M.2 NVMe drives (1Tb & 500 Gb), Windows 10 Professional, Thrustmaster Warthog HOTAS, Thrustmaster Warthog Stick, Thrustmaster Cougar Throttle, Cougar MFDs x3, Saitek Combat Rudder Pedals and TrackIR 5.

 

-={TAC}=-DCS Server

Gigabyte GA-Z68XP-UD3, i7-3770K CPU @ 3.90GHz, 32GB G.SKILL Ripjaws DDR3 @ 1600Mhz, ZOTAC GeForce® GTX 970.

Posted (edited)

@aileron:

You found the Canopy command in the default file for the Sidewinder FF stick I guess. That's nifty. What you want to do is easy to achieve. Recommendations:

1. You should not create a new default file for the TM WH throttle because the software won't look for it. Add any new commands to the "default.lua" in the folder "C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\Flaming Cliffs\Input\f-15c\joystick".

2. The command "iCommandPlaneFonar" is a toggle command in itself and does not take any arguments like "value_down = 1". Each time the command is issued the canopy will go from its current state to the opposite state.

3. You can define 2 versions of the desired command:

a) Toggle command for use with a pushbutton or spring-loaded switch like the Left Throttle button on the TM WH throttle.

b) Maintained 2-position command for use with a 2-position switch like the "EAC" on the throttle

 

In the code example below I have implemented both versions for testing. Both work.

-- added HWF 03-AUG-2017
{down = iCommandPlaneFonar, name = _("Canopy Open/Close Toggle"),  category = _("Systems"), },
{down = iCommandPlaneFonar, up = iCommandPlaneFonar, name = _("Canopy 2-Pos OPEN/CLOSE"),  category = _("Systems"), },

Notes:

1. People use the term toggle in different ways. To me a toggle is a spring-loaded switch or pushbutton which returns to its OFF position when you stop pushing it. And a toggle command is a command that alternates between two states each time you push the button.

2. I understand why you were looking for a dedicated file for the TM WH throttle. Actually some aircrafts in DCS World have one, others don't. It's actually simpler if they don't because then all commands can be edited in the "default.lua".

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

Posted (edited)

1. People use the term toggle in different ways. To me a toggle is a spring-loaded switch or pushbutton which returns to its OFF position when you stop pushing it.

 

In industry terms, that category of switches is called toggle switches, and within that category you have either latching toggle switches or momentary toggle switches. Likewise, for push buttons, the category is push buttons, and they can either be latching or momentary. Most people just call them toggle switches though, which causes the confusion, especially when you're trying to buy some.

Edited by Ranma13
Posted
What you want to do is easy to achieve. Recommendations:

 

Thank you so much LeCuvier! I was able to use your input and make the F-15C work the way I wanted it to. :)

  • Recently Browsing   0 members

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