Git Product home page Git Product logo

csctl's Introduction

csctl's People

Contributors

403-fruit avatar ffgamer04 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

csctl's Issues

Will execute the same commands multiple times

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.

Connection Failed

When I launch CS (with the -netconport 2121 launch option), this error message appears
Linha de comandos 23_03_2021 12_20_39

Question: May the csctl script be located remotly

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.

Team Fortress 2 over telnet possible?

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!

Error when running csctl.py

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.