Skip to content

Commit 493a3a8

Browse files
intel44dgibbs64
andauthored
feat(newserver): soulmask (#4590)
* feat: reference new smserver * feat: add default config * feat: add stop command using telnet * fix: remove duplicate unused telnetpassword var * feat: add soulmask to config & info functions * fix: remove ini config for now * fix: startparameter initialization fix * feat: remove pve fixed param in startparameters * fix: update default gamelogdir * fix: handle telnet response during stop process * add sm fix * add fix_sm.sh * add ss command * and * add memory requirements * adjust start parameters * remove telnetpassword * add backup interval a * comments * rename variables to telnetpassword * var name change --------- Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
1 parent 0e7314d commit 493a3a8

35 files changed

Lines changed: 381 additions & 20 deletions
Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
##################################
2+
######## Default Settings ########
3+
##################################
4+
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN!
5+
# Copy settings from here and use them in either:
6+
# common.cfg - applies settings to every instance.
7+
# [instance].cfg - applies settings to a specific instance.
8+
9+
#### Game Server Settings ####
10+
11+
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
12+
servername="LinuxGSM"
13+
serverpassword=""
14+
adminpassword=""
15+
port="8777"
16+
queryport="27015"
17+
telnetport="18888"
18+
maxplayers="50"
19+
backupinterval="15" # Backup interval in minutes.
20+
defaultmap="Level01_Main"
21+
22+
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
23+
startparameters="WS ${defaultmap} -MultiHome=${ip} -Port=${port} -EchoPort=${telnetport} -QueryPort=${queryport} -SteamServerName='${servername}' -PSW='${serverpassword}' -adminpsw='${adminpassword}' -MaxPlayers=${maxplayers} -initbackup -backupinterval=${backupinterval} -UTF8Output -forcepassthrough -log"
24+
25+
#### LinuxGSM Settings ####
26+
27+
## LinuxGSM Stats
28+
# Send useful stats to LinuxGSM developers.
29+
# https://docs.linuxgsm.com/configuration/linuxgsm-stats
30+
# (on|off)
31+
stats="off"
32+
33+
## Notification Alerts
34+
# (on|off)
35+
36+
# Display IP | https://docs.linuxgsm.com/alerts#display-ip
37+
displayip=""
38+
39+
# More info | https://docs.linuxgsm.com/alerts#more-info
40+
postalert="off"
41+
42+
# Alert on Start/Stop/Restart
43+
statusalert="off"
44+
45+
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
46+
discordalert="off"
47+
discordwebhook="webhook"
48+
49+
# Email Alerts | https://docs.linuxgsm.com/alerts/email
50+
emailalert="off"
51+
email="email@example.com"
52+
emailfrom=""
53+
54+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
55+
gotifyalert="off"
56+
gotifytoken="token"
57+
gotifywebhook="webhook"
58+
59+
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
60+
iftttalert="off"
61+
ifttttoken="accesstoken"
62+
iftttevent="linuxgsm_alert"
63+
64+
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
65+
pushbulletalert="off"
66+
pushbullettoken="accesstoken"
67+
channeltag=""
68+
69+
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
70+
pushoveralert="off"
71+
pushovertoken="accesstoken"
72+
pushoveruserkey="userkey"
73+
74+
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
75+
rocketchatalert="off"
76+
rocketchatwebhook="webhook"
77+
78+
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack
79+
slackalert="off"
80+
slackwebhook="webhook"
81+
82+
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
83+
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
84+
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
85+
telegramapi="api.telegram.org"
86+
telegramalert="off"
87+
telegramtoken="accesstoken"
88+
telegramchatid=""
89+
telegramthreadid=""
90+
telegramsilentnotification="false"
91+
curlcustomstring=""
92+
93+
## Updating | https://docs.linuxgsm.com/commands/update
94+
updateonstart="off"
95+
96+
## Backup | https://docs.linuxgsm.com/commands/backup
97+
maxbackups="4"
98+
maxbackupdays="30"
99+
stoponbackup="on"
100+
101+
## Logging | https://docs.linuxgsm.com/features/logging
102+
consolelogging="on"
103+
logdays="7"
104+
105+
## Monitor | https://docs.linuxgsm.com/commands/monitor
106+
# Query delay time
107+
querydelay="5"
108+
109+
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
110+
ansi="on"
111+
112+
#### Advanced Settings ####
113+
114+
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
115+
sleeptime="0.5"
116+
117+
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
118+
# Server appid
119+
appid="3017300"
120+
steamcmdforcewindows="no"
121+
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
122+
branch=""
123+
betapassword=""
124+
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
125+
steammaster="true"
126+
127+
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
128+
# 1: tmux kill
129+
# 2: CTRL+c
130+
# 3: quit
131+
# 4: quit 120s
132+
# 5: stop
133+
# 6: q
134+
# 7: exit
135+
# 8: 7 Days to Die
136+
# 9: GoldSrc
137+
# 10: Avorion
138+
# 11: end
139+
# 12: shutdown
140+
# 13: soulmask
141+
stopmode="13"
142+
143+
## Query mode
144+
# 1: session only
145+
# 2: gamedig (gsquery fallback)
146+
# 3: gamedig
147+
# 4: gsquery
148+
# 5: tcp
149+
querymode="2"
150+
querytype="protocol-valve"
151+
152+
## Console type
153+
consoleverbose="yes"
154+
consoleinteract="no"
155+
156+
## Game Server Details
157+
# Do not edit
158+
gamename="Soulmask"
159+
engine="unreal4"
160+
glibc="2.17"
161+
162+
#### Directories ####
163+
# Edit with care
164+
165+
## Game Server Directories
166+
systemdir="${serverfiles}/WS"
167+
executabledir="${systemdir}/Binaries/Linux"
168+
executable="./WSServer-Linux-Shipping"
169+
170+
## Backup Directory
171+
backupdir="${lgsmdir}/backup"
172+
173+
## Logging Directories
174+
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
175+
gamelogdir="${systemdir}/WS/Saved/Logs"
176+
lgsmlogdir="${logdir}/script"
177+
consolelogdir="${logdir}/console"
178+
lgsmlog="${lgsmlogdir}/${selfname}-script.log"
179+
consolelog="${consolelogdir}/${selfname}-console.log"
180+
alertlog="${lgsmlogdir}/${selfname}-alert.log"
181+
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
182+
183+
## Logs Naming
184+
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
185+
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
186+
187+
## Log Parameters
188+
logtimestamp="off"
189+
logtimestampformat="%Y-%m-%d %H:%M:%S"

lgsm/config-default/config-lgsm/tfserver/_default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ greenhand="true"
2525
maxplayers="40"
2626
maxqueuesize="50"
2727
queuevalidtime="120"
28-
saveinterval="300"
28+
saveinterval="300" # Auto-save in seconds.
2929
serveradmins="" # Use 17-digit Steam IDs separated by commas to grant admin privileges to players.
3030
servername="LinuxGSM"
3131
serverpassword=""

lgsm/config-default/config-lgsm/vhserver/_default.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010

1111
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
1212
servername="LinuxGSM"
13-
# Minimum password length is 5.
14-
serverpassword=""
13+
serverpassword="" # Minimum password length is 5.
1514
port="2456"
1615
worldname="${selfname}"
1716
public="1"
1817
savedir="$HOME/.config/unity3d/IronGate/Valheim"
1918
logFile=""
20-
saveinterval="1800"
19+
saveinterval="1800" # Auto-save in seconds.
2120
backups="4"
2221
backupshort="7200"
2322
backuplong="43200"

lgsm/data/almalinux-8.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ scpslsm
105105
sdtd,telnet,expect,libxml2
106106
sf
107107
sfc,ncurses-libs.i686
108+
sm,telnet,expect
108109
sof2
109110
sol
110111
squad

lgsm/data/almalinux-9.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ scpslsm
105105
sdtd,telnet,expect,libxml2
106106
sf
107107
sfc,ncurses-libs.i686
108+
sm,telnet,expect
108109
sof2
109110
sol
110111
squad

lgsm/data/centos-7.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ scpslsm
105105
sdtd,telnet,expect,libxml2
106106
sf
107107
sfc,ncurses-libs.i686
108+
sm,telnet,expect
108109
sof2
109110
sol
110111
squad

lgsm/data/centos-8.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ scpslsm
105105
sdtd,telnet,expect,libxml2
106106
sf
107107
sfc,ncurses-libs.i686
108+
sm,telnet,expect
108109
sof2
109110
sol
110111
squad

lgsm/data/centos-9.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ scpslsm
105105
sdtd,telnet,expect,libxml2
106106
sf
107107
sfc,ncurses-libs.i686
108+
sm,telnet,expect
108109
sof2
109110
sol
110111
squad

lgsm/data/debian-10.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ scpslsm,mono-complete
104104
sdtd,telnet,expect,libxml2-utils
105105
sf
106106
sfc,libtinfo5:i386
107+
sm,telnet,expect
107108
sof2
108109
sol
109110
squad

lgsm/data/debian-11.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ scpslsm,mono-complete
105105
sdtd,telnet,expect,libxml2-utils
106106
sf
107107
sfc,libtinfo5:i386
108+
sm,telnet,expect
108109
sof2
109110
sol
110111
squad

0 commit comments

Comments
 (0)