These are instructions for using CSKnow bots: running a server that you can play against. If you want to modify bot logic, please see my dev instructions for how to setup the complete development environment.
These instructions assume Ubuntu 22.04 OS with sufficient space to install a CSGO server (~30 GB). If your personal computer doesn't match these specifications, I recommend creating a machine on AWS using my guide.
These instructions require creating a GSLT token. Make sure to follow these instructions on a server you control. Otherwise, other people will be able to use your Steam account through your GSLT token.
- Checkout the CSKnow repo with Git
- Open a terminal in the CSKnow
demo_generator
directory - Install docker: Run
docker_setup.sh
.- Note: run this script as your normal user, it will request sudo access when necessary
- Build the docker image: Run
build.sh
- Create the GSLT that registers the server under your Steam account
- Go to http://steamcommunity.com/dev/managegameservers and create a GSLT for App ID 730
- Save this GSLT in the
private
folder by- Copying
private/.gslt_default
toprivate/.gslt
- Note: please use these exact names. I've chosen them so that Git ignores these files and they always stay local on your server.
- Replacing the contents of
private/.gslt
with your GSLT.
- Copying
- Run the server inside the docker image: Run
./start_d2.sh
- You can connect to the CSGO server by typing
connect IP_ADDRESS
in CSGO's console, where IP_ADDRESS is the IP address of the server.
- You can connect to the CSGO server by typing
- Stop the server from a different terminal on the same computer: Run
./stop.sh
from thedemo_generator
folder.