Aaron's Custom MAME Compiler v0.92

Show us your cabinet, control panel, or clever mod. Tell us what you did and share how you did it. Bask in the glory!
User avatar
aaronbewza
Gamer Extreme
Gamer Extreme
Posts: 25
Joined: October 20th, 2011, 3:27 am
Favorite Game: Galaga
Location: Cache Creek, British Columbia
Contact:

Aaron's Custom MAME Compiler v0.92

Post by aaronbewza » December 22nd, 2011, 5:32 pm

Staff Edit: At this time, no working link to Aaron's compiler can be found. Sorry for any inconvenience.

*****

Aaron's Custom MAME Compiler version 0.92
...something new and unique for the MAME addicts out there :cheers:
(I'll be working on this post for a while yet, making it pretty and easy to read etc... thank you for your patience, consider this "beta thread v0.9")

Description:
This is unlike any of the other compilers out there...
- When used correctly, this tool will patch MAME Source files with High Score support,
automatically detecting your MAME Source version and creating the DIFF patch to use with
your chosen version. Any version will work from 108 to newest (145 at the time of this post).
- It will also create the matching "HiScore.dat" file for use with your version.
- It seeks out the code in the source files which shows the
"State Successfully Loaded" message boxes and completely removes them.
- It creates "compile.bat" in your MAME Source folder, will attempt to compile when opened (for manual compiling attempts.
- Last but not least, it also creates a custom MAME.INI configuration file which exactly matches your chosen MAME version,
with the new options already activated and in place, ready to use beside your new custom MAME.EXE
The option to compile is presented after these fixes are completed... it is not
guaranteed that MAME.EXE will compile successfully. Any other MAME addict
reading this will know what I mean... sometimes it works, sometimes not.
BTW: only the 32-bit MAME.EXE can be compiled from the program at this point...
if you want to compile 64-bit, you'll have to change the paths in the created
"compile.bat" file to contain *\mingw64-w64\ instead of *\mingw64-w32\
and have the correct matching mingw64-w64 folder inside your MinGW folder .

System Requirements:
- Tested on Windows 7 32-bit (I don't know if it works on XP, please report any issues)
- MAME source files folder (MAME download page, any version from 108 and newer)
- MinGW working folder (MinGW download page, must be compatible with chosen MAME version)

Download:
Aaron's Custom MAME Compiler.exe (3.3 mb)

Instructions:
Place your MAME and MinGW folders in the same location, preferably C: Drive
You should see three items:
"Aaron's Custom MAME Compiler.exe"
"MameSource" (or whatever name you choose for folder to unpack MAME source files into)
- one of the files directly inside is called "whatsnew.txt" (so you know it is placed correctly)
"mingw64-w32"
- one of the folders directly inside is called "bin" (so you know it is placed correctly)

...Run the tool! it should be all automatic.
EDIT Feb 28th: Version 145 does not want to compile with the newer MinGW tools... I don't know what to say about this. I know compiling is successful on some peoples' computers and not others, so I'm just going with that :) I hope someone reports success...

Questions, comments and insults are all welcome, please report any issues here :)

If everything goes 100%... place MAME.EXE, MAME.INI, and HISCORE.DAT into your working Mame folder (where you use it to play the games).
Don't forget to make a folder in the same location and name it HI so the HISCORE.DAT file can work correctly!

Change History:
v 0.9.0.0 - built beta version
v 0.9.1.0 - changed some stuff around, cleaned up code, fixed mouse hover text
v 0.9.2.0 - updated program to work with version 145
Last edited by aaronbewza on March 9th, 2012, 5:54 am, edited 4 times in total.
AutoHotkey builds cool stuff.

User avatar
Incito
Founder
Founder
Posts: 2094
Joined: June 5th, 2008, 3:20 pm
Favorite Game: Marvel vs. Capcom 2
Location: Metro City
Contact:

Re: Aaron's Custom MAME Compiler v0.91 (beta)

Post by Incito » December 22nd, 2011, 11:38 pm

Awesome! I stickyed it. :sparta:

User avatar
Hierophant
Site Administrator
Site Administrator
Posts: 3453
Joined: December 11th, 2008, 8:41 pm
Favorite Game: Alien vs Predator
Location: LV-426 Acheron
Contact:

Re: Aaron's Custom MAME Compiler v0.91 (beta)

Post by Hierophant » December 24th, 2011, 1:15 am

Thank you very much, Aaron. This will be a great boon to anyone who wants a more authentic feel for their MAME cab. Love your work! :link:

User avatar
Vedderist
Gamer Supreme
Gamer Supreme
Posts: 16
Joined: April 10th, 2011, 10:36 pm
Favorite Game: Raiden

Re: Aaron's Custom MAME Compiler v0.91 (beta)

Post by Vedderist » January 6th, 2012, 5:50 am

Awesome. Downloading it now. Will have to wait a week till I get home to use it but thanks a heap.

:clapping:
I know I was Born....I Know that I'll Die....The In-between is Mine

User avatar
aaronbewza
Gamer Extreme
Gamer Extreme
Posts: 25
Joined: October 20th, 2011, 3:27 am
Favorite Game: Galaga
Location: Cache Creek, British Columbia
Contact:

Re: Aaron's Custom MAME Compiler v0.91 (beta)

Post by aaronbewza » February 25th, 2012, 4:18 pm

:done:
I've been a big slacker and did not notice the MAME version change to 145. I updated the program to work with the new version,
everything is ok: it patches the Hiscore.diff (for hiscore support) and removes "State Successfully Loaded" message boxes
BUT I can't get it to compile with the newer MinGW folder. I'm not sure what to say about that, if it is only my computer
the compiling fails on.
Can someone please try compiling and reporting back here if you were successful or not? I know that some people will be
able to compile, and others will not be able to... as usual. But since I can't, I don't know for sure if it will. Thanks :confused:

In the next version (146) there will be a "Update Program" function, you will be able to check for updates directly
from the program, no need to check the website or anywhere else from that point on. Thanks again for your support
and for letting me contribute to this community! Cheers.

Download link is in the top post :thumbsup:
AutoHotkey builds cool stuff.

User avatar
Hierophant
Site Administrator
Site Administrator
Posts: 3453
Joined: December 11th, 2008, 8:41 pm
Favorite Game: Alien vs Predator
Location: LV-426 Acheron
Contact:

Re: Aaron's Custom MAME Compiler v0.92

Post by Hierophant » March 11th, 2012, 8:31 pm

Aaron, it looks like the link to your compiler download is broken at this time. I tried to access it in Firefox, Internet Explorer, and Opera, but couldn't get at it. Seems like the same deal for the autohotkey links in your sig, too.

:unsure:

User avatar
aaronbewza
Gamer Extreme
Gamer Extreme
Posts: 25
Joined: October 20th, 2011, 3:27 am
Favorite Game: Galaga
Location: Cache Creek, British Columbia
Contact:

Post by aaronbewza » March 12th, 2012, 4:10 am

It sure looks that way... I think they are updating the code or something. There were a few glitches a couple days ago with uploading stuff for me, but it worked by the next day. Here is a direct download link from YouSendIt (good for one week from the day of this post) :

Download v0.92 (updated to MAME 145) from YouSendIt.com
AutoHotkey builds cool stuff.

User avatar
Hierophant
Site Administrator
Site Administrator
Posts: 3453
Joined: December 11th, 2008, 8:41 pm
Favorite Game: Alien vs Predator
Location: LV-426 Acheron
Contact:

Re: Aaron's Custom MAME Compiler v0.92

Post by Hierophant » March 15th, 2012, 2:14 am

No worries, the original links are live again. I'll give your compiler a try when I get a chance and let you know how it goes for me.

User avatar
Hierophant
Site Administrator
Site Administrator
Posts: 3453
Joined: December 11th, 2008, 8:41 pm
Favorite Game: Alien vs Predator
Location: LV-426 Acheron
Contact:

Re: Aaron's Custom MAME Compiler v0.92

Post by Hierophant » April 1st, 2012, 9:03 pm

Aaron, I tried using your compiler for 0.145 and was unsuccessful. Everything seemed OK up to this point:

Code: Select all

mkdir.exe -p object/windows/tools
But then came this:

Code: Select all

Compiling src/osd/windows/vconv.c...
gcc.exe: CreateProcess: No such file or directory
make: *** [obj/windows/osd/windows/vconv.o] Error 1

C:\mame0145s>
I'm on WinXP, SP3.

User avatar
aaronbewza
Gamer Extreme
Gamer Extreme
Posts: 25
Joined: October 20th, 2011, 3:27 am
Favorite Game: Galaga
Location: Cache Creek, British Columbia
Contact:

Re: Aaron's Custom MAME Compiler v0.92

Post by aaronbewza » August 6th, 2012, 10:37 pm

oh wow I never saw your post... my apologies! I got the same thing with v145, a no-go. Since I can do some other versions, and I've done v145 successfully on a different computer, I'm thinking it's the compiling itself that's going wrong. All this program does is initiate the compiling. Yah v145... same errors here :) but on another computer it went 100%. Maybe Visual C in Windows is not the latest one and can't mix with the MinGW environment but I really have no idea why.

I had a heart attack a couple months ago and havent done much lately, I have not been around. Looks like Mame is up to v146u4 at the time of this post, I'll have to update the program to be compatible with v146.
AutoHotkey builds cool stuff.

Post Reply