From 6d4ab151075475a229adea424e5e9f2ff743a470 Mon Sep 17 00:00:00 2001 From: jenzur Date: Sun, 9 Feb 2020 00:26:05 +0100 Subject: [PATCH] minor bot updates --- AutismBotIngame/README.md | 15 +++++++++++++-- AutismBotIngame/python/rejoinze.py | 24 ------------------------ 2 files changed, 13 insertions(+), 26 deletions(-) delete mode 100644 AutismBotIngame/python/rejoinze.py diff --git a/AutismBotIngame/README.md b/AutismBotIngame/README.md index 82495e93..b413d741 100644 --- a/AutismBotIngame/README.md +++ b/AutismBotIngame/README.md @@ -1,3 +1,14 @@ -# Description # +# requirements +steam account, x2go or nomachine or VNC etc etc +steam account with css purchased +# launch commands +./steam.sh -applaunch 240 -textmode -textmessagedebug -novid -nosound -noipx -nojoy -noshaderapi -condebug +exec looptest.cfg -- two files are used. looptest.cfg is a file for constant input while the console.log file serves as constant output. \ No newline at end of file +autoexec.cfg: +alias loop "exec looptest.cfg; wait 5; loop;"; wait 5; loop; + + + +# environment settings needed +use glxinfo to get information about ID's, for example 0x0e5 +export SDL_VIDEO_X11_VISUALID="0x0e5" diff --git a/AutismBotIngame/python/rejoinze.py b/AutismBotIngame/python/rejoinze.py deleted file mode 100644 index 5c38c37c..00000000 --- a/AutismBotIngame/python/rejoinze.py +++ /dev/null @@ -1,24 +0,0 @@ -import subprocess -import threading -import time - -def resetCfgInputShortWait(): - str = "wait 1; getpos; wait 1; exec looptest.cfg;" - with open('/home/nonroot/.steam/steam/steamapps/common/Counter-Strike Source/cstrike/cfg/looptest.cfg', 'w') as f: - f.write(str) - -def writeCfgInput(Input): - with open('/home/nonroot/.steam/steam/steamapps/common/Counter-Strike Source/cstrike/cfg/looptest.cfg', 'w') as f: - f.write(Input) - -def rejoinze(): - threading.Timer(60.0 * 20, rejoinze).start() - open('/home/nonroot/.steam/steam/steamapps/common/Counter-Strike Source/cstrike/console.log', 'w').close() - writeCfgInput("connect 151.80.230.149:27015; wait 500; exec looptest.cfg;") - time.sleep(2) - resetCfgInputShortWait() - #server_ip_ze = "151.80.230.149:27015" - #subprocess.Popen(["steam", "steam://connect/" + server_ip_ze]) - -if __name__ == '__main__': - rejoinze() \ No newline at end of file