dcs-liberation / dcs_liberation

DCS World dynamic campaign.
GNU Lesser General Public License v3.0
711 stars 185 forks source link

Support for custom radio preset lists #835

Open Bankler opened 3 years ago

Bankler commented 3 years ago

Is your feature request related to a problem? Please describe. In our group, we have a set list of presets and frequencies that we use in all aircraft in all missions. It's based on the standard DCS list (305, 264, 265 etc), with assigned functions for each preset. For instance (1. Carrier Tower (Human), 2. Carrier Tower (AI), 3. Package and so on). For this to be possible, we change the presets on all the aircraft that don't automatically have these freqs (like F-14B, A-10C and so on). It would be nice if we could use this standard in Liberation missions.

Describe the solution you'd like 1) A way of setting a default preset list, that is assigned to all radios in all aircraft in the coallition. Doesn't have to have a GUI. It could be as simple as:

Presets_Default.txt
1 305.00
2 264.00
3 265.00
(etc)

2) A way of overriding certain aircraft types/radios. Could be important for aircraft with certain limitations making the default list not work for them. For instance:

Presets_AJS37.txt
1 270.00
2 257.00
3 265.00
(etc)

3) If possible, support for this to also work with the A-10C, which AFAIK doesn't keep the freqs in the mission file, but require the presets to be specified in UHF_RADIO/SETTINGS.lua which should be a file in the miz structure.

Additional context Here's a link to how our (MasterArms.se) standard comms plan look like, which is the one we'd like to use in Liberation missions. This could probably be useful as a test case. https://wiki.masterarms.se/index.php?title=Comms

There are some details to think about for this feature to be absolutely water proof. For instance, some aircraft have multiple radios, where one supports UHF and the other VHF, and even more exotic stuff in aircraft like the Ka-50. I'm not sure what's the best solution for this. I guess the end-user could write a txt list for each aircraft/radio tuple (Like Ka-50_1.txt, Ka-50_2.txt) or maybe include several radios in one txt? In the mission lua, for each aircraft, there is a list of radios (just identified with an index, no name), each carrying a list of freqs. So I guess it could be easiest to align with this format in some way.

Presets_Ka-50.txt
Radio 1
1 21.5
2 25.7
3 27.0
(etc)

Radio 2
0.625
0.303
0.289
(etc)
phoenixegmh commented 3 years ago

Absolutely seconded! In the intervening period, does the system generate frequencies itself or does it pull them from a file within DCS?

DanAlbert commented 3 years ago

They're allocated as needed. The behavior cannot be modified by the player.

Furia139 commented 3 years ago

Along with this request I would like to ask a less ambitious option that would be aimed only to some particular vehicles. Carriers CVN and LHA (Radio, Tacank and ICLS) Tankers (based on type) (Radio and Tacan) AWACS (Radio)

Me and my colleagues are playing a campaign where we do use our own Comms Plan and I need to manually edit the miz file everytime to change thos carrier, tankers and AWACS frequencies. Since those units are AI controlled and more limited in numbers I hope this is something easier to integrate in Liberation. Thanks