BlackCompany

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2025 License: AGPL-3.0 Imports: 21 Imported by: 0

README

BlackCompany

Go Go Report Card Go Reference Wakapi

BlackCompany is a StarCraft II bot written in Go.

Dependencies

This bot is developed on Linux.

StarCraft II
  1. Install Steam
  2. Download Battle.net-Setup.exe
  3. Add Battle.net-Setup.exe as a non-Steam game
  4. In Steam, right click on Battle.net-Setup.exe, Properties... and set Launch options to WINE_SIMULATE_WRITECOPY=1 %command%
  5. Go to Compatibility and check Force the use of a specific Steam Play compatibility tool
  6. Launch Battle.net-Setup.exe via Steam and install it at the default location
  7. Go back to Battle.net-Setup.exe's properties and change the Target to its installed location, like $HOME/.steam/debian-installation/steamapps/compatdata/3430940832/pfx/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe

You can now launch Battle.net as a non-Steam game and play StarCraft II.

Environment variables

When PROTON_PATH is set, the bot will use Proton to launch the game. Otherwise, it will fallback to sl2's defaults.

Fill in the .env.local file. Here's an example:

PROTON_PATH="$HOME/.steam/root/steamapps/common/Proton - Experimental/proton"
SC2PATH="$HOME/.steam/debian-installation/steamapps/compatdata/3430940832/pfx/drive_c/Program Files (x86)/StarCraft II"
STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.steam/debian-installation"
STEAM_COMPAT_DATA_PATH="$HOME/.steam/debian-installation/steamapps/compatdata/3430940832"
Maps

Go to Map Packs, download all the maps and extract them in $SC2PATH/Maps using the password iagreetotheeula.

Run

There's a Makefile to help you run the bot.

# Runs the game in real-time
make slow

# Runs the game as fast as possible
make fast

Resources

These resources massively helped me kickstart bot development.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
wheel contains code that reinvents the wheel.
wheel contains code that reinvents the wheel.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL