Skip to content

Commit 6a8968b

Browse files
committed
feat(luanti): add Luanti server support
1 parent abff947 commit 6a8968b

35 files changed

Lines changed: 443 additions & 2 deletions
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
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+
ip="0.0.0.0"
13+
port="30000"
14+
gameid="minetest"
15+
worldname="world"
16+
17+
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
18+
startparameters="--config ${servercfgfullpath} --world ${serverfiles}/worlds/${worldname} --gameid ${gameid} --port ${port} --logfile ${gamelogdir}/${selfname}-game.log --terminal"
19+
20+
#### LinuxGSM Settings ####
21+
22+
## LinuxGSM Stats
23+
# Send useful stats to LinuxGSM developers.
24+
# https://docs.linuxgsm.com/configuration/linuxgsm-stats
25+
# (on|off)
26+
stats="off"
27+
28+
## Notification Alerts
29+
# (on|off)
30+
31+
# Display IP | https://docs.linuxgsm.com/alerts#display-ip
32+
displayip=""
33+
34+
# More info | https://docs.linuxgsm.com/alerts#more-info
35+
postalert="off"
36+
37+
# Alert on Start/Stop/Restart
38+
statusalert="off"
39+
40+
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
41+
discordalert="off"
42+
discordwebhook="webhook"
43+
44+
# Email Alerts | https://docs.linuxgsm.com/alerts/email
45+
emailalert="off"
46+
email="email@example.com"
47+
emailfrom=""
48+
49+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
50+
gotifyalert="off"
51+
gotifytoken="token"
52+
gotifywebhook="webhook"
53+
54+
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
55+
iftttalert="off"
56+
ifttttoken="accesstoken"
57+
iftttevent="linuxgsm_alert"
58+
59+
# ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
60+
ntfyalert="off"
61+
ntfytopic="LinuxGSM"
62+
ntfyserver="https://ntfy.sh"
63+
ntfytoken=""
64+
ntfyusername=""
65+
ntfypassword=""
66+
ntfypriority=""
67+
ntfytags=""
68+
69+
# Matrix Alerts | https://docs.linuxgsm.com/alerts/matrix
70+
matrixalert="off"
71+
matrixhomeserver="matrix.org"
72+
matrixtoken="accesstoken"
73+
matrixroom=""
74+
75+
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
76+
pushbulletalert="off"
77+
pushbullettoken="accesstoken"
78+
channeltag=""
79+
80+
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
81+
pushoveralert="off"
82+
pushovertoken="accesstoken"
83+
pushoveruserkey="userkey"
84+
85+
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
86+
rocketchatalert="off"
87+
rocketchatwebhook="webhook"
88+
89+
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack
90+
slackalert="off"
91+
slackwebhook="webhook"
92+
93+
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
94+
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
95+
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
96+
telegramapi="api.telegram.org"
97+
telegramalert="off"
98+
telegramtoken="accesstoken"
99+
telegramchatid=""
100+
telegramthreadid=""
101+
telegramsilentnotification="false"
102+
curlcustomstring=""
103+
104+
## Stop | https://docs.linuxgsm.com/commands/start-stop-restart
105+
stoponlyifnoplayers="off"
106+
stoponlyifnoplayersallcommands="on"
107+
108+
## Player Warnings | https://docs.linuxgsm.com/features/player-warnings
109+
# Minutes to warn players in-game before a stop, restart or update. 0 to disable.
110+
# e.g. 15 warns at 15, 10, 5, 3 and 1 minutes.
111+
warnplayerstimer="0"
112+
113+
## Updating | https://docs.linuxgsm.com/commands/update
114+
updateonstart="off"
115+
116+
## Backup | https://docs.linuxgsm.com/commands/backup
117+
maxbackups="4"
118+
maxbackupdays="30"
119+
stoponbackup="on"
120+
121+
## Logging | https://docs.linuxgsm.com/features/logging
122+
consolelogging="on"
123+
logdays="7"
124+
125+
## Monitor | https://docs.linuxgsm.com/commands/monitor
126+
# Query delay time
127+
querydelay="1"
128+
129+
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
130+
ansi="on"
131+
132+
#### Advanced Settings ####
133+
134+
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
135+
sleeptime="0.5"
136+
137+
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
138+
# 1: tmux kill
139+
# 2: CTRL+c
140+
# 3: quit
141+
# 4: quit 120s
142+
# 5: stop
143+
# 6: q
144+
# 7: exit
145+
# 8: 7 Days to Die
146+
# 9: GoldSrc
147+
# 10: Avorion
148+
# 11: end
149+
stopmode="2"
150+
151+
## Query mode
152+
# 1: session only
153+
# 2: gamedig (gsquery fallback)
154+
# 3: gamedig
155+
# 4: gsquery
156+
# 5: tcp
157+
querymode="1"
158+
querytype=""
159+
160+
## Console type
161+
consoleverbose="yes"
162+
consoleinteract="yes"
163+
164+
## Game Server Details
165+
# Do not edit
166+
gamename="Luanti"
167+
engine="luanti"
168+
glibc="2.31"
169+
170+
#### Directories ####
171+
# Edit with care
172+
173+
## Game Server Directories
174+
systemdir="${serverfiles}"
175+
executabledir="${serverfiles}/bin"
176+
executable="./luantiserver"
177+
servercfgdir="${systemdir}"
178+
servercfg="${selfname}.cfg"
179+
servercfgdefault="minetest.conf.example"
180+
servercfgfullpath="${servercfgdir}/${servercfg}"
181+
182+
## Backup Directory
183+
backupdir="${lgsmdir}/backup"
184+
185+
## Logging Directories
186+
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
187+
gamelogdir="${logdir}/server"
188+
lgsmlogdir="${logdir}/script"
189+
consolelogdir="${logdir}/console"
190+
lgsmlog="${lgsmlogdir}/${selfname}-script.log"
191+
consolelog="${consolelogdir}/${selfname}-console.log"
192+
alertlog="${lgsmlogdir}/${selfname}-alert.log"
193+
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
194+
195+
## Logs Naming
196+
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
197+
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
198+
199+
## Log Parameters
200+
logtimestamp="off"
201+
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
@@ -69,6 +69,7 @@ kf
6969
kf2
7070
l4d
7171
l4d2
72+
luanti,libcurl,libstdc++,libzstd,ncurses-libs,sqlite-libs,zlib
7273
mc,java-21-openjdk
7374
mcb,libnsl
7475
mcv

