Paste:ar hela guiden från wines hemsida:
Running Warcraft 3 under Wine
by Jesse Allen
the3dfxdude at gmail com
contributions from Ben Klein, Toni Spets.
Last updated 2007-06-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
Known Problems
* D3D8: Direct 3D mode is slow on anything but the lowest settings.
* FreeBSD: Copy protection doesn't work.
* quartz: Divx movies have poor playback performance.
Summary
The game play is fully functional and performance is very good using OpenGL.
Minimum Requirements
* 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.
Recommended Requirements
* Wine 0.9.18 or later
* Linux kernel 2.6.17+ or FreeBSD kernel 6.2
**Bad Versions**
It's recommended to not use these versions of software because they break the SecuRom copy protection (ie "Please insert disc"):
* Linux vanilla x86 kernel: 2.6.9, 2.6.10
* Linux vanilla x86-64 kernel: 2.6.9-2.6.15
* Linux kernel versions less that 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 modified linux kernel, unless updated to 2.6.18-1.2784.fc6 or later
* FreeBSD
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
Multiplayer Setup
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.
Warning
Use of Copy Protection Hacks
Do not use any "loader" that use APIHooks like D2Loader.exe. Wine can now support executing these loaders in general, but somewhere, usually something goes wrong. We don't know why; it could even be that loader buggy. We choose not to research it because Wine now supports SecuRom copy protection. Furthermore, we can't really support either of these because obtaining these programs is not something we want to actually do.
If you use a fixed exe, Toni Spets has written a better script that acts as a loader and allows Battle.net play. Edit the script before executing. Use of the script is not required, but it is useful to automate the launching of the game with full battle.net functionality. It is also called D2Loader because it does the same thing for Diablo 2. But try to not get confused, the shell script is actually preferred if you go this route, as the loader program has a nasty bug. But also be warned, that fixed exe's have also been known to be buggy and crash. We can't really help you at all if you use any crack.
Be warned that if you ask for help with the game asking you to insert the disk or if battle.net keeps crashing, I will likely go the route of making proper game/CD support in the first place. Sorry.
Warning
ALT-KEY COMBO WARNING
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. I'm not going to list steps for every one because there are too many possibilites. Figure out yourself or ask in a help forum (here is okay... but be warned all I use is TWM). 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.
Warcraft 3 Registry Import
REGEDIT4
[HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III]
"Gfx OpenGL"=dword:00000001
Graphical Problems with OpenGL
If you experience any graphical problems in Warcraft 3 in OpenGL, they aren't wine bugs. With the right graphics driver, you can have *NO* issues. I have seen it. But I have seen when the graphic problems do occur. A common problem is if you are using DRI, and see flickering of "solid" colors then you are likely using an old driver. Upgrade your driver. Somebody has reported a similar issue with the latest fglrx (8.36.5). If it is indeed true, then set your game graphics setting of "particles" to medium and restart the game completely.
Kort sagt:
1. Installera wine.
2. Skriv "winecfg" i terminalen
3. Kolla så att windows versionen är 2000 eller högre.
4. Gå in under fliken "Drivers" och kolla så att wine har hittat din cdrom/dvd läsare korrekt. (Tex "D: /mnt/cdrom") Om inte så är fallet. Lägg till den manuellt.
5. Stoppa in WC3 skivan och installera det genom att gå till monterings stället (Tex /mnt/cdrom) och starta Setup.exe filen med wine. (wine Setup.exe i terminalen)
6. Installera det som vanligt.
7. upprepa steg 5 om du har TFT (Med TFT skivan )
8. Om du vill slippa starta wc3 med "-opengl" kommandot kan du ta och lägga till "[HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III]
"Gfx OpenGL"=dword:00000001"
i regedit.
9. Om ljudet är "efter" starta winecfg och gå in under "Audio" fliken och ställ in så den använder "OSS driver", Hardware Acceleration till "Emulation" bocka också i "Driver Emulation"
10. Ta bort Filmerna som finns i wc3 mappen då de kan krasha spelet. (/home/här är din användare/.wine/drive_c/Program Files/Warcraft III/Movies)
11. Spela på.