How to get StarCraft 1.18+ running on Wine

Install the latest Wine Staging

The current staging has patches in it to make running StarCraft possible. You can install 2.14 staging from:

https://wine-staging.com/installation.html

Run the installer inside of a new Wine prefix like $HOME/sc-prefix and install the game there. Do not start the game after the installer is done. Hit x to close the installer when it’s finished.

Before you run it, run wineconfig on your StarCraft prefix. You can use the the system version of wineconfig if you’d like. Select Windows 2003 version. This makes StarCraft run, Windows XP and Windows 10 don’t seem to work on my machine.

Then make sure you have the correct dependencies

$ sudo dpkg --add-architecture i386

$ sudo apt-get update

$ sudo apt-get install libgl1-mesa-glx:i386 libasound2:i386 libasound2-plugins:i386 libc6:i386 libncurses5:i386 libstdc++6:i386 libxtst6:i386 libldap-2.4-2:i386 libfreetype6:i386

You can create a shortcut like:

env WINEPREFIX="$HOME/sc-prefix" wine StarCraft.exe

that runs inside the StarCraft folder. That way you can run using a shortcut instead of having to manually open a terminal every time.

If you don’t want the launcher to launch modify the shortcut to

env WINEPREFIX="$HOME/sc-prefix" wine StarCraft.exe -launch

Issues

If you encounter issues with StarCraft, there are two entries in Wine DB for the latest versions:

SD Remastered

You can check each issue for workarounds. I list some of them here.

Blizzard launcher

If Blizzard launcher has buttons you can’t click or see, change the version of the launcher to Windows 2003. It’s the Battle.net.exe executable inside of Blizzard App folder (not inside the StarCraft folder itself).

Slow Menus

When running Ubuntu 17.04 I encountered an issue with Battle.net menus being slow. I downgraded to 16.04 and the issue mostly disappeared. Sometimes I have to restart the game to fix it again, but that’s not as bad as having to wait for more than 30 seconds for each menu.

Game Stuck Under Overlay

I’ve had the game stuck in a dark overlay when I pressed F10 to bring up the menu. I was able to get out of it by pressing Alt+Q during a game. This brings up the quit game modal, so I could select cancel. Selecting cancel brought me back to the game.

Performance in StarCraft: Remastered

My computer only could do 106 FPS in Remastered and 300 in SD. When I loaded up OBS, I could only hold barely above 60 FPS. OBS itself could only hold a pitiful 24 FPS.

What I did was downgrade to kernel version 4.04 and for some reason I can get 300+ FPS in Remastered and stream at 1440p in OBS at 60 FPS (although that requires too much bitrate for Twitch). Your mileage may vary. I’m not even using AMDGPU Pro drivers (I downgraded to install them and found out I didn’t need to).

Lag in ladder games

Make sure to forward port 6112 on TCP and UDP.

Real Time Lighting

Currently StarCraft doesn’t detect that I have more than 2.2GB of VRAM, so this feature can’t be enabled from inside the game.

Appendix: How to Install from source

Use https://github.com/wine-compholio/wine-patched so you don’t have to apply staging patches manually.

$ git clone https://github.com/wine-compholio/wine-patched

and then follow this guide to compile it
https://wiki.winehq.org/Building_Biarch_Wine_On_Ubuntu

Note that you don’t need to run the `clean` command on a freshly created folder.

After you finish building the 32 bit Wine you don’t need to install it system-wide, just make the shortcut point to the correct version of Wine.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s