Easy-Peasy Guild Wars on Ubuntu Linux

This brief blog entry will note the simple steps to installing and playing Guild Wars on any ol' (well, min requirements apply) Ubuntu Linux system. This task is done using Wine, as CrossOver & Cedega cost money. Wine is a software application which aims to allow Unix-like computer operating systems on the x86 architecture to execute programs that were originally written for Microsoft Windows. Wine also provides a software library known as Winelib which developers can compile Windows applications against in order to port them to Unix-like systems.

Okay, it's finally up and running...sort of.

Installation and configuration.



First, this tutorial is NOT like Savage (A freeware game) and a valid CD-Key is required to activate your GW char. Now that that is confirmed, get the installation...

[coolcode]wget http://www.guildwars.com/downloads/gwsetup.zip[/coolcode]

--22:11:48-- http://www.guildwars.com/downloads/gwsetup.zip
=> `gwsetup.zip'
Resolving www.guildwars.com... 206.127.153.151
Connecting to www.guildwars.com|206.127.153.151|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105,234 (103K) [application/zip]

100%[====================================>] 105,234 --.--K/s

22:11:48 (895.43 KB/s) - `gwsetup.zip' saved [105234/105234]


Then unzip it to the current directory...

[coolcode]unzip gwsetup.zip[/coolcode]

Archive: gwsetup.zip
inflating: GwSetup.exe


[coolcode]ls -lah[/coolcode]

total 292K
drwxr-xr-x 2 czar czar 4.0K 2008-01-04 22:11 .
drwxr-xr-x 145 czar czar 12K 2008-01-04 19:23 ..
-rw-r--r-- 1 czar czar 162K 2007-05-16 20:22 GwSetup.exe
-rw-r--r-- 1 czar czar 103K 2007-05-17 18:58 gwsetup.zip


Now install...

[coolcode]wine ./GwSetup.exe[/coolcode]

Ok, once installed the best settings I found is to use the following (just add it to menu with alacarte or type in terminal.)

**Replace the "L:\\bin\\gw\\Gw.exe" with your location**

[coolcode]env WINEDEBUG=-all WINEPREFIX="~/.wine" wine "L:\\bin\\gw\\Gw.exe"[/coolcode]

I'm able to max out every setting (except max ground texture) and play in both full screen or windowed mode.

Guild Wars Linux Optimization



- Open winecfg and set the default to Win98. In Audio set ALSA Hardware Acceleration to Emulation and check Driver Emulation.
- Import the latest WINE repo. Add the following to your /etc/apt/sources.list

deb http://wine.budgetdedicated.com/apt hardy main


[coolcode]sudo aptitude update[/coolcode]

Gw.exe Switches

-diag Creates, at startup, a detailed diagnostic logfile which contains data about connection tests and hardware information, located in your game directory (..\Guild Wars\NetworkDiag.log). Useful for determining what is wrong when Guild Wars is not functioning properly. Important: The program terminates after the logfile is created; since Guild Wars will not be able run with this parameter on, make sure to remove it once Guild Wars has finished creating the logfile.

-dsound Forces the use of old DirectSound software mixer. Good for users whose computers are not compatible with the newer version.

-dx8 Useful for troubleshooting. Forces DirectX 8 compatibility; good for users whose computers are not compatible with the newer version. Using this switch with -noshaders may improve performance as well.

-fps # Limits the frame rate to frames per second, saving computer resources.

-image Forces the game to load a complete update. Important: The program terminates after the update is completed; since Guild Wars will not be able run with this parameter on, make sure to remove it after all the content has been downloaded. Downloading all the contents takes approximately 6 hours to complete at 150KB/s (broadband connection). Recommended: Create an additional shortcut on your desktop to Guild Wars that is labeled "Guild Wars Updater" and has this command line switch.

-mute Disables audio output, but still processes audio data internally (so for instance, lip syncing will still function).

-noshaders Troubleshooting option. Using this switch with -dx8 may improve performance as well.

-nosound Disables audio system completely.

-noui Disables the user interface, producing the same effect as when one pushes Ctrl + Shift + H in-game to toggle it.

-perf Displays performance indicators. Triangles, frames per second and transfer rate in bytes per second are displayed in white text in the upper-right corner of the Guild Wars window.

-repair Attempts to fix the GW.dat file, in which all update information is stored. Warning: If a lot of content has already been downloaded through updates, be prepared for a long wait as Guild Wars reconstructs the file.

-sndasio Useful for troubleshooting. Attempts to use an ASIO driver in software mode.

-sndwinmm Attempts to use the Windows Multimedia audio driver in software mode.

-uninstall Uninstalls Guild Wars.

-windowed Forces Guild Wars to run in windowed mode. Note: You can easily switch to windowed mode by pressing ALT + Enter or clicking the window icon in the upper right corner while the game is already running.

Also See

- http://czarism.com/wiki/gw
- http://wiki.guildwars.com/wiki/Command_line

Guild Wars: Eye of the North Works on Ubuntu Too

Just a quick note that Guild Wars: Eye of the North also works just perfect on Ubuntu Linux via Wine (using the tutorial above.)

Enjoy, cya in-game.

Re: Easy-Peasy Guild Wars on Ubuntu Linux

Thnx for taking time writing this guide. I will most certenly have a look into this as GW has been the only reason for me keeping Windows.
Cheers

Guild Wars settings

Everything seems to go fine until I get to this point:

Ok, once installed the best settings I found is to use the following (just add it to menu with alacarte or type in terminal.)

**Replace the "L:\\bin\\gw\\Gw.exe" with your location**

[coolcode]env WINEDEBUG=-all WINEPREFIX="/home/czar/.wine" wine "L:\\bin\\gw\\Gw.exe" -dx8 -noshaders[/coolcode]

I'm able to max out every setting (except max ground texture) and play in both full screen or windowed mode.

It don't understand this part, and it doesn't seem to want to do this part. It runs, but it's incredibly sluggish. It's taking it around half an hour just to log into the area.

Also, I get this right before I start that part:

[coolcode]
fixme:keyboard:X11DRV_MapVirtualKeyEx keyboard layout (nil) is not supported
fixme:keyboard:X11DRV_LoadKeyboardLayout L"00000409", 0000: stub!
[/coolcode]

It repeats this A LOT.

Guild Wars settings

Okay, it's finally up and running...sort of. Half the screen is black with random colored splotches, and neither the keyboard, nor the mouse, are working. How do I fix these things? I have pretty much no command line experience, so I don't really even know where to begin.

Half the screen is black

Half the screen is black with random colored splotches, and neither the keyboard

This is due to wine's crappy direct-x 9 support, you MUST either 1) if running in direct x 9 DISABLE the post-processor option 2) *preferred* add the -dx8 -noshaders to your desktop icon/other launcher.

PS. wine-0.9.54 works great, wine-0.9.55 broke my guild-wars and I've been unable to try wine-0.9.56. Don't forget to add to /etc/apt/sources.list. This will get the latest version os wine as they are released.

Download wine_0.9.54~winehq0~ubuntu~7.10-1_i386.deb

OR

[coolcode]
deb http://wine.budgetdedicated.com/apt gutsy main
deb-src http://wine.budgetdedicated.com/apt gutsy main
[/coolcode]

Can we back up to the old verision

I have 0.9.56 and get crazy quater screen and it is all garbled and can't read it now it is kicking me out on linux all together.
If i install the .54 verision will it over write the .56?

Steve

Yes you can back up older version

Seroki writes: If i install the .54 version will it over write the .56?

If you install the 0.9.54 version it WILL replace the current version (without any flaws). If you worry about breaks in wine + guild wars simply download the latest deb files at http://wine.budgetdedicated.com/apt/pool/main/w/wine/ and save them to your hard-drive. Then you can re-load the working archive if an incoming archive is busted.

P.S. I am however how running 0.9.57 in direct-x 9 mode (without issue). A purge was required to get that working (sudo aptitude -P purge wine) then install the latest. Without fussing with that, 0.9.54 also worked like a champ and the in-between gave some bad results.

Great Info - Minor enhancement

You might make a note or mod to your advice. If you change wine ./GwSetup.exe to wine ./GwSetup.exe -image the -image will preload all of the files for guildwars as part of the install. This eliminates the long lags while new areas load. Keep up the great work!

added gw switches

You might make a note or mod to your advice.

Ty for the feedback. Added to Revision of Easy-Peasy Guild Wars on Ubuntu Linux from Sat, 2008-05-03 11:24

Tags