Browse Source

feat(install):Add config locations to install text (#2872)

pull/2891/head
WorthlessJ 5 years ago
committed by GitHub
parent
commit
523daebd71
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 113
      lgsm/functions/install_config.sh

113
lgsm/functions/install_config.sh

@ -142,27 +142,50 @@ fn_set_dst_config_vars(){
echo -e "" echo -e ""
} }
# Lists local config file locations
fn_list_config_locations(){
echo -e ""
echo -e "${lightyellow}Config File Locations${default}"
echo -e "================================="
if [ -n "${servercfgfullpath}" ]; then
if [ -f "${servercfgfullpath}" ]; then
echo -e "Game Server Config File: ${servercfgfullpath}"
elif [ -d "${servercfgfullpath}" ]; then
echo -e "Game Server Config Dir: ${servercfgfullpath}"
else
echo -e "Config file: ${red}${servercfgfullpath} (${red}FILE MISSING${default})"
fi
fi
echo -e "LinuxGSM Config: ${lgsmdir}/config-lgsm/${gameservername}"
echo -e "Documentation: https://docs.linuxgsm.com/configuration/game-server-config"
echo -e ""
}
if [ "${shortname}" == "sdtd" ]; then if [ "${shortname}" == "sdtd" ]; then
gamedirname="7DaysToDie" gamedirname="7DaysToDie"
fn_default_config_local fn_default_config_local
fn_list_config_locations
elif [ "${shortname}" == "ac" ]; then elif [ "${shortname}" == "ac" ]; then
gamedirname="AssettoCorsa" gamedirname="AssettoCorsa"
array_configs+=( server_cfg.ini ) array_configs+=( server_cfg.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ahl" ]; then elif [ "${shortname}" == "ahl" ]; then
gamedirname="ActionHalfLife" gamedirname="ActionHalfLife"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ahl2" ]; then elif [ "${shortname}" == "ahl2" ]; then
gamedirname="ActionSource" gamedirname="ActionSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ark" ]; then elif [ "${shortname}" == "ark" ]; then
gamedirname="ARKSurvivalEvolved" gamedirname="ARKSurvivalEvolved"
fn_check_cfgdir fn_check_cfgdir
@ -170,6 +193,7 @@ elif [ "${shortname}" == "ark" ]; then
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "arma3" ]; then elif [ "${shortname}" == "arma3" ]; then
gamedirname="Arma3" gamedirname="Arma3"
fn_check_cfgdir fn_check_cfgdir
@ -177,18 +201,21 @@ elif [ "${shortname}" == "arma3" ]; then
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "bo" ]; then elif [ "${shortname}" == "bo" ]; then
gamedirname="BallisticOverkill" gamedirname="BallisticOverkill"
array_configs+=( config.txt ) array_configs+=( config.txt )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "bo" ]; then elif [ "${shortname}" == "bo" ]; then
gamedirname="BaseDefense" gamedirname="BaseDefense"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "bt" ]; then elif [ "${shortname}" == "bt" ]; then
gamedirname="Barotrauma" gamedirname="Barotrauma"
fn_check_cfgdir fn_check_cfgdir
@ -196,6 +223,7 @@ elif [ "${shortname}" == "bt" ]; then
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "bt1944" ]; then elif [ "${shortname}" == "bt1944" ]; then
gamedirname="Battalion1944" gamedirname="Battalion1944"
fn_check_cfgdir fn_check_cfgdir
@ -203,120 +231,140 @@ elif [ "${shortname}" == "bt1944" ]; then
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "bf1942" ]; then elif [ "${shortname}" == "bf1942" ]; then
gamedirname="Battlefield1942" gamedirname="Battlefield1942"
array_configs+=( serversettings.con ) array_configs+=( serversettings.con )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "bs" ]; then elif [ "${shortname}" == "bs" ]; then
gamedirname="BladeSymphony" gamedirname="BladeSymphony"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "bb" ]; then elif [ "${shortname}" == "bb" ]; then
gamedirname="BrainBread" gamedirname="BrainBread"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "bb2" ]; then elif [ "${shortname}" == "bb2" ]; then
gamedirname="BrainBread2" gamedirname="BrainBread2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "bmdm" ]; then elif [ "${shortname}" == "bmdm" ]; then
gamedirname="BlackMesa" gamedirname="BlackMesa"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "cod" ]; then elif [ "${shortname}" == "cod" ]; then
gamedirname="CallOfDuty" gamedirname="CallOfDuty"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "coduo" ]; then elif [ "${shortname}" == "coduo" ]; then
gamedirname="CallOfDutyUnitedOffensive" gamedirname="CallOfDutyUnitedOffensive"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "cod2" ]; then elif [ "${shortname}" == "cod2" ]; then
gamedirname="CallOfDuty2" gamedirname="CallOfDuty2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "cod4" ]; then elif [ "${shortname}" == "cod4" ]; then
gamedirname="CallOfDuty4" gamedirname="CallOfDuty4"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "codwaw" ]; then elif [ "${shortname}" == "codwaw" ]; then
gamedirname="CallOfDutyWorldAtWar" gamedirname="CallOfDutyWorldAtWar"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "cc" ]; then elif [ "${shortname}" == "cc" ]; then
gamedirname="CodenameCURE" gamedirname="CodenameCURE"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "cs" ]; then elif [ "${shortname}" == "cs" ]; then
gamedirname="CounterStrike" gamedirname="CounterStrike"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "cscz" ]; then elif [ "${shortname}" == "cscz" ]; then
gamedirname="CounterStrikeConditionZero" gamedirname="CounterStrikeConditionZero"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "csgo" ]; then elif [ "${shortname}" == "csgo" ]; then
gamedirname="CounterStrikeGlobalOffensive" gamedirname="CounterStrikeGlobalOffensive"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "css" ]; then elif [ "${shortname}" == "css" ]; then
gamedirname="CounterStrikeSource" gamedirname="CounterStrikeSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "dod" ]; then elif [ "${shortname}" == "dod" ]; then
gamedirname="DayOfDefeat" gamedirname="DayOfDefeat"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "dods" ]; then elif [ "${shortname}" == "dods" ]; then
gamedirname="DayOfDefeatSource" gamedirname="DayOfDefeatSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "doi" ]; then elif [ "${shortname}" == "doi" ]; then
gamedirname="DayOfInfamy" gamedirname="DayOfInfamy"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "dmc" ]; then elif [ "${shortname}" == "dmc" ]; then
gamedirname="DeathmatchClassic" gamedirname="DeathmatchClassic"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "dst" ]; then elif [ "${shortname}" == "dst" ]; then
gamedirname="DontStarveTogether" gamedirname="DontStarveTogether"
fn_check_cfgdir fn_check_cfgdir
@ -324,138 +372,161 @@ elif [ "${shortname}" == "dst" ]; then
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_dst_config_vars fn_set_dst_config_vars
fn_list_config_locations
elif [ "${shortname}" == "dab" ]; then elif [ "${shortname}" == "dab" ]; then
gamedirname="DoubleActionBoogaloo" gamedirname="DoubleActionBoogaloo"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "dys" ]; then elif [ "${shortname}" == "dys" ]; then
gamedirname="Dystopia" gamedirname="Dystopia"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "eco" ]; then elif [ "${shortname}" == "eco" ]; then
gamedirname="Eco" gamedirname="Eco"
array_configs+=( Network.eco ) array_configs+=( Network.eco )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "etl" ]; then elif [ "${shortname}" == "etl" ]; then
gamedirname="ETLegacy" gamedirname="ETLegacy"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "fctr" ]; then elif [ "${shortname}" == "fctr" ]; then
gamedirname="Factorio" gamedirname="Factorio"
array_configs+=( server-settings.json ) array_configs+=( server-settings.json )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "fof" ]; then elif [ "${shortname}" == "fof" ]; then
gamedirname="FistfulofFrags" gamedirname="FistfulofFrags"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "gmod" ]; then elif [ "${shortname}" == "gmod" ]; then
gamedirname="GarrysMod" gamedirname="GarrysMod"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ges" ]; then elif [ "${shortname}" == "ges" ]; then
gamedirname="GoldenEyeSource" gamedirname="GoldenEyeSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "hldm" ]; then elif [ "${shortname}" == "hldm" ]; then
gamedirname="HalfLifeDeathmatch" gamedirname="HalfLifeDeathmatch"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "hldms" ]; then elif [ "${shortname}" == "hldms" ]; then
gamedirname="HalfLifeDeathmatchSource" gamedirname="HalfLifeDeathmatchSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "opfor" ]; then elif [ "${shortname}" == "opfor" ]; then
gamedirname="OpposingForce" gamedirname="OpposingForce"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "hl2dm" ]; then elif [ "${shortname}" == "hl2dm" ]; then
gamedirname="HalfLife2Deathmatch" gamedirname="HalfLife2Deathmatch"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ins" ]; then elif [ "${shortname}" == "ins" ]; then
gamedirname="Insurgency" gamedirname="Insurgency"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ios" ]; then elif [ "${shortname}" == "ios" ]; then
gamedirname="IOSoccer" gamedirname="IOSoccer"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "jc2" ]; then elif [ "${shortname}" == "jc2" ]; then
gamedirname="JustCause2" gamedirname="JustCause2"
array_configs+=( config.lua ) array_configs+=( config.lua )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "jc3" ]; then elif [ "${shortname}" == "jc3" ]; then
gamedirname="JustCause3" gamedirname="JustCause3"
array_configs+=( config.json ) array_configs+=( config.json )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "kf" ]; then elif [ "${shortname}" == "kf" ]; then
gamedirname="KillingFloor" gamedirname="KillingFloor"
array_configs+=( Default.ini ) array_configs+=( Default.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "l4d" ]; then elif [ "${shortname}" == "l4d" ]; then
gamedirname="Left4Dead" gamedirname="Left4Dead"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "l4d2" ]; then elif [ "${shortname}" == "l4d2" ]; then
gamedirname="Left4Dead2" gamedirname="Left4Dead2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "mc" ]; then elif [ "${shortname}" == "mc" ]; then
gamedirname="Minecraft" gamedirname="Minecraft"
array_configs+=( server.properties ) array_configs+=( server.properties )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "mcb" ]; then elif [ "${shortname}" == "mcb" ]; then
gamedirname="MinecraftBedrock" gamedirname="MinecraftBedrock"
array_configs+=( server.properties ) array_configs+=( server.properties )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "mohaa" ]; then elif [ "${shortname}" == "mohaa" ]; then
gamedirname="MedalOfHonorAlliedAssault" gamedirname="MedalOfHonorAlliedAssault"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "mh" ]; then elif [ "${shortname}" == "mh" ]; then
gamedirname="Mordhau" gamedirname="Mordhau"
fn_check_cfgdir fn_check_cfgdir
@ -463,41 +534,48 @@ elif [ "${shortname}" == "mh" ]; then
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ns" ]; then elif [ "${shortname}" == "ns" ]; then
gamedirname="NaturalSelection" gamedirname="NaturalSelection"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "nmrih" ]; then elif [ "${shortname}" == "nmrih" ]; then
gamedirname="NoMoreRoominHell" gamedirname="NoMoreRoominHell"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "nd" ]; then elif [ "${shortname}" == "nd" ]; then
gamedirname="NuclearDawn" gamedirname="NuclearDawn"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "mta" ]; then elif [ "${shortname}" == "mta" ]; then
gamedirname="MultiTheftAuto" gamedirname="MultiTheftAuto"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( acl.xml mtaserver.conf vehiclecolors.conf ) array_configs+=( acl.xml mtaserver.conf vehiclecolors.conf )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_list_config_locations
elif [ "${shortname}" == "mumble" ]; then elif [ "${shortname}" == "mumble" ]; then
gamedirname="Mumble" gamedirname="Mumble"
array_configs+=( murmur.ini ) array_configs+=( murmur.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_list_config_locations
elif [ "${shortname}" == "pvkii" ]; then elif [ "${shortname}" == "pvkii" ]; then
gamedirname="PiratesVikingandKnightsII" gamedirname="PiratesVikingandKnightsII"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "pz" ]; then elif [ "${shortname}" == "pz" ]; then
gamedirname="ProjectZomboid" gamedirname="ProjectZomboid"
fn_check_cfgdir fn_check_cfgdir
@ -505,143 +583,167 @@ elif [ "${shortname}" == "pz" ]; then
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "pc" ]; then elif [ "${shortname}" == "pc" ]; then
gamedirname="ProjectCars" gamedirname="ProjectCars"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "q2" ]; then elif [ "${shortname}" == "q2" ]; then
gamedirname="Quake2" gamedirname="Quake2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "q3" ]; then elif [ "${shortname}" == "q3" ]; then
gamedirname="Quake3Arena" gamedirname="Quake3Arena"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ql" ]; then elif [ "${shortname}" == "ql" ]; then
gamedirname="QuakeLive" gamedirname="QuakeLive"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "qw" ]; then elif [ "${shortname}" == "qw" ]; then
gamedirname="QuakeWorld" gamedirname="QuakeWorld"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ricochet" ]; then elif [ "${shortname}" == "ricochet" ]; then
gamedirname="Ricochet" gamedirname="Ricochet"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "rtcw" ]; then elif [ "${shortname}" == "rtcw" ]; then
gamedirname="ReturnToCastleWolfenstein" gamedirname="ReturnToCastleWolfenstein"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "rust" ]; then elif [ "${shortname}" == "rust" ]; then
gamedirname="Rust" gamedirname="Rust"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_list_config_locations
elif [ "${shortname}" == "samp" ]; then elif [ "${shortname}" == "samp" ]; then
gamedirname="SanAndreasMultiplayer" gamedirname="SanAndreasMultiplayer"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ss3" ]; then elif [ "${shortname}" == "ss3" ]; then
gamedirname="SeriousSam3BFE" gamedirname="SeriousSam3BFE"
array_configs+=( server.ini ) array_configs+=( server.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "sol" ]; then elif [ "${shortname}" == "sol" ]; then
gamedirname="Soldat" gamedirname="Soldat"
array_configs+=( soldat.ini ) array_configs+=( soldat.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "sof2" ]; then elif [ "${shortname}" == "sof2" ]; then
gamedirname="SoldierOfFortune2Gold" gamedirname="SoldierOfFortune2Gold"
array_configs+=( server.cfg mapcycle.txt) array_configs+=( server.cfg mapcycle.txt)
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "sfc" ]; then elif [ "${shortname}" == "sfc" ]; then
gamedirname="SourceFortsClassic" gamedirname="SourceFortsClassic"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "squad" ]; then elif [ "${shortname}" == "squad" ]; then
gamedirname="Squad" gamedirname="Squad"
array_configs+=( Admins.cfg Bans.cfg License.cfg Server.cfg Rcon.cfg ) array_configs+=( Admins.cfg Bans.cfg License.cfg Server.cfg Rcon.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "sb" ]; then elif [ "${shortname}" == "sb" ]; then
gamedirname="Starbound" gamedirname="Starbound"
array_configs+=( starbound_server.config ) array_configs+=( starbound_server.config )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "st" ]; then elif [ "${shortname}" == "st" ]; then
gamedirname="Stationeers" gamedirname="Stationeers"
array_configs+=( default.ini ) array_configs+=( default.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "sven" ]; then elif [ "${shortname}" == "sven" ]; then
gamedirname="SvenCoop" gamedirname="SvenCoop"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "tf2" ]; then elif [ "${shortname}" == "tf2" ]; then
gamedirname="TeamFortress2" gamedirname="TeamFortress2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "tfc" ]; then elif [ "${shortname}" == "tfc" ]; then
gamedirname="TeamFortressClassic" gamedirname="TeamFortressClassic"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ts" ]; then elif [ "${shortname}" == "ts" ]; then
gamedirname="TheSpecialists" gamedirname="TheSpecialists"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ts3" ]; then elif [ "${shortname}" == "ts3" ]; then
gamedirname="TeamSpeak3" gamedirname="TeamSpeak3"
array_configs+=( ts3server.ini ) array_configs+=( ts3server.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_list_config_locations
elif [ "${shortname}" == "tw" ]; then elif [ "${shortname}" == "tw" ]; then
gamedirname="Teeworlds" gamedirname="Teeworlds"
array_configs+=( server.cfg ctf.cfg dm.cfg duel.cfg tdm.cfg ) array_configs+=( server.cfg ctf.cfg dm.cfg duel.cfg tdm.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "terraria" ]; then elif [ "${shortname}" == "terraria" ]; then
gamedirname="Terraria" gamedirname="Terraria"
array_configs+=( serverconfig.txt ) array_configs+=( serverconfig.txt )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "tu" ]; then elif [ "${shortname}" == "tu" ]; then
gamedirname="TowerUnite" gamedirname="TowerUnite"
fn_check_cfgdir fn_check_cfgdir
@ -649,64 +751,75 @@ elif [ "${shortname}" == "tu" ]; then
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ut" ]; then elif [ "${shortname}" == "ut" ]; then
gamedirname="UnrealTournament" gamedirname="UnrealTournament"
array_configs+=( Game.ini Engine.ini ) array_configs+=( Game.ini Engine.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ut2k4" ]; then elif [ "${shortname}" == "ut2k4" ]; then
gamedirname="UnrealTournament2004" gamedirname="UnrealTournament2004"
array_configs+=( UT2004.ini ) array_configs+=( UT2004.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ut99" ]; then elif [ "${shortname}" == "ut99" ]; then
gamedirname="UnrealTournament99" gamedirname="UnrealTournament99"
array_configs+=( Default.ini ) array_configs+=( Default.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "unt" ]; then elif [ "${shortname}" == "unt" ]; then
gamedirname="Unturned" gamedirname="Unturned"
array_configs+=( Config.json ) array_configs+=( Config.json )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "vs" ]; then elif [ "${shortname}" == "vs" ]; then
gamedirname="VampireSlayer" gamedirname="VampireSlayer"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "wet" ]; then elif [ "${shortname}" == "wet" ]; then
gamedirname="WolfensteinEnemyTerritory" gamedirname="WolfensteinEnemyTerritory"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "wf" ]; then elif [ "${shortname}" == "wf" ]; then
gamedirname="Warfork" gamedirname="Warfork"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "wurm" ]; then elif [ "${shortname}" == "wurm" ]; then
gamedirname="WurmUnlimited" gamedirname="WurmUnlimited"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "zmr" ]; then elif [ "${shortname}" == "zmr" ]; then
gamedirname="ZombieMasterReborn" gamedirname="ZombieMasterReborn"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "zps" ]; then elif [ "${shortname}" == "zps" ]; then
gamedirname="ZombiePanicSource" gamedirname="ZombiePanicSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
fn_list_config_locations
fi fi

Loading…
Cancel
Save