Varrkan82 / Arma3-MODs-Updater-Downloader

ArmA 3 MODs updater/downloader for Linux Servers
MIT License
6 stars 1 forks source link

Add ability to download/update mods from from file preset. #4

Open ogaseb opened 3 years ago

ogaseb commented 3 years ago

Hi there! I hope you're doing great in this covid time. I have a small question. Is it possible to make this script take a file with id's of the mod and check if they exist already and if not download/update them? My very simple node parser is capable of generating a very simple txt file with all info needed for this from the HTML preset file.

...
@2071282396 - BRF Faction Pack
@861133494 - JSRS SOUNDMOD
@1624803912 - JSRS SOUNDMOD - CUP WEAPONS MOD SOUND SUPPORT
@2127693591 - Real Engine
@825174634 - Suppress
@825172265 - Immerse
@2179632906 - Task Force 132 Sounds
@1981964169 - CUP Terrains - Maps 2.0

-mod="@843425103;@843577117;@450814997;@583496184;@843593391; ... "

@843425103;@843577117;@450814997;@583496184;@843593391; ...

https://github.com/ProPanek/Arma3ModsPresetParser

I'm using it now for our hosted server with TCAdmin, but I want to automate this process as much as possible on my machine.

After getting my mini PC (where I will be hosting a small arma 3 server and do some dev stuff) I will probably try to implement it myself somehow, and maybe then making a PR for your script with new arg. etc. And now I'm curious if you were planning to add something like this by yourself in the future? (there is a chance my attempt will be a failure as I have no experience with bash scripting :P )

ogaseb commented 3 years ago

Hmm or at least it would be great to add the ability to download the mod by something like ./a3upddownmods.sh -d 'modID' and then I could handle downloading mods one by one in my nodejs script. But yeah, those are just suggestions.

Varrkan82 commented 3 years ago

Hi. I'm thinking about to add something like a batch mods downloading. It could be something like a list in a file or just a list of IDs in a CLI as a parameters. Unfortunately have a lack of time currently to implement something big like this functionality.