Gå til innhold

Hvorfor er Linux fortsatt totalt ubrukelig for spill?


Anbefalte innlegg

WorldofWarcraft

Innhold

Before you get started

Installing Wine

Installing World of Warcraft

Alternate Installation Methods

Installing in Windows

Download the entire game

Configuration

Router & Firewall

Enabling OpenGL

Playing

Starting the game

Gnome menu icon

Voice communication

Troubleshooting

Install

Audio

Graphics

regedit tweaks

Support and discussion

External links

This how-to is for installing and playing World of Warcraft (WoW) using Wine under Ubuntu.

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 Wine based CrossOver Games, Cedega and PlayOnLinux. This how-to, however, does not address these.

Before you get started

In Linux, Direct Rendering Infrastructure (DRI) facilitates faster graphics rendering, so before you begin the installation you should check whether DRI is enabled. To do this, open a terminal and run the following command:

 

glxinfo | grep rendering

You should see an output similar to this:

 

direct rendering: Yes

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 issues with the graphics card driver, visit binary drivers for more information.

Note: Even if you do have DRI, it still might not be enough to run WoW successfully. Always consult the recommended hardware requirements on the back of the game or in the manual.

Installing Wine

You can easily install Wine through the repositories. Ubuntu will automatically configure and install it for you, just launch the Ubuntu Software Center and search for Wine.

For full instructions on installing Wine, see the Wine documentation.

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, open a terminal and type the following command:

 

winecfg

Most average users do not need to do any major changes in winecfg. If you need to configure Wine, please see the Wine documentation for details. As winecfg closes, it will create a the ~/.wine directory structure in your home folder. This folder will be populated with information about drives, devices and software installed through Wine.

Note: If you fail to finish these steps 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:'

Installing World of Warcraft

If you have the installation discs, this guide recommends that you copy the contents of your discs to your hard disk and install WoW from there. If you don't have the installation discs, please refer to the alternate installations methods.

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, just copy the 'Installer Tome #.mpq' files.

In the end, you should have copied the following files and folders:

DirectX directory, autorun.inf, installer.ico, Installer Tome.mpq and Installer.exe files from disc 1.

Installer Tome 2.mpq, Installer Tome 3.mpq, Installer Tome 4.mpq and Installer Tome 5.mpq from the remaining discs.

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.

To install expansions such as The Burning Crusade, The Wrath of the Lich King and Cataclysm, repeat the instructions above. Keep in mind to make new folders for each expansion, so that you don't mix up their installation files.

Note: If you've not already done so, you may also want to install Microsoft's proprietary fonts to solve text related glitches during the installation.

 

Alternate Installation Methods

If the above isn't possible for some reason (you might be missing discs or a working media drive), here are some alternate ways to install the game.

Installing in Windows

Just install WoW in Windows and run WoW under Wine from your Windows Partition. Or copy the entire World of Warcraft folder over from your Windows installation to play from your Ubuntu partition.

Download the entire game

Blizzard also offers it's customers to download and install the entire game through the Blizzard Downloader. This may take some time, even when using a fast connection. The game will be fully or close to fully patched upon finishing. The installer can be downloaded on the respective websites:

US version: https://us.battle.ne...count/download/

EU version: https://eu.battle.ne...count/download/ (all languages)

Run the installer with the following command in the terminal (Burning Crusade US version example):

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

In order to use the Blizzard Downloader effectively, please see router and firewall configuration.

Configuration

Router & Firewall

If you have a router or firewall you might have problems running World of Warcraft or services such as the Blizzard Downloader. The following ports need to be forwarded for World of Warcraft to work correctly:

World of Warcraft requires that TCP Ports 1119 and 3724 are forwarded.

The Blizzard Downloader requires that TCP ports 6881-6999 to be forwarded.

The World of Warcraft Voice Chat feature uses UDP Port 3724.

The Battle.net service features uses TCP port 1120.

