User Tools

Site Tools


games:wine:guild_wars_2

Information

Prerequisites

Notes

  • If using an Esync build of Wine, -dx9single is not needed and will lower performance
  • As of 2019/01/25, on 2 Opteron 4386's, GW2's performance is terrible (20 FPS) with Esync and Gallium Nine

Install

Guild Wars 2

  • Install to default directory when prompted 2)
  • Log-in when launcher progresses enough
  • Select AUTO-PLAY and close the launcher
mkdir -p ~/'Wine Prefixes' ~/'Downloads/Guild Wars 2' && wget -O ~/'Downloads/Guild Wars 2/Gw2Setup.exe' 'https://account.arena.net/content/download/gw2/win/64' && WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' WINEARCH='win64' wine explorer /desktop='GW2','1280x720' ~/'Downloads/Guild Wars 2/Gw2Setup.exe'

Restore Gw2.dat

  • This expects Gw2.dat in the ~/Downloads/Guild Wars 2 folder
mv ~/'Downloads/Guild Wars 2/Gw2.dat' ~/'Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && sync

Sandbox

WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' winetricks sandbox && sync

Virtual Desktop

  • Needed to prevent the launcher from eating resources and essentially locking up the system
  • 2375×1410 suites a 4K screen well at 192 dpi
WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' winetricks vd=2375x1410
WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' winetricks vd=1280x720

Gallium Nine

WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' winecfg

Video Memory

  • 8192MB
WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' wine reg add 'HKCU\Software\Wine\Direct3D' /v 'VideoMemorySize' /t 'REG_SZ' /d '8192' /f

DPI

  • 192 dpi
  • This affects cursor size, launcher size, and UI/HUD scaling
WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' wine reg add 'HKLM\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v 'LogPixels' /t 'REG_DWORD' /d '192' /f

Mouse Capture

  • winecfg → Graphics → Automatically capture the mouse in full-screen windows
  • :!: This is required in-game if using an emulated desktop at all
  • TODO: Why are there two methods here?
WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' wine reg add 'HKCU\Software\Wine\X11 Driver' /v 'GrabFullscreen' /t 'REG_SZ' /d 'Y' /f
WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' winetricks grabfullscreen=y

Clean Up

rm -Rf ~/'Downloads/Guild Wars 2' ~/'Desktop/Guild Wars 2.desktop' && sync

Desktop Launcher

Initial

rm -Rf ~/'.local/share/applications/wine/Programs/Guild Wars 2' && mkdir -p ~/'.local/share/applications/wine/Programs/Guild Wars 2'

Guild Wars 2

nano ~/'.local/share/applications/wine/Programs/Guild Wars 2/Guild Wars 2.desktop'
[Desktop Entry]
Name=Guild Wars 2
Comment=Guild Wars 2 is an online role-playing game with fast-paced action combat, a rich and detailed universe of stories, awe-inspiring landscapes to explore, two challenging player vs. player modes—and no subscription fees!
Categories=Game;AdventureGame;RolePlaying
Exec=env WINEDEBUG='-all' WINEPREFIX='/home/CHANGEME/Wine Prefixes/Guild Wars 2' wine '/home/CHANGEME/Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -autologin
Type=Application
StartupNotify=true
Path=/home/CHANGEME/Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2
Icon=0637_Gw2-64.0
Actions=Kill;Update;Repair;Cache;

[Desktop Action Kill]
Exec=env WINEPREFIX='/home/CHANGEME/Wine Prefixes/Guild Wars 2' wineserver -k
Name=Force-close

[Desktop Action Update]
Exec=env WINEDEBUG='-all' WINEPREFIX='/home/CHANGEME/Wine Prefixes/Guild Wars 2' wine '/home/CHANGEME/Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image
Name=Update Game Data

[Desktop Action Repair]
Exec=env WINEDEBUG='-all' WINEPREFIX='/home/CHANGEME/Wine Prefixes/Guild Wars 2' wine '/home/CHANGEME/Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -repair
Name=Check and Repair Data

[Desktop Action Cache]
Exec=bash -c "rm -Rf ~/'Wine Prefixes/Guild Wars 2/drive_c/users/'$USER'/Application Data/Guild Wars 2/Coherent Dumps/'* ~/'Wine Prefixes/Guild Wars 2/drive_c/windows/temp/'* ~/'Wine Prefixes/Guild Wars 2/drive_c/users/'$USER'/Temp/'* && sync"
Name=Cache Clean-up
sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/Guild Wars 2/Guild Wars 2.desktop'

Quick Commands

Winecfg

WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' winecfg

Winetricks

WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' winetricks

Registry Editor

WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' regedit

Kill

WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' wineserver -k

Execute

Guild Wars 2

cd ~/'Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && 
WINEDEBUG='-all'
GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;GPU-load,requested-VRAM+VRAM-usage;fps'
WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' wine ~/'Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -autologin
-dx9single
-forwardrenderer
-maploadinfo

Updater

cd ~/'Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' wine ~/'Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image && sync

Repair

cd ~/'Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' wine ~/'Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -repair && sync

File Manager

Root

gio open ~/'Wine Prefixes/Guild Wars 2/drive_c/Program Files/Guild Wars 2'
2)
C:\Program Files\Guild Wars 2
games/wine/guild_wars_2.txt · Last modified: 2019/02/24 07:46 by Sean Rhone