Last active
March 25, 2019 09:50
-
-
Save insanity54/49ec96c3d27bb2dcaa67cee3154b1d09 to your computer and use it in GitHub Desktop.
Provision a Windows server to be a 24/7 Karkand Server (Offworld Industries Squad)
This file contains hidden or 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
# install choco | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco install -y steamcmd python vcbuildtools | |
# install magic-wormhole for admin purposes | |
python -m pip install --upgrade pip | |
pip install --user incremental magic-wormhole | |
# Run Steamcmd and install Squad | |
# Steam game id 403240 is Squad Dedicated Server | |
# Steam game id 393380 is Squad Client | |
# download helicopter mod, karkand mod, and copy to server directory | |
steamcmd +login anonymous +force_install_dir "C:\servers\squad_server" +app_update 403240 validate +quit | |
steamcmd +login anonymous +force_install_dir "C:\servers\squad_server" +workshop_download_item 393380 1205163003 +quit | |
steamcmd +login anonymous +force_install_dir "C:\servers\squad_server" +workshop_download_item 393380 1313956617 +quit | |
# delete client mod since it's unecessary for the server | |
Remove-Item -LiteralPath "C:\servers\squad_server\Squad\Plugins\Mods\1205163003" -Force -Recurse | |
Remove-Item -LiteralPath "C:\servers\squad_server\Squad\Plugins\Mods\1313956617" -Force -Recurse | |
# copy the workshop content from the client-specific workshop directory to the server-specific Mods directory | |
Copy-Item "C:\servers\squad_server\steamapps\workshop\content\393380" -Destination "C:\servers\squad_server\Squad\Plugins\Mods\" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment