Both sides previous revisionPrevious revisionNext revision | Previous revision |
games:wine:guild_wars_2 [2023/09/27 04:42] – Sean Rhone | games:wine:guild_wars_2 [2023/09/27 06:05] (current) – Sean Rhone |
---|
* Standalone | * Standalone |
* 64-bit | * 64-bit |
* :!: 2022/10/01: This does not work as-is with Wine Staging as it needs a patch ((''fixme:vulkan:X11DRV_vkCreateWin32SurfaceKHR Application requires child window rendering, which is not implemented yet'')), therefore either a custom Wine package is needed, Lutris, or Steam/Proton (TODO: Get the actual issue report URL for it) | |
| |
===== Wine Resources ===== | ===== Wine Resources ===== |
| |
* [[distros:fedora_workstation_gnome|Fedora Workstation]] | * [[distros:fedora_workstation_gnome|Fedora Workstation]] |
* :!: [[notes:wine|Wine]] ((GW2 benefits from Esync significantly)) | * [[notes:wine|Wine]] |
| |
===== Notes ===== | |
| |
* ''-dx9single'' reduces performance when Esync is enabled by at least 15 FPS | |
| |
====== Install ====== | ====== Install ====== |
* Close the launcher | * Close the launcher |
| |
mkdir -p ~/'.wine' ~/'Downloads/Guild Wars 2' && wget -O ~/'Downloads/Guild Wars 2/Gw2Setup.exe' 'https://account.arena.net/content/download/gw2/win/64' && WINEPREFIX=~/'.wine/Guild Wars 2' WINEARCH='win64' wine ~/'Downloads/Guild Wars 2/Gw2Setup.exe' | mkdir -p ~/'.wine' ~/'Downloads/Guild Wars 2' && wget -O ~/'Downloads/Guild Wars 2/Gw2Setup.exe' 'https://account.arena.net/content/download/gw2/win/64' && MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2' WINEPREFIX=~/'.wine/Guild Wars 2' WINEARCH='win64' wine ~/'Downloads/Guild Wars 2/Gw2Setup.exe' |
| |
===== Restore Gw2.dat ===== | ===== Restore Gw2.dat ===== |
| |
* This expects ''Gw2.dat'' in the ''~/Downloads/Guild Wars 2'' folder | * This expects ''Gw2.dat'' in the ''~/Downloads/Guild Wars 2'' folder |
| * 2023/09/27: ''Gw2.dat'' after ''-image'' is 74.7 GB |
| |
mv ~/'Downloads/Guild Wars 2/Gw2.dat' ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && sync | mv ~/'Downloads/Guild Wars 2/Gw2.dat' ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && sync |
| |
===== Wine Configuration ===== | |
| |
* 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/Guild Wars 2' winecfg | |
| |
===== Clean-up ===== | ===== Clean-up ===== |
**** | **** |
| |
rm -Rf ~/'Downloads/Guild Wars 2' ~/'Desktop/Guild Wars 2.desktop' && sync | rm -Rf ~/'Downloads/Guild Wars 2' ~/'Desktop/Guild Wars 2.desktop' ~/'.wine/Guild Wars 2/'*'.dxvk-cache' && sync |
| |
====== Libraries ====== | ====== Libraries ====== |
**** | **** |
| |
rm -Rf ~/'.local/share/applications/wine/Programs/Guild Wars 2' && mkdir -p ~/'.local/share/applications/wine/Programs/Guild Wars 2' | rm -Rf ~/'.local/share/applications/wine/Programs/Guild Wars 2' |
| |
===== Guild Wars 2 ===== | ===== Guild Wars 2 ===== |
| |
nano ~/'.local/share/applications/wine/Programs/Guild Wars 2/Guild Wars 2.desktop' | mkdir -p ~/'.local/share/applications/wine/Programs/Guild Wars 2' && nano ~/'.local/share/applications/wine/Programs/Guild Wars 2/Guild Wars 2.desktop' |
| |
<code> | <code> |
Name=Guild Wars 2 | Name=Guild Wars 2 |
Categories=Game;AdventureGame;RolePlaying | Categories=Game;AdventureGame;RolePlaying |
Exec='/bin/bash' -c "cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -autologin" | Exec='/bin/bash' -c "cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -autologin -bmp" |
Type=Application | Type=Application |
StartupNotify=true | StartupNotify=true |
| |
[Desktop Action Update] | [Desktop Action Update] |
Exec='/bin/bash' -c "cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image" | Exec='/bin/bash' -c "cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image" |
Name=Update Game Data | Name=Update Game Data |
| |
Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/games:wine:guild_wars_2'" | Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/games:wine:guild_wars_2'" |
Name=Installation Notes | Name=Installation Notes |
| |
# End</code> | |
| |
===== Steam Launcher ===== | |
| |
* Guild Wars 2 | |
| |
Guild Wars 2 | |
| |
nano ~/'.wine/Guild Wars 2/steam-launcher.sh' && chmod +x ~/'.wine/Guild Wars 2/steam-launcher.sh' | |
| |
<code> | |
#!/bin/sh | |
| |
# Environment Variables | |
export MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' | |
export DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_state_cache' | |
export WINEPREFIX=~/'.wine/Guild Wars 2' | |
| |
# Working Directory | |
cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' | |
| |
# Launch | |
wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -autologin | |
| |
# End</code> | # End</code> |
| |
==== Guild Wars 2 ==== | ==== Guild Wars 2 ==== |
| |
| **** |
| |
cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' WINEDEBUG='' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -autologin | cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' WINEDEBUG='' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -autologin |
| |
<code>-dx9single</code> | === Other === |
| |
| * https://wiki.guildwars2.com/wiki/Command_line_arguments |
| |
| <code>-prefreset</code> |
| |
<code>-forwardrenderer</code> | <code>-forwardrenderer</code> |
==== Updater ==== | ==== Updater ==== |
| |
**** | * ''Gw2-64.exe -image'' |
| |
cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' WINEDEBUG='' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image | cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' WINEDEBUG='' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image |
| |
==== Repair ==== | ==== Repair ==== |
| |
**** | * ''Gw2-64.exe -repair'' |
| |
cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' WINEDEBUG='' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -repair | cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Guild Wars 2' DXVK_STATE_CACHE_PATH=~/'.wine/Guild Wars 2/dxvk_shader_cache' WINEPREFIX=~/'.wine/Guild Wars 2' WINEDEBUG='' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -repair |