Running Warcraft 3 under Wine
by Jesse Allen; the3dfxdude at gmail com
and contributions from Ben Klein, Toni Spets.
Last updated 2007-07-25
Before you get started
This HOWTO only lists information specific to this app. Please keep comments and test reports brief. Please don't post copies of wine logs here! If you have trouble, see other ways of getting help.
Wine+Warcraft 3 Status as of Wine 0.9.39
* D3D8: Direct 3D mode is slow on anything but the lowest settings.
* FreeBSD: could work on version 6.2 or later, but problematic
* quartz: Divx movies have poor playback performance.
The game play is fully functional and performance is very good using OpenGL.
* Video card and driver that supports hardware based acceleration with OpenGL.
* Correct device node permissions to your audio, video, and cdrom.
* winecfg: A drive letter for your cdrom, and running as Win2k, XP or later.
* A REAL COPY OF THE GAME -- The game probably won't work right if you don't have a real copy.
* Linux kernel 2.6 with NTPL or FreeBSD kernel 6.2 (preferably 7) or later.
* Wine 0.9.18 or later
* Linux kernel 2.6.17+ or FreeBSD kernel 6.2
It's recommended to not use these versions of software because they break the SecuRom copy protection (ie "Please insert disc"):
* Linux vanilla x86-64 kernel: 2.6.9-2.6.15, and versions less than 2.6
* Wine compiled with GCC 4.0.0-4.0.2
* Native msvcrt.dll
* Nvidia video driver compiled against mismatched X11 header files
* Fedora Core 6 kernel package less than 2.6.18-1.2784.fc6, and kernel package "kernel.x86_64 2.6.20-1.2933.fc6".
Additionally, FreeBSD kernels less than 6.2 might not work with current versions of Wine at all.
Installing the Game
Launch winecfg to do the following tasks:
* Make sure the Windows version for Warcraft 3 is 2000, XP, or 2003 for copy protection support. Warcraft 3 supports Win2000 or later.
* Create a drive letter for your cdrom if you have not already.For each cdrom drive letter, click advanced, and set the drive type from automatic to cdrom. You *MUST* have a drive letter before installing.
It helps to add a device node symlink, so do the following. If your cd-rom drive letter in winecfg is d: and the corresponding device node to your mount point is /dev/hdc then run the following command:
$ ln -s /dev/hdc ~/.wine/dosdevices/d\:\:
Note, you *must* have two colons! You can tell what your device node is in /etc/fstab or by viewing your boot-log.
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.
When the game's installer, everything should run as expected.
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, 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.
Running the Game
Use the shortcuts created by the game found in your launcher menus. By console, use "Warcraft III.exe" or "Frozen Throne.exe".
If you use x86-64 kernels, you may need to use the following command:
$ setarch i386 -X wine "Warcraft III.exe"
If you use a processor with NX (no-execute bit) capabilities, you may have to turn it off. Use the noexec=off boot option.
On FreeBSD, you may need to use the following command:
$ wine-kthread "Warcraft III.exe" # with "Warcraft III.exe" or war3.exe
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
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.
Mouse Automatic Edge Scrolling
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.
ENTP ⥂ INTP ⥄ INFP ⇦ INTJ
在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议