|
@@ -8,17 +8,17 @@
|
|
|
|
|
|
|
|
#### Game Server Settings ####
|
|
#### Game Server Settings ####
|
|
|
|
|
|
|
|
-## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
|
|
|
|
|
|
|
+## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
|
|
|
servername="LinuxGSM Server"
|
|
servername="LinuxGSM Server"
|
|
|
ip="0.0.0.0"
|
|
ip="0.0.0.0"
|
|
|
port="12871"
|
|
port="12871"
|
|
|
queryport="12881"
|
|
queryport="12881"
|
|
|
maxplayers="20"
|
|
maxplayers="20"
|
|
|
-defaultmap="" #Optional
|
|
|
|
|
-creativemode="0" #Free Build: creativemode="1"
|
|
|
|
|
|
|
+defaultmap="" # Optional
|
|
|
|
|
+creativemode="0" # Free Build: creativemode="1"
|
|
|
gamelog="gamelog.txt"
|
|
gamelog="gamelog.txt"
|
|
|
|
|
|
|
|
-## Adding admins using STEAMID64
|
|
|
|
|
|
|
+## Add admins using STEAMID64
|
|
|
# Example : addadmin 012345678901234567; addadmin 987654321098765432
|
|
# Example : addadmin 012345678901234567; addadmin 987654321098765432
|
|
|
admins=""
|
|
admins=""
|
|
|
|
|
|
|
@@ -26,10 +26,10 @@ admins=""
|
|
|
# Rollback server state (remove after start command)
|
|
# Rollback server state (remove after start command)
|
|
|
loadsave=""
|
|
loadsave=""
|
|
|
|
|
|
|
|
-## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
|
|
|
|
|
|
|
+## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
|
|
|
# Edit with care | http://hurtworld.wikia.com/wiki/Hosting_A_Server
|
|
# Edit with care | http://hurtworld.wikia.com/wiki/Hosting_A_Server
|
|
|
fn_parms(){
|
|
fn_parms(){
|
|
|
-parms="-batchmode -nographics -exec \"host ${port} ${defaultmap} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${admins}\" -logfile \"${gamelog}\" "
|
|
|
|
|
|
|
+parms="-batchmode -nographics -exec \"host ${port} ${defaultmap} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${admins}\""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#### LinuxGSM Settings ####
|
|
#### LinuxGSM Settings ####
|
|
@@ -48,8 +48,6 @@ displayip=""
|
|
|
|
|
|
|
|
# More info | https://docs.linuxgsm.com/alerts#more-info
|
|
# More info | https://docs.linuxgsm.com/alerts#more-info
|
|
|
postalert="off"
|
|
postalert="off"
|
|
|
-postdays="7"
|
|
|
|
|
-posttarget="https://termbin.com"
|
|
|
|
|
|
|
|
|
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
|
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
|
|
|
discordalert="off"
|
|
discordalert="off"
|
|
@@ -67,6 +65,7 @@ iftttevent="linuxgsm_alert"
|
|
|
|
|
|
|
|
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
|
|
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
|
|
|
mailgunalert="off"
|
|
mailgunalert="off"
|
|
|
|
|
+mailgunapiregion="us"
|
|
|
mailguntoken="accesstoken"
|
|
mailguntoken="accesstoken"
|
|
|
mailgundomain="example.com"
|
|
mailgundomain="example.com"
|
|
|
mailgunemailfrom="alert@example.com"
|
|
mailgunemailfrom="alert@example.com"
|
|
@@ -80,15 +79,20 @@ channeltag=""
|
|
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
|
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
|
|
|
pushoveralert="off"
|
|
pushoveralert="off"
|
|
|
pushovertoken="accesstoken"
|
|
pushovertoken="accesstoken"
|
|
|
|
|
+pushoveruserkey="userkey"
|
|
|
|
|
+
|
|
|
|
|
+# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
|
|
|
|
|
+rocketchatalert="off"
|
|
|
|
|
+rocketchatwebhook="webhook"
|
|
|
|
|
+rocketchattoken=""
|
|
|
|
|
|
|
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack
|
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack
|
|
|
slackalert="off"
|
|
slackalert="off"
|
|
|
slackwebhook="webhook"
|
|
slackwebhook="webhook"
|
|
|
|
|
|
|
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
|
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
|
|
|
-# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
|
|
|
|
|
-# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
|
|
|
|
|
-# any custom string in curl - simple ignore this parameter.
|
|
|
|
|
|
|
+# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
|
|
|
|
|
+# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help".
|
|
|
telegramalert="off"
|
|
telegramalert="off"
|
|
|
telegramtoken="accesstoken"
|
|
telegramtoken="accesstoken"
|
|
|
telegramchatid=""
|
|
telegramchatid=""
|
|
@@ -143,13 +147,17 @@ stopmode="2"
|
|
|
|
|
|
|
|
## Query mode
|
|
## Query mode
|
|
|
# 1: session only
|
|
# 1: session only
|
|
|
-# 2: gamedig + gsquery
|
|
|
|
|
|
|
+# 2: gamedig (gsquery fallback)
|
|
|
# 3: gamedig
|
|
# 3: gamedig
|
|
|
# 4: gsquery
|
|
# 4: gsquery
|
|
|
# 5: tcp
|
|
# 5: tcp
|
|
|
querymode="2"
|
|
querymode="2"
|
|
|
querytype="protocol-valve"
|
|
querytype="protocol-valve"
|
|
|
|
|
|
|
|
|
|
+## Console type
|
|
|
|
|
+consoleverbose="no"
|
|
|
|
|
+consoleinteract="no"
|
|
|
|
|
+
|
|
|
## Game Server Details
|
|
## Game Server Details
|
|
|
# Do not edit
|
|
# Do not edit
|
|
|
gamename="Hurtworld"
|
|
gamename="Hurtworld"
|
|
@@ -162,7 +170,7 @@ glibc="2.15"
|
|
|
## Game Server Directories
|
|
## Game Server Directories
|
|
|
systemdir="${serverfiles}"
|
|
systemdir="${serverfiles}"
|
|
|
executabledir="${serverfiles}"
|
|
executabledir="${serverfiles}"
|
|
|
-executable=$([ "$(uname -m)" == "x86_64" ] && echo -e "./Hurtworld.x86_64" || echo -e "./Hurtworld.x86")
|
|
|
|
|
|
|
+executable="./Hurtworld.x86_64"
|
|
|
|
|
|
|
|
## Backup Directory
|
|
## Backup Directory
|
|
|
backupdir="${lgsmdir}/backup"
|
|
backupdir="${lgsmdir}/backup"
|