added default listen ports

This commit is contained in:
christian 2021-05-27 10:09:21 +02:00
parent adb8cc73f7
commit 4eaa830de1

View File

@ -105,7 +105,7 @@ def kill_css_process():
time.sleep(15)
print('preparing to launch game....')
os.chdir(f"""/home/{who_am_i}/.steam/debian-installation/""")
subprocess.check_call("./steam.sh %s" % ("-applaunch 240 -textmode -textmessagedebug -novid -nosound -noipx -nojoy -noshaderapi"), shell=True)
subprocess.check_call("./steam.sh %s" % ("-applaunch 240 -textmode -textmessagedebug -novid -nosound -noipx -nojoy -noshaderapi -port 29072"), shell=True)
print('finished starting game')
def bot_connect_ze():
@ -167,7 +167,7 @@ if __name__ == '__main__':
elif data == "bot kicked server full":
print('bot kicked server full: ', datetime.datetime.now().time())
elif data == "connect to ze":
if connection_issue_counter == 5 or connection_issue_counter > 50:
if connection_issue_counter == 5 or connection_issue_counter == 50:
kill_css_process()
connection_issue_counter += 1
print('connection_issue_counter: ', connection_issue_counter)