From f6b0ec479be4b274586a3900309b8d00c02409cd Mon Sep 17 00:00:00 2001 From: penev92 Date: Sun, 1 Oct 2023 20:23:57 +0300 Subject: [PATCH] Updated dedicated server launch scripts OpenRA PR 20783. --- launch-dedicated.cmd | 5 +++-- launch-dedicated.sh | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/launch-dedicated.cmd b/launch-dedicated.cmd index 58dca9a..3c5fa30 100644 --- a/launch-dedicated.cmd +++ b/launch-dedicated.cmd @@ -3,6 +3,7 @@ @echo on set Name="Dedicated Server" +set Map="" set ListenPort=1234 set AdvertiseOnline=True set Password="" @@ -18,7 +19,7 @@ set EnableGeoIP=True set EnableLintChecks=True set ShareAnonymizedIPs=True -set JoinChatDelay=5000 +set FloodLimitJoinCooldown=5000 @echo off setlocal EnableDelayedExpansion @@ -37,7 +38,7 @@ if not exist %ENGINE_DIRECTORY%\bin\OpenRA.exe goto noengine cd %ENGINE_DIRECTORY% :loop -bin\OpenRA.Server.exe Game.Mod=%MOD_ID% Engine.EngineDir=".." Server.Name=%Name% Server.ListenPort=%ListenPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password% Server.RequireAuthentication=%RequireAuthentication% Server.RecordReplays=%RecordReplays% Server.ProfileIDBlacklist=%ProfileIDBlacklist% Server.ProfileIDWhitelist=%ProfileIDWhitelist% Server.EnableSyncReports=%EnableSyncReports% Server.EnableGeoIP=%EnableGeoIP% Server.ShareAnonymizedIPs=%ShareAnonymizedIPs% Server.EnableLintChecks=%EnableLintChecks% Engine.SupportDir=%SupportDir% Server.JoinChatDelay=%JoinChatDelay% +bin\OpenRA.Server.exe Game.Mod=%MOD_ID% Engine.EngineDir=".." Server.Name=%Name% Server.Map=%Map% Server.ListenPort=%ListenPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password% Server.RequireAuthentication=%RequireAuthentication% Server.RecordReplays=%RecordReplays% Server.ProfileIDBlacklist=%ProfileIDBlacklist% Server.ProfileIDWhitelist=%ProfileIDWhitelist% Server.EnableSyncReports=%EnableSyncReports% Server.EnableGeoIP=%EnableGeoIP% Server.ShareAnonymizedIPs=%ShareAnonymizedIPs% Server.EnableLintChecks=%EnableLintChecks% Engine.SupportDir=%SupportDir% Server.FloodLimitJoinCooldown=%FloodLimitJoinCooldown% goto loop :noengine diff --git a/launch-dedicated.sh b/launch-dedicated.sh index f7f7e42..8549328 100755 --- a/launch-dedicated.sh +++ b/launch-dedicated.sh @@ -50,6 +50,7 @@ fi NAME="${Name:-"Dedicated Server"}" LAUNCH_MOD="${Mod:-"${MOD_ID}"}" +MAP="${Map:-""}" LISTEN_PORT="${ListenPort:-"1234"}" ADVERTISE_ONLINE="${AdvertiseOnline:-"True"}" PASSWORD="${Password:-""}" @@ -65,7 +66,7 @@ ENABLE_GEOIP="${EnableGeoIP:-"True"}" ENABLE_LINT_CHECKS="${EnableLintChecks:-"True"}" SHARE_ANONYMISED_IPS="${ShareAnonymizedIPs:-"True"}" -JOIN_CHAT_DELAY="${JoinChatDelay:-"5000"}" +FLOOD_LIMIT_JOIN_COOLDOWN="${FloodLimitJoinCooldown:-"5000"}" SUPPORT_DIR="${SupportDir:-""}" @@ -82,6 +83,7 @@ while true; do MOD_SEARCH_PATHS="${MOD_SEARCH_PATHS}" \ ${RUNTIME_LAUNCHER} bin/OpenRA.Server.dll Engine.EngineDir=".." Game.Mod="${LAUNCH_MOD}" \ Server.Name="${NAME}" \ + Server.Map="${MAP}" \ Server.ListenPort="${LISTEN_PORT}" \ Server.AdvertiseOnline="${ADVERTISE_ONLINE}" \ Server.Password="${PASSWORD}" \ @@ -94,6 +96,6 @@ while true; do Server.EnableGeoIP="${ENABLE_GEOIP}" \ Server.EnableLintChecks="${ENABLE_LINT_CHECKS}" \ Server.ShareAnonymizedIPs="${SHARE_ANONYMISED_IPS}" \ - Server.JoinChatDelay="${JOIN_CHAT_DELAY}" \ + Server.FloodLimitJoinCooldown="${FLOOD_LIMIT_JOIN_COOLDOWN}" \ Engine.SupportDir="${SUPPORT_DIR}" done