个人工具

“UbuntuHelp:WorldofWarcraft”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第7行: 第7行:
 
This howto is for installing and playing World of Warcraft using Wine under Ubuntu-x86.
 
This howto is for installing and playing World of Warcraft using Wine under Ubuntu-x86.
  
Wine is a free open source implementation of the proprietary Win32 API, and attempts to enable Windows applications and games to run on Unix-like operating systems. DirectX support in Wine leaves much to be desired, but when run in OpenGL mode, World of Warcraft is one of the Windows based games that is best supported by Wine at the moment. It runs especially well on Nvidia video card hardware, though many ATI and even Intel users report good results.
+
Wine is a free open source implementation of the proprietary Win32 API, and attempts to enable Windows applications and games to run on Unix-like operating systems.  
  
 
World of Warcraft can also be played under Ubuntu by using the proprietary Cedega and CrossOver Linux. This howto, however, does not address these two.
 
World of Warcraft can also be played under Ubuntu by using the proprietary Cedega and CrossOver Linux. This howto, however, does not address these two.
 +
 +
Before you begin the installation you need to run this simple command, that checks if your video card driver has proper functions enabled so it can run WoW:
 +
 +
<pre><nowiki>
 +
glxinfo | grep rendering</nowiki></pre>
 +
 +
Which should return a line similar to this:
 +
 +
<pre><nowiki>
 +
direct rendering: Yes</nowiki></pre>
 +
 +
However if this line says no to direct rendering, it means that your graphic card drivers won't be able to run WoW. Please refer to the Troubleshooting section on this page for more info.
 +
  
 
== Installing Wine ==
 
== Installing Wine ==
  
