diff --git a/AutismBotIngame/python/ingamefollowct.py b/AutismBotIngame/python/ingamefollowct.py index 20c2db8d..98374763 100644 --- a/AutismBotIngame/python/ingamefollowct.py +++ b/AutismBotIngame/python/ingamefollowct.py @@ -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)