Skip to content

Commit

Permalink
- added instructions for setting up sc-docker in Windows PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao Pan committed Dec 16, 2018
1 parent 28b3d63 commit f93262a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -49,3 +49,4 @@ scripts/py36to34.py

# VSCode
.vscode/
docker/.Rhistory
14 changes: 14 additions & 0 deletions docker/Setup in PowerShell -- instructions.md
@@ -0,0 +1,14 @@
How to set up ByteKeeper's sc-docker in Windows PowerShell. Step-by-step instructions:

0) Download jre-8u192-windows-i586.tar.gz and move it to the `sc-docker-master\docker` folder
https://www.oracle.com/technetwork/es/java/javase/downloads/jre8-downloads-2133155.html?printOnly=1
Use of openjdk is not advised here as it is much slower.
1) Open the file `sc-docker-master\docker\build_images.ps1` and do all commands listed there in PowerShell.
You may want to run PowerShell in administrator mode.
2) Do `pip install wheel`
3) Do `py setup.py bdist_wheel` or `python3 setup.py bdist_wheel` depending on how your Python is setup.
4) Do `pip3 install dist/scbw-1.0.4-py3-none-any.whl`
5) When launching a game, append `--docker_image starcraft:game`
An example command would look like this:
`scbw.play --bots "Hao Pan" "Martin Rooijackers" --headless --timeout 630 --read_overwrite --game_speed 0 --map "sscai/(4)Fighting Spirit.scx" --docker_image starcraft:game`
If you don't do this, the original image, `starcraft:game-1.0.4`, will be used.

0 comments on commit f93262a

Please sign in to comment.