特殊:Badtitle/NS100:WorldofWarcraft
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/WorldofWarcraft }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/af | • {{#if: php5|Afrikaans| [[::WorldofWarcraft/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/ar | • {{#if: php5|العربية| [[::WorldofWarcraft/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/az | • {{#if: php5|azərbaycanca| [[::WorldofWarcraft/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::WorldofWarcraft/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/bg | • {{#if: php5|български| [[::WorldofWarcraft/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/br | • {{#if: php5|brezhoneg| [[::WorldofWarcraft/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/ca | • {{#if: php5|català| [[::WorldofWarcraft/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/cs | • {{#if: php5|čeština| [[::WorldofWarcraft/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/de | • {{#if: php5|Deutsch| [[::WorldofWarcraft/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/el | • {{#if: php5|Ελληνικά| [[::WorldofWarcraft/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/es | • {{#if: php5|español| [[::WorldofWarcraft/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/fa | • {{#if: php5|فارسی| [[::WorldofWarcraft/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/fi | • {{#if: php5|suomi| [[::WorldofWarcraft/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/fr | • {{#if: php5|français| [[::WorldofWarcraft/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/gu | • {{#if: php5|ગુજરાતી| [[::WorldofWarcraft/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/he | • {{#if: php5|עברית| [[::WorldofWarcraft/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/hu | • {{#if: php5|magyar| [[::WorldofWarcraft/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/id | • {{#if: php5|Bahasa Indonesia| [[::WorldofWarcraft/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/it | • {{#if: php5|italiano| [[::WorldofWarcraft/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/ja | • {{#if: php5|日本語| [[::WorldofWarcraft/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/ko | • {{#if: php5|한국어| [[::WorldofWarcraft/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/ksh | • {{#if: php5|Ripoarisch| [[::WorldofWarcraft/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/mr | • {{#if: php5|मराठी| [[::WorldofWarcraft/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/ms | • {{#if: php5|Bahasa Melayu| [[::WorldofWarcraft/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/nl | • {{#if: php5|Nederlands| [[::WorldofWarcraft/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/no | • {{#if: php5|norsk| [[::WorldofWarcraft/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/oc | • {{#if: php5|occitan| [[::WorldofWarcraft/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/pl | • {{#if: php5|polski| [[::WorldofWarcraft/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/pt | • {{#if: php5|português| [[::WorldofWarcraft/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/ro | • {{#if: php5|română| [[::WorldofWarcraft/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/ru | • {{#if: php5|русский| [[::WorldofWarcraft/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/si | • {{#if: php5|සිංහල| [[::WorldofWarcraft/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/sq | • {{#if: php5|shqip| [[::WorldofWarcraft/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/sr | • {{#if: php5|српски / srpski| [[::WorldofWarcraft/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/sv | • {{#if: php5|svenska| [[::WorldofWarcraft/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/th | • {{#if: php5|ไทย| [[::WorldofWarcraft/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/tr | • {{#if: php5|Türkçe| [[::WorldofWarcraft/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/vi | • {{#if: php5|Tiếng Việt| [[::WorldofWarcraft/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/yue | • {{#if: php5|粵語| [[::WorldofWarcraft/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/zh | • {{#if: php5|中文| [[::WorldofWarcraft/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/zh-hans | • {{#if: php5|中文(简体)| [[::WorldofWarcraft/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}WorldofWarcraft}}/zh-hant | • {{#if: php5|中文(繁體)| [[::WorldofWarcraft/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|:WorldofWarcraft|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :WorldofWarcraft/zh | | {{#ifexist: WorldofWarcraft/zh | | {{#ifeq: {{#titleparts:WorldofWarcraft|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:WorldofWarcraft|1|-1|}} | zh | | }}
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. 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.
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.
Installing Wine
The unofficial deb file of the current version of Wine (0.9.34), from WineHQ, works almost out of the box for most users and has a 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: https://wiki.ubuntu.com/BuildingWineFromSource
Latest Wine from the unofficial WineHQ repository
For full instructions on installing Wine see the UbuntuHelp:Wine page. 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.
1. 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:
For Ubuntu Feisty (7.04):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list For Ubuntu Edgy (6.10):sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/edgy.list -O /etc/apt/sources.list.d/winehq.list For Ubuntu Dapper (6.06):sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/dapper.list -O /etc/apt/sources.list.d/winehq.list Note: These repositories are recommended on the WineHQ website: http://winehq.org/site/download-deb 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 wineInstalling WoW
1. 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). 1. Then start the installation by opening a terminal and doing 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. 1.#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 Microsoft's proprietary fonts, because they can solve some text related graphical glitches during installation. Alternative 1: You can also just install WoW in Windows and then copy the entire World of Warcraft folder over from your Windows installation. Alternative 2: 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. [1] (European Version) [2] (US Version) Burning Crusade download: - [3] (European Version) The US installer for BC can be obtained by logging in and going to the following page: [4]. 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. 1. 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, type6112
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 ports3724
and for the range6881-6999
(which will be recognized as BitTorrent ports). 2. 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: [5] Once the Burning Crusade downloader is set up and the network is configured for it, run it with (US Version):wine WoW-BurningCrusade-enUS-Installer-downloader.exeConfiguration
WoW will run best usingOSS
. Runwinecfg
in a terminal and a window should appear. SelectAudio
, then selectOSS Driver
as Wine's sound driver. Make sure no other driver is selected. Next, find the filewtf/Config.wtf
in your 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. 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:SET SoundOutputSystem "1" SET SoundBufferSize "150" SET gxApi "OpenGL" To make the sidebuttons on your mouse work in WoW follow this link: http://www.cs.cornell.edu/~djm/ubuntu/#enable-5button-mouseOptional performance enhancing tweaks
The following tweaks are are gathered from this thread on Ubuntuforums.org: http://www.ubuntuforums.org/showthread.php?t=303509Tweak #1
This is a simple registry edit for Wine that reportedly may dramatically increase the framerate in game for both ATi and nVidia users. 1. Open a regedit window with this commandregedit
1. Find this keyHKEY_CURRENT_USER\Software\Wine\
1. Highlight the wine folder in the left hand pane by clicking left on it. The icon should change to an open folder 1. Click right on the wine folder and select[NEW]
then[KEY]
1. Replace the textNew Key #1
withOpenGL
1. Click right in the right hand pane and select[NEW]
then[String Value]
1. ReplaceNew Value #1
withDisabledExtensions
(Notice it's case sensitive!) 1.#8 Then double click anywhere on the line, a dialog box will open. 1. In the value field typeGL_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. Here's what regedit should look like once you have finished adding this new key and it's value: http://appdb.winehq.org/appimage.php?iId=4640Tweak #2
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. 1.nano -w ~/launch-wow.sh
1. Put this content in your newly created file:#!/bin/sh X :3 -ac & # Launches a new X session on display 3 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 1.#3 PressCtrl+o
thenCtrl+w
in order to save your file & quit nano. 1. Don't forget to make your script executable with this commandchmod +x ~/launch-wow.sh
1. Launch the script with./launch.sh
while being in the home user directory If you have installed WOW anywhere else than in your standard Winedrive c
, then you will have to replace the directory path found in the line that starts withcd"~/.wine...
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:wine "C:\Program Files\World of Warcraft\WoW.exe" If you installed WoW anywhere else, just edit the above command to correctly reflect the path where WoW.exe is found.You can make a Gnome menu entry 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 theExec=
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 theExec=
line to reflect your WoW installation path, if you've installed to a special location.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,OSS
andALSA
. OSS(old/legacy): Doesn't 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, 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. 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/TeamSpeakaoss wine /path-to-program/Ventrilo.exeaoss 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.Troubleshooting
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 [6] and here [7] for more info on installing updated drivers for your graphics card. * 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: ** msvcp60.dll (MD5: 6050bcc1b23f3df7a1876cbdcbac8232) ** mfc42.dll (MD5: 7e4d1b552ee1dfa859ba9033b3670590) ** riched20.dll ** riched32.dll and place them in /home/<username>/.wine/drive_c/windows/system32. You will, however, need a Windows license to use these files. Note: Remember to change<username>
to your personal computer login username * 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 theSET SoundBufferSize
line inwtf/Config.wtf
. Anything from 50 to 250 may cure your problem. Bear in mind that excessive buffer size may create audio sync issues. * When the patch program starts, it may ask something about Mozilla ActiveX. Select "No". * 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 [8], and you should extract the zipped folder in to/Interface/AddOns/
in your WoW directory. Then enable it underAddOns
in the choose character screen. You probably need to tick the option, which saysLoad out of date AddOns
, for it to work. You use d3d mode by running WoW with this command in stead of your usual one:wine wow.exe -d3d or you can change this line in wtf/Config.wtfSET gxApi "OpenGL" toSET gxApi "d3d" 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 towtf/Config.wtf
:SET ffxGlow = "0" * 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: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 * 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:Option "Capabilities" "0x00000800" Option "UseFastTLS" "off" Option "KernelModuleParm" "locked-userpages=0" You edit the file by doing this command:gksudo gedit /etc/X11/xorg.conf The section should look something similar to this after editing:Section "Device" Identifier "aticonfig-Device[0]" Driver "fglrx" Option "Capabilities" "0x00000800" Option "UseFastTLS" "off" Option "KernelModuleParm" "locked-userpages=0" EndSection * If you experience corrupt icons on your panel then you then you may need to set theSET UIFaster
parameter inwtf/Config.wtf
Use it like this:Set UIFaster "x" Where x equals: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. Example:Set UIFaster "2"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-windowed
to your command line starting WoW, or addSET gxWindow "1"
towtf/Config.wtf
.Support and discussion
For support and discussion on the subject of this howto, please post at: http://www.ubuntuforums.org/showthread.php?t=312482Related links
For more information regarding WoW under Wine see Wine's appdb: http://appdb.winehq.org/appview.php?iVersionId=6482 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 CategoryGames CategoryDocumentation CategoryCleanup