This repository contains a simple example of exploring game balance using 0 A.D. More detail can be found in the demo video!
First, we will need to start 0 AD with our custom scenarios (available in a mod here). Then, we can start 0 AD with the RL interface (and the mods):
pyrogenesis --rl-interface=127.0.0.1:6000 --mod=rl-scenarios --mod=public
Next, we will install the required Python dependencies:
python -m pip install -r requirements.txt
You may need to install zero_ad
manually from here.
Finally, we can run the example with:
python find_speed_range.py
- 0 AD w/ game balance support. The game balancing features require an endpoint which did not make it in before the feature freeze. The linked game version is 0.24b with the required patch for game balancing support. As soon as 0.25 is released, this should no longer be an issue! :)
- Scenarios, environments, and utilities for RL in 0 AD
- Player replay data retrieved from the 0 A.D. forums