Skip to content

Instantly share code, notes, and snippets.

@orklann
Forked from whipowill/install_diablo2_on_mac.md
Last active September 7, 2021 08:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orklann/831f69a41eb5bf189b85bfd196162bdb to your computer and use it in GitHub Desktop.
Save orklann/831f69a41eb5bf189b85bfd196162bdb to your computer and use it in GitHub Desktop.
Install Diablo II on Mac OSX

Install Diablo II on Mac OSX

These are the instructions for using Terminal to install the Windows version of the game onto your machine. You can then easily copy the game multiple times for different mods you might want to play.

In this guide you'll end up with:

  • A version of the unadulterated game
  • A single-player install w/ PlugY

Install Wine

$ brew install wine
  • If using Mac OSX Catalina then use this brew tap instead:
$ sudo spctl --master-disable // to disable gatekeeper and prevent annoying security popups
$ brew tap gcenx/wine
$ brew cask install --no-quarantine wine-crossover 
or 
$ brew install --cask --no-quarantine wine-crossover

Install Diablo II

  • Create a fresh Wine directory and choose WinXP:
$ WINEARCH=win32 WINEPREFIX=~/.wine_d2 winecfg
$ cd ~/.wine_d2/drive_c
$ mkdir games
$ cd games
$ open .
  • Run the EXE files to install the game:
$ WINEPREFIX=~/.wine_d2 wine /your/path/to/d2/installer.exe
$ WINEPREFIX=~/.wine_d2 wine /your/path/to/d2lod/installer.exe
$ WINEPREFIX=~/.wine_d2 wine /your/path/to/patch.exe
  • Install the glide wrapper for improved graphics (use the latest, it doesn't have to match your D2 version):
$ cd ~/.wine_d2/drive_c/games/diablo\ ii
$ WINEPREFIX=~/.wine_d2 wine glide-init.exe

- Switch to English
- Turn off all settings options except "desktop resolution"
- Turn off all rendering options except "no gamma"
- Turn off all extensions options except "MGL_EXT_swap_control" (this prevents mouse lag)
  • Make an alias to run the game from Terminal w/ a simple command:
$ vim .bashrc
> alias d2="cd ~/.wine_d2/drive_c/games/diablo\ ii && WINEPREFIX=~/.wine_d2 wine game.exe -w -3dfx -nofixaspect"
  • Reload your Terminal and play the game:
$ d2

Install PlugY

  • Copy your base D2 install:
$ ditto ~/.wine_d2 ~/.wine_d2plugy
  • Download PlugY and run the install:
$ cd ~/.wine_d2plugy/drive_c/games
$ open .
$ WINEPREFIX=~/.wine_d2plugy wine /your/path/to/plugy.exe
  • Make an alias to run the game from Terminal w/ a simple command:
$ vim .bashrc
> alias d2plugy="cd ~/.wine_d2plugy/drive_c/games/diablo\ ii/mod\ plugy && WINEPREFIX=~/.wine_d2plugy wine plugy.exe -w -3dfx -nofixaspect -direct -txt"
  • Reload your Terminal and play the game:
$ d2plugy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment