Howto: Starcraft II under Wine (Ubuntu Linux)

phyrex1an

Staff Member and irregular helper
Staff member
Reaction score
446
This is a short tutorial on how to run the Starcraft II Beta under Wine. The tutorial assumes that you run Ubuntu 9.10, but it can be modified to work with other distributions as well. The Beta installer works just fine under the latest development release of wine (1.1.40) but sc2 will crash on the login screen. Because of this we'll have to download the sources for wine, patch them manually and compile. We'll do all this through the terminal (Alt + F2, type gnome-terminal + ENTER), just copy and paste the commands I give here should work flawlessly. Sometimes I post links with more info, if a command doesn't work you might want to follow that link and see if it contains help on your issue. Please mention your problem and solution and I'll update the Howto accordingly.

First we need to install git since that is needed to fetch the wine sources:
Code:
sudo aptitude install git
Next step is to download the latest wine code to a directory and change to that.
Code:
git clone git://source.winehq.org/git/wine.git ~/wine-git && cd ~/wine-git
More info: http://wiki.winehq.org/GitWine?acti...head-f90aa63f963ccd6f1b34f59e4fdaafaecc72ad18

Next we have to patch wine with a fix for the login screen crash:
Code:
wget -q -O - http://phyrex1an.net/sc2-login.diff | patch -p1
This will download a patch from my server and apply it to the wine sources. The patch isn't written by me but only packaged in a format that the patch program supports. Original can be found here: http://www.winehq.org/pipermail/wine-patches/2010-March/085817.html
More info: http://wiki.winehq.org/Patching

We're now almost ready to start compiling, but first we need all build dependencies and some build tools:
Code:
sudo aptitude install build-essential
Code:
sudo apt-get build-dep wine
We can now start the build process:
Code:
tools/make_requests && ./configure && make depend && make
And finally install it:
Code:
sudo make install
Restart wineserver and you should now be able to login into bnet!
Code:
wineserver -k
However, there are still some stuff to do before the games run smoothly:

Fixing forever loading times
Starting a game takes forever with certain settings in wine. To fix this you have to change the emulator mode to either Vista or Windows 7:
Code:
winecfg
Under the Applications tab change the Windows Version to either Vista or Windows 7.

Fixing sound
Starcraft II uses the mmdevapi which is only partly implemented in Wine, disabling that library will enable the fallback audio system that works perfectly (I'm unsure if this is a wine fallback or a sc2 one, regardless I haven't noticed any problems with it)
Code:
winecfg
Press Libraries tab, add a new override for mmdevapi and edit it to Disabled.
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
607
Good to know for me :) now only if I got the beta key invite :eek:
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
184
They call it Wine, "whine" because that's what people do when they realize what pain in the ass it is to do the most simple shit.
 

phyrex1an

Staff Member and irregular helper
Staff member
Reaction score
446
It's a Windows compatibility layer after all. Whining is a sign that they are becoming more compatible.
</feeding-the-trolls>

On a more related note, some discoveries:
Changing to native direct3d doesn't seem to improve performance or remove any of the remaining graphic glitches.
Restarting sc2 after each pvp game reduces the number of crashes to 0.
The patch didn't get into the wine tree in time to todays release (1.1.41), first attempt was rejected.
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615

xPheRe

New Member
Reaction score
43
Thanks!!

I found this post while searching how to improve WINE performance on my system.
I'm also the proud owner of a SC2 beta key, but can't play at home because it doesn't run under Ubuntu.

A coincidence? I think it's not :) Thank you, phyrex1an
Kind regards
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,262
I do hope this should be stickied for future reference and after SC2 had been released.
 

Sevion

The DIY Ninja
Reaction score
424
I like the credit that winehq gave Phyrex <3 The only reference I can find is a link for a patch download. Lol.
 

livelife686

New Member
Reaction score
0
Help!

Help me, I can't get in here: git clone git://source.winehq.org/git/wine.git ~/wine-git && cd ~/wine-git
I have just got my PC reformatted. What do you think is the problem?:nuts:
 

phyrex1an

Staff Member and irregular helper
Staff member
Reaction score
446
Help me, I can't get in here: git clone git://source.winehq.org/git/wine.git ~/wine-git && cd ~/wine-git
I have just got my PC reformatted. What do you think is the problem?:nuts:
In the case you weren't just spamming advertising links:

If you have an internet connection there is no reason for (just) that line to fail (save wine git being down or your system is very strangely configured. Eg, no cd command or no write permission to your own home directory -_-).

Did you get any errors from the
Code:
sudo aptitude install git
line?
 

ronduncan

New Member
Reaction score
0
This is a short tutorial on how to run the Starcraft II Beta under Wine. The tutorial assumes that you run Ubuntu 9.10, but it can be modified to work with other distributions as well. The Beta installer works just fine under the latest development release of wine (1.1.40) but sc2 will crash on the login screen. Because of this we'll have to download the sources for wine, patch them manually and compile. We'll do all this through the terminal (Alt + F2, type gnome-terminal + ENTER), just copy and paste the commands I give here should work flawlessly. Sometimes I post links with more info, if a command doesn't work you might want to follow that link and see if it contains help on your issue. Please mention your problem and solution and I'll update the Howto accordingly.

