diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e605e13..5293f60 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,7 +32,7 @@ jobs: if grep -E "Exception|RuntimeError" server-output.log; then echo "Error message found. Check server-output.log for details." exit 1 - elif ! grep -q "entering server-mode" server-output.log; then + elif ! grep -q "Server started" server-output.log; then echo "Success message not found in server's output." exit 1 fi diff --git a/dist/ba_root/mods/tools/servercontroller.py b/dist/ba_root/mods/tools/servercontroller.py index 2e9619c..f85b217 100644 --- a/dist/ba_root/mods/tools/servercontroller.py +++ b/dist/ba_root/mods/tools/servercontroller.py @@ -20,6 +20,9 @@ def _access_check_response(self, data) -> None: poststr = '' _babase.our_ip = addr _babase.our_port = port + print( + f'{Clr.BGRN}{Clr.WHT} Server started {addr}:{port} {Clr.RST}', + flush=True) if data['accessible']: # _fetch_public_servers() _babase.queue_chcker_timer = bs.AppTimer(8, babase.Call( @@ -45,7 +48,8 @@ def _access_check_response(self, data) -> None: f'{Clr.SRED}Master server access check of{addrstr}' f' udp port {port} failed.\n' f'Your server does not appear to be' - f' joinable from the internet. Please check your firewall or instance security group.{poststr}{Clr.RST}' + f' joinable from the internet. Please check your firewall or instance security group.{ + poststr}{Clr.RST}' ) @@ -106,7 +110,7 @@ def on_update_response(response): bs.set_public_party_queue_enabled(True) return if not allowed_to_join and len( - players_in_queue) > 1 and current_players < max_allowed_in_server: + players_in_queue) > 1 and current_players < max_allowed_in_server: # something is wrong , lets disable queue for some time bs.set_public_party_queue_enabled(False)