Skip to content

Commit 3b535d8

Browse files
pchoteabcdefg30
authored andcommitted
Add missing launch arguments to launch-dedicated scripts.
1 parent 17e9d97 commit 3b535d8

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

launch-dedicated.cmd

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@
55
set Name="Dedicated Server"
66
set ListenPort=1234
77
set AdvertiseOnline=True
8-
set EnableSingleplayer=False
98
set Password=""
109

10+
set GeoIPDatabase=""
11+
12+
set RequireAuthentication=False
13+
set ProfileIDBlacklist=""
14+
set ProfileIDWhitelist=""
15+
16+
set EnableSingleplayer=False
17+
set EnableSyncReports=False
18+
set ShareAnonymizedIPs=True
19+
1120
@echo off
1221
setlocal EnableDelayedExpansion
1322

@@ -25,7 +34,7 @@ if not exist %ENGINE_DIRECTORY%\OpenRA.Game.exe goto noengine
2534
cd %ENGINE_DIRECTORY%
2635

2736
:loop
28-
OpenRA.Server.exe Game.Mod=%MOD_ID% Server.Name=%Name% Server.ListenPort=%ListenPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password%
37+
OpenRA.Server.exe Game.Mod=%MOD_ID% Server.Name=%Name% Server.ListenPort=%ListenPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password% Server.GeoIPDatabase=%GeoIPDatabase% Server.RequireAuthentication=%RequireAuthentication% Server.ProfileIDBlacklist=%ProfileIDBlacklist% Server.ProfileIDWhitelist=%ProfileIDWhitelist% Server.EnableSyncReports=%EnableSyncReports% Server.ShareAnonymizedIPs=%ShareAnonymizedIPs% Engine.SupportDir=%SupportDir%
2938
goto loop
3039

3140
:noengine
@@ -39,4 +48,4 @@ echo Required mod.config variables are missing.
3948
echo Ensure that MOD_ID ENGINE_VERSION and ENGINE_DIRECTORY are
4049
echo defined in your mod.config (or user.config) and try again.
4150
pause
42-
exit /b
51+
exit /b

launch-dedicated.sh

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,20 @@ NAME="${Name:-"Dedicated Server"}"
3838
LAUNCH_MOD="${Mod:-"${MOD_ID}"}"
3939
LISTEN_PORT="${ListenPort:-"1234"}"
4040
ADVERTISE_ONLINE="${AdvertiseOnline:-"True"}"
41-
ENABLE_SINGLE_PLAYER="${EnableSingleplayer:-"False"}"
4241
PASSWORD="${Password:-""}"
4342

43+
GEOIP_DATABASE_PATH="${GeoIPDatabase:-""}"
44+
45+
REQUIRE_AUTHENTICATION="${RequireAuthentication:-"False"}"
46+
PROFILE_ID_BLACKLIST="${ProfileIDBlacklist:-""}"
47+
PROFILE_ID_WHITELIST="${ProfileIDWhitelist:-""}"
48+
49+
ENABLE_SINGLE_PLAYER="${EnableSingleplayer:-"False"}"
50+
ENABLE_SYNC_REPORTS="${EnableSyncReports:-"False"}"
51+
SHARE_ANONYMISED_IPS="${ShareAnonymizedIPs:-"True"}"
52+
53+
SUPPORT_DIR="${SupportDir:-""}"
54+
4455
cd "${TEMPLATE_ROOT}"
4556
if [ ! -f "${ENGINE_DIRECTORY}/OpenRA.Game.exe" ] || [ "$(cat "${ENGINE_DIRECTORY}/VERSION")" != "${ENGINE_VERSION}" ]; then
4657
echo "Required engine files not found."
@@ -54,5 +65,13 @@ while true; do
5465
MOD_SEARCH_PATHS="${MOD_SEARCH_PATHS}" mono --debug OpenRA.Server.exe Game.Mod="${LAUNCH_MOD}" \
5566
Server.Name="${NAME}" Server.ListenPort="${LISTEN_PORT}" \
5667
Server.AdvertiseOnline="${ADVERTISE_ONLINE}" \
57-
Server.EnableSingleplayer="${ENABLE_SINGLE_PLAYER}" Server.Password="${PASSWORD}"
68+
Server.Password="${PASSWORD}" \
69+
Server.GeoIPDatabase="${GEOIP_DATABASE_PATH}" \
70+
Server.RequireAuthentication="${REQUIRE_AUTHENTICATION}" \
71+
Server.ProfileIDBlacklist="${PROFILE_ID_BLACKLIST}" \
72+
Server.ProfileIDWhitelist="${PROFILE_ID_WHITELIST}" \
73+
Server.EnableSingleplayer="${ENABLE_SINGLE_PLAYER}" \
74+
Server.EnableSyncReports="${ENABLE_SYNC_REPORTS}" \
75+
Server.ShareAnonymizedIPs="${SHARE_ANONYMISED_IPS}" \
76+
Engine.SupportDir="${SUPPORT_DIR}"
5877
done

0 commit comments

Comments
 (0)