For detailed information on how to forward ports on your router/firewall see http://www.portforward.com/ or contact your manufacturers customer service. Keep in mind that forwarding ports may reduce your network security.

Note: Most routers have their brand and model number on a sticker underneath the device.

Enabling OpenGL

The Windows version of World of Warcraft supports 3D rendering using either Direct3D or OpenGL. However, in Wine the Direct3D mode is supported only through an emulation layer that runs on top of OpenGL. Therefor it's highly recommended that you enable the OpenGL mode directly, instead of using it indirectly through Direct3D.

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.

Open config.wtf using a text editor and add or change the following line:

SET gxApi "opengl"

Note: If config.wtf does not exist, run the game and log into a character, then exit WoW. The game should then have created the file.

Playing

Starting the game

You can start the game by double-clicking 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. Doing this will enable the WoW Launcher to display news.

You can also start the game from the terminal:

 

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

Or, dive right into the game with:

 

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

Note: The terminal commands above might not reflect your World of Warcraft installation path and may need to be modified.

Gnome menu icon

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

 

wget http://kde-files.org...on-scalable.svg -O WoW.svg

sudo mv WoW.svg /usr/share/pixmaps/

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

Exec=wine /home/<username>/.wine/drive_c/Program\ Files/World\ of\ Warcraft/WoW.exe

Icon=/usr/share/pixmaps/WoW.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 communication

Guilds in World of Warcraft often use voice communication software to communicate with other guild members while playing, the most common software are:

TeamSpeak

Mumble

Ventrilo

TeamSpeak and Mumble have native Linux clients and work perfectly under Ubuntu, they can be installed through the Ubuntu Software Center. Ventrilo on the other hand does not have a client for Linux and needs to run through Wine, just like WoW. However there's an open source VOIP client capable of connecting to Ventrilo 3.x servers called Mangler.

Troubleshooting

Install

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, open a terminal and type:

sudo umount /dev/cdrom

sudo mount -t iso9660 -o ro,unhide /dev/cdrom /media/cdrom0/

Note: 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:

Unrecognized key "options". (AttributeParser::Parse)

Audio

If you experience stuttering you could try this:

In config.wtf set:

 

SET Sound_SoundOutputSystem "1"

SET Sound_SoundBufferSize "150"

The optimum value for Sound_SoundBufferSize varies depending on you setup. It may be anything from 50 to 300.

If you are not hearing any audio at all from WoW, you may want to try to switch Wine to use an older audio sub system named OSS. To do this, just type winecfg in a terminal, press enter, and the wine configuration application window should appear and you should go to the audio tab. In there, choose OSS. Make sure you only have one sound output system (e.g. ALSA/OSS/ESD) ticked at a time.

When an application is outputing sound through OSS, it will cause conflicts with other applications outputing audio, because OSS can only output audio from one application at a time. To work around this issue, you can wrap your running WoW instance with the newer audio system using the padsp launch prefix in a terminal.

To do this start WoW through the terminal by typing:

padsp wine WoW.exe

Note: config.wtf and WoW.exe are located in your World of Warcraft catalog.

Graphics

If you are having trouble with your graphics, add the following to config.wtf:

SET ffxDeath "0"

SET ffxGlow "0"

Note: 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:

SET M2UseShaders "0"

regedit tweaks

This is a simple registry edit for Wine that either will either fix crash issues and increase frame rate in game, or it will decrease the performance and even make the game crash. You should give it a try to see what is does for you, as you may always easily remove it again, if it acts negatively for you.

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

Right-click on the wine folder and select [NEW] then [KEY]

Replace the text New Key #1 with OpenGL

Right-click in the right hand pane and select [NEW] then [string Value]

Replace New Value #1 with DisabledExtensions (Notice it's case sensitive!)

Then double click anywhere on the line, a dialog box will open.

In the value field type GL_ARB_vertex_buffer_object

Support and discussion

For support and discussion on the subject of this how-to, please post at:

http://ubuntuforums....ad.php?t=579378

External links

WineAppDB - World of Warcraft - The World of Warcraft page on WineHQ.

Wine (WoWWiki) - A WoWWiki guide for running World of Warcraft under Wine.

World of Warcraft/Wine - The Gentoo wiki World of Warcraft page.

CategoryGames WindowsGames

 

--------------------------------------------------------------------------------------------

 

Slik får du KANSKJE installert WoW på Linux. Dette forutsetter at du har installert Wine, installert Linux-headers (i nyeste versjon) og installert drivere for skjermkort (hvis suksess avhenger av hvor late utviklerene er).

 

--------------------------------------------------------------------------------------------

 

Windows: Dobbel-klikk på wow.exe, følg instruksjoner, spill.

Hvordan kan folk fortsatt mene at Linux er så bra når noe så enkelt som et spill krever siv-ing. utdannelse for å få til? Hvorfor utvikler ikke Linux seg? Det er NØYAKTIG enormt tids- og ressurskrevende å gjøre noe som helst i Linux som det var for 15 år siden. Er dette et OS som kun er beregnet for masochister? Har gitt dette mølet flere sjanser, men det kommer alltid til kort.

Endret av elf_man
Lenke til kommentar
Videoannonse
Annonse

Jeg har installert Steam til Ubuntu.

 

Men det var ikke spørsmålet mitt. Jeg lurer på hvorfor Linux er like ubrukelig i dag som det var for 15 år siden. Hvorfor man må være siv-ing for å gjøre noe utover å klikke på ikoner. Hva gjør linux så unikt at man ikke kan dobbelt-klikke ikoner for å installere noe?

 

Hadde du vært fornøyd med en bil som du må sveive opp hver gang du skal starte? For det er nemlig det linux er!

  • Liker 5
Lenke til kommentar

Hvorfor unnviker dere hele tiden spørsmålet mitt? Har dere ikke et godt svar?

 

Jeg er fullstending klar over hva Valve gjør; det forklarer derimot ikke hvorfor Linux er like forbruker-fiendtelig nå som det var for 15 år siden.

 

PS! Spill er langt ifra så enkelt? Du vet at de aller første programvare-snuttene for datamaskiner var spill?

Endret av elf_man
  • Liker 1
Lenke til kommentar

Linux har vært et nisjemarked og ja det har vært forbeholdt ingeniører og entusiaster men med tanke på det som er i emning nå(Valve) så kan det hende at inntjeningen på linux kan komme opp på et slikt nivå at utviklerne har råd til å tilpasse brukerinterfacet så det blir like "lett" å bruke som Windows.

 

Det er penga som rår.

Lenke til kommentar

Linux er meget brukervennlig, kommer dog an på hardware som brukes.

Min var er blitt frelst med Ubuntu. Nå trenger han kun å sette inn eksempelvis 3gnettmodulen inn i usben, uten å måtte trykke på innstaler driver. Er for det meste kun plug and play.

 

Når det kommer til spil er Nvida en av de flinkeste til å lage drivere til Linux, andre produseter er mer varierende. Det at spillprodusenter bruker kun løsninger til Windows er deres problem som ofte ligger til grunn at forbrukermarkedet tilsier økt kapital på satsning for Windowsspill fremfor Linux. Er forøvrig gledene å se at flere og flere omslutter seg til å se på mulighetene Linux har.

  • Liker 3
Lenke til kommentar

Du sier noe der. Og jeg ser absolutt ikke noe problem med tankegangen din. Men jeg er fortsatt veldig skuffet over hvor lite Linux har innovert over årene. Det å legge til støtte for ny maskinvare er bare en liten del av det hele :/

 

Og ja, jeg er veldig interessert i et alternativ til Windows, men at det per i dag virker som alle har gitt opp kampen og er fornøyd med andre plass.

 

PS! Første gang jeg lekte med Wine er vel ca 10 år siden. I dag har jeg kommet ett steg lenger; fra ingen reaksjon til at 'installer' faktisk blir starter ;)

Endret av elf_man
Lenke til kommentar

Igjen, jeg er ikke uenig. Men Linux føles fortsatt veldig som politikk; forbeholdt eliten og fryktelig varierende.

 

Jeg vil virkelig få dette til å fungere. Jeg har bøker, jeg har forståelse. Men samtidig vil jeg være mannen i gata. Det burde ikke være nødvendig med spesial-kompetanse.

 

For å stille det på spissen; jeg klarer å re-kompilere kjernen for å få optimal ytelse, men jeg klarer ikke å spille favoritt-spillet mitt :(

Lenke til kommentar

Jeg er litt usikker på hva du mener med innovere. Linux/Unix har alltid vært massivt mer stabilt enn Windows.

 

Men hvis Valve lykkes med det de nå gjør så er det jo bare positivt. Det som er morsomt er jo at Microsoft har servert Linux dette på et sølvfat med introduksjonen av Windows 8.

 

Det jeg mener er å kunne gjøre noe uten å måtte taste inn 15 linjer i terminal. Windows 8 er milevis forran Linux på brukervennlighet. Jeg har brukt hele dagen på å installere linux på en laptop, installere steam og prøve å installere WoW. Med Windows 8 bruker jeg ca 50 minutter på dette. Med Linux har jeg prøvd i over 12 timer uten å få WoW til å komme videre enn "installing updates".

 

Eneste fordelen med Linux må jo være at folk blir tvunget til å lese manualer for å installere selv det minste programmet, og at dette vil føre til at folk får bedre lese- og skriveferdigheter ;)

 

Har du prøvd å installere gjennom PlayOnLinux?

 

Det har jeg ikke, men jeg skal sette meg ned nå og teste dette. Tusen takk for tipset :)

Lenke til kommentar

Det jeg mener er å kunne gjøre noe uten å måtte taste inn 15 linjer i terminal. Windows 8 er milevis forran Linux på brukervennlighet. Jeg har brukt hele dagen på å installere linux på en laptop, installere steam og prøve å installere WoW. Med Windows 8 bruker jeg ca 50 minutter på dette. Med Linux har jeg prøvd i over 12 timer uten å få WoW til å komme videre enn "installing updates".

 

Eneste fordelen med Linux må jo være at folk blir tvunget til å lese manualer for å installere selv det minste programmet, og at dette vil føre til at folk får bedre lese- og skriveferdigheter ;)

 

Du skyter på feil pianist.

WoW har ikke laget en versjon for Linux. Siden de ikke har gjort det er det vanskelig å installere det på Linux. Playonliuux er nok den enkleste måten å gjøre det på. Enkelt å installer steam og enkelt å installer WoW. Ikke så enkelt som på windows, men ikke langt unna.

 

En sammenligning. Å klage på at WoW er vanskelig å installere på Linux er som å klage over at det er vanskelig å spille Mario Bros på Xbox. Eller at det er vanskelig å installer spill fra Iphone på en Androidtelefon.

 

To helt forskjellige operativsystemer som har lite til felles.

 

At det er mulig å spille ett spill for Windows på Linux, sier noe om hvor god fungerende Linux egentlig er.

Lenke til kommentar

Jeg anbefaler deg å ta en titt på Steam til Ubuntu, det fungerer omtrent som på PC.

Linux suger til spill kun av en årsak: det er ikke behov for det. "Alle" gamere har pc med windows, de har ikke mac, og de har ikke linux, så hvorfor nedlegge ressurser i å være tilgjengelig på flere plattformer?

 

Vi ser jo at det er mer og mer støtte for Mac, men når selv den plattformen ikke får støtte, er det jo utrolig enkelt å forstå at ikke Linux får støtte ...

Lenke til kommentar

Linux suger til spill kun av en årsak: det er ikke behov for det. "Alle" gamere har pc med windows, de har ikke mac, og de har ikke linux, så hvorfor nedlegge ressurser i å være tilgjengelig på flere plattformer?

 

