Personal fork of PylaAI — a Brawl Stars bot. Extended with behavior trees, reinforcement learning, overlay, and a bunch of other stuff.
- Install Python 3.11 (tested with 3.11.9)
pip install -r requirements.txt- If you have an Nvidia GPU, install the GPU version of PyTorch for better performance: https://pytorch.org/get-started/locally/ (you'll need CUDA + cuDNN)
python main.py
This is the localhost version — API features like login, online stats, auto-updating icons/models are disabled.
You can change the api base url in utils.py if you want to hook it up to something.
python -m pytest tests/ -v
Use rl_monitor.py to inspect PPO progress and verification metrics:
python rl_monitor.py(auto mode)python rl_monitor.py --mode lenientpython rl_monitor.py --mode strictpython rl_monitor.py --mode auto --jsonpython rl_monitor.py --mode strict --exit-codepython rl_monitor.py --mode strict --exit-code --fail-on-warnpython rl_monitor.py --mode auto --exit-code --fail-on-insufficient-datapowershell -ExecutionPolicy Bypass -File .\scripts\run_survival_v2_smoke.ps1 -Mode autopowershell -ExecutionPolicy Bypass -File .\scripts\run_survival_v2_smoke.ps1 -Mode strict -FailOnWarnpowershell -ExecutionPolicy Bypass -File .\scripts\run_survival_v2_smoke.ps1 -Mode auto -FailOnInsufficientData
Mode behavior:
auto: useslenientbelow 3000 episodes, thenstrictlenient: easier thresholds for early trainingstrict: tighter thresholds for stable long-run evaluation
Verification output can show INSUFFICIENT_DATA while episode/sample windows are still too small.
Use --json for machine-readable output in scripts/dashboards.
Use --exit-code to return process code 1 only when verification overall is FAIL (0 otherwise).
Use --fail-on-warn together with --exit-code to treat WARN as failing too.
Use --fail-on-insufficient-data together with --exit-code to treat INSUFFICIENT_DATA as failing too.
run_survival_v2_smoke.ps1 combines text + JSON monitor checks and returns the monitor exit code.
CC BY-NC 4.0 — don't sell it.
This project is built on top of PylaAI. Thanks to everyone who made the foundation for this:
- Iyordanov — original dev
- AngelFire (@angelfirela) — original dev, BrawlStarsBotMaking
- myddxyz (@3xq9) — fork pylamydd
And all the other contributors who helped along the way.
Upstream repos: