joew00

Mods Download/Update [STEAMCMD / BAT]

4 posts in this topic

Hi!

I made one BAT script to download/update steam workshop mods by steamcmd.
I've SteamCMD installed on my dedicated server and this batch uses only it to install or update any mod that you want.

Requeriments:
x SteamCMD: https://developer.valvesoftware.com/wiki/SteamCMD

Instructions:
1- Save the file: Arma3-Mods-Update.bat in SteamCMD folder.
2- FInd :: MODS IDS and place there all your mods, just like as the example on file.
3- Note that double " :: " is comment, so the script will ignore those lines. I uses it to help me knew the Mods Names and to note somethings important.
4- Choose between 2 options: 1) Ask for steam username and steam pass all time that you run the file or 2) Set them one time and save it on the .BAT. Comment all lines that you don't want.
5- Run the Arma3-Mods-Update.bat (just open it) and wait. The program will close after finishing download all mods.
6- The mods will be saved in the folder: SteamCMD\steamapps\workshop\content\107410

Arma3-Mods-Update.bat

Spoiler

@echo off

:: MODS IDs

:: CUP CORE
set Mods[0]=583496184

:: CUP MAPS
set Mods[1]=583544987

:: MODS ID END

echo This Will Install/Update Arma3 Mods
echo.
echo Author: Joew
echo Credits: tinboye - Gives me the cmd to update mods.
echo.

:: STEAM CONFIGS

:: OPTION 1: ASKING FOR STEAM LOGIN AND PASS

set /p login=Steam Login: 
echo.
set /p pass=Steam Pass: 
echo.

:: END OPTION 1

