Jump to content

How to set a rotary knob for the mission?


Go to solution Solved by Rudel_chw,

Recommended Posts

Posted

Hello

Recently I've created various landing scenarios for my practice, but it was very annoying that I need to set everything in the cockpit again and again. It would be great if the plane started with the same setting like "hot" for the target aerodrome, I'm not sure whether such a shortcut exists. However, I started to experiment with triggers and go most of the stuff I needed.

I love the OPTIONS_ADD_COMMAND_CODES_TO_TOOLTIP=true setting, very useful - although first I thought it does not work until I found out it works on the right side of the Controls table, not on the left where it shows the original description.

In my case, I fly L-39, I managed to disable arms, click 19x on RSBN to set channel 20, etc. I'd like to learn to do the same in script eventually, because cloning something for 20+ clicks is indeed ridiculous. Funny that some clicks are COCKPIT PERFORM CLICKABLE ACTION (like RSBN channels) and some are SET COMMAND WITH VALUE (switching radio channel) - but it’s easy to recognize which is which (based on the presence of the device id).

It’s cumbersome, but it works, no problem there.

What puzzles me is how to set RMI course selector which is on a rotary knob. Controls say “cockpit id: 25, pressed: 3004” both for CW and CCW rotation, I tried to add COCKPIT PERFORM CLICKABLE ACTION (because there is device id) but I have no idea whether this works, what the value does, etc. I tried values from -1 to 1… but I don’t see any difference on the RMI course. Not even in units of degrees.

How can one set such an instrument in a Mission Editor?

BTW: I never made Prepare mission work for me and this plane (manual is also half-clear on this), not to mention it moves the time as well, so the trigger way is much better. If someone knows how to do it in DO SCRIPT, even better. I’m at the beginning of the scripting road and most materials are about other units, dynamic missions, etc. I couldn’t find anything about setting single player cockpit. It’s probably out there but buried under more advanced stuff.

Thanks

✈️ L-39, F-4E, F-5E, F-14, F/A-18C, MiG-15, F-86F, AJS-37, C-101, FC2024 🛩️ Yak-52, P-47, Spitfire, CE2 🚁 UH-1H, Mi-8, Ka-50 III, SA342 🗺️ NTTR, PG, SY, Chnl, Norm2, Kola, DE 📦 Supercarrier, NS430, WWII, CA 🕹️ VKB STECS+Gladiator/Kosmosima+TPR ▶️ DCS Unscripted YouTube 🐛 "Favourite" bugs: 1) Object local camera fast/slow inverted, 2) Yak-52 toggles not toggling, 3) all Caucasus ATC bugs

  • Solution
Posted (edited)
2 hours ago, virgo47 said:

... In my case, I fly L-39, I managed to disable arms, click 19x on RSBN to set channel 20, etc. I'd like to learn to do the same in script eventually, because cloning something for 20+ clicks is indeed ridiculous.

 

Yes, I wish ED would expand on the Static Templates concept, to include triggers and triggers zones .. that would make it easier to setup a Template for a specific aircraft, with all the triggers needed to set the cockpit however one wants, it shouldn't be hard to implement.

 

2 hours ago, virgo47 said:

What puzzles me is how to set RMI course selector which is on a rotary knob. Controls say “cockpit id: 25, pressed: 3004” both for CW and CCW rotation, I tried to add COCKPIT PERFORM CLICKABLE ACTION (because there is device id) but I have no idea whether this works, what the value does, etc. I tried values from -1 to 1… but I don’t see any difference on the RMI course.

 

The values work like this: 1 Moves the knob CW, while -1 moves it CCW. The amount of movement is small, so it is hard to notice.

 

2 hours ago, virgo47 said:

How can one set such an instrument in a Mission Editor?

 

You just have to repeat the COCKPIT PERFORM CLICKABLE ACTION several times (actually, a lot of times) to get a meaningful movement. See my sample mission below.

 

2 hours ago, virgo47 said:

BTW: I never made Prepare mission work for me and this plane

 

Prepare Mission works only for the A-10C and Ka-50. Seems the feature was abandoned after those two modules.

 

2 hours ago, virgo47 said:

 If someone knows how to do it in DO SCRIPT, even better.

 

No, sorry, I have never seen an equivalent of the CLICKABLE ACTION on a Script, not sure if it is even possible.

L39 - Test RMI Set.miz

Edited by Rudel_chw
  • Like 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

Thank you guys very much, the answers came so fast. 🙂

1 hour ago, Rudel_chw said:

Yes, I wish ED would expand on the Static Templates concept, to include triggers and triggers zones .. that would make it easier to setup a Template for a specific aircraft, with all the triggers needed to set the cockpit however one wants, it shouldn't be hard to implement.

There is definitely a lot to desire - although I'm in a position where I don't know the current capabilities. But this cockpit setup stuff shows just how awkward it is now. Instead of somehow saying "RSBN Navigation to 20" I need to know it's 1 at the start and repeat the click 19 times. But the same solution will not work for mission where the plane doesn't start with RSBN set to 1 - that is, even in the same mission if I change the plane from flying to hot start on the runway (imagine scenario I want some other RSBN channel there).

1 hour ago, Rudel_chw said:

The values work like this: 1 Moves the knob CW, while -1 moves it CCW. The amount of movement is small, so it is hard to notice.

You just have to repeat the COCKPIT PERFORM CLICKABLE ACTION several times (actually, a lot of times) to get a meaningful movement. See my sample mission below.

I was afraid it will come to this. 🙂 I didn't see noticeable difference hence I didn't try to clone it many a times there. But this is semi-usable, because, again, when I move the plane, I have to reconsider the initial position of the RMI - which is ridiculous.

That doesn't take away from your answer, of course, I appreciate that. I'll probably just instruct myself via a message to set RMI. 🙂 Or use first WP when convenient.

58 minutes ago, toutenglisse said:

@virgo47 and @Rudel_chw I remember this case for rotary knobs : a command with 1 and -1 values turn small amount CW or CCW, but another command's 1/-1 values turn the knob fully:

Interesting info, thanks - but RMI goes round and round - so I can't imagine getting to any known (e.g. end) position anyway. But I'll think about this when/if working with some non-continuous rotary knobs.

At least I know that in the current state of things I don't need to chase this chimera of how to set RMI precisely to a known value, which is also a good thing. 😉

✈️ L-39, F-4E, F-5E, F-14, F/A-18C, MiG-15, F-86F, AJS-37, C-101, FC2024 🛩️ Yak-52, P-47, Spitfire, CE2 🚁 UH-1H, Mi-8, Ka-50 III, SA342 🗺️ NTTR, PG, SY, Chnl, Norm2, Kola, DE 📦 Supercarrier, NS430, WWII, CA 🕹️ VKB STECS+Gladiator/Kosmosima+TPR ▶️ DCS Unscripted YouTube 🐛 "Favourite" bugs: 1) Object local camera fast/slow inverted, 2) Yak-52 toggles not toggling, 3) all Caucasus ATC bugs

  • Recently Browsing   0 members

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