‎lgsm/data/almalinux-9.csv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ kf
6969
kf2
7070
l4d
7171
l4d2
72+
luanti,libcurl,libstdc++,libzstd,ncurses-libs,sqlite-libs,zlib
7273
mc,java-25-openjdk
7374
mcb,libnsl
7475
mcv

‎lgsm/data/centos-7.csv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ kf
6969
kf2
7070
l4d
7171
l4d2
72+
luanti,libcurl,libstdc++,libzstd,ncurses-libs,sqlite-libs,zlib
7273
mc,java-21-openjdk
7374
mcb,libnsl
7475
mcv

‎lgsm/data/centos-8.csv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ kf
6969
kf2
7070
l4d
7171
l4d2
72+
luanti,libcurl,libstdc++,libzstd,ncurses-libs,sqlite-libs,zlib
7273
mc,java-21-openjdk
7374
mcb,libnsl
7475
mcv

‎lgsm/data/centos-9.csv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ kf
6969
kf2
7070
l4d
7171
l4d2
72+
luanti,libcurl,libstdc++,libzstd,ncurses-libs,sqlite-libs,zlib
7273
mc,java-25-openjdk
7374
mcb,libnsl
7475
mcv

‎lgsm/data/debian-10.csv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ kf
6868
kf2
6969
l4d
7070
l4d2
71+
luanti,libcurl4,libncursesw6,libsqlite3-0,libstdc++6,libzstd1,zlib1g
7172
mc,openjdk-11-jre
7273
mcb
7374
mcv

‎lgsm/data/debian-11.csv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ kf
6969
kf2
7070
l4d
7171
l4d2
72+
luanti,libcurl4,libncursesw6,libsqlite3-0,libstdc++6,libzstd1,zlib1g
7273
mc,openjdk-17-jre
7374
mcb
7475
mcv

‎lgsm/data/debian-12.csv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ kf
6969
kf2
7070
l4d
7171
l4d2
72+
luanti,libcurl4,libncursesw6,libsqlite3-0,libstdc++6,libzstd1,zlib1g
7273
mc,openjdk-17-jre
7374
mcb
7475
mcv

‎lgsm/data/debian-13.csv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ kf
6969
kf2
7070
l4d
7171
l4d2
72+
luanti,libcurl4t64,libncursesw6,libsqlite3-0,libstdc++6,libzstd1,zlib1g
7273
mc,openjdk-25-jre
7374
mcb
7475
mcv

0 commit comments

Comments
 (0)