The unofficial deb file of the current version of Wine (0.9.34), from [http://www.winehq.com WineHQ], works almost out of the box for most users and has a [http://appdb.winehq.org/appview.php?iVersionId=6482 gold to platinum rating] at the moment. Other experienced users, who are unable to make this work, may want to try to compile Wine from source in order to play WoW. Instructions can be found here:
+
The official deb package file of Wine from WineHQ's [http://www.winehq.org/site/download-deb download page], is recommended for most users, as it works almost out of the box for most people, and has a [http://appdb.winehq.org/appview.php?iVersionId=6482 gold rating] at the moment.
https://wiki.ubuntu.com/BuildingWineFromSource
+
  
=== Latest Wine from the unofficial WineHQ repository ===
+
For full instructions on installing Wine see the [[UbuntuHelp:Wine]] page.
  
For full instructions on installing Wine see the [[UbuntuHelp:Wine]] page. [http://www.winehq.com WineHQ] provides the newest versions of Wine packaged for Ubuntu. To use these, you need to add the WineHQ repository and then install Wine. For additional help on adding repositories, see the [[UbuntuHelp:Repositories]] page.
+
=== Deb package ===
 +
To install the deb you need to add the WineHQ repository and then install Wine. For additional help on adding repositories, see the [[UbuntuHelp:Repositories]] page.
  
* Open a terminal(also called a console, CLI, and command prompt) and choose '''one''' of these three commands to run, based on your version of Ubuntu:
+
* Open a terminal(also called a console, CLI, and command prompt) and choose '''one''' of the following two commands to run, based on your version of Ubuntu:
  
'''For Ubuntu Feisty (7.04):'''
+
'''For Ubuntu Gutsy Gibbon (7.10):'''
 
<pre><nowiki>
 
<pre><nowiki>
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list</nowiki></pre>
+
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list</nowiki></pre>
  
'''For Ubuntu Edgy (6.10):'''
+
'''For Ubuntu Feisty Fawn (7.04):'''
 
<pre><nowiki>
 
<pre><nowiki>
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/edgy.list -O /etc/apt/sources.list.d/winehq.list</nowiki></pre>
+
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list</nowiki></pre>
 
+
'''For Ubuntu Dapper (6.06):'''
+
<pre><nowiki>
+
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/dapper.list -O /etc/apt/sources.list.d/winehq.list</nowiki></pre>
+
''Note: These repositories are recommended on the WineHQ website: http://winehq.org/site/download-deb''
+
  
 
*#2 Now do these three commands in a terminal:
 
*#2 Now do these three commands in a terminal:
第40行: 第48行:
 
sudo apt-get update
 
sudo apt-get update
 
sudo apt-get install wine</nowiki></pre>
 
sudo apt-get install wine</nowiki></pre>
 +
 +
*#3 Before proceeding to install World of Warcraft you must run winecfg at least once (it must setup the ~/.wine directory structure before you can install Windows applications into it). This is a very important step. In a Terminal window type the following:
 +
<pre><nowiki>
 +
winecfg</nowiki></pre>
 +
Select your Windows type, configure disk and removable drives, etc, then press Apply and Ok. As it closes, winecfg will create a .wine directory structure in your home folder, populating with information about drives and devices installed in your system. If you fail to do this before trying to install World of Warcraft then you'll probably see errors like the following when running winecfg in the future:
 +
<pre><nowiki>
 +
err:winecfg:apply_drive_changes  unable to define devicename of 'C:'</nowiki></pre>
 +
 +
 +
=== Compiling Wine from source ===
 +
Other experienced users, who are unable to make this work or just want more control over the installation, may want to try to compile Wine from source in order to play WoW. Instructions can be found here:
 +
https://wiki.ubuntu.com/BuildingWineFromSource
  
  
 
== Installing WoW ==
 
== Installing WoW ==
  
* Click on Places -> Home Folder in the top panel. Use this application to create a directory and copy all of the files from all of the CD's to this directory on your hard drive (overwrite when prompted).
+
==== Original WoW ====
* Then start the installation by opening a terminal and doing these commands:
+
The best method, if you have access to the installation discs is to copy the contents to your hard disk and run them from there:
 +
* Create a convenient directory ( 'wow_install' on your Desktop for example)
 +
* Copy all of the files from the first WoW CD to this new directory. 
 +
* For each of the remaining WoW CD's, copy just the 'Installer Tome #.mpq' files. In the end, you should have the 'DirectX' directory, and the 'autorun.inf', 'installer.ico', 'Installer Tome.mpq', and 'Installer.exe' files from disc 1, and 'Installer Tome 2.mpq', 'Installer Tome 3.mpq', 'Installer Tome 4.mpq', and 'Installer Tome 5.mpq' from the remaining discs.  Note that the 'Installer.exe' file on the first disc is different from the files of the same name on the subsequent discs; if you get the wrong on the install will fail with
 +
<pre><nowiki>
 +
Unrecognized key "options". (AttributeParser::Parse)</nowiki></pre>
 +
 
 +
* Start the installation by opening a terminal and running these commands:
 
<pre><nowiki>
 
<pre><nowiki>
 
cd /<path-to-directory>/
 
cd /<path-to-directory>/
 
wine Installer.exe</nowiki></pre>
 
wine Installer.exe</nowiki></pre>
Replace <code><nowiki><path-to-directory/></nowiki></code> with the right path to the directory where you copied all the files.
+
Replace <code><nowiki><path-to-directory/></nowiki></code> with the right path to the directory where you copied all the files above.
*#3 Some dialogs during installation may appear blank or garbled, and the installer may even hang for up to 5 minutes at 100% CPU, while appearing to be doing nothing. Simply wait and click next when possible.
+
  
''Note: If you haven't already done so, you may want to install [https://help.ubuntu.com/community/RestrictedFormats/Microsoft_Fonts Microsoft's proprietary fonts], because they can solve some text related graphical glitches during installation.''
+
''Some dialogs during installation may appear blank or garbled, and the installer may even hang for up to 5 minutes at 100% CPU, while appearing to be doing nothing. Simply wait and click next when possible.''
  
'''Alternative 1:'''
+
''Note: If you have not already done so, you may want to install [https://help.ubuntu.com/community/RestrictedFormats/Microsoft_Fonts Microsoft's proprietary fonts], because they can solve some text related graphical glitches during installation.''
You can also just install WoW in Windows and then copy the entire World of Warcraft folder over from your Windows installation.
+
  
'''Alternative 2:'''
+
==== Burning Crusade ====
Or if you have lost a CD, do not have access to a cd drive or simply don't wanna bother with patching and messing with the CD's, you can download the trial version, which is the full game almost fully patched, from the blizzard torrentlike downloader.
+
The BC install is more or less the same as the base game install. 
 +
* Create a new directory separate from the directory where you copied the original game discs. 
 +
* Copy the 'Autorun.inf', 'Installer.exe', 'Installer.ico', and 'Installer Tome.mpq' files from the first Burning Crusade disc to this new directory. 
 +
* Copy just 'Installer Tome 2.mpq', 'Installer Tome 3.mpq', and 'Installer Tome 4.mpq' from the remaining install discs.
 +
* Run the installer by opening a terminal and executing these commands:
 +
<pre><nowiki>
 +
cd /<path-to-directory>/
 +
wine Installer.exe</nowiki></pre>
 +
Replace <code><nowiki><path-to-directory/></nowiki></code> with the right path to the directory where you copied all the files (the BC files, not the original WoW files).
  
[http://www.wow-europe.com/shared/wow-com/downloads/files/wow-trial/WoW-enGB-Installer-downloader.exe] (European Version)
+
==== Alternate Installation Methods ====
 +
If the above isn't possible for some reason (you don't have the discs for example, or a working media drive), here's some alternate ways to install the game.
  
[http://www.worldofwarcraft.com/downloads/files/pc/wowclient-downloader.exe] (US Version)
+
===== Alternative 1 (Copy from Windows): =====
 +
You can also just install WoW in Windows and then copy the entire World of Warcraft folder over from your Windows installation.
  
Burning Crusade download: -
+
===== Alternative 2 (Download the Entire Game): =====
 +
If you have lost a CD, do not have access to a CD drive or simply would not like to bother with patching and messing with the CD's, you can download and run the install of the trial version, which is in fact the full game almost fully patched, from the blizzard torrentlike downloader. They work very nicely with Wine.
  
[http://www.wow-europe.com/shared/downloads/protected/burningcrusade/pc/WoW-BurningCrusade-enGB-Installer-downloader.exe] (European Version)
+
Installer Downloads:
 
+
[http://www.worldofwarcraft.com/downloads/files/pc/wowclient-downloader.exe Original WoW - US Version]
The US installer for BC can be obtained by logging in and going to the following page:  [https://www.worldofwarcraft.com/account/download/bc-clientdownload.html].
+
[https://www.worldofwarcraft.com/account/download/bc-clientdownload.html Burning Crusade - US Version] (requires a valid account for log in)
 
+
[http://www.wow-europe.com/en/burningcrusade/download/ WoW - European clients, in all languages]
They work very nicely with wine.
+
  
 
In order to use the Blizzard Downloader effectively, you must 1) open certain ports on your computer and 2) enable port forwarding on your router.
 
In order to use the Blizzard Downloader effectively, you must 1) open certain ports on your computer and 2) enable port forwarding on your router.
  
* The easiest way to open these ports is to use the firewall program Firestarter. From the command line, install Firestarter with this command: <code><nowiki>sudo apt-get install firestarter</nowiki></code>. When it is running, select the "Policy" tab, right-click in the Allow Service area, and select Add Rule. Under port, type <code><nowiki>6112</nowiki></code> and make sure that the "Anyone" radio button is selected. Make a note in the comments field that this port relates to Blizzard. Repeat these steps for ports <code><nowiki>3724</nowiki></code> and for the range <code><nowiki>6881-6999</nowiki></code> (which will be recognized as BitTorrent ports).
+
====== Firewall Configuration for Blizzard Downloader ======
 +
The easiest way to open these ports is to use the firewall program Firestarter.  
 +
* From the command line, install Firestarter with this command: <code><nowiki>sudo apt-get install firestarter</nowiki></code>.  
 +
* When it is running, select the "Policy" tab, right-click in the Allow Service area, and select Add Rule.  
 +
* Under port, type <code><nowiki>6112</nowiki></code> and make sure that the "Anyone" radio button is selected. Make a note in the comments field that this port relates to Blizzard.  
 +
* Repeat these steps for ports <code><nowiki>3724</nowiki></code> and for the range <code><nowiki>6881-6999</nowiki></code> (which will be recognized as BitTorrent ports).
  
* Next, configure your router to forward those ports on the router to your computer only. The steps are similar to the above, but vary slighly from router to router and may be found on Blizzard's website: [http://www.blizzard.com/support/wow/?id=aww01199p]  
+
====== Router Configuration for Blizzard Downloader ======
 +
Next, configure your router to forward those ports on the router to your computer only. The steps are similar to the above, but vary slighly from router to router and may be found on Blizzard's website: [http://www.blizzard.com/support/wow/?id=aww01199p]  
  
Once the Burning Crusade downloader is set up and the network is configured for it, run it with (US Version):
+
Once the firewall is configured and the network port forwarding is working, run the downloader with (Burning Crusade US Version example):
 
<pre><nowiki>
 
<pre><nowiki>
 
wine WoW-BurningCrusade-enUS-Installer-downloader.exe</nowiki></pre>
 
wine WoW-BurningCrusade-enUS-Installer-downloader.exe</nowiki></pre>
第84行: 第125行:
 
== Configuration ==
 
== Configuration ==
  
WoW will run best using <code><nowiki>OSS</nowiki></code>. Run <code><nowiki>winecfg</nowiki></code> in a terminal and a window should appear. Select <code><nowiki>Audio</nowiki></code>, then select <code><nowiki>OSS Driver</nowiki></code> as Wine's sound driver. Make sure no other driver is selected.
+
=== Config.wtf ===
  
Next, find the file <code><nowiki>wtf/Config.wtf</nowiki></code> in your WoW directory. By default it is found in <code><nowiki>/home/<username>/.wine/drive_c/Program\ Files/World\ of\ Warcraft/</nowiki></code>, where <username> is you computer login name. If the file does not exist, run the game and log into a character.  The game should then create the file.  Open it using a text editor, and add the following lines:
+
WoW uses DirectX by default, but for most people it will not perform well in this mode. If this is the case for you, then you should change it to run in OpenGL mode instead.
 +
To do this you need to find the file <code><nowiki>wtf/Config.wtf</nowiki></code> in your main WoW directory. By default it is found in <code><nowiki>/home/<username>/.wine/drive_c/Program\ Files/World\ of\ Warcraft/</nowiki></code>, where <username> is you computer login name. Note that since .wine begins with a period, you will not be able to see it, but you may still access it in a terminal. In the Nautilus file manager, you can press <code><nowiki>Ctrl + h</nowiki></code> to see hidden files. If config.wtf does not exist, run the game and log into a character.  The game should then create the file.  Open it using a text editor, and add the following line to it:
 +
<pre><nowiki>
 +
SET gxApi "opengl"</nowiki></pre>
 +
 
 +
If you experience poor performance, graphical glitches, or the game does not run at all, then add the following options as well:
 +
<pre><nowiki>
 +
SET ffxDeath "0"
 +
SET ffxGlow "0"</nowiki></pre>
 +
 
 +
Note that disabling ffxGlow may also enable antialiasing for some users.
 +
 
 +
If you experience stuttering, bad sound or no sound what so ever, then add the following options as well:
 
<pre><nowiki>
 
<pre><nowiki>
 
SET SoundOutputSystem "1"
 
SET SoundOutputSystem "1"
SET SoundBufferSize "150"
+
SET SoundBufferSize "150"</nowiki></pre>
SET gxApi "OpenGL"
+
 
</nowiki></pre>
+
=== winecfg ===
 +
 
 +
If you experience stuttering, bad sound or no sound what so ever, then you must try a few things in <code><nowiki>winecfg</nowiki></code>. Just type <code><nowiki>winecfg</nowiki></code> in a terminal, press enter, and the wine configuration application window should appear and you should go to the <code><nowiki>audio tab</nowiki></code>.
  
To make the sidebuttons on your mouse work in WoW follow this link:
+
For most people <code><nowiki>OSS</nowiki></code> will work better than <code><nowiki>ALSA</nowiki></code>, so you should make sure that only <code><nowiki>OSS</nowiki></code> is ticked. But for some <code><nowiki>ALSA</nowiki></code> works better, so try that as a second solution, make sure you only have one ticked at a time.
http://www.cs.cornell.edu/~djm/ubuntu/#enable-5button-mouse
+
  
=== Optional performance enhancing tweaks ===
+
Also, refer to the Voice chat section for information on getting multiple audio streams working with <code><nowiki>OSS</nowiki></code> and <code><nowiki>ALSA</nowiki></code> (more than one program using audio at once). It will wave you grief should you ever want to listen to music and chat on Ventrilo or Teamspeak while playing, and similar.
  
The following tweaks are are gathered from this thread on Ubuntuforums.org: http://www.ubuntuforums.org/showthread.php?t=303509
+
You may also try ticking <code><nowiki>Driver Emulation</nowiki></code>. Remove it again if it does not help.  
  
==== Tweak #1 ====
+
=== Registry configuration ===
  
This is a simple registry edit for Wine that reportedly may dramatically increase the framerate in game for both ATi and nVidia users.
+
This is a simple registry edit for Wine that will dramatically increase the framerate in game. It is gathered from this thread on Ubuntuforums.org: http://www.ubuntuforums.org/showthread.php?t=303509
  
* Open a regedit window with this command <code><nowiki>regedit</nowiki></code>
+
Open a terminal window, type <code><nowiki>regedit</nowiki></code> and press enter. This will start the Wine equivalent of the windows registry editor. If you are familiar with using the registry editor under windows then this is pretty much the same.
  
 
* Find this key <code><nowiki>HKEY_CURRENT_USER\Software\Wine\</nowiki></code>
 
* Find this key <code><nowiki>HKEY_CURRENT_USER\Software\Wine\</nowiki></code>
第118行: 第172行:
 
* Replace <code><nowiki>New Value #1</nowiki></code> with <code><nowiki>DisabledExtensions</nowiki></code> (Notice it's case sensitive!)
 
* Replace <code><nowiki>New Value #1</nowiki></code> with <code><nowiki>DisabledExtensions</nowiki></code> (Notice it's case sensitive!)
  
*#8 Then double click anywhere on the line, a dialog box will open.
+
*#7 Then double click anywhere on the line, a dialog box will open.
 
* In the value field type <code><nowiki>GL_ARB_vertex_buffer_object</nowiki></code>
 
* In the value field type <code><nowiki>GL_ARB_vertex_buffer_object</nowiki></code>
  
 
''Note: If you are unable to rename the newly created key "New Key #1" to "OpenGL" then expand the left hand pane of the regedit window using the vertical divider bar. You should now be able to change it. A known bug in Wine is causing this unwanted behavior.''
 
''Note: If you are unable to rename the newly created key "New Key #1" to "OpenGL" then expand the left hand pane of the regedit window using the vertical divider bar. You should now be able to change it. A known bug in Wine is causing this unwanted behavior.''
  
Here's what regedit should look like once you have finished adding this new key and it's value:
+
== Playing ==
  
http://appdb.winehq.org/appimage.php?iId=4640
+
=== Start from the Desktop Icon ===
  
 +
Double click the icon you find on your Desktop titled World of Warcraft, this will start the launcher. If you have never used something requiring HTML rendering with Wine you will be prompted to download and install the Gecko rendering engine, you should do this as it will enable the WoW Launcher to display news.
  
==== Tweak #2 ====
+
=== Start from the Terminal ===
 
+
The idea with this tweak is to create a script which will allow you to launch WoW on a dedicated X server, which may give you a little boost of FPS.
+
 
+
''Note: in contrast to the first tweak this one will not enhance performance very much or even not at all for some users, and it is also known to be more troublesome with errors, therefor it will not be worth the effort for most users and should be considered being more oriented for advanced users who enjoy the challenge.''
+
 
+
* <code><nowiki>nano -w ~/launch-wow.sh</nowiki></code>
+
 
+
* Put this content in your newly created file:
+
  
 +
Starting from the terminal is simple, just enter:
 
<pre><nowiki>
 
<pre><nowiki>
#!/bin/sh
+
wine "C:\Program Files\World of Warcraft\Launcher.exe"</nowiki></pre>
 +
(install when prompted about the Gecko rendering engine)
  
X :3 -ac &  # Launches a new X session on display 3
+
Or, dive right into the game with:
cd "~/.wine/drive_c/Program Files/World of Warcraft"  # Goto WoW dir
+
sleep 2  # Forces the system to have a break for 2 seconds
+
DISPLAY=:3 /usr/X11R6/bin/wine WoW.exe -opengl  # Launches WoW
+
</nowiki></pre>
+
 
+
*#3 Press <code><nowiki>Ctrl+o</nowiki></code> then <code><nowiki>Ctrl+w</nowiki></code> in order to save your file & quit nano.
+
 
+
* Don't forget to make your script executable with this command <code><nowiki>chmod +x ~/launch-wow.sh</nowiki></code>
+
 
+
* Launch the script with <code><nowiki>./launch.sh</nowiki></code> while being in the home user directory
+
 
+
If you have installed WOW anywhere else than in your standard Wine <code><nowiki>drive c</nowiki></code>, then you will have to replace the directory path found in the line that starts with <code><nowiki>cd"~/.wine...</nowiki></code> in the script, to the path where you have installed.
+
 
+
== Playing ==
+
 
+
You should be able to play WoW using the shortcut on your desktop, or if you installed WoW using Wine's standard installation path, you should be able to play WoW by running this command:
+
 
<pre><nowiki>
 
<pre><nowiki>
 
wine "C:\Program Files\World of Warcraft\WoW.exe"</nowiki></pre>
 
wine "C:\Program Files\World of Warcraft\WoW.exe"</nowiki></pre>
 
If you installed WoW anywhere else, just edit the above command to correctly reflect the path where WoW.exe is found.
 
  
 
=== Gnome menu icon ===
 
=== Gnome menu icon ===
You can make a Gnome menu entry by doing the following commands in a terminal:
+
You can make a Gnome menu entry for WoW by doing the following commands in a terminal:
 
<pre><nowiki>
 
<pre><nowiki>
 
wget http://kde-files.org/CONTENT/content-files/41569-wow-icon-scalable.svg
 
wget http://kde-files.org/CONTENT/content-files/41569-wow-icon-scalable.svg
第186行: 第217行:
 
== Voice chat ==
 
== Voice chat ==
  
There is an issue with making voice chat applications and WoW use sound input and output simultaneously. You need to be able to mix sound in order for this to work, but most modern onboard soundcards don't support hardware sound mixing, so either you'll have to get a PCI soundcard, which supports this feature, or use software mixing. The issue with software mixing comes down to the two different sound interface architectures available in Linux, <code><nowiki>OSS</nowiki></code> and <code><nowiki>ALSA</nowiki></code>.
+
If you choose to configure Wine to use OSS for sound, then you will experience an issue with making voice chat applications and WoW use sound input and output simultaneously. You need to be able to mix sound in order for this to work, but most modern onboard soundcards do not support hardware sound mixing.  You will either have to get a PCI soundcard, which supports this feature, or use software mixing. The issue with software mixing comes down to the two different sound interface architectures available in Linux, <code><nowiki>OSS</nowiki></code> and <code><nowiki>ALSA</nowiki></code>.
  
'''OSS'''''(old/legacy)'': Doesn't allow you to use software mixing. Meaning only ONE application will be able to use sound at a time.
+
'''OSS'''''(old/legacy)'': Does not allow you to use software mixing. Meaning only ONE application will be able to use sound at a time.
  
 
'''ALSA'''''(new)'': Allows software mixing. Meaning several programs can use sound simultaneously.
 
'''ALSA'''''(new)'': Allows software mixing. Meaning several programs can use sound simultaneously.
  
However, the ALSA driver in Wine doesn't work very well with WoW, which is why this howto asks you to configure Wine to use OSS.
+
However, as stated previously in this howto, for some people the sound may stutter or be otherwise corrupted when using ALSA, this may force you to use OSS.
  
 
So you see the problem:
 
So you see the problem:
第215行: 第246行:
 
Remember that both the voice chat program and WoW need to be run with the aoss command in front.
 
Remember that both the voice chat program and WoW need to be run with the aoss command in front.
  
== Troubleshooting ==
+
== Short and Simple ==
  
This section tries to address the common issues people are having. Problems that persist after you have explored and tried on all of these different hints and tips, are often related to graphics cards and drivers. Sometimes the graphics card is just not well enough supported in the driver, and other times a driver update or reinstall solves the problem. See here [https://help.ubuntu.com/community/BinaryDriverHowto/] and here [http://albertomilone.com/driver.html] for more info on installing updated drivers for your graphics card.
+
This is a simplified method of installing and configuring Wine and WoW. It is based on highly personal information, does not work for all computer configurations, does not configure Wine right, only mentions one possible way of installing WoW out of several, and does not address EU gamers.
  
* If you have troubles running the installation or even the game itself, you may need to get a few .dll files from a windows installation or here:
+
* Enable the binary video driver for your card.  (applies to nVidia and ATI cards.)
 +
* Install [[UbuntuHelp:Wine]] from Ubuntu's Universe repository.
 +
* Run the installer from https://signup.worldofwarcraft.com/trial/10dayfreetrial.htm (or the CDs - I don't have them, so can't document.)
 +
* When you first run the game, it may ask "Download and install Gecko?" say "yes".
  
** [http://www.dll-files.com/dllindex/dll-files.shtml?msvcp60 msvcp60.dll] (MD5: 6050bcc1b23f3df7a1876cbdcbac8232)
+
You don't have to do these, but here are few simple tweaks to make things even better.
** [http://www.dll-files.com/dllindex/dll-files.shtml?mfc42 mfc42.dll] (MD5: 7e4d1b552ee1dfa859ba9033b3670590)
+
* System, preferences, appearance, set visual effects to None. This also gets rid of the task bars during game play.
** [http://www.dll-files.com/dllindex/dll-files.shtml?riched20 riched20.dll]
+
* add this key to the registry: [HKEY_CURRENT_USER\Software\Wine\OpenGL] "DisabledExtensions"="GL_ARB_vertex_buffer_object"
** [http://www.dll-files.com/dllindex/dll-files.shtml?riched32 riched32.dll]
+
  
and place them in /home/<username>/.wine/drive_c/windows/system32. You will, however, need a Windows license to use these files.
+
== Troubleshooting ==
  
''Note: Remember to change <code><nowiki><username></nowiki></code> to your personal computer login username''
+
This section has been moved to its own article for better overview and navigation.
  
* If you have problems with sound stuttering you may have to increase or decrease the sound buffer a bit. It's configured by changing the value of the <code><nowiki>SET SoundBufferSize</nowiki></code> line in <code><nowiki>wtf/Config.wtf</nowiki></code>. Anything from 50 to 250 may cure your problem. Bear in mind that excessive buffer size may create audio sync issues.
+
See [https://help.ubuntu.com/community/WorldofWarcraft/Troubleshooting]
  
* When the patch program, or the WoW Launcher starts, it will ask you about installing Mozilla ActiveX. Select "Yes". In doing this you will download a trimmed down version of the Gecko rendering engine (Firefox, Mozilla) which will respond to ActiveX calls, this means anytime a program tries to use HTML for a display, or similar, it will show. The launcher's news section and the changelog shown when applying a patch both use the rendering engine.
 
 
* You may have trouble with the gnome-panel/kicker showing up above the WoW "window". Make sure you have used the configuration settings above or set Gnome's fullscreen hotkey.
 
 
* If you are using CONTROL in your switch workspace key combo, you may need to reassign it to avoid inteferance from WoW.
 
 
* If you try to configure WoW's video settings (Resolution, Vertex Shaders, Pixel Shaders etc.) while running in opengl mode, WoW may crash. The workaround is to configure WoW's video settings while running WoW in d3d mode, or by using a special addon.
 
 
The addon is found here [http://files.wowace.com/ApplyToForehead/no-ext/], and you should extract the zipped folder in to <code><nowiki>/Interface/AddOns/</nowiki></code> in your WoW directory. Then enable it under <code><nowiki>AddOns</nowiki></code> in the choose character screen. You probably need to tick the option, which says <code><nowiki>Load out of date AddOns</nowiki></code>, for it to work.
 
 
You use d3d mode by running WoW with this command in stead of your usual one:
 
<pre><nowiki>
 
wine wow.exe -d3d</nowiki></pre>
 
 
or you can change this line in wtf/Config.wtf
 
<pre><nowiki>
 
SET gxApi "OpenGL"</nowiki></pre>
 
to
 
<pre><nowiki>
 
SET gxApi "d3d"</nowiki></pre>
 
run the game and change the settings, and then change the line back.
 
 
If this causes the display to be inverted or otherwise corrupted, don't be concerned. The display will right itself once you switch back to opengl. Running in d3d mode is simply so you can set WoW's video options.
 
 
* If WoW crashes on startup under opengl, but runs with d3d, try disabling 'fullscreen glow effects', in the video setting screen or by adding this line to <code><nowiki>wtf/Config.wtf</nowiki></code>:
 
<pre><nowiki>
 
SET ffxGlow = "0"</nowiki></pre>
 
 
* For users with an Nvidia card who have upgraded to '''Wine 0.9.30''' after installing, you may need to reinstall your nvidia-glx if you are crashing with the following error message when running WoW from the console:
 
 
<pre><nowiki>
 
Major opcode of failed request: 142 (GLX)
 
Minor opcode of failed request: 3 (X_GLXCreateContext)
 
Serial number of failed request: 14
 
Current serial number in output stream: 15
 
 
/*( This can be fixed by typing: */
 
 
$ sudo apt-get install nvidia-glx</nowiki></pre>
 
 
* For users with an ATI video card: certain cards have trouble rendering games and video in opengl using current flgrx drivers which will cause your computer to hard locks when you attempt to enter a domain.  This error will occur just after character creation/selection, as the game environment is loading, or possibly after a short period of play.  In order to fix this error, add the following three lines of code to your xorg.conf file in the ATI device section:
 
 
<pre><nowiki>
 
Option "Capabilities" "0x00000800"
 
Option "UseFastTLS" "off"
 
Option "KernelModuleParm" "locked-userpages=0"</nowiki></pre>
 
You edit the file by doing this command:
 
<pre><nowiki>
 
gksudo gedit /etc/X11/xorg.conf</nowiki></pre>
 
The section should look something similar to this after editing:
 
<pre><nowiki>
 
Section "Device"
 
Identifier  "aticonfig-Device[0]"
 
Driver      "fglrx"
 
Option      "Capabilities" "0x00000800"
 
Option      "UseFastTLS" "off"
 
Option      "KernelModuleParm" "locked-userpages=0"
 
EndSection</nowiki></pre>
 
 
* If you experience corrupt icons on your panel then you then you may need to set the <code><nowiki>SET UIFaster</nowiki></code> parameter in <code><nowiki>wtf/Config.wtf</nowiki></code>
 
 
Use it like this:
 
<pre><nowiki>
 
Set UIFaster "x"</nowiki></pre>
 
 
Where x equals:
 
<pre><nowiki>
 
0 – This turns off all UI acceleration
 
1 – For Internal Use Only - DO NOT USE!
 
2 – Enables partial UI acceleration only.
 
3 – Enables all UI acceleration.</nowiki></pre>
 
 
Example:
 
<pre><nowiki>
 
Set UIFaster "2"</nowiki></pre>The value 2 usually corrects this problem.
 
 
* For Beryl/Compiz users with gnome pannel showing on top of World of Warcraft start the game in windowed mode. Either by adding <code><nowiki> -windowed </nowiki></code> to your command line starting WoW, or add <code><nowiki> SET gxWindow "1" </nowiki></code> to <code><nowiki>wtf/Config.wtf</nowiki></code>.
 
  
 
== Support and discussion ==
 
== Support and discussion ==
  
 
For support and discussion on the subject of this howto, please post at:
 
For support and discussion on the subject of this howto, please post at:
http://www.ubuntuforums.org/showthread.php?t=312482
+
http://ubuntuforums.org/showthread.php?t=579378
  
  
 
== Related links ==
 
== Related links ==
  
For more information regarding WoW under Wine see Wine's appdb:
+
For more information regarding WoW under Wine see Wine's official page on WoW at:
http://appdb.winehq.org/appview.php?iVersionId=6482
+
http://appdb.winehq.org/objectManager.php?sClass=application&iId=1922
 +
 
 +
The howto found on www.wowwiki.com is also one of the best resources for info on this subject:
 +
http://www.wowwiki.com/Linux/Wine
  
 
The Gentoo wiki also contains good information, especially for those that need more detailed info:
 
The Gentoo wiki also contains good information, especially for those that need more detailed info:
 
http://gentoo-wiki.com/HOWTO_Install_and_update_World_Of_Warcraft_with_wine
 
http://gentoo-wiki.com/HOWTO_Install_and_update_World_Of_Warcraft_with_wine
 +
  
 
[[category:CategoryGames]] [[category:CategoryDocumentation]] [[category:CategoryCleanup]]
 
[[category:CategoryGames]] [[category:CategoryDocumentation]] [[category:CategoryCleanup]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月21日 (三) 17:21的版本

Parent: UbuntuHelp:Games


This howto is for installing and playing World of Warcraft using Wine under Ubuntu-x86.

Wine is a free open source implementation of the proprietary Win32 API, and attempts to enable Windows applications and games to run on Unix-like operating systems.

World of Warcraft can also be played under Ubuntu by using the proprietary Cedega and CrossOver Linux. This howto, however, does not address these two.

Before you begin the installation you need to run this simple command, that checks if your video card driver has proper functions enabled so it can run WoW:

glxinfo | grep rendering

Which should return a line similar to this:

direct rendering: Yes

However if this line says no to direct rendering, it means that your graphic card drivers won't be able to run WoW. Please refer to the Troubleshooting section on this page for more info.


Installing Wine

The official deb package file of Wine from WineHQ's download page, is recommended for most users, as it works almost out of the box for most people, and has a gold rating at the moment.

For full instructions on installing Wine see the UbuntuHelp:Wine page.

Deb package

To install the deb you need to add the WineHQ repository and then install Wine. For additional help on adding repositories, see the UbuntuHelp:Repositories page.

  • Open a terminal(also called a console, CLI, and command prompt) and choose one of the following two commands to run, based on your version of Ubuntu:

For Ubuntu Gutsy Gibbon (7.10):

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list

For Ubuntu Feisty Fawn (7.04):

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list
    1. 2 Now do these three commands in a terminal:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install wine
    1. 3 Before proceeding to install World of Warcraft you must run winecfg at least once (it must setup the ~/.wine directory structure before you can install Windows applications into it). This is a very important step. In a Terminal window type the following:
winecfg

Select your Windows type, configure disk and removable drives, etc, then press Apply and Ok. As it closes, winecfg will create a .wine directory structure in your home folder, populating with information about drives and devices installed in your system. If you fail to do this before trying to install World of Warcraft then you'll probably see errors like the following when running winecfg in the future:

err:winecfg:apply_drive_changes   unable to define devicename of 'C:'


Compiling Wine from source

Other experienced users, who are unable to make this work or just want more control over the installation, may want to try to compile Wine from source in order to play WoW. Instructions can be found here: https://wiki.ubuntu.com/BuildingWineFromSource


Installing WoW

Original WoW

The best method, if you have access to the installation discs is to copy the contents to your hard disk and run them from there:

  • Create a convenient directory ( 'wow_install' on your Desktop for example)
  • Copy all of the files from the first WoW CD to this new directory.
  • For each of the remaining WoW CD's, copy just the 'Installer Tome #.mpq' files. In the end, you should have the 'DirectX' directory, and the 'autorun.inf', 'installer.ico', 'Installer Tome.mpq', and 'Installer.exe' files from disc 1, and 'Installer Tome 2.mpq', 'Installer Tome 3.mpq', 'Installer Tome 4.mpq', and 'Installer Tome 5.mpq' from the remaining discs. Note that the 'Installer.exe' file on the first disc is different from the files of the same name on the subsequent discs; if you get the wrong on the install will fail with
 
Unrecognized key "options". (AttributeParser::Parse)
  • Start the installation by opening a terminal and running these commands:
cd /<path-to-directory>/
wine Installer.exe

Replace <path-to-directory/> with the right path to the directory where you copied all the files above.

Some dialogs during installation may appear blank or garbled, and the installer may even hang for up to 5 minutes at 100% CPU, while appearing to be doing nothing. Simply wait and click next when possible.

Note: If you have not already done so, you may want to install Microsoft's proprietary fonts, because they can solve some text related graphical glitches during installation.

Burning Crusade

The BC install is more or less the same as the base game install.

  • Create a new directory separate from the directory where you copied the original game discs.
  • Copy the 'Autorun.inf', 'Installer.exe', 'Installer.ico', and 'Installer Tome.mpq' files from the first Burning Crusade disc to this new directory.
  • Copy just 'Installer Tome 2.mpq', 'Installer Tome 3.mpq', and 'Installer Tome 4.mpq' from the remaining install discs.
  • Run the installer by opening a terminal and executing these commands:
cd /<path-to-directory>/
wine Installer.exe

Replace <path-to-directory/> with the right path to the directory where you copied all the files (the BC files, not the original WoW files).

Alternate Installation Methods

If the above isn't possible for some reason (you don't have the discs for example, or a working media drive), here's some alternate ways to install the game.

Alternative 1 (Copy from Windows):

You can also just install WoW in Windows and then copy the entire World of Warcraft folder over from your Windows installation.

Alternative 2 (Download the Entire Game):

If you have lost a CD, do not have access to a CD drive or simply would not like to bother with patching and messing with the CD's, you can download and run the install of the trial version, which is in fact the full game almost fully patched, from the blizzard torrentlike downloader. They work very nicely with Wine.

Installer Downloads: Original WoW - US Version Burning Crusade - US Version (requires a valid account for log in) WoW - European clients, in all languages

In order to use the Blizzard Downloader effectively, you must 1) open certain ports on your computer and 2) enable port forwarding on your router.

Firewall Configuration for Blizzard Downloader

The easiest way to open these ports is to use the firewall program Firestarter.

  • From the command line, install Firestarter with this command: sudo apt-get install firestarter.
  • When it is running, select the "Policy" tab, right-click in the Allow Service area, and select Add Rule.
  • Under port, type 6112 and make sure that the "Anyone" radio button is selected. Make a note in the comments field that this port relates to Blizzard.
  • Repeat these steps for ports 3724 and for the range 6881-6999 (which will be recognized as BitTorrent ports).
Router Configuration for Blizzard Downloader

Next, configure your router to forward those ports on the router to your computer only. The steps are similar to the above, but vary slighly from router to router and may be found on Blizzard's website: [1]

Once the firewall is configured and the network port forwarding is working, run the downloader with (Burning Crusade US Version example):

wine WoW-BurningCrusade-enUS-Installer-downloader.exe

Configuration

Config.wtf

WoW uses DirectX by default, but for most people it will not perform well in this mode. If this is the case for you, then you should change it to run in OpenGL mode instead. To do this you need to find the file wtf/Config.wtf in your main WoW directory. By default it is found in /home/<username>/.wine/drive_c/Program\ Files/World\ of\ Warcraft/, where <username> is you computer login name. Note that since .wine begins with a period, you will not be able to see it, but you may still access it in a terminal. In the Nautilus file manager, you can press Ctrl + h to see hidden files. If config.wtf does not exist, run the game and log into a character. The game should then create the file. Open it using a text editor, and add the following line to it:

SET gxApi "opengl"

If you experience poor performance, graphical glitches, or the game does not run at all, then add the following options as well:

SET ffxDeath "0"
SET ffxGlow "0"

Note that disabling ffxGlow may also enable antialiasing for some users.

If you experience stuttering, bad sound or no sound what so ever, then add the following options as well:

SET SoundOutputSystem "1"
SET SoundBufferSize "150"

winecfg

If you experience stuttering, bad sound or no sound what so ever, then you must try a few things in winecfg. Just type winecfg in a terminal, press enter, and the wine configuration application window should appear and you should go to the audio tab.

For most people OSS will work better than ALSA, so you should make sure that only OSS is ticked. But for some ALSA works better, so try that as a second solution, make sure you only have one ticked at a time.

Also, refer to the Voice chat section for information on getting multiple audio streams working with OSS and ALSA (more than one program using audio at once). It will wave you grief should you ever want to listen to music and chat on Ventrilo or Teamspeak while playing, and similar.

You may also try ticking Driver Emulation. Remove it again if it does not help.

Registry configuration

This is a simple registry edit for Wine that will dramatically increase the framerate in game. It is gathered from this thread on Ubuntuforums.org: http://www.ubuntuforums.org/showthread.php?t=303509

Open a terminal window, type regedit and press enter. This will start the Wine equivalent of the windows registry editor. If you are familiar with using the registry editor under windows then this is pretty much the same.

  • Find this key HKEY_CURRENT_USER\Software\Wine\
  • Highlight the wine folder in the left hand pane by clicking left on it. The icon should change to an open folder
  • Click right on the wine folder and select [NEW] then [KEY]
  • Replace the text New Key #1 with OpenGL
  • Click right in the right hand pane and select [NEW] then [String Value]
  • Replace New Value #1 with DisabledExtensions (Notice it's case sensitive!)
    1. 7 Then double click anywhere on the line, a dialog box will open.
  • In the value field type GL_ARB_vertex_buffer_object

Note: If you are unable to rename the newly created key "New Key #1" to "OpenGL" then expand the left hand pane of the regedit window using the vertical divider bar. You should now be able to change it. A known bug in Wine is causing this unwanted behavior.

Playing

Start from the Desktop Icon

Double click the icon you find on your Desktop titled World of Warcraft, this will start the launcher. If you have never used something requiring HTML rendering with Wine you will be prompted to download and install the Gecko rendering engine, you should do this as it will enable the WoW Launcher to display news.

Start from the Terminal

Starting from the terminal is simple, just enter:

wine "C:\Program Files\World of Warcraft\Launcher.exe"

(install when prompted about the Gecko rendering engine)

Or, dive right into the game with:

wine "C:\Program Files\World of Warcraft\WoW.exe"

Gnome menu icon

You can make a Gnome menu entry for WoW by doing the following commands in a terminal:

wget http://kde-files.org/CONTENT/content-files/41569-wow-icon-scalable.svg
sudo mv 41569-wow-icon-scalable.svg /usr/share/icons/
gksudo gedit /usr/share/applications/wow.desktop

Add this to the text editor window, which should have appeared after the third command, change <username> in the Exec= line to your computer login username, and save:

[Desktop Entry]
Encoding=UTF-8
Name=World of Warcraft
Name[hr]=World of Warcraft
Exec=wine /home/<username>/.wine/drive_c/Program\ Files/World\ of\ Warcraft/WoW.exe
Icon=41569-wow-icon-scalable.svg
Terminal=false
Type=Application
Categories=Application;Game;
StartupNotify=false

Note: Remember that you should also edit the Exec= line to reflect your WoW installation path, if you've installed to a special location.

Voice chat

If you choose to configure Wine to use OSS for sound, then you will experience an issue with making voice chat applications and WoW use sound input and output simultaneously. You need to be able to mix sound in order for this to work, but most modern onboard soundcards do not support hardware sound mixing. You will either have to get a PCI soundcard, which supports this feature, or use software mixing. The issue with software mixing comes down to the two different sound interface architectures available in Linux, OSS and ALSA.

OSS(old/legacy): Does not allow you to use software mixing. Meaning only ONE application will be able to use sound at a time.

ALSA(new): Allows software mixing. Meaning several programs can use sound simultaneously.

However, as stated previously in this howto, for some people the sound may stutter or be otherwise corrupted when using ALSA, this may force you to use OSS.

So you see the problem:

  • WoW runs in Wine, ergo uses OSS
  • Ventrilo runs in Wine, ergo uses OSS
  • The Linux version of TeamSpeak is based on OSS

Only one of these applications will be able to use sound at a time, but this can be solved by using alsa-oss, which channels OSS applications through ALSA, making them them work more or less like regular ALSA programs.

ALSA-OSS is installed by running this command:

sudo apt-get install alsa-oss

And then one uses it by starting the programs with the "aoss" command, something like this:

aoss /path-to-program/TeamSpeak
aoss wine /path-to-program/Ventrilo.exe
aoss wine /path-to-program/WoW.exe

Remember that both the voice chat program and WoW need to be run with the aoss command in front.

Short and Simple

This is a simplified method of installing and configuring Wine and WoW. It is based on highly personal information, does not work for all computer configurations, does not configure Wine right, only mentions one possible way of installing WoW out of several, and does not address EU gamers.

You don't have to do these, but here are few simple tweaks to make things even better.

  • System, preferences, appearance, set visual effects to None. This also gets rid of the task bars during game play.
  • add this key to the registry: [HKEY_CURRENT_USER\Software\Wine\OpenGL] "DisabledExtensions"="GL_ARB_vertex_buffer_object"

Troubleshooting

This section has been moved to its own article for better overview and navigation.

See [2]


Support and discussion

For support and discussion on the subject of this howto, please post at: http://ubuntuforums.org/showthread.php?t=579378


Related links

For more information regarding WoW under Wine see Wine's official page on WoW at: http://appdb.winehq.org/objectManager.php?sClass=application&iId=1922

The howto found on www.wowwiki.com is also one of the best resources for info on this subject: http://www.wowwiki.com/Linux/Wine

The Gentoo wiki also contains good information, especially for those that need more detailed info: http://gentoo-wiki.com/HOWTO_Install_and_update_World_Of_Warcraft_with_wine