forked from uoe-agents/epymarl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_sc2.sh
executable file
·42 lines (32 loc) · 885 Bytes
/
install_sc2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Install SC2 and add the custom maps
if [ -z "$EXP_DIR" ]
then
EXP_DIR=~
fi
echo "EXP_DIR: $EXP_DIR"
cd $EXP_DIR/pymarl
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.6.2.69232.zip
unzip -P iagreetotheeula SC2.4.6.2.69232.zip
rm -rf SC2.4.6.2.69232.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
cd ..
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.'