D2 for Macs: a User's Guide
Hello. Seeing as there have been a number of questions regarding D2 usage on the Mac, I thought I would write up a brief guide. This is my first guide, so please bear with me.
First, a few general comments about macs.
Almost all of the keyboard commands and shortcuts are identical from pc to mac, with one difference. PCs use the ctrl key, Macs use the Command (cmd) key the one just to the left and right of the space bar). Thus, where "select all" on a PC is ctrl-a, on a mac it's cmd-a. Likewise with cut, copy, paste, etc. (I know this is true for the most common keyboard shortcuts, but I expect there are others that don't work so well.)
Most of this guide applies only to Mac OSX, since I have very little experience with the Classic environment.
Muling for MacsATMA does not work :(. Fortunately, and thanks to silospen, we have GoMule! Since GoMule is written in java, it works for everyone and even reads/writes to ATMA d2x and org files.
D2 with Mods, and Timetravel
This is relatively easy.
- start with a vanilla install. It will be located in the "Diabo II Folder" folder in 'Applications.'
- Rename this folder "Diabo II Vanilla 1.12" (or whatever version it is, or any name you like)
- Create a new folder in Applications. Call it "Diablo II Mod 1.12".
- Copy the entire contents of the "Diablo II Vanilla 1.12" folder into the new folder. (To accomplish this, click on one of the items in the original folder, hit cmd-a, hold down the 'option' key, and drag the contents to the new folder. Alternately, select all the files, hit cmd-c, then click on the new folder and hit cmd-v.)
- Then add the patch that contains RWM/RRM. You'll likely get a warning message, but just click 'OK'. No worries.
- Rename the D2 Application files to reflect their modded/vanilla/patch status if you want to place shortcuts in the dock or on the desktop or wherever you store application links.
(This does, admittedly, take up a bit of hard drive space (+/- 1.8Gb per install), and I suspect there's an easier way. I took a look at TrenShadow's Version switcher, but I don't think it works with mac. If you have some ideas, pleas let me know and I'll add it to the guide. Thanks!)
Now, you have a Vanilla install and a Modded install!
Repeat this process with patches to later versions.
For RWM/RRM on macs, see here.
For expansion patches (1.10-present), see here. Be sure you download only the files labelled OSX or Carbon. There are patches available for 1.10b, 1.11 and 1.11b, and 1.12a. Remember that in order to play any version prior to 1.12a, you will need the LoD disc.
Note: You must use the Carbon Installer to install D2 in OSX. The Carbon Installer automatically patches D2 to 1.10. At present, there is no known way to play earlier versions under OSX.
Note: you can not go back in time. In other words, you will need to start with a clean install of the earliest possible version of D2 or LoD, which will unfortunately always be 1.10 due to the Carbon Installer.
For earlier patches, you will need a Classic install of the MacOS (OS 9 or earlier), and in order to have a Classic install of the OS, you'll need a mac with a PowerPC processor, since Intel macs will not run classic at all.* So, unless you have an old lampbase iMac lying about, or old PowerBook, or old G3 or G4 or whatever, you're sort of out of luck, as far as I can tell. Earlier patches are available here. (I was unable to download anything from this mirror, but you could try your luck anyway.)
Note: At the present, it seems that Diablo 2 under Classic is somewhat painful. It is difficult to get the graphics to work properly, and you may have trouble finding a two-button mouse that will work. Further testing will be required.
If you wish to connect to BattleNet for whatever reason, be sure to use your Vanilla install, otherwise you risk a ban or, if you're playing earlier patches, a forced update to the current patch.
*Note: there are Classic Emulators available for Intel macs. I have been unable to test earlier versions of D2 under Classic Emulation. I will update with findings as they come available.
Multiplaying with yourself
So far as I know, the multiple instance dll does not work with mac, but I'll keep checking. However, there is a way to self-multiplay that is ludicrously easy.
(Thanks to BMFV for this tip!) Note: this is only viable in OSX 10.5 Leopard and (presumably) later.
- Open Terminal (Applications -> Utilities -> Terminal).
- At the prompt, type "open -u" and drag the D2 game app from Applications to the terminal window. This will insert the correct path.*
- Press return. D2 will open.
- Start up a TCP/IP game, and select 'Host'. Take note of the IP address as listed in the TCP/IP window.
- Open the Character that will do the hosting and get him/her comfortable.
- Press cmd-m to go to windowed mode, return to Terminal and repeat the opening procedure.
- In the second version of D2, select TCP/IP and 'Join'.
- Enter the IP address noted in step 4 and start up the second character, then repeat steps 6-8 until all characters are open.
[Note that this is broken in Snow Leopard. To multiplay with yourself, the only answer I know of at present is to create multiple installs: teh suxxorz. I'll hunt about for another answer, and update when I find one.]
niwyral provides a tip for bypassing the terminal and creating a clickable Script to open multiple instances: (Thanks!)
- open Applications -> AppleScript -> Script Editor
- then type * do shell script "open -n [path to D2]" (Note: you can find the path to D2 by dragging the D2 application into the Script Editor window. The path will be almost identical to the path in terminal, though spaces in the path are handled as '\\ ' in Script Editor, while Terminal handles identical spaces as '\ ')
- save this as an application, and title it whatever you like.
- to start multiple instances you can repeatedly click this application rather than going back and forth to the terminal.
[This is likely also broken in Snow Leopard.]
* Mine is /Applications/Diablo\ II\ 1.12a\ Modded/Diablo\ II\ \(mod\). Note that I renamed the Diablo II folder to "Diablo II 1.12a Modded" and the D2 app to "Diablo II (mod).
I am unsure of the process for earlier iterations of the OSX (Panther, Tiger, etc.) or later versions (Snow Leopard and whatever comes next). I will do some testing and update at a later date. Presumably, you can run multiple instances by having multiple installs, each with a slightly different name (Diablo 2, Diablo2, D2, DII, DiabloII, Diablo II, etc.), though this has not been tested.
Running D2 in a WindowTo run D2 in Windowed mode, start up the game and hit cmd-m. You will have to do this every time you start the game.
There may be a way to tell the mac to always start D2 in a window, but I have no idea how to accomplish this, since I almost always play full-screen. Edit: there is no known way to force D2 to always start in a window... and I now play (on the rare occasions I play) almost exclusively in windowed mode.
And Pär suggested I add this, so here it is:
Running D2 without SoundThe Windows -ns command does not work in Mac, and there is, at present, no known way of replicating the -ns command in OSX.
At the Character screen, you can press ctrl-m to mute the sound, but the sound files will still be loaded
Keys and ButtonsIn their infinite wisdom, the folks at Apple decided to map the F-keys to control brightness, volume, expose, dashboard, and the like. This is true for all keyboards released by Mac since ~2007 (and perhaps before). This caused much consternation and gnashing of teeth in the mac community (though pretty much everyone calmed down) and continues to give PC users a reason to talk bad about macs. But there is are two ways to work around this:
1) Should you choose to use the F-keys in Diablo II, you'll need to go to System Preferences -> Keyboard and Mouse.
Under the keyboard tab, check the box marked "Use all F1, F2, etc. as standard function keys."
2) Alternately (and I strongly suggest this anyway, even for PC users, since it makes toggling between skills and whatnot much easier), remap the shortcut keys in Diablo II:
Open a character, hit esc -> options -> keys and buttons, then re-map anything and everything you like.
For example, I use 12345/qwerty/asdfg for skill-switching; zxcv for belt slots; hjk for inventory, LCS, and merc; u and i for quest and skill trees; the 'tilde' key (next to 1) for screen capture; the space bar for reveal items. . . I could go on.
Mac Laptops and MiceShould you choose to play D2 on your MacBook or MacBookPro (or iBook or PowerBook) I strongly suggest purchasing a third party, wired mouse, since the trackpad on Apple notebooks has only one button.
I also suggest avoiding the MightyMouse, since the scroll ball tends to die after ~3-6 months of use. I purchased 2 MightyMice and received 3 replacements: all failed in less than 6 months.
Note: Use mice that connect to your mac via built-in Bluetooth at your own risk: the wires that connect the Bluetooth module to its power supply are defective in most versions of the MacBook, and your Bluetooth will almost certainly fail just as Hell Diablo unleashes his pink lightning hose on your Hardcore Tourney Toon. This is a known (but not acknowledged) issue in MacBooks made between 2006 and 2008. MacBook Pros and more recent MacBooks are to my knowledge unaffected.
Known IssuesD2 will not function on MacBooks with the Intel GMA 965 (and later) chipsets. In their infinite wisdom, Intel decided to remove support for 256k colors in the GMA 965 and later chipsets. A Beta fix is available here, and works fine in Single Player, though lan and Battle.net play is not supported. The 1.13 patch should fix this issue permanently.
Note that MacBooks with the Intel GMA 950 (confirmed) and Nvidia chipsets (confirmed) are unaffected.
Ok. So what have I forgotten? anything I have wrong? anything you'd like to see? Please let me know, and I'll update this in hopes of getting some love from the stickies! Thanks in advance!
D2 under Lion
In its infinite wisdom, Apple decided to remove support for PPC applications in OSX 10.7 Lion. This kept me from upgrading for many months, and then kept me from playing for many more months. Now that Mountain Lion is mere days or weeks away, I've found a solution...
Actually, there are 3 solutions: 1) Sheepshaver and emulating OS9 (very difficult to find legal copies of OS9 boot ROM); 2) Crossover Games Mac (costs $40); and 3) Wine for Mac.
I went with 3, and here are some instructions: ymmv
We'll be using PlayOnMac, a Wine wrapper for OSX. More on that below.
Step 1) head to blizzard and dowload the mac versions of D2 and LoD. (Swapping discs under PlayOnMac/Wine on OSX gets some bad reviews, and everyone recommends using the downloadable installer.) BE SURE TO COPY YOUR CD KEY, or have it handy, as you'll need them to complete the installations.* The downloads will take awhile, but it will give you time to set up PlayOnMac, have a snack or a nap, maybe watch some tele, and etc.
Step 2) Download PlayOnMac, or the wine bottler of your choice (there are others). PlayOnMac has a fairly shiny UI, and adds a management layer on top of wine, effectively separating each program installation into an individual wine install, and making uninstall as simple as deleting a folder. PlayOnMac is a port of PlayOnLinux, which I wish I knew about back when I was messing with Linux, as it would've made much of my D2 play on that platform much more fun… Other wine bottlers exist, and ymmv.
Once you have all the installers downloaded…
Step 3) Install PlayOnMac. It's an uber-simple install. Open the dmg, open the virtual drive it creates, drag PlayOnMac to your Applications folder, and… Done.
(The first time you open PlayOnMac, it will install some fonts, and do some other setup type things.)
Step 4) Important: Open X11 (Applications-->Utilities), go to Preferences, and checky box to toggle theFull-screen mode (and Allow menu bar access in full-screen mode, if you so desire).
Step 5) Open the Diablo II folder you downloaded, and double-click the Installer.exe file. PlayOnMac will launch. Follow the prompts to install D2. [Note: there are some videos on the interwebs about this, and they go into somewhat more detail about changing various settings, but by the time I got around to installing, some helpful hacker had already provided the perfect Wine settings, and everything went very smoothly.]
Run the D2 installation, and when it finishes, exit the installer. You'll need to hit Option-Command-A to exit full-screen mode (and you'll need to do this every time you close D2: it's a tiny bit of a pita, but worth it, imo).
Step 6) Install LoD…
a) In PlayOnMac, click the + button in the application bar to install a new program.
b) At the bottom of the resulting window, click 'Install a non-listed program."
c) A window will open with some caveats: don't fear, just click Next.
d) Select 'Edit or update an existing application' and hit Next.
e) Select Diablo II and hit Next.
f) Leave all boxes unchecked and hit Next.
g) Browse to the LoD install folder, and select the Install.exe file.
h) Give the resulting program a catchy name, something like 'Diablo II LoD.'
Go through the install. When it finishes, exit the installer.
PlayOnMac will have helpfully provided some shortcuts on your desktop. These do not work, so just delete them, and start D2 from PlayOnMac.
Step 7) The first time you start LoD, you'll want to connect to BattleNet and download the latest patch.
And... Done. Now be prepared to be blown away by the fps and rendering smoothness never before seen in D2 on OSX. I've never played D2 at this high a frame rate, and never without the fans running full blast. It's quite literally amazing.
A couple of pains:
1) the game runs under X11, and in a window inside X11. It will not work full-screen. This doesn't bother me much, because I switched to playing in a window many years ago and never looked back.
2) every time you exit the game, you'll need to hit Option-Command-A to exit full screen.
3) ever time you exit full screen, PlayOnMac will report that D2 Crashed.
But these are totally worth it, IMO, since it's possible to play D2 under Lion, and with a far higher frame rate, no jumpiness, no OSX-caused lag, or any of the other issues that plagued D2 under OSX.
And if you have any questions or run into any problems, please feel free to PM me, and I'll try to help. There may be some solutions on the interwebs as well.
*As a side note, when I first installed D2 on a netbook, I had to call Blizzard and get new CD Keys, as the ones I had were from 2004, and they've since updated their license keys to a 26 character format… my old keys were 16 characters.
RWM and PlayOnMac
Yes, friends, RWM can be installed in PoM...
Download RWM (link available on this thread), open the zip file, and drag the "Runewords" folder to your Diablo II Play On Mac folder. (On my machine this is in Users/myname/Library/PlayOnMac/wineprefix/DiabloII/drive_c/Program Files/Diablo II).
Now open up PlayOnMac and create a new shortcut for your Diablo 2 install. Give it a catchy name like "Diablo II RWM" or somesuch.
Save the shortcut.
Now comes the fun part...
Navigate to the Shortcuts folder in your PoM install. (Mine's at Users/Library/PlayOnMac/shortcuts).
Right-click (or option-click) on the unix executable with the fancy name you picked above, and choose to open with Text Edit.
Find the line that begins with cd, and add "/Runewords" (minus the quotes) to the end.
In the line below, the one that begins with POL_Wine, copy the path in the line above in between the quotes, and instead of /Runewords at the end, add "/Diablo II.exe".
Now, outside of the quotes, but before the funky line-end characters, add -direct -txt and *poof* you have RWM installed! (or, rather, I did... YMMV... I suggest you try with something cheap, like EDGE or somesuch.)
On my machine, the two lines in question look like this:
Again, YMMV.Code:cd "/Users/tehjaygun/Library/PlayOnMac//wineprefix/DiabloII/drive_c/.//Program Files/Diablo II/Runewords" POL_Wine "/Users/tehjaygun/Library/PlayOnMac//wineprefix/DiabloII/drive_c/.//Program Files/Diablo II/Diablo II.exe" -direct -txt
This is all legal, and it's all free, and it's the best D2 experience I've ever had under OSX, despite a couple of minor annoyances. Given that I'm able to play a 12 year old game with far fewer problems than before, I'll happily take the annoyances.
D2 under Mountain Lion works the same as under Lion, though you'll need to download X11, as it's not included in the OS any longer. If you attempt to install PlayOnMac, it will lead you to install X11 before anything, and if you upgrade Lion to ML, and then attempt to launch PlayOnMac, it will direct you to install X11.
The only difference I've seen is a blessed one: the open source X11 seems to allow windowed D2 without taking over the full screen, so no CMD-Option-A every time you want to get out of X11: WIN.
version 2: added bit about mice; changed the Apple-key stuff to cmd-
version 3: changed the sound thing; added BMFV's multiple instance tip
version 4: added niwyral's script tip; added section on known issues with the Intel GMA 965 chipset, and later confirmed Nvidia support for 256k colors.
version 5: added instructions for playing D2 on OSX Lion under Wine.
version 6: updated with findings under Mountain lion: all is well.