- write results to a run file, probably in replays directory
The linux steps are probably essentially the same, I just can't guarantee they'd work because I haven't tested it.
A recursive clone is required in order to download all the test bots.
git clone --recursive https://github.com/aiarena/aiarena-client.git
If you already have the repo cloned but didn't do a recursive clone, run the following:
git submodule update --init --recursive
pip install -r requirements.txt
Run the following code in the root of the repo:
python setup.py install
There are a few things you need to change inside the folders:
- In
arenaclient/configs/default_local_config.py
, change line 74 to import from relative path:
try:
from .local_config import * # Does not have the "." by default
except ImportError as e:
...
- Create a
local_config.py
file inarenaclient/configs
and override any information found indefault_local_config.py
that do no match your environment. For example:
PYTHON='python' # Command used to run Python in your terminal, might be "python3" for some people.
SC2_HOME='C:/Games/StarCraft II' # Path to your SC2 folder
- In
arenaclient/__main__.py
, changedefault_config
todefault_local_config
. - Copy the
arenaclient/example_matches
file into thearenaclient/configs
folder and rename it tomatches
. - Open your new
matches
file in a text editor and changeAutomatonLE
to the name of any map found in the root for yourStarCraft II/Maps/
folder. - Copy the
basic_bot
andloser_bot
folders fromaiarena-test-bots
intoarenaclient/configs/bots
.
Then you can start the server with:
python -m arenaclient -f
This will run the matches listed in the arenaclient/configs/matches
file, each for 5 times by default (override this using ROUNDS_PER_RUN
in local_config.py
). Replays will be saved in arenaclient/configs/replays/
.
Note: If you receive bot initialization errors, you likely need to install bot dependencies. Error logs can typically be found inside each bot folder such as arenaclient/configs/bots/basic_bot/data/stderr.log
Copyright (c) 2019
Licensed under the GPLv3 license.