mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
Release 161030 (#1162)
* If there are backups in backup dir. Fixes #1140 * mainly improves logging #1098 * Better logging, output & compatibility #1098 * fn_check_cfgdir for Rust fixes #1141 * fn_set_config_vars is not for every game removing some games i know don't use it * Install config if missing fixes #1142 * Clear more logs #1137 * Putting all this into functions & prepare noprompt * noprompt & shutdownonbackup #1098 * fix syntax & messages #1098 * messages that make more sense #1098 * New backup vars # Backup maxbackups="4" maxbackupdays="30" stoponbackup="on" * Should fix missing cached mem #1143 * fix the fix for #1143 (close double quote) * move -type f before -mtime * New gameservers & features (#1158) * Two # is now one block of settings & descriptions * directories comments and logs naming * dgibbs revision and root check * update_steamcmd.sh Check is now done out of functions * Better way to detect screen #1154 and #1156 * Backup function improvements (#1161) * Added no of days since last backup * Added lock file creation to logs * Improvements up command_backup.sh Changes to the messages displayed on screen added trap and improved lockfile support renamed some functions other misc changes * Updated Version numbers
This commit is contained in:
parent
7ba92a1ef7
commit
a3e98d0039
@ -1,67 +1,93 @@
|
||||
#!/bin/bash
|
||||
# 7 Days To Die
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: 7 Days To Die | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# http://7daystodie.gamepedia.com/Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | http://7daystodie.gamepedia.com/Server
|
||||
fn_parms(){
|
||||
parms="-logfile ${gamelogdir}/output_log__`date +%Y-%m-%d__%H-%M-%S`.txt -quit -batchmode -nographics -dedicated -configfile=${servercfgfullpath}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="294420"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="294420"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="sdtd-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="7 Days To Die"
|
||||
engine="unity3d"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="sdtd-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +96,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="./7DaysToDieServer.x86"
|
||||
@ -77,25 +105,27 @@ servercfg="${servicename}.xml"
|
||||
servercfgdefault="serverconfig.xml"
|
||||
servercfgdir="${filesdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${rootdir}/log/server"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
gamelog="${gamelogdir}/${servicename}-game.log"
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -152,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
|
@ -1,36 +1,28 @@
|
||||
#!/bin/bash
|
||||
# ARK: Survivial Evolved
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: ARK: Survival Evolved | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
servername="ark-server"
|
||||
port="7778"
|
||||
queryport="27015"
|
||||
@ -38,35 +30,66 @@ rconport="32330"
|
||||
rconpassword="" # Set to enable rcon
|
||||
maxplayers="50"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care
|
||||
fn_parms(){
|
||||
parms="\"TheIsland?listen?MultiHome=${ip}?SessionName=${servername}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?ServerAdminPassword=${rconpassword}\""
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="376030"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="376030"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="ark-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="ARK: Survivial Evolved"
|
||||
engine="unreal4"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ark-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -75,6 +98,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/ShooterGame"
|
||||
executabledir="${systemdir}/Binaries/Linux"
|
||||
executable="./ShooterGameServer"
|
||||
@ -82,24 +107,26 @@ servercfgdir="${systemdir}/Saved/Config/LinuxServer"
|
||||
servercfg="GameUserSettings.ini"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
servercfgdefault="${servercfgdir}/GameUserSettings.ini"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -156,8 +183,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
|
@ -1,135 +0,0 @@
|
||||
[ServerSettings]
|
||||
AllowFlyerCarryPvE=False
|
||||
AllowThirdPersonPlayer=False
|
||||
AlwaysNotifyPlayerLeft=False
|
||||
AutoSavePeriodMinutes=15.000000
|
||||
ClampResourceHarvestDamage=False
|
||||
DayCycleSpeedScale=1.000000
|
||||
DayTimeSpeedScale=1.000000
|
||||
DifficultyOffset=0.200000
|
||||
DinoCharacterFoodDrainMultiplier=1.000000
|
||||
DinoCharacterHealthRecoveryMultiplier=1.000000
|
||||
DinoCharacterStaminaDrainMultiplier=1.000000
|
||||
DinoCountMultiplier=1.000000
|
||||
DinoDamageMultiplier=1.000000
|
||||
DinoResistanceMultiplier=1.000000
|
||||
DisableStructureDecayPvE=False
|
||||
DontAlwaysNotifyPlayerJoined=False
|
||||
EnablePvPGamma=False
|
||||
GlobalVoiceChat=False
|
||||
HarvestAmountMultiplier=1.000000
|
||||
HarvestHealthMultiplier=1.000000
|
||||
KickIdlePlayersPeriod=2400.000000
|
||||
NewMaxStructuresInRange=6000.000000
|
||||
NightTimeSpeedScale=1.000000
|
||||
NoTributeDownloads=False
|
||||
PlayerCharacterFoodDrainMultiplier=1.000000
|
||||
PlayerCharacterHealthRecoveryMultiplier=1.000000
|
||||
PlayerCharacterStaminaDrainMultiplier=1.000000
|
||||
PlayerCharacterWaterDrainMultiplier=1.000000
|
||||
PlayerDamageMultiplier=1.000000
|
||||
PlayerResistanceMultiplier=1.000000
|
||||
ProximityChat=False
|
||||
ProximityVoiceChat=False
|
||||
PvEStructureDecayDestructionPeriod=0.000000
|
||||
PvEStructureDecayPeriodMultiplier=1.000000
|
||||
RCONEnabled=True
|
||||
RCONPort=32330
|
||||
ResourcesRespawnPeriodMultiplier=1.000000
|
||||
ServerAdminPassword=adminpassword
|
||||
ServerCrosshair=False
|
||||
ServerForceNoHUD=False
|
||||
ServerHardcore=False
|
||||
ServerPassword=
|
||||
ServerPVE=False
|
||||
ShowMapPlayerLocation=False
|
||||
StructureDamageMultiplier=1.000000
|
||||
StructureResistanceMultiplier=1.000000
|
||||
TamedDinoDamageMultiplier=1.000000
|
||||
TamedDinoResistanceMultiplier=1.000000
|
||||
TamingSpeedMultiplier=1.000000
|
||||
XPMultiplier=1.000000
|
||||
|
||||
[/Script/ShooterGame.ShooterGameUserSettings]
|
||||
MasterAudioVolume=1.000000
|
||||
MusicAudioVolume=1.000000
|
||||
SFXAudioVolume=1.000000
|
||||
VoiceAudioVolume=1.000000
|
||||
CameraShakeScale=1.000000
|
||||
bFirstPersonRiding=False
|
||||
bThirdPersonPlayer=False
|
||||
bShowStatusNotificationMessages=True
|
||||
TrueSkyQuality=0.270000
|
||||
FOVMultiplier=1.000000
|
||||
GroundClutterDensity=1.000000
|
||||
bFilmGrain=False
|
||||
bMotionBlur=True
|
||||
bUseDFAO=True
|
||||
bUseSSAO=True
|
||||
bShowChatBox=True
|
||||
bCameraViewBob=True
|
||||
bInvertLookY=False
|
||||
bFloatingNames=True
|
||||
bChatBubbles=True
|
||||
bHideServerInfo=False
|
||||
bJoinNotifications=False
|
||||
bCraftablesShowAllItems=True
|
||||
LookLeftRightSensitivity=1.000000
|
||||
LookUpDownSensitivity=1.000000
|
||||
GraphicsQuality=2
|
||||
ActiveLingeringWorldTiles=10
|
||||
ClientNetQuality=3
|
||||
LastServerSearchType=0
|
||||
LastServerSearchHideFull=False
|
||||
LastServerSearchProtected=False
|
||||
HideItemTextOverlay=False
|
||||
bDistanceFieldShadowing=True
|
||||
LODScalar=1.000000
|
||||
HighQualityMaterials=True
|
||||
HighQualitySurfaces=True
|
||||
bTemperatureF=False
|
||||
bDisableTorporEffect=False
|
||||
bChatShowSteamName=False
|
||||
bChatShowTribeName=True
|
||||
EmoteKeyBind1=0
|
||||
EmoteKeyBind2=0
|
||||
bUseVSync=False
|
||||
ResolutionSizeX=1280
|
||||
ResolutionSizeY=720
|
||||
LastUserConfirmedResolutionSizeX=1280
|
||||
LastUserConfirmedResolutionSizeY=720
|
||||
WindowPosX=-1
|
||||
WindowPosY=-1
|
||||
bUseDesktopResolutionForFullscreen=False
|
||||
FullscreenMode=2
|
||||
LastConfirmedFullscreenMode=2
|
||||
Version=5
|
||||
|
||||
[ScalabilityGroups]
|
||||
sg.ResolutionQuality=100
|
||||
sg.ViewDistanceQuality=3
|
||||
sg.AntiAliasingQuality=3
|
||||
sg.ShadowQuality=3
|
||||
sg.PostProcessQuality=3
|
||||
sg.TextureQuality=3
|
||||
sg.EffectsQuality=3
|
||||
sg.TrueSkyQuality=3
|
||||
sg.GroundClutterQuality=3
|
||||
sg.IBLQuality=1
|
||||
sg.HeightFieldShadowQuality=3
|
||||
|
||||
[SessionSettings]
|
||||
SessionName=arkserver
|
||||
QueryPort=27015
|
||||
Port=7777
|
||||
;MultiHome=INSERT_IPv4_HERE ;Example:192.168.0.9. If not just remove any line containing MultiHome.
|
||||
|
||||
[/Script/Engine.GameSession]
|
||||
MaxPlayers=127
|
||||
|
||||
[MultiHome]
|
||||
;MultiHome=True ;If MultiHome=IPv4 is filled in. If not just remove any line containing MultiHome.
|
||||
|
||||
[MessageOfTheDay]
|
||||
Message=Welcome to ARK Server
|
||||
Duration=5
|
@ -1,83 +1,109 @@
|
||||
#!/bin/bash
|
||||
# ARMA 3
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# Contributor: Scarsz
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: ARMA 3 | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
ip="0.0.0.0"
|
||||
port="2302"
|
||||
updateonstart="off"
|
||||
|
||||
fn_parms(){
|
||||
parms="-netlog -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -autoinit -loadmissiontomemory"
|
||||
}
|
||||
|
||||
# ARMA 3 Modules
|
||||
# add mods with relative paths:
|
||||
## ARMA 3 Modules
|
||||
# Add mods with relative paths:
|
||||
# mods/@cba_a3
|
||||
# to load the "Community Base Addons v3" module found in the
|
||||
# To load the "Community Base Addons v3" module found in the
|
||||
# directory serverfiles/mods/@cba_a3. Load several mods as:
|
||||
# mods="mods/@ace\;mods/@acex\;mods/@cba_a3"
|
||||
mods=""
|
||||
|
||||
# Server-side Mods
|
||||
## Server-side Mods
|
||||
servermods=""
|
||||
|
||||
# Path to BattlEye
|
||||
# leave empty for default
|
||||
## Path to BattlEye
|
||||
# Leave empty for default
|
||||
bepath=""
|
||||
|
||||
#### Advanced Variables ####
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care
|
||||
fn_parms(){
|
||||
parms="-netlog -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -autoinit -loadmissiontomemory"
|
||||
}
|
||||
|
||||
# Github Branch Select
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="233780"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="233780"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta development"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="arma3-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="ARMA 3"
|
||||
engine="realvirtuality"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="arma3-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -86,6 +112,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="./arma3server"
|
||||
@ -96,24 +124,26 @@ networkcfgdefault="network.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
networkcfgfullpath="${servercfgdir}/${networkcfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
#gamelogdir="" # No server logs available
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -170,8 +200,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
|
@ -1,77 +0,0 @@
|
||||
//
|
||||
// network.cfg - Defines network tuning parameters
|
||||
//
|
||||
// This file is to be passed to the -cfg parameter on the command line for the server
|
||||
// See http://community.bistudio.com/wiki/basic.cfg
|
||||
// The following settings are the suggested settings
|
||||
|
||||
// BANDWIDTH SETTINGS
|
||||
|
||||
// Bandwidth the server is guaranteed to have (in bps)
|
||||
// General guideline is NumberOfPlayers * 256kb
|
||||
// Default: 131072
|
||||
MinBandwidth=5120000;
|
||||
// Bandwidth the server can never go above (in bps)
|
||||
// For a single server, use full network speed; decrease when running multiple servers
|
||||
MaxBandwidth=10240000;
|
||||
|
||||
// PACKET SETTINGS
|
||||
|
||||
// Maximum number of packets per frame.
|
||||
// Increasing the value potentially decreases lag, but increases desync
|
||||
// Default: 128
|
||||
MaxMsgSend=2048;
|
||||
// Maximum payload of guaranteed packet (in b)
|
||||
// Small messages are packed to larger packets
|
||||
// Guaranteed packets are used for non-repetitive events, like shooting
|
||||
// Lower value means more packets are sent, so less events will get combined
|
||||
// Default: 512
|
||||
MaxSizeGuaranteed=512;
|
||||
// Maximum payload of non-guaranteed packet (in b)
|
||||
// Increasing this value may improve bandwidth requirement, but may also increase lag
|
||||
// Largest factor in desync
|
||||
// Guidance is half of MaxSizeGuaranteed
|
||||
// Default: 256
|
||||
MaxSizeNonguaranteed=256;
|
||||
// Maximal size of a packet sent over the network
|
||||
// Only necessary if ISP forces lower packet size and there are connectivity issues
|
||||
// Default: 1400
|
||||
// class sockets{maxPacketSize=1400};
|
||||
|
||||
// SMOOTHNESS SETTINGS
|
||||
|
||||
// Minimal error required to send network updates for far units
|
||||
// Smaller values will make for smoother movement at long ranges, but will increase network traffic
|
||||
// Default: 0.003
|
||||
MinErrorToSend=0.01;
|
||||
// Minimal error required to send network updates for near units
|
||||
// Using larger value can reduce traffic sent for near units
|
||||
// Also controls client to server traffic
|
||||
// Default: 0.01
|
||||
MinErrorToSendNear=0.02;
|
||||
|
||||
// GEOLOCATION SETTINGS
|
||||
|
||||
// Server latitude
|
||||
serverLatitude=52;
|
||||
serverLatitudeAuto=52;
|
||||
|
||||
// Server Longitude
|
||||
serverLongitude=0;
|
||||
serverLongitudeAuto=0;
|
||||
// MISC
|
||||
// View Distance (not sure if this actually works)
|
||||
viewDistance=10000;
|
||||
|
||||
// Maximum size (in b) for custom face or sound files
|
||||
// Default: 0
|
||||
MaxCustomFileSize=0;
|
||||
// Server language
|
||||
language="English";
|
||||
steamLanguage="English";
|
||||
// Adapter
|
||||
adapter=-1;
|
||||
// Windowed mode
|
||||
Windowed=0;
|
||||
|
||||
3D_Performance=1.000000;
|
@ -1,133 +0,0 @@
|
||||
// ArmA 3 Server Config File
|
||||
//
|
||||
// More info about parameters:
|
||||
// https://community.bistudio.com/wiki/server.cfg
|
||||
|
||||
|
||||
// PORTS
|
||||
// please specify the serverport as a parameter in arma3server executable
|
||||
// it will automatically use the serverport including the next 3 for steam query & steam master.
|
||||
// the fourth port ist not documented in https://community.bistudio.com/wiki/Arma_3_Dedicated_Server#Port_Forwarding
|
||||
// Server Port
|
||||
// default: 2302.
|
||||
// serverport=2302;
|
||||
|
||||
// Steam Master Port
|
||||
// default: 2304.
|
||||
// steamport=2304;
|
||||
|
||||
// Steam Query Port
|
||||
// default: 2303.
|
||||
//steamqueryport=2303;
|
||||
|
||||
|
||||
// GENERAL SETTINGS
|
||||
|
||||
// Server Name
|
||||
hostname = "arma3server";
|
||||
|
||||
// Server Password
|
||||
//password = "arma3pass";
|
||||
|
||||
// Admin Password
|
||||
passwordAdmin = "arma3adminpass";
|
||||
|
||||
// Server Slots
|
||||
maxPlayers = 32;
|
||||
|
||||
// Logfile
|
||||
logFile = "arma3server.log";
|
||||
|
||||
// Minimum Required Client Build
|
||||
//requiredBuild = 95691
|
||||
|
||||
// Message of the Day (MOTD)
|
||||
motd[]={
|
||||
"Welcome to My Arma 3 Server",
|
||||
"TS3 Server: teamspeak.somewhere.com",
|
||||
"Web: www.example.com"
|
||||
};
|
||||
|
||||
// MOTD Interval (Seconds)
|
||||
motdInterval = 30;
|
||||
|
||||
|
||||
// VOTING
|
||||
|
||||
// Server Mission Start
|
||||
// minimum number of clients before server starts mission
|
||||
voteMissionPlayers = 1;
|
||||
|
||||
// Accepted Vote Threshold
|
||||
// 0.33 = 33% clients.
|
||||
voteThreshold = 0.33;
|
||||
|
||||
// INGAME SETTINGS
|
||||
|
||||
// Disable Voice over Net (VoN)
|
||||
// 0 = voice enabled.
|
||||
// 1 = voice disabled.
|
||||
disableVoN = 0;
|
||||
|
||||
// VoN Codec Quality
|
||||
// 0-10 = 8kHz (narrowband).
|
||||
// 11-20 = 16kHz (wideband).
|
||||
// 21-30 = 32kHz (ultrawideband).
|
||||
vonCodecQuality = 3;
|
||||
|
||||
//Persistent Battlefield
|
||||
// 0 = disable.
|
||||
// 1 = enable.
|
||||
persistent = 1;
|
||||
|
||||
// Time Stamp Format
|
||||
// none, short, full
|
||||
timeStampFormat = "short";
|
||||
|
||||
|
||||
// SERVER SECURITY/ANTI HACK
|
||||
|
||||
// Verify Signitures for Client Addons
|
||||
// 0 = off.
|
||||
// 1 = weak protection (depricated).
|
||||
// 2 = full protection.
|
||||
verifySignatures = 2;
|
||||
|
||||
// Secure Player ID
|
||||
// 1 = Server warning message.
|
||||
// 2 = Kick client.
|
||||
requiredSecureId = 2;
|
||||
|
||||
// Kick Duplicate Player IDs
|
||||
kickDuplicate = 1;
|
||||
|
||||
// BattlEye Anti-Cheat
|
||||
// 0 = disable
|
||||
// 1 = enable
|
||||
BattlEye = 1;
|
||||
|
||||
// Allowed File Extentions
|
||||
allowedLoadFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
|
||||
allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
|
||||
allowedHTMLLoadExtensions[] = {"htm","html","xml","txt"};
|
||||
|
||||
// SCRIPTING ISSUES
|
||||
onUserConnected = ""; //
|
||||
onUserDisconnected = ""; //
|
||||
doubleIdDetected = ""; //
|
||||
|
||||
// SIGNATURE VERIFICATION
|
||||
// kick = kick (_this select 0)
|
||||
// ban = ban (_this select 0)
|
||||
onUnsignedData = "kick (_this select 0)";
|
||||
onHackedData = "kick (_this select 0)";
|
||||
onDifferentData = "";
|
||||
|
||||
// HEADLESS CLIENT SUPPORT
|
||||
// specify ip-adresses of allowed headless clients
|
||||
// if more than one:
|
||||
// headlessClients[]={"127.0.0.1", "192.168.0.1"};
|
||||
// localClient[]={"127.0.0.1", "192.168.0.1"};
|
||||
headlessClients[]={"127.0.0.1"};
|
||||
localClient[]={"127.0.0.1"};
|
||||
battleyeLicense=1;
|
@ -1,37 +1,57 @@
|
||||
#!/bin/bash
|
||||
# Battlefield: 1942
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Battlefield: 1942 | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Start Variables
|
||||
#### Server Settings ####
|
||||
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
fn_parms(){
|
||||
parms="+hostServer 1 +dedicated 1"
|
||||
}
|
||||
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
|
||||
#### Advanced Variables ####
|
||||
|
||||
# Github Branch Select
|
||||
@ -41,12 +61,18 @@ githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Server Details
|
||||
servicename="bf1942-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Battlefield: 1942"
|
||||
engine="refractor"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="bf1942-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -55,6 +81,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${systemdir}"
|
||||
executable="./start.sh"
|
||||
@ -62,24 +90,26 @@ servercfg="serversettings.con"
|
||||
servercfgdefault="serversettings.con"
|
||||
servercfgdir="${systemdir}/mods/bf1942/settings"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${filesdir}/Logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -136,8 +166,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
|
@ -1,77 +1,99 @@
|
||||
#!/bin/bash
|
||||
# Black Mesa: Deathmatch
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Black Mesa: Deathmatch | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="dm_bounce"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# Optional: Game Server Login Token
|
||||
## Optional: Game Server Login Token
|
||||
# GSLT can be used for running a public server.
|
||||
# More info: https://gameservermanagers.com/gslt
|
||||
gslt=""
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game bms -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="346680"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta public-beta"
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="bmdm-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Black Mesa: Deathmatch"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="bmdm-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -80,6 +102,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/bms"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -87,24 +111,27 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directorie
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -161,8 +188,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
|
@ -1,24 +0,0 @@
|
||||
// Black Mesa server.cfg file
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
mp_timelimit 900
|
||||
mp_warmup_time 30
|
||||
// sv_lan 0
|
||||
// mp_flashlight 1
|
||||
// mp_forcerespawn 0
|
||||
// mp_friendlyfire 0
|
||||
// mp_fraglimit 45
|
@ -1,72 +1,91 @@
|
||||
#!/bin/bash
|
||||
# Blade Symphony
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Blade Symphony | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="duel_winter"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-autoupdate -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="228780"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta nightly -betapassword winteriscoming"
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="bs-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Blade Symphony"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="bs-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -75,6 +94,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/berimbau"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run.sh"
|
||||
@ -82,24 +103,25 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -156,8 +178,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
|
@ -1,15 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
@ -1,77 +1,102 @@
|
||||
#!/bin/bash
|
||||
# BrainBread 2
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: BrainBread 2 | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
# Steam login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="bba_barracks"
|
||||
maxplayers="20"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# Optional: Game Server Login Token
|
||||
## Optional: Game Server Login Token
|
||||
# GSLT can be used for running a public server.
|
||||
# More info: https://gameservermanagers.com/gslt
|
||||
gslt=""
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game brainbread2 -insecure -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="475370"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="475370"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta_branch"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="bb2-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="BrainBread 2"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="bb2-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -80,6 +105,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/brainbread2"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -87,24 +114,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -161,8 +190,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
|
@ -1,201 +0,0 @@
|
||||
// ****************************************************************************
|
||||
// *
|
||||
// BrainBread 2 - server.cfg *
|
||||
// Version 080116 *
|
||||
// *
|
||||
// ****************************************************************************
|
||||
|
||||
// ............................. Basic Settings ............................. //
|
||||
|
||||
// Hostname for server.
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON - remote console password.
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server password - for private servers.
|
||||
sv_password ""
|
||||
|
||||
// Contact email for server sysop.
|
||||
sv_contact "email@example.com"
|
||||
|
||||
// LAN Mode - If set the server will not show on the internet.
|
||||
// Default: sv_lan 0
|
||||
sv_lan 0
|
||||
|
||||
// Cheats - Allows cheats on the server. Steam achievements and stats are disabled.
|
||||
// Default: 0
|
||||
sv_cheats 0
|
||||
|
||||
// Friendly Fire - Allows team members to injure other members of their team.
|
||||
// 0 = Friendly fire off.
|
||||
// 1 = Friendly fire on.
|
||||
// Default: 0
|
||||
mp_friendlyfire 0
|
||||
|
||||
// ........................ Game Specific Commands ........................ //
|
||||
// info: any commands that only apply to this game.
|
||||
|
||||
|
||||
// Mercy Value - Sets how many deaths until the players become human once again.
|
||||
// Default: bb2_allow_mercy 0
|
||||
bb2_allow_mercy 3
|
||||
|
||||
// Late Joining - Allows players to spawn late.
|
||||
// default bb2_allow_latejoin 0
|
||||
bb2_allow_latejoin 1
|
||||
|
||||
// Player Spawn Protection - Time in seconds after Spawn.
|
||||
// default bb2_spawn_protection 1
|
||||
bb2_spawn_protection 15
|
||||
|
||||
// Profile System - Allow players to save and load there skills.
|
||||
// 0 = Disabled, skills are not saved.
|
||||
// 1 = Global, players can load there global skills.
|
||||
// 2 = Server, players save there skills to the server. Steam achievements and stats are disabled.
|
||||
// Default 1
|
||||
bb2_allow_profile_system 1
|
||||
|
||||
// Allow NPC to score - Allow friendly npcs to affect scoring. For example for quests.
|
||||
// Default 1
|
||||
bb2_allow_npc_to_score 0
|
||||
|
||||
// Vote Settings
|
||||
|
||||
// Voting: Passing Votes - Percentage of players that are required to pass a vote.
|
||||
// Minimum: 0
|
||||
// Maximum: 100
|
||||
// Default 50
|
||||
bb2_votes_required 50
|
||||
|
||||
// Voting: Ban Time - Number of minutes a player be banned if a vaote ban passes.
|
||||
// minimum: 0 (permanent)
|
||||
// default 30
|
||||
bb2_ban_time 30
|
||||
|
||||
|
||||
// Arena Settings
|
||||
|
||||
// Arena: Respawn Interval Time (Seconds).
|
||||
// Minimum: 20
|
||||
// Default 40
|
||||
bb2_arena_respawn_time 25
|
||||
|
||||
// Arena: Number of Reinforcements.
|
||||
// Minimum: 0
|
||||
// Maximum: 100
|
||||
// Default 14
|
||||
bb2_arena_reinforcement_count 14
|
||||
|
||||
|
||||
// Classic Mode Settings
|
||||
|
||||
// Classic: Zombie No Team Change.
|
||||
// 0 = Players can become zombies.
|
||||
// 1 = Players cannot become zombies.
|
||||
// Default 0
|
||||
bb2_classic_zombie_noteamchange 1
|
||||
|
||||
|
||||
// Elimination Settings
|
||||
|
||||
// Elimination: Team Fraglimit - Number of frags for a team to win a game.
|
||||
// Minimum: 10
|
||||
// Default 200
|
||||
bb2_elimination_fraglimit 200
|
||||
|
||||
// Elimination: Respawn Time (Seconds).
|
||||
// Minimum: 1
|
||||
// Maximum: 30
|
||||
// Default 4
|
||||
bb2_elimination_respawn_time 5
|
||||
|
||||
// Elimination: Respawn Time Scale - Increase the respawn timer in seconds when a player joins.
|
||||
// Example: respawn_timer + (joined_players x time_scale) = new_respawn_timer. 14 + (20 x 2) = 54.
|
||||
// Minimum: 0
|
||||
// Maximum: 10
|
||||
// Default 1
|
||||
bb2_elimination_respawn_time_scale 1
|
||||
|
||||
// Elimination: Extermination Score - The score a team should be awarded for exterminating (kill everyone before respawn) the other team.
|
||||
// Minimum: 0
|
||||
// Maximum: 50
|
||||
// Default 25
|
||||
bb2_elimination_score_from_extermination 25
|
||||
|
||||
// Elimination: Zombie Score - Number of point a zombie gets for a kill.
|
||||
// Minimum: 2
|
||||
// Maximum: 10
|
||||
// Default 5
|
||||
bb2_elimination_score_zombies 5
|
||||
|
||||
// Elimination: Team Perk Duration - Number of seconds a team perk lasts.
|
||||
// Minimum: 5
|
||||
// Maximum: 60
|
||||
// Default 30
|
||||
bb2_elimination_teamperk_duration 30
|
||||
|
||||
// Elimination: Team Perk Required Kills - Number of kills a team need to get in order to activate a team perk.
|
||||
// Minimum: 25
|
||||
// Maximum: 500
|
||||
// Default 50
|
||||
bb2_elimination_teamperk_kills_required 50
|
||||
|
||||
|
||||
// Zombie Settings
|
||||
|
||||
// Zombie Lifespan - Number of minutes a regular zombie will last before dying.
|
||||
// Minimum: 1
|
||||
// Default 5
|
||||
bb2_zombie_lifespan 2
|
||||
|
||||
// Max Zombies - Maximum number of zombies allowed in the game.
|
||||
// Minimum: 1
|
||||
// Maximum: 128
|
||||
// Default 50
|
||||
bb2_zombie_max 45
|
||||
|
||||
|
||||
// M1A1 Abrams Settings
|
||||
|
||||
// M1A1 Abrams: Main Cannon Damage.
|
||||
// Minimum: 100
|
||||
// Maximum: 10000
|
||||
// Default 3000
|
||||
bb2_m1a1_damage 200
|
||||
|
||||
// M1A1 Abrams: Machinegun Damage.
|
||||
// Minimum: 25
|
||||
// Maximum: 1000
|
||||
// Default 30
|
||||
bb2_m1a1_damage_machinegun 25
|
||||
|
||||
// M1A1 Abrams: Friendly Fire (Including NPC's).
|
||||
// Minimum: 0
|
||||
// Maximum: 1
|
||||
// Default 1
|
||||
bb2_m1a1_friendly 1
|
||||
|
||||
// M1A1 Abrams: Machinegun Rate of Fire.
|
||||
// Minimum: 0.01
|
||||
// Maximum: 1
|
||||
// Default 0.08
|
||||
bb2_m1a1_machinegun_firerate 1
|
||||
|
||||
// M1A1 Abrams: Explosion Radius.
|
||||
// Minimum: 200
|
||||
// Maximum: 10000
|
||||
// Default 500
|
||||
bb2_m1a1_radius 500
|
||||
|
||||
// M1A1 Abrams: Max Sight Range.
|
||||
// Minimum: 500
|
||||
// Maximum: 10000
|
||||
// Default 2000
|
||||
bb2_m1a1_range_max 1000
|
||||
|
||||
// M1A1 Abrams: Min Sight Range.
|
||||
// Minimum: 250
|
||||
// Maximum: 5000
|
||||
// Default 400
|
||||
bb2_m1a1_range_min 250
|
@ -1,72 +1,92 @@
|
||||
#!/bin/bash
|
||||
# Codename CURE
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Codename CURE | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="cbe_bunker"
|
||||
maxplayers="6"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game cure -insecure -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="383410"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="383410"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="cc-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Codename CURE"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="cc-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -75,6 +95,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/cure"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -82,24 +104,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -156,8 +180,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,105 +0,0 @@
|
||||
// ****************************************************************************
|
||||
// *
|
||||
// CodenameCURE - server.cfg *
|
||||
// Version 100216 *
|
||||
// *
|
||||
// ****************************************************************************
|
||||
|
||||
// ............................. Basic Settings ............................. //
|
||||
|
||||
// Hostname for server.
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON - remote console password.
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server password - for private servers.
|
||||
sv_password ""
|
||||
|
||||
// Contact email for server sysop.
|
||||
sv_contact "email@example.com"
|
||||
|
||||
// LAN Mode - If set the server will not show on the internet.
|
||||
// Default: sv_lan 0
|
||||
sv_lan 0
|
||||
|
||||
// ............................... Map Cycles ............................... //
|
||||
// info: There are several predefined mapcycles available that are listed below.
|
||||
// You can also create your own custom mapcycle.
|
||||
|
||||
// "mapcycle.txt" - all maps
|
||||
mapcyclefile "mapcycle.txt"
|
||||
|
||||
// ........................ Game Specific Commands ........................ //
|
||||
// info: any commands that only apply to this game.
|
||||
|
||||
// Difficulty
|
||||
// 0 - Easy
|
||||
// 1 - Average
|
||||
// 2 - Skilled
|
||||
// 3 - Insane
|
||||
sv_difficulty "1"
|
||||
|
||||
// Server tags - Tags show up on the in-game server browser. This helps
|
||||
// users filter servers.
|
||||
// vanilla - he server runs the default settings.
|
||||
// custom - the server runs custom gameplay settings or mods.
|
||||
// example: sv_tags "custom, fastdl"
|
||||
sv_tags ""
|
||||
|
||||
// ............................. Communication ............................. //
|
||||
|
||||
// Enable communication over voice via microphone.
|
||||
// Default: sv_voiceenable 1
|
||||
sv_voiceenable 1
|
||||
|
||||
// Players can hear all other players, no team restrictions.
|
||||
// Default: sv_alltalk 0
|
||||
sv_alltalk 1
|
||||
|
||||
// ............................. Fast Download .............................. //
|
||||
// info: Allows custom maps to be downloaded to the client.
|
||||
|
||||
// Allows clients to download custom maps and textures etc. from the server at 20 kbps.
|
||||
// Default: sv_allowdownload 1
|
||||
sv_allowdownload 1
|
||||
|
||||
// Allows clients to download custom maps, textures etc. from a web server with no transfer limit.
|
||||
// Example:
|
||||
// server location: maps/custommap.bsp
|
||||
// web server location: http://example.com/custom/maps/custommap.bsp
|
||||
// sv_downloadurl "http://example.com/custom"
|
||||
// Default: sv_downloadurl ""
|
||||
sv_downloadurl ""
|
||||
|
||||
// ................................ Ban List ............................... //
|
||||
|
||||
// personal banlist based on user IDs.
|
||||
exec banned_user.cfg
|
||||
|
||||
// personal banlist based on user IPs.
|
||||
exec banned_ip.cfg
|
||||
|
||||
writeid
|
||||
writeip
|
||||
|
||||
// ............................. Server Logging ............................. //
|
||||
|
||||
//Enables logging to file, console, and udp < on | off >.
|
||||
log on
|
||||
|
||||
// Log server bans in the server logs.
|
||||
// Default: sv_logbans 1
|
||||
sv_logbans 1
|
||||
|
||||
// Echo log information to the console.
|
||||
// Default: sv_logecho 1
|
||||
sv_logecho 1
|
||||
|
||||
// Log server information in the log file.
|
||||
// Default: sv_logfile 1
|
||||
sv_logfile 1
|
||||
|
||||
// Log server information to only one file.
|
||||
// Default: sv_log_onefile 0
|
||||
sv_log_onefile 0
|
@ -1,38 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// disable autoaim
|
||||
sv_aim 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
pausable 0
|
||||
|
||||
// maximum client movement speed
|
||||
sv_maxspeed 320
|
||||
|
||||
// 20 minute timelimit
|
||||
mp_timelimit 20
|
||||
|
||||
// cheats off
|
||||
sv_cheats 0
|
||||
|
||||
// load ban files
|
||||
exec listip.cfg
|
||||
exec banned.cfg
|
||||
|
||||
|
||||
|
||||
|
@ -1,67 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Counter-Strike
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Counter-Strike | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="de_dust2"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
fn_parms(){
|
||||
parms="-game cstrike -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### Advanced Variables ####
|
||||
|
||||
# Github Branch Select
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="90"
|
||||
appidmod="cstrike"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="90"
|
||||
appidmod="cstrike"
|
||||
|
||||
# Server Details
|
||||
servicename="cs-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Counter-Strike 1.6"
|
||||
engine="goldsource"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="cs-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/cstrike"
|
||||
executabledir="${filesdir}"
|
||||
executable="./hlds_run"
|
||||
@ -77,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,38 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// disable autoaim
|
||||
sv_aim 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
pausable 0
|
||||
|
||||
// maximum client movement speed
|
||||
sv_maxspeed 320
|
||||
|
||||
// 20 minute timelimit
|
||||
mp_timelimit 20
|
||||
|
||||
// cheats off
|
||||
sv_cheats 0
|
||||
|
||||
// load ban files
|
||||
exec listip.cfg
|
||||
exec banned.cfg
|
||||
|
||||
|
||||
|
||||
|
@ -1,67 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Counter-Strike: Condition Zero
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Counter-Strike: Condition Zero | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="de_dust2"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
fn_parms(){
|
||||
parms="-game czero -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="90"
|
||||
appidmod="czero"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="90"
|
||||
appidmod="czero"
|
||||
|
||||
# Server Details
|
||||
servicename="cscz-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Counter-Strike: Condition Zero"
|
||||
engine="goldsource"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="cscz-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/czero"
|
||||
executabledir="${filesdir}"
|
||||
executable="./hlds_run"
|
||||
@ -77,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,31 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// Server Hibernation
|
||||
sv_hibernate_when_empty 1
|
||||
sv_hibernate_ms 5
|
||||
|
||||
// Server Query
|
||||
// More info at: https://www.gametracker.com/games/csgo/forum.php?thread=91691
|
||||
host_name_store 1
|
||||
host_info_show 1
|
||||
host_players_show 2
|
||||
|
||||
|
||||
exec banned_user.cfg
|
||||
exec banned_ip.cfg
|
||||
writeid
|
||||
writeip
|
@ -1,43 +1,35 @@
|
||||
#!/bin/bash
|
||||
# Counter-Strike: Global Offensive
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Counter-Strike: Global Offensive | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
# https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#Starting_the_Server
|
||||
# [Game Modes] gametype gamemode
|
||||
# Arms Race 1 0
|
||||
# Classic Casual 0 0
|
||||
# Classic Competitive 0 1
|
||||
# Demolition 1 1
|
||||
# Deathmatch 1 2
|
||||
# [Game Modes] gametype gamemode
|
||||
# Arms Race 1 0
|
||||
# Classic Casual 0 0
|
||||
# Classic Competitive 0 1
|
||||
# Demolition 1 1
|
||||
# Deathmatch 1 2
|
||||
gametype="0"
|
||||
gamemode="0"
|
||||
defaultmap="de_dust2"
|
||||
@ -48,48 +40,78 @@ port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# Required: Game Server Login Token
|
||||
## Required: Game Server Login Token
|
||||
# GSLT is required for running a public server.
|
||||
# More info: https://gameservermanagers.com/gslt
|
||||
gslt=""
|
||||
|
||||
# Optional: Workshop Parameters
|
||||
## Optional: Workshop Parameters
|
||||
# https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators
|
||||
# To get an authkey visit - http://steamcommunity.com/dev/apikey
|
||||
# authkey=""
|
||||
# ws_collection_id=""
|
||||
# ws_start_map=""
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +mapgroup ${mapgroup} +game_mode ${gamemode} +game_type ${gametype} +host_workshop_collection ${ws_collection_id} +workshop_start_map ${ws_start_map} -authkey ${authkey}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="740"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="740"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta 1.35.4.4"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="csgo-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Counter-Strike: Global Offensive"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="csgo-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -98,6 +120,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/csgo"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -105,24 +129,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -179,8 +205,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,15 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
@ -1,36 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Counter-Strike: Source
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Counter-Strike: Source | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="de_dust2"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
@ -39,39 +31,70 @@ clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# Required: Game Server Login Token
|
||||
## Required: Game Server Login Token
|
||||
# GSLT is required for running a public server.
|
||||
# More info: https://gameservermanagers.com/gslt
|
||||
gslt=""
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="232330"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="232330"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta prerelease"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="css-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Counter-Strike: Source"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="css-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -80,6 +103,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/cstrike"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -87,24 +112,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -161,8 +188,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,38 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// disable autoaim
|
||||
sv_aim 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
pausable 0
|
||||
|
||||
// maximum client movement speed
|
||||
sv_maxspeed 320
|
||||
|
||||
// 20 minute timelimit
|
||||
mp_timelimit 20
|
||||
|
||||
// cheats off
|
||||
sv_cheats 0
|
||||
|
||||
// load ban files
|
||||
exec listip.cfg
|
||||
exec banned.cfg
|
||||
|
||||
|
||||
|
||||
|
@ -1,36 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Day of Defeat
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Day of Defeat | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="dod_Anzio"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
@ -38,30 +30,66 @@ clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
fn_parms(){
|
||||
parms="-game dod -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="90"
|
||||
appidmod="dod"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="90"
|
||||
appidmod="dod"
|
||||
|
||||
# Server Details
|
||||
servicename="dod-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Day of Defeat"
|
||||
engine="goldsource"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="dod-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +98,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/dod"
|
||||
executabledir="${filesdir}"
|
||||
executable="./hlds_run"
|
||||
@ -77,24 +107,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +183,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,38 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// disable autoaim
|
||||
sv_aim 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
pausable 0
|
||||
|
||||
// maximum client movement speed
|
||||
sv_maxspeed 320
|
||||
|
||||
// 20 minute timelimit
|
||||
mp_timelimit 20
|
||||
|
||||
// cheats off
|
||||
sv_cheats 0
|
||||
|
||||
// load ban files
|
||||
exec listip.cfg
|
||||
exec banned.cfg
|
||||
|
||||
|
||||
|
||||
|
@ -1,72 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Day of Defeat: Source
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Day of Defeat: Source | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="dod_Anzio"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | ttps://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game dod -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="232290"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="232290"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta prerelease"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="dods-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Day of Defeat: Source"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="dods-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -75,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/dod"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -82,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -156,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,16 +0,0 @@
|
||||
"hostname" "<hostname>"
|
||||
"rcon_password" "<rconpassword>"
|
||||
"mapcyclefile" "mapcycle_tactical_operation.txt" // "tactical operation" mapcycle - firefight, vip, search and destroy
|
||||
"mp_friendlyfire" "1" // friendly fire
|
||||
"mp_tkpunish" "1" // How to punish team killing ( 0 = none, 1 = warning, 2 = kill )
|
||||
"sv_hud_deathmessages" "0" // death messages
|
||||
"sv_hud_scoreboard_show_kd" "1" // show k:d on scoreboard
|
||||
"sv_hud_targetindicator" "1" // show friendly player names when looking at them
|
||||
"mp_timer_pregame" "10" // timer for the pre-game (before the game starts, usually after map change or on mp_restartgame 1)
|
||||
"mp_timer_preround" "15" // timer for the pre-round (before the round starts, usually after a previous round ends or on mp_restartround 1)
|
||||
"mp_timer_postround" "15" // timer for the post-round (after the round starts)
|
||||
"mp_timer_postgame" "21" // timer for the post-game (at the end of a game / map rotation)
|
||||
"ins_bot_quota" "0" // if set higher than 0, the server will add this many bots to each team
|
||||
"sv_deadvoice" "0" // enabling this will allow the dead and living to VOIP each other
|
||||
"sv_deadchat" "0" // enabling this will allow the dead and living to chat text each other
|
||||
"sv_deadchat_team" "1" // is deadchat limited to just your team?
|
@ -1,36 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Day of Infamy
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Day of Infamy | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="bastogne"
|
||||
maxplayers="16"
|
||||
tickrate="64"
|
||||
@ -38,37 +30,67 @@ port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
workshop="0"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game doi -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} +sv_workshop_enabled ${workshop}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="462310"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="462310"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="doi-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Day of Infamy"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="doi-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -77,6 +99,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/doi"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -84,24 +108,27 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -158,8 +185,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
@ -1,35 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// disable autoaim
|
||||
sv_aim 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
pausable 0
|
||||
|
||||
// maximum client movement speed
|
||||
sv_maxspeed 320
|
||||
|
||||
// 20 minute timelimit
|
||||
mp_timelimit 20
|
||||
|
||||
// cheats off
|
||||
sv_cheats 0
|
||||
|
||||
// load ban files
|
||||
exec listip.cfg
|
||||
exec banned.cfg
|
||||
|
@ -1,67 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Deathmatch Classic
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Deathmatch Classic | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="dcdm5"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
fn_parms(){
|
||||
parms="-game dmc -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="90"
|
||||
appidmod="dmc"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="90"
|
||||
appidmod="dmc"
|
||||
|
||||
# Server Details
|
||||
servicename="dmc-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Deathmatch Classic"
|
||||
engine="goldsource"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="dmc-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/dmc"
|
||||
executabledir="${filesdir}"
|
||||
executable="./hlds_run"
|
||||
@ -77,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,39 +0,0 @@
|
||||
[network]
|
||||
default_server_name = dstserver
|
||||
default_server_description = Welcome to dstserver
|
||||
server_port = 10999
|
||||
server_password = password
|
||||
|
||||
# max_players = 1 .. 64
|
||||
max_players = 16
|
||||
|
||||
# pvp = true | false
|
||||
pvp = false
|
||||
|
||||
# game_mode = endless | survival | wilderness
|
||||
game_mode = endless
|
||||
|
||||
# enable_autosaver = true | false
|
||||
enable_autosaver = true
|
||||
|
||||
# tick_rate = [ 10 | 15 | 30 | 60 ]
|
||||
tick_rate = 30
|
||||
|
||||
connection_timeout = 8000
|
||||
server_save_slot = 1
|
||||
|
||||
# enable_vote_kick = true | false
|
||||
enable_vote_kick = true
|
||||
|
||||
# pause_when_empty = true | false
|
||||
pause_when_empty = true
|
||||
|
||||
[account]
|
||||
dedicated_lan_server = false
|
||||
|
||||
[STEAM]
|
||||
DISABLECLOUD = true
|
||||
|
||||
[MISC]
|
||||
CONSOLE_ENABLED = true
|
||||
autocompiler_enabled = true
|
@ -1,70 +1,92 @@
|
||||
#!/bin/bash
|
||||
# Dont Starve Together
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Dont Starve Together | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | http://dont-starve-game.wikia.com/wiki/Guides/Don%E2%80%99t_Starve_Together_Dedicated_Servers
|
||||
# Overworld: -conf_dir DST_Overworld
|
||||
# Cave: -conf_dir DST_Cave
|
||||
#http://dont-starve-game.wikia.com/wiki/Guides/Don%E2%80%99t_Starve_Together_Dedicated_Servers
|
||||
fn_parms(){
|
||||
parms="-console -cluster MyDediServer -shard Master"
|
||||
# -console -cluster MyDediServer -shard Master
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="343050"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="343050"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta anewreignbeta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="dst-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Don't Starve Together"
|
||||
engine="dontstarve"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="dst-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -73,6 +95,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}/bin"
|
||||
executable="./dontstarve_dedicated_server_nullrenderer"
|
||||
@ -81,24 +105,26 @@ servercfgdefault="settings.ini"
|
||||
servercfgdir="${HOME}/.klei/DoNotStarveTogether"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
servercfgdefault="${servercfgdir}/lgsm-default.ini"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -155,8 +181,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,15 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
@ -1,72 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Double Action: Boogaloo
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Double Action: Boogaloo | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="da_rooftops"
|
||||
maxplayers="10"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="317800"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="317800"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="dab-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Double Action: Boogaloo"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="dab-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -75,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/dab"
|
||||
executabledir="${filesdir}"
|
||||
executable="./dabds.sh"
|
||||
@ -82,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -156,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,77 +1,78 @@
|
||||
#!/bin/bash
|
||||
# Empires Mod
|
||||
# Server Management Script
|
||||
# Author: Daniel Gibbs
|
||||
# Website: https://gameservermanagers.com
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
|
||||
#### Variables ####
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="emp_district"
|
||||
maxplayers="62"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# Optional: Game Server Login Token
|
||||
## Optional: Game Server Login Token
|
||||
# GSLT can be used for running a public server.
|
||||
# More info: https://gameservermanagers.com/gslt
|
||||
gslt=""
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game empires -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="460040"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="460040"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="em-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Empires Mod"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="em-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -80,6 +81,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/empires"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -87,24 +90,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -161,8 +166,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,126 +0,0 @@
|
||||
// ****************************************************************************
|
||||
// *
|
||||
// Fistful of Frags - server.cfg *
|
||||
// Version 240716 *
|
||||
// *
|
||||
// ****************************************************************************
|
||||
|
||||
// ............................. Basic Settings ............................. //
|
||||
|
||||
// Hostname for server.
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON - remote console password.
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server password - for private servers.
|
||||
sv_password ""
|
||||
|
||||
// Contact email for server sysop.
|
||||
sv_contact "email@example.com"
|
||||
|
||||
// LAN Mode - If set the server will not show on the internet.
|
||||
// Default: sv_lan 0
|
||||
sv_lan 0
|
||||
|
||||
// ............................... Map Cycles ............................... //
|
||||
// info: There are several predefined mapcycles available that are listed below.
|
||||
// You can also create your own custom mapcycle.
|
||||
|
||||
// "mapcycle.txt" - All Shootout/2 Team Shootout/4 Team Shootout maps
|
||||
// "mapcycle_12.txt" - All 12 slot maps for Shootout/2 Team Shootout/4 Team Shootout
|
||||
// "mapcycle_32.txt" - All 32 slot maps for Shootout/2 Team Shootout/4 Team Shootout
|
||||
// "mapcycle_tp.txt" - All Teamplay maps
|
||||
// "mapcycle_vs.txt" - All versus mode maps
|
||||
// "mapcycle_gt.txt" - All Ghost Town maps
|
||||
mapcyclefile "mapcycle.txt"
|
||||
|
||||
// ....................... Time Limits/Round Settings ....................... //
|
||||
|
||||
// Time spend on a single map (in minutes) before switching to a new one automatically.
|
||||
// Default: mp_timelimit 0
|
||||
mp_timelimit 15
|
||||
|
||||
// ........................ Game Specific Commands ........................ //
|
||||
// info: any commands that only apply to this game.
|
||||
|
||||
// Game Modes
|
||||
// 1 = Shootout/2 Team Shootout/4 Team Shootout/Ghost Town
|
||||
// 2 = Teamplay
|
||||
// 3 = Break Bad
|
||||
// 4 = Elimination
|
||||
// 5 = Versus
|
||||
fof_sv_currentmode 1
|
||||
|
||||
// Teamplay
|
||||
// 0 = Free-for-all
|
||||
// 1 = Team Deathmatch or Teamplay mode
|
||||
mp_teamplay 0
|
||||
|
||||
// Team numbers
|
||||
// 2 = Vigilantes & Desperados
|
||||
// 3 = Vigilantes, Desperados & Bandidos
|
||||
// 4 = Vigilantes, Desperados, Bandidos & Rangers
|
||||
fof_sv_maxteams 4
|
||||
|
||||
// Friendly fire - Allows team members to injure other members of their team.
|
||||
// 0 = Friendly fire disabled
|
||||
// 1 = Friendly fire enabled
|
||||
mp_friendlyfire 0
|
||||
|
||||
// ............................. Communication ............................. //
|
||||
|
||||
// Enable communication over voice via microphone.
|
||||
// Default: sv_voiceenable 1
|
||||
sv_voiceenable 1
|
||||
|
||||
// Players can hear all other players, no team restrictions.
|
||||
// Default: sv_alltalk 0
|
||||
sv_alltalk 1
|
||||
|
||||
// ............................. Fast Download .............................. //
|
||||
// info: Allows custom maps to be downloaded to the client.
|
||||
|
||||
// Allows clients to download custom maps and textures etc. from the server at 20 kbps.
|
||||
// Default: sv_allowdownload 1
|
||||
sv_allowdownload 1
|
||||
|
||||
// Allows clients to download custom maps, textures etc. from a web server with no transfer limit.
|
||||
// Example:
|
||||
// server location: maps/custommap.bsp
|
||||
// web server location: http://example.com/custom/maps/custommap.bsp
|
||||
// sv_downloadurl "http://example.com/custom"
|
||||
// Default: sv_downloadurl ""
|
||||
sv_downloadurl ""
|
||||
|
||||
// ................................ Ban List ............................... //
|
||||
|
||||
// personal banlist based on user IDs.
|
||||
exec banned_user.cfg
|
||||
|
||||
// personal banlist based on user IPs.
|
||||
exec banned_ip.cfg
|
||||
|
||||
writeid
|
||||
writeip
|
||||
|
||||
// ............................. Server Logging ............................. //
|
||||
|
||||
//Enables logging to file, console, and udp < on | off >.
|
||||
log on
|
||||
|
||||
// Log server bans in the server logs.
|
||||
// Default: sv_logbans 1
|
||||
sv_logbans 1
|
||||
|
||||
// Echo log information to the console.
|
||||
// Default: sv_logecho 1
|
||||
sv_logecho 1
|
||||
|
||||
// Log server information in the log file.
|
||||
// Default: sv_logfile 1
|
||||
sv_logfile 1
|
||||
|
||||
// Log server information to only one file.
|
||||
// Default: sv_log_onefile 0
|
||||
sv_log_onefile 0
|
@ -1,72 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Fistful Of Frags
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Fistful Of Frags | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="fof_depot"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game fof -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="295230"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="295230"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="fof-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Fistful of Frags"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="fof-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -75,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/fof"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -82,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -156,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,86 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
lua_log_sv 0
|
||||
|
||||
sv_rcon_banpenalty 0
|
||||
sv_rcon_maxfailures 20
|
||||
sv_rcon_minfailures 20
|
||||
sv_rcon_minfailuretime 20
|
||||
|
||||
// Network Settings
|
||||
sv_downloadurl ""
|
||||
sv_loadingurl ""
|
||||
net_maxfilesize 64
|
||||
sv_maxrate 40000
|
||||
sv_minrate 40000
|
||||
sv_maxupdaterate 66
|
||||
sv_minupdaterate 10
|
||||
sv_maxcmdrate 60
|
||||
sv_mincmdrate 10
|
||||
|
||||
// Server Settings
|
||||
sv_airaccelerate 100
|
||||
sv_gravity 600
|
||||
sv_allow_wait_command 0
|
||||
sv_allow_voice_from_file 0
|
||||
sv_turbophysics 0
|
||||
sv_max_usercmd_future_ticks 12
|
||||
gmod_physiterations 4
|
||||
sv_client_min_interp_ratio 1
|
||||
sv_client_max_interp_ratio 2
|
||||
think_limit 20
|
||||
sv_region 0
|
||||
sv_noclipspeed 5
|
||||
sv_noclipaccelerate 5
|
||||
sv_lan 0
|
||||
sv_alltalk 1
|
||||
sv_contact youremail@changeme.com
|
||||
sv_cheats 0
|
||||
sv_allowcslua 0
|
||||
sv_pausable 0
|
||||
sv_filterban 1
|
||||
sv_forcepreload 1
|
||||
sv_footsteps 1
|
||||
sv_voiceenable 1
|
||||
sv_voicecodec vaudio_speex
|
||||
sv_timeout 120
|
||||
sv_deltaprint 0
|
||||
sv_allowupload 0
|
||||
sv_allowdownload 0
|
||||
|
||||
// Sandbox Settings
|
||||
sbox_noclip 0
|
||||
sbox_godmode 0
|
||||
sbox_weapons 0
|
||||
sbox_playershurtplayers 0
|
||||
sbox_maxprops 100
|
||||
sbox_maxragdolls 50
|
||||
sbox_maxnpcs 10
|
||||
sbox_maxballoons 10
|
||||
sbox_maxeffects 0
|
||||
sbox_maxdynamite 0
|
||||
sbox_maxlamps 5
|
||||
sbox_maxthrusters 20
|
||||
sbox_maxwheels 20
|
||||
sbox_maxhoverballs 20
|
||||
sbox_maxvehicles 1
|
||||
sbox_maxbuttons 20
|
||||
sbox_maxemitters 0
|
||||
|
||||
// Misc Config
|
||||
exec banned_user.cfg
|
||||
exec banned_ip.cfg
|
||||
heartbeat
|
@ -1,46 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Garry's Mod
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Garry's Mod | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta prerelease "
|
||||
branch=""
|
||||
|
||||
# Workshop Variables
|
||||
# http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers
|
||||
workshopauth=""
|
||||
workshopcollectionid=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="gm_construct"
|
||||
gamemode="sandbox"
|
||||
maxplayers="16"
|
||||
@ -49,45 +31,79 @@ sourcetvport="27020"
|
||||
clientport="27005"
|
||||
tickrate="66"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# Custom Start Parameters
|
||||
## Workshop Parameters | http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers
|
||||
workshopauth=""
|
||||
workshopcollectionid=""
|
||||
|
||||
## Custom Start Parameters
|
||||
# Default +r_hunkalloclightmaps 0, fixes a start issue on maps with many lights
|
||||
customparms="+r_hunkalloclightmaps 0"
|
||||
|
||||
# Optional: Game Server Login Token
|
||||
## Optional: Game Server Login Token
|
||||
# GSLT can be used for running a public server.
|
||||
# More info: https://gameservermanagers.com/gslt
|
||||
gslt=""
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${customparms}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off]
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="4020"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="4020"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta dev"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="gmod-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Garry's Mod"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="gmod-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -96,6 +112,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/garrysmod"
|
||||
addonsdir="${systemdir}/addons"
|
||||
executabledir="${filesdir}"
|
||||
@ -104,24 +122,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -178,8 +198,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
|
@ -1,126 +0,0 @@
|
||||
// *********** SERVER & PASSWORD INFO ***************
|
||||
// Change it to 1 if you want a LAN only Server
|
||||
// NOTE: You must do "changelevel [levelname]" AFTER starting the server for
|
||||
// a lan-only server to begin broadcasting
|
||||
sv_lan 0
|
||||
|
||||
// Change the number to the region you live in!
|
||||
// 0=US East coast, 1=US West coast, 2= South America, 3=Europe, 4=Asia, 5=Australia, 6=Middle East, 7=Africa and 255=world
|
||||
sv_region 0
|
||||
|
||||
// Give your server a name here
|
||||
hostname "<hostname>"
|
||||
|
||||
// Rcon password is used to give your server orders by using console, so think of a good password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// If you want your server to be private, fill in a password and delete the // in front of sv_password
|
||||
// sv_password "mi6"
|
||||
|
||||
// All talk allows clients to talk to each other via voice even if they are dead,
|
||||
// spectating, or on the other team
|
||||
sv_alltalk 1
|
||||
|
||||
// *********** GOLDENEYE: SOURCE SPECIFIC *********
|
||||
|
||||
// Radar will show on clients if enabled. Some gameplay scenarios
|
||||
// force the radar to be visible
|
||||
ge_allowradar 1
|
||||
ge_radar_showenemyteam 1
|
||||
|
||||
// Paintball mode (for fun!)
|
||||
ge_paintball 0
|
||||
|
||||
// Teamplay can be overriden by the current gameplay, but
|
||||
// this sets our "desired" teamplay state
|
||||
ge_teamplay 0
|
||||
|
||||
// *********** GAME SETTINGS, YOU CAN CHANGE THESE THE WAY YOU LIKE IT ***************
|
||||
|
||||
// Allow the use of a flashlight (discouraged for GE:S)
|
||||
mp_flashlight 0
|
||||
|
||||
// Disable footstep sounds by uncommenting below
|
||||
// mp_footsteps 0
|
||||
|
||||
// 1 enables falling damage, 0 disables it
|
||||
mp_falldamage 1
|
||||
|
||||
// Map/match time, in minutes
|
||||
mp_timelimit 15
|
||||
|
||||
// Round time, in seconds
|
||||
ge_roundtime 300
|
||||
|
||||
// 1 = Forces the engine to use light physics for better server preformance
|
||||
sv_turbophysics 0
|
||||
|
||||
// Server round, map, and delay times are defined in Valve.rc
|
||||
// If you want these times to be reset every map change copy them
|
||||
// to this file instead (Valve.rc is only executed once on server start)
|
||||
|
||||
|
||||
// **********************************************************
|
||||
// *********** Load Specific Server Type Settings ***********
|
||||
// **********************************************************
|
||||
|
||||
// Uncomment ONE server type to load. This takes care of all settings, map cycles, and gameplay types
|
||||
|
||||
//-- Normal server, recommended settings
|
||||
exec server_normal.cfg
|
||||
|
||||
//-- N64 Classic Mode ( DM|YOLT|MWGG|LD|LTK, NO Jump )
|
||||
// **Use with -maxplayers 4
|
||||
//exec server_n64_classic.cfg
|
||||
|
||||
//-- For server with > 24 players
|
||||
//exec server_large.cfg
|
||||
|
||||
//-- For servers with < 10 players
|
||||
//exec server_small.cfg
|
||||
|
||||
//-- Vanilla DM only w/ auto teamplay
|
||||
// **Should be used in conjunction with one of the sizes above
|
||||
//exec server_dm_only.cfg
|
||||
|
||||
//-- Advanced game modes (LALD, LD, CTK) only
|
||||
// **Should be used in conjunction with one of the sizes above
|
||||
//exec server_adv_gamemode.cfg
|
||||
|
||||
//-- Teamplay only! (No MWGG or LALD)
|
||||
// **Should be used in conjunction with one of the sizes above
|
||||
//exec server_teamplay.cfg
|
||||
|
||||
//-- Tournament Use Only (Tournament DM)
|
||||
// **Should be used ALONE only!
|
||||
//exec server_tournament.cfg
|
||||
|
||||
// Load network settings
|
||||
exec server_netvalues
|
||||
|
||||
// *********** server logging ***********
|
||||
log on
|
||||
sv_logbans 0
|
||||
sv_logecho 0
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
|
||||
// *********** DOWNLOAD ***********
|
||||
|
||||
// Allow clients to download files
|
||||
sv_allowdownload 1
|
||||
|
||||
// Allow clients to upload customizations files
|
||||
sv_allowupload 1
|
||||
|
||||
// VOICE enabled, if you want VOICE disabled then change 1 to 0
|
||||
sv_voiceenable 1
|
||||
|
||||
// *********** CHEATS ***********
|
||||
|
||||
// Enables the use of cheats. ex. "impulse 101" "noclip"
|
||||
sv_cheats 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
sv_pausable 0
|
@ -1,34 +1,26 @@
|
||||
#!/bin/bash
|
||||
# GoldenEye: Source
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: GoldenEye: Source | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
#### Server Settings ####
|
||||
|
||||
# Start Variables
|
||||
defaultmap="ge_archives"
|
||||
@ -37,31 +29,66 @@ port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game gesource -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="310" # Source 2007 SDK
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="310" # Source 2007 SDK
|
||||
|
||||
# Server Details
|
||||
servicename="ges-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="GoldenEye: Source"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ges-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/gesource"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -77,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,15 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
@ -1,67 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Half Life 2: Deathmatch
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Half Life 2: Deathmatch | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="dm_lockdown"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game hl2mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="232370"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="232370"
|
||||
|
||||
# Server Details
|
||||
servicename="hl2dm-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Half Life 2: Deathmatch"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="hl2dm-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/hl2mp"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -77,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,35 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// disable autoaim
|
||||
sv_aim 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
pausable 0
|
||||
|
||||
// maximum client movement speed
|
||||
sv_maxspeed 320
|
||||
|
||||
// 20 minute timelimit
|
||||
mp_timelimit 20
|
||||
|
||||
// cheats off
|
||||
sv_cheats 0
|
||||
|
||||
// load ban files
|
||||
exec listip.cfg
|
||||
exec banned.cfg
|
||||
|
@ -1,66 +1,93 @@
|
||||
#!/bin/bash
|
||||
# Half Life: Deathmatch
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Half Life: Deathmatch | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="crossfire"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
fn_parms(){
|
||||
parms="-game valve -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="90"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="90"
|
||||
|
||||
# Server Details
|
||||
servicename="hldm-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Half Life: Deathmatch"
|
||||
engine="goldsource"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="hldm-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -69,6 +96,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/valve"
|
||||
executabledir="${filesdir}"
|
||||
executable="./hlds_run"
|
||||
@ -76,24 +105,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -150,8 +181,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,15 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
@ -1,67 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Half-Life Deathmatch: Source
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Half-Life Deathmatch: Source | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="crossfire"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game hl1mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="255470"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="255470"
|
||||
|
||||
# Server Details
|
||||
servicename="hldms-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Half-Life Deathmatch: Source"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="hldms-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/hl1mp"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -77,15 +106,14 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
@ -93,8 +121,14 @@ emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +185,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,86 +1,106 @@
|
||||
#!/bin/bash
|
||||
# Hurtworld
|
||||
# Server Management Script
|
||||
# Author: Daniel Gibbs,
|
||||
# Contributor: UltimateByte
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Hurtworld | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Server settings
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
servername="Hurtworld LGSM Server"
|
||||
ip="0.0.0.0"
|
||||
port="12871"
|
||||
queryport="12881"
|
||||
maxplayers="20"
|
||||
map="" #Optional
|
||||
creativemode="0" #Free Build
|
||||
creativemode="0" #Free Build: creativemode="1"
|
||||
logfile="gamelog.txt"
|
||||
|
||||
# Adding admins using STEAMID64
|
||||
## Adding admins using STEAMID64
|
||||
# Example : addadmin 012345678901234567; addadmin 987654321098765432
|
||||
admins=""
|
||||
|
||||
# Advanced
|
||||
## Advanced Server Start Settings
|
||||
# Rollback server state (remove after start command)
|
||||
loadsave=""
|
||||
# Use unstable 64 bit server executable (O/1)
|
||||
x64mode="0"
|
||||
|
||||
|
||||
# http://hurtworld.wikia.com/wiki/Hosting_A_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | http://hurtworld.wikia.com/wiki/Hosting_A_Server
|
||||
fn_parms(){
|
||||
parms="-batchmode -nographics -exec \"host ${port} ${map} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${admins}\" -logfile \"${logfile}\" "
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="405100"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="405100"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta devtest"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="hurtworld-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Hurtworld"
|
||||
engine="unity3d"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="hurtworld-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -89,6 +109,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
if [ "${x64mode}" == "1" ]; then
|
||||
@ -96,25 +118,27 @@ if [ "${x64mode}" == "1" ]; then
|
||||
else
|
||||
executable="./Hurtworld.x86"
|
||||
fi
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${rootdir}/log/server"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
gamelog="${gamelogdir}/${servicename}-game.log"
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -171,8 +195,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,36 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Insurgency
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Insurgency | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="ministry"
|
||||
maxplayers="16"
|
||||
tickrate="64"
|
||||
@ -38,37 +30,67 @@ port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
workshop="0"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game insurgency -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} +sv_workshop_enabled ${workshop} -norestart"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="237410"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="237410"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="ins-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Insurgency"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ins-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -77,6 +99,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/insurgency"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -84,15 +108,14 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
@ -100,8 +123,14 @@ emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -158,8 +187,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,180 +0,0 @@
|
||||
-- Welcome to the JC2-MP server configuration file!
|
||||
|
||||
--[[
|
||||
SERVER OPTIONS
|
||||
|
||||
Server-related options.
|
||||
--]]
|
||||
Server =
|
||||
{
|
||||
-- The maximum number of players that can be on the server at any
|
||||
-- given time. Make sure your connection and server can handle it!
|
||||
-- Default value: 5000
|
||||
MaxPlayers = 5000,
|
||||
-- Used to control what IP this server binds to. Unless you're a dedicated
|
||||
-- game host, you don't need to worry about this.
|
||||
-- Default value: ""
|
||||
BindIP = "",
|
||||
-- The port the server uses.
|
||||
-- Default value: 7777
|
||||
BindPort = 7777,
|
||||
-- The time before a player is timed out after temporarily losing
|
||||
-- connection, or crashing without properly disconnecting.
|
||||
-- Default value (in milliseconds): 10000
|
||||
Timeout = 10000,
|
||||
|
||||
-- The name of the server, as seen by players and the server browser.
|
||||
-- Default value: "JC2-MP Server"
|
||||
Name = "JC2-MP Server",
|
||||
-- The server description, as seen by players and the server browser.
|
||||
-- Default value: "No description available"
|
||||
Description = "No description available.",
|
||||
-- The server password.
|
||||
-- Default value: ""
|
||||
Password = "",
|
||||
|
||||
-- Controls whether the server announces its presence to the master server
|
||||
-- and therefore to the server browser.
|
||||
-- Default value: true
|
||||
Announce = true,
|
||||
|
||||
-- Controls how often synchronization packets are broadcast by the server
|
||||
-- in milliseconds
|
||||
-- Default value (in milliseconds): 180
|
||||
SyncUpdate = 180,
|
||||
|
||||
-- CAUTION: Setting this variable to true unlocks a number of potentially
|
||||
-- unsafe operations, which include:
|
||||
-- * Native Lua packages (.dll, .so)
|
||||
-- * Execution of Lua from arbitrary paths (Access to loadfile/dofile)
|
||||
-- * Unbound io functions, allowing for access to the entire file-system
|
||||
-- Default value: false
|
||||
IKnowWhatImDoing = false
|
||||
}
|
||||
|
||||
--[[
|
||||
SYNCRATE OPTIONS
|
||||
|
||||
Sync rate options. These values control how often synchronization
|
||||
packets are sent by the clients, in milliseconds. This lets you
|
||||
control how frequent the sync comes in, which may result in a
|
||||
smoother or less laggy experience
|
||||
--]]
|
||||
SyncRates =
|
||||
{
|
||||
-- Default value (in milliseconds): 75
|
||||
Vehicle = 75,
|
||||
-- Default value (in milliseconds): 120
|
||||
OnFoot = 120,
|
||||
-- Default value (in milliseconds): 1000
|
||||
Passenger = 1000,
|
||||
-- Default value (in milliseconds): 250
|
||||
MountedGun = 250,
|
||||
-- Default value (in milliseconds): 350
|
||||
StuntPosition = 350
|
||||
}
|
||||
|
||||
--[[
|
||||
STREAMER OPTIONS
|
||||
|
||||
Streamer-related options. The streamer is responsible for controlling the
|
||||
visibility of objects (including players and vehicles) for other players.
|
||||
|
||||
What this means is that if you want to extend the distance at which objects
|
||||
remain visible for players, you need to change the StreamDistance.
|
||||
--]]
|
||||
Streamer =
|
||||
{
|
||||
-- The default distance before objects are streamed out.
|
||||
-- Default value (in metres): 500
|
||||
StreamDistance = 500
|
||||
}
|
||||
|
||||
--[[
|
||||
VEHICLE OPTIONS
|
||||
|
||||
Vehicle-related options.
|
||||
--]]
|
||||
Vehicle =
|
||||
{
|
||||
-- The number of seconds required for a vehicle to respawn after
|
||||
-- vehicle death.
|
||||
-- Default value (in seconds): 10
|
||||
-- For instant respawn: 0
|
||||
-- For no respawning: nil
|
||||
DeathRespawnTime = 10,
|
||||
-- Controls whether to remove the vehicle if respawning is turned off,
|
||||
-- and the vehicle dies.
|
||||
-- Default value: false
|
||||
DeathRemove = false,
|
||||
|
||||
-- The number of seconds required for a vehicle to respawn after it is
|
||||
-- left unoccupied.
|
||||
-- Default value (in seconds): 45
|
||||
-- For instant respawn: 0
|
||||
-- For no respawning: nil
|
||||
UnoccupiedRespawnTime = 45,
|
||||
-- Controls whether to remove the vehicle if respawning is turned off,
|
||||
-- and the vehicle is left unoccupied.
|
||||
-- Default value: false
|
||||
UnoccupiedRemove = false,
|
||||
}
|
||||
|
||||
--[[
|
||||
PLAYER OPTIONS
|
||||
|
||||
Player-related options.
|
||||
--]]
|
||||
Player =
|
||||
{
|
||||
-- The default spawn position for players. If you do not use a script
|
||||
-- to handle spawns, such as the freeroam script, then this spawn position
|
||||
-- will be used.
|
||||
-- Default value: Vector3( -6550, 209, -3290 )
|
||||
SpawnPosition = Vector3( -6550, 209, -3290 )
|
||||
}
|
||||
|
||||
--[[
|
||||
MODULE OPTIONS
|
||||
|
||||
Lua module-related options.
|
||||
--]]
|
||||
Module =
|
||||
{
|
||||
--[[
|
||||
To prevent a large number of errors building up, modules are automatically
|
||||
unloaded after a certain number of errors in a given timespan. Each error
|
||||
adds to a counter, which is decremented if there has not been an error
|
||||
in a certain amount of time.
|
||||
|
||||
This allows you to adjust the number of errors before the module is unloaded,
|
||||
as well as the time since the last error for the counter to be decremented.
|
||||
--]]
|
||||
|
||||
-- The maximum number of errors before a module is unloaded.
|
||||
-- Default value: 5
|
||||
MaxErrorCount = 5,
|
||||
-- The time from the last error necessary for the error counter to be decremented.
|
||||
-- Default value (in milliseconds): 500
|
||||
ErrorDecrementTime = 500
|
||||
}
|
||||
|
||||
--[[
|
||||
WORLD OPTIONS
|
||||
|
||||
Default settings for worlds.
|
||||
--]]
|
||||
World =
|
||||
{
|
||||
-- The default time of day at world creation.
|
||||
-- Default value (in hours): 0.0
|
||||
Time = 0.0,
|
||||
|
||||
-- The increment added to the time of day each second.
|
||||
-- Default value (in minutes): 1
|
||||
TimeStep = 1,
|
||||
|
||||
-- The default weather severity at world creation.
|
||||
-- Default value: 0
|
||||
WeatherSeverity = 0
|
||||
}
|
@ -1,65 +1,88 @@
|
||||
#!/bin/bash
|
||||
# Just Cause 2
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: GAMENAME | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
updateonstart="off"
|
||||
#### Server Settings ####
|
||||
# No settings available for Just Cause 2
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care
|
||||
fn_parms(){
|
||||
parms=""
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="261140"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="261140"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta publicbeta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="jc2-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Just Cause 2"
|
||||
engine="avalanche"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="jc2-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -68,6 +91,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="./Jcmp-Server"
|
||||
@ -75,24 +100,26 @@ servercfg="config.lua"
|
||||
servercfgdefault="config.lua"
|
||||
servercfgdir="${filesdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
#gamelogdir="" # No server logs available
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -149,8 +176,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,39 +1,34 @@
|
||||
#!/bin/bash
|
||||
# Killing Floor
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Killing Floor | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="KF-BioticsLab.rom"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
fn_parms(){
|
||||
parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"
|
||||
@ -43,29 +38,59 @@ parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini
|
||||
#parms="server ${defaultmap}?Game=KFStoryGame.KFStoryGame?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="215360"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="215360"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="kf-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Killing Floor"
|
||||
engine="unreal2"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="kf-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -74,6 +99,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/System"
|
||||
executabledir="${systemdir}"
|
||||
executable="./ucc-bin"
|
||||
@ -82,26 +109,28 @@ servercfgdefault="Default.ini"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
compressedmapsdir="${rootdir}/Maps-Compressed"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${rootdir}/log/server"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
gamelog="${gamelogdir}/${servicename}-game.log"
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -158,8 +187,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,15 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
@ -1,72 +1,93 @@
|
||||
#!/bin/bash
|
||||
# Left 4 Dead
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# Contributor: Summit Singh Thakur
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Left 4 Dead | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="l4d_hospital01_apartment"
|
||||
maxplayers="8"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game left4dead -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="222840"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="222840"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="l4d-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Left 4 Dead"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="l4d-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -75,6 +96,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/left4dead"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -82,24 +105,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -156,8 +181,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,15 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
@ -1,71 +1,93 @@
|
||||
#!/bin/bash
|
||||
# Left 4 Dead 2
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Left 4 Dead 2 | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="c5m1_waterfront"
|
||||
maxplayers="8"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game left4dead2 -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="222860"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="222860"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="l4d2-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Left 4 Dead 2"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="l4d2-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -74,6 +96,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/left4dead2"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -81,24 +105,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -155,8 +181,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,40 +0,0 @@
|
||||
#Minecraft server properties (LGSM 210516)
|
||||
#Sat Aug 20 17:30:15 CEST 2016
|
||||
allow-flight=false
|
||||
allow-nether=true
|
||||
announce-player-achievements=true
|
||||
difficulty=1
|
||||
enable-command-block=false
|
||||
enable-query=false
|
||||
enable-rcon=false
|
||||
force-gamemode=false
|
||||
gamemode=0
|
||||
generate-structures=true
|
||||
generator-settings=
|
||||
hardcore=false
|
||||
level-name=world
|
||||
level-seed=
|
||||
level-type=DEFAULT
|
||||
max-build-height=256
|
||||
max-players=20
|
||||
max-tick-time=60000
|
||||
max-world-size=29999984
|
||||
motd=A Minecraft Server
|
||||
network-compression-threshold=256
|
||||
online-mode=true
|
||||
op-permission-level=4
|
||||
player-idle-timeout=0
|
||||
pvp=true
|
||||
rcon.password=
|
||||
rcon.port=25575
|
||||
resource-pack-sha1=
|
||||
resource-pack=
|
||||
server-ip=
|
||||
server-port=25565
|
||||
snooper-enabled=true
|
||||
spawn-animals=true
|
||||
spawn-monsters=true
|
||||
spawn-npcs=true
|
||||
use-native-transport=true
|
||||
view-distance=10
|
||||
white-list=false
|
@ -1,60 +1,88 @@
|
||||
#!/bin/bash
|
||||
# Minecraft
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Minecraft | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Start Variables
|
||||
updateonstart="off"
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
javaram="1024" # -Xmx$1024M
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care
|
||||
fn_parms(){
|
||||
parms="nogui"
|
||||
}
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
#### Advanced Variables ####
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Github Branch Select
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Server Details
|
||||
servicename="mc-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Minecraft"
|
||||
engine="lwjgl2"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="mc-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
lgsmdir="${rootdir}/lgsm"
|
||||
functionsdir="${lgsmdir}/functions"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="java -Xmx${javaram}M -jar minecraft_server.jar"
|
||||
@ -63,24 +91,26 @@ servercfgdefault="server.properties"
|
||||
servercfgdir="${filesdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
servercfgdefault="${servercfgdir}/lgsm-default.ini"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -137,8 +167,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,53 +1,78 @@
|
||||
#!/bin/bash
|
||||
# Mumble
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# Contributor: UltimateByte
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Mumble | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Start Variables
|
||||
updateonstart="off"
|
||||
#### Server Settings ####
|
||||
# Use .ini config file for Mumble (Murmur) server.
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care
|
||||
fn_parms(){
|
||||
parms="-fg -ini ${servercfgfullpath}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Server Details
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Mumble"
|
||||
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="mumble-server"
|
||||
|
||||
# Directories
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -56,6 +81,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="./murmur.x86"
|
||||
@ -63,24 +90,26 @@ servercfg="${servicename}.ini"
|
||||
servercfgdefault="murmur.ini"
|
||||
servercfgdir="${filesdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${rootdir}/log"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -137,8 +166,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,41 +1,36 @@
|
||||
#!/bin/bash
|
||||
# NS2: Combat
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: NS2: Combat | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="co_core"
|
||||
port="27015"
|
||||
maxplayers="24"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
servername="NS2C Server"
|
||||
webadminuser="admin"
|
||||
webadminpass="admin"
|
||||
@ -46,34 +41,65 @@ password=""
|
||||
# that the password variable above is not left empty.
|
||||
# -password \"${password}\"
|
||||
|
||||
# http://wiki.unknownworlds.com/ns2/Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | http://wiki.unknownworlds.com/ns2/Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser ${webadminuser} -webpassword \"${webadminpass}\" -webport ${webadminport} -map ${defaultmap} -limit ${maxplayers} -config_path \"${servercfgdir}\" -modstorage \"${modstoragedir}\" -mods \"${mods}\""
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="313900"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="313900"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="ns2c-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="NS2: Combat"
|
||||
engine="spark"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ns2c-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -82,30 +108,34 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}/ia32"
|
||||
executable="./ns2combatserver_linux32"
|
||||
servercfgdir="${rootdir}/server1"
|
||||
servercfgfullpath="${servercfgdir}"
|
||||
modstoragedir="${servercfgdir}/Workshop"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -162,8 +192,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,41 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Natural Selection 2
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Natural Selection 2 | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="ns2_summit"
|
||||
port="27015"
|
||||
maxplayers="24"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
servername="NS2 Server"
|
||||
webadminuser="admin"
|
||||
webadminpass="admin"
|
||||
@ -46,34 +41,65 @@ password=""
|
||||
# that the password variable above is not left empty.
|
||||
# -password \"${password}\"
|
||||
|
||||
# http://wiki.unknownworlds.com/ns2/Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | http://wiki.unknownworlds.com/ns2/Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser ${webadminuser} -webpassword \"${webadminpass}\" -webport ${webadminport} -map ${defaultmap} -limit ${maxplayers} -config_path \"${servercfgdir}\" -logdir \"${gamelogdir}\" -modstorage \"${modstoragedir}\" -mods \"${mods}\""
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="4940"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="4940"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="ns2-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Natural Selection 2"
|
||||
engine="spark"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ns2-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -82,30 +108,34 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="./server_linux32"
|
||||
servercfgdir="${rootdir}/server1"
|
||||
servercfgfullpath="${servercfgdir}"
|
||||
modstoragedir="${servercfgdir}/Workshop"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -162,8 +192,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,121 +0,0 @@
|
||||
// ****************************************************************************
|
||||
// *
|
||||
// No More Room in Hell - server.cfg *
|
||||
// Version 100116 *
|
||||
// *
|
||||
// ****************************************************************************
|
||||
|
||||
// ............................. Basic Settings ............................. //
|
||||
|
||||
// Hostname for server.
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON - remote console password.
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server password - for private servers.
|
||||
sv_password ""
|
||||
|
||||
// Contact email for server sysop.
|
||||
sv_contact "email@example.com"
|
||||
|
||||
// LAN Mode - If set the server will not show on the internet.
|
||||
// Default: sv_lan 0
|
||||
sv_lan 0
|
||||
|
||||
// ............................... Map Cycles ............................... //
|
||||
// info: There are several predefined mapcycles available that are listed below.
|
||||
// You can also create your own custom mapcycle.
|
||||
|
||||
// "mapcycle.txt" - all maps
|
||||
// "mapcycle_objective.txt" - objective maps only
|
||||
// "mapcycle_survival.txt" - survival maps only
|
||||
//
|
||||
mapcyclefile "mapcycle.txt"
|
||||
|
||||
// ....................... Time Limits/Round Settings ....................... //
|
||||
|
||||
// Time spend on a single map (in minutes) before switching to a new one automatically.
|
||||
// Default: mp_timelimit 1
|
||||
mp_timelimit 45
|
||||
|
||||
// Maximum number of rounds to spend on a map before moving to the next one.
|
||||
// Default: mp_maxrounds 2
|
||||
mp_maxrounds 2
|
||||
|
||||
// ........................ Game Specific Commands ........................ //
|
||||
// info: any commands that only apply to this game.
|
||||
|
||||
// Difficulty
|
||||
// info: http://git.io/v35eI
|
||||
// "casual" - casual difficulty.
|
||||
// "classic" - classic difficulty.
|
||||
sv_difficulty "classic"
|
||||
|
||||
// Server tags - Tags show up on the in-game server browser. This helps
|
||||
// users filter servers.
|
||||
// vanilla - he server runs the default settings.
|
||||
// custom - the server runs custom gameplay settings or mods.
|
||||
// example: sv_tags "custom, fastdl"
|
||||
sv_tags ""
|
||||
|
||||
// Friendly fire - Allows team members to injure other members of their team.
|
||||
// Default: mp_friendlyfire 0
|
||||
mp_friendlyfire 0
|
||||
|
||||
// ............................. Communication ............................. //
|
||||
|
||||
// Enable communication over voice via microphone.
|
||||
// Default: sv_voiceenable 1
|
||||
sv_voiceenable 1
|
||||
|
||||
// Players can hear all other players, no team restrictions.
|
||||
// Default: sv_alltalk 0
|
||||
sv_alltalk 1
|
||||
|
||||
// ............................. Fast Download .............................. //
|
||||
// info: Allows custom maps to be downloaded to the client.
|
||||
|
||||
// Allows clients to download custom maps and textures etc. from the server at 20 kbps.
|
||||
// Default: sv_allowdownload 1
|
||||
sv_allowdownload 1
|
||||
|
||||
// Allows clients to download custom maps, textures etc. from a web server with no transfer limit.
|
||||
// Example:
|
||||
// server location: maps/custommap.bsp
|
||||
// web server location: http://example.com/custom/maps/custommap.bsp
|
||||
// sv_downloadurl "http://example.com/custom"
|
||||
// Default: sv_downloadurl ""
|
||||
sv_downloadurl ""
|
||||
|
||||
// ................................ Ban List ............................... //
|
||||
|
||||
// personal banlist based on user IDs.
|
||||
exec banned_user.cfg
|
||||
|
||||
// personal banlist based on user IPs.
|
||||
exec banned_ip.cfg
|
||||
|
||||
writeid
|
||||
writeip
|
||||
|
||||
// ............................. Server Logging ............................. //
|
||||
|
||||
//Enables logging to file, console, and udp < on | off >.
|
||||
log on
|
||||
|
||||
// Log server bans in the server logs.
|
||||
// Default: sv_logbans 1
|
||||
sv_logbans 1
|
||||
|
||||
// Echo log information to the console.
|
||||
// Default: sv_logecho 1
|
||||
sv_logecho 1
|
||||
|
||||
// Log server information in the log file.
|
||||
// Default: sv_logfile 1
|
||||
sv_logfile 1
|
||||
|
||||
// Log server information to only one file.
|
||||
// Default: sv_log_onefile 0
|
||||
sv_log_onefile 0
|
@ -1,77 +1,99 @@
|
||||
#!/bin/bash
|
||||
# No More Room in Hell
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: No More Room in Hell | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="nmo_broadway"
|
||||
maxplayers="8"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# Optional: Game Server Login Token
|
||||
## Optional: Game Server Login Token
|
||||
# GSLT can be used for running a public server.
|
||||
# More info: https://gameservermanagers.com/gslt
|
||||
gslt=""
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game nmrih -insecure -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="317670"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="317670"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="nmrih-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="No More Room in Hell"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="nmrih-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -80,6 +102,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/nmrih"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -87,24 +111,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -161,8 +187,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,35 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// disable autoaim
|
||||
sv_aim 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
pausable 0
|
||||
|
||||
// maximum client movement speed
|
||||
sv_maxspeed 320
|
||||
|
||||
// 20 minute timelimit
|
||||
mp_timelimit 20
|
||||
|
||||
// cheats off
|
||||
sv_cheats 0
|
||||
|
||||
// load ban files
|
||||
exec listip.cfg
|
||||
exec banned.cfg
|
||||
|
@ -1,67 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Half-Life: Opposing Force
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Half-Life: Opposing Force | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="op4_bootcamp"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
fn_parms(){
|
||||
parms="-game gearbox -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="90"
|
||||
appidmod="gearbox"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="90"
|
||||
appidmod="gearbox"
|
||||
|
||||
# Server Details
|
||||
servicename="opfor-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Half-Life: Opposing Force"
|
||||
engine="goldsource"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="opfor-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/gearbox"
|
||||
executabledir="${filesdir}"
|
||||
executable="./hlds_run"
|
||||
@ -77,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,119 +0,0 @@
|
||||
// ****************************************************************************
|
||||
// *
|
||||
// Pirates, Vikings, and Knights II *
|
||||
// Version 100116 *
|
||||
// *
|
||||
// ****************************************************************************
|
||||
|
||||
// ............................. Basic Settings ............................. //
|
||||
|
||||
// Hostname for server.
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON - remote console password.
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server password - for private servers.
|
||||
sv_password ""
|
||||
|
||||
// Contact email for server sysop.
|
||||
sv_contact "email@example.com"
|
||||
|
||||
// LAN Mode - If set the server will not show on the internet.
|
||||
// Default: sv_lan 0
|
||||
sv_lan 0
|
||||
|
||||
// ............................... Map Cycles ............................... //
|
||||
// You can create your own custom mapcycle.
|
||||
mapcyclefile "mapcycle.txt"
|
||||
|
||||
// ....................... Time Limits/Round Settings ....................... //
|
||||
|
||||
// Time spend on a single map (in minutes) before switching to a new one automatically.
|
||||
// Default: mp_timelimit 0
|
||||
mp_timelimit 20
|
||||
|
||||
// Wait for the end of round before changing map.
|
||||
// Default: mp_timelimit_waitroundend 0
|
||||
mp_timelimit_waitroundend 1
|
||||
|
||||
// Round duration in minutes.
|
||||
// Default: mp_roundtime 3
|
||||
mp_roundtime 3
|
||||
|
||||
// Round limit in number of rounds.
|
||||
// Default: mp_roundlimit 0
|
||||
|
||||
// Win limit in number of rounds.
|
||||
// Default: mp_winlimit 0
|
||||
mp_winlimit 0
|
||||
|
||||
// ........................ Game Specific Commands ........................ //
|
||||
|
||||
// Server tags - Tags show up on the in-game server browser. This helps
|
||||
// users filter servers.
|
||||
// vanilla - he server runs the default settings.
|
||||
// custom - the server runs custom gameplay settings or mods.
|
||||
// example: sv_tags "custom, fastdl"
|
||||
sv_tags ""
|
||||
|
||||
// Friendly fire - Allows team members to injure other members of their team.
|
||||
// Default: mp_friendlyfire 0
|
||||
mp_friendlyfire 0
|
||||
|
||||
// ............................. Communication ............................. //
|
||||
|
||||
// Enable communication over voice via microphone.
|
||||
// Default: sv_voiceenable 1
|
||||
sv_voiceenable 1
|
||||
|
||||
// Players can hear all other players, no team restrictions.
|
||||
// Default: sv_alltalk 0
|
||||
sv_alltalk 0
|
||||
|
||||
// ............................. Fast Download .............................. //
|
||||
// info: Allows custom maps to be downloaded to the client.
|
||||
|
||||
// Allows clients to download custom maps and textures etc. from the server at 20 kbps.
|
||||
// Default: sv_allowdownload 1
|
||||
sv_allowdownload 1
|
||||
|
||||
// Allows clients to download custom maps, textures etc. from a web server with no transfer limit.
|
||||
// Example:
|
||||
// server location: maps/custommap.bsp
|
||||
// web server location: http://example.com/custom/maps/custommap.bsp
|
||||
// sv_downloadurl "http://example.com/custom"
|
||||
// Default: sv_downloadurl ""
|
||||
sv_downloadurl ""
|
||||
|
||||
// ................................ Ban List ............................... //
|
||||
|
||||
// personal banlist based on user IDs.
|
||||
exec banned_user.cfg
|
||||
|
||||
// personal banlist based on user IPs.
|
||||
exec banned_ip.cfg
|
||||
|
||||
writeid
|
||||
writeip
|
||||
|
||||
// ............................. Server Logging ............................. //
|
||||
|
||||
//Enables logging to file, console, and udp < on | off >.
|
||||
log on
|
||||
|
||||
// Log server bans in the server logs.
|
||||
// Default: sv_logbans 1
|
||||
sv_logbans 1
|
||||
|
||||
// Echo log information to the console.
|
||||
// Default: sv_logecho 1
|
||||
sv_logecho 1
|
||||
|
||||
// Log server information in the log file.
|
||||
// Default: sv_logfile 1
|
||||
sv_logfile 1
|
||||
|
||||
// Log server information to only one file.
|
||||
// Default: sv_log_onefile 0
|
||||
sv_log_onefile 0
|
@ -1,72 +1,94 @@
|
||||
#!/bin/bash
|
||||
# No More Room in Hell
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: No More Room in Hell | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="bt_island"
|
||||
maxplayers="24"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game pvkii -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="17575"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="17575"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="pvkii-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Pirates, Vikings, and Knights II"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="pvkii-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -75,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/pvkii"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -82,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -156,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,66 +0,0 @@
|
||||
nightlengthmodifier=1.0
|
||||
PVP=true
|
||||
PauseEmpty=false
|
||||
GlobalChat=true
|
||||
Open=true
|
||||
ServerWelcomeMessage= <RGB:1,0,0> Welcome to Project Zomboid MP ! to chat locally press "t", to global chat press "y" or add "/all" before chatting <LINE> Press /help to have a list of server commands <LINE> <RGB:1,1,1>
|
||||
LogLocalChat=false
|
||||
AutoCreateUserInWhiteList=false
|
||||
DisplayUserName=true
|
||||
SpawnPoint=0,0,0
|
||||
SafetySystem=true
|
||||
ShowSafety=true
|
||||
SafetyToggleTimer=100
|
||||
SafetyCooldownTimer=120
|
||||
SpawnItems=
|
||||
DefaultPort=16261
|
||||
Mods=
|
||||
Map=Muldraugh, KY
|
||||
DoLuaChecksum=true
|
||||
Public=false
|
||||
PublicName=pzserver
|
||||
PublicDescription=
|
||||
MaxPlayers=64
|
||||
PingFrequency=10
|
||||
PingLimit=400
|
||||
HoursForLootRespawn=0
|
||||
MaxItemsForLootRespawn=4
|
||||
ConstructionPreventsLootRespawn=true
|
||||
DropOffWhiteListAfterDeath=false
|
||||
NoFireSpread=false
|
||||
NoFire=false
|
||||
AnnounceDeath=false
|
||||
MinutesPerPage=1.0
|
||||
HoursForCorpseRemoval=0.0
|
||||
SaveWorldEveryMinutes=0
|
||||
PlayerSafehouse=false
|
||||
AdminSafehouse=false
|
||||
SafehouseAllowTrepass=true
|
||||
SafehouseAllowFire=true
|
||||
SafehouseAllowLoot=true
|
||||
SafehouseAllowRespawn=false
|
||||
SafehouseDaySurvivedToClaim=0
|
||||
SafeHouseRemovalTime=144
|
||||
AllowDestructionBySledgehammer=true
|
||||
KickFastPlayers=false
|
||||
RCONPort=27015
|
||||
RCONPassword=
|
||||
Password=
|
||||
MaxAccountsPerUser=0
|
||||
SleepAllowed=false
|
||||
SleepNeeded=false
|
||||
SteamPort1=8766
|
||||
SteamPort2=8767
|
||||
WorkshopItems=
|
||||
SteamScoreboard=true
|
||||
SteamVAC=true
|
||||
UPnP=true
|
||||
UPnPLeaseTime=86400
|
||||
UPnPZeroLeaseTimeFallback=true
|
||||
UPnPForce=true
|
||||
CoopServerLaunchTimeout=20
|
||||
CoopMasterPingTimeout=60
|
||||
server_browser_announced_ip=
|
||||
UseTCPForMapDownloads=false
|
||||
PlayerRespawnWithSelf=false
|
||||
PlayerRespawnWithOther=false
|
@ -1,68 +1,88 @@
|
||||
#!/bin/bash
|
||||
# Project Zomboid
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# Contributions: Bryce Van Dyk (SingingTree)
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Project Zomboid | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
adminpassword="CHANGE_ME"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
fn_parms(){
|
||||
parms="-ip ${ip} -adminpassword \"${adminpassword}\""
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="380870"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="380870"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta iwillbackupmysave -betapassword iaccepttheconsequences"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="pz-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Project Zomboid"
|
||||
engine="projectzomboid"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="pz-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -71,6 +91,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="./start-server.sh"
|
||||
@ -78,24 +100,26 @@ servercfg="server.ini"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${HOME}/Zomboid/Server"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${HOME}/Zomboid/Logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -152,8 +176,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,15 +0,0 @@
|
||||
set hostname "<hostname>"
|
||||
set rcon_password "<rconpassword>"
|
||||
set location "The Internet"
|
||||
set website "https://gameservermanagers.com/"
|
||||
set deathmatch 1
|
||||
set maxclients 8
|
||||
set timelimit 30
|
||||
set fraglimit 30
|
||||
|
||||
map q2dm1
|
||||
|
||||
// to advertise your server to a public "master server" add something
|
||||
// like this:
|
||||
//set public 1
|
||||
//setmaster master.q2servers.com
|
100
Quake2/q2server
100
Quake2/q2server
@ -1,54 +1,78 @@
|
||||
#!/bin/bash
|
||||
# Quake 2
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Quake 2 | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="210516"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="q2dm1"
|
||||
ip="0.0.0.0"
|
||||
port="27910"
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
fn_parms(){
|
||||
parms="+set dedicated 1 +set ip ${ip} +set port ${port} +exec ${servercfg} +set deathmatch 1 +map ${defaultmap}"
|
||||
}
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
#### Advanced Variables ####
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Github Branch Select
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Server Details
|
||||
servicename="quake2server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Quake 2"
|
||||
engine="idtech2"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="quake2server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -57,6 +81,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/baseq2"
|
||||
executabledir="${filesdir}"
|
||||
executable="./quake2"
|
||||
@ -64,24 +90,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${filesdir}/Logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -138,8 +166,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,36 +0,0 @@
|
||||
set sv_hostname "<hostname>"
|
||||
set sv_maxclients 16
|
||||
set g_motd "LGSM Quake3 Server"
|
||||
set g_forcerespawn 15
|
||||
set rconpassword "<rconpassword>"
|
||||
set g_gametype 0 //- Sets the type of game. 0 - Free for all, 1 - Tournament, 2 - Free for all(again), 3 - Team Deathmatch, 4 - Capture the Flag
|
||||
set fraglimit 50
|
||||
set timelimit 20
|
||||
|
||||
//Here's the map-cycle. When fraglimit or timelimit is reached, the map is automatically changed.
|
||||
//Otherwise it would just play the same map again.
|
||||
set m1 "map q3dm1; set nextmap vstr m2"
|
||||
set m2 "map q3dm2; set nextmap vstr m3"
|
||||
set m3 "map q3dm3; set nextmap vstr m4"
|
||||
set m4 "map q3tourney1; set nextmap vstr m5"
|
||||
set m5 "map q3dm4; set nextmap vstr m6"
|
||||
set m6 "map q3dm5; set nextmap vstr m7"
|
||||
set m7 "map q3dm6; set nextmap vstr m8"
|
||||
set m8 "map q3tourney2; set nextmap vstr m9"
|
||||
set m9 "map q3dm7; set nextmap vstr m10"
|
||||
set m10 "map q3dm8; set nextmap vstr m11"
|
||||
set m11 "map q3dm9; set nextmap vstr m12"
|
||||
set m12 "map q3tourney3; set nextmap vstr m13"
|
||||
set m13 "map q3dm10; set nextmap vstr m14"
|
||||
set m14 "map q3dm11; set nextmap vstr m15"
|
||||
set m15 "map q3dm12; set nextmap vstr m16"
|
||||
set m16 "map q3tourney4; set nextmap vstr m17"
|
||||
set m17 "map q3dm13; set nextmap vstr m18"
|
||||
set m18 "map q3dm14; set nextmap vstr m19"
|
||||
set m19 "map q3dm15; set nextmap vstr m20"
|
||||
set m20 "map q3tourney5; set nextmap vstr m21"
|
||||
set m21 "map q3dm16; set nextmap vstr m22"
|
||||
set m22 "map q3dm17; set nextmap vstr m23"
|
||||
set m23 "map q3dm18; set nextmap vstr m24"
|
||||
set m24 "map q3dm19; set nextmap vstr m25"
|
||||
set m25 "map q3tourney6; set nextmap vstr m1"
|
@ -1,54 +1,79 @@
|
||||
#!/bin/bash
|
||||
# Quake 3: Arena
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Quake 3: Arena | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="210516"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="q3dm17"
|
||||
ip="0.0.0.0"
|
||||
port="27960"
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
fn_parms(){
|
||||
parms="+set sv_punkbuster 0 +set fs_basepath ${filesdir} +set dedicated 1 +set com_hunkMegs 32 +set net_ip ${ip} +set net_port ${port} +exec ${servercfg} +map ${defaultmap}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Server Details
|
||||
servicename="quake3-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Quake 3: Arena"
|
||||
engine="idtech3"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="quake3-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -57,6 +82,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/baseq3"
|
||||
executabledir="${filesdir}"
|
||||
executable="./q3ded"
|
||||
@ -64,24 +91,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${filesdir}/Logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -138,8 +167,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
@ -1,103 +0,0 @@
|
||||
// Servers have the ability to run multiple gametypes, known as "factories." You should not add gameplay related
|
||||
// cvars in the server config: they may get overwritten by the factory. For creating your own sets of gameplay rules,
|
||||
// create a file ending in ".factories" inside baseq3/scripts, and refer to "Creating custom gametypes" in the
|
||||
// server_readme.txt file.
|
||||
|
||||
// Be aware that factories can override any cvar, including ones specified in this config file.
|
||||
|
||||
set sv_hostname "<hostname>"
|
||||
set sv_tags "" // Comma delimited field of server tags to show in server browser.
|
||||
// Will automatically include gametype and some gameplay modifications.
|
||||
// ex. "crouch slide, classic, space"
|
||||
set sv_mapPoolFile "mappool.txt" // Map pool that the server will use. See default mapcycle.txt for format.
|
||||
// Built in map pools: mappool.txt, mappool_ca.txt, mappool_ctf.txt, mappool_duel.txt,
|
||||
// mappool_ffa.txt, mappool_race.txt, mappool_tdm.txt
|
||||
set g_accessFile "access.txt" // Used to determine which 64-bit Steam IDs have admin access, or are banned.
|
||||
|
||||
set sv_maxClients "16" // How many players can connect at once.
|
||||
set g_password "" // Set a server-wide password, and stop all users from connecting without it.
|
||||
set sv_privateClients "0" // Reserve slots that can be used with sv_privatePassword.
|
||||
set sv_privatePassword "" // Password to use in conjunction with sv_privateClients.
|
||||
set com_hunkMegs "60" // May need to be increased for additional players.
|
||||
|
||||
// Flood protection will increment everytime the user sends a client command, ex. dropweapon, changing name, color
|
||||
// model, or chatting. Set g_floodprot_maxcount to 0 to disable completely, but this will allow uncontrolled spam.
|
||||
set sv_floodprotect "10" // Kick the player when they reach x commands, decreases by 1 every second
|
||||
set g_floodprot_maxcount "10" // Kick the player when their userinfo flood counter reaches this level.
|
||||
set g_floodprot_decay "1000" // Decrease the userinfo flood counter by 1 this often, in milliseconds.
|
||||
|
||||
// Add the below values for which callvotes should be DISABLED:
|
||||
// map 1
|
||||
// map_restart 2
|
||||
// nextmap 4
|
||||
// gametype 8 (ex: "/callvote map campgrounds" will be allowed, but "/callvote map campgrounds ca" will fail)
|
||||
// kick 16
|
||||
// timelimit 32
|
||||
// fraglimit 64
|
||||
// shuffle 128
|
||||
// teamsize 256
|
||||
// cointoss/random 512
|
||||
// loadouts 1024
|
||||
// end-game voting 2048
|
||||
// ammo (global) 4096
|
||||
// timers (item) 8192
|
||||
set g_voteFlags "0"
|
||||
set g_allowVote "1" // Turn off all votes
|
||||
set g_voteDelay "0" // Delay allowing votes for x milliseconds after map load.
|
||||
set g_voteLimit "0" // Limit users to x votes per map.
|
||||
set g_allowVoteMidGame "0" // Don't allow callvotes once the map has started
|
||||
set g_allowSpecVote "0" // Allow spectators to call votes
|
||||
|
||||
set sv_warmupReadyPercentage "0.51" // Ratio of players that must be ready before the match starts.
|
||||
set g_warmupDelay "15" // Wait x seconds before allowing match to start to allow all players to connect.
|
||||
set g_warmupReadyDelay "0" // Force the game to start after x seconds after someone readies up.
|
||||
set g_warmupReadyDelayAction "1" // Set to 1 to force players to spectator after g_warmupReady Delay, 2 to force ready up.
|
||||
|
||||
set g_inactivity "0" // Kick players who are inactive for x amount of seconds.
|
||||
set g_alltalk "0" // 0: Limit voice comms to teams during match
|
||||
// 1: Allow all players to talk to each other always
|
||||
// 2: 1+ send back your own voice to yourself for testing
|
||||
|
||||
// System settings
|
||||
|
||||
// Uncomment and set below to use (server.cfg will override commandline!)
|
||||
// set net_strict "1" // Quit out immediately if we can't bind the IP and port.
|
||||
// set net_ip "" // Which IP to bind to. Blank will bind to all interfaces.
|
||||
// set net_port "55555" // Which UDP port to bind to. Blank will start at 27960 and keep going up, if net_strict is 0.
|
||||
set sv_serverType "2" // 0 = Offline, 1 = LAN, 2 = Internet
|
||||
set sv_master "1" // Whether the server should respond to queries. Disable this to stop server from appearing in browser.
|
||||
// (This will affect the LAN browser!)
|
||||
|
||||
set sv_fps "40" // Change how many frames the server runs per second. WARNING: Has not been tested extensively, and
|
||||
// will have a direct impact on CPU and network usage!
|
||||
|
||||
// Exit the server if idle (not running a map) for a specified time. This will allow it to automatically restart
|
||||
// in the case of a game error or other problem. A value of "1" is recommended, but not default, when you are running
|
||||
// the server detached from the terminal.
|
||||
|
||||
set sv_idleExit "120"
|
||||
|
||||
// Enable remote console, provided through ZeroMQ. See zmq_rcon.py for simple client.
|
||||
// ZMQ rcon binds on a separate port from the game server, and uses TCP. It must differ from the stats port if used.
|
||||
// Rcon can not be enabled or disabled after launch, nor can the IP and port change. Password can, however.
|
||||
|
||||
// Uncomment and set below to use (server.cfg will override commandline!)
|
||||
set zmq_rcon_enable "1"
|
||||
// set zmq_rcon_ip ""
|
||||
// set zmq_rcon_port "28960"
|
||||
set zmq_rcon_password "<rconpassword>"
|
||||
|
||||
// Enable ZeroMQ stats socket. This will not be much use without a client listening.
|
||||
// See zmq_stats_verbose.py for example connect and stats printing.
|
||||
// If not specified, the stats socket will default to the same IP and port as the game server, but on TCP.
|
||||
|
||||
// Uncomment and set below to use (server.cfg will override commandline!)
|
||||
// set zmq_stats_enable "1"
|
||||
// set zmq_stats_ip ""
|
||||
// set zmq_stats_port ""
|
||||
// set zmq_stats_password ""
|
||||
|
||||
// The server will run serverstartup when it finishes initializing, so start a random map from the map pool.
|
||||
set serverstartup "startRandomMap"
|
||||
// Or, start a map of your choosing (factory is required)
|
||||
// set serverstartup "map campgrounds ffa"
|
@ -1,36 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Quake Live
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Quake Live | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
arch="x64" # x64 or x86
|
||||
port="27960"
|
||||
rconport="28960"
|
||||
@ -39,37 +31,67 @@ statsport="${port}"
|
||||
statspassword="CHANGE_ME"
|
||||
mappool='mappool.txt'
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# Install/Config Guide : https://steamcommunity.com/sharedfiles/filedetails/?id=542966946
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | Install/Config Guide : https://steamcommunity.com/sharedfiles/filedetails/?id=542966946
|
||||
# Console Commands : http://www.regurge.at/ql/
|
||||
fn_parms(){
|
||||
parms="+set net_strict 1 +set net_ip ${ip} +set net_port ${port} +set fs_homepath ${filesdir}/${port} +set zmq_rcon_enable 1 +set zmq_rcon_port ${rconport} +set zmq_rcon_password ${rconpassword} +set zmq_stats_enable 1 +set zmq_stats_password ${statspassword} +set zmq_stats_port ${statsport} +set sv_mapPoolFile ${mappool} +exec ${servercfg}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="349090"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="349090"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="ql-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Quake Live"
|
||||
engine="idtech3_ql"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ql-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -78,6 +100,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable=$([ "${arch}" == 'x64' ] && echo "./run_server_x64.sh" || echo "./run_server_x86.sh")
|
||||
@ -85,25 +109,27 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${filesdir}/baseq3"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${rootdir}/log/server"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
gamelog="${gamelogdir}/${servicename}-game.log"
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -160,8 +186,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,62 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Red Orchestra: Ostfront 41-45
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Red Orchestra: Ostfront 41-45 | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="RO-Arad.rom"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care
|
||||
fn_parms(){
|
||||
parms="server ${defaultmap}?game=ROGame.ROTeamGame?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="223250"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Server Details
|
||||
servicename="ro-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Red Orchestra: Ostfront 41-45"
|
||||
engine="unreal2"
|
||||
|
||||
# Steam
|
||||
appid="223250"
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ro-server"
|
||||
|
||||
# Directories
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -64,6 +96,8 @@ lgsmdir="${rootdir}/lgsm"
|
||||
functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
|
||||
## Server Specific Directories
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
systemdir="${filesdir}/system"
|
||||
executabledir="${systemdir}"
|
||||
@ -73,26 +107,32 @@ servercfgdefault="default.ini"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
compressedmapsdir="${rootdir}/Maps-Compressed"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${rootdir}/log/server"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
gamelog="${gamelogdir}/${servicename}-game.log"
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -149,8 +189,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,35 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// disable autoaim
|
||||
sv_aim 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
pausable 0
|
||||
|
||||
// maximum client movement speed
|
||||
sv_maxspeed 320
|
||||
|
||||
// 20 minute timelimit
|
||||
mp_timelimit 20
|
||||
|
||||
// cheats off
|
||||
sv_cheats 0
|
||||
|
||||
// load ban files
|
||||
exec listip.cfg
|
||||
exec banned.cfg
|
||||
|
@ -1,34 +1,26 @@
|
||||
#!/bin/bash
|
||||
# Ricochet
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Ricochet | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
#### Server Settings ####
|
||||
|
||||
# Start Variables
|
||||
defaultmap="rc_arena"
|
||||
@ -36,32 +28,91 @@ maxplayers="16"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
fn_parms(){
|
||||
parms="-game ricochet -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Github Branch Select
|
||||
#### Server Settings ####
|
||||
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
ip="0.0.0.0"
|
||||
|
||||
## Optional: Game Server Login Token
|
||||
# GSLT can be used for running a public server.
|
||||
# More info: https://gameservermanagers.com/gslt
|
||||
gslt=""
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms=""
|
||||
}
|
||||
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="90"
|
||||
appidmod="ricochet"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="90"
|
||||
appidmod="ricochet"
|
||||
|
||||
# Server Details
|
||||
servicename="ricochet-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Ricochet"
|
||||
engine="goldsource"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ricochet-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +121,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/ricochet"
|
||||
executabledir="${filesdir}"
|
||||
executable="./hlds_run"
|
||||
@ -77,24 +130,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +206,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,48 +0,0 @@
|
||||
# This file does not include all possible commands but it includes the most common/useful ones.
|
||||
# If you want to see all possible comands, in the server console type: find .
|
||||
|
||||
# Before some variables are a # symbol. This means it is disabled. Remove the # symbol to enable them.
|
||||
|
||||
#########################################
|
||||
# Important Settings You Need To Change #
|
||||
#########################################
|
||||
|
||||
# A text description of your server. For a new line add: \n
|
||||
server.description "LGSM Server\nRust support : UltimateByte"
|
||||
|
||||
# A URL to the image which shows up on the server details screen (dimensions are 512x256).
|
||||
server.headerimage "https://github.com/GameServerManagers/LinuxGSM/raw/master/images/logo/lgsm-full-light.png"
|
||||
|
||||
# The URL to your servers website.
|
||||
server.url "https://gameservermanagers.com/"
|
||||
|
||||
####################################
|
||||
# Optional Settings You Can Change #
|
||||
####################################
|
||||
|
||||
# A value of false makes text chat location based only (players need to be close to each other).
|
||||
# Values: true, false
|
||||
#server.globalchat true
|
||||
|
||||
# Controls if player vs player damage is allowed. If your server is primarily for building, you'll want to set this to false
|
||||
# Values: true, false
|
||||
#server.pve false
|
||||
|
||||
# Controls fall damage.
|
||||
# Values: true, false
|
||||
#falldamage.enabled true
|
||||
|
||||
# Helicopter bullet accuracy. Higher numbers are less accurate.
|
||||
#heli.bulletAccuracy 2
|
||||
|
||||
################################################
|
||||
# Settings That Will Lag Server Is Set Too Low #
|
||||
################################################
|
||||
|
||||
# Changes how often resources respawn.
|
||||
#spawn.min_rate 0.1
|
||||
#spawn.max_rate 1
|
||||
|
||||
# Changes how close resources spawn to each other.
|
||||
#spawn.min_density 0.1
|
||||
#spawn.max_density 1
|
134
Rust/rustserver
134
Rust/rustserver
@ -1,53 +1,43 @@
|
||||
#!/bin/bash
|
||||
# Rust
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# Contributor: UltimateByte (LGSM adaptation), Wulf (Information)
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Rust | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login (not required)
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Server settings
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
# More settings available after install in serverfiles/server/rust-server/server.cfg
|
||||
servername="Rust"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
port="28015"
|
||||
rconport="28016"
|
||||
rconpassword="CHANGE_ME"
|
||||
maxplayers="50"
|
||||
|
||||
# Advanced
|
||||
# Advanced Start Settings
|
||||
seed="" # default random; range : 1 to 2147483647 ; used to change or reproduce a procedural map
|
||||
worldsize="3000" # default 3000; range : 1000 to 6000 ; map size in meters
|
||||
saveinterval="300" # Auto-save in seconds
|
||||
tickrate="30" # default 30; range : 15 to 100
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Rust_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Rust_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-batchmode +server.ip ${ip} +server.port ${port} +server.tickrate ${tickrate} +server.hostname \"${servername}\" +server.identity \"${servicename}\" ${conditionalseed} +server.maxplayers ${maxplayers} +server.worldsize ${worldsize} +server.saveinterval ${saveinterval} +rcon.ip ${ip} +rcon.port ${rconport} +rcon.password \"${rconpassword}\" -logfile ${gamelogfile}"
|
||||
}
|
||||
@ -61,29 +51,59 @@ else
|
||||
conditionalseed=""
|
||||
fi
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="258550"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="258550"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta prerelease"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="rust-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Rust"
|
||||
engine="unity3d"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="rust-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -92,6 +112,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="./RustDedicated"
|
||||
@ -100,26 +122,28 @@ servercfg="server.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${serveridentitydir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${rootdir}/log/server"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
gamelog="${gamelogdir}/${servicename}-game.log"
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
gamelogfile="\"gamelog-$(date '+%Y-%m-%d-%H-%M-%S').log\""
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -176,8 +200,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,49 +0,0 @@
|
||||
-- Generated with Server GUI 3
|
||||
-- http://mrag.nl/sgui3/
|
||||
|
||||
-- General
|
||||
rcts_strWelcomeNote = "Server RCON MOTD";
|
||||
rcts_strAdminPassword = "rconpassword";
|
||||
prj_strLogFile = "";
|
||||
net_strLocalHost = "";
|
||||
gam_idGameMode = "Cooperative";
|
||||
ser_iMaxClientBPS = 11000;
|
||||
prj_iDedicatedFPS = 100;
|
||||
gam_ctMaxPlayers = 12;
|
||||
prj_uwPort = 27015;
|
||||
prj_strMultiplayerSessionName = "Serious Sam 3 Server";
|
||||
|
||||
-- Options
|
||||
gam_bAllowJoinInProgress = 1;
|
||||
gam_bAllowPowerupItems = 1;
|
||||
gam_bAllowArmorItems = 1;
|
||||
gam_bWeaponsStay = 1;
|
||||
gam_bAmmoStays = 1;
|
||||
gam_bArmorStays = 1;
|
||||
gam_bHealthStays = 1;
|
||||
gam_bAllowHealthItems = 1;
|
||||
gam_bInfiniteAmmo = 0;
|
||||
|
||||
-- Levels
|
||||
local mapList = "";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\01_CairoSquare\01_CairoSquare.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\02_CairoMuseum\02_CairoMuseum.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\03_IbnTulun\03_IbnTulun.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\04_IbnTulun\04_Medina.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\05_CairoTown\05_CairoTown.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\06_Pyramids\06_Pyramids.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\07_Karnak1\07_Karnak1.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\08_Karnak2\08_Karnak2.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\09_Luxor\09_Luxor.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\10_LostNubianTemples\10_LostNubianTemples.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\11_Ramesseum\11_Ramesseum.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\01_BFE\12_HatshepsutTemple\12_HatshepsutTemple.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\02_DLC\01_Philae\01_Philae.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\02_DLC\02_AbuSimbel\02_AbuSimbel.wld;";
|
||||
mapList = mapList .. "Content\SeriousSam3\Levels\02_DLC\03_TempleOfSethirkopshef\03_TempleOfSethirkopshef.wld;";
|
||||
prj_StrMapList = mapList;
|
||||
|
||||
-- Scripts
|
||||
|
||||
-- Custom
|
||||
|
@ -1,139 +0,0 @@
|
||||
Serious Engine Dedicated Server
|
||||
===============================
|
||||
|
||||
1. Starting and stopping the dedicated server
|
||||
---------------------------------------------
|
||||
|
||||
You can launch the dedicated server either from the Steam client's Tools tab, or by directly starting its executable file. In either case, a Steam client needs to be running on that machine, though the user logged in doesn't have to actually own the game.
|
||||
|
||||
In absence of any further configuration, the server will start the first level of the Coop campaign, with all default settings, on the default port.
|
||||
|
||||
The server will pause immediately after the first level is loaded, and wait for players to join, to conserve the game state. When the first player joins, the game will unpause.
|
||||
|
||||
When all players disconnect, the server will restart its session from the first level again.
|
||||
|
||||
To stop the server, press Ctrl+C in its console window and wait until it shuts down.
|
||||
|
||||
2. Server ports
|
||||
---------------
|
||||
|
||||
The server will be immediately visible on your LAN, but to make sure it is also visible on the internet, you need to open the port 27016. Note that this is only game enumeration port, as the game traffic port cannot be specified at the moment, thus this will not alleviate the need for NAT punching. I.e. it is not recommended to run a dedicated server behind a NAT/router that doesn't properly support NAT punching, or otherwise all connections to it will have very high pings. We expect the game traffic port to be specifiable in one of the future updates, but it is not currently possible.
|
||||
|
||||
If you want to allow remote administration (see the section about remote administration below), you need to also forward port 27015 (TCP-only).
|
||||
|
||||
You can change the port that the server is running on using the command-line option "+port". The server will use the given port for Rcon administration and the given port +1 for game enumeration (see above). So, e.g. if you use "+port 25600", game enumeration will work on port 25601 and rcon on port 25600. When game traffic specification becomes possible, it will be on port 25600 in the example, but this is currently not supported.
|
||||
|
||||
You can change the network interface that the server will bind to using the command-line option "+ip". This is used both fr Rcon administration and for game enumeration. When game traffic specification becomes possible, it will also use this, but this is currently not supported (game traffic chooses an interface automatically).
|
||||
|
||||
3. Command line
|
||||
---------------
|
||||
|
||||
Command line options can be used to modify any cvar using this format:
|
||||
|
||||
SamHD_DedicatedServer.exe +cvarname1 cvarvalue1 +cvarname2 cvarvalue2 ... +cvarnameN cvarvalueN
|
||||
|
||||
Quotes are needed around values that contain spaces. Cvar names in the command line can be either short names (e.g. +level "Path/Level") where available, or long names (+gam_strLevel "Path/Level").
|
||||
|
||||
4. Configuration scripts
|
||||
------------------------
|
||||
|
||||
When starting, in addition to the command line option, the server will read configuration parameters from the following sources (in this order):
|
||||
* Content/SeriousSamHD/Config/dedicatedserver.cfg,
|
||||
* eventual custom script specified via the +exec command line option,
|
||||
* eventual per-session script specified via the +gameoptions command line option.
|
||||
The first two are read once on boot, the last one is read on each session start and restart. (When all player's disconnect, the server will load this again before starting the first level.)
|
||||
|
||||
All of those scripts are fully-featured console scripts, i.e. they use the Lua programming language, so you can put ifs, functions and other programming constructs in them. For a full syntax description and other documentation regarding the Lua programming language, please visit: http://www.lua.org .
|
||||
|
||||
Dedicated server does not load or save any .ini files.
|
||||
|
||||
5. Most relevant command line options and cvars
|
||||
-----------------------------------------------
|
||||
(long name shown in parentheses)
|
||||
* +gamemode (gam_idGameMode) - Valid values are:
|
||||
(cooperative group)
|
||||
Cooperative (this is the default)
|
||||
CooperativeCoinOp
|
||||
TeamSurvival
|
||||
(versus group)
|
||||
BeastHunt
|
||||
CaptureTheFlag
|
||||
Deathmatch
|
||||
InstantKill
|
||||
LastManStanding
|
||||
LastTeamStanding
|
||||
MyBurden
|
||||
TeamBeastHunt
|
||||
TeamDeathmatch
|
||||
Note that players can vote to change the game mode, but they cannot switch a server from Cooperative modes to Versus modes or vice versa.
|
||||
IMPORTANT: Changing this option resets all other gam_ options to defaults for that game mode. If you are also customizing other gam_ options from a script or via Rcon, make sure you change gam_idGameMode first, and then change all others!
|
||||
* +level (gam_strLevel) - Specifies which level to start. Path is relative to the folder the game was installed in. If not specified, the server will start the default first level.
|
||||
* +maxplayers (gam_ctMaxPlayers) - Max number of players in the session. Cannot be higher than 16.
|
||||
* +port (prj_uwPort) - Specifies the port number to start the server on. Default is 27015.
|
||||
* +ip (net_strLocalHost) - Specifies the network interface to start the server on. Default is empty, meaning automatic.
|
||||
* +fps (prj_iDedicatedFPS) - Specifies the framerate the dedicated server will run in (min 10).
|
||||
* +exec (prj_strExecCfg) - Specifies the configuration file to execute when the server first starts.
|
||||
* +gameoptions (prj_strOptionsScript) - Specifies the game options script to execute. It is executed whenever the server (re)starts the first level.
|
||||
* +sessionname (prj_strMultiplayerSessionName) - Session name that will be displayed in the server browser. If you don't set this, current username from Windows will be shown.
|
||||
* +rconpass (rcts_strAdminPassword) - Password used to connect to the server via Rcon (see "Remote administration" above).
|
||||
* +logfile (prj_strLogFile) - Save the DedicatedServer.log into a different file. Useful if you want to run multiple servers from the same installation.
|
||||
|
||||
NOTE: You can use any of the standard game options like gam_bInifiniteAmmo that customize the gameplay, but note that gam_bCustomizeDifficulty is required for them to take effect!
|
||||
|
||||
6. Some other useful console variables and functions
|
||||
----------------------------------------------------
|
||||
|
||||
* gamListPlayers() - print the list of all players to the console in format: 'playerindex: playername'
|
||||
* gamKickByName() - kick the client with the given player name out of the game
|
||||
* gamKickByIndex() - kick the client with the given index out of the game
|
||||
* gamBanByName() - ban the client with the given player name out of the game
|
||||
* gamBanByIndex() - ban the client with the given index out of the game
|
||||
|
||||
* gamRestartServer() - restarts the dedicated server (disconnects all players) so any changes to game settings or other server options can take effect
|
||||
* gamRestartGame() - restart game with new session params without disconnecting players
|
||||
* samRestartMap() - restart the current map (without disconnecting all players) so any changes to game difficulty and similar options can take effect
|
||||
* gamStop() - stops the current game
|
||||
* gamStart() - start game with new session params without disconnecting players
|
||||
* samVotePass() - force the current vote to pass
|
||||
* samVoteFail() - force the current vote to fail
|
||||
|
||||
* ser_iMaxClientBPS - limit the bandwidth used by each individual client on the server. This caps the cli_iMaxBPS on the server side.
|
||||
* prj_strMapList - Semicolon separated list of maps used for multiplayer map rotation.
|
||||
* prj_strMapListFile - Path to the file containing a list of maps used for multiplayer map rotation.
|
||||
* prj_strDefaultMapDir - Default map folder to use for the map list (specified either by prj_strMapList or prj_strMapListFile). To make it posible to specify map names in a short form, if a '#' prefix is used in a map path, the '#' char will be replaced by the value of this cvar.
|
||||
|
||||
All other cvars and cfuncs can be used, most notable are cvars with "gam_" prefix which can be used to setup difficulty options and similar. To get the list of those or more details about them, use the game client's console with its autocompletion and help.
|
||||
|
||||
7. Remote administration (RCon)
|
||||
-------------------------------
|
||||
|
||||
Remote administration of Serious Sam HD dedicated servers is implemented via the Telnet protocol. Use any telnet client (e.g. telnet.exe) to connect to the IP and port the server is running on (default is 27015).
|
||||
|
||||
Example:
|
||||
C:\> telnet my.server.ip 27015
|
||||
|
||||
(*) NOTE: On Vista and Win7, the telnet command is not installed by default. You need to enable it using the "Turn Windows features on or off" section of the Control Panel.
|
||||
|
||||
You need to specify the rcon password (using the +rconpass "password" command-line option) when starting the server, otherwise it won't allow you to connect to it via Rcon. Also make sure the appropriate port is open, as explained above.
|
||||
|
||||
After entering the correct rcon password, the telnet client will behave similarly to the in-game console (except that SHIFT+TAB combo doesn't work). Additionally you can type a question mark ("?"), followed by a cvar or cfunc to get the help about it.
|
||||
|
||||
8. Example configuration script
|
||||
-------------------------------
|
||||
|
||||
Here's an example config script. Put that in a text file named "server.cfg" in the root of the game installation (parent of Bin/), and specify "+exec server.cfg" in the command line (without quotes).
|
||||
|
||||
--------8<----- cut here -----------
|
||||
|
||||
rconpass = "SuperSecretPassword"; -- MAKE SURE YOU CHANGE THIS!!!!
|
||||
sessionname = "My Server Name" -- set this to the name of your server
|
||||
|
||||
gam_ctMaxPlayers = 8
|
||||
gamemode="Deathmatch"
|
||||
gam_bAutoCycleMaps = 1
|
||||
|
||||
local prj_strMapList = {
|
||||
"#SunPalace.wld", -- put a list of map file names for rotation here
|
||||
}
|
||||
|
||||
--------8<------cut here ----------
|
@ -1,67 +1,89 @@
|
||||
#!/bin/bash
|
||||
# Serious Sam 3: BFE
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Sam 3: BFE | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt
|
||||
fn_parms(){
|
||||
parms="+ip ${ip} +logfile ${gamelog} +exec ${servercfgfullpath}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="41080"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="41080"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta publicbeta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="ss3-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Serious Sam 3: BFE"
|
||||
engine="seriousengine35"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ss3-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +92,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/Bin"
|
||||
executable="./runSam3_DedicatedServer.sh"
|
||||
executabledir="${systemdir}"
|
||||
@ -77,26 +101,28 @@ servercfg="${servicename}.ini"
|
||||
servercfgdefault="server.ini"
|
||||
servercfgdir="${filesdir}/Content/SeriousSam3/Config"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${rootdir}/log/server"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
gamelog="${gamelogdir}/${servicename}-game.log"
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -153,8 +179,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,49 +0,0 @@
|
||||
{
|
||||
"allowAdminCommands" : true,
|
||||
"allowAdminCommandsFromAnyone" : false,
|
||||
"allowAnonymousConnections" : true,
|
||||
"allowAssetsMismatch" : true,
|
||||
"anonymousConnectionsAreAdmin" : false,
|
||||
"bannedIPs" : [],
|
||||
"bannedUuids" : [],
|
||||
"checkAssetsDigest" : false,
|
||||
"clearPlayerFiles" : false,
|
||||
"clearUniverseFiles" : false,
|
||||
"clientIPJoinable" : false,
|
||||
"clientP2PJoinable" : true,
|
||||
"configurationVersion" : {
|
||||
"basic" : 1,
|
||||
"server" : 4
|
||||
},
|
||||
"crafting" : {
|
||||
"filterHaveMaterials" : false
|
||||
},
|
||||
"gameServerBind" : "::",
|
||||
"gameServerPort" : 21025,
|
||||
"interactiveHighlight" : true,
|
||||
"inventory" : {
|
||||
"pickupToActionBar" : true
|
||||
},
|
||||
"maxPlayers" : 8,
|
||||
"maxTeamSize" : 4,
|
||||
"playerBackupFileCount" : 3,
|
||||
"queryServerBind" : "::",
|
||||
"queryServerPort" : 21025,
|
||||
"rconServerBind" : "::",
|
||||
"rconServerPassword" : "<rconpassword>",
|
||||
"rconServerPort" : 21026,
|
||||
"rconServerTimeout" : 1000,
|
||||
"runQueryServer" : false,
|
||||
"runRconServer" : false,
|
||||
"safeScripts" : true,
|
||||
"scriptInstructionLimit" : 10000000,
|
||||
"scriptInstructionMeasureInterval" : 10000,
|
||||
"scriptProfilingEnabled" : false,
|
||||
"scriptRecursionLimit" : 100,
|
||||
"serverFidelity" : "automatic",
|
||||
"serverName" : "<hostname>",
|
||||
"serverOverrideAssetsDigest" : null,
|
||||
"serverUsers" : {
|
||||
},
|
||||
"tutorialMessages" : true
|
||||
}
|
@ -1,66 +1,93 @@
|
||||
#!/bin/bash
|
||||
# Starbound
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Starbound | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care
|
||||
fn_parms(){
|
||||
parms=""
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="211820"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="211820"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="sb-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Starbound"
|
||||
engine="starbound"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="sb-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -69,6 +96,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}/linux"
|
||||
executable="./starbound_server"
|
||||
@ -76,24 +105,26 @@ servercfg="starbound_server.config"
|
||||
servercfgdefault="starbound_server.config"
|
||||
servercfgdir="${filesdir}/storage"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${filesdir}/storage"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -150,8 +181,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,36 +0,0 @@
|
||||
//----------------------------------------------
|
||||
// Sven Co-op v5.0 Default Server CFG
|
||||
//----------------------------------------------
|
||||
|
||||
//----------------------------------------------
|
||||
// See server_example.cfg for more available
|
||||
// commands and settings.
|
||||
//----------------------------------------------
|
||||
|
||||
hostname "<hostname>"
|
||||
log "on"
|
||||
|
||||
rcon_password "<rconpassword>"
|
||||
//sv_password ""
|
||||
|
||||
sys_ticrate 100
|
||||
deathmatch 1
|
||||
decalfrequency 30
|
||||
hpk_maxsize 2
|
||||
pausable 0
|
||||
|
||||
sv_aim 0
|
||||
sv_allowdownload 1
|
||||
sv_allowupload 1
|
||||
sv_region 255
|
||||
sv_send_resources 1
|
||||
sv_voicecodec "voice_speex"
|
||||
sv_voiceenable 1
|
||||
sv_voicequality 5
|
||||
|
||||
mp_telefrag 1
|
||||
mp_timelimit 99
|
||||
mp_weaponstay 1
|
||||
|
||||
exec banned.cfg
|
||||
exec listip.cfg
|
@ -1,71 +1,93 @@
|
||||
#!/bin/bash
|
||||
# Sven Co-op
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Sven Co-op | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="svencoop1"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
fn_parms(){
|
||||
parms="-game svencoop -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="276060"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="276060"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta release_candidate_public"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="svencoop-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Sven Co-op"
|
||||
engine="goldsource"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="svencoop-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -74,6 +96,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/svencoop"
|
||||
executabledir="${filesdir}"
|
||||
executable="./svends_run"
|
||||
@ -81,24 +105,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -155,8 +181,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,15 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
@ -1,77 +1,97 @@
|
||||
#!/bin/bash
|
||||
# Team Fortress 2
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Team Fortress 2 | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="cp_badlands"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
sourcetvport="27020"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# Optional: Game Server Login Token
|
||||
## Optional: Game Server Login Token
|
||||
# GSLT can be used for running a public server.
|
||||
# More info: https://gameservermanagers.com/gslt
|
||||
gslt=""
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
||||
fn_parms(){
|
||||
parms="-game tf -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Github Branch Select
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="232250"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="232250"
|
||||
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta beta"
|
||||
branch=""
|
||||
|
||||
# Server Details
|
||||
servicename="tf2-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Team Fortress 2"
|
||||
engine="source"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="tf2-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -80,6 +100,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/tf"
|
||||
executabledir="${filesdir}"
|
||||
executable="./srcds_run"
|
||||
@ -87,24 +109,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}/cfg"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -161,8 +185,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,38 +0,0 @@
|
||||
// Server Name
|
||||
hostname "<hostname>"
|
||||
|
||||
// RCON Password
|
||||
rcon_password "<rconpassword>"
|
||||
|
||||
// Server Password
|
||||
sv_password ""
|
||||
|
||||
// Server Logging
|
||||
log on
|
||||
sv_logbans 1
|
||||
sv_logecho 1
|
||||
sv_logfile 1
|
||||
sv_log_onefile 0
|
||||
|
||||
// disable autoaim
|
||||
sv_aim 0
|
||||
|
||||
// disable clients' ability to pause the server
|
||||
pausable 0
|
||||
|
||||
// maximum client movement speed
|
||||
sv_maxspeed 320
|
||||
|
||||
// 20 minute timelimit
|
||||
mp_timelimit 20
|
||||
|
||||
// cheats off
|
||||
sv_cheats 0
|
||||
|
||||
// load ban files
|
||||
exec listip.cfg
|
||||
exec banned.cfg
|
||||
|
||||
|
||||
|
||||
|
@ -1,67 +1,94 @@
|
||||
#!/bin/bash
|
||||
# Team Fortress Classic
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Team Fortress Classic | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
steamuser="anonymous"
|
||||
steampass=""
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
defaultmap="dustbowl"
|
||||
maxplayers="16"
|
||||
port="27015"
|
||||
clientport="27005"
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care | https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
||||
fn_parms(){
|
||||
parms="-game tfc -strictportbind _ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="90"
|
||||
appidmod="tfc"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="90"
|
||||
appidmod="tfc"
|
||||
|
||||
# Server Details
|
||||
servicename="tfc-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Team Fortress Classic"
|
||||
engine="goldsource"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="tfc-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -70,6 +97,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}/tfc"
|
||||
executabledir="${filesdir}"
|
||||
executable="./hlds_run"
|
||||
@ -77,24 +106,26 @@ servercfg="${servicename}.cfg"
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${systemdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${systemdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -151,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,20 +0,0 @@
|
||||
machine_id=
|
||||
default_voice_port=9987
|
||||
voice_ip=0.0.0.0, ::
|
||||
licensepath=
|
||||
filetransfer_port=30033
|
||||
filetransfer_ip=0.0.0.0, ::
|
||||
query_port=10011
|
||||
query_ip=0.0.0.0, ::
|
||||
query_ip_whitelist=query_ip_whitelist.txt
|
||||
query_ip_blacklist=query_ip_blacklist.txt
|
||||
dbplugin=ts3db_sqlite3
|
||||
dbpluginparameter=
|
||||
dbsqlpath=sql/
|
||||
dbsqlcreatepath=create_sqlite/
|
||||
dbconnections=10
|
||||
logpath=logs
|
||||
logquerycommands=0
|
||||
dbclientkeepdays=30
|
||||
logappend=0
|
||||
query_skipbruteforcecheck=0
|
@ -1,40 +1,73 @@
|
||||
#!/bin/bash
|
||||
# TeamSpeak 3
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: TeamSpeak 3 | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
# Edit serverfiles/ts3-server.ini after installation
|
||||
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
|
||||
# Email
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Start Variables
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
# Server Details
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="TeamSpeak 3"
|
||||
servername="TeamSpeak 3 Server"
|
||||
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="ts3-server"
|
||||
|
||||
# Directories
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -43,6 +76,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="./ts3server_startscript.sh"
|
||||
@ -50,27 +85,23 @@ servercfg="${servicename}.ini"
|
||||
servercfgdefault="ts3server.ini"
|
||||
servercfgdir="${filesdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${filesdir}/logs"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
# Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -127,8 +158,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
@ -1,7 +0,0 @@
|
||||
sv_gametype ctf
|
||||
sv_powerups 1
|
||||
sv_scorelimit 500
|
||||
sv_spectator_slots 0
|
||||
sv_timelimit 0
|
||||
sv_tournament_mode 0
|
||||
sv_map_reload 1
|
@ -1,7 +0,0 @@
|
||||
sv_gametype dm
|
||||
sv_powerups 1
|
||||
sv_scorelimit 20
|
||||
sv_spectator_slots 0
|
||||
sv_timelimit 0
|
||||
sv_tournament_mode 0
|
||||
sv_map_reload 1
|
@ -1,7 +0,0 @@
|
||||
sv_gametype tdm
|
||||
sv_powerups 0
|
||||
sv_scorelimit 10
|
||||
sv_spectator_slots 10
|
||||
sv_timelimit 5
|
||||
sv_tournament_mode 1
|
||||
sv_map_reload 1
|
@ -1,26 +0,0 @@
|
||||
sv_name "<hostname>"
|
||||
sv_rcon_password "<rconpassword>"
|
||||
password "<password>"
|
||||
sv_max_clients 12
|
||||
sv_port 8303
|
||||
sv_register 1
|
||||
sv_spamprotection 0
|
||||
sv_vote_map 1
|
||||
sv_warmup 10
|
||||
logfile "<logfile>"
|
||||
addvote restart 10
|
||||
addvote exec dm.cfg
|
||||
addvote exec ctf.cfg
|
||||
addvote exec duel.cfg
|
||||
addvote exec tdm.cfg
|
||||
addvote "change_map ctf1"
|
||||
addvote "change_map ctf2"
|
||||
addvote "change_map ctf3"
|
||||
addvote "change_map ctf4"
|
||||
addvote "change_map ctf5"
|
||||
addvote "change_map dm1"
|
||||
addvote "change_map dm2"
|
||||
addvote "change_map dm6"
|
||||
addvote "change_map dm7"
|
||||
addvote "change_map dm8"
|
||||
addvote "change_map dm9"
|
@ -1,14 +0,0 @@
|
||||
// ****************************************************************************
|
||||
// *
|
||||
// Teeworlds - tdm.cfg *
|
||||
// Version 281015 *
|
||||
// *
|
||||
// ****************************************************************************
|
||||
|
||||
sv_gametype tdm
|
||||
sv_powerups 1
|
||||
sv_scorelimit 50
|
||||
sv_spectator_slots 0
|
||||
sv_timelimit 0
|
||||
sv_tournament_mode 0
|
||||
sv_map_reload 1
|
@ -1,62 +1,93 @@
|
||||
#!/bin/bash
|
||||
# Teeworlds
|
||||
# Server Management Script
|
||||
# Project: Game Server Managers - LinuxGSM
|
||||
# Author: Daniel Gibbs
|
||||
# Contributor: Bryce Van Dyk (SingingTree)
|
||||
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
|
||||
# Purpose: Teeworlds | Server Management Script
|
||||
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
||||
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
||||
# Website: https://gameservermanagers.com
|
||||
|
||||
# Debugging
|
||||
if [ -f ".dev-debug" ]; then
|
||||
exec 5>dev-debug.log
|
||||
BASH_XTRACEFD="5"
|
||||
set -x
|
||||
fi
|
||||
|
||||
version="211016"
|
||||
version="161030"
|
||||
|
||||
#### Variables ####
|
||||
##########################
|
||||
######## Settings ########
|
||||
##########################
|
||||
|
||||
# Notification Alerts
|
||||
# (on|off)
|
||||
#### Server Settings ####
|
||||
|
||||
# Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
#emailfrom="email@example.com"
|
||||
|
||||
# Pushbullet
|
||||
# https://www.pushbullet.com/#settings
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
# Steam login
|
||||
## SteamCMD Login | https://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
|
||||
steamuser="username"
|
||||
steampass="password"
|
||||
|
||||
# Start Variables
|
||||
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
|
||||
ip="0.0.0.0"
|
||||
updateonstart="off"
|
||||
|
||||
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
|
||||
# Edit with care
|
||||
fn_parms(){
|
||||
parms="-f ${servercfgfullpath}"
|
||||
}
|
||||
|
||||
#### Advanced Variables ####
|
||||
#### LinuxGSM Settings ####
|
||||
|
||||
# Github Branch Select
|
||||
## Notification Alerts
|
||||
# (on|off)
|
||||
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
|
||||
emailalert="off"
|
||||
email="email@example.com"
|
||||
emailfrom=""
|
||||
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
|
||||
pushbulletalert="off"
|
||||
pushbullettoken="accesstoken"
|
||||
|
||||
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
|
||||
updateonstart="off"
|
||||
|
||||
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
|
||||
maxbackups="4"
|
||||
maxbackupdays="30"
|
||||
stoponbackup="on"
|
||||
|
||||
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
|
||||
consolelogging="on"
|
||||
logdays="7"
|
||||
|
||||
#### LinuxGSM Advanced Settings ####
|
||||
|
||||
## SteamCMD Settings
|
||||
# Server appid
|
||||
appid="380840"
|
||||
# Steam App Branch Select
|
||||
# Allows to opt into the various Steam app branches. Default branch is "".
|
||||
# Example: "-beta latest_experimental"
|
||||
branch=""
|
||||
|
||||
## Github Branch Select
|
||||
# Allows for the use of different function files
|
||||
# from a different repo and/or branch.
|
||||
githubuser="GameServerManagers"
|
||||
githubrepo="LinuxGSM"
|
||||
githubbranch="master"
|
||||
|
||||
# Steam
|
||||
appid="380840"
|
||||
|
||||
# Server Details
|
||||
servicename="tw-server"
|
||||
## LinuxGSM Server Details
|
||||
# Do not edit
|
||||
gamename="Teeworlds"
|
||||
engine="teeworlds"
|
||||
|
||||
# Directories
|
||||
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
|
||||
servicename="tw-server"
|
||||
|
||||
#### Directories ####
|
||||
# Edit with care
|
||||
|
||||
## Work Directories
|
||||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
||||
lockselfname=".${servicename}.lock"
|
||||
@ -65,6 +96,8 @@ functionsdir="${lgsmdir}/functions"
|
||||
libdir="${lgsmdir}/lib"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
filesdir="${rootdir}/serverfiles"
|
||||
|
||||
## Server Specific Directories
|
||||
systemdir="${filesdir}"
|
||||
executabledir="${filesdir}"
|
||||
executable="./teeworlds_srv"
|
||||
@ -72,25 +105,27 @@ servercfg="${servicename}.cfg" # Teeworlds can also auto load any config if an a
|
||||
servercfgdefault="server.cfg"
|
||||
servercfgdir="${filesdir}"
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}"
|
||||
|
||||
## Backup Directory
|
||||
backupdir="${rootdir}/backups"
|
||||
|
||||
# Logging
|
||||
logdays="7"
|
||||
## Logging Directories
|
||||
gamelogdir="${rootdir}/log/server"
|
||||
scriptlogdir="${rootdir}/log/script"
|
||||
consolelogdir="${rootdir}/log/console"
|
||||
consolelogging="on"
|
||||
|
||||
gamelog="${gamelogdir}/${servicename}-game.log"
|
||||
scriptlog="${scriptlogdir}/${servicename}-script.log"
|
||||
consolelog="${consolelogdir}/${servicename}-console.log"
|
||||
emaillog="${scriptlogdir}/${servicename}-email.log"
|
||||
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
|
||||
## Logs Naming
|
||||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
|
||||
|
||||
##### Script #####
|
||||
# Do not edit
|
||||
########################
|
||||
######## Script ########
|
||||
###### Do not edit #####
|
||||
########################
|
||||
|
||||
# Fetches core_dl for file downloads
|
||||
fn_fetch_core_dl(){
|
||||
@ -147,8 +182,18 @@ functionfile="${FUNCNAME}"
|
||||
fn_fetch_core_dl
|
||||
}
|
||||
|
||||
# Prevent from running this script as root.
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
|
||||
echo "[ FAIL ] Do NOT run this script as root!"
|
||||
exit 1
|
||||
else
|
||||
core_functions.sh
|
||||
check_root.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
core_dl.sh
|
||||
core_functions.sh
|
||||
|
||||
getopt=$1
|
||||
core_getopt.sh
|
||||
core_getopt.sh
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user