In the official installation tutorial , it is installed with two machines. StarCraft is installed on Windows. Linux based on ZeroMQ communication to obtain Windows StarCraft data and used for processing. This article is based on the installation of this article and the official documentation. There are some differences.
1. Install StarCraft (1.16.1):
Download the file (zip) and unzip it to any directory. The unzipped directory is recorded as STARCRAFT
. Run the setup.exe
file in the current directory . If you need to verify the version information, you can download this software (http://ftp.blizzard.com/pub/broodwar/patches/PC/BW-1161.exe) to ensure that your version of Brood War is 1.16.1 .
Install BWAPI:
Find it in the following link, and then double-click to run the installation. The installation directory is selected under the previous STARCRAFT
directory (after you select it, you will add a folder yourself, the final path is STARCRAFT\BWAPI
). After the installation is complete, STARCRAFT
the following two files are added to the directory: BWAPI
and bwapi-data
.
3.TorchCraft, common prerequisites
Download the latest version of Release :
- Copy
TorchCraft/config/bwapi.ini
inSTARCRAFT/bwapi-data/bwapi.ini
. - Copy
TorchCraft/config/torchcraft.ini
inSTARCRAFT/bwapi-data/torchcraft.ini
. - Copy
TorchCraft/BWEnv/bin/*.dll
intoSTARCRAFT/
- Copy
TorchCraft/maps/*
intoSTARCRAFT/Maps/BroodWar
I didn't find TorchCraft/BWEnv
this folder here , so I skipped it and didn't get it.
TorchCraft AIModule (DLL) for users:
- Extract BWEnv.dll from the latest archive in the release page and put it in $STARCRAFT
- Run
STARCRAFT/BWAPI/ChaosLauncher/Chaoslauncher-MultiInstance.exe
as administrator. - Check the “RELEASE” box from BWAPI.
- Click Start.
There is one in the lower left corner start
, just click it, I do n’t show it here.
This screen is normal. There is no connection Client
end.
4. Install MinGW-w64:
5.Anso Microsoft Visual Studio 2017
6. Compile Zeromq
TorchCraft
Compiled and installed, only used libzmq.dll
and zmq.h
the official has been given windows
under the Stable Release 4.0.4 , you can download and install on their own. TorchCraft
In the distribution zip
package , it is available in the bin
directory, libzmq.dll
and it should be available directly.
7. Compile Zstd
TorchCraft
Compile and install only uses libzstd.dll
and zstd.h
; have been given official windows
release in the Releases , you can download and install on their own.
8. Modify the default compiler configuration of python distutils to MinGW-w64
The original text of the subsequent steps are very detailed .
9. The results are as follows:
My WeChat public account name : Deep learning advanced intelligent decision
- making WeChat
public account ID : MultiAgent1024 public account introduction : mainly research deep learning, reinforcement learning, machine games and other related content! Looking forward to your attention, welcome to learn and exchange progress together!