Important
VCMI requires data files from the original "Heroes 3: Shadow of Death" or
"Heroes 3: Complete" editions.
Make sure you have access to those files
before you proceed.
The setup guide below is tested with Python 3.10.12 on Ubuntu 22.04.
Please refer to the Checkout code instructions for MacOS.
Please follow the instructions in this guide.
Custom-made libraries that "connect" VCMI with the gym env:
$ cd "$VCMIGYM/vcmi_gym/connectors"
# TODO: libboost-all-dev has libgfortran5 dependency
# ...which creeps as a libtorch dependency during libtorch builds
# must find a less-generic boost package to install
$ sudo apt install libboost-all-dev
$ cmake -S . -B rel -Wno-dev \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_EXPORT_COMPILE_COMMANDS=0
$ cmake --build rel/
Please refer to the Python env and deps instructions for MacOS.
Auto-generated maps for the purposes of training combat AIs must be symlinked in order to make them visible in VCMI:
$ ln -s "$VCMIGYM/maps/gym" "${XDG_DATA_HOME:-$HOME/.local/share}/vcmi/Maps/gym"
Please refer to the Manual test instructions for MacOS.