mirror of
https://github.com/jcreek/Sarpy.git
synced 2026-07-12 18:53:44 +00:00
b404f5b370ed92e47e4b3422651abe24ecee735a
Sarpy
Prerequisites
- Install Python version 3.9.0
- Install Visual C++ 14.0 or greater from https://visualstudio.microsoft.com/visual-cpp-build-tools/
- Run
pip install setuptools==65.5.0 pip==21as gym 0.21 installation is broken with more recent versions - You can now install the packages manually or using the requirements.txt file. To do the latter, run
pip3 install -r requirements.txt
Manual package installation
You will likely see errors during installations here. Largely these should be ignored, just try running things after installing, then work out manually what is broken. There are lots of deprecated or broken packages involved in running rlgym unfortunately, as it does not support the newer version 2 of stable baselines 3 that uses gymnasium instead of gym.
- Run
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 - Run
pip3 install "stable-baselines3[extra]==1.8.0" - Run
pip3 install "gym[box2d]"
Other useful commands
tensorboard --logdir=logs in a new terminal to load the web UI to track agent training.
pip3 freeze > requirements.txt to save current packages installed into an updated requirements.txt file.
Training
Run the python file rl-training.py
Using the bot
Within the bot folder, run the python file run_gui.py
Description
Languages
Python
84.6%
PowerShell
6.8%
Roff
4.5%
Batchfile
2.3%
C
1.8%