Last active
October 14, 2021 05:24
-
-
Save GoingMyWay/ba186bde37716d64c08a5bfc656e270a to your computer and use it in GitHub Desktop.
install StarCraft II on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -z "$EXP_DIR" ] | |
then | |
EXP_DIR=/home/docker/ | |
fi | |
echo "EXP_DIR: $EXP_DIR" | |
cd $EXP_DIR | |
# mkdir 3rdparty | |
# cd 3rdparty | |
export SC2PATH=`pwd`'/StarCraftII' | |
echo 'SC2PATH is set to '$SC2PATH | |
if [ ! -d $SC2PATH ]; then | |
echo 'StarCraftII is not installed. Installing now ...'; | |
wget http://blzdistsc2-a.akamaihd.net/Linux/SC2.4.10.zip | |
unzip -P iagreetotheeula SC2.4.10.zip | |
rm -rf SC2.4.10.zip | |
else | |
echo 'StarCraftII is already installed.' | |
fi | |
echo 'Adding SMAC maps.' | |
MAP_DIR="$SC2PATH/Maps/" | |
echo 'MAP_DIR is set to '$MAP_DIR | |
if [ ! -d $MAP_DIR ]; then | |
mkdir -p $MAP_DIR | |
fi | |
wget https://github.com/oxwhirl/smac/releases/download/v0.1-beta1/SMAC_Maps.zip | |
unzip SMAC_Maps.zip | |
mv SMAC_Maps $MAP_DIR | |
rm -rf SMAC_Maps.zip | |
echo 'StarCraft II and SMAC are installed.' |
wget https://gist.githubusercontent.com/GoingMyWay/ba186bde37716d64c08a5bfc656e270a/raw/ac7d1e7e4297b112aa9a43761fa5fd35c616e928/install_sc2.sh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Modified from: https://github.com/oxwhirl/pymarl/blob/master/install_sc2.sh