Skip to content

Commit a427e5e

Browse files
committed
feat(newserver): TrackMania Nations Forever
1 parent b529f00 commit a427e5e

20 files changed

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

lgsm/data/almalinux-8.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl.i686
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/almalinux-9.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl.i686
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/centos-7.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl.i686
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/centos-8.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl.i686
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/centos-9.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl.i686
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/debian-10.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl4-gnutls-dev:i386
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/debian-11.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl4-gnutls-dev:i386
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/debian-9.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl4-gnutls-dev:i386
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/rocky-8.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl.i686
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/rocky-9.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl.i686
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/serverlist.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ terraria,terrariaserver,Terraria,ubuntu-22.04
109109
tf2,tf2server,Team Fortress 2,ubuntu-22.04
110110
tfc,tfcserver,Team Fortress Classic,ubuntu-22.04
111111
ti,tiserver,The Isle,ubuntu-22.04
112+
tmnf,tmnfserver,Trackmania Nations Forever,ubuntu-22.04
112113
ts,tsserver,The Specialists,ubuntu-22.04
113114
ts3,ts3server,Teamspeak 3,ubuntu-22.04
114115
tu,tuserver,Tower Unite,ubuntu-22.04
@@ -128,4 +129,3 @@ wmc,wmcserver,WaterfallMC,ubuntu-22.04
128129
wurm,wurmserver,Wurm Unlimited,ubuntu-22.04
129130
zmr,zmrserver,Zombie Master: Reborn,ubuntu-22.04
130131
zps,zpsserver,Zombie Panic! Source,ubuntu-22.04
131-

lgsm/data/ubuntu-16.04.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl4-gnutls-dev:i386
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/ubuntu-18.04.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl4-gnutls-dev:i386
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/ubuntu-20.04.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl4-gnutls-dev:i386
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/ubuntu-21.04.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl4-gnutls-dev:i386
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/data/ubuntu-21.10.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ terraria
108108
tf2,libcurl4-gnutls-dev:i386
109109
tfc
110110
ti
111+
tmnf,xmlstarlet
111112
ts
112113
ts3
113114
tu

lgsm/data/ubuntu-22.04.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ terraria
110110
tf2,libcurl4-gnutls-dev:i386
111111
tfc
112112
ti
113+
tmnf,xmlstarlet
113114
ts
114115
ts3
115116
tu

lgsm/functions/core_getopt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ currentopt+=("${cmd_update_linuxgsm[@]}")
6565

6666
# Exclude noupdate games here.
6767
if [ "${shortname}" == "jk2" ] || [ "${engine}" != "idtech3" ]; then
68-
if [ "${shortname}" != "bf1942" ] && [ "${shortname}" != "bfv" ] && [ "${engine}" != "idtech2" ] && [ "${engine}" != "iw2.0" ] && [ "${engine}" != "iw3.0" ] && [ "${engine}" != "quake" ] && [ "${shortname}" != "samp" ] && [ "${shortname}" != "ut2k4" ]; then
68+
if [ "${shortname}" != "bf1942" ] && [ "${shortname}" != "bfv" ] && [ "${engine}" != "idtech2" ] && [ "${engine}" != "iw2.0" ] && [ "${engine}" != "iw3.0" ] && [ "${engine}" != "quake" ] && [ "${shortname}" != "samp" ] && [ "${shortname}" != "tmnf" ] && [ "${shortname}" != "ut2k4" ]; then
6969
currentopt+=("${cmd_update[@]}" "${cmd_check_update[@]}")
7070
# force update for SteamCMD or Multi Theft Auto only.
7171
if [ "${appid}" ] || [ "${shortname}" == "mta" ]; then

lgsm/modules/install_server_files.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ fn_install_server_files() {
134134
chmodx="nochmodx" run="norun"
135135
force="noforce"
136136
md5="201e23bab04207d00ce813d001c483d9"
137+
elif [ "${shortname}" == "tmnf" ]; then
138+
remote_fileurl="http://files2.trackmaniaforever.com/TrackmaniaServer_2011-02-21.zip"
139+
local_filedir="${tmpdir}"
140+
local_filename="TrackmaniaServer_2011-02-21.zip"
141+
chmodx="nochmodx" run="norun"
142+
force="noforce"
143+
md5="dd021f49c3d58d45ee09f333015bdb35b19243a38fa65f202ca8a88fb6550c0b" # sha256 sum
137144
elif [ "${shortname}" == "ts" ]; then
138145
remote_fileurl="http://linuxgsm.download/TheSpecialists/ts-3-linux-final.tar.xz"
139146
local_filedir="${tmpdir}"

0 commit comments

Comments
 (0)