Difference between revisions of "World of Warcraft"

From ArchWiki
Jump to: navigation, search
(Performance Tweaks and Links)
Line 10: Line 10:
  
 
This article will describe how install and run in on Arch Linux using [http://winehq.org/ Wine].
 
This article will describe how install and run in on Arch Linux using [http://winehq.org/ Wine].
 +
 +
Some of this information was provided by http://www.wowwiki.com/Linux/Wine which is the best general source of information on WoW on Wine.
  
 
==Introduction==
 
==Introduction==
Line 16: Line 18:
 
Running WoW is slightly more difficult than some other games with Wine, but still relatively easy. It's quite possible that you will need to patch Wine to work with WoW, however, even this process is rather simple with Arch. The following guide will explain it all, step by step.
 
Running WoW is slightly more difficult than some other games with Wine, but still relatively easy. It's quite possible that you will need to patch Wine to work with WoW, however, even this process is rather simple with Arch. The following guide will explain it all, step by step.
  
==Installation==
+
==Installing Wine==
There are two options for installing World of Warcraft. One is to simply copy an exisiting WoW installation from a Windows drive to Linux.
+
  
'''NOTE:''' If you do not alreay have Wine installed, or have not run World of Warcraft with Wine before, you should skip down to [[#Installing Wine]], then come back to this section. ''Please DO NOT SKIP this section unless you are absolutely sure you know what you are doing.''
+
Wine now no longer requires it's own special "World of Warcraft" version. The one in the repositories works fine (currently 0.9.38.1). Install both wine and unzip, which you will need later.
 +
 
 +
pacman -S unzip wine
 +
 
 +
==Installing the Game==
 +
There are three options for installing World of Warcraft.
 +
 
 +
===Copying the CDs to a folder===
 +
 
 +
My preferred method is to copy the 5 install CDs to a folder. This seems to solve problems with deciding whether a CD is mounted and needs changing or not ; I think this is a fundamental problem because Windows doesn't have the basic concept of mounting and unmounting drives.
 +
 
 +
mkdir /mnt/temp
 +
cd /mnt/temp
 +
 
 +
mount /mnt/cdrom
 +
cp -R /mnt/cdrom/* /mnt/temp
 +
umount /mnt/cdrom
 +
(repeat above for each of the 5 CDs)
 +
 
 +
Then run the World of Warcraft Installer with :
 +
 
 +
  wine Installer.exe
  
 
===Copying an Existing Installation===
 
===Copying an Existing Installation===
 +
 +
The second is to simply copy an exisiting WoW installation from a Windows drive to Linux.
 +
 +
'''NOTE:''' If you do not alreay have Wine installed, or have not run World of Warcraft with Wine before, you should skip down to [[#Installing Wine]], then come back to this section. ''Please DO NOT SKIP this section unless you are absolutely sure you know what you are doing.''
 +
 
Copy the C:\Program Files\World of Warcraft directory from Windows to ~/.wine/drive_c/Program Files/World of Warcraft.
 
Copy the C:\Program Files\World of Warcraft directory from Windows to ~/.wine/drive_c/Program Files/World of Warcraft.
  
Line 43: Line 70:
 
The WoW installation uses all 5 CDs, so it will take a while. Go outside and get some fresh air while the CD loads, because soon you won't have any "free time". :P
 
The WoW installation uses all 5 CDs, so it will take a while. Go outside and get some fresh air while the CD loads, because soon you won't have any "free time". :P
  
====CD Installation Issues====
+
==Installing Patches==
Some users have reported that World of Warcraft will only start the installation from the first CD, then will crash when attempting to change disks. An easy work around is to copy all of the data from each CD to a temporary directory, then install WoW from the directory. This will take a while, but the installation will run faster off your hard drive, and you are much less likely to get errors. The process would be something like this (our temp dir will be called <tt>/mnt/temp</tt>):
+
Now we will need to update WoW. As of today (8th June 2007), the latest version of WoW is 2.1.1.6739 . This will change over time, of course. The best place I have found to access the latest patches is http://www.wowwiki.com/Patch_mirrors
  
cd /mnt/temp
+
I think the simplest way of updating World of Warcraft is to download the patches (links are at the Patch Wiki) and copy them into the working directory for World of Warcraft. I have had problems with the Blizzard Downloaders either not working at all, or working very slowly. If you download them, you can reuse them if you reinstall or have an accident.
mount /mnt/cdrom
+
cp -R /mnt/cdrom/* /mnt/temp
+
umount /mnt/cdrom
+
(repeat above for each of the 5 CDs)
+
wine Installer.exe
+
  
==Post-Installation==
+
The current patches which are needed for 2.1.1.6739 are listed below
Now we will need to update WoW. As of today (2006-04-18), the latest version of WoW is 1.10.1. You can always find the latest patches at [http://worldofwarcraft.com/patchnotes/patchnotes.html World of Warcraft Patch Notes].
+
  
The easiest way to update WoW is will a full patch, then let the WoW Updater take care of the minor updates. The latest patch can be found at the above Patch Notes link, or various places online. Note that you MUST get the proper patch for your language. If you are installing a enUS version of the game, you must get enUS patches. If you have a jp version of the game, you need jp patches. Always double check to make sure you are getting the proper language version of patches.
+
WoW-1.12.0-enGB-patch.exe
 +
wow-1.12.x-to-2.0.1-engb-patch-3.zip
 +
WoW-2.1.0-enGB-patch.exe
 +
WoW-2.1.0.6692-to-2.1.0.6729-enGB-patch.exe
 +
WoW-2.1.0.6729-to-2.1.1.6739-enGB-patch.exe
  
* [http://people.os-zen.net/shadowhand/downloads/wow-1.10.0-enus-patch.exe Shadowhand's mirror of the 1.10 enUS patch]
+
I am British (pauses to sing "God Save the Queen"), so I use the enGB patches. There exist other patches for other versions of the game in the USA, France, Germany and Spain.
  
Once you have the patch, simply run the patch with Wine, like this:
+
When you have downloaded the files into their own folder for neatness, copy these patches into the World of Warcraft working directory (paulr is my user name, you will need to use yours)
 +
 
 +
cp * /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/
 +
 
 +
The 1.12.x patch needs to be unzipped into the working directory
 +
 
 +
  cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/
 +
  unzip wow-1.12.x-to-2.0.1-engb-patch-3.zip
 +
 
 +
The simplest way to install the patches seems to be to run World of Warcraft. It detects that you have downloaded the patches and doesn't do it again.
 +
 
 +
  cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/
 +
  wine WoW.exe
 +
 
 +
You have to keep going round 5 times, it does get a bit dull, but it's fairly reliable. Accept the offer to Install the Gecko renderer when it comes up on your first patch install.
 +
 
 +
The original Wiki says you can install patches with Wine as follows:
 
    
 
    
 
  wine wow-VERSION-LANG-patch.exe
 
  wine wow-VERSION-LANG-patch.exe
  
If you have set up Wine properly, there should be no issues at all with the patching process, however, it's can be extremely CPU intensive and may make your desktop fairly unresponsive. So, once again, go outside and get some fresh air for 10 minutes.
+
I haven't tried this, so I can't say if this works, and I don't know how to install the zip file this way :)
  
==Running World of Warcraft==
+
If the Launcher (it displays a little box with News and Play) seems to stop when downloading, close its window and re-run WoW.exe
After patching and installing the wine package (see further down on this page) and fixed the sound, run the following command to play WoW:
+
  
wine "C:\\Program Files\\World of Warcraft\\WoW.exe" -opengl
+
==Configuration==
  
===Run WoW in a Window===
+
The World of Warcraft configuration file is kept in the WTF directory (do Blizzard have a sense of humour ?)
Some people perfer to play WoW in windowed, rather than fullscreen mode. To enable this, edit your <tt>~/.wine/drive_c/Program Files/World of Warcraft/WTF/Config.wtf</tt> and add these lines:
+
 
 +
Edit it with
 +
 
 +
gedit WTF/Config.wtf
 +
 
 +
===Using OpenGL===
 +
 
 +
Add the following line which makes WoW run in OpenGL (hurrah !) instead of grotty old DirectX Mode (boo).  
 +
 
 +
SET gxApi "opengl"
 +
 
 +
This is a REQUIREMENT.
 +
 
 +
===Resolution and Colour depth===
 +
 
 +
You can change the following two lines to set the default WoW resolution. I have a 19" Monitor so I can use the following
  
 
  SET gxColorBits "24"
 
  SET gxColorBits "24"
  SET gxResolution "1024x768"
+
  SET gxResolution "1440x900"
SET gxWindow "1"  
+
  
The <tt>gxColorBits</tt> bit is important. Make sure that it matches your desktop bit depth, or you may get strange rendering errors while running the game.
+
===Windowing===
  
<tt>gxResolution</tt> can be any standard resolution. This will be the size of the window when you run the game.
+
You can run in a Window by setting this, but I haven't tried it.
  
If for some reason the game still runs in fullscreen after this, run <tt>winecfg</tt> and click on "Graphics" and enable the "Emulate a virtual desktop" option and change the "Desktop size" to match <tt>gxResolution</tt>.
+
SET gxWindow "1"  
  
 
===Sound Issues===
 
===Sound Issues===
If have no sound, edit  <tt>~/.wine/drive_c/Program Files/World of Warcraft/WTF/Config.wtf</tt> and add or change:
 
  
SET SoundOutputSystem "1"
+
====Configuring the Buffer====
SET SoundBufferSize "100"
+
If the sound makes a horrendous racket with squeaks and white noise try :
  
NOTE: You can set the <tt>SoundBufferSize</tt> to anywhere between 75 and 200. For most users, 100-150 will be best.
+
SET SoundOutputSystem "1"
 +
SET SoundBufferSize "100"
  
 
====Stuttering or Static Sound====
 
====Stuttering or Static Sound====
Line 99: Line 153:
 
  sudo renice -15 `pidof WoW.exe`
 
  sudo renice -15 `pidof WoW.exe`
  
==Installing Wine==
+
==A customised version of Wine==
There are several ways to go about installing Wine with Arch Linux, but the standard version of Wine that comes with Arch will not work properly. There are two other ways to get a version that will work:
+
 
+
# wine-cvs-wow from the AUR
+
# wine custom package
+
 
+
===Wine-cvs-wow From the AUR===
+
wine-cvs-wow from the AUR is a version of Wine from CVS compiled with the WoW fixes. It uses the patches posted in Wine's [http://appdb.winehq.org/appview.php?versionId=4031 appdb], and it is the easiest way to install a version of Wine that will run WoW. To compile and install this version of wine, run the following commands:
+
 
+
pacman -Sy alsa-lib
+
cd /var/abs/local
+
wget http://aur.archlinux.org/packages/wine-cvs-wow/wine-cvs-wow.tar.gz
+
tar zxf wine-cvs-wow.tar.gz
+
cd wine-cvs-wow
+
makepkg -c
+
pacman -U wine-cvs-wow-*.pkg.tar.gz
+
 
+
You now have a working version of Wine!
+
 
+
===Wine custom===
+
 
If you wish to compile wine from source yourself, you will need to edit the Wine PKGBUILD.
 
If you wish to compile wine from source yourself, you will need to edit the Wine PKGBUILD.
  
Line 175: Line 210:
  
 
You now have a working version of Wine!
 
You now have a working version of Wine!
 
==Configuring Wine==
 
There are a couple of extra things we need to do before wine is completely set up.
 
 
First, run the following command to set up your <tt>~/.wine</tt>, which is the directory that the "fake windows" will exist in.
 
 
  wine
 
 
Now, we need to configure Wine a little:
 
 
winecfg
 
 
Check all the options and set things as necessary. You will need to create a CD-ROM drive for Wine by clicking on "Drives", then clicking "Add". Call this drive "D:\" and have it point to your mount point for your CD drive. You can also click the "Autodetect" button to have Wine set up drives for each of your partitions in <tt>/etc/fstab</tt>.
 
 
Next we need to "install" two DLL files for World of Warcraft to run. Download [http://www.dll-files.com/dllindex/dll-files.shtml?msvcp60 msvcp60.dll] and [http://www.dll-files.com/dllindex/dll-files.shtml?mfc42 mfc43.dll] to <tt>~/.wine/drive_c/Windows/System32</tt>.
 
 
The Blizzard update program also requires Windows ActiveX controls. You can get this with the [http://www.iol.ie/~locka/mozilla/MozillaControl1712.exe Mozilla ActiveX Controls]. To install these, download the <tt>MozillaControl1712.exe</tt> program somewhere, then install it:
 
 
wine MozillaControl1712.exe
 
 
You may also want to install the [http://www.mozilla.org/products/mozilla1.x/ Mozilla Browser] as well, but it's not necessary for WoW to work.
 
 
Congratulations! You now have a Wine system that should be able to run and install World of Warcraft without any issues at all.
 
 
  
 
==Performance Tweaks==
 
==Performance Tweaks==
Line 212: Line 223:
  
 
That was it, close the registry editor again, your changes will be saved automatically.
 
That was it, close the registry editor again, your changes will be saved automatically.
 
  
 
2. If you are finding it annoying that turning your character by let's say 90 degree takes n seconds normally, but n+m seconds in pupolated areas (in other words: that the polygon count of your surroundings affects the camera turning speed), apply something to "GL_ARB_vertex_buffer_object", like let's say a "2", so it looks like this: "GL_ARB_vertex_buffer_object2". You will still have the performance boost of the above tweak, but with a smoother feeling.
 
2. If you are finding it annoying that turning your character by let's say 90 degree takes n seconds normally, but n+m seconds in pupolated areas (in other words: that the polygon count of your surroundings affects the camera turning speed), apply something to "GL_ARB_vertex_buffer_object", like let's say a "2", so it looks like this: "GL_ARB_vertex_buffer_object2". You will still have the performance boost of the above tweak, but with a smoother feeling.
 
 
  
 
==Links==
 
==Links==

Revision as of 15:09, 8 June 2007

Template:I18n links start Template:I18n entry Template:I18n links end

World of Warcraft (WoW) is a Massively Multiplayer Online Role-Playing Game (MMORPG) by Blizzard Entertainment taking place in the fictional world of Azeroth, the world that previous Blizzard titles in the Realtime Stategy (RTS) Warcraft series. For more information about the game itself, visit the Official World of Warcraft website.

This article will describe how install and run in on Arch Linux using Wine.

Some of this information was provided by http://www.wowwiki.com/Linux/Wine which is the best general source of information on WoW on Wine.

Introduction

As Blizzard so kindly created World of Warcraft with OpenGL support, we don't need Transgaming's Cedega, which is a non-free version of Wine with better DirectX support. Wine has as good, or better, OpenGL support than Cedega, and doesn't cost you a penny.

Running WoW is slightly more difficult than some other games with Wine, but still relatively easy. It's quite possible that you will need to patch Wine to work with WoW, however, even this process is rather simple with Arch. The following guide will explain it all, step by step.

Installing Wine

Wine now no longer requires it's own special "World of Warcraft" version. The one in the repositories works fine (currently 0.9.38.1). Install both wine and unzip, which you will need later.

pacman -S unzip wine

Installing the Game

There are three options for installing World of Warcraft.

Copying the CDs to a folder

My preferred method is to copy the 5 install CDs to a folder. This seems to solve problems with deciding whether a CD is mounted and needs changing or not ; I think this is a fundamental problem because Windows doesn't have the basic concept of mounting and unmounting drives.

mkdir /mnt/temp
cd /mnt/temp
mount /mnt/cdrom
cp -R /mnt/cdrom/* /mnt/temp
umount /mnt/cdrom
(repeat above for each of the 5 CDs)

Then run the World of Warcraft Installer with :

 wine Installer.exe

Copying an Existing Installation

The second is to simply copy an exisiting WoW installation from a Windows drive to Linux.

NOTE: If you do not alreay have Wine installed, or have not run World of Warcraft with Wine before, you should skip down to #Installing Wine, then come back to this section. Please DO NOT SKIP this section unless you are absolutely sure you know what you are doing.

Copy the C:\Program Files\World of Warcraft directory from Windows to ~/.wine/drive_c/Program Files/World of Warcraft.

Example (assuming your windows partition is mounted at /mnt/windows and you are in your home directory) (Quotes are needed because of the spaces in the file names):

 cp -R "/mnt/windows/Program Files/World of Warcraft" ".wine/drive_c/Program Files/World of Warcraft"

This will ensure that Wine knows about your WoW and will be able to configure it properly, and also ensures that WoW won't notice it has even been moved at all.

Now that you have WoW installed, skip down to #Post-Installation.

New Installation from CD

NOTE: We will assume that your Wine CD-ROM drive is "D:\" for this guide. Please use the correct letter as set up in the #Installing Wine section.

Insert the first CD, mount it, and start the installation with:

 wine "D:\Installer.exe"

When it asks for the next cd, simply unmount your CD drive and mount the next CD. Make absolutely sure that you mount the CD before telling the installer to load the CD, or it may make the installation fail. If you have any issues installing using the CDs, please read the next section.

The WoW installation uses all 5 CDs, so it will take a while. Go outside and get some fresh air while the CD loads, because soon you won't have any "free time". :P

Installing Patches

Now we will need to update WoW. As of today (8th June 2007), the latest version of WoW is 2.1.1.6739 . This will change over time, of course. The best place I have found to access the latest patches is http://www.wowwiki.com/Patch_mirrors

I think the simplest way of updating World of Warcraft is to download the patches (links are at the Patch Wiki) and copy them into the working directory for World of Warcraft. I have had problems with the Blizzard Downloaders either not working at all, or working very slowly. If you download them, you can reuse them if you reinstall or have an accident.

The current patches which are needed for 2.1.1.6739 are listed below

WoW-1.12.0-enGB-patch.exe
wow-1.12.x-to-2.0.1-engb-patch-3.zip
WoW-2.1.0-enGB-patch.exe
WoW-2.1.0.6692-to-2.1.0.6729-enGB-patch.exe
WoW-2.1.0.6729-to-2.1.1.6739-enGB-patch.exe

I am British (pauses to sing "God Save the Queen"), so I use the enGB patches. There exist other patches for other versions of the game in the USA, France, Germany and Spain.

When you have downloaded the files into their own folder for neatness, copy these patches into the World of Warcraft working directory (paulr is my user name, you will need to use yours)

cp * /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/

The 1.12.x patch needs to be unzipped into the working directory

 cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/
 unzip wow-1.12.x-to-2.0.1-engb-patch-3.zip

The simplest way to install the patches seems to be to run World of Warcraft. It detects that you have downloaded the patches and doesn't do it again.

 cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/
 wine WoW.exe

You have to keep going round 5 times, it does get a bit dull, but it's fairly reliable. Accept the offer to Install the Gecko renderer when it comes up on your first patch install.

The original Wiki says you can install patches with Wine as follows:

wine wow-VERSION-LANG-patch.exe

I haven't tried this, so I can't say if this works, and I don't know how to install the zip file this way :)

If the Launcher (it displays a little box with News and Play) seems to stop when downloading, close its window and re-run WoW.exe

Configuration

The World of Warcraft configuration file is kept in the WTF directory (do Blizzard have a sense of humour ?)

Edit it with

gedit WTF/Config.wtf

Using OpenGL

Add the following line which makes WoW run in OpenGL (hurrah !) instead of grotty old DirectX Mode (boo).

SET gxApi "opengl"

This is a REQUIREMENT.

Resolution and Colour depth

You can change the following two lines to set the default WoW resolution. I have a 19" Monitor so I can use the following

SET gxColorBits "24"
SET gxResolution "1440x900"

Windowing

You can run in a Window by setting this, but I haven't tried it.

SET gxWindow "1" 

Sound Issues

Configuring the Buffer

If the sound makes a horrendous racket with squeaks and white noise try :

SET SoundOutputSystem "1" 
SET SoundBufferSize "100"

Stuttering or Static Sound

Run winecfg, and in the "Audio" tab, selected "OSS" as the sound driver, using "Standard" hardware acceleration and driver emulation enabled.

You can also set WoW to run at a higher "nice level", which will usually improve sound performance (renice must be run as root):

sudo renice -15 `pidof WoW.exe`

A customised version of Wine

If you wish to compile wine from source yourself, you will need to edit the Wine PKGBUILD.

First, update your ABS with this command:

 pacman -S cvsup
 abs

Next, copy the Wine PKGBUILD to /var/abs/local/wine:

 cp -R /var/abs/extra/x11/wine /var/abs/local

and edit the PKGBUILD so that it looks something like this:

# $Id: PKGBUILD,v 1.12 2006/04/04 17:10:07 tpowa Exp $
# Maintainer: Dale Blount <dale@archlinux.org>
# Contributor: Matt Smith (Majik) <darkknight@helpdesk.zaz.net>
pkgname=wine
pkgver=0.9.12
pkgrel=1
pkgdesc="Emulator of the Windows 3.x and Win32 APIs"
url="http://www.winehq.com"
# don't add arts, it's only a dep if configured
depends=('x-server' 'libjpeg' 'libungif' 'alsa-lib' 'glut' 'openldap' 'libxslt' 'lcms' 'libxxf86dga' 'freeglut')
makedepends=('alsa-lib' 'arts' 'sane')
install=
source=(http://ibiblio.org/pub/linux/system/emulators/wine/wine-$pkgver.tar.bz2 \
        wine-$pkgver-wow_fixes.patch)

build() {
  cd $startdir/src/$pkgname-$pkgver
  msg "Patching Wine..."
  patch -Np0 ../$pkgname-0.9.11-wow-fixes.patch

  msg "Done patching, starting build..."
  ./configure --prefix=/usr --sysconfdir=/etc --enable-opengl --with-x
  make depend || return 1
  make || return 1
  make prefix=$startdir/pkg/usr install || return 1
  # expand conflicts with textutils ( doesn't exist anymore ? )
  # mv $startdir/pkg/usr/bin/expand $startdir/pkg/usr/bin/wine-expand || return 1
  mkdir -p $startdir/pkg/etc/wine
  # mkdir -p $startdir/pkg/etc/profile.d
  # cp -r $startdir/src/$pkgname-$pkgver/documentation/samples $startdir/pkg/etc/wine
}
#md5sums=('b21d359b75f07255bb5cd34384bdc3cf' 'a65f6f2d422e5ee50af8492ebd38470f')

NOTE: You can get the wine-$pkgver-wow_fixes.patch from here: http://appdb.winehq.org/appview.php?versionId=4031

Now execute the following commands to build and install your custom wine:

cd /var/abs/local/wine
makepkg -w `pwd`
pacman -U wine-*.pkg.tar.gz

You now have a working version of Wine!

Performance Tweaks

1. Here is a performance tweak that can boost your FPS significantly (everything without quotes):

 - Open wine's version of the registry editor by running "regedit"
 - Navigate to HKEY_CURRENT_USER\Software\Wine\ 
 - Select the "Wine" folder, right-click onto the folder symbol and select  New-> Key and rename it to "OpenGL"
 - Select the OpenGL-Key, then right-click into the right-hand pane, chose New-> String Value and hit enter
 - Rename "New Value #1" to "DisabledExtensions"
 - Double-Click on the renamed Key and enter "GL_ARB_vertex_buffer_object" into the "value" field

That was it, close the registry editor again, your changes will be saved automatically.

2. If you are finding it annoying that turning your character by let's say 90 degree takes n seconds normally, but n+m seconds in pupolated areas (in other words: that the polygon count of your surroundings affects the camera turning speed), apply something to "GL_ARB_vertex_buffer_object", like let's say a "2", so it looks like this: "GL_ARB_vertex_buffer_object2". You will still have the performance boost of the above tweak, but with a smoother feeling.

Links

World of Warcraft in the wine APPDB

WoWWiki

Patch Mirrors