Skip to content

Instantly share code, notes, and snippets.

@prestia
Last active November 4, 2024 16:49
Show Gist options
  • Save prestia/9701e6d3640e1657b6c9469415d604be to your computer and use it in GitHub Desktop.
Save prestia/9701e6d3640e1657b6c9469415d604be to your computer and use it in GitHub Desktop.
Instructions on how to install Magic the Gathering Online on macOS with Retina support.

Installing MTGO on macOS using Wine, and making it look pretty!

The following instructions are heavily inspired by @pauleve. I modified his instructions and then added details about how to make a shortcut and support Retina/HiDPI displays.

Installing MTGO (and Wine and Homebrew and Xquartz and ...)

  1. Install Homebrew by opening Terminal and executing the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. In Terminal, execute the following command:
brew install cabextract
  1. Download and run the Installer for "Wine Development".
  2. Open the "Wine Devel" application, which creates a Terminal window.
  3. In the new Terminal window, execute:
wine wineboot

You may be asked to install Mono and Gecko. Install both.

  1. Again, in Terminal, execute these three commands:
curl -O https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
./winetricks corefonts dotnet461 ddr=gdi win7

Follow the instructions. The installation of .Net can take some time and may require you to install multiple versions of .Net (e.g. 4.0, 4.5, and 4.6).

  1. Once complete, execute these two commands in Terminal:
curl -o mtgo.exe http://mtgoclientdepot.onlinegaming.wizards.com/setup.exe
wine mtgo.exe

Adding Retina/HiDPI Support

  1. In Terminal, execute the following command:
wine regedit
  1. A registry editor window will appear. In the tree structure to the left, navigate to HKEY_CURRENT_USER -> Software -> Wine and then select Edit -> New -> Key from the menu. This creates a new folder/key, which you should name "Mac Driver".
  2. Open Mac Driver in the tree structure and then select Edit -> New -> String Value from the menu. This creates a new value, which you should name "RetinaMode".
  3. Double click RetinaMode, set its value to "y", and then click "OK".
  4. Close the registry editor and restart wine by typing wineboot into Terminal.
  5. Open Wine's configuration dialog by typing winecfg into Terminal.
  6. Click on the Graphics tab, enter the correct dpi under "Screen resolution", and click "OK". You can find your screen's dpi on Apple Support or via DPI Love.
  7. Restart Wine again by typing wineboot in Terminal.

Playing MTGO

Option 1: Launching through Wine Devel (the gross way)

  1. Open the "Wine Devel" application
  2. In the new Terminal window, execute:
wine mtgo.exe

Option 2: Creating a shortcut (the sexy way)

  1. Open TextEdit and make sure it is in plain text mode (Shift + Command + T).
  2. Assuming you followed the directions above, paste the following into TextEdit:
#!/bin/sh
cd ~
wine mtgo.exe

If you installed mtgo.exe elsewhere, replace ~ with the path to the mtgo.exe file.

  1. Save this file as "MTGO" (or anything, really). The important part is ensuring that you save the file without an extention (uncheck "If no extension is provided, use '.txt'." in the save window).
  2. Open Terminal and execute the following:
chmod +x path/to/file/MTGO

Replacing path/to/file with the path to wherever you saved the file and MTGO with the name of the file.

  1. From now on, all you have to do is double click the file to launch MTGO!
  2. Optional: You can replace the icon for the MTGO file with something nicer.
@kiri-420
Copy link

@Noah40 This last fix worked. thank you so much i get to play magic now !

@changkm
Copy link

changkm commented Jan 1, 2024

@Noah40 's steps worked great for me, thank you! I'm just having one issue, where I can't always get the menu open on certain cards with multiple options. I can eventually, but I have to click lots of times and it is very slow. E.g. cards with landcycling (from the hand), cards like currency converter or treasure tokens, or scrying. Interestingly, lands and artifacts with multiple colors of mana have no problem. Any ideas what the fix for this might be? I tried with both trackpad and external mouse, same issue. Thanks!

@Noah40
Copy link

Noah40 commented Jan 6, 2024

@changkm i also noticed this while playing. I generally right click and then wave my mouse around which still makes it take half a second to appear but better than nothing.

@changkm
Copy link

changkm commented Jan 8, 2024

I think i figured out that you need to click and then put the mouse where the menu is going to show up to get it to show up! Thanks again!

@changkm
Copy link

changkm commented Jan 14, 2024

Does the sound work for other people?

@Coloro1985
Copy link

i wasn't able to install it at the end of the day, we need a new way maybe :( ... i miss modo, but i don't want to buy a pc only for my game xD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment