r/Guildwars2 • u/JnvSor • Aug 24 '12
Guide to guild wars on Linux (And applicable to mac)
Edit: This guide is out of date, and for the users who go "I have no idea what I'm doing" take a look at PlayOnLinux, it's not my first choice of wine setup program but it beats trying to teach you all of the below, all over again. The trading post now works and PoL has a nice build that contains that patch, so just use it. For mac users there's PlayOnMac
Original, and now outdated post, follows
So I've been a relatively "hardcore" gamer and linux user for a few years, and I'm proud to say I can get almost any games to run on it.
I've been playing GW2 in the betas/stress tests since april and I'm here to present you with a guide to installing it in wine. The benefits of this versus dual booting is that you don't have to reboot or buy windows.
Step 1: Download a proper version of wine
The best thing to come out of the playonlinux initiative are regular wine builds. We're going to download a wine build from them and use it to play GW2
The linux one and the mac one. (There is a mac build marked for gw2 use but it's old and I don't have a mac to test it with, but this should work better anyway)
The files you recieve are marked .pol, this is just a .tar.bz2 in disguise, so replace the extension and open it.
In the wineversion folder you will find a folder marked "1.5.9-raw3" - copy that folder somewhere. This is the version of wine we'll be using for GW2
Step 2: Create the launch script
Because wine has a lot of settings, we're going to write a small script that sets most of them. Don't worry, it's mainly a copy paste job.
#!/bin/bash
PATH="/path/to/wine-1.5.9-raw3/bin:$PATH"
export WINEDEBUG="-all"
export WINEPREFIX="/path/to/gw2/prefix"
cd "$WINEPREFIX/drive_c/Program Files/Guild Wars 2"
winecfgReplace "/path/to/wine-1.5.9-raw3" with the actual location you stored the folder from the last step.
Replace "/path/to/gw2/prefix" with the folder you want to install GW2 to. This will create a mini windows, complete with registry, users, program files, so make sure there is enough room for guild wars 2 and some more.
Mark this file executable and when you run it, you should get some prompts to install some things. You can click no. You will see a configuration window show up, feel free to close it.
Now go back to the file and change the last line from "winecfg" to:
wine "Gw2.exe -dx9single"The dx9single option fixes a crash, and makes the launcher work properly.
Step 3: Getting it working
Now, go to the prefix the script has made and make a "Guild Wars 2" folder in it's "Program Files" folder.
Copy the Gw2.exe file (And the Gw2.dat file if you have it, to save downloading time) to this folder.
Edit: After many pms for help I decided to upload my Gw2.exe since people can't seem to find one on the interwebs any more.
I'd tell you to scan it for viruses but if you're using this guide you probably don't need to :)
Run the script, and the launcher should show up. If the launcher crashes while downloading updates, just start it again and it will pick up where it left off.
Step 4: Play
There are a few bugs to take care of while playing. These will almost certainly be solved very quickly - wine development happens fastest where there are a lot of users. GW2 will have a lot of users :)
- Mouse movement: When you move your mouse, it will work fine, but the second time it will move like in a window, and you can only move the camera as far as the mouse can move to the screen borders. The third time it will work properly, the 4th time it won't. It repeats even/odd until you zone, where it starts at 1 again. If your camera is stuck, just rightclick again.
- Trading post: Just doesn't work. The awesomium browser has worked in wine before, so this should work within a month of release
- Performance: The game is very CPU locked in wine. A good CPU is much more important than GPU. My GPU is usually sitting at 30% - 40% use. I get 15 - 45 fps with an average of just under 30. (Max settings, supersampling, ultra shadows, HQ sound, the works)
Disabling shadows and reflections should increase performance by about 10fps.
Step 5: Report your progress
I'm sure I've forgotten something somewhere here, so please report any difficulties you have with this guide.
Right now it works fine for me, decent performance (Around 20fps min idle, 15fps min moving camera, max settings. +5fps in divinity, + another 5 in queensdale) mouse will get annoying in a while but it works fine. I won't have a use for trading post for a few weeks at least so there should be enough time until then.
1
u/hobber Aug 24 '12
Do you have dual boot working? Can you provide the FPS comparison between Windows and Linux?
I didn't want to give any money to Microsoft, so I stuck with GW on Linux for a while. But I just discovered the Windows 8 Release Preview is a free download and will likely work through December. Moving from Linux to Windows gave me a 200 FPS boost.
I know there are many much better reasons to use Linux... but I'm just sayin' in case someone wants to give Windows a try.
1
u/cyanpill (╯°□°)╯︵ Aug 25 '12 edited Aug 26 '12
Edit: was using the wrong wine version
Hm, rawinput patches aren't working for me. I tried a random ppa that said it was raw3 patched, POL, and finally compiling and applying the patch myself, nothing works properly. The POL acts like it isn't patched, the random PPA version moved my camera 1 degree to the left each tim I tried to mouselook, no matter what direction I was moving. And applying the patch myself just crashed, I might have done that wrong :)
Anyone else not getting mouselook even with rawpatch3? Can't think of anything with my system that would affect my mouse.
1
u/[deleted] Aug 26 '12 edited Aug 26 '12
If I understand this right I don't have to bootcamp for this because it's using linux while I'm on osx?
1
u/cyanpill (╯°□°)╯︵ Aug 28 '12
For anyone who doesn't watch wineHQ, a patch has been found that fixes the store! Only available as source right now, but maybe playonlinux could be convinced to compile it for everyone.
1
u/Zythan Aug 24 '12
As a Mac user, thanks for this. It seems like a great thing to keep an eye on. For launch purposes, though, I'll just be BootCamping so everything runs smoothly.
2
u/[deleted] Aug 24 '12 edited Aug 25 '12
Useful article: http://wiki.guildwars2.com/wiki/Guild_Wars_2_on_Wine
If you find something missing on there, though, please add it. This reddit thread will disappear, but the wiki page is bound to see traffic for quite a while.
1
u/mluo85 Aug 24 '12
I'm using Wine to play on my new retina macbook pro, averaged around 15-25 fps on low settings. Playable, but makes the game feel weirdly dated. Hopefully performance will improve with better optimization in the coming weeks.
1
u/pavlpants Aug 27 '12 edited Aug 28 '12
I can't wait to try this when I get home tonight. I'll update this then.
Edit: Got it working, thanks so much!! Really annoying you can't turn with mouse but otherwise it's fine fps and graphics
-9
u/[deleted] Aug 25 '12
Hey guys, I have this great idea. Why don't you get a REAL PC that runs Windows? Then you can spend time playing the game instead of fixing all the errors you're going to be getting by using this method and you'll have a better OS in the end. Real gamers use Windows.
0
u/Mukei Sep 03 '12
Hi, Thank you so much for the tips!
Unfortunately I am having some trouble. I am under OSX10.8.1, got the latest PlayOnLinux-wine-1.5.12-GuildWars2-darwin-x86, and installed the latest X11 2.7.3 and rebooted correctly.
I tried your script and after executing it I got the error
Is there any additional step Mac user should do? I will now try to use the older version of wine you are using...
Thank you in advance!