- Aug 5, 2005
- 8,100
- 2,616
- 113
Introduction
Sorry to disappoint those expecting another inebriated hardcore project, but this is a guide to installing D2 with Wine. It is basically a record of the process I went through to install Wine on my mac, but should be applicable to installing D2 with Wine on Linux too. I haven't actually installed D2 on Linux with this process, but I see no reason for the steps to be significantly different.
This process is currently applicable for installation on Mac OS 10.14 (Mojave) and earlier. If / when Wine supports 32Bit Apps in 64Bit Wine, this should be applicable to running D2 on later MacOS versions.
Why use Wine on a Mac?
I started doing this as an investigation to see if it was a possible solution for the dropping of 32bit app support in Catalina. The advantages as I see it are:
- Runs faster than under virtualisation (Parallels / VMWare Fusion)
- Supports command line arguments for RWM
- More stable than the Blizzard 32 bit Mac Client
- Possibility for running older versions of D2 (not tried though)
Explanation of Suffixes
No Suffix - Applicable to all
[Mac] Applicable to Mac installation only
[Optional] Not required to be done on any platform
Install XQuartz [Mac]
https://www.xquartz.org/releases/XQuartz-2.7.7.html
Install Wine
I installed the Wine Stable version
https://www.winehq.org
https://dl.winehq.org/wine-builds/macosx/download.html
Install D2 & LoD
Download the Windows version of the installers from Blizzard. You should be able to install from CDs or CD Images, but I haven’t tried it.
I installed mine in a sub-folder named Wine_Programs in the main Mac Applications folder. This guide is written based on this, you will need to adapt some of the paths if you install it in a different location.
Run Diablo
Assuming Wine has correctly mapped the .exe file extension, you should be able to just double click Diablo II.exe
If it doesn’t work, right click Diablo II.exe
Open With > Wine Stable
Diablo should run, full screen, with sound
Running with arguments from a Terminal window
If you want to run in a window or without sound, you need to add arguments. To do this you need to launch from the command line.
Launch Wine
In the terminal window type wine then a space.
Drag the Diablo II.exe file into the window
Add the suffixes required, e.g.
wine /Applications/Wine_Programs/Diablo\ II/Diablo\ II.exe -w -ns
Press return
Where are my saves?
In version before 1.14, they should be in the Save directory wherever you stored the application. However, by default in Windows 1.14d, the saves are in the Users/Saved Games folder. This is in the hidden .Wine folder. Good news is that you can change the save path to something more friendly. If you put them in the Documents folder, iCloud will back them up for you too.
Start Wine
In the window type Wine regedit
Find the Diablo Entries[/B][/B]
Replace the save path with something more friendly, e.g.
Z:\Users\max\Documents\VMWare Shared\Diablo II
Install Singling [Optional]
Uncompress and drag the two files into the Application folder. Worth it if only for the fact it will stop your fans ramping to maximum.
Install RWM
Unzip & put the data folder into your Diablo II folder
I.e. The path should be
.../Diablo II/Data/Global/Excel/Runewords.txt
Start Wine
You have to change Directory to the one D2 launches in or RWM will not work. In the Terminal window type:
Then launch the game
Press return and the RWM game should launch. Make an Edge or Spirit to check. If it doesn’t work, don’t delete the item (assuming you got the runes right) - When it is setup correctly it will turn into the runeword.
Sorting out the Alt Keys [Mac]
By default Wine will use the Command key instead of Alt (Option). In order to fix this and use Alt to show items, you need to make an addition to the registry.
Start Wine
In the window type Wine regedit
Navigate to HKEY_CURRENT_USER\Software\Wine
In the menus at the top Edit > New > Key
This will make a new Folder below Wine. Name it Mac Driver
In the menus: Edit > New > String Value
Name = LeftOptionIsAlt
Data = Y
In the menus: Edit > New > String Value
Name = RightOptionIsAlt
Data = Y
Close the Registry Editor. When you start D2 next, the Alt key should function as expected.
Making an Application [Mac]
This makes an application using the Mac utility Automator, so you can just double click it to run D2 with the settings you need. It looks complicated but is actually fairly easy, just carefully follow the instructions.
Developed from http://speedofmac.com/tutorials/use-wine-without-terminal-automator.html
YouTube video here
1. Open Automator.app (/Applications/Automator)
2. Choose to create an Application at the prompt
3. Search the Actions box (should be highlighted by default) for "Run Shell Script"
* This should be visible after typing only a few letters
4. Double-click the resulting "Run Shell Script" action
5. At the top of the Run Shell Script box on the right choose to pass input as arguments
6. Replace all of the "for f in..." code with the following:
Inside first set of quotation marks, drag and drop your D2 Folder
In the second set of quotation marks, either type the path of your wine binary (e.g. /Applications/Wine Stable.app/Contents/Resources/wine/bin/wine) or drag and drop it from the Finder into those quotation marks. Note that you need to open up the Wine Application and navigate to this - Right click, show package contents, it is in the bin folder
In the third set, drag and drop the Diablo II.exe application
In the fourth set add the modifiers you want to use:
-direct -txt for RWM
-ns for no sound
-w to run in a window
Example shortcut to run D2 RWM in a window without sound:
7. Save the Automator project as whatever you want, making sure that 'Application' is selected in the file format dropdown box
8. Optional: replace the standard Automator application icon with your Windows application's real icon:
* In Finder, select the application and press command+i; or, right- or control-click the application, choose "Get Info"
* Select the application image (top-left) and paste your image there or drag an image from Finder on top of the old image
Muling
GoMule and the RunCounter work in MacOS, although you will need to install Java
https://www.java.com/en/download/
ATMA works in Wine - Install as above
Sharing the same folder with a Virtual Machine / Bootcamp [Optional]
Remember how we edited the registry to put the save files somewhere easy to find? If you want to use a virtual machine or Bootcamp as well as Wine, you can also do the same thing. If you put them in a folder in the Mac side, you can access the same characters from both Wine and the VM.
Launch Windows
In the programs menu, search for regedit. Double click regedit.exe
Find the Diablo entries under HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Diablo II
Modify the NewSavePath entry to your shared folder, e.g. \\vmware-host\Shared Folders\VMWare Shared\114_Save
References
https://wiki.winehq.org/MacOS_FAQ
http://speedofmac.com/tutorials/use-wine-without-terminal-automator.html
Sorry to disappoint those expecting another inebriated hardcore project, but this is a guide to installing D2 with Wine. It is basically a record of the process I went through to install Wine on my mac, but should be applicable to installing D2 with Wine on Linux too. I haven't actually installed D2 on Linux with this process, but I see no reason for the steps to be significantly different.
This process is currently applicable for installation on Mac OS 10.14 (Mojave) and earlier. If / when Wine supports 32Bit Apps in 64Bit Wine, this should be applicable to running D2 on later MacOS versions.
Why use Wine on a Mac?
I started doing this as an investigation to see if it was a possible solution for the dropping of 32bit app support in Catalina. The advantages as I see it are:
- Runs faster than under virtualisation (Parallels / VMWare Fusion)
- Supports command line arguments for RWM
- More stable than the Blizzard 32 bit Mac Client
- Possibility for running older versions of D2 (not tried though)
Explanation of Suffixes
No Suffix - Applicable to all
[Mac] Applicable to Mac installation only
[Optional] Not required to be done on any platform
Install XQuartz [Mac]
https://www.xquartz.org/releases/XQuartz-2.7.7.html
Install Wine
I installed the Wine Stable version
https://www.winehq.org
https://dl.winehq.org/wine-builds/macosx/download.html
Install D2 & LoD
Download the Windows version of the installers from Blizzard. You should be able to install from CDs or CD Images, but I haven’t tried it.
I installed mine in a sub-folder named Wine_Programs in the main Mac Applications folder. This guide is written based on this, you will need to adapt some of the paths if you install it in a different location.
Run Diablo
Assuming Wine has correctly mapped the .exe file extension, you should be able to just double click Diablo II.exe
If it doesn’t work, right click Diablo II.exe
Open With > Wine Stable
Diablo should run, full screen, with sound
Running with arguments from a Terminal window
If you want to run in a window or without sound, you need to add arguments. To do this you need to launch from the command line.
Launch Wine
In the terminal window type wine then a space.
Drag the Diablo II.exe file into the window
Add the suffixes required, e.g.
wine /Applications/Wine_Programs/Diablo\ II/Diablo\ II.exe -w -ns
Press return
Where are my saves?
In version before 1.14, they should be in the Save directory wherever you stored the application. However, by default in Windows 1.14d, the saves are in the Users/Saved Games folder. This is in the hidden .Wine folder. Good news is that you can change the save path to something more friendly. If you put them in the Documents folder, iCloud will back them up for you too.
Start Wine
In the window type Wine regedit
Find the Diablo Entries[/B][/B]
Replace the save path with something more friendly, e.g.
Z:\Users\max\Documents\VMWare Shared\Diablo II
Install Singling [Optional]
Uncompress and drag the two files into the Application folder. Worth it if only for the fact it will stop your fans ramping to maximum.
Install RWM
Unzip & put the data folder into your Diablo II folder
I.e. The path should be
.../Diablo II/Data/Global/Excel/Runewords.txt
Start Wine
You have to change Directory to the one D2 launches in or RWM will not work. In the Terminal window type:
Code:
cd /Applications/Wine_Programs/Diablo\ II/
Code:
wine Diablo\ II.exe -direct -txt -w -ns
Press return and the RWM game should launch. Make an Edge or Spirit to check. If it doesn’t work, don’t delete the item (assuming you got the runes right) - When it is setup correctly it will turn into the runeword.
Sorting out the Alt Keys [Mac]
By default Wine will use the Command key instead of Alt (Option). In order to fix this and use Alt to show items, you need to make an addition to the registry.
Start Wine
In the window type Wine regedit
Navigate to HKEY_CURRENT_USER\Software\Wine
In the menus at the top Edit > New > Key
This will make a new Folder below Wine. Name it Mac Driver
In the menus: Edit > New > String Value
Name = LeftOptionIsAlt
Data = Y
In the menus: Edit > New > String Value
Name = RightOptionIsAlt
Data = Y
Close the Registry Editor. When you start D2 next, the Alt key should function as expected.
Making an Application [Mac]
This makes an application using the Mac utility Automator, so you can just double click it to run D2 with the settings you need. It looks complicated but is actually fairly easy, just carefully follow the instructions.
Developed from http://speedofmac.com/tutorials/use-wine-without-terminal-automator.html
YouTube video here
1. Open Automator.app (/Applications/Automator)
2. Choose to create an Application at the prompt
3. Search the Actions box (should be highlighted by default) for "Run Shell Script"
* This should be visible after typing only a few letters
4. Double-click the resulting "Run Shell Script" action
5. At the top of the Run Shell Script box on the right choose to pass input as arguments
6. Replace all of the "for f in..." code with the following:
Code:
cd ""
DYLD_FALLBACK_LIBRARY_PATH=/usr/X11/lib "" "" ""
Inside first set of quotation marks, drag and drop your D2 Folder
In the second set of quotation marks, either type the path of your wine binary (e.g. /Applications/Wine Stable.app/Contents/Resources/wine/bin/wine) or drag and drop it from the Finder into those quotation marks. Note that you need to open up the Wine Application and navigate to this - Right click, show package contents, it is in the bin folder
In the third set, drag and drop the Diablo II.exe application
In the fourth set add the modifiers you want to use:
-direct -txt for RWM
-ns for no sound
-w to run in a window
Example shortcut to run D2 RWM in a window without sound:
Code:
cd "/Applications/Wine_Programs/Diablo II/"
DYLD_FALLBACK_LIBRARY_PATH=/usr/X11/lib "/Applications/Wine Stable.app/Contents/Resources/wine/bin/wine" "/Applications/Wine_Programs/Diablo II/Game.exe" "-direct -txt -w -ns”
7. Save the Automator project as whatever you want, making sure that 'Application' is selected in the file format dropdown box
8. Optional: replace the standard Automator application icon with your Windows application's real icon:
* In Finder, select the application and press command+i; or, right- or control-click the application, choose "Get Info"
* Select the application image (top-left) and paste your image there or drag an image from Finder on top of the old image
Muling
GoMule and the RunCounter work in MacOS, although you will need to install Java
https://www.java.com/en/download/
ATMA works in Wine - Install as above
Sharing the same folder with a Virtual Machine / Bootcamp [Optional]
Remember how we edited the registry to put the save files somewhere easy to find? If you want to use a virtual machine or Bootcamp as well as Wine, you can also do the same thing. If you put them in a folder in the Mac side, you can access the same characters from both Wine and the VM.
Launch Windows
In the programs menu, search for regedit. Double click regedit.exe
Find the Diablo entries under HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Diablo II
Modify the NewSavePath entry to your shared folder, e.g. \\vmware-host\Shared Folders\VMWare Shared\114_Save
References
https://wiki.winehq.org/MacOS_FAQ
http://speedofmac.com/tutorials/use-wine-without-terminal-automator.html
Last edited: