This commit is contained in:
Ayush Saini 2025-02-15 22:36:13 +05:30
parent c9190b1267
commit be5a8f6104
2 changed files with 7 additions and 3 deletions

View file

@ -32,7 +32,7 @@ jobs:
if grep -E "Exception|RuntimeError" server-output.log; then if grep -E "Exception|RuntimeError" server-output.log; then
echo "Error message found. Check server-output.log for details." echo "Error message found. Check server-output.log for details."
exit 1 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." echo "Success message not found in server's output."
exit 1 exit 1
fi fi

View file

@ -20,6 +20,9 @@ def _access_check_response(self, data) -> None:
poststr = '' poststr = ''
_babase.our_ip = addr _babase.our_ip = addr
_babase.our_port = port _babase.our_port = port
print(
f'{Clr.BGRN}{Clr.WHT} Server started {addr}:{port} {Clr.RST}',
flush=True)
if data['accessible']: if data['accessible']:
# _fetch_public_servers() # _fetch_public_servers()
_babase.queue_chcker_timer = bs.AppTimer(8, babase.Call( _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'{Clr.SRED}Master server access check of{addrstr}'
f' udp port {port} failed.\n' f' udp port {port} failed.\n'
f'Your server does not appear to be' 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) bs.set_public_party_queue_enabled(True)
return return
if not allowed_to_join and len( 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 # something is wrong , lets disable queue for some time
bs.set_public_party_queue_enabled(False) bs.set_public_party_queue_enabled(False)