Developer Setup - kelltom/OS-Bot-COLOR GitHub Wiki
Windows
- Install Python 3.10 (newer versions are not compatible)
- Clone/download this repository
- Open the project folder in your editor/IDE
- (NOTE) It is highly recommended that you use Visual Studio Code. Some IDEs (like Pycharm) are known to have import pathing issues with this project.
- Open the repository folder in a terminal window
- (NOTE) If you downloaded OSBC as a .zip file, be aware there may be a duplicate container folder
- Create a virtual environment
py -3.10 -m venv env - Activate the newly created virtual environment
.\env\Scripts\activate - Install the dependencies
pip install -r requirements.txt
- Run
./src/OSBC.py*(may need to restart IDE for it to recognize installed dependencies)
Linux
Please only use Linux if you know what you're doing. OSBC has only been tested in Ubuntu v22.04.
- Make sure your GNOME display server is running Xorg, not Wayland. See here for instructions. If you don't see the option to switch to Xorg on the Ubuntu login page, try the following:
- Run
sudo apt-get install xorg-dev - Open a file called
/etc/gdm3/custom.conf- Uncomment the line
#WaylandEnable=false - Save the file and run
sudo systemctl restart gdm3
- Uncomment the line
- Run
- Set up RuneLite:
- Download the AppImage file from RuneLite.net
- Install FUSE
sudo apt install fuse - Modify the permissions of the file
chmod 764 <path-tofile>/RuneLite.AppImage
- Run the following commands:
sudo apt updatesudo apt install build-essentialsudo apt install python3-dev(ensure Python 3.10 is installed)sudo apt install python3-tk
- Clone the repository and navigate to the project folder in your terminal. Run the following commands:
- Create a virtual environment
python3 -m venv env - Activate the virtual environment
. env/bin/activate - Install the dependencies
pip install -r requirements.txt
- Create a virtual environment
- Run
./src/OSBC.py- If you're getting errors involving
mss, retry step 1.
- If you're getting errors involving
Note:
OSBC currently does not work well with scaled-resolution screens. Please set your resolution scaling to 100% in your operating system settings.