From 8bea433f21ee9cd2544048670235e03ed7398e53 Mon Sep 17 00:00:00 2001 From: dovixman Date: Fri, 15 Nov 2024 18:46:54 +0100 Subject: [PATCH 1/2] possible fix for mac users --- start-game.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-game.sh b/start-game.sh index 328a259..01b807b 100755 --- a/start-game.sh +++ b/start-game.sh @@ -209,7 +209,7 @@ function add_game_server() { hostname: ${GAME_CONTAINER_NAME} restart: no environment: - BOARD_PATH: "/maps/${THIS_MAP}" + BOARD_PATH: "./maps/${THIS_MAP}" TURNS: "${THIS_GAME_TURNS}" TURN_REQUEST_TIMEOUT: "${THIS_GAME_REQ_TIMEOUT}" TIME_BETWEEN_ROUNDS: "${THIS_GAME_TIME_ROUNDS}" From 63c40e6cc97f9f08e3986963a65b826adc2f8fa3 Mon Sep 17 00:00:00 2001 From: dovixman Date: Wed, 20 Nov 2024 11:58:30 +0100 Subject: [PATCH 2/2] replace exported BOT_LIST parameter for internal variable --- start-game.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start-game.sh b/start-game.sh index 01b807b..5917ca1 100755 --- a/start-game.sh +++ b/start-game.sh @@ -152,8 +152,10 @@ function load_config() { # randomize bot list botnum=$((${#bots[@]} - 1)) newseq=$(shuf -i 0-$botnum) + + BOT_LIST=() for i in ${newseq}; do - export BOT_LIST+=("${bots[$i]}") + BOT_LIST+=("${bots[$i]}") done # make sure log & output dir exists for dir in log output; do