BurnySc2 / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
509 stars 157 forks source link

How to reset the default game path? #142

Closed iwahova closed 1 year ago

iwahova commented 2 years ago

Hi I just begun to learn to build a bot and I found the default game path is "C:\Program Files (x86)\StarCraft II\Versions\SC2_x64.exe" in this library. The problem is I don't get enough space for that game in Drive C. How can I reset the path used? Also, in latest versions of StarCraft2, there is an additional "Base87702" file before the exe files in "Versions". How can I fix that?

Andrew-Pynch commented 2 years ago

Dang I'll pull out my old windows rig and see if I can figure anything out :grimacing:

BurnySc2 commented 1 year ago

You should be able to change the path the library tries to find SC2 by setting/changing the environment variable:

SC2PATH='/home/burny/Games/battlenet/drive_c/Program Files (x86)/StarCraft II/'