glenndehaan / csgo-rcon-nodejs

A web panel to control a CS:GO server
MIT License
48 stars 8 forks source link

question: connect to local server #9

Open cyberhck opened 3 years ago

cyberhck commented 3 years ago

So I'm practicing locally, and I'd like to use this to show on my another monitor (just for example) How do I find my rcon address/password for when I'm playing by myself? (not connected to a server)

glenndehaan commented 3 years ago

As far as I am know when joining a local session with bots CSGO will not startup a fully featured server and therefore you are not able to connect to it with rcon. My best solution for this problem would be to startup a server on the same machine as you run CSGO and then use localhost or 127.0.0.1 as the address. This also counts for CSGO itself you essentially host a server for yourself at that moment.

glenndehaan commented 3 years ago

By question would be: Why? This panel was intended to run basic matches on for example a lan party. I don't know why you would need this panel if you are only playing locally.

cyberhck commented 3 years ago

So what I want to do at the end is modify this project a little bit, and track my practice progress, basically I want to setup a practice routine, which will remind me everyday, As a user of application, I will be able to setup something like: aim-botz 10 mins, fast reflex 15 mins, deathmatch 2 match etc.

Once I have this setup, I just want to click on start routine or even start a map by myself, and just click on a map button, which will execute a few things: mp_roundtime <n>; mp_restartgame 5 then it'd also show statistics on the panel if I'm going a little slower than usual (I have 2 monitors), and once the round is finished (time is over), I'd save this on a time series db and show a chart.

I basically like data, and if I see that I'm climbing in chart over few weeks, that'll motivate me to continue practicing, of course this is for personal use only, but I'd be okay with hosting this somewhere so people can use it.

(btw, if you have more inputs on how to start this kind of server, how to calculate number of enemies killed etc, I'd appreciate), currently there's a game state integration from what I understand, but I'd like to know more, just starting to explore these APIs.

How do I start a cs:go server? Can it be done through steam? Or is that a entirely different application? I'm working on linux, I saw a docker image, but will that be able to start workshop maps? How about matchmaking deathmatch session? Is there really no api access for cs:go client side? Like get kills, change maps, execute commands, etc?