- Reaction score
- 447
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:
Next step is to download the latest wine code to a directory and change to that.
More info: http://wiki.winehq.org/GitWine?acti...head-f90aa63f963ccd6f1b34f59e4fdaafaecc72ad18
Next we have to patch wine with a fix for the login screen crash:
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:
We can now start the build process:
And finally install it:
Restart wineserver and you should now be able to login into bnet!
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:
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)
Press Libraries tab, add a new override for mmdevapi and edit it to Disabled.
First we need to install git since that is needed to fetch the wine sources:
Code:
sudo aptitude install git
Code:
git clone git://source.winehq.org/git/wine.git ~/wine-git && cd ~/wine-git
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
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
Code:
tools/make_requests && ./configure && make depend && make
Code:
sudo make install
Code:
wineserver -k
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
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