Both sides previous revisionPrevious revisionNext revision | Previous revision |
games:wine:guild_wars_2 [2021/12/13 14:20] – Sean Rhone | games:wine:guild_wars_2 [2024/08/13 16:14] (current) – removed Sean Rhone |
---|
====== Information ====== | |
| |
* [[https://www.guildwars2.com|Guild Wars 2]] | |
* Standalone | |
* 64-bit | |
| |
===== Wine Resources ===== | |
| |
* [[https://appdb.winehq.org/objectManager.php?sClass=application&iId=14130|WineHQ AppDB]] | |
* [[https://lutris.net/games/guild-wars-2/|Lutris]] | |
| |
===== Prerequisites ===== | |
| |
* [[distros:fedora_workstation_gnome|Fedora Workstation]] | |
* [[notes:wine|Wine]] | |
| |
===== Notes ===== | |
| |
* ''-dx9single'' should not be used with Esync enabled as it reduces performance | |
| |
====== Install ====== | |
| |
===== Guild Wars 2 ===== | |
| |
* :!: When the launcher is shown, the desktop environment slows down noticeably | |
* Install to default directory when prompted ((''C:\Program Files\Guild Wars 2'')) | |
* Log-in when launcher progresses enough | |
* Ideally save the username and password, and enable Auto-play | |
* 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 | |
| |
===== Wine Configuration ===== | |
| |
* :!: Use a virtual desktop to potentially avoid the launcher causing the DE to slow to a crawl | |
* At 4K native resolution, use a virtual desktop of ''2560×1440'' and ''192'' dpi | |
* At 1080p native resolution, use a virtual desktop of ''1280x720'' and default ''96'' dpi | |
* [x] Automatically capture the mouse in full-screen windows | |
| |
WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' winecfg | |
| |
===== Clean-up ===== | |
| |
**** | |
| |
rm -Rf ~/'Downloads/Guild Wars 2' ~/'Desktop/Guild Wars 2.desktop' && sync | |
| |
====== DXVK ====== | |
| |
===== Information ===== | |
| |
* https://github.com/doitsujin/dxvk | |
| |
* D3D9 to Vulkan | |
| |
===== Download ===== | |
| |
* https://github.com/doitsujin/dxvk/releases | |
| |
===== Install ===== | |
| |
**** | |
| |
rm -rf '/tmp/dxvk-'* && cd '/tmp' && tar -xvzf ~/'Downloads/dxvk-'*'.tar.gz' && chmod +x '/tmp/dxvk-'*'/setup_dxvk.sh' && cd ~ && WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' '/tmp/dxvk-'*'/setup_dxvk.sh' install && rm -rf '/tmp/dxvk-'* && mkdir -p ~/'Wine Prefixes/Guild Wars 2/dxvk_state_cache' && sync | |
| |
===== D3D Dependencies ===== | |
| |
* https://github.com/Joshua-Ashton/d9vk/issues/200 | |
| |
WINEPREFIX=~/'Wine Prefixes/Guild Wars 2' winetricks d3dx9 d3dcompiler_43 | |
| |
====== 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' | |
| |
<code> | |
[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 DXVK_LOG_LEVEL='none' DXVK_STATE_CACHE_PATH='/home/CHANGEME/Wine Prefixes/Guild Wars 2/dxvk_state_cache' MESA_GLSL_CACHE_DIR='/home/CHANGEME/Wine Prefixes/Guild Wars 2' __NV_PRIME_RENDER_OFFLOAD='1' __VK_LAYER_NV_optimus='NVIDIA_only' 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=1431_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 DXVK_LOG_LEVEL='none' DXVK_STATE_CACHE_PATH='/home/CHANGEME/Wine Prefixes/Guild Wars 2/dxvk_state_cache' MESA_GLSL_CACHE_DIR='/home/CHANGEME/Wine Prefixes/Guild Wars 2' 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 DXVK_LOG_LEVEL='none' DXVK_STATE_CACHE_PATH='/home/CHANGEME/Wine Prefixes/Guild Wars 2/dxvk_state_cache' MESA_GLSL_CACHE_DIR='/home/CHANGEME/Wine Prefixes/Guild Wars 2' 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</code> | |
| |
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' && | |
| |
DXVK_LOG_LEVEL='none' | |
| |
WINEDEBUG='-all' | |
| |
GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;GPU-load,requested-VRAM+VRAM-usage;fps' | |
| |
__NV_PRIME_RENDER_OFFLOAD='1' __VK_LAYER_NV_optimus='NVIDIA_only' | |
| |
DXVK_STATE_CACHE_PATH=~/'Wine Prefixes/Guild Wars 2/dxvk_state_cache' MESA_GLSL_CACHE_DIR=~/'Wine Prefixes/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' -autologin | |
| |
<code>-dx9single</code> | |
| |
<code>-forwardrenderer</code> | |
| |
<code>-maploadinfo</code> | |
| |
==== 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' | |