This arena client has been superseded by the sc2-ai-match-controller
Use the local-play-bootstrap instead.
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.pyfile inarenaclient/configsand override any information found indefault_local_config.pythat 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_configtodefault_local_config. - Copy the
arenaclient/example_matchesfile into thearenaclient/configsfolder and rename it tomatches. - Open your new
matchesfile in a text editor and changeAutomatonLEto the name of any map found in the root for yourStarCraft II/Maps/folder. - Copy the
basic_botandloser_botfolders fromaiarena-test-botsintoarenaclient/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.