====== Information ====== * [[https://www.guildwars2.com|Guild Wars 2]] * Standalone * 64-bit ===== Prerequisites ===== * [[bsd;freebsd_14.3_xfce|FreeBSD 14.3 (Xfce)]] * [[bsd;notes;wine|Wine]] (old WoW64) ====== Install ====== ===== Guild Wars 2 ===== * Install to default directory ((''C:\Program Files\Guild Wars 2'')) * Email/pass -> Save -> ''[x]'' Auto-Play -> Close mkdir -p ~/'.wine' ~/'Downloads/Guild Wars 2' && wget -O ~/'Downloads/Guild Wars 2/Gw2Setup.exe' 'https://cloudfront.guildwars2.com/client/branches/Gw2Setup-64.exe' && WINEPREFIX=~/'.wine/Guild Wars 2' WINEARCH='win64' WINEDLLOVERRIDES='winemenubuilder.exe=d' wine ~/'Downloads/Guild Wars 2/Gw2Setup.exe' ===== Restore Gw2.dat ===== mv ~/'Downloads/GW2/Gw2.dat' ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' ls ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2.dat' ===== Arial Font ===== * Fixes CEF windows (trading post) * [[https://forums.freebsd.org/threads/what-about-gaming-on-freebsd.723/page-13#post-713261|Source]] WINEPREFIX=~/'.wine/Guild Wars 2' winetricks 'arial' ===== Clean-up ===== **** rm -Rf ~/'Downloads/Guild Wars 2' ====== Libraries ====== ===== DXVK ===== ==== master ==== * https://github.com/doitsujin/dxvk/actions ((need to be signed into GitHub, and select the latest ''master'' artifacts package)) * Last tested: ''dxvk-master-402c290e650aba3df2d1b0264c45f87247545e82.zip'' rm -Rf '/tmp/dxvk-master' && unzip ~/'Downloads/dxvk-master-'*'.zip' -d '/tmp/dxvk-master' && mv -fv '/tmp/dxvk-master/x64/d3d11.dll' '/tmp/dxvk-master/x64/dxgi.dll' ~/'.wine/Guild Wars 2/drive_c/windows/system32' ==== Dll Overrides ==== **** WINEPREFIX=~/'.wine/Guild Wars 2' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v 'd3d11' /t 'REG_SZ' /d 'native' /f && WINEPREFIX=~/'.wine/Guild Wars 2' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v 'dxgi' /t 'REG_SZ' /d 'native' /f ====== Desktop Launcher ====== ===== Guild Wars 2 ===== mkdir -p ~/'.local/share/applications/wine/Programs/Guild Wars 2' ~/'Documents/Guild Wars 2/Screens' && ee ~/'.local/share/applications/wine/Programs/Guild Wars 2/Guild Wars 2.desktop' && sed -i -e 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/Guild Wars 2/Guild Wars 2.desktop' && update-desktop-database --quiet ~/'.local/share/applications' [Desktop Entry] Name=Guild Wars 2 Categories=Game; Exec='/bin/sh' -c "cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -autologin -bmp -nodelta -mapLoadinfo -ignorecoherentgpucrash -mumble 0 -useOldFov" Type=Application StartupNotify=true Icon=/home/CHANGEME/.wine/Icons/GW2-256.0.ico StartupWMClass=gw2-64.exe SingleMainWindow=true Actions=Update;Screenshots;Kill;Repair;Notes; [Desktop Action Update] Exec='/bin/sh' -c "cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image -nodelta" Name=Update Game Data [Desktop Action Screenshots] StartupNotify=false Exec='/bin/sh' -c "gio open ~/'Documents/Guild Wars 2/Screens'" Name=Screenshots [Desktop Action Kill] Exec='/bin/sh' -c "WINEPREFIX=~/'.wine/Guild Wars 2' wineserver --kill" Name=Force-close [Desktop Action Repair] Exec='/bin/sh' -c "cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image -nodelta -repair" Name=Repair Game Data [Desktop Action Notes] StartupNotify=false Exec='/bin/sh' -c "gio open 'https://wiki.realmofespionage.xyz/games;bsd;wine;guild_wars_2'" Name=Install Notes # End ==== Icon ==== **** mkdir -p ~/'.wine/Icons' && cd ~/'.wine/Icons' && wrestool --output='GW2-256.0.ico' --extract --type='14' --name='1' ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' && cd ~ ====== Quick Commands ====== ===== Winecfg ===== **** WINEPREFIX=~/'.wine/Guild Wars 2' winecfg ===== Winetricks ===== **** WINEPREFIX=~/'.wine/Guild Wars 2' winetricks ===== Registry Editor ===== **** WINEPREFIX=~/'.wine/Guild Wars 2' regedit ===== Kill ===== **** WINEPREFIX=~/'.wine/Guild Wars 2' wineserver --kill ===== Execute ===== ==== Guild Wars 2 ==== **** cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -autologin -bmp -nodelta -mapLoadinfo -ignorecoherentgpucrash -mumble 0 -useOldFov ==== Updater ==== * ''-image'' cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image -nodelta ==== Repair ==== * ''-repair'' cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -image -nodelta -repair gio open ~/'Documents/Guild Wars 2/VerifyResults.log' ==== Network Diagnostics ==== * ''-diag'' cd ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2' && WINEPREFIX=~/'.wine/Guild Wars 2' wine ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe' -diag gio open ~/'Documents/Guild Wars 2/NetworkDiag.log' ===== Root Folder ===== **** gio open ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2'