First we need to install git since that is needed to fetch the wine sources:
Code:
sudo aptitude install git
Next step is to download the latest wine code to a directory and change to that.
Code:
git clone git://source.winehq.org/git/wine.git ~/wine-git && cd ~/wine-git
More info: http://wiki.winehq.org/GitWine?acti...head-f90aa63f963ccd6f1b34f59e4fdaafaecc72ad18

Next we have to patch wine with a fix for the login screen crash:
Code:
wget -q -O - http://phyrex1an.net/sc2-login.diff | patch -p1
This will download a patch from my server and apply it to the wine sources. The patch isn't written by me but only packaged in a format that the patch program supports. Original can be found here: http://www.winehq.org/
More info: http://wiki.winehq.org/Patching

We're now almost ready to start compiling, but first we need all build dependencies and some build tools:
Code:
sudo aptitude install build-essential
Code:
sudo apt-get build-dep wine
We can now start the build process:
Code:
tools/make_requests && ./configure && make depend && make
And finally install it:
Code:
sudo make install
Restart wineserver and you should now be able to login into bnet!
Code:
wineserver -k
However, there are still some stuff to do before the games run smoothly:

Fixing forever loading times
Starting a game takes forever with certain settings in wine. To fix this you have to change the emulator mode to either Vista or Windows 7:
Code:
winecfg
Under the Applications tab change the Windows Version to either Vista or Windows 7.

Fixing sound
Starcraft II uses the mmdevapi which is only partly implemented in Wine, disabling that library will enable the fallback audio system that works perfectly (I'm unsure if this is a wine fallback or a sc2 one, regardless I haven't noticed any problems with it)
Code:
winecfg
Press Libraries tab, add a new override for mmdevapi and edit it to Disabled.

Hey everyone, new here..

So I was extremely happy to find this guide thank you phyrex1an

I know this was for the Beta, and may have been updated but I could not find it..

When applying it to SC2 I am unable to get the sound working properly, when I disable it, nothing happens

Thanks!

-Ron
 

MdRM

New Member
Reaction score
0
"source' URIs

Thank you phyrex1an for the help.

In working it trough this deviation to your script appears. As I'm totally out of my league with this scripting, I don't know what to do about it.
Could you help/advise me?

code:
sudo apt-get build-dep wine

response:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: You must put some 'source' URIs in your sources.list
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Friday!
    +1
  • tom_mai78101 tom_mai78101:
    Starting this upcoming Thursday, I will be in Japan for 10 days.
  • tom_mai78101 tom_mai78101:
    Thursday - Friday will be my Japan arrival flight. 9 days later, on a Sunday, will be my return departure flight.
    +2
  • The Helper The Helper:
    Hope you have safe travels my friend!
    +1
  • vypur85 vypur85:
    Wow spring time in Japan is awesome. Enjoy!
  • The Helper The Helper:
    Hopefully it will be more pleasure than work
  • vypur85 vypur85:
    Recently tried out ChatGPT about WE triggering. Wow it's capable of giving a somewhat legitimate response.
  • The Helper The Helper:
    I am sure it has read all the info on the forums here
  • The Helper The Helper:
    i think triggering is just scripting and chatgpt is real good at code
  • vypur85 vypur85:
    Yeah I suppose so. It's interesting how it can explain in so much detail.
  • vypur85 vypur85:
    But yet it won't work.
  • The Helper The Helper:
    it does a bad ass job doing excel vba code it has leveled me up at my job when I deal with excel that is for sure
  • vypur85 vypur85:
    Nice! I love Excel coding as well. Has always been using Google to help me. Maybe I'll use ChatGPT next time when I need it.
  • The Helper The Helper:
    yeah whatever it puts out even if it is not perfect I can fix it and the latest version of chatgpt can create websites from pictures it will not be long until it can do that with almost all the tools
    +1
  • The Helper The Helper:
    These new Chat AI programs are going to change everything everyone better Buckle the Fuck Up!
  • The Helper The Helper:
    oh and Happy Tuesday Evening! :)
    +1
  • jonas jonas:
    Im worried they'll change things for worse
  • jonas jonas:
    A lot more low quality content, a lot more half-baked stuff.
  • jonas jonas:
    If you're good enough to spot the mistakes of the answers you don't need it in the first place. If you aren't good enough, you're gonna rely on some half-correct stuff
  • The Helper The Helper:
    the earlier AI is and has been used extensively for publishing news and other content for a while now
  • jonas jonas:
    I used to be active on quora, it's now flooded with extremely similar, superficial answers that often miss the point of the question
  • N NJJ:
    hi
  • N NJJ:
    Hello, gathering all my old accounts… :)
    +1

    The Helper Discord

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top