Skip to content

Commit ce27b73

Browse files
HornochsStephan Schaffnerdgibbs64
authored
feat(newserver): add Xonotic (#4633)
* Adding default_cfg and Distro Requirements * Adding Shellscripts for Xonotic * Fixing serverlist.csv * Fixing again serverlist.csv * Fixed Typo * Changing Shortname to XNT * Fixing missed _default.cfg change * Fixing _default.cfg * Updating Modules and Server installation * Updating paths and install script * Fixing install Scripts Issues * Update info_game.sh * Updating Game Info Curling * fix bug with npm download of gamedig on branches * styling fix * move to fix * typo * bug * add missing details * edit using config * add missing servercfgfullpath * bug * config settings update * update cp command based off warn message * fix dir * update dirs * fix exit code * fix dir install * remove -v * update settings * update info game * update config type * fix dir * update config parsing * change to remove config * add server.cfg * remove serverconfigdefault * add new default * move to use an updater * send key to update function * typo * change extract location * update directory location * filename fix * update dirs * fix extraction * creatre datadir if missing * consoleinteract yes * lint --------- Co-authored-by: Stephan Schaffner <stephan.schaffner@check24.de> Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
1 parent b2a4f60 commit ce27b73

35 files changed

+515
-42
lines changed
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
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+
13+
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
14+
startparameters="-userdir ${systemdir}/${selfname}"
15+
16+
#### LinuxGSM Settings ####
17+
18+
## LinuxGSM Stats
19+
# Send useful stats to LinuxGSM developers.
20+
# https://docs.linuxgsm.com/configuration/linuxgsm-stats
21+
# (on|off)
22+
stats="off"
23+
24+
## Notification Alerts
25+
# (on|off)
26+
27+
# Display IP | https://docs.linuxgsm.com/alerts#display-ip
28+
displayip=""
29+
30+
# More info | https://docs.linuxgsm.com/alerts#more-info
31+
postalert="off"
32+
33+
# Alert on Start/Stop/Restart
34+
statusalert="off"
35+
36+
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
37+
discordalert="off"
38+
discordwebhook="webhook"
39+
40+
# Email Alerts | https://docs.linuxgsm.com/alerts/email
41+
emailalert="off"
42+
email="email@example.com"
43+
emailfrom=""
44+
45+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
46+
gotifyalert="off"
47+
gotifytoken="token"
48+
gotifywebhook="webhook"
49+
50+
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
51+
iftttalert="off"
52+
ifttttoken="accesstoken"
53+
iftttevent="linuxgsm_alert"
54+
55+
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
56+
pushbulletalert="off"
57+
pushbullettoken="accesstoken"
58+
channeltag=""
59+
60+
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
61+
pushoveralert="off"
62+
pushovertoken="accesstoken"
63+
pushoveruserkey="userkey"
64+
65+
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
66+
rocketchatalert="off"
67+
rocketchatwebhook="webhook"
68+
69+
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack
70+
slackalert="off"
71+
slackwebhook="webhook"
72+
73+
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
74+
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
75+
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
76+
telegramapi="api.telegram.org"
77+
telegramalert="off"
78+
telegramtoken="accesstoken"
79+
telegramchatid=""
80+
telegramthreadid=""
81+
telegramsilentnotification="false"
82+
curlcustomstring=""
83+
84+
## Backup | https://docs.linuxgsm.com/commands/backup
85+
maxbackups="4"
86+
maxbackupdays="30"
87+
stoponbackup="on"
88+
89+
## Logging | https://docs.linuxgsm.com/features/logging
90+
consolelogging="on"
91+
logdays="7"
92+
93+
## Monitor | https://docs.linuxgsm.com/commands/monitor
94+
# Query delay time
95+
querydelay="1"
96+
97+
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
98+
ansi="on"
99+
100+
#### Advanced Settings ####
101+
102+
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
103+
sleeptime="0.5"
104+
105+
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
106+
# 1: tmux kill
107+
# 2: CTRL+c
108+
# 3: quit
109+
# 4: quit 120s
110+
# 5: stop
111+
# 6: q
112+
# 7: exit
113+
# 8: 7 Days to Die
114+
# 9: GoldSrc
115+
# 10: Avorion
116+
# 11: end
117+
stopmode="2"
118+
119+
## Query mode
120+
# 1: session only
121+
# 2: gamedig (gsquery fallback)
122+
# 3: gamedig
123+
# 4: gsquery
124+
# 5: tcp
125+
querymode="3"
126+
querytype="xonotic"
127+
128+
## Console type
129+
consoleverbose="yes"
130+
consoleinteract="yes"
131+
132+
## Game Server Details
133+
# Do not edit
134+
gamename="Xonotic"
135+
engine="unreal3"
136+
glibc="2.29"
137+
138+
#### Directories ####
139+
# Edit with care
140+
141+
## Game Server Directories
142+
systemdir="${serverfiles}"
143+
executabledir="${systemdir}"
144+
executable="./xonotic-linux64-dedicated"
145+
servercfgdir="${systemdir}/${selfname}/data"
146+
servercfg="server.cfg"
147+
servercfgdefault="${systemdir}/server.cfg"
148+
servercfgfullpath="${servercfgdir}/${servercfg}"
149+
150+
## Backup Directory
151+
backupdir="${lgsmdir}/backup"
152+
153+
## Logging Directories
154+
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
155+
gamelogdir="${logdir}/server"
156+
lgsmlogdir="${logdir}/script"
157+
consolelogdir="${logdir}/console"
158+
gamelog="${gamelogdir}/${selfname}-game.log"
159+
lgsmlog="${lgsmlogdir}/${selfname}-script.log"
160+
consolelog="${consolelogdir}/${selfname}-console.log"
161+
alertlog="${lgsmlogdir}/${selfname}-alert.log"
162+
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
163+
164+
## Logs Naming
165+
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
166+
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
167+
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
168+
169+
## Log Parameters
170+
logtimestamp="off"
171+
logtimestampformat="%Y-%m-%d %H:%M:%S"

lgsm/data/almalinux-8.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ wet
134134
wf
135135
wmc,java-21-openjdk
136136
wurm,xorg-x11-server-Xvfb
137+
xnt
137138
zmr,ncurses-libs.i686
138139
zps,ncurses-libs.i686

lgsm/data/almalinux-9.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ wet
134134
wf
135135
wmc,java-21-openjdk
136136
wurm,xorg-x11-server-Xvfb
137+
xnt
137138
zmr,ncurses-libs.i686
138139
zps,ncurses-libs.i686

lgsm/data/centos-7.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ wet
134134
wf
135135
wmc,java-11-openjdk
136136
wurm,xorg-x11-server-Xvfb
137+
xnt
137138
zmr,ncurses-libs.i686
138139
zps,ncurses-libs.i686

lgsm/data/centos-8.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ wet
134134
wf
135135
wmc,java-17-openjdk
136136
wurm,xorg-x11-server-Xvfb
137+
xnt
137138
zmr,ncurses-libs.i686
138139
zps,ncurses-libs.i686

lgsm/data/centos-9.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ wet
134134
wf
135135
wmc,java-17-openjdk
136136
wurm,xorg-x11-server-Xvfb
137+
xnt
137138
zmr,ncurses-libs.i686
138139
zps,ncurses-libs.i686

lgsm/data/debian-10.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ wet
134134
wf
135135
wmc,openjdk-11-jre
136136
wurm,xvfb
137+
xnt
137138
zmr,libtinfo5:i386
138139
zps,libtinfo5:i386

lgsm/data/debian-11.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ wet
134134
wf
135135
wmc,openjdk-17-jre
136136
wurm,xvfb
137+
xnt
137138
zmr,libtinfo5:i386
138139
zps,libtinfo5:i386

lgsm/data/debian-12.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ wet
134134
wf
135135
wmc,openjdk-17-jre
136136
wurm,xvfb
137+
xnt
137138
zmr,libtinfo5:i386
138139
zps,libtinfo5:i386

lgsm/data/debian-13.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,6 @@ wet
133133
wf
134134
wmc,openjdk21-jre
135135
wurm,xvfb
136+
xnt
136137
zmr,libtinfo5:i386
137138
zps,libtinfo5:i386

0 commit comments

Comments
 (0)