User Tools

Site Tools


games:wine:diablo_3

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
Next revisionBoth sides next revision
games:wine:diablo_3 [2022/07/06 00:18] Sean Rhonegames:wine:diablo_3 [2023/09/15 21:41] – [Diablo III (Battle.net App)] Sean Rhone
Line 2: Line 2:
  
   * Battle.net App ((http://us.battle.net/en/app))   * Battle.net App ((http://us.battle.net/en/app))
-  * Diablo III ((http://diablo3.com))+  * Diablo III ((https://us.diablo3.blizzard.com/en-us/))
   * 64-bit   * 64-bit
  
Line 10: Line 10:
   * [[notes:wine|Wine]]   * [[notes:wine|Wine]]
  
 +===== Notes =====
 +
 +  * TODO
 ====== Install ====== ====== Install ======
  
Line 15: Line 18:
  
   * 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 III' 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 III' WINEARCH='win64' wine ~/'Downloads/Battle.net-Setup.exe'
  
-===== Restore Diablo III =====+===== Restore Data =====
  
 **** ****
  
-  mv ~/'Downloads/Diablo III' ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)' && sync+  mv ~/'Downloads/Diablo III' ~/'.wine/Diablo III/drive_c/Program Files (x86)' && sync
  
 ===== Diablo III ===== ===== Diablo III =====
  
-  * Install Diablo III ((Locate the game does not work; the install process will detect the existing data files and patch as-necessary))+  * Install Diablo III ((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 III/drive_c/Program Files (x86)/Battle.net' && WINEPREFIX=~/'Wine Prefixes/Diablo III' wine ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'+  cd ~/'.wine/Diablo III/drive_c/Program Files (x86)/Battle.net' && WINEPREFIX=~/'.wine/Diablo III' wine ~/'.wine/Diablo III/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'
  
 ===== Clean Up ===== ===== Clean Up =====
Line 38: Line 41:
 **** ****
  
-  rm -f ~/'Downloads/Battle.net-Setup.exe' ~/'Desktop/Battle.net.desktop' ~/'Desktop/Diablo III.desktop' && sync+  rm -f ~/'Downloads/Battle.net-Setup.exe' ~/'Desktop/Battle.net.desktop' ~/'Desktop/Diablo III.desktop' && cd ~ && sync
  
-====== DXVK ======+====== Libraries ======
  
-  * https://github.com/doitsujin/dxvk +===== DXVK =====
-  * https://github.com/Sporif/dxvk-async+
  
-  * D3D11 to Vulkan +  * https://github.com/doitsujin/dxvk/actions ((need to be signed into GitHub, and select the latest ''master'' artifacts package)) 
-  * Async+  * Provides DXGI for ''vkd3d-proton''
  
-===== Download ===== +  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 III/drive_c/windows/system32/&& cp --backup '/tmp/dxvk-master/x32/'*'.dll~/'.wine/Diablo III/drive_c/windows/syswow64/' && WINEPREFIX=~/'.wine/Diablo III' winetricks 'd3d9=native' 'd3d10core=native' 'd3d11=native' 'dxgi=native' && mkdir -p ~/'.wine/Diablo II Resurrected/dxvk_shader_cache' && sync
- +
-  * https://github.com/Sporif/dxvk-async/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 III' '/tmp/dxvk-'*'/setup_dxvk.shinstall && rm -rf '/tmp/dxvk-'&& cd ~ && mkdir -p ~/'Wine Prefixes/Diablo III/dxvk_state_cache' && sync+
  
 ====== Desktop Launcher ====== ====== Desktop Launcher ======
Line 73: Line 67:
 [Desktop Entry] [Desktop Entry]
 Name=Diablo III Name=Diablo III
-Comment=TODO +Categories=Game;AdventureGame;RolePlaying 
-Categories=Game +Exec='/bin/bash' -c "cd ~/'.wine/Diablo III/drive_c/Program Files (x86)/Diablo III' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Diablo III' DXVK_STATE_CACHE_PATH=~/'.wine/Diablo III/dkvk_shader_cache' WINEPREFIX=~/'.wine/Diablo III' wine ~/'.wine/Diablo III/drive_c/Program Files (x86)/Diablo III/Diablo III Launcher.exe'"
-Exec=env MESA_SHADER_CACHE_DIR='/home/CHANGEME/Wine Prefixes/Diablo III' DXVK_STATE_CACHE_PATH='/home/CHANGEME/Wine Prefixes/Diablo III/dxvk_state_cache' 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=B9E6_Diablo III Launcher.0 +StartupWMClass=d2r.exe 
-Actions=Kill;Cache;+Actions=Cache;Kill;Notes; 
 + 
 +[Desktop Action Cache] 
 +Exec='/bin/bash' -c "rm -Rf ~/'.wine/Diablo III/mesa_shader_cache/'* ~/'.wine/Diablo III/dxvk_shader_cache/'* && sync && notify-send 'The Diablo III 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 III' 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/Diablo 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_3'" 
- +Name=Installation Notes
-  sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/Diablo III/Diablo III.desktop+
- +
-===== Steam Launcher ===== +
- +
-  * Diablo III (Battle.net App) +
- +
-  Diablo III +
- +
-  nano ~/'Wine Prefixes/Diablo III/steam-launcher.sh' && chmod +x ~/'Wine Prefixes/Diablo III/steam-launcher.sh' +
- +
-<code> +
-#!/bin/sh +
- +
-# Environment Variables +
-export MESA_SHADER_CACHE_DIR=~/'Wine Prefixes/Diablo III' +
-export DXVK_STATE_CACHE_PATH=~/'Wine Prefixes/Diablo III/dxvk_state_cache' +
-export WINEPREFIX=~/'Wine Prefixes/Diablo III' +
- +
-# Working Directory +
-cd ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III' +
- +
-# Launch +
-wine ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III/Diablo III Launcher.exe'+
  
 # End</code> # End</code>
- 
-  Wine Prefixes/Diablo III/steam-launcher.sh 
  
 ====== Quick Commands ====== ====== Quick Commands ======
Line 124: Line 96:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' winecfg+  WINEPREFIX=~/'.wine/Diablo III' winecfg
  
 ===== Winetricks ===== ===== Winetricks =====
Line 130: Line 102:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' winetricks+  WINEPREFIX=~/'.wine/Diablo III' winetricks
  
 ===== Registry Editor ===== ===== Registry Editor =====
Line 136: Line 108:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' regedit+  WINEPREFIX=~/'.wine/Diablo III' regedit
  
 ===== Kill ===== ===== Kill =====
Line 142: Line 114:
 **** ****
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' wineserver -k+  WINEPREFIX=~/'.wine/Diablo III' wineserver --kill
  
 ===== Execute ===== ===== Execute =====
Line 148: Line 120:
 ==== 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 III/drive_c/Program Files (x86)/Battle.net' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Diablo III' VKD3D_SHADER_CACHE_PATH=~/'.wine/Diablo III/vkd3d_shader_cache' WINEPREFIX=~/'.wine/Diablo III' WINEDEBUG='' wine ~/'.wine/Diablo III/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'
- +
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' wine ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe'+
  
 ==== Diablo III (Battle.net App) ==== ==== Diablo III (Battle.net App) ====
  
-  cd ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III' && +  * ''Diablo III Launcher.exe''
  
-  DXVK_HUD='full' +  cd ~/'.wine/Diablo III/drive_c/Program Files (x86)/Diablo III' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Diablo III' VKD3D_SHADER_CACHE_PATH=~/'.wine/Diablo III/vkd3d_shader_cache' WINEPREFIX=~/'.wine/Diablo III' WINEDEBUG='' wine ~/'.wine/Diablo III/drive_c/Program Files (x86)/Diablo III/Diablo III Launcher.exe'
- +
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' wine ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III/Diablo III Launcher.exe'+
  
 ==== Diablo III ==== ==== Diablo III ====
  
-  cd ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III&&  +  * ''D2R.exe'' 
- +  * Useful for quick graphical testing as this bypasses Battle.net launcher and boots D2R directly 
-  DXVK_HUD='full'+  * :!: This may fail to load online characters occasionally
  
-  WINEPREFIX=~/'Wine Prefixes/Diablo III' wine ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III/Diablo III.exe' -launch+  cd ~/'.wine/Diablo III/drive_c/Program Files (x86)/Diablo III' && PULSE_LATENCY_MSEC='400' MESA_SHADER_CACHE_DIR=~/'.wine/Diablo III' VKD3D_SHADER_CACHE_PATH=~/'.wine/Diablo III/vkd3d_shader_cache' WINEPREFIX=~/'.wine/Diablo III' WINEDEBUG='' wine ~/'.wine/Diablo III/drive_c/Program Files (x86)/Diablo III/D2R.exe'
  
 ===== File Manager ===== ===== File Manager =====
Line 176: Line 144:
 **** ****
  
-  gio open ~/'Wine Prefixes/Diablo III/drive_c/Program Files (x86)/Diablo III'+  gio open ~/'.wine/Diablo III/drive_c/Program Files (x86)/Diablo III'