Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: My name is Rando, and I Compiled! And still have questions...  (Read 2428 times)

0 Members and 1 Guest are viewing this topic.

Rando

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 462
  • Last login:April 23, 2016, 07:49:31 pm
My name is Rando, and I Compiled! And still have questions...
« on: January 28, 2012, 09:20:22 pm »
Man,
I must be an idiot, cause for the life of me I can't figure out where to even start to compile.  I'm running MAMUI32, I'd be happy to run regular MAME if it were easier.  I've been to Mr Do's page, I've been to other pages, and it's like Spanish to me.

I want to get rid of the nag screens, and I think use the hiscore thing if it does what I think it does which is to save hi scores in games that try not to each restart.

I tried to start earlier tonight, I downloaded and extracted something, thought I killed my system because everything ran SUPER slow after doing that.  Restart fixed my issue there, but I'm no closer to where I was.

Maybe I should do a step a day.  Is there a Idiots IDIOTS guide to Compiling??  :hissy:
« Last Edit: January 31, 2012, 03:55:41 pm by Rando »
Rando - My build thread: http://forum.arcadecontrols.com/index.php?topic=107741.msg1142843#msg1142843 (work slowed but still progressing!

Generic Eric

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4520
  • Last login:July 15, 2024, 09:18:25 pm
  • Restore! Don't maim for MAME, build from scratch!
    • forum.arcadecontrols.com/index.php/topic,143226.0.html
Re: Hi, my name is Rando, and I can't Compile
« Reply #1 on: January 28, 2012, 11:36:28 pm »

Kangum

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 461
  • Last login:February 25, 2018, 07:46:20 am
Re: Hi, my name is Rando, and I can't Compile
« Reply #2 on: January 29, 2012, 01:43:18 pm »
generic erics post is the easiest way. its not that bad. you run the installer. once that is done you download the 144 mame source and set its path in the program you installed. then just make sure you download and apply all the official difference files in order THEN apply the newest difference file from this website last before you hit compile.
« Last Edit: January 29, 2012, 01:45:47 pm by Kangum »

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: Hi, my name is Rando, and I can't Compile
« Reply #3 on: January 29, 2012, 09:00:18 pm »
Don't feel bad, Rando.  I tried following the directions, got errors every time, then gave up and used the headkaze compiler program and it worked. 

Well Fed Games

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1884
  • Last login:January 07, 2025, 04:42:47 pm
  • Delicious!
Re: Hi, my name is Rando, and I can't Compile
« Reply #4 on: January 29, 2012, 10:39:43 pm »
+1. I've never figured it out, using various methods. I eventually... found...  ;) a version that had what I needed, which was basically no nag screens, etc.
Completed projects: Pac bartop (Plug & Play), 30th Anniversary Pac cab (MAME), Point Blank (PS1), Centipede (arcade hardware- light restore), VS. Super Mario Bros (arcade hardware- light restore) Tetris Cocktail (SNES), Arcade Classics upright (60-in-1, then MAME), Multi-Raiden (arcade hardware). Pac Man vs.(Gamecube),

Working on: Pinball Re-theme, Homebrew arcade arena shooter

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19961
  • Last login:Today at 02:01:29 am
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Hi, my name is Rando, and I can't Compile
« Reply #5 on: January 29, 2012, 10:43:52 pm »
The Headkaze complier works perfectly for me. I get the source from Mamedev.org, the patches from here, put them where they need to go, hit the GO button, and 20 minutes later I have a working version of MAME.
***Build what you dig, bro. Build what you dig.***

Rando

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 462
  • Last login:April 23, 2016, 07:49:31 pm
My name is Rando, and I can't Compile (now with more (stupid?) questions!)
« Reply #6 on: January 30, 2012, 09:49:32 am »
Appreciate the feedback all, both constructive and supportive!  :)  On the surface it sounds simple... "Just compile!  Follow the directions!" but with all the different dated versions of MAME, Source Code, HiScore files, the Diff (???) files, and other stuff, I have no idea what will and won't work together. 

So far, I’m following the directions on the Headsoft page (http://www.headsoft.com.au/index.php?category=mame&page=mc64) am down through step 5 so far.  I don’t know if my steps have been successful though, because of some of these issues.  I’m going to list out some of these questions so you can see the questions that a novice (like myself) may have to help instructions in the future:

Quote
Instructions
For MameUI 0143u3 follow these instructions (Skip the MameUI steps to compile standard Mame)

Yeah!  A question even before the first step!  I’m using MameUI 0142u4, which is earlier, so I need to actually read past the instructions to where it says:
Quote
Older Versions of MAME
For Mame versions earlier than 0143u1 you cannot use Mame Compiler v1.18 to compile MAME you must use v1.17. You can download Mame Compiler v1.17 from here.
So I’m good, I have an earlier version so I get Compilier 1.17, not an issue…

Quote
1. Install Mame Compiler
Done, woot, that was easy

Quote
2. Create a folder C:\MinGW\source\MameUI0143u3
Question, I don’t have version 0143u3, I have version 0142u4, should I rename it to be 0142u4 or 0143u3?  I chose 0142u4 because that’s the version I have, but this problem will resurface…

Quote
3. Download the hiscore hi_143.txt from here and copy it into the C:\MinGW\patches (you can rename it to hi_143.diff if you like but it doesn't matter)
This step doesn’t take you to a file, it takes you to another listing of instructions, but it mentions hiscore somewhere in the middle, so I follow another link, where I then follow another link to a download page.  I get to a highscore file, but it’s a dat file, not a text file.  Is this the same, I don’t know.  Step 3 says I can rename the text file to a diff file, but this is a dat file, and what is a diff file?  I’m not sure and downloaded the dat file, don’t know if this is right.

Quote
4. Download the mame0143s.zip from here and extract to C:\MinGW\source\MameUI0143u3
Again, I don’t have a 0143 version I have a 0142 version, do I try to find a 0142 file instead of 143?  Or should I just download what it says?  And again, should the folder be named for the version in the instructions or the version that I have?  Is any of this important?  I download the file is says and put it into my renamed 0142 folder.

Quote
5. Download the updates from here (0143u1_diff, 0143u2_diff and 0143u3_diff) and extract them to C:\MinGW\patches
There are more diff files that those listed above, so I download those as well, the instructions must just be out of date. But… what is a diff file and do I want/need it?  Do I need to download all the diff files or would just the latest one be fine?  No clue, download them all to my patches folder, which has other diff files already in there as well.  Exciting.

That’s as far as I got without knowing if what I was doing was right or not.  And the whole time I’m doing this I’m wondering if I should instead just update my MAMEUI version so I won’t have all of these version questions, or should I dump MAMEUI and go down to regular MAME since I’m using MALA as a FE anyway and therotically there is a performace boost that I will see if I do so since I’m running all of this on an old PC.

But anyway, there you go, some of the problems that I (and apparently some others as well it looks like) experience when trying the simple task of compiling.  See what I mean?

Thanks all!
Rando - My build thread: http://forum.arcadecontrols.com/index.php?topic=107741.msg1142843#msg1142843 (work slowed but still progressing!

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19961
  • Last login:Today at 02:01:29 am
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Rando-

All good points. You just have to assume that the instructions are on a static page whereas MAME is still evolving. So yes, even though the instructions say one thing, you can get by with substituting for the most current numbers/source codes.
***Build what you dig, bro. Build what you dig.***

Rando

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 462
  • Last login:April 23, 2016, 07:49:31 pm
What does this mean:

Quote
Apply the official Mame patches 0143u1_diff, 0143u2_diff then 0143u3_diff. Apply them by browsing to each one selecting it from the file browser then selecting "Apply Patch"

If just in file explorer, windows doesn't know what to do with them.  If in MAMEUI, there is no apply patch option.  If I try to run the MAME Compiler program, I get a "Unable to find a version of the runtime to run this application" error.

I have NO idea what I'm doing, and I swear I'm trying.  Took me 15 minutes to get the right Zip app to open the damn 7z files. 
 :angry:
Rando - My build thread: http://forum.arcadecontrols.com/index.php?topic=107741.msg1142843#msg1142843 (work slowed but still progressing!

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
It would be pretty sweet if someone made a Youtube tutorial on compiling mame, I checked and couldn't find one. (and I am in no way volunteering to do one...trust me, you do not want this kind of tutorial made by me.  :lol )


What does this mean:

Quote
Apply the official Mame patches 0143u1_diff, 0143u2_diff then 0143u3_diff. Apply them by browsing to each one selecting it from the file browser then selecting "Apply Patch"

If just in file explorer, windows doesn't know what to do with them.  If in MAMEUI, there is no apply patch option.  If I try to run the MAME Compiler program, I get a "Unable to find a version of the runtime to run this application" error.

I have NO idea what I'm doing, and I swear I'm trying.  Took me 15 minutes to get the right Zip app to open the damn 7z files. 
 :angry:

I think what it means is that while you have mame compliler open, click the "..." button right below where it says "diff patch file", then you find the file in the explorer window that pops up. One it is selected, hit the apply patch button. Then repeat that process for every patch file. The next step then has you do the same thing again with the highscore patch file.

Well Fed Games

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1884
  • Last login:January 07, 2025, 04:42:47 pm
  • Delicious!
Re: My name is Rando, and I can't Compile (now with more (stupid?) questions!)
« Reply #10 on: January 30, 2012, 10:20:21 pm »
It would be pretty sweet if someone made a Youtube tutorial on compiling mame, I checked and couldn't find one.

+1! someone smarter than us be a BYOAC hero!
Completed projects: Pac bartop (Plug & Play), 30th Anniversary Pac cab (MAME), Point Blank (PS1), Centipede (arcade hardware- light restore), VS. Super Mario Bros (arcade hardware- light restore) Tetris Cocktail (SNES), Arcade Classics upright (60-in-1, then MAME), Multi-Raiden (arcade hardware). Pac Man vs.(Gamecube),

Working on: Pinball Re-theme, Homebrew arcade arena shooter

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19961
  • Last login:Today at 02:01:29 am
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: My name is Rando, and I can't Compile (now with more (stupid?) questions!)
« Reply #11 on: January 31, 2012, 12:27:19 am »
Rando-

I just compiled Mame0144u7 because I read that it fixed a bug with Firefox. Here's what I did.

1. Installed HeadKaze's Mame Compiler 64.
2. Downloaded the 144 source from Mamedev.org. I extracted the source .zip file into a folder called Mame0144u7 in the C:\MinGW\Sources folder.
3. Downloaded all 7 of the 144u1-7 updates. Unzipped them and put them into the C:\MinGW\patches folder.
4. Came here and downloaded MKChamp's No Nag patch for 144u7 (hi_144u7.txt). Put the .txt file into C:\MinGW\patches as well.
5. Fired up Mame Compiler 64. Left the MinGW Folder selection alone. Changed Mame Source Folder to C:\MinGW\Sources\Mame0144u7
6. Went to Diff Patch File selection box. Navigated to C:\MinGW\patches and selected the first .diff file (0144u1). Clicked on Apply Patch and watched the status box patch the source. Once it said 'Finished' on the bottom, I repeated this step with the next .diff patch (0144u2), applied it, and repeated in increments until I applied up to 0144u7. After that, I selected hi144u7.txt and clicked Apply Patch. Once this was run, the source was ready to compile.
7. Under Compile Options, I checked "64-bit Processor" and "Dual Core" because it applied to my machine. I also checked "Clean Compile" just because. I left the "Optmize for" pulldown alone because in my experience, it doesn't seem to work.
8. Once you're done that, click the long "Go" button. It'll start to compile. Go do something else, because it will take a little while (mine takes twenty minutes, I've had old machines take an hour). When it's done, it creates a new Mame binary called Mame64.exe that I rename to Mame.exe.
9. Finally, I navigated to my Mame folder. I renamed my old Mame.exe file to Mame144u4.exe so I know the version number. I put the newly compiled Mame.exe into this folder and run Hyperspin. No issues! I fire up Firefox, and sure enough, it works perfectly (well, as near perfect as it runs in Mame).

Hope this helps, friend!  :cheers:
« Last Edit: January 31, 2012, 09:29:02 am by yotsuya »
***Build what you dig, bro. Build what you dig.***

Rando

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 462
  • Last login:April 23, 2016, 07:49:31 pm
Re: My name is Rando, and I can't Compile (now with more (stupid?) questions!)
« Reply #12 on: January 31, 2012, 03:44:21 pm »
ok,
Started from scratch, worked with the latest version of basic MAME instead of UI, followed all of the Compile and patch steps.  Compiled, moved the MAME file, tried out some ROMS... and still get the nag screens.

Latest version of MAME, 32 bit Compiler, latest patches... any ideas on what I missed?

Also, what's the best way to test that the hiscore part worked?
Rando - My build thread: http://forum.arcadecontrols.com/index.php?topic=107741.msg1142843#msg1142843 (work slowed but still progressing!

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: My name is Rando, and I Compiled! And still have questions...
« Reply #13 on: February 03, 2012, 10:53:06 am »
Make sure you have a folder in your mame directory called Hi.  if hiscore works, go to a game that has working hiscore (galaga namco revision B works), play, get on the scoreboard :cheers:, exit the game, shut down mame, restart and make sure you're still there.  there should be a file in the hi folder called galaga.hi which is where the scores are kept.

although if the nonag portion didn't work sounds like there was a problem with applying the diff overall. 

Note, even with working hiscore patch, some games don't store the scores properly.  Puzzle bobble comes to mind.

Again, this stuff kills me so don't take my word for it.