Author Topic: Tutorial: How to run Lunar Magic on a Mac and Linux Distributions.  (Read 11239 times)

dylanweber

  • Aperture Laboratories Test Subject #551794
  • Sr. Member
  • ****
  • Posts: 257
  • I accept gif requests.
I saw that running Lunar Magic was pretty hard, so I decided to donate my knowledge and prevent those posts that keep asking "OMG MEZ HAZ MAC, WHERE IS TEH MOON MAGIC?!!!1?1one?!"

What is Lunar Magic?
It's a Mario ROM editor that is one of a kind. You can edit Super Mario World ROMs to make your own customized game! There are no other Mario ROM editors to my knowledge. So, us Macs and Linux users can't really edit ROMs, but I'm going to show you a way around that.
Please, obtain Lunar Magic by downloading from the original site, which can be found here: Lunar Magic.

Introducing Wine.
My solution to get around this OS barrier is to use Wine, an open-source program that can be installed onto any UNIX system to run Windows programs.


How to run Lunar Magic on a Mac.

You will need the admin password. You should have it, if you don't, ask for it.

1.Install Apple's Xcode (which can be found online at Apple's developer website for free, or the installation CD that came with your Mac).

2.Install MacPorts.
Click here if you run Mountain Lion (Mac OS 10.8­) and want to install MacPorts.
Click here if you run Lion (Mac OS 10.7) and want to install MacPorts.
Click here if you run Snow Leopard (Mac OS 10.6) and want to install MacPorts.
Click here if you run Leopard (Mac OS 10.5) and want to install MacPorts.
Click here if you run Tiger (Mac OS 10.4) and want to install MacPorts.
Run the installer package from the download, and finish with the installation.

3.Once it's finished, open Terminal in the /Applications/Utilities/ folder.
Type the following into the command line:
Code: [Select]
if [ `sysctl -n hw.cpu64bit_capable` -eq 1 ] ; then echo "+universal" | sudo tee -a /opt/local/etc/macports/variants.conf; else echo "not 64bit capable"; fi
sudo port install wine

PLEASE NOTE: THIS INSTALLATION TAKES ABOUT 1 TO 2 HOURS. YOU MAY LEAVE YOUR COMPUTER, BUT IT WILL NEED INTERNET ACCESS.

4.Once the installation is done, type the following into Terminal:
Code: [Select]
wine ~/Downloads/lm128/Lunar\ Magic.exe
Your executable file might be somewhere else, so just type "wine" and than drag the executable file into the window.
An app named "X11" should pop up and stall for 30 seconds, then the Lunar Magic window should appear.
Please post a reply if the following didn't work for you.

Alternative Options
You can install Windows in a partition on your computer, and boot up into Windows using boot camp. Then, you can download and install any executable file in Windows without any room for emulation error.
« Last Edit: August 31, 2012, 08:59:03 PM by dylanweber »
Crap dude, you better do what he says.
For seriousness.

milesluigi

  • Miles Luigiworth
  • Administrator
  • Hero Member
  • *****
  • Posts: 551
    • Techyoshi.com
Re: Tutorial: How to run Lunar Magic on a Mac.
« Reply #1 on: January 21, 2011, 11:30:08 PM »
Good to see you got it working. I think I'll add instructions for linux shortly.

milesluigi

  • Miles Luigiworth
  • Administrator
  • Hero Member
  • *****
  • Posts: 551
    • Techyoshi.com
Re: Tutorial: How to run Lunar Magic on a Mac.
« Reply #2 on: January 22, 2011, 04:24:19 AM »
How to run Lunar Magic on a Linux System

What is Lunar Magic?
Lunar Magic is the primary tool for creating and editing rom hacks of Super Mario World. You can learn more here: http://fusoya.eludevisibility.org/lm/

The application was made to be ran in a Windows environment. Using wine, it's possible to run it in a Linux Environment.

Installing Wine
Wine is a front end to running windows applications on different operating systems. You can learn more here: http://www.winehq.org/

Lunar Magic runs just fine on a Linux based system. Let's install wine to run it.

Wine is in many different repositories. For example, if you run a debian-based system like Ubuntu, you would type in a terminal:
Code: [Select]
sudo apt-get install wineA red hat baded distribution like Fedora:
Code: [Select]
sudo yum install wineAn Arch Linux based distribution:
Code: [Select]
sudo pacman -S wineYou get the idea. If your distribution of Linux doesn't have wine in it's repository, you'll need to download the source code and compile it on your system. If you use a system like this, I'll assume you know what you're doing (./configure make make install): http://www.winehq.org/download


Running Lunar Magic
Extract the downloaded zip file.
Code: [Select]
unzip lm182.zip(The number might be different if you have a newer version)
From here, it's as simple as running wine with the Lunar Magic executable. In my case, I typed in a terminal:
Code: [Select]
wine Lunar\ Magic.exe

Success. According to the wine wiki, Lunar Magic runs perfectly under wine.

Happy rom hacking. I'll make the topic sticky, I think it's really useful.
« Last Edit: January 22, 2011, 08:22:13 AM by milesluigi »

NMinker

  • Jr. Member
  • **
  • Posts: 29
  • The Dalek begs River for MERCY
    • Twitter
Re: Tutorial: How to run Lunar Magic on a Mac.
« Reply #3 on: January 22, 2011, 01:35:10 PM »
Don't mind if I do.  ;)

EDIT: Err, yeah, you can do it... I don't feel like loading 10 different partitions for 10 different Operating Systems on my computer right now.  :Psyduck:

I once had a netbook that had 3 operating systems on it (Windows XP, Windows 7 Beta/RC, and Ubuntu.  But now that netbook has 2 OS on it (XP and Ubuntu).

I took a look at the Wine database, the entry for Lunar Magic is out of date.  http://appdb.winehq.org/objectManager.php?sClass=application&iId=5761

Also, so that's how you run apps using Mac version of Wine.  I tried using wine on my MacOS Virtual Machine (running on Win 7), I got really confused.
« Last Edit: January 22, 2011, 01:37:09 PM by NMinker »

dylanweber

  • Aperture Laboratories Test Subject #551794
  • Sr. Member
  • ****
  • Posts: 257
  • I accept gif requests.
Re: Tutorial: How to run Lunar Magic on a Mac and Linux Distributions.
« Reply #4 on: January 22, 2011, 03:08:16 PM »
Well, according to my uses, Lunar Magic works perfectly in touch with Wine.
I'll try to update my post on how to install Wine on Mac OS X.
Crap dude, you better do what he says.
For seriousness.