:: OPTION 2: Set your steam and pass and save it. (I don't recommend this for security)

::set "login=YOUR_STEAM_LOGIN"
::set "pass=YOUR_STEAM_PASS"

:: END OPTION 2

:: END STEAM CONFIGS

:: Folder Mods => SteamCMD\steamapps\workshop\content\107410

set "x=0"

:SymLoop
if defined Mods[%x%] (
	call set list=%list% +"workshop_download_item 107410 %%Mods[%x%]%%" validate
    set /a "x+=1"
    GOTO :SymLoop
)
echo.
steamcmd +login %login% %pass%%list% +quit

 


Credits to @tinboye that helped me:

Sorry for my english.

Edited by joew00
  • Like 2

Share this post


Link to post
Share on other sites

Thanks for this update, works great, I added all these mods and able to run, then I just created linksym from where they are installed.

 

Spoiler

@echo off

:: MODS IDs

:: _AEM
set Mods[0]=333310405

:: _Epoch
set Mods[1]=421839251

:: _Bornholm_A3
set Mods[2]=428181330

:: _CBA_A3
set Mods[3]=450814997

:: _ACE3
set Mods[4]=463939057

:: _Australia_A3
set Mods[5]=485417177

:: _CUP_Weapons
set Mods[6]=497660133

:: _CUP_Units
set Mods[7]=497661914

:: _Esseker_A3
set Mods[8]=498101407

:: _NATO_Rus_Weapons
set Mods[9]=500929500

:: _NATO_Rus_Vehicle
set Mods[10]=501552467

:: _Ryanzombies
set Mods[11]=501966277

:: _JBAD
set Mods[12]=520618345

:: _CUP_Vehicles
set Mods[13]=541888371

:: _CUP_ACE3_Weapons
set Mods[14]=549676314

:: _CUP_Terrains_Core
set Mods[15]=583496184

:: _CUP_Terrains_Maps
set Mods[16]=583544987

:: _DPA4E
set Mods[17]=595479151

:: _RDS_Civilian_Pack
set Mods[18]=612930542

:: _eXpoch_RZ_Infection
set Mods[19]=614815221

:: _CUP_ACE3_Vehicles
set Mods[20]=621650475

:: _EBM
set Mods[21]=647753401

:: _Isla_Abramia_A3
set Mods[22]=648775794

:: _NATO_Rus_Weapons_CBA
set Mods[23]=677119005

:: _Chernarus_Summer
set Mods[24]=682017832

:: _Panthera_A3
set Mods[25]=708278910

:: _Lingor_A3
set Mods[26]=718649903

:: _A2OP
set Mods[27]=724594534

:: _Chernarus_Winter
set Mods[28]=744733174

:: _BloodLustLite
set Mods[29]=753617266

:: _TRYK
set Mods[30]=779520435

:: _SM_Zombz
set Mods[31]=779675063

:: _eXpoch_A4E
set Mods[32]=779859121

:: _Open_Chernarus_Project_JBAD
set Mods[33]=786865959

:: _Namalsk_A3
set Mods[34]=795706713

:: _eXpoch_ACE
set Mods[35]=810406203

:: _Napf_A3
set Mods[36]=829364398

:: _Taunus
set Mods[37]=836147398

:: _RHSAFRF
set Mods[38]=843425103

:: _RHSUSAF
set Mods[39]=843577117

:: _RHSGREF
set Mods[40]=843593391

:: _RHSSAF
set Mods[41]=843632231

:: _CUP_Terrains_CWA
set Mods[42]=853743366

:: _eXpoch_Companion_Pack
set Mods[43]=878771089

:: MODS ID END

echo This Will Install/Update Arma3 Mods
echo.
echo Author: Joew
echo Credits: tinboye - Gives me the cmd to update mods.
echo.

:: STEAM CONFIGS

::Path to SteamCMD without \
set "steamcmdpath=E:\Mods"

:: OPTION 1: ASKING FOR STEAM LOGIN AND PASS

set /p login=Steam Login: 
echo.
set /p pass=Steam Pass:
echo.

:: END OPTION 1

:: OPTION 2: Set your steam and pass and save it. (I don't recommend this for security)

::set "login=YOUR_STEAM_LOGIN"
::set "pass=YOUR_STEAM_PASS"

:: END OPTION 2

:: END STEAM CONFIGS

:: Folder Mods => SteamCMD\steamapps\workshop\content\107410

set "x=0"

:SymLoop
if defined Mods[%x%] (
	call set list=%list% +"workshop_download_item 107410 %%Mods[%x%]%%" validate
    set /a "x+=1"
    GOTO :SymLoop
)
echo.
%steamcmdpath%\steamcmd +login %login% %pass% %list%

 

here is a batch file to make linksyms as well as copy all bikeys into keys folder, and also linksym that folder into where your server is, it is crude, but it works . if anyone wants to improve on it, lmk.

Spoiler

@Echo Off
SET "ServerPath=E:\server"
SET "steamcmdmodpath=E:\Mods\steamapps\workshop\content\107410"
::
::
::0
MKLINK /J "%ServerPath%\keys" "%steamcmdmodpath%\keys"
::
::
::1
MKLINK /J "%ServerPath%\@AEM" "%steamcmdmodpath%\333310405"
::
::
::2
MKLINK /J "%ServerPath%\@Epoch" "%steamcmdmodpath%\421839251"
::
::
::3
MKLINK /J "%ServerPath%\@Bornholm_A3" "%steamcmdmodpath%\428181330"
::
::
::4
MKLINK /J "%ServerPath%\@CBA_A3" "%steamcmdmodpath%\450814997"
::
::
::5
MKLINK /J "%ServerPath%\@ACE3" "%steamcmdmodpath%\463939057"
::
::
::6
MKLINK /J "%ServerPath%\@Australia_A3" "%steamcmdmodpath%\485417177"
::
::
::7
MKLINK /J "%ServerPath%\@CUP_Weapons" "%steamcmdmodpath%\497660133"
::
::
::8
MKLINK /J "%ServerPath%\@CUP_Units" "%steamcmdmodpath%\497661914"
::
::
::9
MKLINK /J "%ServerPath%\@Esseker_A3" "%steamcmdmodpath%\498101407"
::
::
::10
MKLINK /J "%ServerPath%\@NATO_Rus_Weapons" "%steamcmdmodpath%\500929500"
::
::
::11
MKLINK /J "%ServerPath%\@NATO_Rus_Vehicle" "%steamcmdmodpath%\501552467"
::
::
::12
MKLINK /J "%ServerPath%\@Ryanzombies" "%steamcmdmodpath%\501966277"
::
::
::13
MKLINK /J "%ServerPath%\@CUP_Vehicles" "%steamcmdmodpath%\541888371"
::
::
::14
MKLINK /J "%ServerPath%\@CUP_ACE3_Weapons" "%steamcmdmodpath%\549676314"
::
::
::15
MKLINK /J "%ServerPath%\@CUP_Terrains_Core" "%steamcmdmodpath%\583496184"
::
::
::16
MKLINK /J "%ServerPath%\@CUP_Terrains_Maps" "%steamcmdmodpath%\583544987"
::
::
::17
MKLINK /J "%ServerPath%\@RDS_Civilian_Pack" "%steamcmdmodpath%\612930542"
::
::
::18
MKLINK /J "%ServerPath%\@RZ_Infection_eXpoch" "%steamcmdmodpath%\614815221"
::
::
::19
MKLINK /J "%ServerPath%\@CUP_ACE3_Vehicles" "%steamcmdmodpath%\621650475"
::
::
::20
MKLINK /J "%ServerPath%\@EBM" "%steamcmdmodpath%\647753401"
::
::
::21
MKLINK /J "%ServerPath%\@NATO_Rus_Weapons_CBA" "%steamcmdmodpath%\677119005"
::
::
::22
MKLINK /J "%ServerPath%\@Chernarus_Summer" "%steamcmdmodpath%\682017832"
::
::
::23
MKLINK /J "%ServerPath%\@Panthera_A3" "%steamcmdmodpath%\708278910"
::
::
::24
MKLINK /J "%ServerPath%\@Lingor_A3" "%steamcmdmodpath%\718649903"
::
::
::25
MKLINK /J "%ServerPath%\@A2OP" "%steamcmdmodpath%\724594534"
::
::
::26
MKLINK /J "%ServerPath%\@Chernarus_Winter" "%steamcmdmodpath%\744733174"
::
::
::27
MKLINK /J "%ServerPath%\@TRYK" "%steamcmdmodpath%\779520435"
::
::
::28
MKLINK /J "%ServerPath%\@SM_Zombz" "%steamcmdmodpath%\779675063"
::
::
::29
MKLINK /J "%ServerPath%\@Open_Chernarus_Project_JBAD" "%steamcmdmodpath%\786865959"
::
::
::30
MKLINK /J "%ServerPath%\@Namalsk_A3" "%steamcmdmodpath%\795706713"
::
::
::31
MKLINK /J "%ServerPath%\@Napf_A3" "%steamcmdmodpath%\829364398"
::
::
::32
MKLINK /J "%ServerPath%\@Taunus_A3" "%steamcmdmodpath%\836147398"
::
::
::33
MKLINK /J "%ServerPath%\@CUP_Terrains_CWA" "%steamcmdmodpath%\853743366"
::
::
::34
MKLINK /J "%ServerPath%\@BloodLust_Lite" "%steamcmdmodpath%\753617266"
::
::
::35
MKLINK /J "%ServerPath%\@RHSAFRF" "%steamcmdmodpath%\843425103"
::
::
::36
MKLINK /J "%ServerPath%\@RHSUSAF" "%steamcmdmodpath%\843577117"
::
::
::37
MKLINK /J "%ServerPath%\@RHSGREF" "%steamcmdmodpath%\843593391"
::
::
::38
MKLINK /J "%ServerPath%\@RHSSAF" "%steamcmdmodpath%\843632231"
::
::
::39
MKLINK /J "%ServerPath%\@JBAD" "%steamcmdmodpath%\520618345"
::
::
::40
MKLINK /J "%ServerPath%\@Isla_Abramia_A3" "%steamcmdmodpath%\648775794"
::
::

robocopy %steamcmdmodpath% *.bikey %steamcmdmodpath%\keys\ *.pdf /S /R:1 /W:1 /NDL /XJD /XD OutputFolder /L
exit

 

 

Edited by tinboye
  • Like 2

Share this post


Link to post
Share on other sites
Advertisement

This is AWESOME!   

One question  How can i make it show a List of Mods to download VS downloading them all at once?  :/  That way it doesnt download/update all the mods again and i can select the ones that are needed :)

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.