mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
ci
This commit is contained in:
parent
c9190b1267
commit
be5a8f6104
2 changed files with 7 additions and 3 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
8
dist/ba_root/mods/tools/servercontroller.py
vendored
8
dist/ba_root/mods/tools/servercontroller.py
vendored
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue