Last active
May 25, 2018 12:28
-
-
Save vbawol/143795de4db107b39a4efe5b9de95670 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
by Aaron Clark - [VB]AWOL | |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. | |
http://creativecommons.org/licenses/by-sa/4.0/ | |
*/ | |
@ECHO OFF | |
SET STEAMUN=yourusername | |
SET STEAMPW=YourPa$$word | |
SET ARMASVRPATH=C:\Arma3Server | |
SET ARMAAPPID=107410 | |
:: update epoch client files, remove old bikey and install new one | |
SET MODFOLDER=@Epoch | |
:: Workshop IDs: EpochExperimental = 455221958 Normal Epoch = 421839251 | |
SET ARMAWORKSHOPID=421839251 | |
:: remove old folder | |
rd /s/q "%ARMASVRPATH%\%MODFOLDER%" | |
:: update workshop mod | |
START "" /WAIT steamcmd.exe +login %STEAMUN% %STEAMPW% +workshop_download_item %ARMAAPPID% %ARMAWORKSHOPID% validate +quit | |
:: copy files back to server | |
xcopy /s/e/y/q/i "steamapps\workshop\content\%ARMAAPPID%\%ARMAWORKSHOPID%" "%ARMASVRPATH%\%MODFOLDER%" | |
del "%ARMASVRPATH%\Keys\epoch*.bikey" | |
xcopy /s/e/y/q/i "%ARMASVRPATH%\%MODFOLDER%\Keys" "%ARMASVRPATH%\Keys" | |
:: Update @epochhive, battleye and mpmissions | |
SET ARMAWORKSHOPID=601772725 | |
:: update workshop mod | |
START "" /WAIT steamcmd.exe +login %STEAMUN% %STEAMPW% +workshop_download_item %ARMAAPPID% %ARMAWORKSHOPID% validate +quit | |
:: copy files back to server | |
xcopy /s/e/y/q/i "steamapps\workshop\content\%ARMAAPPID%\%ARMAWORKSHOPID%" "%ARMASVRPATH%\@EpochHive" | |
:: copy battleye files to live | |
xcopy /s/e/y/q/i "%ARMASVRPATH%\@EpochHive\sc\BattlEye" "%ARMASVRPATH%\SC\BattlEye" | |
:: update mission files | |
xcopy /s/e/y/q/i "%ARMASVRPATH%\@EpochHive\MPMissions" "%ARMASVRPATH%\MPMissions" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment