To get Battle.net properly working you need to patch and compile WINE by yourself:
Get the patched WINE source:
$ cd ~
$ git clone git://repo.or.cz/wine/warcraft3.git wine-war3
Get the build dependencies of WINE
Ubuntu users might do so with the command:
$ sudo apt-get build-dep wine
Make sure that you have gntutls-dev 2.3 or newer installed.
Generate some source files based on the applied AcceptEx patch:
$ cd ~/wine-war3
$ tools/make_requests
Run configure with --with-gnutls flag to ensure that it fails if the required gnutls library is missing. If you compile without gnutls support you get a crash when you login into battle.net.
$ ./configure --with-gnutls
Compile WINE:
$ make depend
$ make
Run Warcraft III with the generated wine file and not with the installed wine version:
After installing the game, its highly recommended that you browse to your Warcraft III folder and rename the movies folder. Many people crash from the movies because of buggy sound drivers, or simply hang, so you should do this in case you are one of them. You can still play the movies under
mplayer (or xine if you so choose)! TutorialIn.mpq is the very first cinematic of the game, and for the rest; *Op.mpq is the cinematic at the start of the campaign and *Ed.mpq is the cinematic and the end. If you wanted to follow the story, it's not hard at all to play the ones corresponding where you are at.
Method 2: Mark the intro as seen
If you don't want to play the campaign, but only want to start Warcraft III without a crash while playing the intro then you can simply mark the intro as seen:
Open reedit:
$ wine regedit
Navigate in regedit to HKEY_CURRENT_USER/Software/Blizzard/Warcraft III/
Create a key (folder) Misc in the Warcraft III key. You can do so by right clicking the key.
Create a DWORD value seenintromovie with the value 0x1
What can be done if Warcraft III is slow
The game may run faster for you if you configure Wacraft III to use OpenGL instead of DirectX.
To default the game to use OpenGL, see the registry import below. This creates
HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III with new DWORD value called "Gfx OpenGL" with the value set to 1. So you may create a file using the text, or use regedit to do the same.
The game might run faster in windowed mode. To do this, launch with the parameter -window. It has been reported that it works well on older Intel integrated cards.
How to play without CD?
Connect to battle.net to upgrade to the latest version of Warcraft 3 which doesn't need a CD.
If you ever get "Please insert disc", this is NOT a problem with detecting the CD.
The protection system is probably still built into the game even though the CD check itself is
disabled. Make sure you use version 1.21b or later. If you get this problem after having
this version installed, you are likely suffering from a buggy video driver as this is the
only known (and proven possible) cause at this point.
DO NOT USE NOCD PATCHES - They are pointless, and won't fix the real problem.
Players can't join my Battle.net games, what is wrong?
There are two causes for this problem:
You don't have a Wine Version with the applied AcceptEx patch (See Battle.net instructions above).
A firewall or router blocks the connections attempts. Make sure you have the correct ports open. Open outbound and inbound, TCP and UDP, port 6112, or whatever you set in the game configuration. More Network Ports
How to fix problems related to the Local Aera Network option?
If you try to play using the Local Area Network option, and do not see a game hosted from your machine on another or vice versa, and you are in the same subnet, this is likely caused by not having a default gateway. The game relies on sending UDP packets to the broadcast address and Linux will not send them unless there is a default gateway or another rule to handle them. To fix it, there are two methods:
Add a default gateway.
- OR -
Route 255. 255. 255. 255 to your local network.
See Wine Traffic #62 for another description of the issue. This is not considered a bug.
How do avoid problems with ALT-KEY combos?
Window managers often have the alt key bound to certain features,
especially the alt-click. THIS IS NOT A WINE BUG. If you have problems
with the alt key in any way DO NOT REPORT IT. Fix your window manager.
If you are desperate, turn off window manager managed windows in winecfg.
KDE
Go into KDE Control Center, expand Desktop, click window behavior, then
click window actions tab. You can turn off the alt-combos. If you want
to make window specific settings, click on window specific settings
under window behavior on the side.
GNOME
The option to change the key binding is in System Menu -> Preferences Menu -> Windows.
How to fix cursor/mouse problem in windowed mode?
When running windowed, if you move the cursor out of the screen and back again, sometimes it stays as the scrolling cursor and not the pointer cursor. Hover the mouse over a unit or building to fix the cursor. This is an oversight in the game itself and not a bug in Wine. Use mouse grab or full screen mode to bypass this problem. You may also disable automatic scrolling and use the middle mouse button or the directional keys (non-keypad) for manual scrolling.
Last updated :
2009-06-20
WARNING - Crash with ATI cards
Several users with ATI Radeon video cards encounter problems when playing. If run in Direct3D mode (e.g. without -opengl switch or registry hack) Warcraft 3 doesn't even start up. If run in OpenGL mode, the console prints these error messages
libGL error: drmMap of framebuffer failed (.............)
libGL error: reverting to (slow) indirect rendering
and the game is extremely slow with corrupted graphics because it uses the MESA Software OpenGL implementation instead of the 3D hardware acceleration of the ATI card.
If you encounter the same problem, have a solution to it or ATI, Wine and WC3 are running fine for you, please describe it in this bug report:
http://bugs.winehq.org/show_bug.cgi?id=13335
Warning
Using FBO as the ORM crashes with fglrx drivers
This is not a Wine bug, it is a fglrx bug. Please do not open a bug for this, it will just be closed.
See the fglrx bug for more details, or check the HOWTO for this app for a workaround.
The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.
Need help setting up Wine for wc3
by Sebastian Eckert on Sunday February 7th 2010, 10:02
Hi,
I am trying to get WC3 running but I just fail :(
Problem: after few seconds it exits
by makmat on Sunday January 10th 2010, 11:56
Speed and graphics seems good, but it exits after 2 seconds or less...
What i've done:
1) Installed wine beta by Ubuntu Software center
2) Installed warcraft III with original CDS and cd-keys and i could updtae them well (later game work bad)
3) Installed Open Drivers for ATI-Radeon 7500
4) Changed Regedit with OpenGl DWORD
5) Update driver and wine by:
-> ppa.launchpad.net/xorg-edgers/ppa/ubuntu (For driver ?)
-> ppa.launchpad.net/ubuntu-wine/ppa/ubuntu (For wine)
6) Finally, start game from terminal with "wine war3.exe -window -opengl"
Encountered Problems:
fixme:mixer:ALSA_MixerInit No master control found on MPU-401 UART, disabling mixer
errle:CoCreateInstance apartment not initialised
fixme:advapi:SetSecurityInfo stub
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
Allocating 16 x 16 radeon RBO (pitch 16)
fixme:win:EnumDisplayDevicesW ((null),0,0x33f168,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f5ec,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f624,0x00000000), stub!
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x170768,0x16e7e: stub
*********************************WARN_ONCE******** *************************
File radeon_tcl.c function radeon_run_tcl_render line 499
Rendering was 1454 commands larger than predicted size. We might overflow command buffer.
************************************************** *************************
drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.
Saving: FATAL ERROR!
by JoAz on Monday December 14th 2009, 14:45
When I try to save a campaign game WC3:TFT quits leaving this Messagebox: "This application has encountered a critical error: Fatal Error! The instruction at '0x7BC429DB' referenced memory at '0x0FAE0250'. The memory could not be 'written'."
This happens only when I try to save the second game after starting WC3. The first game after starting WC3 can be saved without problems.
Any ideas?
Patched Version does not work on Ubuntu 9.10
by Woula Dingdong on Wednesday November 11th 2009, 13:11
After I installed Karmic, Battle.net stopped working.
Wine does only start from a given WINEPREFIX, but otherwise the version from the wine repos works great (NWN2 works fine).
I upgrade wine-war3 from the git repo and recompiled it. When I try to connect to Battle.net, it just shows the dialog, but nothing happens. When I click on "cancel", wine crashes:
$ WINEPREFIX=~/.wine/wc3 wine war3.exe -opengl
mmap() failed: Cannot allocate memory
#[...]
mmap() failed: Cannot allocate memory
fixme:mixer:ALSA_MixerInit No master control found on MPU-401 UART, disabling mixer
err:ole:CoCreateInstance apartment not initialised
fixme:advapi:SetSecurityInfo stub
fixme:win:EnumDisplayDevicesW ((null),0,0x32f270,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f608,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f640,0x00000000), stub!
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x169498,0x167518): stub
Fatal Error when connecting to Battle.net, TFT 1.24
by ali on Sunday October 18th 2009, 0:50
I followed the how-to, compiled the warcraft 3 patched wine and ran it just as described. This is a fresh install of Warcraft 3 TFT, patched to version 1.24 with a renamed Movies directory.
Game started up fine, I clicked on battle.net and was able to make a new account and register my e-mail address. Now when I try to login, the wooden doors of the login screen slide apart, revealing a snowy background and the game freezes. Sometimes I can see the bottoms of the battle.net panels dropping from the top before the freeze. This happens consistently every time I try and login to battle.net.
After of few seconds of hanging on the screen, I get a fatal error (Address xxxx could not be 'written') dialog box. If I start the game from the console, I sometimes get the following line:
fixme:dbghelp:fetch_thread_info Couldn't open thread 42 (87)
Test bug 13547
by Dheart on Wednesday August 19th 2009, 1:40
Please, everyone who plays warcraft and has vanilla wine, retest bug 13547 as I can no longer reproduce in 1.1.27, It might be fixed. Also a regression testing to find which commit exactly did the job would be nice.
Stuck on HOWTO
by rm on Wednesday August 5th 2009, 11:42
Hello. I am trying to follow the HOWTO instructions but I keep getting stuck on the first step. I use the command "git clone repo.or.cz/wine/warcraft3.git wine-war" but I only get the following error:
Initialized empty Git repository in /home/*username*/wine-war3/.git/
fatal: The remote end hung up unexpectedly
What am I doing wrong? I have tried pointing to the directory where Warcraft III is, but I still get the same error. I am certain I have git installed.
WC3 Patch 1.24!
by Benjamin Prather on Tuesday August 4th 2009, 17:21
Ok so some more information about the issue. It doesn't actually lock up. I left it alone to see what it would do and after several instances all day long it seems that the issue is it is taking forever to time out of the "Unjoinable" rooms. It has taken between 2 min. (shortest) to 5 min. (longest).
I still get regular error messages: "Room full" "Game already started" "Could not find room"... This is one of the "Could not find room" error time-outs but it is just taking way longer than before.
Might just be some bad coding in the patch because my brother is running on Windows XP and it keeps doing random glitches as if it's in some sort of "Camera Follow" mode on his hero. Unsure if anyone else is having this issue or where else I might look to see if this is an isolated incident or more widespread.
I'll try to do a follow up post if I hear more about the 1.24 patch issue's.
NEW BLIZZ UPDATE -_-;
by Benjamin Prather on Tuesday August 4th 2009, 13:12
This new Version 1.24 forces my game to lock up if I can't get into a room...
Working fine last night after I followed all the instructions in the above "HowTo". Glitched out my desktop a little (Using Ubuntu 8.10), but otherwise I enjoyed the game in full with no issues what-so-ever.
There was a new update this morning going from 1.23 to 1.24 and now... When I get on battle.net if the room is going to send back an error of "Cannot find room" (Short version), you know the long pause then the error of not being able to get in the room, it will just stick there.
The room list updates, my refresh button works, the scroll arrows are functional but do not scroll the room's available list. Everything else just stays greyed out. :(
I R SAD FACED! Only option is to Alt+F4 out of the game and wine and restart, HOPING it won't happen again >
I just installed WC3 TFT to play an LAN multiplayer game. I experienced following errors:
1. the known errors about lost focus
2. a 1,1 GHz windows XP machine was hosting the games and after approx. 2 minutes of playing he crashed... but when I didn't join and didn't play he didn't get any problems... maybe some kind of buffer overflow?
Problems with new patch from Blizzard
by Flávio Botelho on Wednesday May 27th 2009, 20:35
Hello all,
I have been having a problem since after the new patch from Blizzard.
Right after you click to get into the Battle.net, a prompt saying "Downloading Data" appears.
My computer is crashing after that sometimes (i have tried wine versions from 1.0.1 to 1.1.21, in all the problem happens). It may be triggered by some specific data that is being downloaded in given times (the new banners?). If the problem occurs and i quickly reboot it almost always happens again.
Sometimes the crash does stop XMMS from playing music, sometimes it doesn't. But doesn't matter which key combination i try nothing unfreezes the computer. Crtl-Alt-F1, Alt-tab, nothing works.
I do think the problem is deeper than Wine (probably buggy video driver? X?), but i am hoping someone here can give me pointers on how to find it and diagnose it.
war3 refresh rates problem
by dave on Thursday May 14th 2009, 6:55
Hi
I'm new to the fight with wine and i have a rather perplexing problem!
I'm using the stable version of wine. 1.0.1 on kubuntu 9.04
When i run "wine war3.exe -opengl" war3 opens up and changes the screen refresh rate to something above what my screen can handle and concequently i get a monitor error saying signal is above the refresh rate its able to handle
Now i have tried the ForceRefreshRate registry key addition and then tried to run the game in dx instead of opengl
i have also tried to alter my xorg.conf file to force refresh rates on resolutions but to effect aside from crashing my xserver.
turns out it was a problem with intel driver, this helped somewhat:
wiki.ubuntu.com/ReinhardTartler/X/RevertingIntelDriverTo2.4 (still choppy at intro screen but running faster, almost playably??), BUT now my computer freezes when I click on "connect to battle.net".
slow in jaunty
by Superbiji on Tuesday March 31st 2009, 11:23
Hi.... i get lower fps in ubuntu jaunty .. lower than in intrepid
i'm using intel x3100 and 64bit jaunty... could it be ia32-libs problem or other problem?
Black screen again
by Jonas Wielicki on Tuesday March 24th 2009, 12:35
Hello at all,
At first, I am on Fedora 10 x86_64. So it is all a bit tricky to get wine running...
Now, wine works at all but the 3d support does not work as expected. I tried a few games but the effect of Warcraft III is the worst. Just after roughly a second splash-screen of Frozen Throne I just get a black screen (over the whole desktop) and have to reset the X server. What I can do is moving the cursor around AND I can do anything with the windows I have on my desktop. The cursor changes according to the underlying stuff. So just the output is black except the cursor. Strg+Alt+Backspace is the only solution I found... Even logging in to tty2 and killing all wine related processes does not help.
What I tried:
Wine is home-compiled as 32bit binary (which was very tricky due to conflicts between i386 and x86_64 packages).
Warcraft III is at 1.22
Movies folder is renamed
I tried various sound settings
I start Frozen Throne with -window -opengl parameters.
I installed kmod_nvidia, glxinfo confirms that with a Direct rendering: yes.
I would be glad if I could get any support... I piped the output of wine to a text file but I got just an empty file...
TFT - working mostly..
by vince on Sunday March 15th 2009, 15:29
I had this running pretty well for a couple days. Normal bnet games seem to work reliably. Now, I get a crash about 5 minutes into DotA. Sometimes it shows an Access Violation, other times I don't get any output.
I've tried with and without compiz, but it's a very reliable crash.
Warcraft 3 Video Flickers
by Scott on Friday March 13th 2009, 0:13
Hi all today is my first day running Ubuntu.
I have recently downloaded and installed Ubuntu 8.1 desktop distro. Have fully updated the OS, and had to install the ATi binary X.org driver before I could enable the Propietary ones (don't ask me why it just did).
I've looked through the DB and have the reg key added, I set up wine to ensure that sound and video looked all good and I also checked the control centre for ATi nothing out of the ordinary there.
The game boots fun and runs extremely smoothly but it keeps flicking to the desktop (as in it's still in the game but I can see the desktop behind it)
ATi Control Centre says this about my card.
ATI Radeon 3100 Graphics
I'm not too sure about wine, I downloaded it through synaptics which says it is version 1.0.1ubuntu2.
Any help would be greatly appreciated today has been a very big learning curve! Even if an enjoyable one.
still can t host a game in 1.1.16
by infernum on Sunday March 8th 2009, 15:21
Hi,
I m playing warcraft 3 chaos with wine 1.0.1 and i can t host an online game ( i did not try local network).
I have upgraded to 1.1.16 and i still can t host a game...
My iptables firewall is OK, router OK.
Is there a way to host a game ?? i thought it would be corrected with the 1.1.16 version.
Wineticks: No "MS Visual C 2005 Runtimes"
by Dethredic on Wednesday February 11th 2009, 15:46
So, my installation went fine, but I can't get WC3 to open. It says No CD found. At the top of the page it says I need to install "MS Visual C 2005 Runtimes". After following the link to the wine tricks page I don't see "MS Visual C 2005 Runtimes". I installed the Vistual Basic Runtime and the Visual C++ Libraries, but they didn't help.
RE: Wineticks: No by Dethredic on
Wednesday February 11th 2009, 18:36
wine 1.1.14 and battle.net
by Robin Hallabro on Tuesday February 3rd 2009, 10:09
Can anyone confirm battle net doesnt work with latest wine before I go ahead and make a regression test? It simply freezes the application and I have to terminate it. Will provide more information as soon as I recompile wine.
Lagy and Terrible graphics
by Casey Schellhorn on Tuesday January 27th 2009, 17:17
When I load W3 the graphics are terrible and there is about a 10 second lag time, I have no mouse and I have to use the keyboard to navigate.The graphics seem like they are from a developmental stage of W3, the colors are not right sometimes I can see the shapes without color and everything is pixely, I tested a game from the editor and my town hall and peasants were completely black. I am using Kubuntu 8.10 and a geforce fx 5200 graphics card. I am a noob to linux and wine and I dont know what to do, any help is appreciated
Also how do you open W3 in a window and not in full screen?
sound error
by mike on Tuesday January 6th 2009, 17:24
I get the message "unable to initiate base sound drivers" when the game starts up. Also the picture is all messed up and flickers. running latest versions of ubuntu and wine. any halp would be GREATLY appreciated! = ]
Graphics problem when loading
by Tan on Monday January 5th 2009, 10:16
I'm completely new to linux and Wine. Warcraft runs fine on my windows. When I load frozen throne with wine, all the graphics are blurry and boxy(if that is a word) Anyways, I know where everything is, so I click on battle.net and it downloads the patches, and I restart. I go to battle.net and I go to enter my name and password, but since the graphics are screwed up I couldn't see anything. So I just typed in my username, tab, password, and enter. Nothing happened, so I think it is something a little more than just the graphics. Any suggestions? Thanks.
I start the file "Frozen Thorone.exe", spash creen shows up and then trouble begins...
I hear sound of the intro movie but there is no video playback(screen is black or messed up with desktop colors...)
Hiting mouse key results with application crash...
Trying to update to latest patch does not work
by Jim on Saturday November 8th 2008, 12:24
After installing the CD version of TFT (1.07) I cannot get the game to update to any patch. Trying to patch in-game with battle.net crashes to the desktop when I press "Restart". When trying to install a stand-alone patch from Blizzard, WINE exits immediately with no error. Neither of these methods gets the Blizzard updater to show up at all and I never see any error messages. Does anyone have any ideas?
Lock mouse cursor in fullscreen, dual screen setup
by odor on Thursday November 6th 2008, 8:08
I have a dual screen setup, and in order to play wc3 I need the mouse to lock to the game window when i run wc3.
The "Allow DirectX apps to stop the mouse leaving their windows" under the Graphics-tab in "Configure Wine" does not work for me.
I suppose this is what i need to get working in order to play wc3.
Orelse i must connect only one screen to my computer. Does anyone have any solution for this problem ??
Hosting doesnt work
by Paul A. on Tuesday November 4th 2008, 14:58
Looks like hosting games on bnet doesnt work, all of my TCP and UDP ports from 6112 to 6120 are forwarded and open but people still cant join my games.
Wine 1.1.6 regression (from 1.1.5) with pulseaudio
by Id2ndR on Wednesday October 22nd 2008, 8:22
Hi,
I'd like to know if others have troubles with the sound with wine 1.1.6. I hear cracking sound whereas the sound is good with 1.1.5.
I think this may be related to bug 15620
Slow FPS in Fedora 9 wine 1.0
by John on Wednesday October 8th 2008, 22:43
While using FC9(2.6.26.3-29.fc9.i686) wine 1.0 I get really slow frame rates or possible lag whatever you want to call it in war3tft to the point its unusable. My fc9 is up to date and I use 1.22 version of wc3tft but still get this issue running:
-opengl
-window -opengl
-d3d
-window -d3d
-window
All modes seem to have this slow fps and I cant figure out where I screwed up or if its a conflict with wine and fc9 in some way? Any ideas suggestions or anything of the sort would be welcome at this point as I posted in fedora forums on the 4th and didn't get any answers back by the 10th so I'm going to assume no one knows there...
The Xfce Panels Interfere
by cf1709 on Tuesday September 23rd 2008, 20:59
I play Warcraft III on Xubuntu. On normal, fullscreen, mode (no -opengl nor -window), the panels do not interfere over the game but with -opengl on, also in fullscreen, the panels interfere and I can't have the game go over it (as a result, I can't do the mouse scroll, up and down).
I hope somebody can help. This game is much more fun to play on fullscreen.
Wine 1.1.5 and Frozen Throne alt-tab
by anon on Saturday September 20th 2008, 12:17
Well, Frozen Throne seems to try to reload textures now. I tried alt-tabbing twice at the main menu and once in-game. The first time I did so at the main menu, the textures WERE preserved! So, I immediately tried again, and the Frozen Throne got quite cold. (Yeah, everything went white, again.)
I loaded up a game (without quitting, since the game obviously has to reload the game engine), and everything looked normal. Alt-tabbed again, and textures were lost.
Well, I don't know how to program, so I can't say anything about the bug, but it looks like there's some progress? Since War3 now has a delay when alt-tabbing, it's doing whatever War3 would do under native Windows. And it seemed to work once, assuming that wasn't some kind of fluke, so progress is being made.
The Movies
by James on Sunday August 24th 2008, 22:36
Using a plain xinit session and oss along with native devenum.dll and quartz.dll, I was able to get the movies to play.
The color quality in them was very poor, however. I think the game may be mistakenly putting some sort of bad filter over them, because when I press escape to get out of them, they look normal for a split second. When I watched the intro movie for the first time (no menu being rendered beforehand) this problem did *NOT* appear.
Movies seem to work better in direct3d mode; if I use opengl the mouse always goes crazy/becomes unusable after the movies are done playing.
If I try to run the game in a normal desktop environment, the movies are just skipped, and there is a slight performance hit to the menu afterward (I did not test to see whether that continues into in-game play or not)