Last thing you'll ever read…again
Tutorial: Hosting/Playing Warcraft 3 Online in Ubuntu…Perfectly
This post is now deprecated as I no longer maintain this. Comments will be closed.
~~~~~~~~~~~~~~~~~~~~~~
I’ve read too many tutorials on how to setup Warcraft 3 on linux. However, the tutorial usually just ends there. Sure, you have a working version of Warcraft but when it comes to playing online it’s a different matter. Current versions of Wine do not have a working implementation of AcceptEx, this causes in game chat to be broken in battle.net. So when you’re playing team games that could be a problem. In addition, until recently there has been no linux compatible delay reducer. What is delay reducer? Warcraft 3 sets a predefined delay of 250ms for battle.net and 100ms for Lan. Generally 250ms for battle.net results in games with delay and/or lag. If you need more information check out this blog post.
In this tutorial, it’ll be divided into two parts. I’ll be showing you how to setup your system so that you can play and/or host Warcraft 3 games online painlessly and I’ll be showing you how to host Warcraft 3 games under wine.
Whilst there is no stable implementation of AcceptEx at the moment, there is AN implementation available. Thankfully, somebody decided to patch Wine with this implementation and setup a PPA repository. If you want to compile your own version of wine with the patch you can also do so by downloading the patch from the reference link below.
- In terminal type
gksu gedit /etc/apt/sources.list
- Add the following line changing intrepid to name of your version of Ubuntu.
deb http://ppa.launchpad.net/starfall87/ubuntu intrepid main
- Update apt with latest change from sources list:
sudo apt-get update
- Remove current version of wine and install the version from the PPA repository:
sudo apt-get remove wine && sudo apt-get install wine
Now that you have the correct version of Wine installed, I’ll show you how to host a game.
- We need to download Delay Reducer that’s compatible with Wine. Download
- Extract the file somewhere
- Run it by typing inside a terminal after you have had Warcraft 3 running:
wine W3DR_CLI.exe 80
- If you require additional hosting abilities like banlist, autorefresher, custom kicking then read on, otherwise you can stop here…
We can install a program called Snoopy which is developed for Linux for hosting games in Warcraft 3. To install it type inside a terminal:sudo apt-get install snoopy-wc
- Snoopy should now appear under your Application list inside Games.
Snoopy comes with many functionalities and options. Please read this guide on how to use snoopy.
You should be all set now!
If you’re just interested in playing Warcraft 3 online, you only need to run Warcraft and get on battle.net. Otherwise turn on delay reducer and run snoopy to begin hosting a game!
If this has helped you in any way, please take the time to drop a comment!
Edit 19/02/28:
Here is an alternative PPA repository for a patched version of Wine for those who want the latest version. Be warned, this has not been thoroughly tested.
https://launchpad.net/~pxc/+archive
References:
WineHQ Bugzilla – Bug 9787 – Warcraft3 Battle.net Doesn’t work (Needs AcceptEx)
Delay Reducer For Wine
Official Site For Snoopy
| Print article | This entry was posted by John Jiang on January 15, 2009 at 2:16 pm, and is filed under Tutorial. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.
about 1 year ago
I used this tutorial and encountered a few bugs.
To begin with, the sound became garbled and after a few seconds after the game was launched, the Wine window would grey out. I didn’t try anything else since WC3 video and audio used to work fine with the latest wine release from HQ.
Any ideas?
about 1 year ago
Compiz (desktop effects) greys out programs that are not responding. Just disable, and enable again when you’re done playing.
As for the sound, mess with WC3′s sound options as well as Wine’s Audio options.
about 1 year ago
@Boris
The sound issue is most likely due to pulseaudio. Like Jake said, try playing around with Wine’s audio options, i find that mine works best when set to OSS rather than ALSA. In terms of compiz, you can try enabling metacity before starting Warcraft and re-enabling Compiz once you’re done.
about 1 year ago
I found a fix to some of these problems–
For the graying out of the windows I installed CompizConfig Setting Manager and simply disabled the fade in unresponsive windows.
The sound issue I was not able to fix.
I found that I can get the sound working fine with ALSA but I cannot run other sound-utilizing apps while I play. And sound in WC3 is bad when I have other applications running (Amarok, VLC, even flash in Firefox)
This tutorial installs Wine 1.1.9 -
There was a bug with Pulsaudio and wine. (http://bugs.winehq.org/show_bug.cgi?id=10495)
This bug is fixed in Wine 1.1.10 and above…
Unless I can patch the most recent version of Wine by my self I am going to have to live with this problem… or wait until the newest release of wine (which is supposed to have the AcceptEX big fixed) to be happy.
about 1 year ago
@Boris
You can try using this PPA repository which has a more recent version of
Wine with the acceptex patch however, it hasn’t been thoroughly tested.
https://launchpad.net/~pxc/+archive
about 1 year ago
I have problem with not being able to minimize war3 to use the terminal, any ideas on this other than using hot corners?
about 1 year ago
@Nate
I sometimes find that when Warcraft is minimised it may not be possible to restore it. So generally I prefer switching to another workspace and opening up a terminal and switching back when I’m done.
about 1 year ago
How to do the same on my debian ? I haven’t tried but an ubuntu repository won’t work on debian
about 10 months ago
build it yourself by adding the deb-src repository, use apt-get source and rebuild with debuild.
about 1 year ago
@anisometropie
I’m afraid you’ll probably have to compile a copy of wine with the acceptex patch yourself if there’s no debain repo available. Check the bug report for the patch file
about 11 months ago
Thanks a lot for going through the effort to compile this info. After having been through the deal myself, I can really appreciate the frustration that must have been part of this. Despite all my efforts I have yet to connect to either battle.net or garena (preferable due to lower latency). The former always asks me to check my connection, the latter really doesen’t work well at all. I’m pretty close to giving up on this, but I do love Wine for other stuff it does. I have 3 MP3-Players installed, none of which work properly. Now, all my MP3s go via Wine to Winamp, which works flawlessly.
about 10 months ago
GHost++ is working on linux too, even with one single key (admin mode), a little tricky but it worth the pain if are going to host games seriously.