Przeglądaj źródła

feat(rsdwserver): add RuneScape: Dragonwilds server (#4921)

* feat(rsdwserver): add RuneScape: Dragonwilds server

* fix(rsdwserver): correct servercfgdir to LinuxServer

* feat(rsdwserver): show world name, owner id, and ini path in details

* fix(rsdwserver): point port edit guidance to start parameters

The rsdw port is set via -Port=${port} in startparameters, not in
DedicatedServer.ini, so move rsdw to the start parameters list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012svZAWTbYDdo2WuT2BZxQo

* feat(rsdwserver): add distro dependency entries and OwnerId guidance

- Add rsdw to every distro dependency CSV; without it the Server List
  Validation check fails once merged. No extra packages are needed,
  like other Unreal servers.
- Add Owner ID to dev-parse-game-details, as info_game.sh requires for
  new variables.
- State in _default.cfg that the server does not finish starting until
  OwnerId is set in DedicatedServer.ini, and drop the unused servername
  setting (the server reads its name from DedicatedServer.ini).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(rsdwserver): add game icon

32x32 RGB PNG from the Steam community app icon for RuneScape: Dragonwilds (app 1374490), matching the other game icons. Required by serverlist-validate-game-icons.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
Josh Saterdalen 1 tydzień temu
rodzic
commit
c3eb623528

+ 198 - 0
lgsm/config-default/config-lgsm/rsdwserver/_default.cfg

@@ -0,0 +1,198 @@
+##################################
+######## Default Settings ########
+##################################
+# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN!
+# Copy settings from here and use them in either:
+# common.cfg - applies settings to every instance.
+# [instance].cfg - applies settings to a specific instance.
+
+#### Game Server Settings ####
+
+## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
+# Server name, passwords, owner ID and world name are read by the server from DedicatedServer.ini, not set here.
+# Edit them in: serverfiles/RSDragonwilds/Saved/Config/LinuxServer/DedicatedServer.ini
+# REQUIRED: the server will not finish starting until OwnerId is set in DedicatedServer.ini
+# (your Player ID, shown in the in-game settings). DedicatedServer.ini is created on first start.
+port="7777"
+
+## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
+## Game Server Docs | https://dragonwilds.runescape.wiki/w/Dedicated_Servers
+startparameters="-Port=${port} -log"
+
+#### LinuxGSM Settings ####
+
+## LinuxGSM Stats
+# Send useful stats to LinuxGSM developers.
+# https://docs.linuxgsm.com/configuration/linuxgsm-stats
+# (on|off)
+stats="off"
+
+## Notification Alerts
+# (on|off)
+
+# Display IP | https://docs.linuxgsm.com/alerts#display-ip
+displayip=""
+
+# More info | https://docs.linuxgsm.com/alerts#more-info
+postalert="off"
+
+# Alert on Start/Stop/Restart
+statusalert="off"
+
+# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
+discordalert="off"
+discordwebhook="webhook"
+
+# Email Alerts | https://docs.linuxgsm.com/alerts/email
+emailalert="off"
+email="email@example.com"
+emailfrom=""
+
+# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
+gotifyalert="off"
+gotifytoken="token"
+gotifywebhook="webhook"
+
+# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
+ntfyalert="off"
+ntfytopic="LinuxGSM"
+ntfyserver="https://ntfy.sh"
+ntfytoken=""
+ntfyusername=""
+ntfypassword=""
+ntfypriority=""
+ntfytags=""
+
+# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
+pushbulletalert="off"
+pushbullettoken="accesstoken"
+channeltag=""
+
+# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+pushoveruserkey="userkey"
+
+# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
+rocketchatalert="off"
+rocketchatwebhook="webhook"
+
+# Slack Alerts | https://docs.linuxgsm.com/alerts/slack
+slackalert="off"
+slackwebhook="webhook"
+
+# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
+# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
+# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
+telegramapi="api.telegram.org"
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+telegramthreadid=""
+telegramsilentnotification="false"
+curlcustomstring=""
+
+## Updating | https://docs.linuxgsm.com/commands/update
+updateonstart="off"
+
+## Backup | https://docs.linuxgsm.com/commands/backup
+maxbackups="4"
+maxbackupdays="30"
+stoponbackup="on"
+
+## Logging | https://docs.linuxgsm.com/features/logging
+consolelogging="on"
+logdays="7"
+
+## Monitor | https://docs.linuxgsm.com/commands/monitor
+# Query delay time
+querydelay="5"
+
+## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
+ansi="on"
+
+#### Advanced Settings ####
+
+## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
+sleeptime="0.5"
+
+## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
+# Server appid
+appid="4019830"
+steamcmdforcewindows="no"
+# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
+branch=""
+betapassword=""
+# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
+steammaster="false"
+
+## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
+# 1: tmux kill
+# 2: CTRL+c
+# 3: quit
+# 4: quit 120s
+# 5: stop
+# 6: q
+# 7: exit
+# 8: 7 Days to Die
+# 9: GoldSrc
+# 10: Avorion
+# 11: end
+stopmode="2"
+
+## Query mode
+# 1: session only
+# 2: gamedig (gsquery fallback)
+# 3: gamedig
+# 4: gsquery
+# 5: tcp
+querymode="1"
+querytype=""
+
+## Console type
+consoleverbose="yes"
+consoleinteract="no"
+
+## Game Server Details
+# Do not edit
+gamename="RuneScape: Dragonwilds"
+engine="unreal5"
+glibc="2.17"
+
+#### Directories ####
+# Edit with care
+
+## Game Server Directories
+systemdir="${serverfiles}/RSDragonwilds"
+executabledir="${systemdir}/Binaries/Linux"
+executable="./RSDragonwildsServer-Linux-Shipping"
+servercfgdir="${systemdir}/Saved/Config/LinuxServer"
+servercfg="DedicatedServer.ini"
+servercfgdefault="DedicatedServer.ini"
+servercfgfullpath="${servercfgdir}/${servercfg}"
+
+## Backup Directory
+backupdir="${lgsmdir}/backup"
+
+## Logging Directories
+[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
+gamelogdir="${systemdir}/Saved/Logs"
+lgsmlogdir="${logdir}/script"
+consolelogdir="${logdir}/console"
+lgsmlog="${lgsmlogdir}/${selfname}-script.log"
+consolelog="${consolelogdir}/${selfname}-console.log"
+alertlog="${lgsmlogdir}/${selfname}-alert.log"
+postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
+
+## Logs Naming
+lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+
+## Log Parameters
+logtimestamp="off"
+logtimestampformat="%Y-%m-%d %H:%M:%S"

+ 1 - 0
lgsm/data/almalinux-8.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-11-openjdk

+ 1 - 0
lgsm/data/almalinux-9.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-21-openjdk

+ 1 - 0
lgsm/data/centos-7.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-11-openjdk

+ 1 - 0
lgsm/data/centos-8.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-11-openjdk

+ 1 - 0
lgsm/data/centos-9.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-21-openjdk

+ 1 - 0
lgsm/data/debian-10.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-11-jre

+ 1 - 0
lgsm/data/debian-11.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-17-jre

+ 1 - 0
lgsm/data/debian-12.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-17-jre

+ 1 - 0
lgsm/data/debian-13.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-25-jre

+ 1 - 0
lgsm/data/debian-9.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-8-jre

BIN
lgsm/data/gameicons/rsdw-icon.png


+ 1 - 0
lgsm/data/rhel-7.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-11-openjdk

+ 1 - 0
lgsm/data/rhel-8.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-21-openjdk

+ 1 - 0
lgsm/data/rhel-9.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-21-openjdk

+ 1 - 0
lgsm/data/rocky-8.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-21-openjdk

+ 1 - 0
lgsm/data/rocky-9.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,zlib-devel
 rw,java-21-openjdk

+ 1 - 0
lgsm/data/serverlist.csv

@@ -94,6 +94,7 @@ ql,qlserver,Quake Live,ubuntu-24.04
 qw,qwserver,Quake World,ubuntu-24.04
 ricochet,ricochetserver,Ricochet,ubuntu-24.04
 ro,roserver,Red Orchestra: Ostfront 41-45,ubuntu-24.04
+rsdw,rsdwserver,RuneScape: Dragonwilds,ubuntu-24.04
 rtcw,rtcwserver,Return to Castle Wolfenstein,ubuntu-24.04
 rust,rustserver,Rust,ubuntu-24.04
 rw,rwserver,Rising World,ubuntu-24.04

+ 1 - 0
lgsm/data/ubuntu-16.04.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-8-jre

+ 1 - 0
lgsm/data/ubuntu-18.04.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-11-jre

+ 1 - 0
lgsm/data/ubuntu-20.04.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-21-jre

+ 1 - 0
lgsm/data/ubuntu-22.04.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-21-jre

+ 1 - 0
lgsm/data/ubuntu-23.04.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-21-jre

+ 1 - 0
lgsm/data/ubuntu-23.10.csv

@@ -96,6 +96,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-21-jre

+ 1 - 0
lgsm/data/ubuntu-24.04.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-25-jre

+ 1 - 0
lgsm/data/ubuntu-26.04.csv

@@ -95,6 +95,7 @@ ql
 qw
 ricochet
 ro
+rsdw
 rtcw
 rust,lib32z1
 rw,openjdk-25-jre

+ 2 - 0
lgsm/modules/check_system_requirements.sh

@@ -45,6 +45,8 @@ elif [ "${shortname}" == "pvr" ]; then
 	ramrequirementgb="1"
 elif [ "${shortname}" == "pz" ]; then
 	ramrequirementgb="3"
+elif [ "${shortname}" == "rsdw" ]; then
+	ramrequirementgb="2"
 elif [ "${shortname}" == "rust" ]; then
 	ramrequirementgb="9"
 elif [ "${shortname}" == "sdtd" ]; then

+ 1 - 0
lgsm/modules/command_dev_parse_game_details.sh

@@ -77,6 +77,7 @@ declare -A server_details=(
 	['Max Players']="${maxplayers}"
 	['Mod Server Port']="${modserverport}"
 	['OldQueryPortNumber']="${oldqueryportnumber}"
+	['Owner ID']="${ownerid}"
 	['Port 401']="${port401}"
 	['Port IPv6']="${portipv6}"
 	['Port']="${port}"

+ 24 - 0
lgsm/modules/info_game.sh

@@ -1799,6 +1799,28 @@ fn_info_game_ro() {
 	unreal2queryport="$((port + 1))" # Unreal2 Query Port
 }
 
+# Config Type: ini
+# Parameters: true
+# Comment: ; or #
+# Example: ServerName=SERVERNAME
+# Filetype: ini
+fn_info_game_rsdw() {
+	if [ -f "${servercfgfullpath}" ]; then
+		fn_info_game_ini "adminpassword" "AdminPassword"
+		fn_info_game_ini "ownerid" "OwnerId"
+		fn_info_game_ini "servername" "ServerName"
+		fn_info_game_ini "serverpassword" "WorldPassword"
+		fn_info_game_ini "worldname" "DefaultWorldName"
+	fi
+	adminpassword="${adminpassword:-"NOT SET"}"
+	ownerid="${ownerid:-"NOT SET"}"
+	port="${port:-"0"}"
+	queryport="${port:-"0"}"
+	servername="${servername:-"NOT SET"}"
+	serverpassword="${serverpassword:-"NOT SET"}"
+	worldname="${worldname:-"NOT SET"}"
+}
+
 # Config Type: QuakeC
 # Comment: // or /* */
 # Example: set sv_hostname "SERVERNAME"
@@ -2427,6 +2449,8 @@ elif [ "${shortname}" == "qw" ]; then
 	fn_info_game_qw
 elif [ "${shortname}" == "ro" ]; then
 	fn_info_game_ro
+elif [ "${shortname}" == "rsdw" ]; then
+	fn_info_game_rsdw
 elif [ "${shortname}" == "rtcw" ]; then
 	fn_info_game_rtcw
 elif [ "${shortname}" == "rust" ]; then

+ 17 - 1
lgsm/modules/info_messages.sh

@@ -730,7 +730,7 @@ fn_info_messages_ports_edit() {
 		fi
 	done
 	# engines/games that require editing the start parameters.
-	local ports_edit_array=("av" "ck" "col" "cs2" "fctr" "goldsrc" "hcu" "hw" "iw3.0" "ioquake3" "pw" "qfusion" "rust" "scpsl" "scpslsm" "sf" "sol" "spark" "source" "unreal4" "arma3" "dayz" "unt" "vh")
+	local ports_edit_array=("av" "ck" "col" "cs2" "fctr" "goldsrc" "hcu" "hw" "iw3.0" "ioquake3" "pw" "qfusion" "rsdw" "rust" "scpsl" "scpslsm" "sf" "sol" "spark" "source" "unreal4" "arma3" "dayz" "unt" "vh")
 	for port_edit in "${ports_edit_array[@]}"; do
 		if [ "${engine}" == "${port_edit}" ] || [ "${gamename}" == "${port_edit}" ] || [ "${shortname}" == "${port_edit}" ]; then
 			startparameterslocation="${configdirserver}"
@@ -1412,6 +1412,20 @@ fn_info_messages_ro() {
 	} | column -s $'\t' -t
 }
 
+fn_info_messages_rsdw() {
+	{
+		fn_port "header"
+		fn_port "Game" port udp
+	} | column -s $'\t' -t
+	echo -e ""
+	echo -e "${bold}${lightgreen}${gamename} Game Settings${default}"
+	fn_messages_separator
+	{
+		echo -e "${lightblue}World name:\t${default}${worldname}"
+		echo -e "${lightblue}Owner ID:\t${default}${ownerid}"
+	} | column -s $'\t' -t
+}
+
 fn_info_messages_rtcw() {
 	{
 		fn_port "header"
@@ -1914,6 +1928,8 @@ fn_info_messages_select_engine() {
 		fn_info_messages_qw
 	elif [ "${shortname}" == "ro" ]; then
 		fn_info_messages_ro
+	elif [ "${shortname}" == "rsdw" ]; then
+		fn_info_messages_rsdw
 	elif [ "${shortname}" == "rtcw" ]; then
 		fn_info_messages_rtcw
 	elif [ "${shortname}" == "samp" ]; then