TODO: Make a Github Actions Workflow to compile this and do release
####### build.sh ########
Automatic installation of the latest SourceMod, MetamodSource and Practice Mode Plugin releases for CS:GO server on Linux.
HOW TO USE:
Prerequisite: Zip (apt install zip) or (yum install zip)
Navigate to correct CSGO server path ( The correct folder is the second csgo folder, that contains the cfg, maps, models folders and all the .vpk packs ) and execute the following commands in the console:
- "cd /home/steam/csgo/csgo/"
- "wget https://raw.githubusercontent.com/cryptozealot/csgo-practice-automation/master/build.sh"
- "chmod +x build.sh"
- "./build.sh"
Here's what the script does
- Gets latest release filenames, so we can download them in step2
- Downloads latest compiled binaries builds
- Untars SourceMod and Metamod:Source and unzips Practice Mode Plugin
- Cleans up files
####### update.sh, mainstart.sh, start.sh ########
- Copy update.sh in home directory and make it executable
- Copy mainstart.sh and start.sh in .../steam/csgo/ folder.
- Edit update.sh to set correct paths, first one is /home/steam/ and the second is /home/steam/csgo/ if using defaults.
- Execute update for one time update or add it to cron/hook for auto update. If there is no csgo server installed it will install it. If there is no new update, the script will validate game integrity.
Links:
-
SourceMod Downloads: https://www.sourcemod.net/downloads.php?branch=stable Github : https://github.com/alliedmodders/sourcemod/tree/c5efe48aa3116d836ae9b9e475647d7
-
MetaMod:Source Downloads : https://metamodsource.net/downloads.php Github : https://github.com/alliedmodders/metamod-source/tree/63da1c34c537afae6dbf084fe088e60
-
Practice Mod by Splewis : https://github.com/splewis/csgo-practice-mode/releases Github : https://github.com/splewis/csgo-practice-mode/releases
CSGO v1.37.4.4, practicemode_1.3.3.zip, mmsource-1.10.7-git971-linux.tar.gz, sourcemod-1.10.0-git6478-linux.tar.gz