Play On Linux Starcraft 2

Posted on  by

Starcraft is not available for Linux but there are plenty of alternatives that runs on Linux with similar functionality. The most popular Linux alternative is 0 A.D., which is both free and Open Source. If that doesn't suit you, our users have ranked 24 alternatives to Starcraft and 13 are available for Linux so hopefully you can find a. If you are using Linux and want to play StarCraft II, it is possible to install it through Wine or CrossOver. Jeff Hoogland of Thoughts on Technology blog was able to install and play StarCraft 2 on his Ubuntu 10.04 desktop without problems. He did it by installing Wine 1.2 and did a few configuration tweaks.

Latest version

Released:

A StarCraft II bot gym env library over python-sc2

Project description

This library provide python-sc2 as a gym environment.So you benefits both from the sc2.BotAI and gym.Env classes to train your bot using existing algorithms.

This library (currently) covers only the raw scripted interface. At this time I don't intend to add support for graphics-based interfaces.

Documentation

class Sc2Env(gym.Env)

def init(self, map, bot_race, get_opponents, **kwargs):

  • map str upper camel case name of an installed map (ex: KingsCoveLE)

  • bot_race str race of the bot (ex: Zerg)

  • get_opponents Callable the opponents of the bot

    • returns a list of AbstractPlayer (BotAI, Player...)
  • initializer CallableCalled on start, must set BotAI.action_space and BotAI.observation_space.The defined spaces must inherit from gym.spaces.space.Space.

    example:

    ''pythondef initializer(bot):bot.action_space = gym.spaces.Box(5,10)bot.observation_space = gym.spaces.Box(3,11)''

  • observer: asyncCallableCalled on step takes a sc2.BotAI instance, must return an observation and a reward.An observation is a numpy.array matching the observation space and a reward is number.

  • actuator: asyncCallableCalled on step, takes a sc2.BotAI instance and an action.An action is a numpy.array matching the action space.Used to run actions using in sc2.

  • **kwargs any sc2.run_game extra arguments

More on sc2.BotAI here.

Installation

By installing this library you agree to be bound by the terms of the AI and Machine Learning License.

You'll need Python 3.6 or newer.

How To Install Starcraft 2

You'll also need an StarCraft II executable. If you are running Windows or macOS, just install the normal SC2 from blizzard app. The free starter edition works too.. Linux users get the best experience by installing the Windows version of StarCraft II with Wine. Linux user can also use the Linux binary, but it's headless so you cannot actually see the game.

You probably want some maps too. Official map downloads are available from Blizzard/s2client-proto. Notice: the map files are to be extracted into subdirectories of the install-dir/Maps directory.

Running

After installing the library, a StarCraft II executable, and some maps, you're ready to get started. Look at the dummy bot example!

If you installed StarCraft II on Linux with Wine, set the SC2PF environment variable to WineLinux:

Release historyRelease notifications RSS feed

0.11.1.2

0.11.1.1

0.11.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Play on linux starcraft 2.4
Files for sc2-env, version 0.11.1.2
Filename, sizeFile typePython versionUpload dateHashes
Filename, size sc2_env-0.11.1.2-py3-none-any.whl (89.9 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size sc2-env-0.11.1.2.tar.gz (78.4 kB) File type Source Python version None Upload dateHashes
Close

Hashes for sc2_env-0.11.1.2-py3-none-any.whl

Hashes for sc2_env-0.11.1.2-py3-none-any.whl
AlgorithmHash digest
SHA256ed289b6cdb6d22e437a98eb6989ace605aef7a0a14492260b906851fe7b71a4b
MD5fbe2eb6eb35a5b0015fc8d891406080b
BLAKE2-25687842cb5795f110834009d75886e0df5076987ffc660dda2baefdf01acf8d229

Play Starcraft On Windows 10

Close

Hashes for sc2-env-0.11.1.2.tar.gz

Play On Linux Starcraft 2007

Hashes for sc2-env-0.11.1.2.tar.gz
AlgorithmHash digest
SHA2567c09d990e965d9262aa47b12117187ab9bf7f77f5869f399ed774bdf0ae90484
MD5827c43832b1f5fa837ae12ac0ecd2229
BLAKE2-256657729954ccd79868c61ee17fc551acf341c30175a17939401d30b72e87c2f96
  • Genre: Real-time strategy
  • Platform: Windows
  • Developer: Blizzard Entertainment
  • Publisher: Blizzard Entertainment
  • Release year: 2010
  • Website: battle.net/sc2

1962 users have this game

See also:
WineHQ AppDB

Installer modification is restricted

Play On Linux Starcraft 2.4

  • Install
    WineWINED3D+ESYNC version last published 11 months, 1 week ago

    Platinum: installs and runs flawlessly

    Starcraft II - DX9 to OpenGL - 64 bit - Esync

    **IMPORTANT: INSTALL THE DEPENDENCIES FIRST**
    See https://github.com/lutris/lutris/wiki/Game:-Blizzard-App

    **NOTES**
    - 'Displaymode 1' is set in Blizzard App for Fullscreen Windowed
    - Use Esync 3.15 wine build to take advantage of working PBA.

  • Install

    **CONFIGURE AND INSTALL THE DEPENDENCIES FIRST**
    Instructions for DXVK support: https://github.com/lutris/lutris/wiki/How-to:-DXVK
    Instructions for proper functionality of Battle.Net (+ common problems) https://github.com/lutris/lutris/wiki/Game:-Blizzard-App

  • Install
    WineDXVK + d3dcompiler_42 version last published 5 months ago , last edit made 2 months ago

    **CONFIGURE AND INSTALL THE DEPENDENCIES FIRST** Instructions for DXVK support: https://github.com/lutris/docs/blob/master/HowToDXVK.md Instructions for proper functionality of Battle.Net (+ common problems) https://github.com/lutris/docs/blob/master/Battle.Net.md This is a fork of the main DXVK install script with the correct d3d compiler for SC2 added.

    d3dcompiler_42 is necessary to run the game properly with DXVK's dx9 implementation. You may experience crashes with the error message 'e_gfxErrorShaderCompilerFailed' and graphical glitches without it.

Play Starcraft 2 Offline

  • Install

    This installer is a draft. It hasn't been reviewed and might not be finished.

    Starcraft DX9 Installer with a direct link to the installer.

  • Install

    Updated download link for Battle.net app

  • Install
    WineDXVK and overwolf version last published 8 months, 1 week ago , last edit made 8 months, 1 week ago

Report any problem you might encounter with the installer. You can also report here outdated installers. If you have problems installing or running the game, don't forget to specify your distribution, (+ version and architecture), your graphics chipset model and the driver used.