minor bot updates

This commit is contained in:
jenzur 2020-02-09 00:26:05 +01:00
parent e9bf88f984
commit 6d4ab15107
2 changed files with 13 additions and 26 deletions

View File

@ -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.
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"

View File

@ -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()