User Tools

Site Tools


games:wine:diablo_2_resurrected

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
games:wine:diablo_2_resurrected [2021/11/24 15:51] – [Install] Sean Rhonegames:wine:diablo_2_resurrected [2024/02/08 18:29] (current) Sean Rhone
Line 4: Line 4:
   * Diablo II: Resurrected ((https://diablo2.blizzard.com))   * Diablo II: Resurrected ((https://diablo2.blizzard.com))
   * 64-bit   * 64-bit
 +  * [[https://www.youtube.com/watch?v=07pNpFbNlEg|Gameplay Video]]
  
 ===== Prerequisites ===== ===== Prerequisites =====
Line 12: Line 13:
 ===== Notes ===== ===== Notes =====
  
-  * TODO+  * This is the modern client that has enhanced graphics and requires the Battle.net client; see [[games:wine:diablo_2|Diablo II]] for the original version 
 +  * 2023/09/14: Resurrected graphics has too-low of FPS on Intel UHD 630; switch to Legacy graphics in-game ((actual in-game and not main menu)) by pressing ''G'' 
 +  * :!: Using a game controller requires the hardware specs to run Resurrected graphics at reasonable framerates, even if switched to Legacy graphics ((presumably Resurrected assets need to be running for the controller mappings and UI being done by the game engine)) 
 +  * [[games:wine:diablo_2_resurrected?rev=1688917348#nvidia_libs|See this notes section from an older revision]] for ''nvidia-libs'' and DLSS ((until the notes are re-added to this main page, assume the commands may need refactored in 2024+)) 
 +  * :!: When directly-launching ''D2R.exe'' with ''-username'' and ''-password'', if the Battle.net account or the system flags you for captchas, log-in isn't possible 
 + 
 +====== Battle.net Client Broken ====== 
 + 
 +  * :!: 2023/12: See [[notes:battle.net_client_broken_2023|notes]] 
 +  * These notes still mostly work but will require undocumented tricks to navigate the Battle.net client, and it might not be possible to clean-install games in this state
  
 ====== Install ====== ====== Install ======
Line 19: Line 29:
  
   * Install to default directory when prompted ((C:/Program Files (x86)/Battle.net))   * Install to default directory when prompted ((C:/Program Files (x86)/Battle.net))
-  * [ ] Launch Battle.net when you start your computer 
   * Log-in   * Log-in
-  * :!: Change Battle.net App settings+  * Change Battle.net App settings ((don't auto-start, exit on game launch))
   * Close   * Close
  
-  mkdir -p ~/'Wine Prefixes' && wget 'https://us.battle.net/download/getInstaller?os=win&installer=Battle.net-Setup.exe&id=undefined' -O ~/'Downloads/Battle.net-Setup.exe' && WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' WINEARCH='win64' wine ~/'Downloads/Battle.net-Setup.exe'+  mkdir -p ~/'.wine' && wget 'https://us.battle.net/download/getInstaller?os=win&installer=Battle.net-Setup.exe&id=undefined' -O ~/'Downloads/Battle.net-Setup.exe' && WINEPREFIX=~/'.wine/Diablo II Resurrected' WINEARCH='win64' wine ~/'Downloads/Battle.net-Setup.exe'
  
 ===== Restore Data ===== ===== Restore Data =====
Line 30: Line 39:
 **** ****
  
-  mv ~/'Downloads/Diablo II Resurrected' ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)' && sync+  mv ~/'Downloads/Diablo II Resurrected' ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)' && sync
  
 ===== Diablo II Resurrected ===== ===== Diablo II Resurrected =====
  
-  * Install Diablo II Resurrected ((Locate the game does not work; the install process will detect the existing data files and patch as-necessary))+  * Install Diablo II Resurrected ((Locate the game may not work; the install process will detect the existing data files, fail, and install with the Update process)) 
 +  * TODO: Test if Locate game works; this seems to have been improved on Windows
  
-  cd ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net' && WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' wine ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'+  cd ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net' && WINEPREFIX=~/'.wine/Diablo II Resurrected' wine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'
  
 ===== Clean Up ===== ===== Clean Up =====
Line 42: Line 52:
 **** ****
  
-  rm -f ~/'Downloads/Battle.net-Setup.exe' ~/'Desktop/Battle.net.desktop' ~/'Desktop/Diablo II Resurrected.desktop' && sync+  rm -f ~/'Downloads/Battle.net-Setup.exe' ~/'Desktop/Battle.net.desktop' ~/'Desktop/Diablo II Resurrected.desktop' && cd ~ && sync
  
-====== DXVK ======+====== Libraries ======
  
-===== Information =====+===== DXVK =====
  
-  * https://github.com/doitsujin/dxvk+  * https://github.com/doitsujin/dxvk/actions ((need to be signed into GitHub, and select the latest ''master'' artifacts package)) 
 +  * Provides DXGI for ''vkd3d-proton'' 
 +  * Since D2R can only use D3D12 and thus ''vkd3d-proton'', <del>there's no need for DXVK's cache folder</del> 
 +  * TODO: Add DXVK's cache folder as the Battle.net client probably uses it anyway
  
-  * D3D11 to Vulkan +  ls ~/'Downloads/dxvk-master-'*'.zip' && rm -Rf '/tmp/dxvk-master' && mkdir -p '/tmp/dxvk-master' && unzip ~/'Downloads/dxvk-master-'*'.zip' -d '/tmp/dxvk-master/' && cp --backup '/tmp/dxvk-master/x64/'*'.dll' ~/'.wine/Diablo II Resurrected/drive_c/windows/system32/' && cp --backup '/tmp/dxvk-master/x32/'*'.dll' ~/'.wine/Diablo II Resurrected/drive_c/windows/syswow64/' && WINEPREFIX=~/'.wine/Diablo II Resurrected' winetricks 'd3d9=native' 'd3d10core=native' 'd3d11=native' 'dxgi=native' && sync
-  :!: This is only useful for DXGI +
-  :!: May not be necessary for Fedora, but it won't necessarily hurt anything+
  
-===== Download ===== +===== vkd3d-proton =====
- +
-  * 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/Diablo II Resurrected' '/tmp/dxvk-'*'/setup_dxvk.sh' install && rm -rf '/tmp/dxvk-'* && mkdir -p ~/'Wine Prefixes/Diablo II Resurrected/dxvk_state_cache' && sync +
- +
-====== VKD3D-Proton ====== +
- +
-===== Information ===== +
- +
-  * https://github.com/HansKristian-Work/vkd3d-proton+
  
 +  * https://github.com/HansKristian-Work/vkd3d-proton ((need to be signed into GitHub, and select the latest ''master'' artifacts package))
   * D3D12 to Vulkan   * D3D12 to Vulkan
  
-===== Download ===== +  ls ~/'Downloads/vkd3d-proton-master-'*'.zip' && rm -Rf '/tmp/vkd3d-proton-master' && mkdir -'/tmp/vkd3d-proton-master&& unzip ~/'Downloads/vkd3d-proton-master-'*'.zip' -d '/tmp/vkd3d-proton-master/' && cp --backup '/tmp/vkd3d-proton-master/x64/'*'.dll' ~/'.wine/Diablo II Resurrected/drive_c/windows/system32/' && cp --backup '/tmp/vkd3d-proton-master/x86/'*'.dll' ~/'.wine/Diablo II Resurrected/drive_c/windows/syswow64/' && WINEPREFIX=~/'.wine/Diablo II Resurrected' winetricks 'd3d12=native'd3d12core=native' && mkdir -p ~/'.wine/Diablo II Resurrected/vkd3d_shader_cache' && sync
- +
-  * https://github.com/HansKristian-Work/vkd3d-proton/actions/workflows/artifacts.yml +
-  :!: Need to be signed into GitHub +
- +
-===== Install ===== +
- +
-  * :!: It's not clear if VKD3D-Proton has a state cache folder like DXVK +
- +
-  rm -Rf '/tmp/vkd3d-proton' && unzip -'/tmp/vkd3d-proton' ~/'Downloads/vkd3d-proton-'*'.zip' && chmod +x '/tmp/vkd3d-proton/setup_vkd3d_proton.sh&& cd ~ && WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' '/tmp/vkd3d-proton/setup_vkd3d_proton.shinstall && rm -Rf '/tmp/vkd3d-proton' && sync +
- +
-===== Windows 10 ===== +
- +
-**** +
- +
-  WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' winetricks 'win10'+
  
 ====== Desktop Launcher ====== ====== Desktop Launcher ======
Line 99: Line 82:
 ===== Diablo II Resurrected (Battle.net App) ===== ===== Diablo II Resurrected (Battle.net App) =====
  
-  * :!: AMD graphics cards need ''RADV_DEBUG=nohiz'' to avoid everything having black textures+  * :!: The direct-launch option requires modifying and specifying a Battle.net account email and password 
 +  * TODO: Check for offline flag(s) and add separate direct launch option ([[https://d2mods.info/forum/viewtopic.php?f=217&t=67329&p=503731#p503731|source 1]], [[https://old.reddit.com/r/Diablo/comments/qb6ife/psa_you_can_enable_infinite_respecs_in_offline/hhd1g38/|source 2]])
  
   nano ~/'.local/share/applications/wine/Programs/Diablo II Resurrected/Diablo II Resurrected.desktop'   nano ~/'.local/share/applications/wine/Programs/Diablo II Resurrected/Diablo II Resurrected.desktop'
Line 106: Line 90:
 [Desktop Entry] [Desktop Entry]
 Name=Diablo II: Resurrected Name=Diablo II: Resurrected
-Comment=Pursue the mysterious Dark Wanderer and fight the denizens of hell as you uncover the fate of the Prime Evils Diablo, Mephisto, and Baal. +Categories=Game;AdventureGame;RolePlaying 
-Categories=Game +Exec='/bin/bash-c "cd ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Diablo II Resurrected' VKD3D_SHADER_CACHE_PATH=~/'.wine/Diablo II Resurrected/vkd3d_shader_cacheWINEPREFIX=~/'.wine/Diablo II Resurrectedwine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/Diablo II Resurrected Launcher.exe'"
-Exec=env RADV_DEBUG='nohizMESA_GLSL_CACHE_DIR='/home/CHANGEME/Wine Prefixes/Diablo II Resurrected' WINEDEBUG=-all WINEPREFIX='/home/CHANGEME/Wine Prefixes/Diablo II Resurrected' wine '/home/CHANGEME/Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/Diablo II Resurrected Launcher.exe'+
 Type=Application Type=Application
 StartupNotify=true StartupNotify=true
-Path=/home/CHANGEME/Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected +Icon=B271_Diablo II Resurrected Launcher.0 
-Icon=2FCD_Diablo II Resurrected Launcher.0.png +StartupWMClass=d2r.exe 
-Actions=Kill;Cache;+Actions=Cache;Kill;Notes;Direct; 
 + 
 +[Desktop Action Cache] 
 +Exec='/bin/bash' -c "rm -Rf ~/'.wine/Diablo II Resurrected/mesa_shader_cache/'* ~/'.wine/Diablo II Resurrected/vkd3d_shader_cache/'* && sync && notify-send 'The Diablo II Resurrected cache has been cleaned.'" 
 +Name=Cache Cleanup
  
 [Desktop Action Kill] [Desktop Action Kill]
-Exec=env WINEPREFIX='/home/CHANGEME/Wine Prefixes/Diablo II Resurrected' wineserver -k+Exec='/bin/bash' -c "WINEPREFIX=~/'.wine/Diablo II Resurrected' wineserver --kill"
 Name=Force-close Name=Force-close
  
-[Desktop Action Cache+[Desktop Action Notes] 
-Exec=bash -c "rm -Rf ~/'Wine Prefixes/Diablo II Resurrected/mesa_shader_cache' ~/'Wine Prefixes/Diablo II Resurrected/drive_c/windows/temp/'~/'Wine Prefixes/Diablo II Resurrected/drive_c/users/'$USER'/Temp/'* && sync+StartupNotify=false 
-Name=Cache Clean-up</code>+Exec='/bin/bash-c "gio open 'https://wiki.realmofespionage.xyz/games:wine:diablo_2_resurrected'" 
 +Name=Installation Notes 
 + 
 +[Desktop Action Direct] 
 +StartupNotify=false 
 +Exec='/bin/bash' -c "cd ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected&& PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Diablo II Resurrected' VKD3D_SHADER_CACHE_PATH=~/'.wine/Diablo II Resurrected/vkd3d_shader_cache' WINEPREFIX=~/'.wine/Diablo II Resurrected' wine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/D2R.exe-username espionage724@x -password x
 +Name=Launch D2R without Battle.net
  
-  sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/Diablo II Resurrected/Diablo II Resurrected.desktop'+# End</code>
  
 ====== Quick Commands ====== ====== Quick Commands ======
Line 131: Line 124:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' winecfg+  WINEPREFIX=~/'.wine/Diablo II Resurrected' winecfg
  
 ===== Winetricks ===== ===== Winetricks =====
Line 137: Line 130:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' winetricks+  WINEPREFIX=~/'.wine/Diablo II Resurrected' winetricks
  
 ===== Registry Editor ===== ===== Registry Editor =====
Line 143: Line 136:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' regedit+  WINEPREFIX=~/'.wine/Diablo II Resurrected' regedit
  
 ===== Kill ===== ===== Kill =====
Line 149: Line 142:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' wineserver -k+  WINEPREFIX=~/'.wine/Diablo II Resurrected' wineserver --kill
  
 ===== Execute ===== ===== Execute =====
Line 155: Line 148:
 ==== Battle.net App ==== ==== Battle.net App ====
  
-  cd ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net' && +  * ''Battle.net Launcher.exe''
  
-  WINEDEBUG='-all' +  cd ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net' && PULSE_LATENCY_MSEC='400MESA_SHADER_CACHE_DIR=~/'.wine/Diablo II Resurrected' VKD3D_SHADER_CACHE_PATH=~/'.wine/Diablo II Resurrected/vkd3d_shader_cache' WINEPREFIX=~/'.wine/Diablo II Resurrected' WINEDEBUG='' wine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'
- +
-  RADV_DEBUG='nohiz' +
- +
-  WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' wine ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'+
  
 ==== Diablo II Resurrected (Battle.net App) ==== ==== Diablo II Resurrected (Battle.net App) ====
  
-  cd ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected' && +  * ''Diablo II Resurrected Launcher.exe''
  
-  WINEDEBUG='-all' +  cd ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected' && PULSE_LATENCY_MSEC='400MESA_SHADER_CACHE_DIR=~/'.wine/Diablo II Resurrected' VKD3D_SHADER_CACHE_PATH=~/'.wine/Diablo II Resurrected/vkd3d_shader_cache' WINEPREFIX=~/'.wine/Diablo II Resurrected' WINEDEBUG='' wine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/Diablo II Resurrected Launcher.exe'
- +
-  RADV_DEBUG='nohiz' +
- +
-  WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' wine ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/Diablo II Resurrected Launcher.exe'+
  
 ==== Diablo II Resurrected ==== ==== Diablo II Resurrected ====
  
-  cd ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected' && +  ''D2R.exe'' 
 +  * Useful for quick graphical testing as this bypasses Battle.net launcher and boots D2R directly 
 +  * :!: This may fail to load online characters occasionally 
 +  * TODO: ''-username'', ''-password'', and other options ([[https://d2mods.info/forum/viewtopic.php?f=217&t=67329&p=503731#p503731|source 1]], [[https://old.reddit.com/r/Diablo/comments/qb6ife/psa_you_can_enable_infinite_respecs_in_offline/hhd1g38/|source 2]])
  
-  WINEDEBUG='-all' +  cd ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected' && PULSE_LATENCY_MSEC='400MESA_SHADER_CACHE_DIR=~/'.wine/Diablo II Resurrected' VKD3D_SHADER_CACHE_PATH=~/'.wine/Diablo II Resurrected/vkd3d_shader_cache' WINEPREFIX=~/'.wine/Diablo II Resurrected' WINEDEBUG='' wine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/D2R.exe'
- +
-  RADV_DEBUG='nohiz' +
- +
-  WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' wine ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/D2R.exe'+
  
 ===== File Manager ===== ===== File Manager =====
Line 189: Line 173:
 **** ****
  
-  gio open ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected'+  gio open ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected' 
 + 
 +==== Saves ==== 
 + 
 +**** 
 + 
 +  gio open ~/'.wine/Diablo II Resurrected/drive_c/users/'$USER'/Saved Games/Diablo II Resurrected'
  
/var/www/wiki/data/attic/games/wine/diablo_2_resurrected.1637787101.txt.gz · Last modified: 2021/11/24 15:51 by Sean Rhone