Jump to content

Recommended Posts

Posted
39 minutes ago, TimRobertsen said:

 

It seems that all the different articles I've been reading on this subject have not been applicable to setting up triggers in the F/A-18.

 

For ex. this one: http://volatusvirtualis.blogspot.com/2019/09/dcs-advanced-mission-editor-concepts.html

 

In the Mirage there is apparently a correspondence between the "COMMAND" and the "PTN_XXX"-number in the clickabledata.lua. This does not seem to be the case with the F/A-18. As you point out: you have to get the command from the Options-Controls-page.

 

Hi.

 

Didnt knew about that Blog, the subjects of cockpit interaction using the Mission Editor is not well documented by ED and it seems that the different developers use their own conventions to ease their use. The Mirage is one of the earliest third party aircrafts and seems that they did a lot to ease the complexities of cockpit triggers as they worked closely with Baltic Dragon to create one of the best set of Training Missions.

 

But, yes, it seems that every aircraft is a bit different on this regard .. so far I've made training missions for the C-101, F-16, F-18, Mig-21, Mi-8, JF-17 and A-4E ... and every one of them was slightly different  ... in some cases a few controls worked for the pilot but not for the Triggers, as I found a few bugs. Also, sometimes the Module updates change these codes rendering the missions obsolete ... this was particularly infuriating with the JF-17 🙂

 

Even so, I enjoy editing training missions, as they force me to learn the aircraft systems and weapons a lot better.

Best regards,

 

 

Eduardo

  • Like 1
  • Thanks 1

 

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 (edited)
21 hours ago, Rudel_chw said:

 

 

Makes sense (now that I am aware of the fact:p)

 

I got everything to work as I wanted 🙂 Thanks for all the help! 🙂

 

 

My new F/A-18 trigger-list:

Strobe Down    8 3009 -1
L Gen off    3 3028 0
R Gen off    3 3029 0


-Axis-
UFC bright    25 3040 -1 x50
Comm1 Vol    25 3036 -1 x50
Comm2 Vol    25 3038 -1 x50
Oxy flow    10 3004 -1 x10
Ifei Bright    33 3008 -1 x40

Defog Handle    11 3015 -1 x130
Cabin Temp    11 3017 -1 x15
Suit Temp    11 3019 -1 x15

Push to Test    30 3002 -1 x2

 

I'm surprised how easy it was, once I knew what to do and how to do it 🙂 

Edited by TimRobertsen
  • Like 1

First become an aviator, then become a terminator

Posted
21 hours ago, Rudel_chw said:

 

Do you know if it is possible to make a script which can run the different clickable actions? So that you can simply have a trigger to run a script, instead of having to set up a long list of actions.

First become an aviator, then become a terminator

Posted
5 minutes ago, TimRobertsen said:

 

Do you know if it is possible to make a script which can run the different clickable actions? So that you can simply have a trigger to run a script, instead of having to set up a long list of actions.


I really don’t know, scripting isn’t my strength 😞

 

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
4 minutes ago, Rudel_chw said:


I really don’t know, scripting isn’t my strength 😞

Same here 😛 I just keep thinking that there must be a way to do it 😛

 

The triggers are listed in the "mission.lua-file" within the .miz-file. So there must be a way to copy them and put them in their own trigger-script-file. It's just a matter of how to do it 😛

First become an aviator, then become a terminator

Posted

I tried exactly that, creating a script to activate clickable actions, but failed. The required functions were/are 'private', i.e. DCS did/does not allow them to be called from within a mission script. So I reverted back to making lists of actions...

  • 3 months later...
Posted
On 9/9/2020 at 3:10 PM, Rudel_chw said:

Does this only work in SP? Because how can you Set command for 1 aircraft when there could be multiple F15 in server? TIA!

2TBO4PZ.jpg

 

 

Posted

Look at the file: 

DCS World\Mods\aircraft\FA-18C\Cockpit\Scripts\Macro_sequencies.lua

 

It is a script that, when it is called, runs cockpit clickable functions for aircraft start-up. I should think it might be possible to adapt its format to achieve your goals.

  • 7 months later...
Posted
On 6/18/2021 at 8:54 AM, Habu_69 said:

Look at the file: 

DCS World\Mods\aircraft\FA-18C\Cockpit\Scripts\Macro_sequencies.lua

 

It is a script that, when it is called, runs cockpit clickable functions for aircraft start-up. I should think it might be possible to adapt its format to achieve your goals.

Will this only work for single player? How would you call the script on demand during startup in multiplayer sessions? I was trying to accomplish this with AutoHotKey and it was working but stopped suddenly and I don't know why. The key bind to run the macro isn't making it out of DCS to the AutoHotKey script anymore. It wasn't because of an update or anything, I was editing the script, adding to it after I had it working and then it just stopped working altogether and I can't figure out why. The script works, if I hit the hotkey for the macro in say notepad, but as said, the hotkey isn't making it out of DCS anymore or the keystrokes aren't making it from the script into DCS. I had that problem with Opentracker once, where the recenter key wasn't making it out of DCS but solved it by making sure DCS was NOT running as administrator. Still, I can't seem to figure it out. So to recap, Opentracker recenter key which is my num 5 key, makes it out of DCS when playing and recenters my headtracker, but Shift+q isn't making it out of DCS to invoke the macro, or at least seems that way, it might be making it out but the macro strokes aren't making it in to DCS then. Funny because I have the script running now and even trying to type 'shift+q' it starts running the macro, here it is in action D1122. From the thread, it sounds like VoiceAttack commands make it out of DCS and into the VoiceAttack when not focused. I'd chalk it up to DCS blocking the keystrokes but it was working just last night and then something went wrong and now nothing, no matter what script I try to activate. I might have to try another macro program. Mind you, my intent isn't to cheat or game the game, I simply get tired of having to perform the same function like setting up my weapons and radar EVERY time I hop in the jet for the first time or respawn. We should have this functionality in a Data Cartridge by now, it's ridiculous and been far too long, but it is what it is.

Posted

Works properly for me using the Auto-Start key assignment and latest DCS open beta. Check your DCS log for any clues. When I have had the issue you describe, I have always found a lua script error in the macro_sequencies file, preventing it from running.

  • 2 years later...
Posted (edited)
On 9/10/2020 at 9:15 AM, Rudel_chw said:

You need to edit the file:

\Program Files\Eagle Dynamics\DCS World OpenBeta\MissionEditor\MissionEditor.lua

Change the highlighted line so that its value is TRUE

 

CDtXpou.jpg

 

 

Posting here as this is where I ended up.
enabling tooltips has been moved

Latest solution:

the new way to enable this is, go to autoexec.cfg in your dcs saved games \config

add following line: 

input = 
{
command_code_tooltips = true,
}
Edited by Ditch
  • Like 1
Posted
1 hour ago, Ditch said:

Posting here as this is where I ended up.


yes, but why quote a post of mine from 4 years ago?

This change on the tooltips happened over 4 months ago and it was reported here:

 

 

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

I've linked that post and explained why I posted. Searching google for a solution lead me here first. I'm trying to save other ppl time is all.
"Posting here as this is where I ended up"

  • Like 1
  • 2 months later...
  • 2 weeks later...
Posted
On 2/24/2025 at 5:56 AM, RedB57 said:

I am not able to locate autoexec.cfg at all?

 

You need to manually create the file, using a good text editor, like this:

 

cfvDa51.jpg

 

My DCS folder at saved games is named "dcs.296" ... most likely your's will be different

 

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

  • Recently Browsing   0 members

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