403-fruit / csctl Goto Github PK
View Code? Open in Web Editor NEWScripting CS:GO over telnet.
License: GNU General Public License v3.0
Scripting CS:GO over telnet.
License: GNU General Public License v3.0
Hey my Man.
I'm having a weird problem. so I basically tried to use this to make some custom mods instead of actually moding the game. the first mod was random weapon mods. I could try to make it work. I actually have, I can link you to the source code in fact.
but the problem is every time there is a new line in the csgo terminal logs (e.g. I died in MM and it tells me the given damage and taken damage. or someone chats in game and it will appear in the terminal logs.) the script will run again (i think because of the While(true) and read_until(). is there a way for me to tell the program to only check for the "exectn " in the last line of terminal logs? so that it happens only one time.
Can this get You banned via VAC or Faceit AC / ESEA ?
Either way, awesome stuff!
I modified the script a little to not check if csgo.exe is running which allows the script to run remotly.
The telnet client connects to the telnet server running on my windows machine which is running csgo.
My question is, may the csctl scripts be run remotly?
In my case i'm running your script aka telnet client on one of my linux machines in my homelab?
is having the csctl scripts on the windows machine a requirement? it seems like the python script just reads the csctl file and just sends the commands to the telnet client... The reason i am asking is everytime i run echo exectn script.csctl i keep getting a file not found error.
The reason i'm doing this is i dont want to have a python script running while im playing on the same pc, which i'm affraid will trigger vac.
My end goal here, is just to have a status script run, have python parse the output of the status command while i'm connected to a csgo official competitive server, i will then have python parse for the steam id of the participants and send this information as a post request to my web server running flask. That webserver will then make a series of http calls to steam api, csgostats and maybe leetify to gather data about my adversaries, like their average stats and number of games they have pariticapted in where they had bans occur, either them or by a cheating team mate. In the end, a discord bot will share a webpage created dynamicly with all the accumulated data to a discord channel for me and my team mates to review. None of what i am doing would be considered cheating, i'm just automating a process of information gathering about my adversaries.
Sorry if this a whole lot of information, but i rather give you the full details so you could have a better understanding as to why i am trying to run your code like this.
Thanks in advance.
Is TF2, or any Source game, over telnet possible like with CS:GO shown here? I tried the script for TF2 but couldn't get it to work. Does -netconport even exist in TF2? The script itself looks very useful!
I'll just leave you with the console output below as you probably know best whats going on. I installed the script per tutorial, however trying to run it grants me with this issue. Note: I am on Kubuntu 22.04 and as such, modified the csctl.py file to look for 'csgo.sh' instead of 'csgo.exe', though thats the only modification I did.
ℹ Waiting for CS:GO to start...
ℹ Trying 127.0.0.1:2121...
✔ Successfully Connected
ℹ Listening for command from console
Traceback (most recent call last):
File "/home/linda/.tools/csctl/csctl.py", line 99, in
main()
File "/home/linda/.tools/csctl/csctl.py", line 74, in main
tn.read_until(b"exectn ")
File "/usr/lib/python3.10/telnetlib.py", line 329, in read_until
return self.read_very_lazy()
File "/usr/lib/python3.10/telnetlib.py", line 405, in read_very_lazy
raise EOFError('telnet connection closed')
EOFError: telnet connection closed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.