Jump to content

Recommended Posts

Posted
Teej, this is very interesting! But...

1. where do I find all the action codes?

2. are they the same for all modules?

 

As Teej is getting a bit busy in the real world at the moment, I'll try to answer that...

 

The standard codes, which appear to work across the board (unless modules replace them with their own functionality), can be found as comments in your DCS World installation folder -> Scripts\Export.lua

 

And custom functions' codes would be in Mods\aircraft\[aircraft_name]\Cockpit\Scripts\command_defs.lua

 

You'll have to look at what value is assigned to start_command there, and then count up by one for each appearance of counter(), simply put.

My humble rig: Windows 10 pro 64bit; i7-6700k on Gigabyte Z170X G7; 32GB; MSI 980ti Twin Frozr; 512GB Samsung 950 Pro (NVMe/PCIe x4); 1TB Samsung 850 Pro; Komplete Audio 6; TrackIR 5 Pro;

DCS 2.5 with almost all modules; favourites: Shark, Mi-8, Harrier, Viggen, Mirage, Hornet

Posted

Thanks Lucifah! The custom definitions seem to have different structures depending on module, I guess that's the fingerprint of the different developers; but I think I can take it from here.

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

  • 3 weeks later...
Posted
Actually, I bet I know why it's not working for you. I did it in an SFM jet and you're probably trying to do it in a newer AFM/ASM setup that doesn't support the ...ThrustCommonDelta parameter.

 

Got an idea what needs to be done for AFM/ASMs...lemme try on one of mine and get back to you...Won't be quite a cut-and-paste thing - it'll probably need a small change for every plane you want to use it on.

 

Hey Teej, did you have a chance to look into the 'scroll wheel for AFM/ASM planes throttle'? If you are busy with other stuff dont hurry, I will wait I have plenty of time. :)

Posted

Haven't forgot about ya, bud, but yeah I've been a little tied up. Might be able to look at that a bit further next month if I'm lucky. Heh.

"Tank! I need a program for a TM Warthog!"

 

[sIGPIC][/sIGPIC]

Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

 

Thermaltake V9 SECC case | Corsair RM750 PSU | Asus ROG Ranger VIII | Intel i7 6700K | 16GB 3000mhz RAM |

EVGA GTX 980Ti FTW | TrackIR 4 w/ pro clip | TM HOTAS Warthog | TM MFD Cougar Pack | Win 10 x64 |

  • 1 month later...
Posted

This is honestly one of the best threads I've ever seen. No attitude, just incredible advice. Need to set up some multiple actions myself (I want the wheelbrakes and weapon drop combined on the warthog paddle switch for some aircraft) and will get into it. Huge thanks.

  • Like 3
Posted

Who the hell do you think you are????

 

There you go...attitude box checked! :)

  • Like 1

hsb

HW Spec in Spoiler

---

 

i7-10700K Direct-To-Die/OC'ed to 5.1GHz, MSI Z490 MB, 32GB DDR4 3200MHz, EVGA 2080 Ti FTW3, NVMe+SSD, Win 10 x64 Pro, MFG, Warthog, TM MFDs, Komodo Huey set, Rverbe G1

 

Posted

FWIW, I'm still here and following and planning to dig into stuff for the guy looking for the help on using the mouse...I've just been really busy with both real and virtual life. We're definitely looking forward to having some fun at Virtual Beach Blast tomorrow. :D

  • Like 4

"Tank! I need a program for a TM Warthog!"

 

[sIGPIC][/sIGPIC]

Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

 

Thermaltake V9 SECC case | Corsair RM750 PSU | Asus ROG Ranger VIII | Intel i7 6700K | 16GB 3000mhz RAM |

EVGA GTX 980Ti FTW | TrackIR 4 w/ pro clip | TM HOTAS Warthog | TM MFD Cougar Pack | Win 10 x64 |

Posted (edited)

Teej, I had a thought. I've found multiple controls mapped to the same button within the DCS editor after upgrades - i.e. the DCS 'edit controls' window shows the same joy button bound to multiple actions. You can't create that scenario in the DCS editor but it does display it, therefore it's not erroring out immediately. Is it possible/easier just to edit the saved input configuration files directly, adding the same button to multiple actions? That would also avoid integrity check issues.

Edited by Lascaille
edit
Posted
Teej, I had a thought. I've found multiple controls mapped to the same button within the DCS editor after upgrades - i.e. the DCS 'edit controls' window shows the same joy button bound to multiple actions. You can't create that scenario in the DCS editor but it does display it, therefore it's not erroring out immediately. Is it possible/easier just to edit the saved input configuration files directly, adding the same button to multiple actions? That would also avoid integrity check issues.

 

OK this seems not to work. The DCS editor shows the buttons as bound but only one function is activated.

Posted

Here's my thought process on Nevo's question at least...still haven't had time to turn this into more than a thought...

 

