User Tools

Site Tools


games:wine:diablo_2_resurrected

This is an old revision of the document!


Information

  • Battle.net App 1)
  • Diablo II: Resurrected 2)
  • 64-bit

Prerequisites

Install

Battle.net App

  • Install to default directory when prompted 3)
  • [ ] Launch Battle.net when you start your computer
  • Log-in
  • :!: Change Battle.net App settings
  • 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'

Restore Data

mv ~/'Downloads/Diablo II Resurrected' ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)' && sync

Diablo II Resurrected

  • Install Diablo II Resurrected 4)
WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' wineserver -k && 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'

Clean Up

rm -f ~/'Downloads/Battle.net-Setup.exe' ~/'Desktop/Battle.net.desktop' ~/'Desktop/Diablo II Resurrected.desktop' && cd ~ && sync

DXVK

Information

  • D3D11 to Vulkan
  • :!: This is only useful for DXGI
  • :!: May not be necessary for Fedora, but it won't necessarily hurt anything
  • :!: The Async build of DXVK is unnecessary here, but presumably won't hurt anything either

Download

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-'* && cd ~ && mkdir -p ~/'Wine Prefixes/Diablo II Resurrected/dxvk_state_cache' && sync

VKD3D-Proton

Information

Download

Install

  • :!: It's not clear if VKD3D-Proton has a state cache folder like DXVK
rm -Rf '/tmp/vkd3d-proton' && unzip -d '/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.sh' install && rm -Rf '/tmp/vkd3d-proton' && cd ~ && sync

DXVK-NVAPI

Information

  • NVAPI through DXVK
  • :!: This notably provides DLSS support

Download

Install

Install

  • :!: TODO: Implement --context on mv and cp on other notes to possibly workaround SELinux permissions
  • :!: TODO: dxgi.nvapiHack has an environment variable for DXVK, but is that applicable to VKD3D-Proton or DXVK-NVAPI?
rm -rf '/tmp/dxvk-nvapi' && mkdir -p '/tmp/dxvk-nvapi' && cd '/tmp/dxvk-nvapi' && tar -xvzf ~/'Downloads/dxvk-nvapi-'*'.tar.gz' && mv --force --context ~/'Wine Prefixes/Diablo II Resurrected/drive_c/windows/system32/nvapi64.dll' ~/'Wine Prefixes/Diablo II Resurrected/drive_c/windows/system32/nvapi64.dll.bak' && mv --force --context ~/'Wine Prefixes/Diablo II Resurrected/drive_c/windows/syswow64/nvapi.dll' ~/'Wine Prefixes/Diablo II Resurrected/drive_c/windows/syswow64/nvapi.dll.bak' && sync && cp --force --context '/tmp/dxvk-nvapi/x64/nvapi64.dll' ~/'Wine Prefixes/Diablo II Resurrected/drive_c/windows/system32' && cp --force --context '/tmp/dxvk-nvapi/x32/nvapi.dll' ~/'Wine Prefixes/Diablo II Resurrected/drive_c/windows/syswow64' && echo "dxgi.nvapiHack = false" | tee ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/dxvk.conf' > '/dev/null' && sync

Test

echo "dxgi.nvapiHack = false" | tee '/tmp/dxvk-nvapi/x64/dxvk.conf' > '/dev/null' && WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' WINEDLLOVERRIDES='nvapi64,nvapi,nvngx,_nvngx,dxgi=n' DXVK_NVAPI_LOG_LEVEL='info' wine '/tmp/dxvk-nvapi/x64/nvapi64-tests.exe'

Clean-up

rm -rf '/tmp/dxvk-nvapi' && cd ~ && sync

NGX

cp --force --context '/usr/lib64/nvidia/wine/nvngx.dll' '/usr/lib64/nvidia/wine/_nvngx.dll' ~/'Wine Prefixes/Diablo II Resurrected/drive_c/windows/system32' && sync

Windows 10

WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' winetricks 'win10'

Desktop Launcher

Initial

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 II Resurrected (Battle.net App)

nano ~/'.local/share/applications/wine/Programs/Diablo II Resurrected/Diablo II Resurrected.desktop'
[Desktop Entry]
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
Exec=env MESA_GLSL_CACHE_DIR='/home/CHANGEME/Wine Prefixes/Diablo II Resurrected' VKD3D_CONFIG='dxr,dxr11,force_static_cbv' WINEDLLOVERRIDES='nvapi64,nvapi,nvngx,_nvngx,dxgi=n' DXVK_LOG_LEVEL='none' 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
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.png
Actions=Kill;Cache;

[Desktop Action Kill]
Exec=env WINEPREFIX='/home/CHANGEME/Wine Prefixes/Diablo II Resurrected' wineserver -k
Name=Force-close

[Desktop Action Cache]
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"
Name=Cache Clean-up
sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/Diablo II Resurrected/Diablo II Resurrected.desktop'

Quick Commands

Winecfg

WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' winecfg

Winetricks

WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' winetricks

Registry Editor

WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' regedit

Kill

WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' wineserver -k

Execute

Battle.net App

cd ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Battle.net' && 
VKD3D_CONFIG='dxr,dxr11,force_static_cbv'
WINEDLLOVERRIDES='nvapi64,nvapi,nvngx,_nvngx,dxgi=n'
DXVK_LOG_LEVEL='none'
WINEDEBUG='-all'
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)

cd ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected' && 
VKD3D_CONFIG='dxr,dxr11,force_static_cbv'
WINEDLLOVERRIDES='nvapi64,nvapi,nvngx,_nvngx,dxgi=n'
DXVK_LOG_LEVEL='none'
WINEDEBUG='-all'
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

cd ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected' && 
VKD3D_CONFIG='dxr,dxr11,force_static_cbv'
WINEDLLOVERRIDES='nvapi64,nvapi,nvngx,_nvngx,dxgi=n'
DXVK_LOG_LEVEL='none'
WINEDEBUG='-all'
WINEPREFIX=~/'Wine Prefixes/Diablo II Resurrected' wine ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected/D2R.exe'

File Manager

Root

gio open ~/'Wine Prefixes/Diablo II Resurrected/drive_c/Program Files (x86)/Diablo II Resurrected'
3)
C:/Program Files (x86)/Battle.net
4)
Locate the game does not work; the install process will detect the existing data files and patch as-necessary
/var/www/wiki/data/attic/games/wine/diablo_2_resurrected.1651926781.txt.gz · Last modified: 2022/05/07 08:33 by Sean Rhone