Vi ser jo at det er mer og mer støtte for Mac, men når selv den plattformen ikke får støtte, er det jo utrolig enkelt å forstå at ikke Linux får støtte ...

Det er riktig at Linux er nisjemarked, og at det derfor ikke nødvendigvis lønner seg å gjøre spill Linux-kompatible. Likevel ser vi at de aller fleste spill som har blitt solgt gjennom Humblebundle har vært Linux-kompatible. Steam har kommet ut i en versjon for Linux, og det er en god del spill i Ubuntu sin pakkehåndtering.

 

Jeg synes forøvrig Linux bør ha skryt for å ha vært ute med pakkehåndteringssystemer fra starten av. Det er omtrent ingen grunn til å bruke en nettleser til å laste ned instalasjonsfiler når det aller meste er tilgjenelig igjennom pakkehåndteringssystemet.

Lenke til kommentar

Kan det ha noe med at de store utgiverne tvinger (direkte eller indirekte) deres utviklere til å bruke større bibliotek som kun er støttet i Windows, enten via DirectX eller andre årsaker?

Mens mindre utviklere bruker åpne biblioteker som er støttet uavhengig av platform og lar seg lettere porte over på Linux?

Lenke til kommentar

Problemet med WoW er ikke linux, det er WoW. Wine er en emulering av Windows, som tydeligvis er nødvendig for World of Warcraft fordi Blizzard ikke gidder å støtte Linux.

 

Jeg anbefaler deg å ta en titt på Steam til Ubuntu, det fungerer omtrent som på PC.

Wine er strengt tatt et API for Win32.

 

Jeg prøvde nylig å installere Ubuntu på laptopen min kun for å teste Steam, tok ut SSDen og satte inn en 500GB 7200RPM HDD, la over Ubuntu på minnepenn og installerte. Dette var enkelt og raskt å gjøre.

Problemene oppsto da jeg skulle installere Steam, jeg googlet "Steam for Ubuntu 12.10" og fant en wiki-guide som skulle takle Ubuntu 12.04 og 12.10.

 

Det første steget var å laste ned Steam og installere, det gikk dessverre ikke an å installere Steam gjennom den vanlige pakkehåndtereren. Etter litt googling fant jeg ut at jeg måtte ha gdebi for å kunne installere Steam, og etter at jeg hadde åpnet Terminal og installert gdebi med en sudo "apt-get"-kommando kunne jeg høyreklikke på Steam.deb, velge "åpne i program", gdebi, og installere, som tok 10 minutter siden jeg måtte laste ned avhengigheter.

 

Neste problem oppsto da jeg skulle starte Serious Sam 3: BFE, Nvidia-driveren var nemlig ikke installert. Et raskt søk på google fortalte meg at jeg måtte først laste neg og installere "Additional Drivers" som så skulle laste ned og installere Nvidia-drivere. Men jeg kunne fortsatt ikke starte Serious Sam 3: BFE etter at Nvidia-driveren var installert, Steam begynte nemlig og kræsje og det var på det stadiet jeg kom til konklusjonen at Linux fortsatt er et operativsystem designet for gale mennesker som foretrekker Terminal framfor et GUI.

  • Liker 1
Lenke til kommentar

Det er ikke Linux det er noe problemer med, heller Linux støtten for spill. Det koster penger å utvikle for flere platformer. En god nyhet er at PS4 skal muligens bruke native OpenGL, og da blir det sikkert lettere å porte spill til både Mac og Linux, om utvikleren faktiskt porter spillet er en annen sak. Wine er kun en Win32 bibliotek til Linux, skrevet fra scratch. Man kan ikke forvente å få samme ytelsen og "lettheten" å installere spill for Windows på Linux gjennom Wine. Hvis World of Warcraft hadde en native Linux klient, så hadde spillet mest sannsynlig kjørt smertefritt.

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...