From 0fffffeb7d2714a60163ca639d99c5facfe24a09 Mon Sep 17 00:00:00 2001 From: fanyx Date: Sun, 26 Jun 2022 21:29:07 +0200 Subject: [PATCH] Make Packmask configurable --- README.md | 2 ++ tmserver/GameData/Config/config.xml | 2 +- tmserver/bin/eval_env.sh | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c7af64e..242a17e 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ then run unwanted logins, set a server password - HIDE_SERVER | Whether you want your server public or not -> Default : 0 (public) - MAX_PLAYERS | Max player count -> Default : 32 + - PACKMASK | Leave empty to change server mode to United -> Default : stadium + (Nations) ``` ### Gamemodes diff --git a/tmserver/GameData/Config/config.xml b/tmserver/GameData/Config/config.xml index a8b9b49..9f656a8 100644 --- a/tmserver/GameData/Config/config.xml +++ b/tmserver/GameData/Config/config.xml @@ -77,7 +77,7 @@ - stadium + @PACKMASK@ False diff --git a/tmserver/bin/eval_env.sh b/tmserver/bin/eval_env.sh index 21e5a5d..990daaf 100755 --- a/tmserver/bin/eval_env.sh +++ b/tmserver/bin/eval_env.sh @@ -28,6 +28,8 @@ HIDE_SERVER=${HIDE_SERVER:-0} && config+=( "HIDE_SERVER" ) echo "INFO | HIDE_SERVER: ${HIDE_SERVER}" MAX_PLAYERS=${MAX_PLAYERS:-32} && config+=( "MAX_PLAYERS" ) echo "INFO | MAX_PLAYERS: ${MAX_PLAYERS}" +PACKMASK=${PACKMASK:-stadium} && config+=( "PACKMASK" ) +echo "INFO | PACKMASK: ${PACKMASK}" # Game Config GAMEMODE=${GAMEMODE:-1} && playlist+=( "GAMEMODE" )