Installing and compiling my custom MAME

Why use my source code mods?

 

NO programs or game images are contained on my website. All software must be provided by the end user. My site only contains configuration files and artwork authored by me, and images that are public domain. All other software contained are scripts designed to automate the installation of Mame.

Please note that my source code changes will only work with mame version 0.128.


Step 1

Downloading and preparing the mame source code

Goto http://mamedev.org/

On the left, click on previous releases. Look for version 0.128, and click on the link to mame0128s.zip. These are the mame source code files. You do not want mame0128b.exe for this step.

 

Then goto http://www.mameworld.info scroll down to MameUIs.128.exe and click to download the file. You must download this particular file! The other versions will not work with my source code changes.

 

Then go to http://mamedev.org/tools/ and download the two files mingw-mame-20070810.exe and dx80_mgw.zip.

 

Then go to http://mrdo.mameworld.info/compile.html, scroll down to "What about MAMEUI?" and download mameui_extras.zip.

 

Create a new folder in the root of your C drive named mamesrc. You must use this path, as the batch files that will create my custom mame build depend on this path. However, after the custom mame executable is built, you will be able to place your mame installation wherever you wish, and at that point you can delete the mamesrc folder.

Download my custom script mamesrc128mod.exe

Move or copy it along with the five other files you downloaded above to c:\mamesrc. Your folder should now look like this:

 

Run mamesrc128mod.exe.  This self-extracting archive will extract its contents to c:\mamesrc, then it will run extract.bat to extract all the needed files from the four files you downloaded above. After it finishes, your folder should look like this:

 


Step 2

Building the mame program

Time to compile Double click compile.bat (you may need administrator privileges in Vista)

This first screen will patch the source files to add in the hiscore patch. This will re-enable hi-score in games that the mamedevs have disabled. It also removes all the loading and nag screens when you start up games. (I don't see the need for a box telling me Galaga is not 100% accurate every time I want to play it.) And it removes the cross-hair from shooting games. This patch is courtesy of MKChamp. More info on this below.

All these patches can be disabled, by the way, in mame.ini which will be covered later on. Make your choice here, 1 to apply the patch, 2 to skip the patch and go on to the build, or 3 to cancel the whole thing and come back to this later.

 

Any error messages will show up if the patch did not apply correctly. If it did, you will see this screen:

Now it is time for the actual build.

First, it will ask if you want to compile command line mame, or mameui (if you choose mameui, it will compile command line mame as well, but will not create mame.exe)

You can optimize Mame for your particular processor (as limited to the choices below) which is something you are NOT going to get in a pre-built, downloaded version of mame. Make your choice; obviously, if you have a processor other than what is listed, choose 8, and this will build mame without any cpu optimizing. Or choose 9 to exit to windows. Choose 1-8, and go find something else to do for the next half hour or so (assuming your computer is fairly new... otherwise much longer)

 

If everything went correctly, you should come back to this screen:

If not, the best advice I can give is delete everything and start over, watch your steps, because you must have copied something wrong.

 

You should now have a mamesrc folder that looks like this:

Note: if you chose to compile mameui, mameui32.exe and mameui.chm will exist in place of mame.exe


Disclaimer:

This help file was authored on 4/3/2009 by Jimmy Hauser. It's intended purpose is to provide simple to follow instructions for compiling mame source files. The author makes no warranty, express or implied, over the contents of this document, nor use of Mame or any software whatsoever. The author does not condone the download or use of illegal or pirated software. Any instruction on the download of software in this guide is strictly for educational purposes only. Games protected by U.S. and international copyright laws should not be downloaded or used without consent of their respective authors/owners. It is the sole responsibility of the end-user of this document to make sure any and all software in his/her possession was lawfully and rightfully obtained. The author has not, nor will ever make any monetary gains from this guide, or any software distributed with it. The author has made all said software public domain, which is freely available at the author's website.

This document may not be redistributed or altered in any way without the consent of its author. Please game responsibly.