Created
April 14, 2020 21:05
-
-
Save Godlikehobbit/d565669e8fbae6ba5a91ba450c2e1dcd to your computer and use it in GitHub Desktop.
Linux Arma 3 Start Scripts
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
#!/bin/bash | |
# cd into game directory | |
cd /home/steam/Steam/arma3/ | |
# var init | |
mods=""; | |
par=""; | |
servermods=""; | |
corecount=12; | |
threadcount=7; | |
# Check if the script was given an argument | |
if [[ $# -eq 0 ]] ; then | |
# read which mod list to launch the headless client with | |
read -p "Vanilla/Poland/RHS/Other (v/p/r/o): " version | |
else | |
# set version to arg 1 | |
version=$1 | |
fi | |
# apply mod list decision | |
case "$version" in | |
"v" | "V" | "Vanilla" | "vanilla") | |
echo "Launching Vanilla Server" | |
mods="" | |
servermods=""; | |
;; | |
"p" | "P" | "Poland" | "poland") | |
echo "Launching Polish Server" | |
mods="mods/@cba_a3;mods/@ace_antistasi;mods/@ace_extension;mods/@cupterrains_core;mods/@cupterrains_maps;mods/@ifa3;mods/@enhancedmovement;mods/@wmo;" | |
servermods=""; | |
echo "Not currently working"; | |
exit 1; | |
;; | |
"r" | "R" | "RHS" | "rhs" | "Rhs") | |
echo "Launching RHS Server" | |
mods="mods/@cba_a3;mods/@ace;mods/@rhsusaf;mods/@rhsafrf;mods/@rhsgref;mods/@acecompat-rhsusaf;mods/@acecompat-rhsafrf;mods/@acecompat-rhsgref;mods/@enhancedmovement;mods/@wmo;mods/@acre2;" | |
servermods="mods/@vcom;"; | |
;; | |
"o" | "O" | "Other" | "OTHER" | *) | |
echo "Launching Other Server" | |
par="otherparams.txt" | |
;; | |
esac | |
# launch server with given mods | |
./arma3server -name=Diffraction -config=server.cfg -par=${par-""} -mod=${mods-""} -serverMod=${servermods-""} -filePatching -cpuCount=${corecount-""} -exThreads="${threadcount-""}" |
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
#!/bin/bash | |
cd /home/steam/Steam/arma3/ | |
# var init | |
mods="" | |
# Server password | |
password="honk" | |
# Check if the script was given an argument | |
if [[ $# -eq 0 ]] ; then | |
# read which mod list to launch the headless client with | |
read -p "Vanilla/Poland/RHS (v/p/R): " version | |
else | |
# set version to arg 1 | |
version=$1 | |
fi | |
# apply mod list decision | |
case "$version" in | |
"v" | "V" | "Vanilla" | "vanilla") | |
echo "Launching Vanilla Client"; | |
mods=""; | |
;; | |
"p" | "P" | "Poland" | "poland") | |
echo "Launching Polish Client"; | |
mods="mods/@cba_a3;mods/@ace_antistasi;mods/@ace_extension;mods/@cupterrains_core;mods/@cupterrains_maps;mods/@ifa3;mods/@enhancedmovement;mods/@wmo;"; | |
echo "Not currently working"; | |
exit 1; | |
;; | |
"r" | "R" | "RHS" | "rhs" | "Rhs") | |
echo "Launching RHS Client"; | |
mods="mods/@cba_a3;mods/@ace;mods/@rhsusaf;mods/@rhsafrf;mods/@rhsgref;mods/@acecompat-rhsusaf;mods/@acecompat-rhsafrf;mods/@acecompat-rhsgref;mods/@enhancedmovement;mods/@wmo;mods/@acre2;" | |
servermods="mods/@vcom;"; | |
;; | |
"o" | "O" | "Other" | "OTHER" | *) | |
echo "Launching Other Client"; | |
par="otherparams.txt"; | |
;; | |
esac | |
# launch headless client with given mods and password | |
./arma3server -par="${par}" -mod="${mods}" -client -connect=127.0.0.1 -password=${password} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment