Warning
Important update -- read below:
This version of this project has been completely abandoned, because it uses image recognition to detect different game states instead of GSI, and fixing this project would be harder than just creating a new one.
I'm working on a new version with an updated mobile UI, GSI, easier installation and possibly a play store release of the client application.
companion2 allows you to see what is happening in CS:2, remotely start or stop matchmaking or remotely accept a match without being at your computer.
The remote match accept feature is probably the most useful. Imagine going to get some water, and you can accept the match while you are filling your bottle outside.
If you don't have Python installed already, install it from the official Python website. The application was tested with Python 3.12.5.
Assuming you have git, you can use
git clone https://github.com/cablesalty/companion2
Alternatively, you can download the project as a .zip file and extract it.
You need to install some packages first. Use this command:
pip install -r requirements.txt
You can launch the server using this command:
python main.py
This will create a console window hosting the server and information on how to connect your phone. You can minimize the window, but closing it will stop the server.
When you launch the server, it will display something like this:
---------------------------------------------
You can access companion2 from your phone by entering this
into your preferred browser:
http://192.168.0.100:5000
---------------------------------------------
Enter the URL into your preferred browser on your phone.
Here are some common issues and fixes.
Make sure your phone and PC is on the same network, otherwise it will not work. Also, make sure no other app is using port 5000.
Make sure all the dependencies have been installed successfully and no other application is using port 5000.
Disclaimer: This project is not affiliated with Valve or Counter-Strike.