First I'd wanna look at a handfull of files (key/mouse/joystick LUAs, plus the device/device_init scripts) to figure out what capabilities were there that might be exploitable.

 

Assuming the worst, I'd set the mouse Z axis up to something unused (ie 7000 like I did with Lucifer's question).

 

Then in the LUA device I'd create, I would:

 

1: Initialize a local throttle variable and set to minimum

2: "listen" for throttle changes made the regular way (auto throttle, moving a joystick, whatever). Any time a change is received update the local variable above.

3: "listen" for the mouse-Z changes. When one is detected, increase/decrease the local throttle variable by some predetermined amount and issue the mod's ASM throttle command to match.

 

T

"Tank! I need a program for a TM Warthog!"

 

[sIGPIC][/sIGPIC]

Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

 

Thermaltake V9 SECC case | Corsair RM750 PSU | Asus ROG Ranger VIII | Intel i7 6700K | 16GB 3000mhz RAM |

EVGA GTX 980Ti FTW | TrackIR 4 w/ pro clip | TM HOTAS Warthog | TM MFD Cougar Pack | Win 10 x64 |

Posted

No worries man. I know some people have given you crap on other threads about wanting to use KB/mouse to fly DCS. My opinion is..well...I agree in that I'd rather see someone use real controls, but I also know that some people are really limited on space and budget. I have friends in Japan who chose between game consoles (Xbox vs PS2) based on the bulkiness of the console / controllers :D If someone has monetary / living space / personal mobility issues....or even flat out choice... that make dedicated controllers a problem, why should that stop you? :D

"Tank! I need a program for a TM Warthog!"

 

[sIGPIC][/sIGPIC]

Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

 

Thermaltake V9 SECC case | Corsair RM750 PSU | Asus ROG Ranger VIII | Intel i7 6700K | 16GB 3000mhz RAM |

EVGA GTX 980Ti FTW | TrackIR 4 w/ pro clip | TM HOTAS Warthog | TM MFD Cougar Pack | Win 10 x64 |

  • 3 months later...
Posted

Command numbers for Macros - F-5E

 

I'm trying to establish a method for creating macros for the F-5E. I've been able to create a macro to turn all interior lights up. This is piggybacking on the "Macro_handler.lua" in the common scripts folder and the "Macro_sequencies.lua" in the F-5E's script folder. However I ran into trouble when I tried to add a second macro. After many tests (debugging these scripts is hell!) I found that the command code used to trigger the macro is the problem. So far I was successful only with the command codes "300" and "5000". How can I find out which other command codes will work?

Trial and error is impractical as it takes too much time to start DCS, try, shut down DCS and enter a new code.

Any help is welcome!

Note: the command codes are numbered by device so they are not unique by themselves. It might be that the command code is a combination of device number and the command number by device.

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'm thinkin that VoiceAttack can handle many of the issues raised in this thread. You can program a keystroke or Button to initiate an endless string of in game commands.

A Co, 229th AHB, 1st Cav Div

ASUS Prime Z370-A MB, Intel Core i7 8700K 5.0GHz OC'd, RTX 3090, 32GB DDR4, 1TB SSD, Win 10

Samsung 65" 4K Curved Display (Oculus Rift occaisionally), Track IR5, VoiceAttack, Baur's BRD-N Cyclic base/Virpil T-50CM Grip, UH-1h Collective by Microhelis & OE-XAM Pedals. JetSeat & SimShaker for Aviators.

JUST CHOPPERS

 

Posted (edited)
I'm thinkin that VoiceAttack can handle many of the issues raised in this thread. You can program a keystroke or Button to initiate an endless string of in game commands.

I'd like to do this without using additional software. Otherwise I could also do it with TARGET.

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)

2 macros for F-5E, A-10C and F/A-18C Interior Lights

 

I managed to create 2 macros for the F-5E. The first sets all interior lights to 50%. I find this useful for night missions. The second macro sets them back to 0%. The solution piggybacks on the out-of-the-box structure consisting of "Macro_handler" in the common script file folder and "Macro_sequencies" in the F-5E script file folder. A document describing the solution is attached. If anybody wants a copy of the modified files I can post those as well.

I'm still hoping to find a range of unused command codes that can be used for macros.

Edit: I have created the equivalent macros for the A-10C and added this subject to the tutorial

Edit 18-JUL-2018: Due to changes in DCS World, the macros for both A-10C and F-5E were broken. I managed to fix them and I have updated the How-To document.

It took me the better part of a day to understand what went wrong, fix it and update the document. Fortunately, Notepad++ has a compare feature (under Plug-ins) that pinpoints differences between two text files very clearly.

Edit 20-JUL-2018: I added macros for the F/A-18C to the document.

Edit 07-AUG-2018: Further edits, primarily about impact on Integrity Check

How to Create Macros_2018-08-07.pdf

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

  • Recently Browsing   0 members

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