-
Notifications
You must be signed in to change notification settings - Fork 0
Environment
Environment contain running environment and building environment
Attention: Modifying in C++ requires recompiling the file, but modifying in python does not require recompiling
There are two ways to run Sparcraft-Synthesizer
-
Use the well-set singularity image and run with it (Recommend)
-
Install the singularity in your Linux, here is the tutorial
-
go to the
Sparcraft/scripts
folder -
run the command
singularity exec project.sif python3 main.py {argument}
the detail of the argument can see the Argument section
-
-
Run on Ubuntu Environment or WSL2 (Ubuntu)
-
Install these two libraries (Please must use Ubuntu here):
libsdl2-dev
libsdl2-image-dev
-
go to the
Sparcraft/scripts
folder -
run the command
python3 main.py {argument}
the detail of the argument can see the Argument section
-
Compilation Instructions:
-
Install the required libraries
libsdl2-dev
libsdl2-image-dev
-
Clone the BWAPI GitHub repository somewhere on your system
git clone https://github.com/bwapi/bwapi.git
-
Edit the Makefile to point to the directory that you cloned
BWAPI
BWAPI_DIR=/where_you_cloned_to/bwapi/bwapi
Attention: it isbwapi/bwapi
here -
If your
BWAPI_DIR
doesn't contain the filesvnrev.h
, you need to generate it using the vbs script in that dir (Note: this may have to be done in windows, but you can just copy the generated .h files to Linux and it will work) -
Run
make
in the SparCraft directory, the binary will go to theSparCraft/bin
directory