个人工具
登录
查看“UbuntuHelp:WorldofWarcraft”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:WorldofWarcraft”的源代码
来自Ubuntu中文
←
UbuntuHelp:WorldofWarcraft
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/WorldofWarcraft}} {{Languages|UbuntuHelp:WorldofWarcraft}} 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. Another option is an application called [http://www.playonlinux.com/en/download.html PlayOnLinux]. This application is free, easy-to-use open source application that should do all configurations for you. If you encounter some graphical issues, you might want to check out the configuration guide of [http://www.wowwiki.com/Config.wtf config.wtf] on this page. In Linux, [http://en.wikipedia.org/wiki/Direct_Rendering_Infrastructure Direct Rendering Infrastructure] (DRI) facilitates faster graphics rendering, so before you begin the installation you should check whether DRI is enabled. To do this, run the following command: <pre><nowiki> glxinfo | grep rendering</nowiki></pre> You should see output similar to this: <pre><nowiki> direct rendering: Yes</nowiki></pre> If this line says "No", it means that graphics data will not be passed directly to the graphics hardware, thus significantly reducing speed at which WoW will run. This is usually caused by a configuration issue with the graphics card driver. See the troubleshooting section for elaboration. == Installing Wine == 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. For full instructions on installing Wine see the [[UbuntuHelp:Wine|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|Repositories]] page. <ol><li>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:</li></ol> '''For Ubuntu Intrepid Ibex (8.10):''' <pre><nowiki> sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/winehq.list</nowiki></pre> '''For Ubuntu Hardy Heron (8.04):''' <pre><nowiki> sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list</nowiki></pre> 1.#2 Now do these three commands in a terminal: <pre><nowiki> wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add - sudo apt-get update sudo apt-get install wine</nowiki></pre> 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: <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 == ==== 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. If you have the new DVDs see the note below. * 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 one the install will fail with <pre><nowiki> Unrecognized key "options". (AttributeParser::Parse)</nowiki></pre> * '''Note''' that on some WoW DVD's the installer executable is hidden and you need to re-mount the disc with the 'unhide' option. To do this type in a terminal:<pre><nowiki> sudo umount /dev/cdrom sudo mount -t iso9660 -o ro,unhide /dev/cdrom /media/cdrom0/</nowiki></pre> * Start the installation by opening a terminal and running 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 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 [[UbuntuHelp:RestrictedFormats/Microsoft_Fonts|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: <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). ==== 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: [http://www.worldofwarcraft.com/downloads/files/pc/wowclient-downloader.exe Original WoW - US Version] [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] 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: <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 [[UbuntuHelp:BitTorrent|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: [http://www.blizzard.com/support/wow/?id=aww01199p] Once the firewall is configured and the network port forwarding is working, run the downloader with (Burning Crusade US Version example): <pre><nowiki> wine WoW-BurningCrusade-enUS-Installer-downloader.exe</nowiki></pre> == 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 <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 a problem with missing character and object models, and/or the login windows background is black, add: <pre><nowiki> SET M2UseShaders "0"</nowiki></pre> If you experience stuttering, bad sound or no sound what so ever, then add the following options as well: <pre><nowiki> SET Sound_SoundOutputSystem "1" SET Sound_SoundBufferSize "150"</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>. 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. 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. You may also try ticking <code><nowiki>Driver Emulation</nowiki></code> or setting the <code><nowiki>Hardware Acceleration</nowiki></code> dropdown to <code><nowiki>Emulation</nowiki></code>. 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 <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. <ol><li>Find this key <code><nowiki>HKEY_CURRENT_USER\Software\Wine\</nowiki></code> </li><li>Highlight the wine folder in the left hand pane by clicking left on it. The icon should change to an open folder </li><li>Right-click on the wine folder and select <code><nowiki>[NEW]</nowiki></code> then <code><nowiki>[KEY]</nowiki></code> </li><li>Replace the text <code><nowiki>New Key #1</nowiki></code> with <code><nowiki>OpenGL</nowiki></code> </li><li>Right-click in the right hand pane and select <code><nowiki>[NEW]</nowiki></code> then <code><nowiki>[String Value]</nowiki></code> </li><li>Replace <code><nowiki>New Value #1</nowiki></code> with <code><nowiki>DisabledExtensions</nowiki></code> (Notice it's case sensitive!)</li></ol> 1.#7 Then double click anywhere on the line, a dialog box will open. <ol><li>In the value field type <code><nowiki>GL_ARB_vertex_buffer_object</nowiki></code></li></ol> ''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 have installed the patch Echos of Doom, 3.0.2, many users have discovered that they were getting very low frame rates and that by removing this registry tweak their framerates were returned to normal. == 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: <pre><nowiki> wine "C:\Program Files\World of Warcraft\Launcher.exe"</nowiki></pre> (install when prompted about the Gecko rendering engine) Or, dive right into the game with: <pre><nowiki> wine "C:\Program Files\World of Warcraft\WoW.exe"</nowiki></pre> === Gnome menu icon === You can make a Gnome menu entry for WoW by doing the following commands in a terminal: <pre><nowiki> wget http://kde-files.org/CONTENT/content-files/41569-wow-icon-scalable.svg -O WoW.svg sudo mv WoW.svg /usr/share/pixmaps/ gksudo gedit /usr/share/applications/wow.desktop</nowiki></pre> Add this to the text editor window, which should have appeared after the third command, change <code><nowiki><username></nowiki></code> in the <code><nowiki>Exec=</nowiki></code> line to your computer login username, and save: <pre><nowiki> [Desktop Entry] Encoding=UTF-8 Name=World of Warcraft Exec=wine /home/<username>/.wine/drive_c/Program\ Files/World\ of\ Warcraft/WoW.exe Icon=WoW.svg Terminal=false Type=Application Categories=Application;Game; StartupNotify=false</nowiki></pre> ''Note: Remember that you should also edit the <code><nowiki>Exec=</nowiki></code> 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, <code><nowiki>OSS</nowiki></code> and <code><nowiki>ALSA</nowiki></code>. '''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 [[UbuntuHelp:TeamSpeak|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 [[UbuntuHelp:alsa-oss|alsa-oss]], which channels OSS applications through ALSA, making them then work more or less like regular ALSA programs. ALSA-OSS is installed by running this command: <pre><nowiki> sudo apt-get install alsa-oss</nowiki></pre> And then one uses it by starting the programs with the "aoss" command, something like this: <pre><nowiki> aoss /path-to-program/TeamSpeak</nowiki></pre> <pre><nowiki> aoss wine /path-to-program/Ventrilo.exe</nowiki></pre> <pre><nowiki> aoss wine /path-to-program/WoW.exe</nowiki></pre> Remember that both the voice chat program and WoW need to be run with the aoss command in front. == Troubleshooting == This section has been moved to its own article for better overview and navigation. See [[UbuntuHelp:WorldofWarcraft/Troubleshooting]] == Support and discussion == For support and discussion on the subject of this howto, please post at: http://ubuntuforums.org/showthread.php?t=579378 == External links == * [http://appdb.winehq.org/objectManager.php?sClass=application&iId=1922 WineAppDB - World of Warcraft] - The World of Warcraft page on WineHQ. * [http://www.wowwiki.com/Linux/Wine Wine (software) - WoWWiki - Your guide to the World of Warcraft] - A WoWWiki guide for running World of Warcraft under Wine. * [http://gentoo-wiki.com/HOWTO_Install_and_update_World_Of_Warcraft_with_wine World of Warcraft/Wine] - The Gentoo wiki World of Warcraft page. ---- [[category:CategoryCleanup]] [[category:CategoryGames]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:WorldofWarcraft
。