Skip to content

Commit 3cfabd6

Browse files
h3o66dgibbs64
andauthored
feat(dodr): Day of Dragons (#3351)
* feat(dodr): add new server * updated query * update info Co-authored-by: Daniel Gibbs <[email protected]>
1 parent 436c87d commit 3cfabd6

File tree

4 files changed

+201
-0
lines changed

4 files changed

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

lgsm/data/serverlist.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ css,cssserver,Counter-Strike: Source
2929
dab,dabserver,Double Action: Boogaloo
3030
dmc,dmcserver,Deathmatch Classic
3131
dod,dodserver,Day of Defeat
32+
dodr,dodrserver,Day of Dragons
3233
dods,dodsserver,Day of Defeat: Source
3334
doi,doiserver,Day of Infamy
3435
dst,dstserver,Don't Starve Together

lgsm/functions/info_game.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,17 @@ fn_info_game_col(){
356356
fi
357357
}
358358

359+
fn_info_game_dodr(){
360+
if [ ! -f "${servercfgfullpath}" ]; then
361+
maxplayers="${zero}"
362+
else
363+
maxplayers=$(sed -nr 's/^iServerMaxPlayers=(.*)$/\1/p' "${servercfgfullpath}")
364+
365+
# Not Set
366+
maxplayers=${maxplayers:-"NOT SET"}
367+
fi
368+
}
369+
359370
fn_info_game_dst(){
360371
# Config
361372
if [ ! -f "${clustercfgfullpath}" ]; then
@@ -2036,6 +2047,8 @@ elif [ "${shortname}" == "codwaw" ]; then
20362047
fn_info_game_codwaw
20372048
elif [ "${shortname}" == "col" ]; then
20382049
fn_info_game_col
2050+
elif [ "${shortname}" == "dodr" ]; then
2051+
fn_info_game_dodr
20392052
elif [ "${shortname}" == "dst" ]; then
20402053
fn_info_game_dst
20412054
elif [ "${shortname}" == "eco" ]; then

lgsm/functions/install_config.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,12 @@ elif [ "${shortname}" == "dod" ]; then
359359
fn_default_config_remote
360360
fn_set_config_vars
361361
fn_list_config_locations
362+
elif [ "${shortname}" == "dodr" ]; then
363+
gamedirname="DayOfDragons"
364+
array_configs+=( Game.ini )
365+
fn_fetch_default_config
366+
fn_default_config_remote
367+
fn_list_config_locations
362368
elif [ "${shortname}" == "dods" ]; then
363369
gamedirname="DayOfDefeatSource"
364370
array_configs+=( server.cfg )

0 commit comments

Comments
 (0)