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/10/10 20:10] 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
  
-====== Windows 10 ======+====== Libraries ======
  
-****+===== DXVK =====
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrectedwinetricks 'win10'+  * 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
  
-====== DXVK ======+  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
  
-===== Information ===== +===== vkd3d-proton =====
- +
-  * https://github.com/doitsujin/dxvk +
- +
-  * D3D11 to Vulkan +
- +
-===== Download ===== +
- +
-  * https://github.com/doitsujin/dxvk/releases +
- +
-===== Install ===== +
- +
-**** +
- +
-  rm -rf '/tmp/dxvk-'* && cd '/tmp' && tar -xvzf ~/'Downloads/dxvk-'*'.tar.gz' && 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+
  
 ====== Desktop Launcher ====== ====== Desktop Launcher ======
Line 93: Line 78:
 **** ****
  
-  rm -Rf ~/'.local/share/applications/wine/Programs/Battle.net' ~/'.local/share/applications/wine/Programs/Diablo III' && mkdir -p ~/'.local/share/applications/wine/Programs/Diablo III'+  rm -Rf ~/'.local/share/applications/wine/Programs/Battle.net' ~/'.local/share/applications/wine/Programs/Diablo II Resurrected' && mkdir -p ~/'.local/share/applications/wine/Programs/Diablo II Resurrected'
  
-===== Diablo III (Battle.net App) =====+===== Diablo II Resurrected (Battle.net App) =====
  
-  nano ~/'.local/share/applications/wine/Programs/Diablo III/Diablo III.desktop'+  * :!: 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'
  
 <code> <code>
 [Desktop Entry] [Desktop Entry]
-Name=Diablo III +Name=Diablo II: Resurrected 
-Comment=TODO +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_cache' WINEPREFIX=~/'.wine/Diablo II Resurrected' wine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/Diablo II Resurrected Launcher.exe'"
-Exec=env DXVK_LOG_LEVEL='noneDXVK_STATE_CACHE_PATH='/home/CHANGEME/Wine Prefixes/Diablo III/dxvk_state_cacheMESA_GLSL_CACHE_DIR='/home/CHANGEME/Wine Prefixes/Diablo IIIWINEDEBUG=-all WINEPREFIX='/home/CHANGEME/Wine Prefixes/Diablo III' wine '/home/CHANGEME/Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III/Diablo III Launcher.exe'+
 Type=Application Type=Application
 StartupNotify=true StartupNotify=true
-Path=/home/CHANGEME/Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III +Icon=B271_Diablo II Resurrected Launcher.0 
-Icon=0B54_Diablo III 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 III' 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 III/dxvk_state_cache' ~/'Wine Prefixes/WDiablo III/mesa_shader_cache' ~/'Wine Prefixes/Diablo III/drive_c/windows/temp/'~/'Wine Prefixes/Diablo III/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 ResurrectedVKD3D_SHADER_CACHE_PATH=~/'.wine/Diablo II Resurrected/vkd3d_shader_cache' WINEPREFIX=~/'.wine/Diablo II Resurrectedwine ~/'.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 III/Diablo III.desktop'+# End</code>
  
 ====== Quick Commands ====== ====== Quick Commands ======
Line 127: Line 124:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' winecfg+  WINEPREFIX=~/'.wine/Diablo II Resurrected' winecfg
  
 ===== Winetricks ===== ===== Winetricks =====
Line 133: Line 130:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' winetricks+  WINEPREFIX=~/'.wine/Diablo II Resurrected' winetricks
  
 ===== Registry Editor ===== ===== Registry Editor =====
Line 139: Line 136:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' regedit+  WINEPREFIX=~/'.wine/Diablo II Resurrected' regedit
  
 ===== Kill ===== ===== Kill =====
Line 145: Line 142:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' wineserver -k+  WINEPREFIX=~/'.wine/Diablo II Resurrected' wineserver --kill
  
 ===== Execute ===== ===== Execute =====
Line 151: Line 148:
 ==== Battle.net App ==== ==== Battle.net App ====
  
-  cd ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Battle.net' && +  * ''Battle.net Launcher.exe''
  
-  DXVK_HUD='full'+  cd ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net' && 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' WINEDEBUG='' wine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'
  
-  WINEDEBUG='-all'+==== Diablo II Resurrected (Battle.net App) ====
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo IIIwine ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'+  ''Diablo II Resurrected Launcher.exe''
  
-==== Diablo III (Battle.net App) ====+  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' WINEDEBUG='' wine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/Diablo II Resurrected Launcher.exe'
  
-  cd ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III' && +==== Diablo II Resurrected ====
  
-  DXVK_HUD='full'+  ''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='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' WINEDEBUG='' wine ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/D2R.exe'
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' wine ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III/Diablo III Launcher.exe'+===== File Manager =====
  
-==== Diablo III ====+==== Root ====
  
-  cd ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III' && +****
  
-  DXVK_HUD='full'+  gio open ~/'.wine/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected'
  
-  WINEDEBUG='-all'+==== Saves ====
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' wine ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III/Diablo III.exe' -launch+****
  
-===== File Manager ===== +  gio open ~/'.wine/Diablo II Resurrected/drive_c/users/'$USER'/Saved Games/Diablo II Resurrected'
- +
-==== Root ==== +
- +
-****+
  
-  gio open ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III' 
/var/www/wiki/data/attic/games/wine/diablo_2_resurrected.1633911010.txt.gz · Last modified: 2021/10/10 20:10 by Sean Rhone