User Tools

Site Tools


games:bsd:wine:diablo_2

Information

  • Diablo II 1)
  • Diablo II: Lord of Destruction

Prerequisites

Notes

  • Lord of Destruction is not standalone and requires Diablo II
  • This is the original client with CD keys and TCP/IP multiplayer (not Resurrected)

Install

Diablo II

mkdir -p ~/'.wine' && WINEPREFIX=~/'.wine/Diablo II' WINEARCH='win32' winecfg /v 'winxp' && sync && WINEDEBUG='' WINEPREFIX=~/'.wine/Diablo II' wine ~/'Downloads/Diablo II/D2-1.14b-Installer-enUS/Installer.exe'

Lord of Destruction

sync && WINEDEBUG='' WINEPREFIX=~/'.wine/Diablo II' wine ~/'Downloads/Diablo II/D2LOD-1.14b-Installer-enUS/Installer.exe'

Patch

  • 1.14d
sync && mesa_glthread='false' WINEDEBUG='' WINEPREFIX=~/'.wine/Diablo II' wine ~/'Downloads/Diablo II/LODPatch_114d.exe'

Glide Wrapper

Online

wget -O '/tmp/gl32ogl14e.zip' 'http://www.svenswrapper.de/gl32ogl14e.zip' && md5sum '/tmp/gl32ogl14e.zip' | grep '1c65a0150665f715ce0fc0a23885c6b8' && unzip '/tmp/gl32ogl14e.zip' 'glide3x.dll' 'glide-init.exe' -d ~/'.wine/Diablo II/drive_c/Program Files/Diablo II' && rm -f '/tmp/gl32ogl14e.zip' && sync

Clean Up

rm -R ~/'Downloads/Diablo II' ~/'Desktop/Diablo II'*'.desktop' && sync

Glide Wrapper

  • Hauptmenu → Deutsch/English
  • OpenGL-infos → Query OpenGL-infos
  • settings → [x] captured mouse
  • settings → [x] desktopresolution
  • renderer → 108 MB texture-memory
  • renderer → 4096×4096 buffer-texture-size
  • renderer → [x] 32 bit rendering
  • renderer → [x] bilinear filtering
  • renderer → [x] keep desktop composition
  • Extensions → [x] WGL_ARB_render_texture
  • renderer → [x] supersampling
  • Test 2)
  • Quit
cd ~/'.wine/Diablo II/drive_c/Program Files/Diablo II' && mesa_glthread='false' WINEPREFIX=~/'.wine/Diablo II' wine ~/'.wine/Diablo II/drive_c/Program Files/Diablo II/glide-init.exe'

Reset Settings

WINEPREFIX=~/'.wine/Diablo II' wine reg DELETE 'HKCU\Software\GLIDE3toOpenGL' /f

Desktop Launcher

Initial

rm -Rf ~/'.local/share/applications/wine/Programs/Diablo II' ~/'.config/menus/applications-merged/wine-Programs-Diablo II'*'.menu' && update-desktop-database --quiet ~/'.local/share/applications' && mkdir -p ~/'.local/share/applications/wine/Programs/Diablo II'

Lord of Destruction

ee ~/'.local/share/applications/wine/Programs/Diablo II/Diablo II: Lord of Destruction.desktop' && update-desktop-database --quiet ~/'.local/share/applications'
[Desktop Entry]
Name=Diablo II: Lord of Destruction
Categories=Game;AdventureGame;RolePlaying
Exec='/bin/sh' -c "cd ~/'.wine/Diablo II/drive_c/Program Files/Diablo II' && mesa_glthread='false' WINEPREFIX=~/'.wine/Diablo II' wine ~/'.wine/Diablo II/drive_c/Program Files/Diablo II/Diablo II.exe' -3dfx"
Type=Application
StartupNotify=true
Icon=0913_Diablo II.0
StartupWMClass=game.exe
Actions=Kill;Glide;Saves;Notes;

[Desktop Action Kill]
Exec='/bin/sh' -c "WINEPREFIX=~/'.wine/Diablo II' wineserver --kill"
Name=Force-close Diablo II

[Desktop Action Glide]
Exec='/bin/sh' -c "mesa_glthread='false' WINEPREFIX=~/'.wine/Diablo II' wine ~/'.wine/Diablo II/drive_c/Program Files/Diablo II/glide-init.exe'"
Name=Glide Wrapper Configuration

[Desktop Action Saves]
StartupNotify=false
Exec='/bin/sh' -c "~/'.wine/Diablo II/save-backup.sh'"
Name=Save Data Back-up

[Desktop Action Notes]
StartupNotify=false
Exec=gio open 'https://wiki.realmofespionage.xyz/games:bsd:wine:diablo_2'
Name=Installation Notes

# End

Save Data Back-up Script

ee ~/'.wine/Diablo II/save-backup.sh' && chmod +x ~/'.wine/Diablo II/save-backup.sh'
#!/bin/sh

tar -cvzf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-manual-D2-Saves.tar.gz' -C ~/'.wine/Diablo II/drive_c/users/'$USER'/Saved Games' 'Diablo II'
sync
notify-send -i ~/'.local/share/icons/hicolor/32x32/apps/0913_Diablo II.0.png' 'Diablo II Save Data Backed-up Successfully to Downloads'

# End

Quick Commands

Winecfg

WINEPREFIX=~/'.wine/Diablo II' winecfg

Winetricks

WINEPREFIX=~/'.wine/Diablo II' winetricks

Registry Editor

WINEPREFIX=~/'.wine/Diablo II' regedit

Kill

WINEPREFIX=~/'.wine/Diablo II' wineserver --kill
killall -9 'wine.bin'

Execute

Command-line Arguments

Lord of Destruction

  • -3dfx
cd ~/'.wine/Diablo II/drive_c/Program Files/Diablo II' && mesa_glthread='false' WINEDEBUG='' WINEPREFIX=~/'.wine/Diablo II' wine ~/'.wine/Diablo II/drive_c/Program Files/Diablo II/Diablo II.exe' -3dfx

File Manager

Root

gio open ~/'.wine/Diablo II/drive_c/Program Files/Diablo II'

Saved Games

mkdir -p ~/'.wine/Diablo II/drive_c/users/'$USER/'Saved Games/Diablo II' && gio open ~/'.wine/Diablo II/drive_c/users/'$USER/'Saved Games/Diablo II'

Saved Games Data

Backup

  • Creates {DATE}-manual-D2-Saves.tar.gz in ~/Downloads
tar -cvzf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-manual-D2-Saves.tar.gz' -C ~/'.wine/Diablo II/drive_c/users/'$USER'/Saved Games' 'Diablo II' && ls ~/'Downloads/'*'-manual-D2-Saves.tar.gz'

Restore

  • Expects *-manual-D2-Saves.tar.gz in ~/Downloads
  • :!: If that tarball exists, this series of commands will irreversibly, without warning or prompt, delete the existing Saved Games folder and replace it with whatever is in that tarball
ls ~/'Downloads/'*'-manual-D2-Saves.tar.gz' && rm -Rf ~/'.wine/Diablo II/drive_c/users/'$USER'/Saved Games' && mkdir -p ~/'.wine/Diablo II/drive_c/users/'$USER'/Saved Games' && tar -xvzf ~/'Downloads/'*'-manual-D2-Saves.tar.gz' -C ~/'.wine/Diablo II/drive_c/users/'$USER'/Saved Games' 'Diablo II' && sync
2)
ideally should allow gamma adjustments (click and drag on color bars) and maintain 60+ fps
/usr/local/www/wiki/data/pages/games/bsd/wine/diablo_2.txt · Last modified: by Sean Rhone