Warning
Important update -- read below:
After leaving this project for two years, I'm teaming up with a friend of mine who has knowledge
in injecting code into CS and the game's web API to further develop this application.
In the future, this code will not use Apache Cordova and image scanning to achieve its purpose.
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.