michail-nikolaev / task-force-arma-3-radio

TeamSpeak integration for Arma 3
http://radio.task-force.ru/en/
Other
313 stars 168 forks source link

Local Saved Radio Codeplugs #663

Closed spartancain closed 5 years ago

spartancain commented 10 years ago

Had a suggestion for you, with an attached question.

Us in the 15th MEU typically use the same frequencies every day and have our own radio codeplug layouts, and it's a pain to individually set up each every time we start into an operation or training. What I suggest to make lives easier would be to add a local userconfig for TFAR in which we could save our radio codeplug, either manually or through saving from in-game, though that would be more difficult to set up. Thus, when TFAR loads in-game, it would check for the presence of a userconfig and would load the frequencies included there if found.

Additionally with this, it would be great for easy differentiation to have an alpha tag (text tag) for each channel in the codeplug that someone could also put in their userconfig. This would necessitate having a freq/alpha swap key on the radio, which would be a pain if you could even find a spare key.

Might be easier to explain with a config excerpt:

class task_force_radio_codeplug {

class sw_channel_1 {
    frequency = 130.0;
            alpha = 3RD PLT;
};

class sw_channel_2 {
    frequency = 70.0;
            alpha = AIR-GND;
};

... and so on, then

class lr_channel_1 {
    frequency = 31.0;
            alpha = F COY;
};

class lr_channel_2 {
    frequency = 30.0;
            alpha = HQ NET;
};

... and so on.

I'm digging through the scripts to see how best to do this, but I'm slow and not very good at coding, so I thought I'd pass it to you as well. Also, it's worth asking if you had anything like this in progress already so I don't double your work.

Thanks for the great mod so far, let me know what you think.

michail-nikolaev commented 10 years ago

Thanks for idea, will think about it. Currently freq setup may be implemented via script or modules at editor (per group).

spartancain commented 10 years ago

We've been toying with that too, but that forces people to have specific codeplugs that they may have to rearrange anyway (not everybody sets up the same). Came up with an idea for that though:

The module could be set to two settings: 1) Do not force plugs, allow codeplugs to be read from local userconfig. (and, as an additional thought, could have it load the module's plug if no userconfig codeplug specified) 2) Force codeplugs from module and ignore local userconfig settings.

Just as a thought that would allow mission makers to have the best of both worlds by choosing. Thanks for picking up on this.

JonBons commented 10 years ago

I actually already did a mod like this for TAW if you're interested: https://github.com/JonBons/TAW-TaskForceRadio-Config

(NOTE: this was written originally before the tf_sw_frequency & tf_lr_frequency systems were added so I'm sure it could be improved but it has the basic logic done.)

Config structure: https://github.com/JonBons/TAW-TaskForceRadio-Config/blob/master/userconfig/task_force_radio_taw/radio_layout.hpp

spartancain commented 7 years ago

Dragging this out of the dirt after two years of my own inactivity...

I just saw that addon by JonBons (thank you SO much)... it'll take a while for me, but I might see if I can dig through it and decipher how it's done and how to implement it as an integrated element.

I've never actually attempted to code a working thing (other than editing premade configs LIGHTLY) for arma, so I may not be able to do this myself and it certainly will be slow. But I'll try and look and maybe work on something if I'm able... I'd really, really love to see this happen - even if there's no way to SAVE a codeplug from game, it would be great to have so we could just create codeplug files raw and distribute them. Creating things like that through a UI can come later... for now, that's why we have MEU / Battalion S4.

If anyone else has already taken up this torch, speak on up and let me know if I can do anything for you.

dedmen commented 5 years ago

TFAR now has a ingame setting (CBA Settings) that you can use to set global frequency presets. So your request can be accomplished with that. Using 3DEN you can also configure preset frequencies on group/unit level in the editor when building the mission. If you were lazy you could just select all player groups, and set the attribute for all of them at once.