The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: MKChamp on March 14, 2007, 11:58:08 am

Title: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 14, 2007, 11:58:08 am
HISCORE DIFF's for all MAME versions without hiscore support (108 - current)

The diff performs the following:
1) Adds hiscore support back into MAME
2) Removes all nag screens
3) Removes loading messages (decoding/decrypting/Updating Artwork, etc.) and the 'white box' when loading. (This was added to the diffs starting with hi_120)
4) Disables crosshairs by default. You can turn them back on in the game with F1 This was removed starting with hi_130u3 since MAME core now has the ability to change crosshair settings in the menu.
5) Tab button(menu) also pauses MAME and 1 acts as 'Enter'. Remove the inptport.c section if you do not want this(or just remove it from the ingame menu) This was removed starting with hi_124. You can configure this in the in game menu.

Starting with hi_127a (re-vamped 127 uploaded on 08-24) you now have the option to disable any of the patch functions via the mame.ini file. Add the following to the mame.ini file to disable the appropiate patch section:

disable_hiscore_patch   1   <- To disable highscore support. Set to 0 or omit it entirely from ini file to enable.
disable_crosshair_patch   1  <- To disable crosshairs off by default. Set to 0 or omit it entirely from ini file to enable. <- removed @ hi_130u3
disable_nagscreen_patch   1  <- To disable removal of nagscreens /white box. Set to 0 or omit it entirely from ini file to enable. <- removed @ hi_172c
disable_loading_patch   1      <- To disable suppression of loading/decrypting/etc messages. Set to 0 or omit it entirely from ini file to enable. <- removed @ hi_172c
skip_gameinfo   0      <- To disable suppression of gameinfo, nagscreen & loading/decrypting messages. Set to 1 to enable suppression.

For help compiling MAME, please see Mr. Do's excellent page. He's made it so simple, there's no excuse not to compile your own!
http://mrdo.mameworld.info/compile.php (http://mrdo.mameworld.info/compile.php)

You can also get Headkaze's MAME Compiler (http://forum.arcadecontrols.com/index.php?topic=71845.0) to make compiling even easier. Great app for those not too familier with making your own builds!
Also, you will need the hiscore.dat file by Leezer in your mame directory. You can grab that over at http://www.mameworld.net/highscore/ (http://highscore.mameworld.info/)
...and don't forget to create a sub folder under your mame directory named "hi"...that's it!
Starting with hi_124, all modifications are preceeded with comments detailing what is occuring. You can search the diff for "MKChamp" to find all the comments.
Here's the guide for what diff to download (change extention from .txt to .diff) -- Thanks for hosting them abelenki!
Credit to ozfalcon for the SDL portion....AND for keeping this going!!

Here's the link to the whole FTP site for all the patches...including new suppression patches made by ozfalcon:
http://mamestuff.lowtrucks.net/MKChamp/ (http://mamestuff.lowtrucks.net/MKChamp/)


MAME VERSION               DIFF TO DOWNLOAD
-------------------         ----------------
108                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_108.txt)
109                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_109.txt)
110                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_110.txt)
111                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_111.txt)
112                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_112.txt)
113                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_113.txt)
114 - 116                       Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_114_115_116.txt)
117                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_117.txt)
118 - 119                       Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_118_119.txt)
120                               Right-Click & Save As  (http://mamestuff.lowtrucks.net/MKChamp/hi_120.txt)
121                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_121.txt)
122                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_122.txt)
123                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_123.txt)
124                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_124.txt)
125                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_125.txt)
126                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_126.txt)
127                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_127a.txt)
128                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_128.txt)
129 - 130                       Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_129_130.txt)
131                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_131.txt)
132                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_132.txt)
133 - 134                       Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_133.txt)
135                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_135.txt)
136                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_136.txt)
137                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_137.txt)
138                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_138.txt)
139                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_139.txt)
140                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_140.txt)
141                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_141.txt)
142                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_142.txt)
143                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_143.txt)
144                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_144.txt)
145                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_145.txt)
146                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_146.txt)
147                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_147.txt)
148                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_148.txt)
149                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_149.txt)
150                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_150.txt)
151 - 152                      Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_151.txt)
153                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_153.txt)
154                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_154.txt)
155 - 156                      Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_155_2.txt)
157                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_157.txt)
158                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_158.txt)
159                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_159.txt)
160                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_160.txt)
161                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_161.txt)
162                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_162.txt)
163                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_163.txt)
164                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_164.txt)
165 - 166                      Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_165.txt)
167                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_167.txt)
168                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_168.txt)
169                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_169.txt)
170                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_170.txt)
171                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_171.txt)
172                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_172.txt)
173                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_173.txt)
174                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_174.txt)
175                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_175.txt)
176                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_176.txt)
177                               Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_177.txt)
178                             Right-Click & Save As (http://mamestuff.lowtrucks.net/MKChamp/hi_178.txt)
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on March 14, 2007, 11:58:34 am
Additonal files....

edit - all files are contained in the original post
Title: Re: hiscore diff (all versions-1 location)
Post by: Havok on March 15, 2007, 08:31:21 am
Great idea! I requested this be stickied...

** Edit **

Since this thread has all the diff files so coveniently listed, here is a link to the previous Mame releases:

http://mamedev.org/oldrel.html (http://mamedev.org/oldrel.html)

** Edit **
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on March 15, 2007, 11:29:33 pm
Been lurking here for years and leaching off the knowledge but rarely post(you can tell from my stats)...
I'm so excited I've been able to contribute something worth a sticky ;-)
I'll use this to say thank you to all the people that have contributed to the success of my mame cabinet(especially mamewah, smog and howard...whom without their proggies, my cab would be a little more complicated)
Title: Re: hiscore diff (all versions-1 location)
Post by: Leezer on March 18, 2007, 06:03:13 am
hi mkchamp i have uploaded the latest mame 0.113u2 with hiscore support added to :- www.mameworld.net/highscore along with the latest hiscore.dat with a few more games added i hope you don`t mind me uploading the mame which was made possible with your hiscore.diff file.

many thanks,
Leezer
Title: Re: hiscore diff (all versions-1 location)
Post by: acevedor2 on March 18, 2007, 11:02:20 am
I went to get .113u2 and it isn't there.  Is there a problem with the link?  Also, I am brand new at highscore.diff  - I downloaded the latest version of high score.diff and placed that it in the mame directory.  I placed it just as it is. i.e. - "mamescore.diff"  I am using commandline mame (.113b) and mala as the front end.  Is there anything else I need to do to get the highscores working?  Is there anything else I need to set?
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on March 19, 2007, 07:20:53 pm
 :banghead:

I can't get the 113u2 hiscores to work.   :timebomb:

Probably doing something stupid. :hissy:

I downloaded the source for 113.
I patched with 0113u1.diff with no errors.
I patched with 0113u2.diff with no errors.
I patched with hi_113u2.txt with no errors.
I compiled the code and put the new executables in a new mame folder.
I created mame.ini, mame.xml, etc...
I placed hiscore.dat in the same folder as mame.exe

No scores are saved when I play games.  :dunno
Help!!!

EDIT: Found it.  You must add a HI folder for the highscores to be stored in.
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on March 19, 2007, 08:45:56 pm
I went to get .113u2 and it isn't there.  Is there a problem with the link?  Also, I am brand new at highscore.diff  - I downloaded the latest version of high score.diff and placed that it in the mame directory.  I placed it just as it is. i.e. - "mamescore.diff"  I am using commandline mame (.113b) and mala as the front end.  Is there anything else I need to do to get the highscores working?  Is there anything else I need to set?

Acevedor2:

You must compile your own version of Mame. See Mr. Do's page on how to add patches to the source code and compile the source.  Download and put hiscore.dat in the same folder as Mame.exe.  Don't forget to add a HI subfolder like I did.

Mr. Do's instructions:
http://www.mameworld.net/mrdo/compile.html
Title: Re: hiscore diff (all versions-1 location)
Post by: acevedor2 on March 19, 2007, 11:02:02 pm
Got it.  Thanks!   :cheers:
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on March 20, 2007, 09:43:05 pm
hi mkchamp i have uploaded the latest mame 0.113u2 with hiscore support added to :- www.mameworld.net/highscore along with the latest hiscore.dat with a few more games added i hope you don`t mind me uploading the mame which was made possible with your hiscore.diff file.

Of course, I don't mind. I realized I forgot to thank YOU for the file that makes this all possible!!
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on March 20, 2007, 10:36:18 pm
Added hi_113u2_noNag diff because I realized the nag screen removal wasn't working.

Also, Leezer, one modification you might want to add to your .dat file is to change yard to 10yard. They changed the rom names awhile back and I got a 873,000 score I didn't want to lose ;-)
Title: Re: hiscore diff (all versions-1 location)
Post by: Leezer on March 22, 2007, 12:08:45 pm
will take a look at 10 yard fight tonight mkchamp,

btw dont suppose you could do a version that keeps the nag screens from now on could you ? i kinda like `em.

cheers

btw everyone about the compiled mame`s haze has had it taken down, however i will still update the hiscore.dat file now and then you will just have to compile your own mames or get mamefx
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on March 22, 2007, 01:09:56 pm
Hey Leezer,
If you want the warnings, just delete the ui.c section

start at this line:
diff -r -c -N old/emu/ui.c src/emu/ui.c
and remove everything until this line:
diff -r -c -N old/emu/video.c src/emu/video.c

Btw...uploaded the 113u3 diff....
Title: Re: hiscore diff (all versions-1 location)
Post by: squirrellydw on March 22, 2007, 06:54:46 pm
got it
Title: Re: hiscore diff (all versions-1 location)
Post by: AE35 on March 28, 2007, 06:48:22 am

Will these also move the left/right in Galaga??

http://forum.arcadecontrols.com/index.php?topic=64298.0

Thanks!!

Nicholas
Title: Re: hiscore diff (all versions-1 location)
Post by: Brad on March 28, 2007, 05:32:37 pm
Just curious.....why are there no source updates here for full version mame releases such as 0.111 etc?

Brad
Title: Re: hiscore diff (all versions-1 location)
Post by: Encryptor on March 31, 2007, 01:57:36 pm
hi mkchamp i have uploaded the latest mame 0.113u2 with hiscore support added to :- www.mameworld.net/highscore along with the latest hiscore.dat with a few more games added i hope you don`t mind me uploading the mame which was made possible with your hiscore.diff file.

many thanks,
Leezer


I get a File Not Found when I try to download this. Bad link?

Encryptor
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on March 31, 2007, 08:21:15 pm
Quote
I get a File Not Found when I try to download this. Bad link?

The mame devs made them pull it. You'll need to compile your own.
Title: Re: hiscore diff (all versions-1 location)
Post by: javeryh on April 07, 2007, 05:19:19 pm
I'm trying to muddle through this ... anyway, the files attached to this thread are *.txt files and not *.diff files - when I type patchmame at the command prompt I just get a file not found.  I'm trying to use version .108 for everything since that's the last set of roms I have...  Any help would be great!
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on April 07, 2007, 06:47:05 pm
javeryh,

The diff files are the mame updates.  For example, if you were going to use the hi_108u4.txt  patch, you would first have to patch the 108 mame source with:

0108u1.diff
0108u2.diff
0108u3.diff
0108u4.diff

After patching each of these diff files you could then patch with hi_108u4.txt by editing the patchmame.bat to read:
patch -p0 -E <hi_108u4.txt

Then you are ready to compile.

If the diff files for 0108 are no longer available for download, I'm not sure what you can do because I do not see a hi_108.txt. 

Perhaps you could PM MKChamp to find out your options. I'm not sure if you could use the hi_107u2.txt with the Mame 108 full source or not. If you can, then you wouldn't have to patch with any diff files before applying the hi score patch.

Title: Re: hiscore diff (all versions-1 location)
Post by: javeryh on April 08, 2007, 12:07:20 am
Ahhh, OK... hmmm... maybe I'll just try to compile the current version of MAME and use my .108romset - I don't think there will be an issue with game playability...
Title: Re: hiscore diff (all versions-1 location)
Post by: Extreme8 on April 10, 2007, 09:02:48 am
If you need them....

Don't ask where I found them - a fella has to have his secrets.
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on April 10, 2007, 11:33:13 am
To clarify, only new diffs were supplied when the code changed in a way that made the diff no longer valid.

So...for example...
hi_107u2 would work for:
107u2
107u3
107u4
HOWEVER MANY 107u's there were...
108
108u1
108u2
108u3

Now you see there is a 108u4_hi posted...that one would work for:
108u4

Now you see there is a 108u5_hi...that would work for:
108u5
thru
109u1

Hope that clears everything up.
Title: Re: hiscore diff (all versions-1 location)
Post by: Bender on June 25, 2007, 07:36:56 pm
I'm new to all this. I'v been reading this forum for a couple of years waithing to start a cabinet project
Well It's finally happening! Everything is on its way!
I can't thank you all enough for putting all this information up
I've been able to do everything on my own so for (with all the info on this forum and web site)

EXCEPT this hiscore.diff thing
I've been trying for days to figure this out but I keep getting the same error when I try to compile the hiscore.diff file

Here is what I've done:
Followed Mr. Do's compiling instruction to the letter (About 12 times with different versions of mame and hiscore)

I am able to patch 113u1.diff
I am able to patch 113u2.diff

but when I try to patch hi_113u2_noNag.diff
I get this 3 line message:


C:\MAMESRC>patch  -p0 -E 0<hi_113u2_noNag.diff
patch unexpectedly ends in middle of line
patch: **** Only Garbage was found in the patch input.



I'm just changing the extension on the .txt file to .diff is there a special way I'm supposed to do that?
Please, Please HELP

Thanks so much,

Bender
Title: Re: hiscore diff (all versions-1 location)
Post by: moriartyds on June 26, 2007, 02:28:06 pm
I am able to patch 113u1.diff
I am able to patch 113u2.diff

but when I try to patch hi_113u2_noNag.diff



It's been a while since i've done this, but try not chaning the file type.  I.e. you should be typing in this:
patch -p0 -E <hi_113u2_noNag.txt   (not a .diff).
Title: Re: hiscore diff (all versions-1 location)
Post by: Bender on June 26, 2007, 10:27:50 pm
I am able to patch 113u1.diff
I am able to patch 113u2.diff

but when I try to patch hi_113u2_noNag.diff



It's been a while since i've done this, but try not chaning the file type.  I.e. you should be typing in this:
patch -p0 -E <hi_113u2_noNag.txt   (not a .diff).


Moriartyds,

Thanks for responding
Actually I tried that first and got the same message

Bender

 :applaud: EDIT! I sarted clean and tried one more time with all the most current files (Mame .116 and .114.txt) leaving the diff file as a txt file like you sugessted and it finally worked!

Mame Cabinet with High Scores and no nag Screens... BRILLIANT!

Thanks so much
Title: Re: hiscore diff (all versions-1 location)
Post by: FrizzleFried on June 28, 2007, 11:53:22 am
Does the latest .diff still work?
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on June 28, 2007, 02:45:29 pm
hi_114 works all the way to the most current (which is 116u3 at the time of this post).
Just a FYI, 116u3 has a slight bug from the dev team and you need to add the following line to pokey.h:
#define FREQ_17_APPROX 1789790
right after the
#define FREQ_17_EXACT 1789790 line.
They may correct it soon and might not be needed...you'll get a compile error early on if it is still needed.
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on July 23, 2007, 11:12:06 pm
there are a lot of different replies to this thread, all with different files attached

could someone write the steps?

Pick one version of MAME and please walk thru one step at a time...

THANKS!  :)
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on July 27, 2007, 07:56:09 pm
there are a lot of different replies to this thread, all with different files attached

could someone write the steps?

Pick one version of MAME and please walk thru one step at a time...

THANKS!  :)

That's a lot of work.  Mr Do's website lists all the steps (link listed in the first post of this thread).  If you want a summary specifically for the hi_score patch there is the post linked below though some of the links to files in that post will be for an older version of Mame and therefore probably no longer valid.  However it should help you somewhat.

http://forum.arcadecontrols.com/index.php?topic=66093.msg668103#msg668103
Title: Re: hiscore diff (all versions-1 location)
Post by: lettuce on July 28, 2007, 08:33:40 am
So if i :

1. Follow Mr. Do's compiling instructions to the letter, including following the added mame32 instructions at the bottom of the page after ive complied a standard Mame version
2. Then after ive complied a Mame32 version then download the latest diff (hi_117u1.txt) and place it in the MAMESRC folder,
3. Edit the line in the patchmame.bat to read: patch -p0 -E <hi_117u1.txt, save
4. In command prompt type, patchmame, then makemame32 (as i want it for mame32)
5. Add below files to existing Mame folder on PC:

mame32.exe
mame32.chm
chdman.exe
jedutil.exe
ledutil.exe
makemeta.exe
regrep.exe
romcmp.exe
srcclean.exe
Folder
Hi
Hiscore.dat


Done!

Is that correct way
Title: Re: hiscore diff (all versions-1 location)
Post by: lettuce on July 28, 2007, 09:08:36 am
Ok, the sets i listed above have seemed to of worked  :applaud:. But i can no longer getting into any options in the 'TAB' menu now. How do i set it back so when i press the tab key it doesnt also pause a game?
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on July 28, 2007, 11:11:24 am
Ok, the sets i listed above have seemed to of worked  :applaud:. But i can no longer getting into any options in the 'TAB' menu now. How do i set it back so when i press the tab key it doesnt also pause a game?

I don't use Mame32, but I think any changes to the key that brings up the options menu while playing a game is stored into the default.cfg file located in the cfg folder.  Try renaming default.cfg to something else.  When you run a game, a new one will be created hopefully restoring TAB as the key that brings up the option menu.
Title: Re: hiscore diff (all versions-1 location)
Post by: lettuce on July 28, 2007, 12:06:36 pm
Ok, the sets i listed above have seemed to of worked  :applaud:. But i can no longer getting into any options in the 'TAB' menu now. How do i set it back so when i press the tab key it doesnt also pause a game?

I don't use Mame32, but I think any changes to the key that brings up the options menu while playing a game is stored into the default.cfg file located in the cfg folder.  Try renaming default.cfg to something else.  When you run a game, a new one will be created hopefully restoring TAB as the key that brings up the option menu.

Ok tried rename default.cfg but no luck, ive noticed there seems to be a strange problem with the controls sometimes, something defently isnt right. Did i do it correctly the way i listed it out above? I might compile it again but this time for just standard mame and see if its ok. How do i compile it so it keeps the nag screen, and doesnt pause the game when going into the menu?
Title: Re: hiscore diff (all versions-1 location)
Post by: lettuce on July 28, 2007, 12:45:49 pm
Ok now im not sure if im doing this right. Now i have the source of 0.117, so i should follow Mr Do instructions and get 0.117u1.diff, and edit the patchmame.bat to add this 0.117u1.diff and the use patchman. After ive done that step do i need to use makemame, or do i have to get the hi_117u1.txt and edit the patchmame.bat again so it uses hi_117u1.txt, then after thats done use makemame, or do i have to use patchmame then makemame for 0.117u1.diff then repeat again for hi_117.u1.txt???
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on July 28, 2007, 01:13:30 pm
Ok now im not sure if im doing this right. Now i have the source of 0.117, so i should follow Mr Do instructions and get 0.117u1.diff, and edit the patchmame.bat to add this 0.117u1.diff and the use patchman. After ive done that step do i need to use makemame, or do i have to get the hi_117u1.txt and edit the patchmame.bat again so it uses hi_117u1.txt, then after thats done use makemame, or do i have to use patchmame then makemame for 0.117u1.diff then repeat again for hi_117.u1.txt???

You have to do all patching first and then run makemame last.  So this part of your question is true:

Quote
or do i have to get the hi_117u1.txt and edit the patchmame.bat again so it uses hi_117u1.txt, then after thats done use makemame,

You probably should start with a fresh (empty) mame source files and folders if you feel some part of the patching was done incorrectly.
Title: Re: hiscore diff (all versions-1 location)
Post by: lettuce on July 28, 2007, 03:52:38 pm
I believe there must be something wrong with the hi_117u1.diff posted near the top of this thread! As i made 2 different compiles of Mame, one i followed Mr Do steps and compiled my Mame 117 to mame 117u1, copied the 8 new files to a temp directory. I then compiled my mame 117u1 with the hi-177u1.diff and then copied this to another temp folder. I copied the files from my first 117u1 compile to my mame directory and it worked fine, but obviouslty without saving hiscores. I then deleted the 8 files i copied to my Mame directory, and replaced them with the files from the hi_117u1.diff compile, when i did this, i could not access any of the sub menus in the tab menu screen. So what can be in the hi_117u1.diff that disable you accessing the sub menus, i think it disables the enter key
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on July 28, 2007, 04:13:26 pm
MKChamp is the expert on this.  PM him with the link below so he can help:

http://forum.arcadecontrols.com/index.php?action=pm;sa=send;u=5810
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on July 28, 2007, 04:21:18 pm
Hey hey,
In the hiscore diff, remove the lines STARTING with:

diff -r -c -N old/emu/inptport.c src/emu/inptport.c

to RIGHT ABOVE
 diff -r -c -N old/emu/mame.c src/emu/mame.c

So, basically, it won't 'patch' the inptport.c section which changes the tab and enter keys.
This is my personal diff, and I have it where tab pauses and brings up the menu and 'player 1' key is my enter.

edit:
OR you can use the "1" key for enter...while you are in the options menu, you can then change the enter key from "1" key BACK to "enter"...and change pause from tab AND p to just P...or whatever you want.
Just deleting the default.cfg file won't fix it because at this point it's 'hard coded'...but changing the values from the options window will create the default.cfg with the new values.
 
Title: Re: hiscore diff (all versions-1 location)
Post by: lettuce on July 28, 2007, 07:18:27 pm
ok cheers, ill give it a go. Looking at that section in the Hi-117u1.txt can i not just change the key that is used for enter? That was if i could see it there, which i cant, or maybe even copy that part from the plain 0.117u1 diff file, or would that not work?
Title: Re: hiscore diff (all versions-1 location)
Post by: paulstevens on July 31, 2007, 04:55:42 pm
Not sure if the is appropriate for this thread, so my apologies if not.

Is there a way to patch mame so that it automatically exits after a certain amount of keyboard inactivity?   AdvanceMAME allowed this, but I cannot figure it out for current regular mame.   A patch or a diff would be great.

Without fail my youngest son leaves the cabinet w/o going to the frontend (which I like because of screen saver, mp3 player, etc.)   If mame could be patched to exit automatically after say 45 seconds of no keypresses, that would be awesome (for me anyway.)

For those doing the high score diff and PAUSING the game for a bathroom break, hopefully such a patch won't knock you out of a marathon game due to keyboard inactivity.  Other than that, I think it's a useful idea.

Thanks!
Title: Re: hiscore diff (all versions-1 location)
Post by: RecklessAbandon on August 04, 2007, 06:15:08 am
thanks for the patch  :)
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on August 12, 2007, 06:17:25 pm
Playing with this right now

FYI - if you are missing update files (_u1, u2, etc)

Simply open this link in yuour browser:
http://mamedev.org/updates/0117u3_diff.zip

and modify the name of the zip file at the end of the address in your address bar - then reload the page. Each time it will download the update file you asked for (if it is still hosted there).

Title: Re: hiscore diff (all versions-1 location)
Post by: AMDman13 on August 12, 2007, 10:43:39 pm
I know you say it's a lot of trouble to re=compile, but once it's done it's done. Still might be worth it.

However, if you really don't mind running an older version I would recommend noname mame. This is a custom compiled version of mame that offers some features that ordinary Mame does not. One of which is no nag screens! I ran this on my cab until I bucked up and decided to custom compile my own version. It really does work sweet!

It supports up to version  0.84u1.

It can downloaded at https://sourceforge.net/project/sh 0.84u1owfiles.php?group_id=91067&package_id=95932

It was designed by a byoac'er TheGatesOfBill. Try it I think you will like!  :)
Title: Re: hiscore diff (all versions-1 location)
Post by: javeryh on August 15, 2007, 09:17:53 pm
OK, I've got the following:

1.  mame0118s - latest version of mame
2.  hi_117u3.txt - current patch to save hi scores/remove nag screens
3.  0118u1_diff - latest mame update

If I mash all this stuff together can I get something that works like I think it should?  Thanks.

EDIT:

I applied the 0118u1_diff update by editing the batch file and typing patchmame.  Then I did the same thing with the hi_117u3.diff file.  Then I typed makemame at the c prompt.  Now I'm waiting for it to compile.  I think it's working!

EDIT:

OK, it didn't work. Is the hi_117u3.diff file the right file to use for mame 118u1?  Do I have to do any other patches?  Any help would be great.  Thanks!!

EDIT:

I got it!  I had the hiscore.dat file in the hi folder.  Once I moved it into the mame folder with everything else (where the mame.exe, etc. files are) it started working.  All I need now is for my .118u1 romset to arrive and I'll be all set!  Whew!
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on August 15, 2007, 11:16:30 pm
Did you get a compile error or is high scores not working?  What is the error?
Title: Re: hiscore diff (all versions-1 location)
Post by: javeryh on August 16, 2007, 09:10:15 am
Did you get a compile error or is high scores not working?  What is the error?

The "error" I got was just that high scores weren't being saved.  Everything else seemed to be working.  It turns out I had the "hiscore.dat" file inside the "hi" folder I created instead of just in my mame folder (where the .exe and all the other folders are).  Once I moved the file the high scores started to save properly on the 3 or 4 games I tested.
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on August 16, 2007, 11:31:57 pm
I was able to compile and all the nag screens and warnings are gone (YAY!)

BUT

high scores aren't saving (I testes Ms Pac Man)... I didnt see a hiscore.dat file so I created one manually

Let em know if I missed something
Title: Re: hiscore diff (all versions-1 location)
Post by: javeryh on August 17, 2007, 09:38:45 am
I was able to compile and all the nag screens and warnings are gone (YAY!)

BUT

high scores aren't saving (I testes Ms Pac Man)... I didnt see a hiscore.dat file so I created one manually

Let em know if I missed something

1.  You need to manually create a "hi" folder. 
2.  You need to download hiscore.dat - try here (http://www.mameworld.net/highscore/download.htm)
3.  You need to place the hiscore.dat file in your mame folder - NOT in the "hi" folder you created

Assuming everything is compiled properly, everything should work if you do this.
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on August 17, 2007, 12:53:12 pm
3.  You need to place the download.dat file in your mame folder - NOT in the "hi" folder you created

You mean hiscore.dat, right?
Title: Re: hiscore diff (all versions-1 location)
Post by: javeryh on August 17, 2007, 03:45:23 pm
3.  You need to place the download.dat file in your mame folder - NOT in the "hi" folder you created

You mean hiscore.dat, right?

oops.  fixed.
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on August 17, 2007, 04:45:49 pm
ok! got it... will try when i get a chance
thanks! :)
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on August 24, 2007, 08:22:22 pm
it all works beautifully!

why is hiscore support not in the official mame?
it rocks...

thanks for the info everyone
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on August 26, 2007, 10:31:43 pm
quick question guys

do you know if this works with compiling advancemame?
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on August 26, 2007, 11:48:15 pm
do you know if this works with compiling advancemame?

According to the docs, it already has high score support:

http://advancemame.sourceforge.net/doc-advmame.html#8.15.4

I may be wrong, but I think that development stopped at .106.   So you'd need to get your roms rolled back.
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on August 27, 2007, 11:46:52 am
yeah hi score is taken care of

but the no-nag-screenis to me a huge thing in this update... is there a command to skip both the ''press ok'' screen and the warnings, etc?

regular mame works ok with my monitor, but i really like how DEEP the video options are... i wish there was a config wizard on regular mame for video output like advcfg.exe ...

thanks guys!
Title: Re: hiscore diff (all versions-1 location)
Post by: Katana Man on August 30, 2007, 10:45:39 pm
OK, we need some basic questions answered for compiling with hiscore.  The "unofficial hiscore.dat (http://www.mameworld.net/highscore/)" site was not helpful with this either. (why does he call it "unofficial", and his logo is spelled Highscore.dat?)

1. Does hiscore support more games than Mame 118's savestates?

2. Why did the developers drop hiscore in favor of savestates? 

3. Assuming someone is not currently using hiscore, what is the shortest compiling route? Can I start with Mame 118 source and apply hi_117u3.txt?

4. Are all the high score files stored in the /hi directory compatible, regardless of the version of Mame (assuming it's a version of Mame that supported hiscore, or a hiscore compiled version)?

5. Does the hiscore.dat file ever need to be updated?

6. Can you use a combination of auto-savestates and hiscore?  I'm assuming no, because if the savestate is working properly, the game never exits, therefore never writes the high score to the /hi folder.


Personally, high scores are very important to me, and I want them in the latest mame.  I can certainly compile a mame with hiscore support, but I wonder about the future.  Say a year later, if I want a newer Mame, how much work will it be to skip up to the latest version?  Do I need to track down all of these hiscore diff files forever?
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on August 31, 2007, 01:10:07 am
1. I believe so, but the list of games that support save states is getting bigger. The main problem I have with save states is that just because the game supports save states doesn't mean that the savestate in, say, 118 will be good for 119. So, you would lose the highscore if you upgrade in that instance. Plus, I don't want the game to start up where I left off. I like the authenticity of 'booting' the game up...even if I am a hypocrite in the fact that the game may have not been able to save the high score if turned off.

2. Improper reporting of bugs...and not authentic

3. yes

4. I haven't had any issues. A few changed here and there, but I doubt you'll run into any issues.

5. It's got all the popular ones...and a boat load of ones you'll never even play. Alot of the newer games added to MAME would did have save high score feature and utilize nvram.

6. You could do that...the games that support save state would save...but refer back to my answer to question 1.
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on August 31, 2007, 02:39:58 pm
does the latest version 117u3 work with the latest mame 118?

thanks
Title: Re: hiscore diff (all versions-1 location)
Post by: Cananas on September 03, 2007, 01:09:04 pm
does the latest version 117u3 work with the latest mame 118?

thanks

Please, read the two post above yours. Point 3.
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on September 03, 2007, 08:05:51 pm
oups

got it... long thread!
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on September 09, 2007, 06:27:05 pm
maybe i missed it, but is there a patch/diff file to disable the loading, and ''initializing'' screens with the white box around?

(v 118)

thanks!
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on September 10, 2007, 02:25:24 pm
maybe i missed it, but is there a patch/diff file to disable the loading, and ''initializing'' screens with the white box around?

(v 118)

thanks!

All that was discussed here:
http://forum.arcadecontrols.com/index.php?topic=66512.0 (http://forum.arcadecontrols.com/index.php?topic=66512.0)
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on September 10, 2007, 03:25:09 pm
thanks - I knew I had seen it before but couldn't find it.
Title: Re: hiscore diff (all versions-1 location)
Post by: retrometro on September 15, 2007, 11:17:39 pm

I've just finished reading Mr. Do's help page and this thread.  Is it a proper conclusion that until a v119 patch is posted here for hiscores that I have to wait before applying to the v119 source?

thanks

Title: Re: hiscore diff (all versions-1 location)
Post by: retrometro on September 16, 2007, 01:08:35 am

I've just finished reading Mr. Do's help page and this thread.  Is it a proper conclusion that until a v119 patch is posted here for hiscores that I have to wait before applying to the v119 source?

thanks

I guess I didn't read carefully enough.  :-o   Also, it turns out my compile errors were b/c i saved the diff file without all the carriage returns / and didn't convert the text file to dos from unix.   

2nd question.... history of mame and hi scores past .106... why did they take support out to begin with?

______________________ edit:___

BTW, it seems now that with the hi score patch 117u3 on v118 source that after I press TAB for the menu, I can't go into any of the options.  Has anyone else seen this problem?
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on September 16, 2007, 05:45:31 pm
it works fine here with 118u5... even added the code changes to remove all decoding/loading msgs... NICE!
Title: Converting for linux Re: hiscore diff (all versions-1 location)
Post by: beernut on September 17, 2007, 11:09:49 am
For those of you using linux and needing to remove the extra linefeeds quickly try:
sed 'n;d' high_score_diff_file.txt > new_diff_file.txt

Best regards,
Mark
Title: Re: hiscore diff (all versions-1 location)
Post by: TheDriver on October 04, 2007, 04:15:39 am
I could'nt get this to work. I have only been compiling my own builds for the last few month's but after compiling the hiscore diff I still get the nag screen and loading messages with the white box and the hiscore's still don't save. I patched my source with 119u1/2 diff files then the hiscore diff taking out the tab option's (as I have it set the way I want it)

Regards.
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on October 04, 2007, 12:39:29 pm
Sounds like you may be removing an extra line or something in the hiscore diff. You should remove the section
BEGINNING with
diff -r -c -N old/emu/inptport.c src/emu/inptport.c

All the way to RIGHT ABOVE
diff -r -c -N old/emu/mame.c src/emu/mame.c

Look to see if there are any errors reported in the command window when applying the patch.

If you do not see any issues, then the next thing would be to make sure you have copied the compiled exe into your MAME directory.
Title: Re: hiscore diff (all versions-1 location)
Post by: TheDriver on October 05, 2007, 07:53:36 am
I will have another compile this weekend and post back, I'l compile without removing the line's & compile removing them again just to make sure.

Regards.
Title: Re: hiscore diff (all versions-1 location)
Post by: ARTIFACT on October 05, 2007, 06:06:40 pm
make sure you read tghe whole thread including details on the hi folder and dat file...

loading screens are not removed with this diff if i remember... that s on a separate thread.

good luck
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on October 05, 2007, 07:58:42 pm
make sure you read tghe whole thread including details on the hi folder and dat file...

loading screens are not removed with this diff if i remember... that s on a separate thread.

good luck

They have been incorporated starting with hi_119u2....
Title: Re: hiscore diff (all versions-1 location)
Post by: javeryh on October 06, 2007, 08:07:42 pm
Awesome.  I'm having a Super Pac-Man and Mappy problem with .118u1 (won't load - getting errors) so I'm going going to try and compile .119u3 with the hiscore.diff patch... problem is I need to reread everything!  This patch is going to be great if the loading screens are eliminated.  THANKS!!   :cheers:
Title: Re: hiscore diff (all versions-1 location)
Post by: TheDriver on October 08, 2007, 01:45:14 pm
Awesome.  I'm having a Super Pac-Man and Mappy problem with .118u1 (won't load - getting errors) so I'm going going to try and compile .119u3 with the hiscore.diff patch... problem is I need to reread everything!  This patch is going to be great if the loading screens are eliminated.  THANKS!!   :cheers:

More model2 loveliness, yay!!! I am compiling just now, if I get the chance tonight I will post if the hiscore patch work's this time (Just in from work, need food!!!)

Regards.
Title: Re: hiscore diff (all versions-1 location)
Post by: TheDriver on October 08, 2007, 03:36:35 pm
Ok the hiscore diff I will assume has worked, I say this because there is now no longer any loading screen's, warning's or white box screen's of any type. I do not have time tonight to check the hiscore but last time I compiled I still had all the nag screen's so that's why I assume it has now worked. I will check the hi-score's tommorow to be certain.

Regards.
Title: Re: hiscore diff (all versions-1 location)
Post by: javeryh on October 08, 2007, 11:15:18 pm
Cool.  I'm compiling now so I should know if it works pretty soon.

Here's a question: I had .118u2 installed and I downlaoded all the new files and I'm compiling .119u3 - can I just copy the 8 new compiled .119u3 files over the old .118u2 ones?  Or do I have to install .119 and copy over that?  I've never skipped over versions before.  Thanks!   :cheers:
Title: Re: hiscore diff (all versions-1 location)
Post by: TheDriver on October 09, 2007, 06:30:30 am
Just copy the 8 new files into your mame directory. :)
Title: Re: hiscore diff (all versions-1 location)
Post by: TheDriver on October 09, 2007, 07:12:43 am
Hi score's now being saved, no clue as to what happened before, maybe I never ran the hiscore diff after 119u1 & 2 I don't know but it works now, thanks all.

Regards.
Title: Re: hiscore diff (all versions-1 location)
Post by: Lakersfan on October 14, 2007, 02:38:24 am
First off, thanks to MKChamp for these diffs!! They are much appreciated.

Quick question anyone can probably answer... When I'm done compiling, I have the following files:

mame.exe
chdman.exe
jedutil.exe
ledutil.exe
makemeta.exe
regrep.exe
romcmp.exe
srcclean.exe
src2html.exe

Are they all needed in my Mame folder? Mr. Do's page says to copy to my mame folder, but when I get a pre-compiled (normal) version of mame from the net, it doesn't have most these files from what I remember.

Thanks!  :cheers:
Title: Re: hiscore diff (all versions-1 location)
Post by: retrometro on October 14, 2007, 05:18:10 pm
First off, thanks to MKChamp for these diffs!! They are much appreciated.

Quick question anyone can probably answer... When I'm done compiling, I have the following files:

mame.exe
chdman.exe
jedutil.exe
ledutil.exe
makemeta.exe
regrep.exe
romcmp.exe
srcclean.exe
src2html.exe

Are they all needed in my Mame folder? Mr. Do's page says to copy to my mame folder, but when I get a pre-compiled (normal) version of mame from the net, it doesn't have most these files from what I remember.

Thanks!  :cheers:

Some of these are tools.  If you don't need it, it won't be noticed.  Just to keep things straight, it doesn't hurt to copy all of your compiled set of executables over.  If you want to match precompiled sets of exe's, then don't worry about the extra files.  no worries.

Title: Re: hiscore diff (all versions-1 location)
Post by: Lakersfan on October 14, 2007, 05:27:56 pm
Got it, Thanks!
Title: Re: hiscore diff (all versions-1 location)
Post by: rooter on October 16, 2007, 11:37:38 am
Someone should write an app that sends your high scores to a web page.  Then we could see who is the best Q-Bert in the world!

Local high scores should be saved (obviously).

I know that getting the high scores from the app to the web could be secure.  I don't know how easy it would be to cheat the score from Mame into the app though.
Title: Re: hiscore diff (all versions-1 location)
Post by: FrizzleFried on October 20, 2007, 04:25:09 pm
Is the latest diff compatible with .120?  I ask as I have had my first problem.

I get the error:

'construct_map_mpu486k_map':
'acia6850_1_stat_lsb_r' undeclared (first use in this function)

...and more stuff I ain't going to type out.

Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on October 22, 2007, 01:18:48 am
I compiled without any issues. Make sure you are doing a clean compile and you have the latest compiling tools from mamedev. Let me know if you are having issues still and I will help any way I can...
Title: Re: hiscore diff (all versions-1 location)
Post by: FrizzleFried on October 23, 2007, 09:57:28 am
Sorry guys...I started from scratch and it worked.  Something must-a mussed up in my last environment.

Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on November 19, 2007, 01:39:07 pm
Some timer functions changed in MAME 121, so here is the updated hiscore diff to get it to compile and work as expected!

Also, do the admins have the ability to move this post below the other 2 posts at the start of this thread so all the files are at top? I suppose the other option would be to remove all the files that were only good for u releases and just keep the major releases and the *current* u releases. This would cut down on the number of different files....

At any rate...here it is!

Happy gaming!

edit ----
I removed the diff's that were only valid for u releases of old versions. This also helps clear up some confusion on what diff to download for what version....
Title: Re: hiscore diff (all versions-1 location)
Post by: TheDriver on November 19, 2007, 02:51:11 pm
Thanks for the updated file MKChamp.  :cheers:

Regards.
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on November 19, 2007, 04:23:15 pm
You're welcome.
I've changed the thread to basically contain only the major releases hiscore diff with the exception of maintaining the diff for the u releases of the current version.
The way I see it, no one should want to run a u release for an older version. They may, however, be like me and run the u releases if they are the most current version allowed.
Title: Re: hiscore diff (all versions-1 location)
Post by: TheBrokentoken on November 27, 2007, 07:58:43 pm
This is a great thread - many thanks for putting all of this in one location.

Out of curiousity, what build was the first to have high-score support pulled?
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on November 29, 2007, 04:11:10 pm
This is a great thread - many thanks for putting all of this in one location.

Out of curiousity, what build was the first to have high-score support pulled?

The very first release where high score was pulled was 107u2...which means the first major release to not have it was 108.
Title: Re: hiscore diff (all versions-1 location)
Post by: TheBrokentoken on November 29, 2007, 05:05:36 pm
This is a great thread - many thanks for putting all of this in one location.

Out of curiousity, what build was the first to have high-score support pulled?

The very first release where high score was pulled was 107u2...which means the first major release to not have it was 108.

Thank you very much - that's what I was wanting to know.
Title: Re: hiscore diff (all versions-1 location)
Post by: Xb0x3r on December 18, 2007, 07:36:17 am
I've got a small problem...I've compiled MAME 0.121 with hi_121.diff and when I tested it with pacman, it did not save my score...why?  :dunno

PS I'm using Headkaze's MAME Compiler.
Title: Re: hiscore diff (all versions-1 location)
Post by: SGT on December 18, 2007, 09:09:02 am
Do you have hiscore.dat in your mame folder?  You also need a subfolder named hi.
Title: Re: hiscore diff (all versions-1 location)
Post by: Xb0x3r on December 18, 2007, 06:56:30 pm
Ok, so I should make a folder named hi and do what with it? I'll download the hiscore.dat right now.

EDIT: Well the hiscore.dat didn't do anything. I'll try to use the hi folder.

EDIT2: The hi folder is what it needed! Thanks a lot SGT.
Title: Re: hiscore diff (all versions-1 location)
Post by: demaximis on December 19, 2007, 09:17:31 am
Will the .121 version work with the newly released 122, or should I wait for a 122-specific diff?  Thank you so much!
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on December 19, 2007, 10:33:49 am
Will the .121 version work with the newly released 122, or should I wait for a 122-specific diff?  Thank you so much!

It will...I changed the file name from hi_121u2.txt to hi_122.txt to clear up the confusion.
Title: Is high score when game is reset?
Post by: TheManuel on December 20, 2007, 11:02:14 pm
Hello folks.

I currently use MAME Plus which includes support for high scores.  On the recent MAME versions, when I hit the reset button during the game, I loose my high score.  However, if I quit the game without resetting, I don't loose it.  Back when MAME had native high score support this did not happen.

Now, I don't know if MAME Plus uses the same method as in these diff files so I would like to know if this happens with MAME compiled with the diff file (i.e. the high score is lost when the game is reset).

While we're at it, I know the diff file removes the nag screens.  I suppose this doesn't improve the loading time of some of the simpler games?  The reason I ask is because with older MAME versions, when I launched a "light weight" game like frogger, it would come up in 2-3 seconds.  However, in newer versions, it stays on that "initializing" screen for at least twice the time.  This is, of course, on the same computer.  What is different in MAME now that it takes so much longer to load anything?

Thanks.
Title: Re: hiscore diff (all versions-1 location)
Post by: DeLuSioNal29 on January 07, 2008, 01:36:14 am
First off, I'd like to thank Headkaze for contributing so much to the MAME community.  Excellent program you have here!   :applaud:

Here's my question:

Under the "Compile Options" in Mame Compiler:

Anyone know what options would be best to select for an AMD Athlon 64 X2 4000+ CPU?

I have selected:
Optimize for:
Athlon 64 (selected in drop down)
Dual Core (checked)
Clean Compile (checked)

I am looking to remove the disclaimers and white border.  I am using the hi_118_119.diff file for this.  I figured I'd optimize it for my chip while I am at it to speed things up a bit.  Is this the correct file to use? (the readme file says u1, u2, u3 etc)

Thanks for the help!

~ DeLuSioNaL
Title: Re: hiscore diff (all versions-1 location)
Post by: PhoneLine on January 25, 2008, 06:51:02 pm
Anyone able to apply the hi_122.dif to Mame 122u7?   I get a bunch of entries come up as failed when I do.  Worked fine up till 122u6.


Edit:  Ahhh, I see there is already a hi_122u7 on the first page of the thread.  thank ya MKChamp!

Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on January 26, 2008, 07:36:36 pm
Edit:  Ahhh, I see there is already a hi_122u7 on the first page of the thread.  thank ya MKChamp!

Really...no need to thank me...I mainly do this for myself ;-)
Title: Re: hiscore diff (all versions-1 location)
Post by: J-Rod on February 02, 2008, 04:16:07 pm
Not sure what is going on here, looking for some help. I have used the mamecompiler tool, to compile mame .121, and used the hiscore.diff for .121 as well. I would guess the compile went well, there were no errors, and the new mame.exe now loads roms without any nag screens and the like. I downloaded the latest hiscore.dat I could find, put it in my mame directory where my mame.exe resides. I also made a new directory called "hi" in the mame directory. It does not look like hi scores are saving though, testing with Pacman, since that is the easiest game to get a high score in quickly that I found. Any suggestions?
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on February 03, 2008, 03:36:50 pm
Not sure what is going on here, looking for some help. I have used the mamecompiler tool, to compile mame .121, and used the hiscore.diff for .121 as well. I would guess the compile went well, there were no errors, and the new mame.exe now loads roms without any nag screens and the like. I downloaded the latest hiscore.dat I could find, put it in my mame directory where my mame.exe resides. I also made a new directory called "hi" in the mame directory. It does not look like hi scores are saving though, testing with Pacman, since that is the easiest game to get a high score in quickly that I found. Any suggestions?

Hmmm...sounds like if you aren't getting the warning screens or the 'whitebox' stuff...the diff was applied correctly. A sure fire way to tell would be do type mame -cc on the command line and take a look at the mame.ini file created. You should see a line like this:

hiscore_directory         hi

If you don't, then the diff wasn't applied correctly. If you do have that line, just make sure the hiscore.dat is in the SAME folder as your mame.exe (which you said it was) and the hi folder is created under the mame folder...like this: c:\mame\hi.

Also, I don't know how you are running mame...if you are using a frontend, make sure it is running the correct mame.exe. Maybe you are like me and have a mamep4.exe or something.
Title: Re: hiscore diff (all versions-1 location)
Post by: J-Rod on February 03, 2008, 04:25:04 pm
Thanks for your feedback! I am typing this now without going downstairs to check it out, but I'll let you know. I did indeed have a mamep4.exe, but I renamed it to just mame.exe and deleted the original. I'll have a look see in the mame.ini and see if there's something going on. Everything else seems kosher, and I'm not sure how I could have applied a diff incorrectly since there was just the one.

*edit*

Ok, just checked. Here's what I found. Performed a mame -cc from my working mame directory. It created my mame.ini in the same directory. In that file there is:

#
# CORE FILENAME OPTIONS
#
cheat_file                            cheat.dat
hiscore_directory                 C:\MAME\hiscore.dat

this all looks correct, and that's where my hiscore is residing. The "hi" folder also exists in the \MAME\ directory.

Maybe I need to change that line to what you have?
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on February 03, 2008, 04:46:20 pm
Thanks for your feedback! I am typing this now without going downstairs to check it out, but I'll let you know. I did indeed have a mamep4.exe, but I renamed it to just mame.exe and deleted the original. I'll have a look see in the mame.ini and see if there's something going on. Everything else seems kosher, and I'm not sure how I could have applied a diff incorrectly since there was just the one.

*edit*

Ok, just checked. Here's what I found. Performed a mame -cc from my working mame directory. It created my mame.ini in the same directory. In that file there is:

#
# CORE FILENAME OPTIONS
#
cheat_file                            cheat.dat
hiscore_directory                 C:\MAME\hiscore.dat

this all looks correct, and that's where my hiscore is residing. The "hi" folder also exists in the \MAME\ directory.

Maybe I need to change that line to what you have?

Yes, change that line to read
hiscore_directory                 hi

This is the directory it will create the high scores for the games played. This is NOT where the hiscore.dat file is located.
Title: Re: hiscore diff (all versions-1 location)
Post by: J-Rod on February 03, 2008, 04:58:38 pm
Changing the line made it work. I was unclear as to how that had to be configured I suppose. Hopefully this blunder will help anyone else out that ends up with the same problem. Thanks a ton, and great work!
Title: Ms Pacman problems
Post by: t3ckn0b0y on February 20, 2008, 05:36:46 am
    Okay, with the patches mspac man has a few issues..
    At times the maze is blue when its suppose to be pink.. and
    if hitting f3 to reset the hardware & then hitting 5 to put in
    change and then 1 to start the same.. doing this process of
    f3,5,1 a few times the hiscore of mspacman is completely
    wiped out.. at other times its wiped out at the times the
    screen is blue instead of pink...  :badmood:  Im wondering
    if its possibly the hiscore.dat files locations for the hiscore
    placement that could be causing this problem, or the patches
    themselves.. Im going to patch 123u1 and add debug and
    etc and see if i can't find the problem in the hiscore.dat?
    am I the only one with this problem?????   :dunno
    and whats the use of the hiscore.dat or even patching for
    hiscores if the hiscore.dat isnt being kept upto date...
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on February 20, 2008, 12:13:46 pm
I would be surprised if the maze color IS, in fact, caused by the hiscore piece. There is NOTHING in the diff that would cause 'color' of the maze to change. So, more than likely, it is a core mame driver issue you are seeing or something to do with your rig. Don't apply the hiscore.diff and see if you see the same behavior.

As far as losing the hiscores by doing a reset...this is normal. Basically, the hiscore piece injects the high scores at start up...and then saves them at exit. When you 'reset' the hardware in the game, check the high scores...they are getting reset in the game. When you exit the game, the high scores in the game are then saved...which are the defaults.

While it is true the hiscore.dat is not being updated, I would venture to say it is over 95% (if not more) still accurate in applying the high scores...way more reliable than the other option of save states. The vast bulk of the older games that didn't say high scores are dumped accurately and have been added to the hiscore.dat(thanks to Leezer). Alot of the newer games that get added save the high scores via nvram file...so hiscore.dat is not needed for them.
Title: Re: hiscore diff (all versions-1 location)
Post by: t3ckn0b0y on February 21, 2008, 09:08:02 pm
Okay.. It appears to be something they did.. It might have to do with removing
the old color table.. in u1 it wasent completely removed yet. but your absolutely
right it doesnt have to do with the hiscore.dat..  still a bit confused on the reset
wiping out the mspacman.hi completely though..  i will see what happens
after i compile 123u2 the old color table is suppose to be completely removed,
might fix the issue...  :cheers:
Title: Re: hiscore diff (all versions-1 location)
Post by: shock_ on February 21, 2008, 10:57:13 pm
from history.dat:
Quote
There's a fairly well-known glitch in the game - if you put a coin in when the Ms. Pac-Man marquee title first appears but before Blinky appears then the first board will be blue instead of pink and will remain blue until you either finish the board or lose a life, after which the board will return to its normal color.

Is that what you're seeing?  That's normal behaviour for the game.
Title: Re: hiscore diff (all versions-1 location)
Post by: t3ckn0b0y on February 22, 2008, 12:29:58 am
bingo ... thanx  for all the help guys..   :dizzy: 
this rounds for you  :cheers:  :applaud:  :notworthy:
Title: Re: hiscore diff (all versions-1 location)
Post by: t3ckn0b0y on February 22, 2008, 11:22:45 pm
Thanks for this great patch MKChamp.. I'm always looking forward to
updates..  :notworthy:
Title: Re: hiscore diff (all versions-1 location)
Post by: Pitou on February 28, 2008, 08:51:43 am
Hello,

First, thanks MkChamp for the patch, but there is one problem for me applying these modifications.

Since I'm using a fixed 60hz display, I'm using the refreshspeed option for mame to slow down a little bit some games, correcting audio glitches.

I don't want to change the speed option to say 0.98, since it will slow down all games even those that run under 60hz.

It seems that the calculation is done during startup screens (they're now gone!), so the calculation is wrong. For example on a 60hz display, using refreshspeed 1 in mame.ini, dkong should run steady at 98.00%. Now it's random and audio glitches appear.

Here is what I did to patch the problem. But if you find a better way, I'll welcome it with open arms!

Or is there a way you could include this little patch?

-------------------------------------------------------

For mame 0.123:


In mame.ini, set: refreshspeed 60 (instead of 0 or 1, Boolean changed for an Integer)


In ./src/emu/video.c:

Line #291:

   global.refresh_speed = options_get_bool(mame_options(), OPTION_REFRESHSPEED);

Change for:

   global.refresh_speed = options_get_int(mame_options(), OPTION_REFRESHSPEED);


-------------------------------------------------------

Line #752:

   if (global.refresh_speed)

Changed for:

   if (global.refresh_speed != 0)


I might not need to modify this one since "60 == True" in C language

-------------------------------------------------------

Line #754:

      float minrefresh = render_get_max_update_rate();

Changed for:

      float minrefresh = global.refresh_speed;


Basically, what I do, is just set the refresh speed to 60hz statically. I can actually change it to whatever I want, something like 59 if I want to be safe with my display.

I guess the dynamic calculation is more precise depending on the display used.

Any comments?

Thank you.

Pitou!
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on February 28, 2008, 12:07:22 pm
Nice find Pitou!
I've uploaded a new diff (starting with 123u3 that corrects this refreshspeed bug. I'm not sure adding your 'patch' to the hiscore diff would be the right thing to do, however, because it might not be suitable for the majority of people using it. 2 options available for you to try is:
1) In your mame ini file, set the following lines:
speed              2.0
refreshspeed   1

This is the setting most people seem to have the best success with for the games that run at 60.

2) Create your own little diff for applying your patch. You may already know how, but just in case you are not sure:
a) Patch the mame source with all the u diffs and then the hiscore diff. Copy the src folder and rename the copied folder to "old"
b) Patch the original src folder with your changes. So the directory will have the src folder with all the diffs applied plus your patch...and the old folder with all the diffs applied minus your patch.
c) then run "diff -r -c -N old/ src/ > your_patch_name.diff"

This will create your own diff that you can apply in the future to any version of mame (unless the src changes drastically enough to not be able to apply your patch. Of course, you will need the diff.exe which can easily be obtained on the web.

Let me know how it goes!
Title: Re: hiscore diff (all versions-1 location)
Post by: Pitou on February 28, 2008, 03:17:24 pm
Hey thanks for the fix!!

For sure I could create my own diff, but, I'm gonna test your fix and if it works fine, I'm not going to use my patch anymore :)

2 quick questions:

1- Along with refreshspeed 1, why using a speed of 2.0?

2- I didn't take time to look at differents hi_diff files yet, so, to simplify my life :) can you tell me what you did? Before discovering this thread, I was patching all screens by myself, white box etc... but never found a way to fix the refreshspeed.

Thank you very much!

Pitou!

Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on February 28, 2008, 08:40:26 pm
First off...if anyone downloaded the hi_123u3.txt file, I made a small change and re-uploaded it at 7:30pm central time(02-28-08)...so you *may* want to get it again :-(  I noticed that one of the white boxes were still visible on startup.  The change gets rid of the center white box, however, for a BRIEF millisecond, you may see the giant white box on startup. In reality, it shouldn't even catch your eye...so, if it bothers you or you are on a mission, feel free to figure out a way to get rid of it without having to be extremely invasive to the MAME core. Basically, ( and to answer your second question. Pitou ), in the ui.c module, in the ui_set_startup_text routine I commented out everything and entered the line osd_update(machine, 0);...apparently it needs this to set the refresh speed correctly. I'm sure with enough time you could figure out another way, but if you compile this and test it on your own, I think you will see what I mean by not even catching your eye ;-)
To answer your first question, Pitou, that combo seems to be what works for alot of the people with the issue you were having. Take a look here and you'll see some other interesting things with the 60HZ displays...
http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=139206&page=&view=&sb=5&o=&fpart=1&vc=1 (http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=139206&page=&view=&sb=5&o=&fpart=1&vc=1)

edit: Just tested it on my cab, and this doesn't work very well. The patch still does all the stuff with the exception of the startup junk...I'll have to take a look deeper at fixing it...so much for my lazy shortcuts ;-)
Title: Re: hiscore diff (all versions-1 location)
Post by: t3ckn0b0y on February 29, 2008, 12:40:28 pm
   I noticed a small box in the middle of the screen during the loading of a game,
   it wasen't there with 123u2.. does anyone know how to remove it.. I find it
   a bit annoying and it acts funny when loading games like gaplus. TIA
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 29, 2008, 01:47:12 pm
Ok...just re-uploaded the hi_123u3.txt file(12:41 central time 02-29-08). Got it all sorted out and tested. It now correctly applies refreshspeed/speed option and removes ALL the white box/junk on start up. This was a little more MAME core invasive than I liked since that means that if/when MAME changes significantly, there's more 'patching' to keep the hiscore diff up to date...but what cha gonna do.

t3ckn0b0y: Grab the new hi_123u3 file and compile with that. If you could please test it and let me know that it works for you, that would be great.

Pitou: you can search for "hiscore white box" in the diff for what the changes I made to get it to get rid of the white box while retaining the correct refreshspeed.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: t3ckn0b0y on February 29, 2008, 03:19:46 pm
t3ckn0b0y: Grab the new hi_123u3 file and compile with that. If you could please test it and let me know that it works for you, that would be great.

It's working great, thanx..
Appears to be running a bit smoother at load up.. No problems..  :applaud:  :cheers:

All clear kid, use the force luke... Intruder Alert..
Title: 123u4
Post by: t3ckn0b0y on March 06, 2008, 12:22:30 pm
No problems compiling 123u4 with hi_123u3.diff.  ;D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Squeeky on March 12, 2008, 07:50:42 pm
I'm having issues with hiscore.diff.  I followed the guides and I was able to get a set compiled.  I'm able to boot the roms without the warnings but the hiscores have not been kept.  Ive also added the directory "HI" to the root directory of mame.  Any other ideas let me know.

Thanks
Squeeky
Title: Re: hiscore diff (with no nag/white box removal)
Post by: t3ckn0b0y on March 13, 2008, 12:43:44 am
I'm having issues with hiscore.diff.  I followed the guides and I was able to get a set compiled.  I'm able to boot the roms without the warnings but the hiscores have not been kept. 

Do you happen to have hiscore.dat in your mame directory
and a line like

hiscore_directory         hi

in your mame.ini
Title: Re: hiscore diff (with no nag/white box removal)
Post by: 31spoonerstreet on March 16, 2008, 09:51:30 pm
Just wanted to add my huge thanks for the efforts of those that put this together.  I know it is a good deal of work but it makes things that much nicer that we can again save our high scores.  Thanks again.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: hellothere123 on March 20, 2008, 05:14:35 pm
I follwed Mr. Do's instructions to the T.

I put a hi folder in mame folder and added the hiscore file to the mame folder.
 I put the lastest diff in mamescr

What do I do now?


I can't find any insructions on what is the next step...sorry if I missed it somewhere.


Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 20, 2008, 05:40:10 pm
If you followed Mr. DO's instructions to the T, then you woud be done :-)
What exactly have you done so far...need more info before I can give help. Did you 'compile'? Did you create the new mame.exe? What source are you starting with? Latest stable or a u release? Have you tried using Headkaze's compiler? This might be the route to go as it makes compiling simple even for those that have no experience with computers!
Take a look at his thread here and grab his program to help with compiling:
Headkaze's MAME Compiler (http://forum.arcadecontrols.com/index.php?topic=71845.0)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: majorspawn on March 20, 2008, 08:09:46 pm
HI All,

when I compiled ver 0.123 with the hi score patch i cannot see the menu text on the emulator. This does not happen with a normal build of mame of the same version whn run in the same folder. So this illuminates font file corruption etc. Does anyone have an idea what caused it? i can only put it down to the hi score 0123 patch and this specific build..

(http://www.mameworld.info/ubbthreads/userfiles/146090-menu.JPG)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 20, 2008, 10:03:20 pm
Didn't they already addressed this partially over at your thread here:
http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=146090&page=&view=&sb=5&o=&fpart=1&vc=1 (http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=146090&page=&view=&sb=5&o=&fpart=1&vc=1)

There's nothing in the hiscore patch that would cause this and it is not occuring for any of the other users (users specific to using this patch). Did you try what they suggested over there? I noticed you never replied to their suggestions...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: hellothere123 on March 20, 2008, 11:25:19 pm
Here's the guide for what diff to download (change extention from .txt to .diff) Also, if you don't see your file attached to this post, check further down. Only 8 files per post allowed)

how do you change .txt to .diff


forget it I saw your other post:

open file, file/save as...change text file to All files and then chenge the filename to ____.diff

and save





Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheShanMan on March 21, 2008, 12:54:38 am
MKChamp, this is great, and we all appreciate the effort that goes into maintaining this. I'm wondering if it would make sense to break up the diff into separate diffs for each feature, allowing the users to pick and choose. For instance, maybe someone wants the hiscore and nag diffs only. I'm not sure what all I'd like to ignore, but I know I don't like the "pause on tab" feature because I always tend to pause first, then hit tab, which then unpauses it.

With headkaze's compiler, it's really as easy to apply a handful of diffs as it is to apply a single one, so unless there is some other good reason to keep everything lumped in 1 diff, I'd rather download it as a zip of diffs.

What are your thoughts, MKChamp (and anyone else for that matter)?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: majorspawn on March 21, 2008, 08:40:11 am
I have tried their suggestions, however the files they mention do not exist in the directory also if I run the normal version of mame 0.123 in the same directory the fonts are fine. When I run the hi score version this problem occurs. This is why I posted this problem in this thread.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 21, 2008, 10:20:48 am
I have tried their suggestions, however the files they mention do not exist in the directory also if I run the normal version of mame 0.123 in the same directory the fonts are fine. When I run the hi score version this problem occurs. This is why I posted this problem in this thread.

Try compiling the latest u release with and without the hiscore diff (123u6 is the current latest) and see if it still exists. The diff changed in 123u3 somewhat and it *may* help you. I haven't heard anyone else with your problem. I still don't think this has to do with the hiscore diff. I would bet if you compiled your own 123 without the hiscore diff, you'd get the same result....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 21, 2008, 10:42:02 am
MKChamp, this is great, and we all appreciate the effort that goes into maintaining this. I'm wondering if it would make sense to break up the diff into separate diffs for each feature, allowing the users to pick and choose. For instance, maybe someone wants the hiscore and nag diffs only. I'm not sure what all I'd like to ignore, but I know I don't like the "pause on tab" feature because I always tend to pause first, then hit tab, which then unpauses it.

With headkaze's compiler, it's really as easy to apply a handful of diffs as it is to apply a single one, so unless there is some other good reason to keep everything lumped in 1 diff, I'd rather download it as a zip of diffs.

What are your thoughts, MKChamp (and anyone else for that matter)?

When 124 comes out I am going to upload a new diff that has comments in every section where changes were made. This would make it easy for someone to just delete the sections they don't want.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheShanMan on March 21, 2008, 05:50:20 pm
Quote
When 124 comes out I am going to upload a new diff that has comments in every section where changes were made. This would make it easy for someone to just delete the sections they don't want.

Sounds great. Does that mean that it's more trouble than it's worth to break everything up into separate diffs? I would think that would be more ideal for the end user, and I wouldn't think it would be much more work (if any) to update from version to version. But what do I know? ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 21, 2008, 06:34:36 pm
Quote
When 124 comes out I am going to upload a new diff that has comments in every section where changes were made. This would make it easy for someone to just delete the sections they don't want.

Sounds great. Does that mean that it's more trouble than it's worth to break everything up into separate diffs? I would think that would be more ideal for the end user, and I wouldn't think it would be much more work (if any) to update from version to version. But what do I know? ;)

Yea, it would be more work for me...and I am lazy by nature. I would have to diff the source for every modification...maintain the diff's etc. Also, it's not hard to remove sections from the diff you don't want. Ex., if you don't want the pause/enter key changed, just remove the inptport.c section. Which, the more I think of it, should probably be removed anyway, since you can just set up the keys in the MAME config...
The only other section I can see people may not wanting would be the disabled crosshairs by default. To get rid of that, just delete the crsshair.c section.
At any rate, the 124 diff will have comments in every place that has modifications...you'll just have to search the diff for "MKChamp".
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheShanMan on March 21, 2008, 07:41:33 pm
I'm lazy by nature too, so I don't blame you! ;D

Good point about the pause - I can alter it on my system for now, but I agree about removing it - it's more of a configuration thing than altered functionality.

I'm also leaning on not wanting the nag part. I understand that it prevents the user from seeing messages about non-perfect emulation and the like, and I don't mind the nag screens because you do it once and then you don't have to do it again.

Thanks MKChamp. I appreciate your continual efforts on this diff, and for entertaining my suggestion.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Jdurg on March 22, 2008, 07:50:27 pm
Then perhaps there should be an inclusion to the file that states how to disable certain parts if you don't want them?  Kind of like a "How-To".
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Yarb on March 25, 2008, 02:25:04 am
Since .124 was recalled I presume a .124a dif is forthcoming? Someone might want to kill the old .124 dif if it will not work with the fixed .124a
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 25, 2008, 10:07:14 am
Since .124 was recalled I presume a .124a dif is forthcoming? Someone might want to kill the old .124 dif if it will not work with the fixed .124a
hi_124 diff works perfectly for 124a...and hopefully will work for many future releases!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Yarb on March 25, 2008, 11:08:15 am
Thanks Champ!!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: keirondrk on April 04, 2008, 04:13:08 am
Hey thanks for the constant updates!!!!! getting ready to apply  your .124u1 ;) ... did a test with the standard 124 hiscore but as I'm sure your aware it wouldn't compile yesterday..

keep up with the excellent work!

been playing with your art downloader too ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: whoozwah on April 05, 2008, 12:21:46 am
Hey. I've been reading this so I thought I would try it. I compiled hi_123 against the unpatched mame 123 sources and everything worked fine. I made a backup of my old binaries just in case and replaced with the new ones. I'm able to run games with no nag screens and some roms keep my high scores so it was a partial success. However some roms, Karnov being a prime example, do not save the high score. I've seen the rom referenced in the hi score files so I'm thinking that the rom is supported but I've not been able to get it working. Any ideas?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Jdurg on April 07, 2008, 01:41:48 pm
Did you use ANY cheats?  Things such a region cheat, or any cheat at all, will prevent ANY high scores from saving.  Also, you have the hi.dat in your main MAME directory, and it is not marked as "read-only"?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: keirondrk on April 12, 2008, 04:29:00 am
wow gotta say that was amazingly quick... I was sitting here waiting a while before checking for a .124u2 hiscore diff... only to find you had already done it!!!!...  :notworthy:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 12, 2008, 11:27:20 am
Anyone that downloaded 124u2 before 10:25am central time may want to re-download it. I had to upload a new one because the white box removal code wasn't completely in there...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: keirondrk on April 12, 2008, 02:22:59 pm
ops thanks :) thought I was noticing more dialogue boxes then "mkchamp patched" usual.

will get that recompiliing...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 12, 2008, 02:58:06 pm
wow gotta say that was amazingly quick... I was sitting here waiting a while before checking for a .124u2 hiscore diff... only to find you had already done it!!!!...  :notworthy:

And ya see what happens when it's that quick ;-)
Drinking doesn't help either!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: keirondrk on April 12, 2008, 03:14:33 pm
 :dizzy: and still a excellent source update, even with the odd message box  :dizzy:
 :laugh2:

no complaints this end ;) ,, just get it rebuilding .. if it wasn't for your community efforts most of us would all just have to without completely..

just wish my laptop did it quicker..
I always delete all of my old source files and start on a fresh official mame source and reapply all diffs and your patch every time.. not sure if I really have too but at least I know it's clean..

Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on April 13, 2008, 05:02:30 pm
I always delete all of my old source files and start on a fresh official mame source and reapply all diffs and your patch every time.. not sure if I really have too but at least I know it's clean..

Yes you should start fresh each time.

MKChamp: You know what they say, don't drink and patch!  :cheers:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nuka1195 on April 13, 2008, 05:31:10 pm
you can patch with the -R parameter and the old hiscore diff,

then patch the new mame diff and new hiscore diff in that order

thanks for keeping this upto date :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kingb33 on April 19, 2008, 12:56:56 am
Hi! Please help!!!  When I try to compile using headkaze's mame compiler i get errors.  I'm patching using:

hi_124
hi_124u1.diff
hi_124u2.diff

When i patch the 0124 source with the latest 2 updates to the source "without" the 3 high score .diffs it compiles just fine....

Here is the error i get at the end of the compile

cc1.exe: warnings being treated as errors
src/osd/windows/video.c: In function 'osd_update_hi':
Finished!
0 Hours 16 Minutes and 38 Seconds Elapsed.
src/osd/windows/video.c:233: warning: passing argument 1 of 'winwindow_process_events' makes pointer from integer without a cast
src/osd/windows/video.c:233: error: too few arguments to function 'winwindow_process_events'
src/osd/windows/video.c:234: error: too few arguments to function 'wininput_poll'
src/osd/windows/video.c: At top level:
src/osd/windows/video.c:245: error: redefinition of 'osd_update_hi'
src/osd/windows/video.c:224: error: previous definition of 'osd_update_hi' was here
src/osd/windows/video.c: In function 'osd_update_hi':
src/osd/windows/video.c:254: warning: passing argument 1 of 'winwindow_process_events' makes pointer from integer without a cast
src/osd/windows/video.c:254: error: too few arguments to function 'winwindow_process_events'
src/osd/windows/video.c:255: error: too few arguments to function 'wininput_poll'
src/osd/windows/video.c: At top level:
src/osd/windows/video.c:266: error: redefinition of 'osd_update_hi'
src/osd/windows/video.c:224: error: previous definition of 'osd_update_hi' was here
mingw32-make: *** [obj/windows/mame/osd/windows/video.o] Error 1
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 19, 2008, 01:42:16 am
You only need the hiscore diff for the version you are compiling. So, if you are trying to compile 124u2, you ONLY need hi_124u2. So, start with a clean source and patch

124u1
124u2
and then
hi_124u2

Should be good after that.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kingb33 on April 19, 2008, 02:36:25 am
yes!!! that worked thank you so much!!!   
Title: Re: hiscore diff (with no nag/white box removal)
Post by: joebells on April 19, 2008, 11:03:23 am
Hi I was wondering if its possible to make hi_124u3 myself? 124u3 is out and its got a fix for a controller problem I was having. Don't want to push anyone into making it so figured I'd ask if it is possible to make it ones self. Not much of a coder had some in college but it wasn't my major and I haven't coded in like 7 years.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 19, 2008, 12:37:41 pm
hi_124u2 works perfectly for 124u3...that is why it says it works for 124u2 - CURRENT.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: joebells on April 19, 2008, 12:57:00 pm
oh sweet, thought it meant at the time the post was made that 124u2 was current and I saw the edit date was before the 124u3 was posted so I just thought you didn't have a chance to make the new one yet. Thanks for making this, my girlfriend especially likes keeping the high score for her pacman games.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Jdurg on April 19, 2008, 02:46:28 pm
The only time updates are made the hiscore diffs are when a change happens in the MAME source that requires modifications of the hiscore.diff files.  So whenever a new version of MAME comes out, just try to compile with the most recent hiscore.diff file.  If it works, then no wait is needed.  If you get a bunch of errors, then you'll need to wait for the new version.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jasonbar on April 24, 2008, 03:52:13 pm
HI All,

when I compiled ver 0.123 with the hi score patch i cannot see the menu text on the emulator. This does not happen with a normal build of mame of the same version whn run in the same folder. So this illuminates font file corruption etc. Does anyone have an idea what caused it? i can only put it down to the hi score 0123 patch and this specific build..

(http://www.mameworld.info/ubbthreads/userfiles/146090-menu.JPG)

I get that weirdness if I have another application running on my PC and I ALT-TAB from MAME to another app and then ALT-TAB back to MAME.  The font looks great when I first run MAME, but after swapping to another app & back, it's unreadable blocks like your screen grag.  (fortunately this will never happen after I finish setting up my machine & have it in the cab...)

So, maybe the way you're launching MAME or something is flipping to another program & back, corrupting the MAME menu font?

-Jason
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lettuce on May 12, 2008, 04:19:58 pm
Do u have rename the 'vmame.exe' file that is created in the source folder to 'mame.exe' As i have removed the standard mame.exe file from my mame directory and replaced it with 'vmame' form my hi score complied 125 mame, and renamed it to 'mame' but now when i do this and load a rom from mala it gives me an error message,

Could not execute program 'mame.exe romname' Error code: 193
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GAJoe on May 13, 2008, 07:37:42 am
I kept getting the following error trying to compile the MAME .125 source with the hiscore diff using MAME Compiler 64:

src/osd/windows/video.c:245: error: redefinition of 'osd_update_hi'
Finished!
0 Hours 29 Minutes and 45 Seconds Elapsed.
src/osd/windows/video.c:224: error: previous definition of 'osd_update_hi' was here
mingw32-make: *** [obj/windows/mame/osd/windows/video.o] Error 1


I was coming here to ask for help, but figured it out myself.  The osd_update_hi function appears in the video.c file twice in a row.  I deleted one instance of it from the source and it compiled fine.  Not sure how that happened.  I downloaded a fresh version of the source and patched it just once, so I'm not sure how it doubled that section.  Anyway, I just thought I'd go ahead and share this in case anyone else is having the same problem.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 13, 2008, 05:01:27 pm
If you are positive you started with a totally clean source, then the only way this could have happened is if you accidentally applied 2 different version hiscore diffs by mistake. That would be the only way I could imagine that *could* happen...or your machine has gremlins ;-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GAJoe on May 14, 2008, 12:20:08 am
If you are positive you started with a totally clean source, then the only way this could have happened is if you accidentally applied 2 different version hiscore diffs by mistake. That would be the only way I could imagine that *could* happen...or your machine has gremlins ;-)

I vote gremlins.  Though human error on my part is the more likely culprit.  I downloaded the source and the diff again, and after patching checked the video.c file.  It only had the osd_update_hi section once, so I'm guessing I either patched twice and somehow didn't notice or I did what you mentioned and used two different patches.  In any case, it's all resolved now.  Let that be a lesson to everyone else, don't patch your source code twice. :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 23, 2008, 02:44:10 pm
Just FYI, I re-uploaded hi_125u2 (on 5-23 at 1:40pm). The way to determine if playback/recording is activated changed significantly in 125u2 and I finally got around to implementing it in the hiscore diff. The original hi_125u2 just discarded this check and would enable hiscores regardless if playback/recording was running.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 29, 2008, 10:15:34 am
More files....

edit - all files are contained in the original post
Title: Re: hiscore diff (with no nag/white box removal)
Post by: tommyinajar on May 30, 2008, 11:42:05 am
I'm getting an error when trying to add the Hi.110.diff to 110 Mame - I even went and deleted the files & retried the steps in case I made a mistake, which is highly unlikely  ::) since this is my first shot at compiling....

It goes well for 10 seconds or so then-

cc1exe: error: unrecognized command line option “-Who-unused- functions” ming32-make *** [obj/mame/audit.o] Error 1

 :dizzy: Any Source Code experts out there ??
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 30, 2008, 12:14:17 pm
I'm getting an error when trying to add the Hi.110.diff to 110 Mame - I even went and deleted the files & retried the steps in case I made a mistake, which is highly unlikely  ::) since this is my first shot at compiling....

It goes well for 10 seconds or so then-

cc1exe: error: unrecognized command line option “-Who-unused- functions” ming32-make *** [obj/mame/audit.o] Error 1

 :dizzy: Any Source Code experts out there ??

This will happen if you use the tools designed to build MAME versions 119 or newer. Perhaps Headkaze can chime in...maybe his compiling tool can handle older builds.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: tommyinajar on May 30, 2008, 01:06:04 pm
Thats funny you mentioned that, I just tried his http://forum.arcadecontrols.com/index.php?topic=79389.0 and the same result on two different computers, I even uninstalled / installed Framework 2.0. , thinking that might have got messed up somehow.

The funny thing is in the last post in that thread, someone did patch .0110  mame *somewhat* succesfully.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: massive88 on May 30, 2008, 01:10:45 pm
Theres a little box in Headkaze's proggie to click if you are compiling sources older than 0.118, did you make sure that was ticked?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: tommyinajar on May 30, 2008, 01:28:44 pm
Theres a little box in Headkaze's proggie to click if you are compiling sources older than 0.118, did you make sure that was ticked?

Now I do- :cheers:

It-is-a-compiling, with only a few errors, but none fatal - I'll give it a whirl, Thanks.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: t3ckn0b0y on May 30, 2008, 04:04:18 pm
when using the hiscore125u3.diff file im getting an error in clrmamepro,
trying to isolate it .. dont know if others have had the same problem or
not... 

found an incomplete datfile or bad exe output
last correctly imported set scramblb...   ???? 

any ideas?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: t3ckn0b0y on May 30, 2008, 04:49:33 pm
Okay, I tried without the hiscore.diff  still got the problem, it isnt
the patch... still puzzled.. going to redownload the source for .125
and attempt to recompile again...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nuka1195 on May 30, 2008, 05:48:19 pm
http://mametesters.org/mantis/view_all_bug_page.php
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 30, 2008, 06:46:45 pm
http://mametesters.org/mantis/view_all_bug_page.php

I think a guy name Judge posted a fix:
to quote:
Not too sure if this is the fix, in src/emu/inptport.c around line 630 in the error_buf_append function:

Code:
int curlen = (errorbuf != NULL) ? strlen(errorbuf) : 0;

Title: Re: hiscore diff (with no nag/white box removal)
Post by: t3ckn0b0y on May 30, 2008, 11:30:16 pm
thank you very much worked like a charm. fixed the whole problem.  :cheers:  :applaud:
I was beginning to  :banghead: there for a moment.. LOL  everyone on here is always
helpful.. thats one thing I love about these forums...

[/quote]
Title: Re: hiscore diff (with no nag/white box removal)
Post by: t3ckn0b0y on May 30, 2008, 11:50:16 pm
a bunch of issues in the samples.. has anyone noticed them too..
lol...  input_token_bits duplicate port bits on a bunch of games..
alphamc07,bullfgtr,bullfgts,equites,equitess,gekisou,hvoltage,kouyakyu,
splndrbt   ...   all associated with bongo1 - bongo3.wav files.. :soapbox: LOL..
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ryguy on June 06, 2008, 04:28:44 pm
Hi, hope somebody can help, I think I've followed it all to the letter.  I've downloaded 0.125 source code, tried to patch in the hi_125.diff and get the following messages: -

c:\mamesrc>patchmame hi_125

c:\mamesrc>patch -p0 -E  0<hi_125.diff
patching file src/emu/cheat.c
patching file src/emu/cheat.h
patching file src/emu/crsshair.c
patching file src/emu/emu.mak
patching file src/emu/emuopts.c
patching file src/emu/emuopts.h
patching file src/emu/fileio.h
patching file src/emu/hiscore/c
patch unexpectedly ends in middle of line
patch: **** unexpected end of file in patch

c:\mamesrc>


I've tried patching in u1, u2 etc - which works fine, but same thing happens when i try the u2 hi_score file etc.  I've also tried patching it in as a txt file as previously suggested, but again same thing.  Can't understand what I've done wrong as re-read instruction number of times?

Any help would be greatly appreciated!!


LATEST - Tried using hi_124 with 125 source code, and for some reason it patched in ok?  Compiling now to see if it all works - any idea why hi_124 would patch in and not hi_125?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 06, 2008, 04:49:55 pm
Hi, hope somebody can help, I think I've followed it all to the letter.  I've downloaded 0.125 source code, tried to patch in the hi_125.diff and get the following messages: -

c:\mamesrc>patchmame hi_125

c:\mamesrc>patch -p0 -E  0<hi_125.diff
patching file src/emu/cheat.c
patching file src/emu/cheat.h
patching file src/emu/crsshair.c
patching file src/emu/emu.mak
patching file src/emu/emuopts.c
patching file src/emu/emuopts.h
patching file src/emu/fileio.h
patching file src/emu/hiscore/c
patch unexpectedly ends in middle of line
patch: **** unexpected end of file in patch

c:\mamesrc>


I've tried patching in u1, u2 etc - which works fine, but same thing happens when i try the u2 hi_score file etc.  I've also tried patching it in as a txt file as previously suggested, but again same thing.  Can't understand what I've done wrong as re-read instruction number of times?

Any help would be greatly appreciated!!


LATEST - Tried using hi_124 with 125 source code, and for some reason it patched in ok?  Compiling now to see if it all works - any idea why hi_124 would patch in and not hi_125?

Did you copy and paste the stuff in red or type it out. The reason I ask is because:
patching file src/emu/hiscore/c
That should be patching file src/emu/hiscore.c

At any rate, I would re-download the hi_125 file and open it up in notepad and see if it looks ok. May have been a corrupt download. Try that and let me know what you find and we can go from there....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ryguy on June 06, 2008, 05:24:48 pm
Hi, thanks for helping, yes, I did type that out in red - couldn't work out how to copy the text on the command prompt into this forum, so that line was my error.

I've opened up the hi_125 file and although a lot is unfamiliar, it doesn't look corrupted, however it's odd it did the same when I used a later version as well.  I can try downloading it again.

I thought all was going to be ok with the hi_124 version (with the 125 source) - however for some reason I got errors on the compiling and the files were not created - maybe there's some conflict as I'm using the 124 version.

Will try downloading hi_125 again and see if it works.......

 LASTEST - Patch worked ok!  I downloaded it again - and also used the full zip file for the 0.125 source, rather than the .exe file - don't know if that made a difference.  Will now try the compiler again - fingers crossed!  Thanks for your help so far......will keep you updated!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ryguy on June 06, 2008, 07:20:38 pm
 :applaud:

It's worked!  Thanks MKChamp - must have been a dodgey download - high scores work on all my favourites, so great news.  This is a fantastic patch as I think it's vital to an arcade machine to have the high scores saved, don't know why they took it out off in the first place, thanks for posting this and the help,

Cheers,

Title: Re: hiscore diff (with no nag/white box removal)
Post by: 9innail on June 13, 2008, 01:22:17 pm
Hi,
Are we going to get a new diff soon.Thanks. ;D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 13, 2008, 06:41:53 pm
No need for a new diff...hi_125u4 works perfectly for 125u5. You will get some messages while patching because the lines don't match up perfectly...but it still patches...so, patch away!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Jdurg on June 14, 2008, 07:46:11 pm
:applaud:

It's worked!  Thanks MKChamp - must have been a dodgey download - high scores work on all my favourites, so great news.  This is a fantastic patch as I think it's vital to an arcade machine to have the high scores saved, don't know why they took it out off in the first place, thanks for posting this and the help,

Cheers,



Yes, it is an awesome patch.  The reason it's not in MAME is that real arcade machines typically did not retain their high scores when they were turned off.  If the power went out, the high scores went with it.  When you exit the emulator in MAME, you are effectively turning the power off on the machine.  The games that did save their high scores when the power was turned off still do retain the scores in MAME.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on June 15, 2008, 04:55:43 am
The games that did save their high scores when the power was turned off still do retain the scores in MAME.

I'm curious does the new "save state" feature of Mame only support games that retained hiscores on power off or are they planning on adding support for all games eventually? I thought their goal was to add save state for all games?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Jdurg on June 15, 2008, 01:20:23 pm
It will, eventually maybe, be there for all games.  The Save State feature is great for development and bug-testing purposes.  The games that in the arcades actually saved high scores did so in the nvram.  So in MAME, the nvram file will hold the high scores and not the hacked hiscore.dat method.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on July 07, 2008, 01:30:17 am
No need for a new diff...hi_125u4 works perfectly for 125u5. You will get some messages while patching because the lines don't match up perfectly...but it still patches...so, patch away!

I am considering doing the .126 upgrade.  Compatible?

Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheShanMan on July 07, 2008, 09:18:40 am
Patch seems to install fine. I'd say yes, though my compile hasn't finished yet.

EDIT: Build completed without errors.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: RoomTenONine on July 23, 2008, 10:58:56 pm
Quick noobish question.  I just compiled my first MAME build today.  All went VERY well thanks to the two great tutorials here  :notworthy:

One issue: The link to hiscore.dat is broken.  I also see from the mameworld.info forums that it isn't supported in MAME any more as they see it as a hack.  Now I have a version of hiscore.dat from 2006 (came with my previously used advanceMAME files).  However I know tehre is a newer version released not long ago in 2008.  That's what I'm after.

TIA
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 24, 2008, 10:08:01 am
Quick noobish question.  I just compiled my first MAME build today.  All went VERY well thanks to the two great tutorials here  :notworthy:

One issue: The link to hiscore.dat is broken.  I also see from the mameworld.info forums that it isn't supported in MAME any more as they see it as a hack.  Now I have a version of hiscore.dat from 2006 (came with my previously used advanceMAME files).  However I know tehre is a newer version released not long ago in 2008.  That's what I'm after.

TIA

Mameworld had some issues...but they are back up now. Go grab that hiscore dat file :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: RoomTenONine on July 24, 2008, 05:16:18 pm
Got it, thanks.  All is good in the world.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Teknique on August 11, 2008, 02:40:34 pm
just posting my thanks MKChamp for your work on this.  It is appreciated!

Tek
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Todd H on August 12, 2008, 10:38:36 am
Thanks for all the hard work! I compiled my own mame using your diff and it works like a charm.

Any chance we can get the -ssf (skip startup frames) option added? Thanks again.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cadmium on August 17, 2008, 07:47:07 pm
Does this patch work with CPS3 games?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: SGT on August 17, 2008, 10:49:09 pm
You can search the contents of hiscore.dat to determine which roms are supported.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: retrometro on August 23, 2008, 03:21:59 am
I don't want to cross post but I thought this problem is a related heavily to the actual hiscore diff patch itself.  Basically after using headkaze's compile helper, 32bit hi_126 patched mame reads/writes hiscore game files fine while 64bit runs fine but does not read/write hiscore game files.

http://forum.arcadecontrols.com/index.php?topic=71845.msg874464#msg874464

Anyone else observed this behavior?  Thanks!


Title: Re: hiscore diff (with no nag/white box removal)
Post by: lettuce on August 23, 2008, 12:05:39 pm
Ok a bit of an update of the hiscore problem with 64bit mame. I tried the hiscore diff that comes with SailorSats cabmame complie, and i just applied that hiscore diff (this doesnt include the no nag screen like the hiscore.diff in this thread), and hiscore works with SailorSat hiscore diff. I then recomplied mame 0.127 with the hiscore diff from this thread and it didnt work again! So i beleive theres something wrong with the hiscore diff thats supplied in this thread, i dont thinks its the highscore support itself but something to do with the removeal of the no nag screen maybe??
Title: Re: hiscore diff (with no nag/white box removal)
Post by: retrometro on August 23, 2008, 03:12:35 pm
Ok a bit of an update of the hiscore problem with 64bit mame. I tried the hiscore diff that comes with SailorSats cabmame complie, and i just applied that hiscore diff (this doesnt include the no nag screen like the hiscore.diff in this thread), and hiscore works with SailorSat hiscore diff. I then recomplied mame 0.127 with the hiscore diff from this thread and it didnt work again! So i beleive theres something wrong with the hiscore diff thats supplied in this thread, i dont thinks its the highscore support itself but something to do with the removeal of the no nag screen maybe??

Rock on Lettuce (and SailorSat)!!!!

I just recompiled with a clean source and patched just SailorSat's hiscore diff and all 64bit mame is working with hiscores again.   Woo hoo!

I've minimized some of the nagging with mame's -skip_gameinfo but other things still pop up so it would be awesome if this msg thread's hiscore + nonag diff got fixed for 64bit.

As a suggestion though, I really like how SailorSat separates each of her hacks into its own diff file so you can pick and choose which one you want.  Plus on top of that, she allows at least 3 of her hacks to be turned off and on via mame.ini even if you patched them anyways.  Not only does that relieves you from having to have multiple mame.exe's floating around but you can tailor each hack in each game's own ini if you want.


Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 23, 2008, 09:49:57 pm
Ok...can one of you guys re-download the 127 diff and see if it now works on your 64 bit machine. Make sure when you download it it is the latest and not cached on your machine. The third line should have a time stamp like this:
+++ src/emu/cheat.c   2008-08-23 20:17:40.000000000 -0500

Post back and let me know if it worked or not. Gracias!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: retrometro on August 23, 2008, 10:10:13 pm
Ok...can one of you guys re-download the 127 diff and see if it now works on your 64 bit machine. Make sure when you download it it is the latest and not cached on your machine. The third line should have a time stamp like this:
+++ src/emu/cheat.c   2008-08-23 20:17:40.000000000 -0500

Post back and let me know if it worked or not. Gracias!

De nada!  What great support!  I've just tried your new 127 diff for a 64bit compile and hiscores are working again.  What did you change?

Also, I applied your 127 diff to my 126 source.  Do I need an updated 126 from you also?  What are the consequence(s) if any?


Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on August 24, 2008, 01:57:15 am
Thanks MKChamp :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheShanMan on August 24, 2008, 02:21:08 am
As a suggestion though, I really like how SailorSat separates each of her hacks into its own diff file so you can pick and choose which one you want.  Plus on top of that, she allows at least 3 of her hacks to be turned off and on via mame.ini even if you patched them anyways.  Not only does that relieves you from having to have multiple mame.exe's floating around but you can tailor each hack in each game's own ini if you want.

I asked for separate diff's a while back, and the suggestion was that you can search the diff and take out what you don't want easily. I've been doing this lately (I like the basic startup messages "Initializing" but I hate seeing "Decoding (57%)" and stuff like that. Well, it's not exactly trivial (and I'm a software engineer!). So I'd like to second this request! How about zipping up separate diff files so there's one download but multiple diff's?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: retrometro on August 24, 2008, 09:32:37 am
I asked for separate diff's a while back, and the suggestion was that you can search the diff and take out what you don't want easily. I've been doing this lately (I like the basic startup messages "Initializing" but I hate seeing "Decoding (57%)" and stuff like that. Well, it's not exactly trivial (and I'm a software engineer!). So I'd like to second this request! How about zipping up separate diff files so there's one download but multiple diff's?

Here's how SailorSat separates her diffs in her "cabmame" bundle.  In addition, she hosts 32bit and 64bit compiles of mame and mameui with all the patches. 

-rwxr-xr-x@ 1 root  admin   5656 Aug 21 19:24 0127_changeres.diff
-rwxr-xr-x@ 1 root  admin   6137 Aug 21 19:23 0127_cleanstretch.diff
-rwxr-xr-x@ 1 root  admin   4424 Aug 21 19:22 0127_defaults.diff
-rwxr-xr-x@ 1 root  admin    994 Aug 21 19:23 0127_emuspeed.diff
-rwxr-xr-x@ 1 root  admin    484 Aug 21 19:29 0127_frogger.diff
-rwxr-xr-x@ 1 root  admin  13639 Aug 21 19:25 0127_hiscore.diff
-rwxr-xr-x@ 1 root  admin   3787 Aug 21 19:28 0127_redraw.diff
-rwxr-xr-x@ 1 root  admin   1386 Aug 21 19:29 0127_resolution.diff
-rwxr-xr-x@ 1 root  admin   1132 Aug 21 19:27 0127_soundsync.diff


Anyway, MKChamp, I really appreciate your work updating and answering support questions in this thread.


Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 24, 2008, 08:50:19 pm
I asked for separate diff's a while back, and the suggestion was that you can search the diff and take out what you don't want easily. I've been doing this lately (I like the basic startup messages "Initializing" but I hate seeing "Decoding (57%)" and stuff like that. Well, it's not exactly trivial (and I'm a software engineer!). So I'd like to second this request! How about zipping up separate diff files so there's one download but multiple diff's?

Ok...instead of creating and maintaining separate diffs...I incorporated the ability to turn on/off portions of the patch via the mame.ini file. By default, the patches are enabled. To disable a portion of the patch add the appropiate line to your mame.ini file. Let me know how it works for you guys....

disable_hiscore_patch   1   <- To disable highscore support. Set to 0 or omit it entirely from ini file to enable.
disable_crosshair_patch   1  <- To disable crosshairs off by default. Set to 0 or omit it entirely from ini file to enable.
disable_nagscreen_patch   1  <- To disable removal of nagscreens /white box. Set to 0 or omit it entirely from ini file to enable.
disable_loading_patch   1      <- To disable suppresssion of loading/decypting/etc messages. Set to 0 or omit it entirely from ini file to enable.

Uploaded hi_127a.txt with this in it. If this works out, it'll be in all the future diffs.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheShanMan on August 24, 2008, 11:02:35 pm
Awesome! I'll try it out hopefully soon, and give you feedback once I do.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: retrometro on August 24, 2008, 11:35:25 pm
Uploaded hi_127a.txt with this in it. If this works out, it'll be in all the future diffs.


Very much appreciated!  BTW, I'm still running v0.126.  If I patched the 126 source, would it break?  Thanks.


Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 24, 2008, 11:46:15 pm
Very much appreciated!  BTW, I'm still running v0.126.  If I patched the 126 source, would it break?  Thanks.

Unfortunately, there were considerable changes from 126 to 127 so some of the sections of the patch will fail if trying to patch 126 with 127. The good news is at least you aren't at 109 or some old version so it wouldn't take much to get your romset up to sync for 127 ;-) ... although it IS about a 600 meg difference between 126 and 127...and that doesn't include the 12 gig laser game.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: retrometro on August 25, 2008, 08:18:19 am
Thanks.  I'll see if I have any problems and go to 127 if I do.  so far so good.  I don't remember seeing any major errors during patching or compiling.

I had just upgraded from 118 to 126 recently so I'd rather wait another 6-12 months before plunging in again unless there're some new features or games that pops up (e.g. Typing of the Dead).

12gb for that cube laserdisc game????  that's ridiculous.  is it b/c of the way mame needs to store it or that game really does have that much footage??? 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Visitor Q on August 28, 2008, 10:56:10 am
I hope this is the soultion to my problem as this was driving me MAD the other day!!!  :hissy:

http://www.gameex.info/forums/index.php?showtopic=6108&st=0&gopid=44534&#entry44534

Will try and recompile when I get home today as I went back to mame32 in the meantime.  :dizzy:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: vinnievegas on October 16, 2008, 01:53:57 am
OK... I have downloaded the 127 source, and applied all patches (127u1 - 127u6) to the source. I then applies the Hiscore diff patch for 127u6. I compiled, and everything works great!
My question is... when the new hiscore diff patces come out for 127u7, and so on..., do I have to start from scratch again, or do I apply the MAME update patches then the corresponding hiscore diff patch?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Avrus on October 16, 2008, 11:14:46 am
Strange, I've been compiling for a while now and this is the first time I've run into an error:

Archiving obj/windows/mame/libemu.a...
Linking mame.exe...
obj/windows/mame/mame/jaleco.a(cischeat.o):cischeat.c:(.rdata+0x800): undefined
reference to `cischeat_shift_r'
obj/windows/mame/mame/jaleco.a(cischeat.o):cischeat.c:(.rdata+0x1b4c): undefined
 reference to `cischeat_shift_r'
obj/windows/mame/mame/jaleco.a(cischeat.o):cischeat.c:(.rdata+0x31ac): undefined
 reference to `cischeat_shift_r'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.text+0x9d3): undefined re
ference to `at28c16_init'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.rdata+0x1340): undefined
reference to `nvram_handler_at28c16_0'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.rdata+0x8bdc): undefined
reference to `at28c16_0_r'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.rdata+0x8be8): undefined
reference to `at28c16_0_w'
obj/windows/mame/mame/taito.a(taitosj.o):taitosj.c:(.text+0x722): undefined refe
rence to `taitosj_register_main_savestate'
collect2: ld returned 1 exit status
mingw32-make: *** [mame.exe] Error 1

Anyone have any suggestions?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 16, 2008, 12:52:36 pm
Try doing a clean compile. FYI, MAME 128 came out today.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Avrus on October 16, 2008, 07:46:03 pm
Try doing a clean compile. FYI, MAME 128 came out today.

??? What do you mean a clean compile? This was a from scratch 128 compile.  I grabbed the 128 source from the website, grabbed the hiscore.dat and compiled and this is the error I got.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 16, 2008, 10:54:53 pm
??? What do you mean a clean compile? This was a from scratch 128 compile.  I grabbed the 128 source from the website, grabbed the hiscore.dat and compiled and this is the error I got.

Did you delete the OBJ folder before compiling? Try deleting all the folders completely...unzipping the new 128 source and apply just the hi_128.diff ( I assume you meant the hiscore diff and not dat file...totally different files).
I know for certain that the hiscore diff does not patch anything in the cischeat.c, namcos12.c or taitosj.c files so this has to be something that was modified in the core.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Avrus on October 16, 2008, 11:25:30 pm
??? What do you mean a clean compile? This was a from scratch 128 compile.  I grabbed the 128 source from the website, grabbed the hiscore.dat and compiled and this is the error I got.

Did you delete the OBJ folder before compiling? Try deleting all the folders completely...unzipping the new 128 source and apply just the hi_128.diff ( I assume you meant the hiscore diff and not dat file...totally different files).
I know for certain that the hiscore diff does not patch anything in the cischeat.c, namcos12.c or taitosj.c files so this has to be something that was modified in the core.


Yah I always clear the directory.  Maybe I didn't copy the makefile over, I'm going to wipe the mess and try again.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jjurmann on October 18, 2008, 03:00:09 pm
Strange, I've been compiling for a while now and this is the first time I've run into an error:

Archiving obj/windows/mame/libemu.a...
Linking mame.exe...
obj/windows/mame/mame/jaleco.a(cischeat.o):cischeat.c:(.rdata+0x800): undefined
reference to `cischeat_shift_r'
obj/windows/mame/mame/jaleco.a(cischeat.o):cischeat.c:(.rdata+0x1b4c): undefined
 reference to `cischeat_shift_r'
obj/windows/mame/mame/jaleco.a(cischeat.o):cischeat.c:(.rdata+0x31ac): undefined
 reference to `cischeat_shift_r'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.text+0x9d3): undefined re
ference to `at28c16_init'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.rdata+0x1340): undefined
reference to `nvram_handler_at28c16_0'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.rdata+0x8bdc): undefined
reference to `at28c16_0_r'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.rdata+0x8be8): undefined
reference to `at28c16_0_w'
obj/windows/mame/mame/taito.a(taitosj.o):taitosj.c:(.text+0x722): undefined refe
rence to `taitosj_register_main_savestate'
collect2: ld returned 1 exit status
mingw32-make: *** [mame.exe] Error 1

Anyone have any suggestions?


I'm getting the same thing. I deleted and retried and the same thing. I even tried on another machine and got the same errors. :dunno
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 19, 2008, 02:17:37 am
Strange, I've been compiling for a while now and this is the first time I've run into an error:

Archiving obj/windows/mame/libemu.a...
Linking mame.exe...
obj/windows/mame/mame/jaleco.a(cischeat.o):cischeat.c:(.rdata+0x800): undefined
reference to `cischeat_shift_r'
obj/windows/mame/mame/jaleco.a(cischeat.o):cischeat.c:(.rdata+0x1b4c): undefined
 reference to `cischeat_shift_r'
obj/windows/mame/mame/jaleco.a(cischeat.o):cischeat.c:(.rdata+0x31ac): undefined
 reference to `cischeat_shift_r'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.text+0x9d3): undefined re
ference to `at28c16_init'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.rdata+0x1340): undefined
reference to `nvram_handler_at28c16_0'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.rdata+0x8bdc): undefined
reference to `at28c16_0_r'
obj/windows/mame/mame/namco.a(namcos12.o):namcos12.c:(.rdata+0x8be8): undefined
reference to `at28c16_0_w'
obj/windows/mame/mame/taito.a(taitosj.o):taitosj.c:(.text+0x722): undefined refe
rence to `taitosj_register_main_savestate'
collect2: ld returned 1 exit status
mingw32-make: *** [mame.exe] Error 1

Anyone have any suggestions?


I'm getting the same thing. I deleted and retried and the same thing. I even tried on another machine and got the same errors. :dunno

Are you two guys applying any other patches other than the hiscore patch? Like I stated in a previous post, the hiscore patch doesn't even touch these files and I saw a post on Headkaze's compiler thread that he patch 32 and 64 bit 128 no problem...and I got 128 patched and compiled as well.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: candycabguy on October 19, 2008, 09:00:46 pm
New to compiling as well, lil help?

Trying to put hi_126 into MAME .126, downloaded the sourcefile from MAMEDEV, compiled fine, then patched hi_126.diff (saved as diff from original .txt file).  STILL NO SAVES!

the 126 source from MAMEDEV INCLUDES the 5 updates, correct?  If not, where do I get them?

YES, I have a HI subfolder and the current hiscore DAT file!

Any help is appreciated, thanks

Lee
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 20, 2008, 12:02:59 am
New to compiling as well, lil help?

Trying to put hi_126 into MAME .126, downloaded the sourcefile from MAMEDEV, compiled fine, then patched hi_126.diff (saved as diff from original .txt file).  STILL NO SAVES!

the 126 source from MAMEDEV INCLUDES the 5 updates, correct?  If not, where do I get them?

YES, I have a HI subfolder and the current hiscore DAT file!

Any help is appreciated, thanks

Lee

Sounds like your 'order' if off a bit. Download the source. Patch the source with the hi_126.diff, THEN compile. If you want the latest MAME source with all the updates, then grab 128 source and then patch that with the hi_128 patch...THEN compile it. 126 source will not contain any u updates for that release...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on October 24, 2008, 03:34:08 pm
Hey MKChamp I've noticed with 128 you've added a "skip_gameinfo" option but it doesn't seem to be doing anything. Is that just something you've accidently left in there from an old patch or is there some reason for it?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 24, 2008, 06:13:53 pm
Hey MKChamp I've noticed with 128 you've added a "skip_gameinfo" option but it doesn't seem to be doing anything. Is that just something you've accidently left in there from an old patch or is there some reason for it?

Actually, that isn't anything I've added. That is apart of the MAME core. I believe it does skip certain screens...but not any of the nag screens.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on October 25, 2008, 12:28:13 am
Actually, that isn't anything I've added. That is apart of the MAME core. I believe it does skip certain screens...but not any of the nag screens.

Heh for some reason I thought it was a new option but looks like it's been around for a while now.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: gman314 on October 30, 2008, 06:04:04 pm
Hello everybody.  I'm trying to complie Mame 127 with the hi score diff patch from the beginning of this page, but have been unsuccessful numerous times.  After I apply the patch (either following the instructions on Mr. Do's page or by using Headkaze's complier), I receive the same long error message from a few posts above (after like a half hour of scanning).  :banghead: Now, do I have to apply all of the intermediate update patches in order to successfully complie with the hi score diff patch?  Unfortunately, the intermediate update files for previous versions of Mame are no longer on the MAMEDEV page.  (Also, I really don't want to compile Mame 128, since I am using a complete 127 rom set.) 
Any advice would be greatly appreciated, since I haven't had much success on my own.  Better yet, if somebody has already complied 127 with the "hi score/ nag screen removal" patch, would it be possible to post it?   :) 
I'm in the final steps of setting up my cab, and need to save hi scores!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: dgame on October 30, 2008, 06:21:32 pm
The 127 source code is here:

http://mamedev.org/downloader.php?file=mame0127s.zip (http://mamedev.org/downloader.php?file=mame0127s.zip)

If you want the base 127 use that and only apply the hi_127a.diff (txt) from the first page of this thread.

The updates are here:

http://mamedev.org/updates/ (http://mamedev.org/updates/)

You can patch the source with all the 127 updates before apllying the 127a.diff

Title: Re: hiscore diff (with no nag/white box removal)
Post by: gman314 on November 02, 2008, 04:19:43 pm
I just wanted to say that I successfully compiled my own Mame 127.  This is a big accomplishment for me since I am normally terrible at this stuff.  One stupid question though:  Since I created the command line version, I'm not sure how to access the preferences so that I can enable joystick input and play around with some of the other options.  Any advice?   :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on November 02, 2008, 09:12:09 pm
I just wanted to say that I successfully compiled my own Mame 127.  This is a big accomplishment for me since I am normally terrible at this stuff.  One stupid question though:  Since I created the command line version, I'm not sure how to access the preferences so that I can enable joystick input and play around with some of the other options.  Any advice?   :)

Create a text file in the same folder as your Mame executable, with the following text, then save it as CreateConfig.bat (change mame.exe to match your Mame executable)

-- CreateConfig.bat --
Code: [Select]
mame.exe -cc
Now just double click the CreateConfig.bat and it will create a mame.ini you can edit in Notepad. You could of course just run that from a command prompt but I'm assuming you don't know how to do that.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Denverlatino on November 03, 2008, 05:04:32 pm
is it , just me? The cheat option dosnt work....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 03, 2008, 05:51:00 pm
is it , just me? The cheat option dosnt work....

The cheat engine has totally been overhauled. Do a search for 'cheat' over at mameworld for all the info. The most important factor is the cheat.dat is no longer used. It now uses xml.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: gman314 on November 03, 2008, 06:02:02 pm
I just wanted to say that I successfully compiled my own Mame 127.  This is a big accomplishment for me since I am normally terrible at this stuff.  One stupid question though:  Since I created the command line version, I'm not sure how to access the preferences so that I can enable joystick input and play around with some of the other options.  Any advice?   :)

Create a text file in the same folder as your Mame executable, with the following text, then save it as CreateConfig.bat (change mame.exe to match your Mame executable)

-- CreateConfig.bat --
Code: [Select]
mame.exe -cc
Now just double click the CreateConfig.bat and it will create a mame.ini you can edit in Notepad. You could of course just run that from a command prompt but I'm assuming you don't know how to do that.

I'm not sure I understand what you mean by "change mame.exe to match your Mame executable", since Mame.exe is already my mame executable.  Also, inside the batch file that I need to create, is mame.exe -cc the only thing I need to enter, or do I physically need to type -- CreateConfig.bat -- in the line above it?  :dunno
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 03, 2008, 06:36:59 pm
I just wanted to say that I successfully compiled my own Mame 127.  This is a big accomplishment for me since I am normally terrible at this stuff.  One stupid question though:  Since I created the command line version, I'm not sure how to access the preferences so that I can enable joystick input and play around with some of the other options.  Any advice?   :)

Create a text file in the same folder as your Mame executable, with the following text, then save it as CreateConfig.bat (change mame.exe to match your Mame executable)

-- CreateConfig.bat --
Code: [Select]
mame.exe -cc
Now just double click the CreateConfig.bat and it will create a mame.ini you can edit in Notepad. You could of course just run that from a command prompt but I'm assuming you don't know how to do that.

I'm not sure I understand what you mean by "change mame.exe to match your Mame executable", since Mame.exe is already my mame executable.  Also, inside the batch file that I need to create, is mame.exe -cc the only thing I need to enter, or do I physically need to type -- CreateConfig.bat -- in the line above it?  :dunno

That would be the only line you write in notepad:

mame.exe -cc

save the file as CreateConfig.bat in the same folder that the mame.exe file is and then 'open' or 'run' the newly created file.

OR....

You can open a command prompt...migrate to the mame folder via cd command. So, if your mame.exe is in c:\mame, all you type at the command prompt would be "cd c:\mame"
and then type "mame -cc" at the command prompt and the mame.ini magically appears :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: gman314 on November 03, 2008, 07:34:48 pm
So I'm assuming that, in order to enable a particular option, I would just change any "0" to a "1" through the mame.ini file, right?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 03, 2008, 10:25:21 pm
So I'm assuming that, in order to enable a particular option, I would just change any "0" to a "1" through the mame.ini file, right?

Yep, that is it!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Todd H on November 07, 2008, 02:06:54 pm
Anybody else had trouble compiling using the hiscore diff and SailorSat's cabmame diff's? The high score one works fine but if I try it using both sets of diff's I get errors.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Hunk_4TH on November 18, 2008, 08:26:58 pm
I compiled Mame 128U3 along with the hi 128 diff no errors everything seemed to go smoothly. Though My high scores doesn't seem to be saving say with Galaga for example I got a score of around 50000 but after putting in my initials then exiting the game and loading it back up later it's set back to 20000 points. Any ideas? :(

*Edit* I figured it out for some reason I placed the highscore.dat in the hi folder  :banghead:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 19, 2008, 12:19:27 am
I compiled Mame 128U3 along with the hi 128 diff no errors everything seemed to go smoothly. Though My high scores doesn't seem to be saving say with Galaga for example I got a score of around 50000 but after putting in my initials then exiting the game and loading it back up later it's set back to 20000 points. Any ideas? :(

*Edit* I figured it out for some reason I placed the highscore.dat in the hi folder  :banghead:

Don't bang your head...at least you figured it out on your own before someone pointed it out to you ;-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Hunk_4TH on November 19, 2008, 12:21:04 am
Yeah I feel kind of dumb now like why didn't I think of that! Ha ha thanks for such an awesome patch MKChamp  8)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on November 26, 2008, 06:56:53 pm
It's reported there have been substantial changes to the MAME source with .128u4... has anyone compiled HS support in to .128u4? 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Hunk_4TH on November 26, 2008, 07:29:46 pm
I've compiled it seems to be working for me.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 26, 2008, 08:23:14 pm
It's reported there have been substantial changes to the MAME source with .128u4... has anyone compiled HS support in to .128u4? 

I have...that's why I had to upload a new diff for 128u4. The way it reads/copies memory and accesses CPUs changed. Tested a few games before I
uploaded the diff and all seemed good.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on November 28, 2008, 07:08:57 pm
When I go to visit http://www.mameworld.net/highscore/ my anti-virus software is detecting the JS/TrojanDownloader.Small.NAT and JS/TrojanDownloader.Small.NBF trojan. Anyone else getting that?

EDIT: The site was hacked but has now been fixed
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TelcoLou on November 30, 2008, 04:13:01 pm
Hmmm ...

I was able to compile mame .128 using the posted 128 - 128u3 patch, easy as pie thanks to the mame64 compiler.
The nag screens are gone, but the hi score isn't working ... I created a hi folder, and placed the hiscore.dat file in my mame folder, but it never saves my score (using Radiant Silvergun to test it). Any ideas?

Thanks in advance.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on November 30, 2008, 08:20:37 pm
Hmmm ...

I was able to compile mame .128 using the posted 128 - 128u3 patch, easy as pie thanks to the mame64 compiler.
The nag screens are gone, but the hi score isn't working ... I created a hi folder, and placed the hiscore.dat file in my mame folder, but it never saves my score (using Radiant Silvergun to test it). Any ideas?

Thanks in advance.

That's an easy one to answer, hiscore.dat doesn't support that game. How do I know that? If you open up hiscore.dat in a text editor and search for rsgun it doesn't find anything.

Also the game does not have save state support so there is really no way to keep hiscores for this game. You could of course read the tutorial (http://www.mameworld.net/highscore/tutorial.htm) on creating a hiscore.dat entry for the game.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: dcninj4 on December 01, 2008, 12:52:42 am
anyone have aa 64 bit version of mame with the highscore saves, and the nag, encoding, and warning screens disabled?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TelcoLou on December 01, 2008, 12:02:24 pm
Hmmm ...

I was able to compile mame .128 using the posted 128 - 128u3 patch, easy as pie thanks to the mame64 compiler.
The nag screens are gone, but the hi score isn't working ... I created a hi folder, and placed the hiscore.dat file in my mame folder, but it never saves my score (using Radiant Silvergun to test it). Any ideas?

Thanks in advance.

That's an easy one to answer, hiscore.dat doesn't support that game. How do I know that? If you open up hiscore.dat in a text editor and search for rsgun it doesn't find anything.

Also the game does not have save state support so there is really no way to keep hiscores for this game. You could of course read the tutorial (http://www.mameworld.net/highscore/tutorial.htm) on creating a hiscore.dat entry for the game.

Ah! Thanks for the explanation  :gobama (<=== hahahaa! was looking for an "embarassed" smiley, but this is just TOO funny!)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: 9innail on December 22, 2008, 10:46:13 pm
Is a new diff needed for 128u7? This is the first time I have been unable to get it to work. Thanks.  :banghead:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on December 23, 2008, 05:01:06 pm
Is a new diff needed for 128u7? This is the first time I have been unable to get it to work. Thanks.  :banghead:

Oops...I got lazy...
Yes, there is a new diff needed for u7...it's uploaded and ready to go.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: 9innail on December 24, 2008, 12:33:55 pm
Thank you. This diff makes all the difference with my Arcade Machine.  :cheers:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Gatsu on January 04, 2009, 07:50:30 pm
just recompiled mame 127. Worked like a charm. no more annoying nag screens!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on January 05, 2009, 01:48:25 am
Is .128u7 working with .129?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on January 05, 2009, 03:54:03 am
Is .128u7 working with .129?

I'm not sure but you could always give it a try. I'm sure MKChamp will make a new one soon if needed.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on January 05, 2009, 10:22:47 am
Is .128u7 working with .129?

I'm not sure but you could always give it a try. I'm sure MKChamp will make a new one soon if needed.

I usually check first because I have to compile a 64 bit version and I can only do it on the cab itself and it's ...well ...a pain in the ass frankly so I usually hold off until I hear confirmation the DIFF works.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on January 05, 2009, 01:06:39 pm
I usually check first because I have to compile a 64 bit version and I can only do it on the cab itself and it's ...well ...a pain in the ass frankly so I usually hold off until I hear confirmation the DIFF works.

Okay I just checked and no it doesn't work. src\emu\profiler.c has changed too much for the patch to apply. We will have to wait for MKChamp to make a new diff.

Code: [Select]
Applying Diff Patch...
patching file src/emu/crsshair.c
patching file src/emu/emu.mak
Hunk #2 succeeded at 52 (offset -1 lines).
patching file src/emu/emuopts.c
patching file src/emu/emuopts.h
patching file src/emu/fileio.h
patching file src/emu/hiscore.c
patching file src/emu/hiscore.h
patching file src/emu/mame.c
patching file src/emu/profiler.c
Hunk #1 FAILED at 125.
1 out of 1 hunk FAILED -- saving rejects to file src/emu/profiler.c.rej
patching file src/emu/profiler.h
Hunk #1 succeeded at 48 with fuzz 2 (offset 9 lines).
patching file src/emu/romload.c
Hunk #1 succeeded at 556 with fuzz 2 (offset 52 lines).
patching file src/emu/ui.c
patching file src/emu/video.c
patching file src/emu/video.h
patching file src/mame/machine/cps2crpt.c
patching file src/osd/osdepend.h
patching file src/osd/windows/video.c
patching file src/osd/windows/window.c
patching file src/osd/windows/window.h
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Paul Olson on January 05, 2009, 02:53:21 pm
I tried it at 2am and it didn't work, looking forward to the update.

Friz - Use remote desktop and configure everything on your cab from another computer. I have the same problem with 64bit, and it is much nicer to work on the cab using remote. I worked on this watching a movie in the living room last night.

Edit: Make sure MALA is closed first (if you use it), it doesn't handle the resolution change very well.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 06, 2009, 06:43:25 pm
hiscore 129 ready to roll...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheManuel on January 06, 2009, 08:21:38 pm
Thanks, Champ!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheManuel on January 06, 2009, 08:24:48 pm
Not a popular option here but, does the diff work with MAMEUI?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheManuel on January 06, 2009, 08:27:32 pm
Never mind.
I was reading Headkaze's compiler instructions and apparently you can.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on January 06, 2009, 08:33:01 pm
Thank you MKChamp....

....Soul Caliber here I come!

Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheManuel on January 06, 2009, 08:42:00 pm
Quote
....Soul Caliber here I come!
Did it not work before?
Remember you can play the Dreamcast version with NullDC...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nuka1195 on January 06, 2009, 11:06:47 pm
Thank You
Title: Re: hiscore diff (with no nag/white box removal)
Post by: SirPeale on January 16, 2009, 08:02:41 pm
I just compiled .108.  Having some severe problems.  I'm trying to configure some things, but it seems that I can not use the enter key.  Anywhere.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: csa3d on January 18, 2009, 10:56:28 pm
Do i need to disable any save state settings in mame.ini to get hiscores to save in v129?  Something is making my scores not save since updating...

Thanks
-csa
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 19, 2009, 01:03:05 pm
I just compiled .108.  Having some severe problems.  I'm trying to configure some things, but it seems that I can not use the enter key.  Anywhere.

It used to make the "enter" key "1". ( to make it work better for dedicated cabs...this was taken out starting with 124)
What you can do is use your "1" key as enter and you can change it back to the "enter" key in the configuration menu.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: csa3d on January 19, 2009, 02:08:08 pm
Do i need to disable any save state settings in mame.ini to get hiscores to save in v129?  Something is making my scores not save since updating...

Thanks
-csa

Is this just a millipede issue?  Seems to be saving for frogger...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 19, 2009, 02:34:54 pm
Do i need to disable any save state settings in mame.ini to get hiscores to save in v129?  Something is making my scores not save since updating...

Thanks
-csa

Is this just a millipede issue?  Seems to be saving for frogger...

I think this might be due to a mistype in the hiscore.dat. Due a search for "silliped" and change the "s" to "m" so it reads "milliped"...then see if it saves.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: csa3d on January 19, 2009, 02:56:22 pm
Do i need to disable any save state settings in mame.ini to get hiscores to save in v129?  Something is making my scores not save since updating...

Thanks
-csa

Is this just a millipede issue?  Seems to be saving for frogger...

I think this might be due to a mistype in the hiscore.dat. Due a search for "silliped" and change the "s" to "m" so it reads "milliped"...then see if it saves.

Naming issue was the trick!  ON a side note, if we compile with HighScore enabled, autosave should be set to 0 and all .nv files in the nvram should be disabled, or not?  If you enable autosave, is the default behaviour to check the .nv ram file first, then default to the .hi files?  Also, is there a way to disable the State Loading box if autosave is set to 1?

Thanks!
-csa
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 19, 2009, 04:46:32 pm
Do i need to disable any save state settings in mame.ini to get hiscores to save in v129?  Something is making my scores not save since updating...

Thanks
-csa

Is this just a millipede issue?  Seems to be saving for frogger...

I think this might be due to a mistype in the hiscore.dat. Due a search for "silliped" and change the "s" to "m" so it reads "milliped"...then see if it saves.

Naming issue was the trick!  ON a side note, if we compile with HighScore enabled, autosave should be set to 0 and all .nv files in the nvram should be disabled, or not?  If you enable autosave, is the default behaviour to check the .nv ram file first, then default to the .hi files?  Also, is there a way to disable the State Loading box if autosave is set to 1?

Thanks!
-csa

.nv files are not a part of the save state system. NV files are generated by games that saved data when they were turned off. The save state files are stored in the sta folder. To be honest, if you have hiscore support, then isn't any reason to enable save states...unless you just want to be able to start a game where you left off. If you upgrade often, you'll find that save states are not that reliable anyways.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: iano on January 22, 2009, 07:25:40 am
I'm trying to compile MAME0.129 with MKChamps diff file but i keep getting the same error. I've no doubt that i'm doing something wrong because other people have compiled MAME0.129 without a hitch. Any help would be appreciated.

src/emu/sound/ay8910.c: 751: internal compiler error: in assign_386_stack_local, at config/i386/i386.c: 13482

Please submit a full bug report, with preprocessed source if appropriate.
see<URL: http://www.mingw.org/bugs.shtml> for instructions
mingw32-make: ***[obj/windows/mame/emu/sound/ay8910.o] error 1

Thanks,
ian.
 :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 22, 2009, 10:22:59 am
I'm trying to compile MAME0.129 with MKChamps diff file but i keep getting the same error. I've no doubt that i'm doing something wrong because other people have compiled MAME0.129 without a hitch. Any help would be appreciated.

src/emu/sound/ay8910.c: 751: internal compiler error: in assign_386_stack_local, at config/i386/i386.c: 13482

Please submit a full bug report, with preprocessed source if appropriate.
see<URL: http://www.mingw.org/bugs.shtml> for instructions
mingw32-make: ***[obj/windows/mame/emu/sound/ay8910.o] error 1

Thanks,
ian.
 :)

I think this might be related to Headkaze's MAME compiler...you are using that, right? If so, are you using Pentium 4 (+SSE3) optimize option? If you are, try compiling with Pentium 4 (-SSE3) option instead. If that doesn't work (and you ARE using this program to compile MAME) you may want to post in his thread for assistance....
http://forum.arcadecontrols.com/index.php?topic=71845.0 (http://forum.arcadecontrols.com/index.php?topic=71845.0)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: iano on January 22, 2009, 12:10:27 pm
Yes MKChamp, i am using HK's MAME Compiler with that option and i will post in the link you provided. Thanks for your help.

 :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: gatordad on January 27, 2009, 11:03:55 pm
Will the diff attached in the first post Remove loading messages (decoding/decrypting/Updating Artwork, etc.) and the 'white box' when loading for mame 114?
Thanks
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 28, 2009, 01:58:12 am
Will the diff attached in the first post Remove loading messages (decoding/decrypting/Updating Artwork, etc.) and the 'white box' when loading for mame 114?
Thanks


No, that was added starting with MAME v120. It will get rid of the 'nag' screens such as 'type ok' or incomplete driver screens, etc.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Dazz on January 28, 2009, 10:10:45 am
MKChamp,

Have you and Fyrecrypts talked about these diffs?  I know that he has made several additions/corrections to these .diffs when working on his HiToText project.  Are you including his updates?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on January 28, 2009, 10:24:21 am
MKChamp,

Have you and Fyrecrypts talked about these diffs?  I know that he has made several additions/corrections to these .diffs when working on his HiToText project.  Are you including his updates?

He hasn't touched the diff's only the hiscore.dat (http://www.mameworld.info/highscore/) file because the memory locations needed to be changed. So it's leezer who distributes the hiscore.dat that should update to use Fyrecypts mods.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Dazz on January 28, 2009, 10:53:54 am
MKChamp,

Have you and Fyrecrypts talked about these diffs?  I know that he has made several additions/corrections to these .diffs when working on his HiToText project.  Are you including his updates?

He hasn't touched the diff's only the hiscore.dat (http://www.mameworld.info/highscore/) file because the memory locations needed to be changed. So it's leezer who distributes the hiscore.dat that should update to use Fyrecypts mods.
Oh snap, my bad.  You are correct.  It is the dat file that I am questioning not the diffs.  Thanks HK!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Fyrecrypts on February 01, 2009, 01:02:42 pm
MKChamp,

Have you and Fyrecrypts talked about these diffs?  I know that he has made several additions/corrections to these .diffs when working on his HiToText project.  Are you including his updates?

He hasn't touched the diff's only the hiscore.dat (http://www.mameworld.info/highscore/) file because the memory locations needed to be changed. So it's leezer who distributes the hiscore.dat that should update to use Fyrecypts mods.

I've talked with Leezer, and have been giving him the updates, I'd bet his releases will contain the fixes added in the HiToText hiscore.dat file.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tinydane on February 05, 2009, 12:56:25 pm
Just wanted to toss out a big thanks to the guys that put this together.  I just did my first recompile on .128 and it went real smooth.  I followed MrDo's step by step info on the actual recompile and all went well..

thanks again. :cheers:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: csa3d on February 07, 2009, 03:51:09 pm
I want to pose this question:

Given that I've seen at few people attempting to hook up the mouse Z-Axis to the spinner, do we think it might be beneficial to roll the option to use the Z-Axis when applying this patch as well?  I typically apply this patch and then the TT2 Z-Axis patch described here (http://forum.arcadecontrols.com/index.php?topic=75693.msg800467#msg800467) when I compile my own.

Just a thought
-csa
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 08, 2009, 01:23:45 pm
I want to pose this question:

Given that I've seen at few people attempting to hook up the mouse Z-Axis to the spinner, do we think it might be beneficial to roll the option to use the Z-Axis when applying this patch as well?  I typically apply this patch and then the TT2 Z-Axis patch described here (http://forum.arcadecontrols.com/index.php?topic=75693.msg800467#msg800467) when I compile my own.

Just a thought
-csa

Then we'd have to add a hundred other patches used by a 'few' people :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: csa3d on February 08, 2009, 02:32:50 pm

Then we'd have to add a hundred other patches used by a 'few' people :-)


Ha!  True..

-csa
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Todd H on March 06, 2009, 08:57:27 am
Probably a stupid question but in order to compile a 64-bit version you need to do it in a 64-bit OS correct? I assume I couldn't compile a 64-bit version under a 32-bit version of Vista.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on March 06, 2009, 09:58:06 am
Probably a stupid question but in order to compile a 64-bit version you need to do it in a 64-bit OS correct? I assume I couldn't compile a 64-bit version under a 32-bit version of Vista.

Correct.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kaptainsteve on March 10, 2009, 06:42:41 pm
Hello,

Wondering if anyone can help?

Where does one go about finding the mame "patch.exe" used when compiling?
(http://mrdo.mameworld.info/mame_compile/srcdir_extra_32.png)
thanks.

Steve

Found it Here at http://gnuwin32.sourceforge.net/packages/patch.htm (http://gnuwin32.sourceforge.net/packages/patch.htm) for those who bump into the same problem.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 10, 2009, 11:58:57 pm
And just to also state (if I remember correctly)...on Vista you need to rename it to something other than 'patch'. If I recall, Vista didn't like running something called patch.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: mikeveli20 on March 11, 2009, 07:48:53 pm
How come the 0.129 diff is also the 0.130 diff? Is it ok to apply the 0.129 diff to 0.130?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: iAtoria on March 11, 2009, 09:41:38 pm
From what's understood from the site 0.129u7 is the same thing as 0.130, so if it worked for the latest beta it should work for 0.130 as well.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on March 12, 2009, 09:35:09 am
.130 compiles fine with the .129 HS .diff....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: blib on March 12, 2009, 01:41:47 pm
Compiles okay, but didn't disable the nag screens for .130.

Thank you MKChamp for doing these for us!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on March 12, 2009, 03:14:58 pm
Strange... I didn't notice but I did only play games I've played before).

Title: Re: hiscore diff (with no nag/white box removal)
Post by: blib on March 12, 2009, 03:48:52 pm
Strange... I didn't notice but I did only play games I've played before).



Think I started up Hunchback and the screenflipping in cocktail mode message popped.  Could you try your set just to make sure I didn't mess up applying the diff.  Much thx. ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on March 12, 2009, 04:14:05 pm
HUNCHBACK (which I've never loaded) booted right up as normal for me.  No message.

I did notice that Hunchback uses the same hardware as that terrible DK clone,  LOGGER...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 12, 2009, 06:36:05 pm
Think I started up Hunchback and the screenflipping in cocktail mode message popped.  Could you try your set just to make sure I didn't mess up applying the diff.  Much thx. ;)

I tried it out and didn't get any 'messages'. You may want to try again and make sure you are using the 'new' compiled version to run the game. If you still have trouble, post the steps you took...usually it's only a slight oversight that causes the issues :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: blib on March 12, 2009, 11:27:22 pm
Thanks guys!

2nd compile worked.  Sorry for the false report.

 :notworthy:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: pitufo on March 25, 2009, 09:39:57 am
You patch will not work with another osd than windows, just because of whitebox removal.

I use SDL osd, under linux, but some windows user may wants to use SDL under windows (and don't forget *BSD users  >:D)

I may understand that whitebox is annoying but I prefer, by far, having hiscore working  ;D

A quick and dirty way for those who wants the hiscore with sdlmame is to edit  the file

 
Code: [Select]
SDLMAME_SOURCE_ROOT/src/osd/sdl/videos.c
and add to the file

Code: [Select]
void osd_update_hi(running_machine *machine, int skip_redraw)
{
sdl_window_info *window;

// if we're not skipping this redraw, update all windows
if (!skip_redraw)
{
profiler_mark(PROFILER_BLIT);
for (window = sdl_window_list; window != NULL; window = window->next)
sdlwindow_video_window_update(machine, window);
profiler_mark(PROFILER_END);
}

// poll the joystick values here
sdlinput_poll(machine);
check_osd_inputs(machine);

if (machine->debug_flags & DEBUG_FLAG_ENABLED)
debugwin_update_during_game(machine);
}

It's just a copy paste of osd_update.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cmoses on March 25, 2009, 04:40:52 pm
I have compiled MAME before without issue, but am having a problem with the 0130 version.  I am using the latest MameCompliler64 version, I downloaded the source and the update and the MameUI source.  I have MameUI and Disable Warnings as Errors both checked. I apply the patch fine, but when I begin the compile I get the following errors:

MameUI.mak:40: warning: overriding commands for target 'mameui32.exe'
makefile:543: warning: ignoring old commands for target 'mameui32.exe'

It continues to compile but then I get an error that says

Linking obj/winui/mame/osd/winui/mkhelp.exe
obj/winui/mame/ods/winui/mkhelp.exe src/osd/winui/mameui.rc >src/osd/winui/helpids.c
mingw32-make: *** [src/osd/winui/helpids.c] Error 1
Finished!

When I check there is no mameui.exe file created, so it appears to have failed.  Can anyone make any suggestions as to what is causing this?  I have compiled a few versions, but nothing since 0127.  I went back and looked but did not see anything in this thread that seems to help.

Thanks
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 27, 2009, 05:56:05 pm
I have compiled MAME before without issue, but am having a problem with the 0130 version.  I am using the latest MameCompliler64 version, I downloaded the source and the update and the MameUI source.  I have MameUI and Disable Warnings as Errors both checked. I apply the patch fine, but when I begin the compile I get the following errors:

MameUI.mak:40: warning: overriding commands for target 'mameui32.exe'
makefile:543: warning: ignoring old commands for target 'mameui32.exe'

It continues to compile but then I get an error that says

Linking obj/winui/mame/osd/winui/mkhelp.exe
obj/winui/mame/ods/winui/mkhelp.exe src/osd/winui/mameui.rc >src/osd/winui/helpids.c
mingw32-make: *** [src/osd/winui/helpids.c] Error 1
Finished!

When I check there is no mameui.exe file created, so it appears to have failed.  Can anyone make any suggestions as to what is causing this?  I have compiled a few versions, but nothing since 0127.  I went back and looked but did not see anything in this thread that seems to help.

Thanks

Don't know if you figured this out yet, but if not, you may want to post it over at Headkaze's compiler thread for some input. This errors aren't related to the hiscore.diff...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: DolansCadillac on April 14, 2009, 11:42:45 am
This might be a stretch, but has anybody successfully compiled MAME Plus in a way that disables the nag screens using the hiscore diff, or any method for that matter? My experience has been that it just protests a lot during compiling when you use the .diff, and the resulting build runs the same.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: blkdog7 on April 21, 2009, 02:44:03 pm
I have a question, why aren't the compiled versions available for download anywhere? No Nag and high-score save? Just curious.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cmoses on April 22, 2009, 09:57:03 am
I thought the same thing originally, then I did my first compile.  I think the reason is that there are many options when you compile.  The first being Mame vs. MameUI, what type of OS, 32 bit vs 64 bit.  There are also many optimization options for different processors and chipsets.  Intel, AMD, Dual Core, Core 2 Duo, SSE+, SSE-, etc.

So there would be many compiles for each version and most of them are not compatible.  Pick the wrong compile and it won't work on your system. 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Sosetsuken on April 23, 2009, 04:35:17 pm
I have a question, why aren't the compiled versions available for download anywhere? No Nag and high-score save? Just curious.

Because it violates M.A.M.E 's license.  Pre-compiled versions like this (no nag) cause a lot of headaches for the Mamedev's, and really its not THAT complicated to extract a few zips and run one or two commands! (or Click 1 bat file, if you have Mr.Do's compile extras).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on April 25, 2009, 09:32:10 am
I am having difficulty with the latest .129 patch and MAME .131...

...anyone else having issues?  When compiling  hunk #1 fails crsshair.c.rej


I am using HK'z compiler....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nuka1195 on April 25, 2009, 11:51:25 am
shouldn't you be using 130u4 patch?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on April 26, 2009, 10:00:27 am
shouldn't you be using 130u4 patch?

d0h!

 :cheers:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: mikeveli20 on April 27, 2009, 01:59:15 pm
Why was the disable_crosshair_patch removed from working in the mame.ini file? I used this option a lot depending on which game I'm playing.

Edit: Nevermind, I just read that this can now be disabled/enabled within mame itself.  :dizzy:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: danfman on May 09, 2009, 10:03:42 pm
I was following the directions and everything went well until I got to step 8. 

When I type patchmame I get the following error message,

'Patch' is not recognized as an internal or external command, operable program or batch files

?????????????
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bllpla on May 18, 2009, 04:45:20 pm
hi, would it be beautiful if the two diff were separate to give way to the people to choose which to install, could you divide the two diff, one for "hiscore" and one for with "no nag/white box removal" ?

thanks in advance
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on May 19, 2009, 11:40:36 am
hi, would it be beautiful if the two diff were separate to give way to the people to choose which to install, could you divide the two diff, one for "hiscore" and one for with "no nag/white box removal" ?

thanks in advance

You can disable any part of the patch in mame.ini

Quote
disable_hiscore_patch   1   <- To disable highscore support. Set to 0 or omit it entirely from ini file to enable.
disable_nagscreen_patch   1  <- To disable removal of nagscreens /white box. Set to 0 or omit it entirely from ini file to enable.
disable_loading_patch   1      <- To disable suppresssion of loading/decypting/etc messages. Set to 0 or omit it entirely from ini file to enable.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bllpla on May 19, 2009, 06:29:59 pm
hi, would it be beautiful if the two diff were separate to give way to the people to choose which to install, could you divide the two diff, one for "hiscore" and one for with "no nag/white box removal" ?

thanks in advance

You can disable any part of the patch in mame.ini

Quote
disable_hiscore_patch   1   <- To disable highscore support. Set to 0 or omit it entirely from ini file to enable.
disable_nagscreen_patch   1  <- To disable removal of nagscreens /white box. Set to 0 or omit it entirely from ini file to enable.
disable_loading_patch   1      <- To disable suppresssion of loading/decypting/etc messages. Set to 0 or omit it entirely from ini file to enable.

thanks, i know this, but i need to remove nagscreen & loading in a not standard build of mame whit high score already installed :)

i can't understand the metod for remove the whitebox :(
anyone can helpme ?


thanks in advance
Title: Re: hiscore diff (with no nag/white box removal)
Post by: danfman on May 20, 2009, 10:14:46 am
When I right click and save the 131 file it comes up as version 130.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Adultery on May 21, 2009, 02:36:17 pm
Me too. Can I just rename the file to 0.131 or is this the wrong file entirely?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 21, 2009, 10:23:20 pm
Me too. Can I just rename the file to 0.131 or is this the wrong file entirely?

The file name doesn't matter. The 130u3 patch works for all MAME versions from 130u3 to the present (131u2 at the time of this post). I only upload a new patch when the MAME core changes to the point the patch no longer 'patches'.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: danfman on May 22, 2009, 10:56:27 pm
Finally got patch working.  Thanks, MKChamp :cheers: Everything is working fine except for one thing.

When I went to the options screen, to re-map some buttons, but instead of seeing the menu I'm use to all I saw were a bunch of white squares where letters and words use to be.  Everything use to work fine when I was using Mame .126 but now that I compiled .131 I have run into this issue.  The same thing happens when I adjust the volume.

‪‫‬‭‮‪‫‬‭‮
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Adultery on May 22, 2009, 11:45:53 pm
Thanks for the help. :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ARTIFACT on June 02, 2009, 01:34:39 am
HEY!

OK I have not compiled my own MAME with this diff in over 2 years

I forgot all about how to do it

THE "mrdo tutorial" link in the 1st post is BROKEN - where cna I read this tutorial?

THANK YOU GUYS
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on June 02, 2009, 02:35:21 am
http://mrdo.mameworld.info/compile.html
Title: Re: hiscore diff (with no nag/white box removal)
Post by: moonchilddave on June 03, 2009, 01:31:47 am
It looks like there is some kind of issue with the nagscreen part of the patch (at least on my machine).  I'm getting blocks in the in game setup menu.  I didn't think to post here, but you can see what's going on here:

http://forum.arcadecontrols.com/index.php?topic=92673.msg976659
Title: Re: hiscore diff (with no nag/white box removal)
Post by: pitufo on June 08, 2009, 02:30:48 pm
undefined symbols:
  "_osd_update_hi", referenced from:
      _video_frame_update_hi in libemu.a(video.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [mame] Error 1

sdlmame 132, hi_txt 132
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on June 09, 2009, 06:43:53 pm
undefined symbols:
  "_osd_update_hi", referenced from:
      _video_frame_update_hi in libemu.a(video.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [mame] Error 1

sdlmame 132, hi_txt 132

Should we assume this was the result you got when attempting to compile .132?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 09, 2009, 11:54:03 pm
undefined symbols:
  "_osd_update_hi", referenced from:
      _video_frame_update_hi in libemu.a(video.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [mame] Error 1

sdlmame 132, hi_txt 132

Did you do a clean compile? I haven't tried to compile sdlmame...maybe someone else can confirm that the patch works ok for that derivitive.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Avrus on June 10, 2009, 09:36:12 am
Compile failure for me also.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: FrizzleFried on June 10, 2009, 09:53:43 am
I can report that I just succeeded in compiling an XP enhanced version of MAME .132 and I am in the process of compiling an AMD-64 enhanced version (32 bit) and after work I will compile a 64-bit Core2Duo version from the MAME cab and report my findings.  Again,  I had no problems compiling.

EDIT: And I can now confirm that the Core2Duo 64-bit compilation works fine with MAME .132 as well.    All three compiles are standard command line MAME... not a variant.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: acevedor2 on June 14, 2009, 02:54:11 pm
I am compiling now for the first time.  Hope this works. One quick question though.  On Mr. Do's site, the directory for mamesrc lists patch.exe as well as patch.bat.  When I extracted the files, there was no patch.exe.  Where does this file come from?  I followed the instructions to a "t" but I am just trying to find out if there will be a problem because patch.exe is not int he directory.  patch.bat is int he directory.  Thanks for the time!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: acevedor2 on June 14, 2009, 03:16:14 pm
Well I followed the instructions to the letter and the nag screens are still there.  Any thoughts on what could have gone wrong?

I did exactly as mr. do's page described.  I didn't apply any u diffs because I was using 132 and there weren't any listed on the mamedev site.

I created a folder called hi int he mame directory and I also put the hiscore.dat under the mame directory as well.  I downloaded the hi_132.txt file that was listed in this thread and then renamed it to hi_132.diff.  I placed that in the mamesrc directory as required.

It complied fine.  I copied all of the files it created and overwrote the ones in the mame directory as directed.

Still have the nag screens.  Any help would be much appreciated.  Have a great day!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: dgame on June 14, 2009, 04:15:53 pm
The idea is to patch the MAME source code with the hiscore diff BEFORE compiling.

It is the same as Mr.Do’s "Apply the "u" Update DIFFs" procedure except use your “hi_32” instead of the 0119u1 in his example.

C:\mamesrc\ >patchmame  hi_132

http://mrdo.mameworld.info/compile.html
Title: Re: hiscore diff (with no nag/white box removal)
Post by: acevedor2 on June 14, 2009, 04:47:43 pm
That makes sense!  Light bulb goes on. 

I still have the question about patch.exe.  That file is not in the mamesrc directory when everything is unzipped as it should be. 

Patchmame.bat is there, but in the screen shot on Mr. Do's website, it shows the patch.exe file in the directory as well.  Any ideas about that particular file?  I can't seem to find it anywhere, or even know if should be in there at all.

Thanks again for all of the help!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: dgame on June 14, 2009, 05:04:34 pm
Those screen shots are old.

If you look inside patchmame.bat you will see this:

set path=c:\mingw\bin

patch -p0 -E <%1.diff


The set line means the patch.exe in the c:\mingw\bin folder will be used.

patch.exe does not need to be in the MAME source folder.



Title: Re: hiscore diff (with no nag/white box removal)
Post by: acevedor2 on June 14, 2009, 07:41:46 pm
Thanks!  That answers it.  Lastly even when I rename the txt file to diff, i.e. hi_132.txt to hi_132.diff, it still shows up as a txt file.  I am not trying to make this any more difficult than it needs to be - it is as simple as just right clicking the downloaded file and clicking rename and then typing in hi_132.diff - correct?

Is it also normal for the diff file to be so small?  I think the one for 132 is only 30k.  :cheers:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: DeLuSioNal29 on June 14, 2009, 09:27:38 pm
It may be that Windows is set to "Hide extensions for known file types".  You can fix this (in Win XP) by double clicking my computer and then clicking on the "Tools" menu and then "Folder options".  Then click on the "View" tab.  Under advanced settings, you should NOT have a check box next to "Hide extensions for known file types".

Hope this helped.

~ DeLuSioNaL
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Kman-Sweden on June 15, 2009, 02:41:23 am
Hi everyone.

So I compiled my own mameuifx32 today.
Does anyone know how I update my old mameuifx32?
Should I delete the old .ini file and replace my .exe file?
Is that it?
Is there a better way?

Thanx!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jholman76 on June 22, 2009, 10:03:07 am
I was able to compile 132 the other night, but I found some of my games didnt work, so I'm going down to 124, which

is what I was using before.

I tried to compile .124 with mameUI. I followed the steps on the first post with the right versions of source/UI,

etc (124) and tried to compile. I get the following error about 8 minutes in:

Compiling src/osd/winui/winui.c...
src/osd/winui/winui.c: In function 'MamePlayBackGame':
src/osd/winui/winui.c:5546: error: 'inp_header' has no member named 'header'
src/osd/winui/winui.c:5551: error: 'inp_header' has no member named 'majversion'
Finished!
0 Hours 8 Minutes and 47 Seconds Elapsed.
src/osd/winui/winui.c:5551: error: 'INP_HEADER_MAJVERSION' undeclared (first use in this function)
src/osd/winui/winui.c:5551: error: (Each undeclared identifier is reported only once
src/osd/winui/winui.c:5551: error: for each function it appears in.)
src/osd/winui/winui.c:5559: error: 'inp_header' has no member named 'gamename'
mingw32-make: *** [obj/winui/mame/osd/winui/winui.o] Error 1

I tried using the mameUI source for 124 and 124.5. am I missing something or do i just have to try .2,.3, and .4 of

the UI source to see what one works for 124? It is a fresh download from mamedev.org.

Also, since 124 is an older version, I dont have to do any supplemental patches right?

Thanks for any input.

Joe
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 22, 2009, 06:01:06 pm
I don't believe that would be caused by the patch. Try downloading the source and compiling it without applying any patch and see what results you get. If it compiles fine, try applying the hiscore patch....be sure you use the right patch for whatever version you are going to compile. Let us know how it goes!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jholman76 on June 23, 2009, 11:16:12 am
I don't believe that would be caused by the patch. Try downloading the source and compiling it without applying any patch and see what results you get. If it compiles fine, try applying the hiscore patch....be sure you use the right patch for whatever version you are going to compile. Let us know how it goes!

I may try it again, but I just updated my rom set to .132 tonight and since I was able to compile .132 sucessfully, I might just roll with that. I spend enough time just going through and picking the games I want. No need to fight with compiling when I got one to work already.

I'll let you know if I fix the error though. Thanks for the reply!

joe
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ond on July 06, 2009, 12:30:18 am
Just wanted to say thanks to MKChamp for keeping this up-to-date,  I live in hope for a Mame release which lets me run Surf Planet without audio glitches.  If anyone has Surf Planet running really smoothly (audio wise) can they let me know please?

 :cheers:

Ond
Title: Re: hiscore diff (with no nag/white box removal)
Post by: rooter on July 08, 2009, 01:43:55 pm
I'm following the instructions that are linked in the first post.
However, on step 4 where I download the MameUI source code, the site requires that I be a member of FilePlanet, which is a pay site.  Does anyone know another place to get the source?  Google is only finding me the binaries.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on July 08, 2009, 01:56:21 pm
rooter: You don't have to pay you just need to register and use one of their free download severs.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: njay on July 11, 2009, 10:09:54 am
yo headkaze,

your app rocks :)
just compiled my first mame version
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cboy on July 16, 2009, 08:21:57 pm
I'm not sure im doing this right....i downloaded 131 source  (this is why my romset is), hi_130u3.diff
and followed mr do's instructions to the letter


it seems to have compiled correctly but did i miss that i need to compile u1,u2 diffs before i need to do 3?

i also noticed its 130u3 and not 131

is this ok?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cboy on July 16, 2009, 11:50:09 pm
ok seems that ive compiled it correctly all the games play!!

Title: Re: hiscore diff (with no nag/white box removal)
Post by: njay on July 17, 2009, 04:34:46 am
well the guide states you must add the diffs from u1 to u4 then compile it
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 17, 2009, 10:18:52 am
Confusion...I believe he was talking about the hiscore diffs and not the u release source diffs.

Cboy...hi_130u3.txt is the right one to use for 131 source. The reason it is called hi_130u3 is because that was the actual version the patch had to be created due to mame source changes. I should probably go and rename all the patches to reflect the actual version....I'll do that now ;-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cboy on July 17, 2009, 02:43:01 pm
MKChamp - Thanks for the reply and this post.

This is pretty awesome, makes it a much more cleaner looking interface now.


I did notice that Toobin seems to not work (game loads but wont start even with lots of credits) kinda weird.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 17, 2009, 04:26:56 pm
Toobin' uses the 'throw' button to start. By default, it should be mapped to ctrl for player 1. Take a look at your menu (tab -> Input(This Game)) and see what the 'throw' is mapped to. This will get the game started.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cboy on July 18, 2009, 03:37:16 am
ah hah! thanks again!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GaryMcT on July 20, 2009, 03:51:49 am
I made a version of this patch that is just the no nag/white box removal (without the hiscore diff) so that I can use it with cabmame cleanly since it appears to already have hiscore support.  Should I post this version of the diffs?  Anyone interested?

Thanks!
Gary
Title: Re: hiscore diff (with no nag/white box removal)
Post by: mh12 on July 21, 2009, 12:44:19 pm
..nevermind!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: atomikbohm on July 22, 2009, 07:31:10 pm
GaryMcT, are you sure Cabmame has high score support?  There is no mention of it on SailorSat's English Overview http://community.arcadeinfo.de/showthread.php?t=9555 (http://community.arcadeinfo.de/showthread.php?t=9555)

I made a version of this patch that is just the no nag/white box removal (without the hiscore diff) so that I can use it with cabmame cleanly since it appears to already have hiscore support.  Should I post this version of the diffs?  Anyone interested?

Thanks!
Gary

Title: Re: hiscore diff (with no nag/white box removal)
Post by: GaryMcT on July 22, 2009, 07:32:29 pm
GaryMcT, are you sure Cabmame has high score support?  There is no mention of it on SailorSat's English Overview http://community.arcadeinfo.de/showthread.php?t=9555 (http://community.arcadeinfo.de/showthread.php?t=9555)

I made a version of this patch that is just the no nag/white box removal (without the hiscore diff) so that I can use it with cabmame cleanly since it appears to already have hiscore support.  Should I post this version of the diffs?  Anyone interested?

Thanks!
Gary


Pretty sure.  There are a bunch of diffs there adding something related to hiscores that conflicted with the hiscore diffs here.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: LeedsFan on July 28, 2009, 11:55:50 am
I'm totally new to this. When I right click on the links in the OP I don't get an option to "Save as". I only get an option to "Save link as" and I end up with a .txt file and not a .diff file. Is this correct?  :dunno
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 28, 2009, 05:07:41 pm
It really doesn't matter the extention as long as you 'call' it correctly when applying. (at least I wouldn't think it would matter).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: garnerb350 on August 05, 2009, 08:47:32 am
MKChamp...

Sorry if this question is stupid...but I just got Misfitmame (still has the new car scent)...Can this be done also on Misfitmame?  :dunno

(I just got it yesterday...playing D2K...other games eventually)

When i first played it, i forgot all about the nag screen... :hissy:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 05, 2009, 04:48:21 pm
MKChamp...

Sorry if this question is stupid...but I just got Misfitmame (still has the new car scent)...Can this be done also on Misfitmame?  :dunno

(I just got it yesterday...playing D2K...other games eventually)

When i first played it, i forgot all about the nag screen... :hissy:

It *should*...I've never tried it. Easy to do, though. I believe the last time misfitmame was updated was for 127...so...
1) Get the mame source for 127
2) Get the misfitmame source for 127

3) Apply misfitmame source to core mame source
4) Download the hi_127a.txt and patch away!

Let me know if it worked...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GaryMcT on August 05, 2009, 04:54:51 pm
GaryMcT, are you sure Cabmame has high score support?  There is no mention of it on SailorSat's English Overview http://community.arcadeinfo.de/showthread.php?t=9555 (http://community.arcadeinfo.de/showthread.php?t=9555)

I made a version of this patch that is just the no nag/white box removal (without the hiscore diff) so that I can use it with cabmame cleanly since it appears to already have hiscore support.  Should I post this version of the diffs?  Anyone interested?

Thanks!
Gary


Pretty sure.  There are a bunch of diffs there adding something related to hiscores that conflicted with the hiscore diffs here.

Looks like the cabmame hiscore diffs are inferior to the ones here (at least I think they are. . doesn't seem to be saving hi scores for some games).  I need to take the opposite approach and remove all the hiscore stuff from cabmame and then apply these patches. :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: atomikbohm on August 05, 2009, 07:06:18 pm
Gary,

I'd be intrested in getting a copy of that, though you might want to ask sailorsat for help.  Probally cut your time investment down to almost nothing.

Looks like the cabmame hiscore diffs are inferior to the ones here (at least I think they are. . doesn't seem to be saving hi scores for some games).  I need to take the opposite approach and remove all the hiscore stuff from cabmame and then apply these patches. :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GaryMcT on August 05, 2009, 07:32:47 pm
Gary,

I'd be intrested in getting a copy of that, though you might want to ask sailorsat for help.  Probally cut your time investment down to almost nothing.

Looks like the cabmame hiscore diffs are inferior to the ones here (at least I think they are. . doesn't seem to be saving hi scores for some games).  I need to take the opposite approach and remove all the hiscore stuff from cabmame and then apply these patches. :)

I won't bother her with this.  It shouldn't take me long once I get to it.  Yay for "Beyond Compare"! :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: atomikbohm on August 06, 2009, 01:58:31 am
Great to hear I doubt that I'll be the only one interested in this patch.  Keep up the good work Gary, sailorsat and the hiscore team!!!  :applaud:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Kman-Sweden on August 06, 2009, 04:33:55 am
I made a version of this patch that is just the no nag/white box removal (without the hiscore diff) so that I can use it with cabmame cleanly since it appears to already have hiscore support.  Should I post this version of the diffs?  Anyone interested?

Thanks!
Gary

I'd like to have that.. I use MameUIFX32 and that also has the Hiscore support in it already. When I compiled my latest copy it complained about it but it patched the NoNag nicely anyway. :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: pitufo on September 09, 2009, 06:41:30 am
undefined symbols:
  "_osd_update_hi", referenced from:
      _video_frame_update_hi in libemu.a(video.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [mame] Error 1

sdlmame 132, hi_txt 132

Did you do a clean compile? I haven't tried to compile sdlmame...maybe someone else can confirm that the patch works ok for that derivitive.

 Yup, I did a clean compile, the problem for sdlmame is that osd_update_hi doesn't exist in the osd driver for sdl as explain in :

  http://forum.arcadecontrols.com/index.php?topic=64298.msg953651#msg953651

the quick and dirty way to resolve the issue is to copy/paste the osd_update function and rename the copy to osd_update_hi but this won't remove the white boxes.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Stormrider on October 04, 2009, 02:52:10 am
Could you please be so kind to tell me what files have to me modified and how in order to remove the loading screens as well as the whitebox. I don't like applying diffs and I would prefer to do it manually. Are they simple changes (like with the OK screens) or do I have to replace lots of lines and add/remove other lines of code? Thanx.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jasonbar on October 04, 2009, 01:01:03 pm
Question on the mechanics of the high score writing.

Exactly when does a patched MAME write to the file in the hi folder?

As soon as a game is over?  When exiting MAME?  If I power off my machine without exiting MAME, will the high score get written?

I ask because a few of my high scores lately have not shown up on the next launch of the same game & I haven't been able to figure out the cause.


Thanks!
-Jason
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 04, 2009, 02:06:32 pm
Could you please be so kind to tell me what files have to me modified and how in order to remove the loading screens as well as the whitebox. I don't like applying diffs and I would prefer to do it manually. Are they simple changes (like with the OK screens) or do I have to replace lots of lines and add/remove other lines of code? Thanx.

Download the patch and open up in wordpad or notepad. Do a search for MKCHAMP. I have commented every change so it would be easy for you to manually add them in...and know what you are adding :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 04, 2009, 02:07:47 pm
Question on the mechanics of the high score writing.

Exactly when does a patched MAME write to the file in the hi folder?

As soon as a game is over?  When exiting MAME?  If I power off my machine without exiting MAME, will the high score get written?

I ask because a few of my high scores lately have not shown up on the next launch of the same game & I haven't been able to figure out the cause.


Thanks!
-Jason


The scores are saved when you exit the game. So, if you power off the machine without 'exiting' MAME, the scores will not be saved.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Stormrider on October 05, 2009, 06:25:40 am
I have been able to remove the loading messages editing romload.c and deleting this block of text:

   char buffer[200];

   if (name != NULL)
      sprintf(buffer, "Loading (%d%%)", (UINT32)(100 * (UINT64)romdata->romsloadedsize / (UINT64)romdata->romstotalsize));
   else
      sprintf(buffer, "Loading Complete");

   ui_set_startup_text(romdata->machine, buffer, FALSE);

and this one too:

   /* final status display */
   display_loading_rom_message(romdata, NULL);

   /* if we had errors, they are fatal */
   if (romdata->errors != 0)
   {
      const char *rgntag, *nextrgntag;

      /* clean up any regions */
      for (rgntag = memory_region_next(romdata->machine, NULL); rgntag != NULL; rgntag = nextrgntag)
      {
         nextrgntag = memory_region_next(romdata->machine, rgntag);
         memory_region_free(romdata->machine, rgntag);
      }

      /* create the error message and exit fatally */
      mame_printf_error("%s", astring_c(romdata->errorstring));
      astring_free(romdata->errorstring);
      fatalerror_exitcode(romdata->machine, MAMERR_MISSING_FILES, "ERROR: required files are missing, the "GAMENOUN" cannot be run.");
   }

   /* if we had warnings, output them, but continue */
   if (romdata->warnings)
   {
      astring_catc(romdata->errorstring, "WARNING: the "GAMENOUN" might not run correctly.");
      mame_printf_warning("%s\n", astring_c(romdata->errorstring));
   }

Also, I edited mame.c and deleted this line:

   ui_set_startup_text(machine, "Initializing...", TRUE);

I already had the nag screens mod applied, but I'll mention in case anyone is interested.

In mame.c change:

ui_display_startup_screens(machine, firstrun, !settingsloaded);

with

ui_display_startup_screens(machine, !firstrun, settingsloaded);

What I have not been able to get rid of is the white box. Could you please tell me how to remove it? Thanx.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Kman-Sweden on October 05, 2009, 06:56:24 am
I have been able to remove the loading messages editing romload.c and deleting this block of text:
.
.
.

What I have not been able to get rid of is the white box. Could you please tell me how to remove it? Thanx.
Hi.
Could you post pics of "loading messages" and "white box"? I for one don't know what they refer to.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Stormrider on October 05, 2009, 07:20:05 am
I don't have MAME here right now, but it's a white text in the middle of the screen which says Loading ?%, and then Loading complete. Those messages are shown with some roms, while they are loading. The white box is a full screen white rectangle with a thin white outline that is shown during the load process.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 05, 2009, 05:54:11 pm
What I have not been able to get rid of is the white box. Could you please tell me how to remove it? Thanx.

You can search for 'white box' in the diff. Question...why not just apply the patch? Sounds like you are trying to do everything the diff already does minus the high score support(which you can disable). Just curious...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Stormrider on October 05, 2009, 06:24:55 pm
I don't like patches because I don't like to depend on others. What if you die tomorrow? No more patches for future versions...  ;)


I've been trying and I think I've found out the necessary changes, for both 134 and for 118, which is an old version I keep for some games


Remove OK screen
------------------------------------

In mame.c change

ui_display_startup_screens(machine, firstrun, !settingsloaded);

with

ui_display_startup_screens(machine, !firstrun, settingsloaded);



Remove Initializing message
-----------------------------------------------

In mame.c delete the line

ui_set_startup_text(machine, "Initializing...", TRUE);



Remove loading message
--------------------------------------------

In romload.c change

{
char buffer[200];

if (name != NULL)
sprintf(buffer, "Loading (%d%%)", (UINT32)(100 * (UINT64)romdata->romsloadedsize / (UINT64)romdata->romstotalsize));
else
sprintf(buffer, "Loading Complete");

ui_set_startup_text(romdata->machine, buffer, FALSE);
}

with

{
}



Remove the white box
-----------------------------------

In ui.c delete the 2 instances of the line

video_frame_update(machine, FALSE);



Remove the cps2 decrypting message
-----------------------------------------------------------

In cps2crp.c change

{
char loadingMessage[256]; // for displaying with UI
sprintf(loadingMessage, "Decrypting %d%%", i*100/0x10000);
ui_set_startup_text(machine, loadingMessage,FALSE);
}

with

{
}


And now for version 118:

mame.c
--------------

ui_display_startup_screens(firstrun, !settingsloaded);

change with

!ui_display_startup_screens(!firstrun, !settingsloaded);

delete

ui_set_startup_text("Initializing...", TRUE);


romload.c
-------------------

{
char buffer[200];

if (name != NULL)
sprintf(buffer, "Loading (%d%%)", 100 * romdata->romsloaded / romdata->romstotal);
else
sprintf(buffer, "Loading Complete");

ui_set_startup_text(buffer, FALSE);
}

change with

{
}


ui.c
---------

delete 3 instances of the line

video_frame_update();

delete

ui_draw_text_box("Updating Artwork...", JUSTIFY_CENTER, 0.5f, 0.5f, messagebox_backcolor);


video.c
------------

delete

sprintf(buffer, "Decoding (%d%%)", curgfx * 100 / totalgfx);
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 06, 2009, 10:08:55 am
I don't like patches because I don't like to depend on others. What if you die tomorrow? No more patches for future versions...  ;)

Good point....although your 'point' included my death :-)
Glad you figured it out...if you have any other questions, let me know!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GaryMcT on October 06, 2009, 01:09:58 pm
I don't like patches because I don't like to depend on others. What if you die tomorrow? No more patches for future versions...  ;)

Good point....although your 'point' included my death :-)
Glad you figured it out...if you have any other questions, let me know!

if you ever want to get a good look at what a patch is doing:

1) copy unpatched sources to two directories
2) patch one of the directories
3) use a visual diff utility (I prefer Beyond Compare) to look at the diffs between the two trees.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: rooroosta on October 12, 2009, 01:34:34 pm
Well, my first go at compiling Mame worked perfectly..followed instructions to the letter..

Using the latest 0134.diff and 0134 source files that are supposed to get my fave game Gorf hi-score working..unfortunately the game still doesn't save the hi-score!

Any ideas? (except using save states etc).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Kman-Sweden on October 13, 2009, 01:32:33 am
Do you have a HI folder?
Not all games can save a Hiscore, are you sure it should? Try some other game and see if it saves.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: rooroosta on October 13, 2009, 02:53:34 am
Yep i have a hi folder..it just saves the same games as before i compiled and patched.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ryglore on October 17, 2009, 12:42:41 am
Excellent! I am in the middle of compiling mame .134 right now! What's an arcade without high scores?! This is the second attempt so far.... hopefully it goes smoothly this time... I may have accidentally skipped a step in Mr Do's walkthrough on the previous try....  :dunno
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 17, 2009, 02:07:45 pm
Well, my first go at compiling Mame worked perfectly..followed instructions to the letter..

Using the latest 0134.diff and 0134 source files that are supposed to get my fave game Gorf hi-score working..unfortunately the game still doesn't save the hi-score!

Any ideas? (except using save states etc).
It appears gorf's entry in the hiscore.dat is incorrect. You may want to see if one of the guys over in the HtToText thread, http://forum.arcadecontrols.com/index.php?topic=83614.0 (http://forum.arcadecontrols.com/index.php?topic=83614.0), want to take a look at getting it corrected...they seem to be good as creating and correcting entries in the dat file.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ryglore on October 17, 2009, 02:17:41 pm
I'm a bit confused. When I go to patch mame with hi_134.txt I get a file not found, because it's looking for a .diff file. I've seen some people mod the patchmame.dat file to patch the text file for hi_134.txt. But I also noticed that some places say to rename the .txt to .diff.

When I compiled last night, I changed my .txt to a .diff and everything seemed to work fine.

So I guess, I'm just wondering which is the better route? Modding the patchmame.dat? or renaming the .txt to .diff?

(I'm pretty new at the whole patching and compiling thing....)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Kman-Sweden on October 17, 2009, 03:12:54 pm
renaming the .txt to .diff
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ryglore on October 18, 2009, 03:32:46 am
renaming the .txt to .diff

K, thanks. I figured that was the best way to do it and that's how I did it. Sometimes I overthink things and get myself confused though.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Huggybaby on October 19, 2009, 11:21:13 pm
Hello all, I really appreciate this forum!

I have a question. I'm able to compile regular Mame with no errors, but I get two errors when compiling Mame UI:
(http://img23.imageshack.us/img23/4337/013mameuierrors.png)

Although the file works fine, I'm wondering if this is normal.

Thank you.  :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 20, 2009, 01:03:27 pm
I think its ok. I've never compiled mameui with it, but I know others have. I believe you are good to go.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on October 24, 2009, 08:02:47 pm
I have a question. I'm able to compile regular Mame with no errors, but I get two errors when compiling Mame UI:

Not errors; they are warnings. And it's no problem.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: JustMichael on October 24, 2009, 08:08:04 pm
When trying to compile mame .134 after patching the source with the 133 - 134u2 diff file, I get some errors.
In functions:
copy_to_memory
copy_from_memory
safe_to_load
hiscore_init
I get "running_machine" has no member named "cpu". Some of those functions try to reference cpu more than once which results in more than 1 error for that function.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Huggybaby on October 25, 2009, 12:00:21 am
I have a question. I'm able to compile regular Mame with no errors, but I get two errors when compiling Mame UI:

Not errors; they are warnings. And it's no problem.
Thank you!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on October 25, 2009, 01:13:17 pm
FYI I compiled Mame 0134u3 yesterday using Mame Compiler 64 and the hiscore diff with no errors. I only compiled the 64-bit version though.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: solid187 on October 28, 2009, 10:13:22 am
 :dunno  Not sure what I'm doing wrong.  I applied all 4 updates and the hi-score diff, compile, yet I still see the nag screens.  Any suggestions?  I did this with both 64-bit and 32 versions.... :banghead:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 28, 2009, 10:21:03 am
:dunno  Not sure what I'm doing wrong.  I applied all 4 updates and the hi-score diff, compile, yet I still see the nag screens.  Any suggestions?  I did this with both 64-bit and 32 versions.... :banghead:

Are you using Headkaze's program to compile? What version of MAME and hiscore patch are you using?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Kman-Sweden on October 28, 2009, 10:23:46 am
:dunno  Not sure what I'm doing wrong.  I applied all 4 updates and the hi-score diff, compile, yet I still see the nag screens.  Any suggestions?  I did this with both 64-bit and 32 versions.... :banghead:
This is how I do it... I compile MameUIFX32 so ignore the "crossed over" lines.

1.) Install Mame Compiler

2.) Download the Mame source from http://mamedev.org/release.html (http://mamedev.org/release.html)
      (ie. mame0126s.exe)

3.) Download the Intermediate Updates for Mame from http://mamedev.org/updates.html (http://mamedev.org/updates.html)
      (ie. 0126u1_diff.zip, 0126u2_diff.zip, 0126u3_diff.zip, 0126u4_diff.zip)

4.) Download MameUIFX source code from here http://mame32fx.altervista.org/download.htm (http://mame32fx.altervista.org/download.htm)
     (ie. MameUIFXs.126u4)


5.) Download the hiscore diff patch from http://forum.arcadecontrols.com/index.php?topic=64298.0 (http://forum.arcadecontrols.com/index.php?topic=64298.0)
      (ie. hi_126u4.txt if your update diff is u4.)

6.) Rename hi_126u4.txt to hi_126u4.diff and copy the file into a temporary folder
      ex: ..\source code\patches

7.) Extract the Intermediate Update diff's to ..\source code\updates

8.) Run mame0126s.exe and extract it to ..\source code\Mame0126

9.) Run Mame Compiler (Start->All Programs->Mame Compiler->MameCompiler)

10.) Click the "..."  button to browse for the "Mame Source Folder" and point it to
        ..\source\Mame0126

11.) Click the "..."  button to browse for the "Diff Patch File" and point it to
        ..\source code\updates\0126u1.diff

12.) Click the "Apply Patch" button.

13.) Repeat step 11.) and 12.) for 0126u2.diff, 0126u3.diff and 0126u4.diff

14.) Extract the MameUIFX source code over the Mame source code on ..\source code\Mame0126 then  
     rename "mameuifx.mak" to  "mameui.mak".


15.) Click the "..."  button to browse for the "HiScore Diff Patch File" and point it to
        ..\source code\patches\ hi_126u4.diff

16.) Optimize for your Processor and put a tick next to the "Mame UI" option if your compiling MameUI

17.) Press the "GO!" button to compile Mame

18.) When it's finished compiling it should create a "mame.exe" file in the
        C:\MinGW\source\Mame0126u4 folder.  
Title: Re: hiscore diff (with no nag/white box removal)
Post by: solid187 on October 28, 2009, 10:51:27 am
I tried both the old fashioned way with 32 bit and HeadKaze for 64-bit.  I am using the latest version of Mame source .0134, and the latest updates (.diff, 0134u1.diff, 0134u2.diff, 0134u3.diff, 0134u4.diff), along with the latest hi-score diff (hi_134u3.diff).  I am now getting this using HeadKaze and it won't compile.  Ugh. 

Compiling Mame64...
Using Parameters  -j5 MSVC_BUILD=1 PTR64=1
mkdir.exe -p obj/windows/vmame
process_easy: DuplicateHandle(In) failed (e=6)
process_easy() failed to launch process (e=6)
mkdir.exe -p obj/windows/vmame
Counted 3 args in failed launch
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: solid187 on October 28, 2009, 12:10:01 pm
Ok...I got it to go after a few tries.  I didn't do U4 just in case it wasn't compatible with the latest hi-score diff.  Question...is there a way to make all the games start with the bezels cropped instead of 'full'?  Thanks for all your hard work on this guys.  It's great. 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 28, 2009, 01:14:07 pm
Ok...I got it to go after a few tries.  I didn't do U4 just in case it wasn't compatible with the latest hi-score diff.  Question...is there a way to make all the games start with the bezels cropped instead of 'full'?  Thanks for all your hard work on this guys.  It's great. 

The latest patch works for u4...so, you can compile that one if you want.
For your other question, I believe you can set the following line to "1" in the mame.ini file:
artwork_crop              1

If you don't have a mame.ini file to edit, just run "mame -cc"  to generate it.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: solid187 on October 29, 2009, 09:58:03 am
worked....TY.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: mvsfan on November 05, 2009, 09:55:08 pm
Say does this also work for mame 32 or even Mame UI?

I have never upgraded my cabinet beyond mame32 0.95. since i first got it working about 6 years ago.

the main nagging reason is because 0.95 is the last one ive seen that allows you to turn off the nag screens. also because of its reliability. this version never seems to jam up and give me errors in the middle of a game.

Two reasons i desperatly want to upgrade though is because i can no longer find a 0.95 .cht file anywhere, and somehow mine disappeared.

and also because it doesnt play hardly anything made after the 90s.

actually if i could just get the game tweaks to work again i would still consider giving another year or two to 0.95.

But if i could go all out and setup mameUI with all the features that are important to me, past and present that would just take the cake.

one more question.

Even in mame32 0.95, you still get one stupid nag screen on certain games to let you know that screen flipping in cocktail mode is not supported. I dont have a cocktail cabinet, thus i dont care.

does your patch also turn those off?






Title: Re: hiscore diff (with no nag/white box removal)
Post by: Huggybaby on November 06, 2009, 01:08:22 am
Yes, it works with Mame32/64 and UI.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Bobulus on November 11, 2009, 03:18:56 am
Just wanted to say 'Thank you' for the people that do this. I lost a lot of interest in MAME when the hi scores were taken out, and I'm glad to see someone bothered to put it back in.

Used Headkaze's program and it was a breeze. Plus it's at least marginally more optimized for the Athlon XP system will be using in my cabinet!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TeutonicDarkness on December 07, 2009, 02:30:18 am

 Ok its been a while since I compiled my own version.
Up until recently I had been using Act Lab guns with my Setup.

Now that I have Aimtracks I find having Cross hairs on is good.
( except the games with double cross hairs like Terminator2 )

I'm using Mame 120 I find most games are the way I need but
Area 51 is being difficult!

I can turn on the cross hairs by F1 but exit and they don't save
have to turn back on each time.


Is there something I can change in the Hi Score diff to fix the problem
with this?


Thanks,
Title: Re: hiscore diff (with no nag/white box removal)
Post by: smalltownguy on December 07, 2009, 07:50:18 am

 Ok its been a while since I compiled my own version.
Up until recently I had been using Act Lab guns with my Setup.

Now that I have Aimtracks I find having Cross hairs on is good.
( except the games with double cross hairs like Terminator2 )

I'm using Mame 120 I find most games are the way I need but
Area 51 is being difficult!

I can turn on the cross hairs by F1 but exit and they don't save
have to turn back on each time.


Is there something I can change in the Hi Score diff to fix the problem
with this?


Thanks,


You restore Mame's crosshairs by disabling the patch. Create a rom specific .ini file in your Mame\Ini\ folder (turkhunt.ini, for example), and place only the following line in it:

disable_crosshair_patch   1

When Mame loads that rom, it will disable the crosshair patch, restoring the program's default treatment of the crosshairs, which is 'on.'
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TeutonicDarkness on December 07, 2009, 08:00:13 pm
 That just doesn't work for me here with MAME 120.
I'm thinking there probably is a similar line I can place in the .ini for my
version to turn it on by default for only the Games I need.
For that matter maybe there is a command line option I can place
in the .Bat file itself?

I hope someone can shed some light on this.

 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on December 08, 2009, 01:18:09 pm
That just doesn't work for me here with MAME 120.
I'm thinking there probably is a similar line I can place in the .ini for my
version to turn it on by default for only the Games I need.
For that matter maybe there is a command line option I can place
in the .Bat file itself?

I hope someone can shed some light on this.

Yea, the option to disable portions of the patch started with 127. What you can do for 120 is remove the crosshair section of the patch before compiling. Just delete the section that starts with "*** 2006,2012 ****" and ends with "for (player = 0; player < MAX_PLAYERS; player++)".
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TeutonicDarkness on December 08, 2009, 08:31:44 pm

 While I'm thinking about it....
Does the High Score patch have anything to do with saving credit?

I have noticed with version 120 that after I quit a game and re-start
I have the Same # of credits as I did before.

I curious if this has anything to do with Hi score patch and how to remove?

Does the Later Versions of Mame 135 perform this way?


I'm very tempted to upgrade to 135 seeing I have more options for
Light gun games...   :)


Title: Re: hiscore diff (with no nag/white box removal)
Post by: daftspore on December 09, 2009, 04:26:37 am
All,

I am having a few problems getting the hi_score diff to work. I have managed to compile the latest version of Mame (135) and have got rid of the nag screens but the high scores are not saving.

I have a hi directory and the hiscore.dat file in this directory C:\MinGW\source\Mame0135

I am only trying on a few games and I think they support hi scores (1944 being one of them). So not sure if I need to modify any code files or if it should just work.

I am using the hi_135.diff file and mame compiler 64.

The nag screens are a huge bonus but want to get high scores working. I guess I am doing something stupid but can't see what at this stage.

Thanks in advance.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on December 09, 2009, 01:18:23 pm
TeutonicDarkness :
No, the hiscore patch does not do anything with credits. This is the way MAME handles it.

daftspore:
The hiscore.dat goes in the same directory that the mame.exe is in. That is also where the hi folder needs to be created.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: daftspore on December 09, 2009, 02:41:06 pm
THanks for the reply MKChamp, excellent software by the way.

Does the hiscore.dat need to be in place before the compile?

I am going to try again as I am not convinced I did the apply for the .diff file.

Thanks

Chris
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on December 09, 2009, 03:18:24 pm
THanks for the reply MKChamp, excellent software by the way.

Does the hiscore.dat need to be in place before the compile?

I am going to try again as I am not convinced I did the apply for the .diff file.

Thanks

Chris

No, the hiscore.dat has nothing to do with the compiling process and doesn't need to be anywhere in the source. It is used by the mame.exe file during runtime. It just needs to be in your compiled mame directory...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: daftspore on December 09, 2009, 03:51:42 pm
thanks again, hacking things on my laptop as I am away from home so will try again later.

Title: Re: hiscore diff (all versions-1 location)
Post by: BamBam on January 04, 2010, 07:54:27 am
If you need them....

Don't ask where I found them - a fella has to have his secrets.

A fellow like you wouldn't happen to have a friend who knows where a fellow like me could find .128 diffs do you?   ;)
Title: Re: hiscore diff (all versions-1 location)
Post by: MKChamp on January 05, 2010, 02:17:46 am
If you need them....

Don't ask where I found them - a fella has to have his secrets.

A fellow like you wouldn't happen to have a friend who knows where a fellow like me could find .128 diffs do you?   ;)

I don't know about him...but a friend of a friend that knew a guy that knew told me. I think you will need to manually copy and paste them into your browser. Hyperlink may not work(may say forbidden).
http://mamedev.org/updates/0128u1_diff.zip (http://mamedev.org/updates/0128u1_diff.zip)
http://mamedev.org/updates/0128u2_diff.zip (http://mamedev.org/updates/0128u2_diff.zip)
http://mamedev.org/updates/0128u3_diff.zip (http://mamedev.org/updates/0128u3_diff.zip)
http://mamedev.org/updates/0128u4_diff.zip (http://mamedev.org/updates/0128u4_diff.zip)
http://mamedev.org/updates/0128u5_diff.zip (http://mamedev.org/updates/0128u5_diff.zip)
http://mamedev.org/updates/0128u6_diff.zip (http://mamedev.org/updates/0128u6_diff.zip)
http://mamedev.org/updates/0128u7_diff.zip (http://mamedev.org/updates/0128u7_diff.zip)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 16, 2010, 05:16:01 pm
MAME went under some big changes for 136u1. You need new tools to compile (which can be found over at mamedev.org). Not sure if headkaze's compiler will need to be updated...but fairly certain it will.
Along with all the changes, the hiscore patch had to be changed more than usual, too. Please test to make sure it still works with all the games in 136u1 that it did work for in 136 and earlier.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Yoeddy1 on January 17, 2010, 08:56:05 pm
Could somebody please PM me or email me the hi_136.txt file?  It looks like the site to grab it from has been suspended. :(

Thanks
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Comtek on January 17, 2010, 09:24:03 pm
google had the site cached is this file right
not sure ???
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 17, 2010, 09:45:41 pm
I just got off the phone with powweb. They said they suspended it because one of my files there was flagged as having a virus (the rcrclient_install.exe)...but it definitely is NOT a virus. The WinVNC bundled with it (it's for connecting and working on remote computers) is what flagged as a trojan. Stupid. They said a representative will call me in 24 to 48 hours. So, it looks like it will be at least a day before the site is active again. All they needed to do was look at: http://www.csd.uwo.ca/~magi/doc/vnc/virus.html (http://www.csd.uwo.ca/~magi/doc/vnc/virus.html)
really chaps my hiney.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 18, 2010, 12:24:31 am
Ok...they got back to me quicker than expected. Site is back up...hiscore files are all available again.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: buzbard on January 31, 2010, 10:21:51 pm
I seem to be having a problem compiling the newest version of MAME(.136u2) with your patch.
I've been compiling MAME since ver. .127 and haven't had any problem 'till now.

I did download and install the new tool chain for .136u1, and it compiled fine.

I've downloaded and applied all the patches, .136u1, .136u2 & hi_136u2 in that order but I keep getting this message:
Code: [Select]
src/emu/sound/fm2612.c: In function 'void ym2612_update_one(void*, FMSAMPLE**, int)':
src/emu/sound/fm2612.c:2170: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [obj/windows/mame/emu/sound/fm2612.o] Error 1

Can some one tell me what I'm doing wrong please?

I'm using:
1.28Ghz Pentium4
1.5Gb RAM
WinXP Home SP3

Thanks...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 02, 2010, 12:34:22 am
I'm not familiar with seg faults. But a quick search reveals it could be due to hardware issues. What I would do is completely delete the mingw directory and start from scratch. See if you get the same error after doing that.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: buzbard on February 02, 2010, 12:12:48 pm
Thanks for replying.

I already tried that, a couple times. I'm going to try and compile on my notebook later this afternoon, hopefully it will work, although it's has a slower processor, just might work.

I'll let you know.

Thanks again.


Update:
It successfully compiled on my notebook, which tells me that there is something wrong with my PC (I haven't reinstalled WinXP for about 4 years now, maybe it's time for a reinstall).
Thanks again for your help.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: scept1c on February 04, 2010, 02:54:04 am
yeah I think the faults are due to hardware problems. 4 years of running a system without uninstall  :o
Title: Re: hiscore diff (with no nag/white box removal)
Post by: romshark on February 08, 2010, 11:42:49 pm
The computer in my cabinet is an Athlon X2 64, but I got rid of whatever Vista came with it and put on Windows XP Home (32-bit). It shows up on my system properties "AMD Athlon(tm) Dual Core".

I was wondering: would I get any performance boost if I use the AMD Athlon 64 compile option?

I guess what I really need to know is if compiling as an Athlon 64 would make it a 64-bit version of MAME. I don't see where else in the compiling directions would specify 32 or 64 bit, and I'm not sure if a 64-bit OS is needed to fully use this processor (I don't know if the original Vista on the system was 32 or 64 bit.)  :dizzy:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 09, 2010, 03:02:55 pm
The computer in my cabinet is an Athlon X2 64, but I got rid of whatever Vista came with it and put on Windows XP Home (32-bit). It shows up on my system properties "AMD Athlon(tm) Dual Core".

I was wondering: would I get any performance boost if I use the AMD Athlon 64 compile option?

I guess what I really need to know is if compiling as an Athlon 64 would make it a 64-bit version of MAME. I don't see where else in the compiling directions would specify 32 or 64 bit, and I'm not sure if a 64-bit OS is needed to fully use this processor (I don't know if the original Vista on the system was 32 or 64 bit.)  :dizzy:

Unless I am totally mistaken, the 64 builds are only for 64 bit operating systems. So, since you have XP 32-bit, the 64-bit build wouldn't work...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: romshark on February 09, 2010, 03:23:29 pm
So compiling with the "ARCHOPTS = -march=athlon64" option does produce a 64-bit MAME? Just want to make sure I'm getting the most from my computer.

I though I used that option when I compiled MAME 134, and that version runs on all my systems OK. Although, that would explain why I have problems compiling this latest version...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: RoadRunn on February 09, 2010, 03:53:08 pm
So compiling with the "ARCHOPTS = -march=athlon64" option does produce a 64-bit MAME? Just want to make sure I'm getting the most from my computer.

I though I used that option when I compiled MAME 134, and that version runs on all my systems OK. Although, that would explain why I have problems compiling this latest version...

I have had quite a bit of experience with compiling and cross-compiling.

The toolchain that I got from the updated instructions (mingw64-w32) is a 32-bit compiler and creates 32-bit binaries. These binaries can be run on either a x86 or AMD64 version of the operating system. In order to create a native AMD64 binary, you either need a x64 cross compiler (need to build one yourself) on a 32-bit OS, or create a native compiler (again build one yourself) on an AMD64 operating system. You MUST be running an AMD64 version of the operating system to execute AMD64 built binaries.

It's going to take quite a bit more work to build a 64-bit Mame than just compiler options.

GCC has deprecated certain compiler options in the past. This may be the reason why you are not able to use these options with the new toolchain. If you really want to use 64-bit binaries, the first step is to get the AMD64 version of the operating system back on your machine. Although in my experience there are very few applications that really get a performance gain from running true 64-bit (Mame may be one of them, but have not tested myself).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shateredsoul on February 22, 2010, 05:49:01 am
Hi so I successfully compiled my own mame! Woo hoo.. the nag screen is gone

But I realized I miss the loading screen, it sucks to have to wait a while just looking at a blank screen. Some people start thinking it doesn't work when it's just loading.

I tried using the command to disable the loading patch (disable_loading_patch   1)

but the loading screen won't come back.  Can anyone tell me where in there mame.ini to place the command? I tried at the beginning and at avrious places and nothing. I also tried the mamui64.ini

nevermind figured it out
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 24, 2010, 03:34:50 am
Hi so I successfully compiled my own mame! Woo hoo.. the nag screen is gone

But I realized I miss the loading screen, it sucks to have to wait a while just looking at a blank screen. Some people start thinking it doesn't work when it's just loading.

I tried using the command to disable the loading patch (disable_loading_patch   1)

but the loading screen won't come back.  Can anyone tell me where in there mame.ini to place the command? I tried at the beginning and at avrious places and nothing. I also tried the mamui64.ini

nevermind figured it out


Just curious....what did you figure out?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shateredsoul on February 24, 2010, 04:18:46 am
well for some reason my ini file already had the patch command in there, so I just changed the value to 1 for the one I wanted to disable (I wanted to see the loading screen, but not the nag screen)

I compiled another version for my desktop though, and just added the following

#
# CORE MISC OPTIONS
#
bios                     
cheat                     0
skip_gameinfo             0

#
# CORE MKChamp OPTIONS
#
disable_hiscore_patch     0
disable_nagscreen_patch   0
disable_loading_patch     1

I included the "core misc options" as a frame of reference if anyone wants to include this in theirs, it shouldn't matter where you put these commands but for some reason it did for me.

Also, I placed the files for hi scores in the root folder for mame instead of in "hi" folder, when I had it in "hi" it wouldn't record the scores.

So it works perfectly now!

Title: Re: hiscore diff (with no nag/white box removal)
Post by: RobbyMac on February 28, 2010, 10:08:45 pm
K
not sure what I am doing wrong.
I've got two different machines ive tried compiling .135 on. Both are xp (one is tiny xp, my cab)
Both I get the same errors after the drivers compile and all the game names go wizzing by.

all stuff about directx i think... ie. c:\mingw\minw64-w32\bin\../lib/gcc/1686-w64-ming32/4.4.3/../../../../i686-w64-mingw32/include/d3d9types.h:1145: note: previous definition of 'd3dtss_mipmaplodbias' was here

3 or three errors like the above, a bunch  others with an 'redeclaration of enumerator' error. all relating to d3d9types.h

So then I went ind downloaded the directx-headers file, and extracted the files into the c:\mingw\minw64-w32\include folder (found further down in the 'harder' section of http://mamedev.org/tools/#compile (http://mamedev.org/tools/#compile)
 And I get the same errors.

ANyone have anysort of updated compiling instructions? or an idea of what I am doing wrong, because it's difficult being a first timer, let alone tyring to determine the new directory structure/names for the mingw stuff. I changed the paths in the .bat's to c:\mingw\minw64-w32\bin and changed the 'mingw32-make' command to 'make'. It all appears to be working properly, until it gets to the d3d stuff
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shateredsoul on February 28, 2010, 10:23:58 pm
these instructions helped me a lot and made it very easy
http://www.headsoft.com.au/index.php?category=mame&page=mc64 (http://www.headsoft.com.au/index.php?category=mame&page=mc64)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: RobbyMac on February 28, 2010, 11:02:07 pm
AWESOME!!!!
Same friggin error using that compiler.
make: ***[obj/windows/mame/osd/windows/d3d9intf.o] Error 1

um... screwit. I've spent enough time building this damn thing I don't need to spend another 20 hours trying to compile a friggin version just for hi-scores that should be there in the first place.

EDIT: YOU HAVE TO USE OLD COMPILER mingw-mame-20070810.exe WITH VERSIONS 0.135 & EARLIER

I thought I read through the last few pages thoroughly, but hadn't found it. Mamedevs page has a byline about where to download the old compiler, but no info pertaining to needing it prior to version 136
It is currently compiling and has gotten further than previous attempts. Sorry. Hopefully noone else runs into this problem as apparantly so many others have?!?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Huggybaby on February 28, 2010, 11:27:28 pm
You have to use the old compiler, this is covered at least twice already in this thread. The new compiler only works with .136u1 and newer.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Haterot on March 02, 2010, 11:36:25 am
Little help on this error. Patched u1-u3 and hi136u2  tried this on two different machine same errors.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on March 03, 2010, 03:55:53 pm
Little help on this error. Patched u1-u3 and hi136u2  tried this on two different machine same errors.

Mame Compiler uses a custom compiled version of make, so it looks like you're not using the version of MinGW installed with Mame Compiler.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Haterot on March 04, 2010, 10:27:22 am
Little help on this error. Patched u1-u3 and hi136u2  tried this on two different machine same errors.

Mame Compiler uses a custom compiled version of make, so it looks like you're not using the version of MinGW installed with Mame Compiler.

HK thanks. You were right I had reinstalled the tools from the mamedev page and it overwrote your install. Thanks for the tip.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lolo-le-haricot on May 10, 2010, 12:46:24 pm
Hi guys :)

(Sorry for my bad english, french inside ^^)

I have a problem with the highscore diff 137u4.

If I try to compile mame with hi_137u4.diff, compilation crash, but if I compile the file without using mame hi_137u4.diff, the compilation goes through without problem.

Do you have the same problem?

- l0l0 -
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 10, 2010, 11:15:01 pm
Couple of things...
What are the errors it gives you? Are you starting with the 137u4 source?
I don't think anyone else is having this issue (I can see alot of people have downloaded it...and no complaints...)
I hope this translates back to french ok :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lolo-le-haricot on May 11, 2010, 02:30:04 am
This is what I do :

I try to compile code, it start but after a few minutes, it crash.

If I do not apply the patch hi_137u4.diff, I have no problem.

I give you the error message I get tonight (France time)

Thank's for reply ;)

- l0l0 -
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lolo-le-haricot on May 11, 2010, 06:34:49 am
This is the error message :

(http://img175.imageshack.us/img175/7552/capture1mp.png) (http://img175.imageshack.us/i/capture1mp.png/)

Uploaded with ImageShack.us (http://imageshack.us)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 11, 2010, 01:02:58 pm
The module isn't modified at all by the hiscore patch. I've heard that segmentation faults can occur due to hardware issues (not 100% sure that is correct or not). Can you try to compile on a different machine and see if it works there? No one else has reported the issue you are having...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lolo-le-haricot on May 11, 2010, 01:07:23 pm
I will try tomorrow to compile on my work computer.

But what is strange is that if I did not patch with hi_137u4, the compilation goes through without problem.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lolo-le-haricot on May 12, 2010, 02:43:31 am
Well, I tried compiling at my work, and I did had no problem.

So the problem must come from my compilation environment at my home... :cry:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shateredsoul on May 12, 2010, 12:16:29 pm
take the mame you compiled at work..... home 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lolo-le-haricot on May 12, 2010, 12:23:53 pm
lol, thank's Great idea, but I had already thought, but it does not solve the problem of compiling at my home ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 12, 2010, 01:01:03 pm
Take the machine at work.... home   ;D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lolo-le-haricot on May 12, 2010, 01:17:05 pm
lol :D

Maybe the problem is my hardware ?

CPU : INTEL Core 2 duo E7600
CG : GAINWARD GTX260 896Mio
CM : ASUS P5P43TD
RAM : CORSAIR DHX XMS3 3Go (3x1Gio)

Windows XP Pro SP3

I have tried to compile again, stopping my antivirus but it did not work.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 13, 2010, 01:56:07 am
Well...this would coinside with what I've read on segmentation fault errors in compiling...hardware related. Although, I do not have enough exposure in this to pin-point the exact failure.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: tylervalo on May 24, 2010, 10:51:26 am
Woulds someone be kind enough to upload their compile mame version?  No matter how I try I can never get a version to compile with out something going wrong.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tomy. on June 07, 2010, 03:54:21 pm
I have compiled the last week or so several Windows versions of 137 and 138 with and without the hiscore diff. Compilation goes without a problem.

The original (no hiscore diff added) executable works like a charm for all of 137 U's and 138 and 138 U1. However after adding the hiscore diff and recompiling, every time mame.exe throws an exception and bails.  :(
I have step by step pulled everything from the diff (warning removal etc.) now I'm down to only the changes for the hiscore and I'm still seeing this behavior. If I remove the highscore part of the diff and leave the other parts (like the warning removal) the problem goes away.
Anyone else seeing this? I'd really like to get the highscore saves work on my box. Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Havok on June 07, 2010, 04:00:05 pm
Just compiled 137 64bit, no problems...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tomy. on June 07, 2010, 04:41:28 pm
Thanks, Havok! I haven't tried 64 bits. Can you try 32?
32 bit runs perfectly for me ONLY without the hiscore diff.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Huggybaby on June 07, 2010, 04:45:41 pm
When you compiled 32 bits, did you make sure not to tick any processor optimizations?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tomy. on June 07, 2010, 11:33:12 pm
Actually I changed nothing in between the official src download and adding the diff and recompiling which makes the diff the only suspect for me now. I'm using the command line make.
So I've set up the build environment once again from scratch, enabled debug and link maps, turned all optimization off explicitely and we'll see shortly if I get better results now.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tomy. on June 08, 2010, 12:57:48 am
Debug build finished and works fine. Will recompile without the debug option next but will explicitely keep optimization=0 (non-debug builds default to 3 otherwise)
Update: non-debug build also works fine when explicitely specifying optimization=0. Strangely the performance significantly dropped compared to a build with no highscore, I tried several games and they are all sluggish. I think I will try some more build options.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 09, 2010, 12:26:54 am
Just some FYI....
I used to always compile my mame on my 'home' computer (dual core) and then move the exe over to my cabinet computer (p4). A few versions back I noticed that the exe would run on the computer it compiled on but the cabinet computer it would throw an exception. I then started compiling on the cabinet computer and the exception errors disappeared. So, without researching further, I came to the concluson that compiling on the computer you(I) was going to run it on was the way to go. Not sure if you are doing the same thing I was doing....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tomy. on June 09, 2010, 02:25:48 am
I have tried all the optimizer options and the result is pretty conclusive. With optimization=0 or 1 the latest official mame build as well as after adding hiscore work fine (but game emulation is very sluggish). With optimization=2 the official source works fine, but adding the hiscore diff throws an exception on some machines. With optimization=3 the official again works fine but I could not get it to work on any machine after adding the hiscore.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jimmy2x2x on June 09, 2010, 06:41:54 pm
Im trying to compile mameui 0.138.1.0 suitable for a PIII celeron

Seems to compile fine, the GUI is fully functioning but crashes on game launch

EDIT:

Changed my compile options to optimize for Intel Core2
ticked:
64 bit processor
dual core
mame ui
disable warnings as error

This compiled version seems to run fine on a c2d win7 x64 system

EDIT2:

optimize for Pentium M, Intel core
ticked:
mame ui
disable warnings as error

This version crashes on game launch on a win7 x64 and win xp sp3 x86 system

EDIT3:

Solved!

Taking advice from this thread, I compiled on the target machine and it now works fine!
2 hour compile on a 1.2 celeron was worth it!
Not sure why this happens tho!

Thanks for all the great work guys, keep it up!

Title: Re: hiscore diff (with no nag/white box removal)
Post by: djvj on June 10, 2010, 09:04:23 pm
Would there be any issues with combining the source for mameuifx and mame? I am looking to use uifx, cpu optimized and remove nag screen. Is there any certain order that this would work?

EDIT: I tried this and it had a few errors, so it failed. I patched uifx last btw.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Poomobile on June 12, 2010, 02:43:52 am
Can someone help me?  I have been trying for hours to remove nag screen from mame 138 with no luck...

Everything is running fine...just still have nag screens and no hiscores.  I created the hi directory in my mame directory.

When I look in my mame.c file, I see references to MKChamp so i assuming the diff patch worked...did not get any errors when applied.  I am stumped...

Am I supposed to apply the patch before I run the "makemame" bat file?  That is the only thing that I haven't tried...I ran the 0.138u1 patch before I ran the makemame command and then the hi_138.diff after I compiled mame.  Could that be my mistake?

Pulling my hair out... ???  any help would be appreciated!

EDIT:  Figured it out...need to apply all diffs before compiling mame including the hiscore diff.  So, before you run makemame, apply all diffs. Everything is good now!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MB on June 12, 2010, 06:13:34 pm
Quick question...
Compiling with Headkaze's program seems not to produce a Mame.exe for me. ???
I read that I need the 2.0 runtime on my computer.
I tried to install it but got the message it wasn't compatible with my Windows version (XP SP3).
Should I try to install one with a higher number like 3.0 or 3.5? Or wouldn't that work?
Really don't know what this stuff does.

Thanks.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 13, 2010, 01:50:15 am
Quick question...
Compiling with Headkaze's program seems not to produce a Mame.exe for me. ???
I read that I need the 2.0 runtime on my computer.
I tried to install it but got the message it wasn't compatible with my Windows version (XP SP3).
Should I try to install one with a higher number like 3.0 or 3.5? Or wouldn't that work?
Really don't know what this stuff does.

Thanks.

You might want to post this question over at Headkaze's compiler thread here: http://forum.arcadecontrols.com/index.php?topic=71845.0 (http://forum.arcadecontrols.com/index.php?topic=71845.0)
Not sure what runtime you are referring to (I'm hard-headed and stuck in the manual ways of compiling things) but if you weren't able to install 2.0, I would try to install the newer versions...couldn't hurt.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MB on June 13, 2010, 03:56:30 am
I'll do that.
Thanks MKChamp.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MB on June 13, 2010, 05:23:46 pm
So I finally got mame compiled ok on a different computer but now I really have a question belonging in this thread. :)

The compiled mame.exe got rid of the nag screens but the high score saving doesn't work.
What I did was just replace my old mame.exe with the new compiled mame.exe in my old mame folder.
I added the hiscore.dat and an empty "hi" folder. Made a new mame.ini with the mame -cc command.
I got a highscore on Bubble Bobble (bublbobl) but it didn't get saved in the hi folder. Same with Asteroids.
There is nothing in the nvram folder.

What's wrong? Should I start over with a new mame folder? Change a setting?

Any help is appreciated!

 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 13, 2010, 10:57:21 pm
A couple of things to check (assuming you compiled correctly).
1) The hiscore.dat files goes into the same directory the mame.exe file is.
2) The hi folder goes in the same location as the mame.exe.
3) Not sure what front end you are using (if one at all), but try running MAME from a command line (dos prompt) mame asteroid

It's pretty staightforward but sometimes something small is missed or overlooked.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MB on June 14, 2010, 02:29:46 am
The compile gave no warnings or errors and I checked point 1 and 2. I did run Mame via the Hyperspin frontend.
I'll give it a try via command line and see if that changes things. Thanks for the suggestion. :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MB on June 14, 2010, 12:21:56 pm
FIXED! MKChamp, you pointed me in the right direction. I tried running Mame from the command line and then it did save the scores.
So the problem was with my Hyperspin settings. In HyperHQ (where you change the settings for HS) Mame was set to execute via Hyperlaunch.
After I changed that to "normal" instead, the highscores got saved perfectly! :applaud:

Thanks a lot!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 17, 2010, 03:30:15 pm
Just FYI...MAME changed considerably in 138u2. Please let me know if the latest patch seems to not work as expected!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 07, 2010, 11:17:59 am
MAME 138u3 once again had SIGNIFICANT changes. Please let me know if the new patch has any bugs. I am hoping it doesn't!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on July 11, 2010, 01:06:35 am
MKChamp, just wanted to say THANK YOU!! for your 'hiscore/nag screens off/whitebox off patch'.

prior to 0.138u2 i used to remove nag screens by editing ui.c (i put 'break;' before each 'case *'):

Code: [Select]
case 0:
break;
if (show_disclaimer && disclaimer_string(machine, messagebox_text).len() > 0)
ui_set_handler(handler_messagebox_ok, 0);
break;

case 1:
break;
if (show_warnings && warnings_string(machine, messagebox_text).len() > 0)
{
ui_set_handler(handler_messagebox_ok, 0);
if (machine->gamedrv->flags & (GAME_WRONG_COLORS | GAME_IMPERFECT_COLORS | GAME_REQUIRES_ARTWORK | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NO_SOUND))
messagebox_backcolor = UI_YELLOW_COLOR;
if (machine->gamedrv->flags & (GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION))
messagebox_backcolor = UI_RED_COLOR;
}
break;

case 2:
break;
if (show_gameinfo && game_info_astring(machine, messagebox_text).len() > 0)
ui_set_handler(handler_messagebox_anykey, 0);
break;

it worked flawlessly for several years, but stopped working on 0.138u3 - it gave me many compiling errors. so i HAD TO discover new way of doing this. since i'm not a programmer, i couldn't do it in a new way, so i searched the net and found your wonderful diff.

just patched 0.138u3 source with your diff, compiled and voila - no more warning screens again!! also it was nice surprise that all of these options can be turned on and off via new settings in mame.ini. since i'm not interested in hiscore patch, i turned on only no nag and whitebox off patches.

thanks again for the great work!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 11, 2010, 05:05:41 pm
No need to thank me...I do it for my own cabinet...but I do appreciate the appreciation! :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jimmy2x2x on July 11, 2010, 05:12:54 pm
Well, here's some from me

This is the only build I consider for my setups, Thanks very much!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Flip The Switch on July 18, 2010, 11:18:10 pm
Hi im running mameUI 0.138 but the instructions here http://www.headsoft.com.au/index.php?category=mame&page=mc64 (http://www.headsoft.com.au/index.php?category=mame&page=mc64) are all for mame 0.136?

do i adjust accordingly?

or carry out those steps exactly as it states but download the appropriate hi_136u2.txt file (hi_138.txt??)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 19, 2010, 03:02:44 am
I haven't read that post, but you should be able to grab the diff for the mame version you are trying to compile and run the patch using headkaze's compiler program. Using his software should make it easy as pie. Feel free to post back if you run into aby issues.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on July 22, 2010, 04:17:25 am
i just tried to apply hi_138u3.diff to MAME 0.138u4 source tree and received the following output:

Code: [Select]
patching file src/emu/emu.mak
patching file src/emu/emuopts.c
patching file src/emu/emuopts.h
patching file src/emu/fileio.h
patching file src/emu/hiscore.c
patching file src/emu/hiscore.h
patching file src/emu/machine.c
Hunk #5 succeeded at 361 (offset 2 lines).
patching file src/emu/machine.h
patching file src/emu/mame.c
patching file src/emu/profiler.c
patching file src/emu/profiler.h
patching file src/emu/romload.c
patching file src/emu/ui.c
patching file src/emu/video.c
patching file src/emu/video.h
patching file src/mame/machine/cps2crpt.c
patching file src/osd/osdepend.h
patching file src/osd/windows/video.c
patching file src/osd/windows/window.c
patching file src/osd/windows/window.h

does it mean that machine.c has changed in u4 and i should wait for hi_138u4.diff patch, or i can proceed with this warning?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 22, 2010, 10:18:58 am
That is just a warning...you should be good to go.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on July 22, 2010, 10:49:12 am
That is just a warning...you should be good to go.

thanks for the information!! much appreciated.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Flip The Switch on July 22, 2010, 06:33:48 pm
Hi there, i compiled once but the new mame exe keeps crashing, did something wrong, asked Headcrazy a few questions and ill try it again.


MKChamp, Im using mame 0.138 so should i be using the 138 - u1 diff file off the first page?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 22, 2010, 10:46:48 pm
Hi there, i compiled once but the new mame exe keeps crashing, did something wrong, asked Headcrazy a few questions and ill try it again.


MKChamp, Im using mame 0.138 so should i be using the 138 - u1 diff file off the first page?

Yes, but just one word of advice....make sure you compile it on the machine you will be running it from. I don't know why...and haven't had much desire to investigate...but a few versions back I noticed compiling on a different machine (different specs) than my cabinet caused the executable to crash. Compiling it on the running machine worked great.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Flip The Switch on July 22, 2010, 11:55:06 pm
Ok ive ran the compiler twice now, and it hasnt given me an EXE file?

i deleted all the files and started again but it still didnt make the EXE.

hmmf!

rarrrr
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Flip The Switch on July 25, 2010, 02:35:03 am
Can anyone shed some light where im going wrong? these are the exact steps im taking and not getting an EXE file....

1) Installing the compliler
2) going to the C:\MinGW folder and creating a source folder and then then a mameUI0138 folder (this is the version of mame im compiling)
3) Download the hiscore hi_138.txt (again this is my version of mame)
4) Download the mame0138s.zip and extracted to C:\MinGW\source\MameUI0138
5) Download the updates (0138u1_diff, 0138u2_diff and 0138u3_diff and 0138u4_diff) and extract them to  C:\MinGW\patches
6) Download MameUI source/extracted copy the winui folder to C:\MinGW\source\MameUI0138\src\osd and copy the MameUI.mak to C:\MinGW\source\MameUI0138
7) Applied the official Mame patches 0138u1_diff, 0138u2_diff then 0138u3_diff & 0138u4_diff Applied them by browsing to each one selecting it from the file browser     &selecting "Apply Patch"
Cool Applied the hi_138.txt
9) Set your "Mame Source Folder" to C:\MinGW\source\MameUI0138 and check you have MameUI Compile Option ticked (also selected optimise for Pentium 4 which is the computer in my cabinet)

CLICK GO, usually takes 10 mins or so but im not getting an EXE as i said, can someone help me pleeeeeaseee.

Cheesy
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 25, 2010, 03:47:01 am
Get the latest hiscore patch...not the 138 one...get the 138u3 - u4  one. Since you are trying to compile a u4 version (hence by you applying the u1 - u4 patches) you need the hiscore patch that works for the u4....and the 138 will not! :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Flip The Switch on July 25, 2010, 05:07:16 am
Thanks very much Mk, gona try it very soon :) will post with an update.

/EDIT - All working!! thanks very much for ya help MK, finally can save hi scores and i luv no nags!

cheers again!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 11, 2010, 01:00:40 am
I'm gonna lose my host site where I kept the diff files coming up in the next month. Can anyone offer or suggest a good place to put them...or offer to host them? I know I could put the time to finding a place on my own...but if anyone can suggest a good place, that would save me the time...and I am very lazy.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Kman-Sweden on August 11, 2010, 01:19:21 am
How much file space are we talking 'bout?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on August 11, 2010, 10:12:28 am
I'm gonna lose my host site where I kept the diff files coming up in the next month. Can anyone offer or suggest a good place to put them...or offer to host them? I know I could put the time to finding a place on my own...but if anyone can suggest a good place, that would save me the time...and I am very lazy.

i have about 100MB free space on my hosting. the address for your files will look like this:

http://mamestuff.lowtrucks.net/MKChamp/

you will be given FTP access to your folder (MKChamp).

contact me if it suits your needs.

p.s.: lowtrucks.net is my personal domain, and mamestuff.lowtrucks.net is my personal sub-domain.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 11, 2010, 11:37:16 pm
All the files together are less than a meg.

Abelenki...PM sent to ya...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Kman-Sweden on August 12, 2010, 02:18:17 am
I'm glad you worked it out.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on August 12, 2010, 05:03:54 am
All the files together are less than a meg.

Abelenki...PM sent to ya...

replied you back via PM. everything is set up. ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jimmy2x2x on August 12, 2010, 05:11:26 am
Good stuff!

Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on August 12, 2010, 11:55:05 am
MKChamp, are these 3 warnings okay when patching hi_139.diff to MAME 0.139u1 source tree or i should wait for hi_139u1.diff?:

Code: [Select]
patching file src/emu/emu.mak
Hunk #2 succeeded at 67 (offset 1 line).
patching file src/emu/emuopts.c
patching file src/emu/emuopts.h
patching file src/emu/fileio.h
patching file src/emu/hiscore.c
patching file src/emu/hiscore.h
patching file src/emu/machine.c
Hunk #3 succeeded at 206 with fuzz 2.
patching file src/emu/machine.h
Hunk #1 succeeded at 346 (offset 12 lines).
patching file src/emu/mame.c
patching file src/emu/profiler.c
patching file src/emu/profiler.h
patching file src/emu/romload.c
patching file src/emu/ui.c
patching file src/emu/video.c
patching file src/emu/video.h
patching file src/mame/machine/cps2crpt.c
patching file src/osd/osdepend.h
patching file src/osd/windows/video.c
patching file src/osd/windows/window.c
patching file src/osd/windows/window.h
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 12, 2010, 02:59:12 pm
Hey abelenki,
I appreciate the space. I've uploaded the files there and changed the links. I owe you a beer!

You're good with the compile. It's just warnings and not errors. I compiled and it worked. You should be good to go!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on August 12, 2010, 09:01:34 pm
I appreciate the space. I've uploaded the files there and changed the links. I owe you a beer!

great!!

Quote
You're good with the compile. It's just warnings and not errors. I compiled and it worked. You should be good to go!

thanks.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TidusBlade on August 13, 2010, 05:06:59 pm
Firstly, thanks so much MKChamp for this awesome patch, I was dreading the fact that I'd have to keep recording my high scores on a post it lol until I found this post, but sadly it didn't work...

I spent quite a bit of time trying to get it to work and I wanted to see it through till the end so I'll post my problem here hoping that it wasn't just me but I'm guessing I'm SOL.

Anyways, I'm on Linux (If you wanna ignore this post then go ahead now lol) and I tried compiling mame-0.139 from mamedev.org which worked perfectly (Using gcc-4.4.4 if it matters.) so I know it's not a problem with the official build. Then I grabbed your patch (For 0.139 of course) and tried applying it. At first I got "HUNK Failed" on each line, but it turned out to be because the .diff was in DOS/Windows format. I was able to convert it to UNIX format using dos2unix though. After that I applied the patch and everything went without any errors ao now I went along and compiled it with make, which worked perfectly (or at least it didn't spit out any errors) until it reached the linking stage and spat this error out:
Code: [Select]
Linking mame...
obj/sdl/mame/libemu.a(video.o): In function `video_frame_update_hi(running_machine*, int)':
video.c:(.text+0x1034a): undefined reference to `osd_update_hi(running_machine*, int)'
collect2: ld returned 1 exit status
make: *** [mame] Error 1

I'm no C expert but I tried looking around, there were too many includes for me to figure out lol so I just tried messing around a bit though it didn't make things any better. I'm guessing I'm the only one with this problem as everyone else seems to have gotten it working, but I just wanted to make sure.

Sorry for the long post, whenever I end up posting for help or something I write too much ^^' And feel free to ignore me as well, I know I'm in the minuscule minority so it may not be worth your time. I did find out that I can save state and it works good enough for me so at least I'm not stuck writing stuff on a post it but it would definitely be satisfying to get this build working :)

Thanks, and once again, sorry for the long post xD
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 13, 2010, 06:47:17 pm
Not tested...don't have Linux...but try the following:
In the src/osd/sdl folder, add the following to the video.c module:

void osd_update_hi(running_machine *machine, int skip_redraw)
{
   sdl_window_info *window;

   // if we're not skipping this redraw, update all windows
   if (!skip_redraw)
   {
//      profiler_mark(PROFILER_BLIT);
      for (window = sdl_window_list; window != NULL; window = window->next)
         sdlwindow_video_window_update_hi(machine, window);
//      profiler_mark(PROFILER_END);
   }

   // poll the joystick values here
   sdlinput_poll(machine);
   check_osd_inputs(machine);

   if ((machine->debug_flags & DEBUG_FLAG_OSD_ENABLED) != 0)
      debugwin_update_during_game(machine);
}



Next, in the same folder, add the following to the window.h file (around line 130):

void sdlwindow_video_window_update_hi(running_machine *machine, sdl_window_info *window);


Finally, in the same folder, add the following to the window.c file:

void sdlwindow_video_window_update_hi(running_machine *machine, sdl_window_info *window)
{

   ASSERT_MAIN_THREAD();

   // adjust the cursor state
   sdlwindow_update_cursor_state(machine, window);

   // if we're visible and running and not in the middle of a resize, draw
   if (window->target != NULL)
   {
      int tempwidth, tempheight;

      // see if the games video mode has changed
      render_target_get_minimum_size(window->target, &tempwidth, &tempheight);
      if (tempwidth != window->minwidth || tempheight != window->minheight)
      {
         window->minwidth = tempwidth;
         window->minheight = tempheight;
         if (!window->fullscreen)
         {
            sdlwindow_blit_surface_size(window, window->width, window->height);
            sdlwindow_resize(window, window->blitwidth, window->blitheight);
         }
         else if (video_config.switchres)
         {
            pick_best_mode(window, &tempwidth, &tempheight);
            sdlwindow_resize(window, tempwidth, tempheight);
         }
      }

      // only render if we have been signalled
      if (osd_event_wait(window->rendered_event, 0))
      {
         worker_param wp;
         const render_primitive_list *primlist;

         clear_worker_param(&wp);

         // ensure the target bounds are up-to-date, and then get the primitives
         primlist = window->get_primitives(window);

         // and redraw now

         wp.list = primlist;
         wp.window = window;
         wp.machine = machine;

         //execute_async(&draw_video_contents_wt, &wp);
      }
   }
}


Like I said, I can't test it...but it should at the very least be a step in the right direction.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TidusBlade on August 13, 2010, 08:06:42 pm
Ok well I pasted in the code in the right places (triple checked :P) and ran make again, it started complaining about some warning that it turned to an error, so after disabling -Werror from the makefile I got it to compile but when it got to the linking stage, it outputted the exact same error. Now, I've never touched the MAME source code so I had no idea what to do, tried moving the #include "windows.h" around among other little noob tricks like defining osd_update_hi in video.h lol, which as you can guess produced nothing but compile errors xD The only thing that I *think* changed was how long it took from the start of the linking to when the error is outputted, but even then it's only a few seconds, or could just be me I guess ^^'

Anyways, thanks for the quick reply, especially considering that I'm the only one who has this problem it seems, and as I said, if it's too much trouble just forget about it, I'm happy with saving state and if I really want hiscore.dat support I'll just shove ---my bottom--- to a Windows PC instead of whining :P
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 14, 2010, 04:31:58 am
Just got home...
Sorry that I can't debug this for you on Linux. Can you PM me and attach the three files I said to update for me to take a look at so I can be certain they were updated correctly? This whole section is just to get rid of the 'white box' stuff....if you aren't concerned with that, I can tell you what to change in the diff to get it to work with Linux....you would still get the no nag and hiscore to work....just not the white box part:

I *think* you can just change this part in src\emu\ui.c from this:
      //MKCHAMP - CALLING NEW SUB CALLED video_frame_update_hi SO WHITE BOX DOES NOT SHOW BUT REFRESHSPEED IS STILL CALCULATED
      if (!options_get_bool(mame_options(), OPTION_DISABLE_LOADING_PATCH))
         video_frame_update_hi(machine, FALSE);
      else
         video_frame_update(machine, FALSE);

to this:


   video_frame_update(machine, FALSE);

I can't test this......because once again....I am using windows....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TidusBlade on August 14, 2010, 09:07:53 pm
Yeah lol I don't really mind, as long as high scores through hiscore.dat are working I got no complaints :P (Unless of course it keeps dividing my score by 10 or something xD) So yeah, if you think the changes to the .diff might work, then might as well try.

Anyways, tried changing the code in ui.c but to no avail, I still get the exact same error while linking...

Also, attached hosted (Looks like I can't attach xD) the 3 files and PM'ed you :) Really appreciate the time you're taking to help me out btw, looks like I owe you at least 2 beers now ;P
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 15, 2010, 11:41:37 pm
Hey,
I looked at the files and you did them the exact way I said to...what you need to do now is do a 'clean' or 'fresh' compile. That means to delete your obj folder so it recompiles all of the objects. I manually forced my env to compile for Linux and it worked perfectly. Let me know how it goes.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Avrus on August 18, 2010, 05:45:51 pm
Haven't compiled in a while but I'm getting a compile error.  Patch works fine compile ends with error:

Compiling src/osd/windows/main.c...
Compiling src/osd/windows/strconv.c...
gcc: CreateProcess: No such file or directory
mingw32-make: *** [obj/windows/mame/osd/windows/main.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
gcc: CreateProcess: No such file or directory
mingw32-make: *** [obj/windows/mame/emu/cpu/m68000/m68kmake.o] Error 1
gcc: CreateProcess: No such file or directory
mingw32-make: *** [obj/windows/mame/osd/windows/strconv.o] Error 1

No other errors.  

n/m didn't realize there was a new version of mingw
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bitbytebit on August 30, 2010, 12:20:34 am
I have a patch you can apply after the normal one (for mame 139 or 139u1) which adds Linux support for removing the warnings and such.  From what I can tell this seems like the way to fully remove it and it cleanly goes straight into the game now.
Code: [Select]
diff -ruN Mame_vanilla_0.139u1/src/osd/sdl/video.c Mame_hiscore_0.139u1/src/osd/sdl/video.c
--- Mame_vanilla_0.139u1/src/osd/sdl/video.c    2010-06-29 20:46:22.000000000 -0500
+++ Mame_hiscore_0.139u1/src/osd/sdl/video.c    2010-08-28 02:20:48.000000000 -0500
@@ -357,6 +357,29 @@
                debugwin_update_during_game(machine);
 }
 
+//============================================================
+//  MKCHAMP - BELOW IS THE NEW SUB CALLED FROM emu/video.c. ONLY
+//  DIFFERENCE BETWEEN THIS SUB AND osd_update IS IT CALLS NEW SUB CALLED sdlwindow_video_window_update_hi
+//  INSTEAD OF sdlwindow_video_window_update (located in osd/sdl/window.c)
+//============================================================
+
+void osd_update_hi(running_machine *machine, int skip_redraw)
+{
+        sdl_window_info *window;
+
+        // if we're not skipping this redraw, update all windows
+        if (!skip_redraw)
+                for (window = sdl_window_list; window != NULL; window = window->next)
+                       sdlwindow_video_window_update_hi(machine, window);
+
+        // poll the joystick values here
+       sdlinput_poll(machine);
+       check_osd_inputs(machine);
+
+       if ((machine->debug_flags & DEBUG_FLAG_OSD_ENABLED) != 0)
+               debugwin_update_during_game(machine);
+}
+
 
 //============================================================
 //  add_primary_monitor
diff -ruN Mame_vanilla_0.139u1/src/osd/sdl/window.c Mame_hiscore_0.139u1/src/osd/sdl/window.c
--- Mame_vanilla_0.139u1/src/osd/sdl/window.c   2010-06-29 20:46:22.000000000 -0500
+++ Mame_hiscore_0.139u1/src/osd/sdl/window.c   2010-08-28 02:34:30.000000000 -0500
@@ -1007,6 +1007,64 @@
 
 
 //============================================================
+//  sdlwindow_video_window_update_hi
+//  (main thread)
+//============================================================
+
+void sdlwindow_video_window_update_hi(running_machine *machine, sdl_window_info *window)
+{
+
+       ASSERT_MAIN_THREAD();
+
+       // adjust the cursor state
+       sdlwindow_update_cursor_state(machine, window);
+
+       // if we're visible and running and not in the middle of a resize, draw
+       if (window->target != NULL)
+       {
+               int tempwidth, tempheight;
+
+               // see if the games video mode has changed
+               render_target_get_minimum_size(window->target, &tempwidth, &tempheight);
+               if (tempwidth != window->minwidth || tempheight != window->minheight)
+               {
+                       window->minwidth = tempwidth;
+                       window->minheight = tempheight;
+                       if (!window->fullscreen)
+                       {
+                               sdlwindow_blit_surface_size(window, window->width, window->height);
+                               sdlwindow_resize(window, window->blitwidth, window->blitheight);
+                       }
+                       else if (video_config.switchres)
+                       {
+                               pick_best_mode(window, &tempwidth, &tempheight);
+                               sdlwindow_resize(window, tempwidth, tempheight);
+                       }
+               }
+
+               // only render if we have been signalled
+               /*if (osd_event_wait(window->rendered_event, 0))
+               {
+                       worker_param wp;
+                       const render_primitive_list *primlist;
+
+                       clear_worker_param(&wp);
+
+                       // ensure the target bounds are up-to-date, and then get the primitives
+                       primlist = window->get_primitives(window);
+
+                       // and redraw now
+
+                       wp.list = primlist;
+                       wp.window = window;
+                       wp.machine = machine;
+
+                       execute_async(&draw_video_contents_wt, &wp);
+               }*/
+       }
+}
+
+//============================================================
 //  set_starting_view
 //  (main thread)
 //============================================================
diff -ruN Mame_vanilla_0.139u1/src/osd/sdl/window.h Mame_hiscore_0.139u1/src/osd/sdl/window.h
--- Mame_vanilla_0.139u1/src/osd/sdl/window.h   2010-06-03 15:27:50.000000000 -0500
+++ Mame_hiscore_0.139u1/src/osd/sdl/window.h   2010-08-28 02:18:41.000000000 -0500
@@ -127,6 +127,7 @@
 // creation/deletion of windows
 int sdlwindow_video_window_create(running_machine *machine, int index, sdl_monitor_info *monitor, const sdl_window_config *config);
 void sdlwindow_video_window_update(running_machine *machine, sdl_window_info *window);
+void sdlwindow_video_window_update_hi(running_machine *machine, sdl_window_info *window);
 void sdlwindow_blit_surface_size(sdl_window_info *window, int window_width, int window_height);
 void sdlwindow_toggle_full_screen(running_machine *machine, sdl_window_info *window);
 void sdlwindow_modify_prescale(running_machine *machine, sdl_window_info *window, int dir);


Also another thing I did was change the following line in hiscore.c ....

-       filerr = mame_fopen(NULL, db_filename, OPEN_FLAG_READ, &f);
+       filerr = mame_fopen(FILETYPE_HIGHSCORE, db_filename, OPEN_FLAG_READ, &f);

Which makes it so mame looks for the hiscore.dat file in the highscore directory ("hi" by default) and seems easier to me for it to be there and able to change location in the config.  Also allows frontends like wahcade to find it, cause they use the current directory of /usr/local/bin/ or whereever mame is located and under Linux it's messy to just put files in the current working directory programs run (guessing it is in Windows too, but seems more common).

Thanks,
Chris
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on August 30, 2010, 08:33:19 am
MKChamp, does your hiscore diff work with current MESS/MESSUI source tree? i haven't tried it myself, just wondering... (because i started using MESS not a long time ago, and even didn't compile it myself yet - i use official stock binaries). it would be really nice to remove warnings/game info/white box in MESS.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bitbytebit on August 30, 2010, 10:09:36 am
I'm not sure, guessing it'd be very similar if it had to be patched by hand there, but one would have to figure out where to do the work in the code since it seems completely different from mame (I think, not 100% sure though).  So here's basically what I did, or how the disabling of the warning/info screens works, if someone wanted to try and make mess do the same... 

basically all you really have to do is comment out that large section of code at the bottom of the sdlwindow_video_window_update function, the part that says "// only render if we have been signaled", all in src/osd/sdl/window.c.  From what I can tell that does the same thing as the Windows version, except the trick is that if you only comment out some of that code it'll not ever refresh the screen and hang all black.  I tried a few things then finally realized it all needed to be commented out else the way SDL works I'm guessing it gets stuck in a wait state or something.

basically in src/osd/sdl/window.c search for this block and add the /* */ parts to comment it out...
Code: [Select]
+               // only render if we have been signalled
+               /*if (osd_event_wait(window->rendered_event, 0))
+               {
+                       worker_param wp;
+                       const render_primitive_list *primlist;
+
+                       clear_worker_param(&wp);
+
+                       // ensure the target bounds are up-to-date, and then get the primitives
+                       primlist = window->get_primitives(window);
+
+                       // and redraw now
+
+                       wp.list = primlist;
+                       wp.window = window;
+                       wp.machine = machine;
+
+                       execute_async(&draw_video_contents_wt, &wp);
+               }*/


Of course making the extra functions is necessary to make it compile since it calls the newer osd_update_hi() function with the normal patch applied before this one.  So besides the above change, just copying the osd_update and sldwindow_video_update_hi() functions in that window.c file and naming the duplicates with additional _hi at the ends (and making the above change of course in the extra sdlwindow_video_update_hi() function).  That ought to do the same thing, oh and adding the sdlwindow_video_window_update_hi function prototype to window.h (just copy the current one in window.h and add _hi at the end of it, same basic idea again).  Basically  that's what I did to create the patch in mame 139.

I'm guessing MESS is probably going to be more of a customized version of the above procedure, not sure how all that code is done there.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on August 30, 2010, 09:41:29 pm
bitbytebit, thanks for the guide. i'll try to comment out that section, when i'm compiling next MESS.

MKChamp, i'm getting some errors when patching hi_139.diff to 0.139u2 source tree (since there are a lot of core changes by Aaron this time):

Code: [Select]
patching file src/emu/emu.mak
Hunk #2 succeeded at 68 (offset 2 lines).
patching file src/emu/emuopts.c
patching file src/emu/emuopts.h
patching file src/emu/fileio.h
patching file src/emu/hiscore.c
patching file src/emu/hiscore.h
patching file src/emu/machine.c
Hunk #3 succeeded at 208 with fuzz 2 (offset 2 lines).
Hunk #5 succeeded at 362 (offset 1 line).
patching file src/emu/machine.h
Hunk #1 FAILED at 334.
1 out of 1 hunk FAILED -- saving rejects to file src/emu/machine.h.rej
patching file src/emu/mame.c
patching file src/emu/profiler.c
Hunk #1 succeeded at 192 (offset 66 lines).
patching file src/emu/profiler.h
Hunk #1 FAILED at 47.
1 out of 1 hunk FAILED -- saving rejects to file src/emu/profiler.h.rej
patching file src/emu/romload.c
patching file src/emu/ui.c
patching file src/emu/video.c
Hunk #1 succeeded at 493 (offset -1 lines).
patching file src/emu/video.h
Hunk #1 succeeded at 314 (offset -26 lines).
patching file src/mame/machine/cps2crpt.c
patching file src/osd/osdepend.h
patching file src/osd/windows/video.c
patching file src/osd/windows/window.c
patching file src/osd/windows/window.h

should i wait for hi_139u2.diff or i can proceed with these two errors?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 31, 2010, 11:04:27 am
Wait no more....139u2 is uploaded...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on August 31, 2010, 11:42:43 am
Wait no more....139u2 is uploaded...

thanks a lot for prompt update!! compiling now... ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on September 01, 2010, 07:38:12 am
Ive compiled it three times now and I keep getting errors

Compiling src/osd/windows/input.c...
Compiling src/osd/windows/output.c...
Compiling src/osd/windows/sound.c...
Compiling src/osd/windows/video.c...
src/osd/windows/video.c: In function 'void osd_update_hi(running_machine*, int)':
src/osd/windows/video.c:271: error: redefinition of 'void osd_update_hi(running_machine*, int)'
Finished!
1 Hours 36 Minutes and 0 Seconds Elapsed.
src/osd/windows/video.c:247: error: 'void osd_update_hi(running_machine*, int)' previously defined here
make: *** [obj/windows/mame/osd/windows/video.o] Error 1

I load the 139u1 diff, then the 139u2 diff, then the hi score 139u2 diff, the compile

Am I doing something wrong?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on September 01, 2010, 09:43:58 am
I load the 139u1 diff, then the 139u2 diff, then the hi score 139u2 diff, the compile

Am I doing something wrong?

i applied hi_139u2.diff to 0.139u2 source tree, then compiled. everything went without any problems and worked as expected.

are you sure, you're doing clean compile (without obj directory)?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on September 01, 2010, 03:17:29 pm
I load the 139u1 diff, then the 139u2 diff, then the hi score 139u2 diff, the compile

Am I doing something wrong?

i applied hi_139u2.diff to 0.139u2 source tree, then compiled. everything went without any problems and worked as expected.

are you sure, you're doing clean compile (without obj directory)?

I did, deleted everything and started from scratch, thats when i got the error, im gonna try again.


Me too, fourth times got it
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MrBungle on September 01, 2010, 07:01:05 pm
nvm...fixed my problem
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on September 01, 2010, 09:17:30 pm
I got it to compile but now DK and DK Jr wont play, DK3, tetris, and 1942 work fine, so i dunno what the issue could be
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on September 02, 2010, 12:45:21 am
The issue isn't you. It's already been reported at mametester.org. You can check it out here:

http://mametesters.org/view.php?id=4032 (http://mametesters.org/view.php?id=4032)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jimmy2x2x on September 08, 2010, 03:21:14 pm
MKChamp: Could I be so bold and request the nag removal for an old version of mame?

I use 0.36b on my netbook (soon to become a bartop) and I would really like to use this version without the nag screens?

Any chance of the happening?

Pretty please  :notworthy:

 :D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on September 08, 2010, 05:30:25 pm
To remove the nag screens in .36b, just change the below 2 lines in mame.c :

if (settingsloaded == 0)
change to
if (1)

if (showcopyright()) goto userquit;
change to
//if (showcopyright()) goto userquit;

That should get it...although I didn't compile and test...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on September 08, 2010, 11:17:01 pm
I use 0.36b on my netbook (soon to become a bartop)

btw, i always use latest MAME on my netbook. i have EEE PC 701 with 2GB or RAM and overclocked CPU to 900Mhz. so, latest MAME works like a charm.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on September 09, 2010, 10:41:50 am
Missed one...also change this line
if (showgamewarnings() == 0)
to
if (1)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jimmy2x2x on September 09, 2010, 10:55:43 am
Thank you sir, I will try it out as soon as I get a chance!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on September 10, 2010, 09:04:21 am
I use 0.36b on my netbook (soon to become a bartop)

btw, i always use latest MAME on my netbook. i have EEE PC 701 with 2GB or RAM and overclocked CPU to 900Mhz. so, latest MAME works like a charm.

I use it on my netbook too, but I got the 1201N eee.  Dual Core 1.6 GHz, 3 GB RAM, Nvidia ION.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ammi on September 18, 2010, 10:00:17 am
Firstly, thanks so much MKChamp for this awesome patch, I was dreading the fact that I'd have to keep recording my high scores on a post it lol until I found this post, but sadly it didn't work...

Anyways, I'm on Linux (If you wanna ignore this post then go ahead now lol) and I tried compiling mame-0.139 from mamedev.org which worked perfectly (Using gcc-4.4.4 if it matters.)

Hi,
to use the hiscore Patch from MKChamp, download the endings script (you need this for mame source):
http://rbelmont.mameworld.info/?p=527 (http://rbelmont.mameworld.info/?p=527)

Then use this attached patch and rename it from .txt to .diff and the MKChamp patch.
Works fine with 0.139u2, that's all ;) Do not use gcc <4.4

Title: Re: hiscore diff (with no nag/white box removal)
Post by: alarsuel on September 21, 2010, 07:02:37 pm
I was following the directions and everything went well until I got to step 8. 

When I type patchmame I get the following error message,

'Patch' is not recognized as an internal or external command, operable program or batch files

?????????????
I'm having the same problem.  How did you get it resolved (or anyone else know how to fix this)?  Using 139.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on September 22, 2010, 12:15:02 am
I was following the directions and everything went well until I got to step 8. 

When I type patchmame I get the following error message,

'Patch' is not recognized as an internal or external command, operable program or batch files

?????????????
I'm having the same problem.  How did you get it resolved (or anyone else know how to fix this)?  Using 139.


Couple of different options:
1) either put the location of the patch.exe in your computers environment or at least copy it to the directory you are trying to run it from
or
2) grab headkaze's compiler here: http://forum.arcadecontrols.com/index.php?topic=71845.0 (http://forum.arcadecontrols.com/index.php?topic=71845.0)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on September 22, 2010, 09:45:28 pm
I was following the directions and everything went well until I got to step 8. 

When I type patchmame I get the following error message,

'Patch' is not recognized as an internal or external command, operable program or batch files

?????????????
I'm having the same problem.  How did you get it resolved (or anyone else know how to fix this)?  Using 139.


Couple of different options:
1) either put the location of the patch.exe in your computers environment or at least copy it to the directory you are trying to run it from
or
2) grab headkaze's compiler here: http://forum.arcadecontrols.com/index.php?topic=71845.0 (http://forum.arcadecontrols.com/index.php?topic=71845.0)

+1 to headkazes compiler, it is sooooooo much easier than trying to do it over the command line and batch files.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: alarsuel on September 23, 2010, 04:55:28 pm
I'm starting to get irritated now.  I've now tried the compiler and it gave me an error message at the end of compiling.  It applied the patches fine, but it didn't create the exe after saying there was a problem with one of the drivers.  I guess I'm back to trying the source/batch way.  All I want to do is remove the ok-left/right screen as my x-arcade doesn't respond during the game loading.  It works fine to select games in MA and then fine to play games, but not during loading.  Is there some text I could delete or change in my current config to remove then screen without patching or recompiling?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on September 23, 2010, 08:22:11 pm
I'm starting to get irritated now.  I've now tried the compiler and it gave me an error message at the end of compiling.  It applied the patches fine, but it didn't create the exe after saying there was a problem with one of the drivers.  I guess I'm back to trying the source/batch way.  All I want to do is remove the ok-left/right screen as my x-arcade doesn't respond during the game loading.  It works fine to select games in MA and then fine to play games, but not during loading.  Is there some text I could delete or change in my current config to remove then screen without patching or recompiling?

I get that error from time to time. delete your source files and your diffs and download FRESH COPIES and then try again, it'll work
Title: Re: hiscore diff (with no nag/white box removal)
Post by: alarsuel on September 24, 2010, 05:06:20 am
I have tried 3 times now to use the compiler and I get the same error each time.  In the compiler I apply 0139u1, then 0139u2, then 0139u3, then hi_139u3.  The first 3 take between 1 and 3 minutes each.  The hi patch to no time at all (only seems to be making 4 or 5 changes).  These 4 patches do not give any error messages.  Then I compile with auto-detect as the only check mark.  At the 25 min + mark (same time each time) I get the following error:
Compiling src/mame/video/magmax.c...
Converting src/mame/layout/nbmj8688.lay...
Compiling src/mame/drivers/nbmj8688.c...
Compiling src/mame/video/nbmj8688.c...
Compiling src/mame/drivers/nbmj8891.c...
src/mame/drivers/nbmj8891.c: In function 'void driver_init_pairsten(running_machine*)':
src/mame/drivers/nbmj8891.c:303: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [obj/windows/mame/mame/drivers/nbmj8891.o] Error 1
Finished!
0 Hours 25 Minutes and 15 Seconds Elapsed.

Anyone know what is going on?  Thanks for the help.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on September 25, 2010, 10:38:29 am
Are you using the latest MinGW?  An new version was released earlier this month.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on September 26, 2010, 06:54:11 am
http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=233910 (http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=233910)

Quote from: R. Belmont
It's random, and it occurs only on XP. The 100% way to cure it is to upgrade to Vista or 7. Seriously.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: alarsuel on September 26, 2010, 01:53:31 pm
Upgrading the cpu with Mame isn't really an option.  Does this occur if I use 0139u2 and coordinating hi.diff?  I could skip the 3rd upgrade.  Or can I compile on a different computer and transfer?  I thought I read that this doesn't work after version136 or something like that.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on September 26, 2010, 03:09:30 pm
Upgrading the cpu with Mame isn't really an option.  Does this occur if I use 0139u2 and coordinating hi.diff?  I could skip the 3rd upgrade.  Or can I compile on a different computer and transfer?  I thought I read that this doesn't work after version136 or something like that.

Yes, I would try compiling on a different computer. Do the standard build...that way it will work on the computer you will be running it from.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: alarsuel on September 26, 2010, 03:35:17 pm
By standard build, do you men without the ui or do you mean with any updates?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on September 26, 2010, 05:38:20 pm
By standard build, do you men without the ui or do you mean with any updates?

I meant with no optimizations. You can try it, I just found that when I compiled it on one computer, it wouldn't work on my cabs computer. May be something with me...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on October 18, 2010, 04:47:36 am
hiscore-139u4 out yet?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 18, 2010, 11:05:18 am
LOL...it's been out! 
You don't see it with the following at the bottom: Last Edit: October 14, 2010, 11:59:23 AM by MKChamp ?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on October 18, 2010, 02:26:29 pm
 :dunno Ahh I was looking at the end of the thread for the post...   :banghead:  Sorry
Title: Re: hiscore diff (with no nag/white box removal)
Post by: tkeahi on November 04, 2010, 07:50:27 pm
I used the 140 diff file and compiled 140 but still get the "Initializing" and "Loading" white boxes. All the other nag screens get skipped.

-Disregard, I see the patch got updated. I'll download it and try again.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 05, 2010, 01:19:10 am
I used the 140 diff file and compiled 140 but still get the "Initializing" and "Loading" white boxes. All the other nag screens get skipped.

-Disregard, I see the patch got updated. I'll download it and try again.

yea...I haven't been testing...at all...really...and another mamer told me that a screen was showing up, so I re-uploaded a new 140 patch. Sorry to waste your time...let me know if anything else seems lacking...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on November 08, 2010, 10:27:17 am
MKChamp, just wanted to let you know that your patch works brilliantly with MESS/MESSUI.

i just tried to compile MESS/MESSUI 0.140 (first time in my life). i applied hi_140.diff to MAME/MESS source tree, then compiled, and MESSUI doesn't have nag screens anymore.

awesome!! thanks a lot!!

p.s.: hi_140.diff doesn't apply to MAME 0.140u1 source tree, so i'm patiently waiting for hi_140u1.diff. ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 08, 2010, 11:37:01 pm
p.s.: hi_140.diff doesn't apply to MAME 0.140u1 source tree, so i'm patiently waiting for hi_140u1.diff. ;)

Wait no more. 140u1 is up and ready. There was quit a bit changed from 140 to 140u1...so let me know if everything still works!
...and thanks for hosting the files!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on November 09, 2010, 01:06:13 am
Wait no more. 140u1 is up and ready. There was quit a bit changed from 140 to 140u1...so let me know if everything still works!

many thanks!! i will check it out when i'm at home.

Quote
...and thanks for hosting the files!

no problem. it's a pleasure for me to host such a great project.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wweumina on November 13, 2010, 08:54:11 am
There does seem to be a problem with the 140u1 hi score diff.  I've compiled 140u1 and it works fine, but when adding the hi patch I now can't play Donkey Kong.  I get garbage over the high score tables and it seems to have deleted my high scores for the game.  Not game to try any other games after losing the DK high scores.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 13, 2010, 12:31:04 pm
I actually 'use' dkong when testing and it works fine for me. Try a clean compile.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on November 13, 2010, 10:38:22 pm
There does seem to be a problem with the 140u1 hi score diff.  I've compiled 140u1 and it works fine, but when adding the hi patch I now can't play Donkey Kong.  I get garbage over the high score tables and it seems to have deleted my high scores for the game.  Not game to try any other games after losing the DK high scores.



I just tried it and it works fine for me.  i even made a new hi score on mine and it stayed.


BTW I really like the new font they are using on the UI.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wweumina on November 14, 2010, 12:52:25 am
I actually 'use' dkong when testing and it works fine for me. Try a clean compile.
Yeah, sorry it was a strange one.  I deleted the dkong.hi file and it worked again.  I had to dig out my hex editor to put my scores back in but it's ok now. 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: yotsuya on November 26, 2010, 12:49:58 pm
I just did my own compile for the first time (yay), and I too had the same issue with Donkey Kong (and only DK). Deleting the hi file makes it work, but then it happens over again. Wierd.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: B2K24 on November 27, 2010, 02:48:13 am
Thank you very much MKChamp, Everything working great here. When u2 is released I will be happy to test anything you post.
Thank you so much for your time and work :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: B2K24 on December 09, 2010, 11:09:39 am
Many Thanks for having 140u2.diff posted so soon after the source release. Your work is very much appreciated :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on December 09, 2010, 03:40:24 pm
No need to thank me, I do it for myself  ;)
But you're welcome!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bitbytebit on December 18, 2010, 06:36:31 am
This patch when applied after the newest 140u2 hiscore patch will fix a bug that crept in which the machine memory was being freed before the hiscore callback read the hiscore to the games .hi file.  This probably is why some people had some games work and others not, or experienced random working and not.  I think in Windows the memory was still there, just technically freed but it was accessing memory that was freed to the operating system already (just lucky sometimes).  In Linux this turned out to always fail, at least on certain games, but not all of them.  Strange but this definitely is a bug that this patch fixes...

Code: [Select]
diff --git a/src/emu/machine.c b/src/emu/machine.c
index 6726451..dadcf47 100644
--- a/src/emu/machine.c
+++ b/src/emu/machine.c
@@ -332,10 +332,6 @@ void running_machine::start()
        crosshair_init(this);
        sound_init(this);
       
-  //MKCHAMP - INITIALIZING THE HISCORE ENGINE
-       if (!options_get_bool(&m_options, OPTION_DISABLE_HISCORE_PATCH))
-               hiscore_init(this);
-
        // initialize the debugger
        if ((debug_flags & DEBUG_FLAG_ENABLED) != 0)
                debugger_init(this);
@@ -361,6 +357,10 @@ void running_machine::start()
        // set up the cheat engine
        m_cheat = auto_alloc(this, cheat_manager(*this));
 
+       //MKCHAMP - INITIALIZING THE HISCORE ENGINE
+       if (!options_get_bool(&m_options, OPTION_DISABLE_HISCORE_PATCH))
+               hiscore_init(this);
+
        // disallow save state registrations starting here
        state_save_allow_registration(this, false);
 }


Here's the way I tracked it down, shows the backtrace of it trying to access the machine when it was already technically freed...
Code: [Select]
#0  0x000000000202703d in astring_c (str=0x80) at src/lib/util/astring.c:499
No locals.
#1  0x000000000040f280 in astring::operator char const* (this=0x80) at src/lib/util/astring.h:344
No locals.
#2  0x000000000040f69e in device_config::tag (this=0x0) at src/emu/devintrf.h:287
No locals.
#3  0x000000000040f6e6 in device_t::tag (this=0x6de6d90) at src/emu/devintrf.h:441
No locals.
#4  0x0000000000430dea in device_memory (device=0x6de6d90) at src/emu/dimemory.h:192
        intf = 0x0
#5  0x0000000000430e6a in device_get_space (device=0x6de6d90, spacenum=0) at src/emu/dimemory.h:204
No locals.
#6  0x0000000001e69af0 in copy_from_memory (machine=0x6d5c1e0, cpu=0, addr=20104, dest=0x6de6ff0 "\260\371B\a", num_bytes=4) at src/emu/hiscore.c:89
        i = 0
        targetspace = 0x6de6ff0
#7  0x0000000001e6a181 in hiscore_save (machine=0x6d5c1e0) at src/emu/hiscore.c:280
        data = 0x6de6ff0 "\260\371B\a"
        mem_range = 0x73b0f80
        filerr = FILERR_NONE
        f = 0x6d5d5c0
        fname = 0x6d58940
#8  0x0000000001e6a25d in hiscore_close (machine=...) at src/emu/hiscore.c:312
No locals.
#9  0x0000000001b75176 in running_machine::call_notifiers (this=0x6d5c1e0, which=MACHINE_NOTIFY_EXIT) at src/emu/machine.c:778
        cb = 0x73b0f60
#10 0x0000000001b74523 in running_machine::run (this=0x6d5c1e0, firstrun=true) at src/emu/machine.c:453
        error = 0
#11 0x0000000001b70cac in mame_execute (osd=..., options=0x6d38b50) at src/emu/mame.c:203
        gamename = {<_astring_base> = {text = 0x7fffffffe06c "pacman", alloclen = 52,
            smallbuf = "pacman\000\377\377\177\000\000.\257\003\002\000\000\000\000\264\032|\003\000\000\000\000`\227\324\006\000\000\000\000\255+|\003\000\000\000\000P\213\323\006\000\000\000"}, <No data fields>}
        driver = 0x2d87d40
        config = 0x6d6c010
        machine = 0x6d5c1e0
        firstgame = false
        firstrun = true
        exit_pending = false
        error = 0
#12 0x0000000001b0a3e4 in cli_execute (argc=2, argv=0x7fffffffe4a8, osd=..., osd_options=0x364ccc0) at src/emu/clifront.c:175
        gamename_option = 0x6d28f5c "pacman"
        driver = 0x2d87d40
        exename = {<_astring_base> = {text = 0x7fffffffe1dc "mame64", alloclen = 52,
            smallbuf = "mame64\000\004", '\000' <repeats 36 times>"\202, \303\336\367\377\177\000"}, <No data fields>}
        options = 0x6d38b50
        result = -1
        gamename = {<_astring_base> = {text = 0x7fffffffe21c "pacman", alloclen = 52,
            smallbuf = "pacman\000\000\000\000\000\000\350\213\264\367\377\177", '\000' <repeats 18 times>"\300, \343\377\377\377\177\000\000\340\243@\000\000\000\000"}, <No data fields>}
#13 0x00000000013183f6 in main (argc=2, argv=0x7fffffffe4a8) at src/osd/sdl/sdlmain.c:328
        osd = {<osd_interface> = {_vptr.osd_interface = 0x364d850, m_machine = 0x6d5c1e0}, <No data fields>}
        res = 0


This occured at least on pacman and tempest, donkey kong games seemed to somehow still work, guessing it's in how the machine for each game handled freeing the resources and probably some luck of memory being there even when already freed from mames ownership.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on December 19, 2010, 04:11:24 am
Thanks for the info. I re-uploaded 140u2 patch with the change...and they'll all have the move going forward.
Thanks again for the feedback!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Creeper on December 26, 2010, 04:00:55 am
Ok, I'm new to compiling so don't judge me. Here's what I'm doing:

I've taken a fresh Mame139 source and I'm trying to compile using Mr. Do's instructions. I took the hi_139.diff that is supplied in this thread and I put it in the source directory. I patched mame with the diff and it seemed to work fine. I used the makemame.bat to start the compile and it seemed to be working although it took under 1 minute which is suspicious, but the file size was still 40mb+ and looked healthy. I then took the new EXE and copied it into my master mame139 directory I've been using. I also added the hiscore.dat and hi directory. When running the exe, nothing happens, a cmd flashes but nothing else.

The odd thing is that when I compile without using the hi_139.diff, the compile is completely normal. Takes about 10-15 minutes and it runs perfectly in the master directory.

Did I do something wrong with the patching? I changed the patchmame.bat to:

set path=C:\MinGW\mingw64-w32\bin

patch -p0 -E <hi_139.diff

The set path is correct and as I said it seemed to work.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jahilton2002 on December 26, 2010, 07:35:12 am
is there a u3 release for this thx  :angel:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on December 26, 2010, 09:45:54 am
Ok, I'm new to compiling so don't judge me. Here's what I'm doing:

I've taken a fresh Mame139 source and I'm trying to compile using Mr. Do's instructions. I took the hi_139.diff that is supplied in this thread and I put it in the source directory. I patched mame with the diff and it seemed to work fine. I used the makemame.bat to start the compile and it seemed to be working although it took under 1 minute which is suspicious, but the file size was still 40mb+ and looked healthy. I then took the new EXE and copied it into my master mame139 directory I've been using. I also added the hiscore.dat and hi directory. When running the exe, nothing happens, a cmd flashes but nothing else.

The odd thing is that when I compile without using the hi_139.diff, the compile is completely normal. Takes about 10-15 minutes and it runs perfectly in the master directory.

Did I do something wrong with the patching? I changed the patchmame.bat to:

set path=C:\MinGW\mingw64-w32\bin

patch -p0 -E <hi_139.diff

The set path is correct and as I said it seemed to work.

You want to try HeadKaze's Compiler.  It's a piece of cake and does the commands for you.

http://www.headsoft.com.au/index.php?category=mame&page=mc64 (http://www.headsoft.com.au/index.php?category=mame&page=mc64)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jahilton2002 on December 26, 2010, 09:52:24 am
your a star  :notworthy: thx mate
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Creeper on December 26, 2010, 07:36:35 pm
Nice, yea Mame compiler worked much better but I still have a few questions and I'm not sure if this is for MKchamp or Headkaze.

I patched my Mame using the hi_139.diff and it worked fine, I compiled using Mame compiler and it also worked fine. I took the new EXE and dumped it into my Mame folder and started playing Donkey Kong Jr. I played for a bit and got a decent score, entered my name and what not and then hit reset to see if the score kept. It didn't. I exited to windows, and check the HI directory to see if there was anything and sure enough there was a dkongjr.hi file in there. What am I missing? It seems like its working but the game won't recognize it.

Also when I go to pause any game (mapped to keyboard F10) Mame crashes. Using the regular Mame.exe and it pauses fine.

Any help?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on December 26, 2010, 07:57:39 pm
By reset do you mean you hit the MAME Reset key or escaped out and went back in..  If you reset the game (I think it is F3) it wipes it clean.  Get a score and hit escape and go back in and it will save it.

Also, Ive never had an issue with pause but I have had MAME crash on sometimes lately after exiting some games, like BioMechanical Toy, it will crash and lock up my Front End and I have to power down the cabinet to get it back up.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Creeper on December 26, 2010, 08:15:15 pm
Yea, I've been using the soft reset. I just tried exiting and going back in, you are right it is working. Is there anyway to soft reset without losing your high scores?

Thanks for your help
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on December 26, 2010, 08:17:43 pm
Yea, I've been using the soft reset. I just tried exiting and going back in, you are right it is working. Is there anyway to soft reset without losing your high scores?

Thanks for your help

Hmm I dunno.  MKChamp would know if there is.  Its probably a diff you can add in the mix to change the softreset.  Id like to know too, Id like to use reset but just dont and never though to ask about it.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Creeper on December 26, 2010, 08:30:19 pm
After further research it would appear that anything to do with Mame admin buttons is freezing Mame for me. This includes just hitting tab on the keyboard to bring up the Mame menu.  :-\

Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on December 26, 2010, 10:18:23 pm
After further research it would appear that anything to do with Mame admin buttons is freezing Mame for me. This includes just hitting tab on the keyboard to bring up the Mame menu.  :-\



So if you hit TAB the thing locks up, how do you get out of MAME to fix it?  Do you have to restart the PC?  Do you have another PC you can try the MAME on to see if it is isolated to your PC?  What are the Specs of the MAME PC?  Are you using a front end?  What version MAME are you using?  140u2 hi?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Creeper on December 27, 2010, 12:18:51 am
When Mame crashes I get a windows error saying mame has stopped working, then it goes straight back to Maximus Arcade.

I just took a completely fresh Mame139 with the compiled mame.exe and nothing but a donkey kong rom. I ran it and it works perfect. I copied my old mame.ini file into the mame directory and tried to run it again but it instantly crashes. So I create a brand new mame.ini file and try that, works perfect. Long story short as soon as I enable direct draw for my ArcadeVga and d9800 Mame won't run, but it works perfect with the old copy of Mame.

Any thoughts?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kaptainsteve on January 01, 2011, 06:00:39 pm
Hello,

Can somebody please help?

What do you do when compiling mame and you get this;

 "mingw32-make' is not recognized as an internal or external command, operable program or batch file.

Any suggestions will be appreciated.

Thanks.

Steve
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Bonechip on January 01, 2011, 06:55:46 pm
Thank you MKChamp for keeping up with the Diff's.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 01, 2011, 09:04:28 pm
What do you do when compiling mame and you get this;

 "mingw32-make' is not recognized as an internal or external command, operable program or batch file.

it means, your MingW/bin folder is not set in your system paths. before compiling, make a .bat file with contents like this for patching:

Code: [Select]
set path=c:\MinGW\bin
patch -p0 -E < hi_141.diff

and for compiling:

Code: [Select]
set path=c:\MinGW\bin
make all

otherwise, read compiling guides.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nintendoid on January 09, 2011, 12:10:31 pm
hi I assume everyone is trying this on mame32... do you know if this works for just mame .141??? I too need the Donkey Kong save  :cry:

If someone has got this working please let me know...  :applaud:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on January 09, 2011, 12:46:03 pm
Works great with regular old MAME. Thats what I use.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 09, 2011, 12:57:21 pm
do you know if this works for just mame .141???

hiscore diff works with all MAME and MESS versions for which it's available - see the first page. namely - 0.108 to 0.141.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wonderalex on January 10, 2011, 11:58:10 pm
Ok - I give up.

I've been at this for 2 hours and I'm not getting anywhere.

I'm trying to re-compile MAME 135b (that's the MAME library I have) with the hiscore diff for my bro (who wants his hi scores - even if I cream him everytime I visit his place   8) ) .

I've tried Mr.Do's tutorial - the diff installs, but the compiling always ends in a few minutes with an error. When I try it again - it ends in seconds with an error.  I'd show you the code but I can't for some reason.

MAMECompiler64 1.17 and 1.18 won't even launch.

Help?

WonderAlex
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on January 11, 2011, 12:11:53 am
I dunno, why not try to get the latest sets, 140 or 141, 140u1 has the hacked Donkey Kong 2 on it...

Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 11, 2011, 12:14:18 am
I believe the b means binary...or exe. You need the s or source to compile your own. Read and get headkaze's mame compiler. Everyone says it makes it as easy as turning your computer on.


Edit: I might have misread. I thought u were saying you tried to compile starting with the binary. At any rate, read headkazes thread thoroughly.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Donkbaca on January 11, 2011, 12:18:47 am
Agreed  used headkaze's compiler. A chimp could use it, it's that easy
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wonderalex on January 11, 2011, 09:46:40 am
Yeah - I know 135s is the source (I'm not THAT daft  :laugh: ), and I've followed the instructions yet I still get an error. I guess I could use the latest build and continue to use the 135 library until I get it updated - I'll think about it.

The real weird thing is Headkaze's compiler will not work. It doesn't even start.

I'm going to try it again with both flavours of MAME on my workstation (with XP) at the office over lunch.

I'll report back.

WonderAlex
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Donkbaca on January 11, 2011, 11:45:53 am
You have to completely delete the mame program, then re-download the source and diffs and start from scratch.  Otherwise it won't work.  You don't have delete the roms or the samples or that stuff, but you need to delete the exe and the other stuff in the root file, and start from scratch to use the compiler. Otherwise the compiler gets confused.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Donkbaca on January 11, 2011, 11:51:26 am
and set the compiler optimize for "none"

You have to start fresh from scratch.  No big deal, it takes like a minute to re-download everything.  I would delete headkazes' compiler and the mame programs you have, then follow the compiler instructions from the start.  Re-downlad the source code, re-download the diffs and set the compile optimize for none. 

When I first tried to compile my own version, I had some fits too, but then headkaze replied to start from scratch and optimize for none and it worked like a charm.  It takes like an hour to compile
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Paul Olson on January 11, 2011, 01:07:47 pm
Does MAME compiler require .net? I know I installed a program recently that required .net 2, but I am not sure if this was it. I am at work, so I can't look it up right now.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 11, 2011, 01:24:01 pm
Does MAME compiler require .net? I know I installed a program recently that required .net 2, but I am not sure if this was it. I am at work, so I can't look it up right now.

no, mingw doesn't requre Microsoft .NET.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wonderalex on January 11, 2011, 03:24:00 pm
Ok - starting from scratch got headkaze's compiler to work - BUT- after following the instructions I get this error when I click GO:

Code: [Select]
Compiling Mame...
mingw32-make: *** No targets specified and no makefile found.  Stop.
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.

I'm using the 1.17 version of the compiler.

Any ideas?[/s]

EDIT: I must be blind -  I tried it again and I figured out what I did wrong.  I unzipped the source file into the correct directory - BUT I did not know/notice that the ZIP I downloaded from MAME dev contained another ZIP file!  :banghead: Once I unzipped that file and ran it again - everything worked as advertised.

WonderAlex
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on January 15, 2011, 09:28:30 am
Added a mirror of files at http://www.puttheglasseson.com/mkchamp/index.html (http://www.puttheglasseson.com/mkchamp/index.html)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Chris BEANS on January 16, 2011, 03:17:30 pm
Never compiled MAME before, followed the instructions in post 1 of this thread, and used Headkaze's compiler (again following the instructions on his download page).
Had it all done and dusted in around 45 minutes, now exactly as it says on the tin, I've got MameUI0.141 with no nag screens and high score support. Brilliant :D

Thanks loads to MKChamp and Headkaze, this will make my mame box so much cleaner. Chuffed :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: RVZ on January 17, 2011, 04:37:28 am
...I've got MameUI0.141 with no nag screens and high score support. Brilliant :D

Quick question... is it necessary to compile your own Mame if I just want to enable high scores?  It looks a bit complicated.  I don't really care about the nag screens, but I would like to save the high scores.  Can't I just create the "hi" folder and copy the .dat file?

Title: Re: hiscore diff (with no nag/white box removal)
Post by: newmanfamilyvlogs on January 17, 2011, 06:09:10 am
...I've got MameUI0.141 with no nag screens and high score support. Brilliant :D

Quick question... is it necessary to compile your own Mame if I just want to enable high scores?  It looks a bit complicated.  I don't really care about the nag screens, but I would like to save the high scores.  Can't I just create the "hi" folder and copy the .dat file?



There are several pre-built versions of mame floating around that have those already compiled in:
http://sourceforge.net/projects/groovyarcade/files/Mame_Windows_Builds/ (http://sourceforge.net/projects/groovyarcade/files/Mame_Windows_Builds/)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MagicManPA on January 17, 2011, 11:29:56 pm
I created the "hi" folder, but I'm still not seeing MAME save my hi scores. I'm running v140.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 18, 2011, 12:31:01 am
I created the "hi" folder, but I'm still not seeing MAME save my hi scores. I'm running v140.

official MAME doesn't support this, that's why this patch was introduced in the first place. you have to compile it yourself.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: RVZ on January 20, 2011, 01:36:32 am
...I've got MameUI0.141 with no nag screens and high score support. Brilliant :D

Quick question... is it necessary to compile your own Mame if I just want to enable high scores?  It looks a bit complicated.  I don't really care about the nag screens, but I would like to save the high scores.  Can't I just create the "hi" folder and copy the .dat file?



There are several pre-built versions of mame floating around that have those already compiled in:
http://sourceforge.net/projects/groovyarcade/files/Mame_Windows_Builds/ (http://sourceforge.net/projects/groovyarcade/files/Mame_Windows_Builds/)


I tried 2 different pre-built versions last night.  I installed Mame, then just replaced the mame.exe file.  Is that correct?  In HyperSpin, when I want to start a game, the screen just flashes and goes back to the menu.  I can start mame separately as well, but when I select a game, it flashes and goes back to mame.  Am I doing something wrong?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on January 20, 2011, 07:31:18 am
That sounds like it could be bad roms.

Try to run it without any frontend.  Do they work there?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: RVZ on January 20, 2011, 09:27:13 am
That sounds like it could be bad roms.

Try to run it without any frontend.  Do they work there?

Nope, but it works if I just use the original mame, without the pre-built exe file.  So the roms are fine.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Donkbaca on January 20, 2011, 11:44:59 am
You have to completely delete the old mame, the new one is getting confused, I would install it in a completely different place and point to all the folders in the old location.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MagicManPA on January 20, 2011, 01:13:06 pm
I tried to doing this w/HeadKaze's compiler following the steps listed on the download site, but it didn't work for me. I assume I did it wrong, but I have no idea.

I'm running v.140

I created the "hi" folder, but I'm still not seeing MAME save my hi scores. I'm running v140.

official MAME doesn't support this, that's why this patch was introduced in the first place. you have to compile it yourself.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Bonechip on January 24, 2011, 06:16:18 pm
MKChamp,

Your the best. Thanks again for keeping the High Score Diff up-to-date.

 :applaud:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 24, 2011, 10:37:31 pm
No problem. I'm far from the best, though!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: EvilDindon on January 26, 2011, 06:12:04 am
I tried to doing this w/HeadKaze's compiler following the steps listed on the download site, but it didn't work for me. I assume I did it wrong, but I have no idea.

I'm running v.140

I created the "hi" folder, but I'm still not seeing MAME save my hi scores. I'm running v140.

official MAME doesn't support this, that's why this patch was introduced in the first place. you have to compile it yourself.

Man, Do you have the hiscore.dat file in your mame folder ?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: milhouse on February 02, 2011, 11:27:11 pm
Anyone seen this issue?

I followed Mr. Do's instructions to the letter, and everything works up to and including patching the v141 source with hi_141.diff.  When I try to run MakeMame, though, the system can't find mingw32-make.

I've edited the bat file to update the path, but it doesn't look like mingw32-make is in the updated path (C:\MinGW\mingw64-w32\bin) or in anyMinGW subfolder for that matter.  I have now tried on two different machines.

Any thoughts?  Thanks.


Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on February 02, 2011, 11:47:14 pm
Try HeadKaze's MAME Compiler, you'll thank me tomorrow.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: milhouse on February 03, 2011, 12:00:19 am
Try HeadKaze's MAME Compiler, you'll thank me tomorrow.

Thanks.  It actually didn't work on one of the machines so i skipped it on the other, but now it seems to be working.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on February 09, 2011, 11:58:12 am
awesome. hi_141u1.diff seems to be compatible with MAME 0.141u2 source tree.

damn, i was still compiling u1...

p.s.: anyway, MKChamp, thanks for the great work!! ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: B2K24 on February 09, 2011, 07:54:57 pm
Yep we wait for hi_141u2.diff   ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 10, 2011, 01:33:51 am
awesome. hi_141u1.diff seems to be compatible with MAME 0.141u2 source tree.

damn, i was still compiling u1...

p.s.: anyway, MKChamp, thanks for the great work!! ;)

You guys are too quick for me :-)
I think it would have worked still. The only thing that failed was do to a space.
At any rate, 141u2 is ready. Download and go.
And thanks for hosting........

edit...I tried to be quck like yall...it doesn't work. I'll get it going and post back when it's all good. Whiskey..activated.

edit....Ok...all is good, Download and game it up.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on February 10, 2011, 04:55:13 am
edit....Ok...all is good, Download and game it up.

thanks a lot!! that was quick. ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: B2K24 on February 10, 2011, 11:15:58 am
Great work as always MKChamp, it's very much appreciated.
I don't even bother to run the newest build until your work is posted  ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on February 10, 2011, 11:41:51 am
I don't even bother to run the newest build until your work is posted  ;)

hehe, same here. i compile fresh u-release only to scan for missing ROMs/CHDs. then wait for MKChamp's diff to compile 'full-featured' MAME. ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: stuzza on February 15, 2011, 12:58:42 am
I'm trying to compile using headkazes compiler v1.2 and mame 141u2 with the highscore diffs.  I get this error at the end of the compile and have no mame.exe or anything?

Compiling src/osd/windows/video.c...
src/osd/windows/video.c:255: error: redefinition of 'void windows_osd_interface::update_hi(bool)'
src/osd/windows/video.c:233: error: 'virtual void windows_osd_interface::update_hi(bool)' previously defined here
make: *** [obj/windows/mame/osd/windows/video.o] Error 1
Finished!
0 Hours 42 Minutes and 34 Seconds Elapsed.

Any ideas what I'm doing wrong?

Update:  Okay, I managed to get 141 with no updates compiled correctly, obviously it is something to do with they way I'm applying all the updates..??
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Pitou on February 17, 2011, 11:25:05 pm
Hi MKChamp,

It seems that since 0.141 refreshrate doesn't work anymore.

I remember reporting this 2 or 3 years ago and you did fix it correctly.

Is it possible that the same problem is occuring again?

Thank you.

Pitou!

EDIT: After some extensive tests, I think I found the problem. Mame 139 works fine, but not since mame 140... It seems that the refreshrate parameter is not taken into account anymore.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kaptainsteve on March 01, 2011, 08:05:33 pm
Hello,

I ran into a couple problems compiling mame with Mr. Do's page.

1. He never says anything about a patch.exe file.  Unless I am mistaken, you need to put a patch.exe in the mamesrc folder and you must get that here;

http://sourceforge.net/projects/gnuwin32/files/patch/2.5.9-7/patch-2.5.9-7-bin.zip/download (http://sourceforge.net/projects/gnuwin32/files/patch/2.5.9-7/patch-2.5.9-7-bin.zip/download)

2. Where do you start w/the Diff patches?  For example, I am compiling 141_u3 and I've downloaded mame src 141.  do i start w/patch 140, then u1, u2 and finally u3 or do i start with 141_u1?

3. What do you do when you apply .diff patches and you get a previously detected patch message???  Do you click y or n?  

4.  It says on Mr. Do's page  to type in "Makemame"  but that does not work.  You must type in "Make" only.


Thanks, and any suggestions are welcome, please.

************

Think I figured it out.  With the update .diffs, you only use the hiscore update for the last one, and you use the regular mame updates for the previous.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WhereEaglesDare on March 01, 2011, 10:28:03 pm
Use HeadKaze's MAME Compiler.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Pitou on March 14, 2011, 09:52:52 pm
Hello,

Just compiled mame 141u3 with the high score diff, but the result exe crash. It seems to be worse with galaxian. It works about 1 out of 2.


Any idea?
Thanks!

Pitou!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on March 15, 2011, 05:53:55 pm
Any idea?

Try turning off any optimization.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Pitou on March 15, 2011, 07:05:14 pm
I have not turned on any optimization. I never had any problem before. Very strange...

I just uncompress the source, then apply the patch and do a make -j3

Anyway, I'll try again.

Pitou!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Pitou on March 15, 2011, 09:32:54 pm
I just found out that by setting this:

disable_nagscreen_patch   1

Of course I get the "white box", but I can now start Galaxian 100% of the time. No more crash.

Pitou!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: AMDman13 on March 24, 2011, 01:07:22 am
Trying to compile 0141 and having a problem. I was wondering if anyone has a suggestion? I am not a complete noob and have compiled sucsessfully in the past. I have tried both the old skool Mr Do's method and HeadKaze's MAME Compiler and have the exact same error message with both methods.. I have no problem applying the hi_141.diff (it patches just fine).  The error is upon compiling and happens within 10 secs or so. Here is what I am getting. ANy help would be greatly appreciated.  The c:\docum~1\KEITH is my documents folder. What is even causing it to look there for anything?  :dizzy:

 'C:\DOCUME~1\KEITH' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
make: *** [obj/windows/mame/emu/cpu/m68000/m68kmake.o] Error 1

C:\mamesrc>
Title: Re: hiscore diff (with no nag/white box removal)
Post by: B2K24 on March 26, 2011, 12:34:49 am
try any other drive and don't compile on C:\ 
If you have to buy a USB flash or use external. For me trying to compile on win 7 using C:\ is always problems because some directories have lock icons even with UAC disabled and logged on Admin account.

Thanks MKChamp for new diff same day as mamedev release source update. Thank you very much for your work :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: AMDman13 on March 29, 2011, 12:31:49 am
Quote
try any other drive and don't compile on C:\ 
If you have to buy a USB flash or use external. For me trying to compile on win 7 using C:\ is always problems because some directories have lock icons even with UAC disabled and logged on Admin account.

Thanks, I finally gave up and ran a compile using my laptop which has Vista as the OS and  everything worked fine. Working sweet! Thank you for the .diff!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: B2K24 on April 04, 2011, 12:39:38 am
THANK YOU for 0.142  \o/
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 04, 2011, 02:21:02 am
THANK YOU for 0.142  \o/

ditto. thanks a lot for the prompt update!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 04, 2011, 11:29:44 am
You're welcome, guys!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: hondadriver1981 on April 07, 2011, 10:27:31 pm
I have mame .141 set up with a lot of roms and most of them work.  Now I want to save the high scores so I have followed the instructions at the beginning and when I opened up the mame.exe that was created after entering the command "makemame" the roms give me the following error: "the selected game is missing one or more required Rom or CHD images".  I have compiled the .142, .141, and the .139 and neither of those compiled mames play any roms that I am able to play with the non-compiled mame I have now.  The only rom that does play is Donkey Kong and it does save the high score and that's what I want.  I have even used clrmame to rebuild and nothing.  Any help is appreciated.  Thank you!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 07, 2011, 11:10:04 pm
I have mame .141 set up with a lot of roms and most of them work.  Now I want to save the high scores so I have followed the instructions at the beginning and when I opened up the mame.exe that was created after entering the command "makemame" the roms give me the following error: "the selected game is missing one or more required Rom or CHD images".  I have compiled the .142, .141, and the .139 and neither of those compiled mames play any roms that I am able to play with the non-compiled mame I have now.  The only rom that does play is Donkey Kong and it does save the high score and that's what I want.  I have even used clrmame to rebuild and nothing.  Any help is appreciated.  Thank you!

you need to update your ROM and CHD set to current MAME version - 0.142. search for them in google.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: hondadriver1981 on April 09, 2011, 03:17:28 am
Thanks.  Everything is working now.  I have mame 142 and the roms working.  My high scores are saving and what's even better is that I don't have the warning screens anymore. 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: critter427 on April 13, 2011, 03:17:35 pm
I using mame 142 with the hiscore diff patch i cant get pc_smb to work it crashes mame but it works without the patch.
Thanks in advance
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 13, 2011, 04:12:38 pm
I using mame 142 with the hiscore diff patch i cant get pc_smb to work it crashes mame but it works without the patch.

i just checked, pc_smb works just fine on MAME 0.142 with hi-score patch.

anyway, hi-score patch has nothing to do with bugs in MAME. check mametesters.org.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: critter427 on April 19, 2011, 08:21:05 pm
I checked but dont see anything. If i disable the hiscore patch it works just fine i cant figure out why.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 20, 2011, 12:51:19 am
I checked but dont see anything. If i disable the hiscore patch it works just fine i cant figure out why.

Compile it on the machine it is going to run on....or compile it with no optimization and see if that works. I used to compile with optimized for the cpu on the mame cab (compiled on a dual cpu pc) and one day it started crashing. I didn't want to spend any additional time figuring out why...apparently 99.9 percent of the people using the patch are good with it. I now compile it on the same dual core pc with no optimization and it no longer crashes.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: B2K24 on April 20, 2011, 01:00:21 am
Thank you for 142u1 :D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 20, 2011, 01:31:50 am
Thank you for 142u1 :D

Stop thanking me@!@
 ;D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: walshy11 on April 21, 2011, 03:31:14 am
Thanks for this (yes, another thanks!)

An issue though, while the no nag/white box removal is working fine, the hi scores are not.

I am using 141u3 (I think, one before 142..), have complied using the diff, have the hiscore.dat file in the mame folder, and have created a hi folder.
Hi scores are getting saved in the hi folder (file being created named <game>.hi), but when displaying them in a frontend (I use MaLa), it says 'No info found in hi/<game>.txt' | 'HitoText info: hi/<game>.txt'
Is there someone I have missed?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 21, 2011, 04:10:42 am
but when displaying them in a frontend (I use MaLa), it says 'No info found in hi/<game>.txt' | 'HitoText info: hi/<game>.txt'

blame your frontend. it has nothing to do with mame or hi-score diff.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: walshy11 on April 21, 2011, 07:22:08 am
but when displaying them in a frontend (I use MaLa), it says 'No info found in hi/<game>.txt' | 'HitoText info: hi/<game>.txt'

blame your frontend. it has nothing to do with mame or hi-score diff.

Thanks, Ill have a look around in the frontend forums
Title: Re: hiscore diff (with no nag/white box removal)
Post by: groo on April 30, 2011, 11:17:51 am
First of all, thank you for the excelent job.

I've just compiled mame with the patch and, to test it, I launched "galaga":

Code: [Select]
mame -rompath d:\mame\rom -hiscore_directory hi galaga

I'played it untill to broke the record, wrote my name there, waited to the next Hi-Score screens and exited with ESC.

I looked in the "hi" folder and there was nothing there.

What have I done wrong?

{SOLVED}
Sorry, I figured it out. It was missing the Hiscore.dat file
{/SOLVED}

Tnx in advance!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Leezer on April 30, 2011, 03:58:42 pm
hey mkchamp,

i recently discovered that the hiscore.dat only saves scores with games that only has the data in  cpu#0

which is ok for 95% of games but it will not work for games that use other cpu's with data in them, see kingofb (king of boxer) in the hiscore.dat

;********kingobox.c
kingofb:
0:C22A:04:00:05
1:8048:8C:00:12

see what i mean the hiscore.dat will not save cpu#1 data (which is the hiscore table data, cpu#0 is the top score data)

anything you can do about it ?

it used to work when mame supported the .dat file.

cheers,
Lee
 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: schoeps on May 02, 2011, 10:47:36 pm
Thank you for 142u1 :D

Stop thanking me@!@
 ;D

NO! THANKS!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: B2K24 on May 16, 2011, 04:31:28 pm
hey mkchamp,

i recently discovered that the hiscore.dat only saves scores with games that only has the data in  cpu#0

which is ok for 95% of games but it will not work for games that use other cpu's with data in them, see kingofb (king of boxer) in the hiscore.dat

;********kingobox.c
kingofb:
0:C22A:04:00:05
1:8048:8C:00:12

see what i mean the hiscore.dat will not save cpu#1 data (which is the hiscore table data, cpu#0 is the top score data)

anything you can do about it ?

it used to work when mame supported the .dat file.

cheers,
Lee
 

LOL the default Hi score is 305K and you only get 6K per fight. Sorry, I'm not playing this crappy game for that long to test if what you're saying is true.  :laugh:
Do you happen to have a complete listing of games that has this cpu#1 data?
Title: Re: hiscore diff 142u4
Post by: llaffer on May 28, 2011, 05:06:35 pm
I've been able to compile a working 142u4 base.  When I apply the hiscore diff for 142u4 then compile, everything crashes on me when I try to launch a game (in both MAME64 and MAMEUI64).

Has anyone else had this problem as well?

Do you need any information from me for debugging?

Thanks.
Title: Re: hiscore diff 142u4
Post by: abelenki on May 28, 2011, 09:31:04 pm
I've been able to compile a working 142u4 base.  When I apply the hiscore diff for 142u4 then compile, everything crashes on me when I try to launch a game (in both MAME64 and MAMEUI64).

did you compile using new tools?:

http://mamedev.org/tools/ (http://mamedev.org/tools/)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Gray_Area on May 29, 2011, 05:09:21 am
did you compile using new tools?

Do dev folk always happen to be in a cmd environment when they're compiling? That is, why not use an app like Headkaze's compiler?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on May 29, 2011, 05:16:17 am
Do dev folk always happen to be in a cmd environment when they're compiling? That is, why not use an app like Headkaze's compiler?

because it's outdated and not needed at all. and u4 should be compiled with new MingW.

p.s.: if you can't use command line, you should better quit compiling and try something easier, like Speak & Spell, lol.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: DeLuSioNal29 on May 29, 2011, 06:14:42 pm
I just compiled it using Headkaze's MAME Compiler last night without any issues. (v1.22 latest release). Nags are removed and hi scores work.

As for the use of Headkaze's compiler. I think it's great that he contributed to the MAME community with this FREE front end. It's hassle free and is constantly updated by him. According to his website, "This is a Front End to make compiling MAME/Mame64 and apply diff patches as easy as possible.". I wholeheartedly agree (I've compiled using command line as well, and am well versed)

Also, to say the following statement is ignorant:
"p.s.: if you can't use command line, you should better quit compiling and try something easier, like Speak & Spell, lol."

Not everyone is good at something. What may be easy for someone may be difficult for someone else. I may be able to shoot a target half a mile away with a .50 cal with my eyes closed, but the average person may want to simply use a laser guided missile to accomplish the same task. Why not choose the easier way?  To each his own.

DeLuSioNaL29
Title: Re: hiscore diff 142u4
Post by: llaffer on May 29, 2011, 07:12:29 pm
I've been able to compile a working 142u4 base.  When I apply the hiscore diff for 142u4 then compile, everything crashes on me when I try to launch a game (in both MAME64 and MAMEUI64).

did you compile using new tools?:

http://mamedev.org/tools/ (http://mamedev.org/tools/)

Ugh.  Why does everyone ask that first?  

YES!  Why?  Because if I didn't, the base wouldn't compile either.


(and this editor sucks, it's dropping the text off the bottom so I can't see what I'm typing).

So, yes.  I have a base MAME64 working.  I have MAMEUI64 working.  The hi_142u4.diff compiles successfully, but crashes on me when I try to run a game.

Title: Re: hiscore diff 142u4
Post by: abelenki on May 29, 2011, 09:35:46 pm
So, yes.  I have a base MAME64 working.  I have MAMEUI64 working.  The hi_142u4.diff compiles successfully, but crashes on me when I try to run a game.

MAME64 and hi_142u4.diff compile and work fine for everyone else - no crashes.

i beleive, you didn't updated your MingW. it was updated when u4 was released to include new tools and headers.
Title: Re: hiscore diff 142u4
Post by: llaffer on May 29, 2011, 10:54:50 pm
So, yes.  I have a base MAME64 working.  I have MAMEUI64 working.  The hi_142u4.diff compiles successfully, but crashes on me when I try to run a game.

MAME64 and hi_142u4.diff compile and work fine for everyone else - no crashes.

i beleive, you didn't updated your MingW. it was updated when u4 was released to include new tools and headers.

I did the following to double check if I did or did not install the latest mingw:

Renamed the existing mingw64-w64 to mingw64-w64x.
Downloaded the mingw-mame-w64-20110519.exe installer from the MAME page, and install it so the new mingw64-w64 is placed along side mingw64-w64x.

I then used a utility called CSDiff that allows me to do a diff compare of entire directory structures.  I ran the comparison between the two mingw directories, and the result was: 100% identicle.

I had installed the latest version if mingw on 5-24 (based on timestamp of the directory).
Title: Re: hiscore diff 142u4
Post by: abelenki on May 29, 2011, 11:28:13 pm
I had installed the latest version if mingw on 5-24 (based on timestamp of the directory).

then it might be something to do with the latest HLSL stuff introduced in u4. try hlsl_enable set to 0 in mame.ini.
Title: Re: hiscore diff 142u4
Post by: Ond on May 30, 2011, 12:40:18 am
I've been able to compile a working 142u4 base.  When I apply the hiscore diff for 142u4 then compile, everything crashes on me when I try to launch a game (in both MAME64 and MAMEUI64).

Has anyone else had this problem as well?

Do you need any information from me for debugging?

Thanks.

I had this problem too, using Headkaze's UI, 142u4 with hiscore diff (32 bit using latest mingw), compiles fine but crashes when trying to launch a game.  I'm just launching from command line no FE or anything.  Think I'll try the hlsl_enable thing and then 142u3 with hiscore diff instead and see what happens.
Title: Re: hiscore diff 142u4
Post by: llaffer on May 30, 2011, 02:05:59 am
I had installed the latest version if mingw on 5-24 (based on timestamp of the directory).

then it might be something to do with the latest HLSL stuff introduced in u4. try hlsl_enable set to 0 in mame.ini.

HLSL works fine in base 142u4.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ond on May 30, 2011, 03:12:51 pm
I compiled 142u4 with hiscore diff from command line and it works fine. I can't seem to do it with Headkaze's compiler but I'm pretty sure that's just me.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 31, 2011, 02:10:25 am
I think I have said this before...but try compiling the exe on the machine you are running it from..ie. cab. Or compile it without any optimizations if you compile it in a different environment. I couldn't imagine this has anything to do with the hiscore patch...but maybe it does...or maybe it's due to the fact that most people don't normally compile MAME.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on May 31, 2011, 09:52:18 am
Or compile it without any optimizations if you compile it in a different environment.

this one is VITAL. DON'T USE any optimizations. they have almost zero effect, but give headaches to current MAME stability.

you can get REAL improovement, if you use 64-bit MAME on 64-bit OS.

here are some dev quotes which may prevent you from using optimizations:

Quote
[Aaron Giles]

Stop messing with the ARCHOPTS. It is silly on 64-bit. 64-bit only started showing up with the Core line of chips anyways, so it is by default already optimized for them.

Quote
[R.Belmont]

FACT: Messing with optimizer flags does not make a single game playable on systems where it wasn't before.
FACT: Messing with optimizer flags is PROVEN to cause bugs (including gameplay logic errors) in games that don't have them on a normal MAME compile.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: B2K24 on June 01, 2011, 03:31:31 pm
The patch is 100% fine or abelenki & I would have probably posted on the first day of release that it wasn't  ;D
You can use this patch for MAME or MESS with absolutely 0 problems, it has been 100% confirmed.

For the people with crashing issues in addition to following the advice of abelenki and MKChamp, try executing -createconfig which will create a fresh mame.ini

Why people insist on install software to perform a simple compile operation is beyond me.
What exactly is so hard about keeping mingw and a mamesrc directory that has the source extracted to it plus, all the diffs on the same HDD?

If you can't or don't know how to use command prompt then create a .bat file with the coded contents in it.
Change drive H:\ to whatever drive you use.
Also for a faster compile replace make all with make all -j5 PTR64=1
(the number after j is +1 how many cores your CPU has)


Code: [Select]
set path=H:\mingw\mingw64-w64\bin

patch -p0 -E < 0142u1.diff

patch -p0 -E < 0142u2.diff

patch -p0 -E < 0142u3.diff

patch -p0 -E < 0142u4.diff

patch -p0 -E < hi_142u4.diff

make all
Title: Re: hiscore diff (with no nag/white box removal)
Post by: DeLuSioNal29 on June 05, 2011, 11:01:56 pm
I figured I'd add my 2 cents as well...  I recently reported that it "worked fine" for me (compiling using Headkaze's MAME compiler 1.22).  However, although it ran fine on the machine I compiled it on (Phenom X4 AMD64) it failed on the actual arcade machine (AMD64 X2).  I then tried compiling it on the actual arcade machine and that too failed.  I was using Optimizations... (AMD64 are installed on all 3 machines I am compiling for)

So, I tried unchecking the "optimize for AMD64" option and guess what?  It worked!

The moral of the story, optimizing it may work for some setups, but not all.  By choosing "none" you are guaranteeing that it runs like it should.  And to be honest, I can't tell the difference between my older MAME and this new one when it comes to speed.  My old MAME was compiled using the AMD64 optimization.

Just thought I'd share.

DeLuSioNaL29
Title: Re: hiscore diff (with no nag/white box removal)
Post by: DeLuSioNal29 on June 05, 2011, 11:05:30 pm
And while I'm here... I can't for the life of me figure out why Mr. Do's Generic MAME artwork hack (the BYOAC user:  Mr. Do, not the game) isn't working with these newer MAME versions.  The last time I tried his hack was with MAME .119 and it worked fine.  Any thoughts?

(http://www.mameworld.info/mrdo/page_img/generic_vertical.png)

His hack can be found here:
http://www.mameworld.info/mrdo/mame_artwork_generic.html (http://www.mameworld.info/mrdo/mame_artwork_generic.html)

To give more info, I apply his patch AFTER I update MAME with all the diff patches, including the hi score no nag patch.

DeLuSioNaL29


Title: Re: hiscore diff (with no nag/white box removal)
Post by: kmhamel on June 16, 2011, 01:30:26 pm
It seems I've located a small problem with the no-nag patch when using the cocktail mode (split screen). The cocktail mode won't be active when I restart mame (142u5). The mame devs said to check the game config file and make sure that view="cocktail" is in the video item line. It seem that the no-nag section of the patch takes this item out of the file.

Here's what I've done so far, I copied this section from the hyperspin fourm:

I compiled mame without the no-nag patch and the view="cocktail" stayed in the game cfg file.

I used Rampage as the test game. I restarted mame and rampage three times and everything worked fine...split screen stayed and the view="cocktail stayed in the rampage cfg file.

****************************

When I compiled mame with the no-nag patch the split screen is removed.

1) Start mame and rampage set cocktail mode and split screen shows up.
esc from game and mame and check rampage cfg file and the view="coctail" is there.
2) Start mame and rampage a second time, rampage comes up with a split screen. ESC from rampage and mame and check rampage cfg file and the view="cocktail" is gone.
3) Start mame and rampage a third time and rampage comes up without the split screen.

**********************

I then went into the mame.ini file and disabled the no-nag feature leaving the hi-score and no-loading features active.

I again went through the three steps above and everything went fine. After step 3, rampage still came up with a split screen and the view="cocktail" stayed in the cfg file.

***********************

I check this with three arcades, two cocktail and one upright, and they all did the same thing.

Seems that the problem lays in the no-nag feature. Next is to talk to the guy who wrote the patch.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 16, 2011, 04:39:17 pm
Seems that the problem lays in the no-nag feature. Next is to talk to the guy who wrote the patch.

You just did :-)
Nice catch and more importantly, thanks for describing the steps necessary to reproduce it.
I've re-uploaded the 142u5 patch with the change in it to fix this. It will be in there from that version on.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kmhamel on June 17, 2011, 10:36:29 am
Thanks....That was the fast fix.  :applaud:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 19, 2011, 08:36:48 pm
Quote
142u6 Right-Click & Save As

oh man, that was FAST. thanks a lot!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 20, 2011, 11:36:17 am
oh man, that was FAST. thanks a lot!!

No problem! This one didn't take any changes :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shrunkenmaster on June 20, 2011, 04:38:41 pm
I'm at a loss here. I've done this before without any hassle, but right now I'm  :banghead: ...

Trying to compile mame0137, just applying the 0137 hi diff, using the 1.22 compiler, not using any compile options.

This is the last part of blurb I'm getting:

src/osd/windows/d3d9intf.c: In function 'HRESULT d3d_device_set_texture_stage_state(d3d_device*, DWORD, D3DTEXTURESTAGESTATETYPE, DWORD)':
Finished!
1 Hours 7 Minutes and 29 Seconds Elapsed.
src/osd/windows/d3d9intf.c:427: error: 'D3DTSS_ADDRESSU' was not declared in this scope
src/osd/windows/d3d9intf.c:429: error: 'D3DTSS_ADDRESSV' was not declared in this scope
src/osd/windows/d3d9intf.c:431: error: 'D3DTSS_BORDERCOLOR' was not declared in this scope
src/osd/windows/d3d9intf.c:433: error: 'D3DTSS_MAGFILTER' was not declared in this scope
src/osd/windows/d3d9intf.c:435: error: 'D3DTSS_MINFILTER' was not declared in this scope
src/osd/windows/d3d9intf.c:437: error: 'D3DTSS_MIPFILTER' was not declared in this scope
src/osd/windows/d3d9intf.c:439: error: 'D3DTSS_MIPMAPLODBIAS' was not declared in this scope
src/osd/windows/d3d9intf.c:441: error: 'D3DTSS_MAXMIPLEVEL' was not declared in this scope
src/osd/windows/d3d9intf.c:443: error: 'D3DTSS_MAXANISOTROPY' was not declared in this scope
make: *** [obj/windows/mame/osd/windows/d3d9intf.o] Error 1

PC is a Core2 1.86, running XP pro SP3

Any ideas? Let me know if you need any more info.


Title: Re: hiscore diff (with no nag/white box removal)
Post by: jimmy2x2x on June 20, 2011, 04:44:14 pm
I'm at a loss here. I've done this before without any hassle, but right now I'm  :banghead: ...

Trying to compile mame0137, just applying the 0137 hi diff, using the 1.22 compiler, not using any compile options.

This is the last part of blurb I'm getting:

src/osd/windows/d3d9intf.c: In function 'HRESULT d3d_device_set_texture_stage_state(d3d_device*, DWORD, D3DTEXTURESTAGESTATETYPE, DWORD)':
Finished!
1 Hours 7 Minutes and 29 Seconds Elapsed.
src/osd/windows/d3d9intf.c:427: error: 'D3DTSS_ADDRESSU' was not declared in this scope
src/osd/windows/d3d9intf.c:429: error: 'D3DTSS_ADDRESSV' was not declared in this scope
src/osd/windows/d3d9intf.c:431: error: 'D3DTSS_BORDERCOLOR' was not declared in this scope
src/osd/windows/d3d9intf.c:433: error: 'D3DTSS_MAGFILTER' was not declared in this scope
src/osd/windows/d3d9intf.c:435: error: 'D3DTSS_MINFILTER' was not declared in this scope
src/osd/windows/d3d9intf.c:437: error: 'D3DTSS_MIPFILTER' was not declared in this scope
src/osd/windows/d3d9intf.c:439: error: 'D3DTSS_MIPMAPLODBIAS' was not declared in this scope
src/osd/windows/d3d9intf.c:441: error: 'D3DTSS_MAXMIPLEVEL' was not declared in this scope
src/osd/windows/d3d9intf.c:443: error: 'D3DTSS_MAXANISOTROPY' was not declared in this scope
make: *** [obj/windows/mame/osd/windows/d3d9intf.o] Error 1

PC is a Core2 1.86.

Any ideas? Let me know if you need any more info.




I think you have the wrong version of the compiling tools, I ran into something similar last week.

mingw-mame-20110519.exe (0.142u4 - present)
mingw-mame-20100102.exe (0.136u1 - 0.142u3)

DL links here http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=207730&page=0&view=collapsed&sb=5&o=&fpart=1&vc=1&new=1259743662 (http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=207730&page=0&view=collapsed&sb=5&o=&fpart=1&vc=1&new=1259743662)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shrunkenmaster on June 20, 2011, 05:26:27 pm
Thanks jimmy,
I've downloaded this:
mingw-mame-20100102.exe (0.136u1 - 0.142u3)

When I run it, I just get the two folders (64/32, 64/64) - what do I do with these?

ps. Go easy on me, I'm a Mac user :)

Title: Re: hiscore diff (with no nag/white box removal)
Post by: jimmy2x2x on June 20, 2011, 05:48:32 pm
This is what I followed and it works great http://mrdo.mameworld.info/compile.html (http://mrdo.mameworld.info/compile.html)

Title: Re: hiscore diff (with no nag/white box removal)
Post by: shrunkenmaster on June 20, 2011, 05:56:37 pm
Cool, will look at it tomorrow as I've been up since 5am...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shrunkenmaster on June 22, 2011, 02:07:25 pm
Finally got this to work (i think), however...

When I click on the mame.exe I get the (infamous) windows blue screen, with an error "nv4_disp.dll".

I've looked this up and it appears to be video-related. Tried uninstalling/reinstalling the video driver (Nvidia Quatro FX 550), no luck.

Any ideas? Maybe I should now be posting in the software section.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tafoid on June 22, 2011, 04:08:04 pm
Finally got this to work (i think), however...

When I click on the mame.exe I get the (infamous) windows blue screen, with an error "nv4_disp.dll".

I've looked this up and it appears to be video-related. Tried uninstalling/reinstalling the video driver (Nvidia Quatro FX 550), no luck.

Any ideas? Maybe I should now be posting in the software section.


Latest video drivers do not like the advancement that MAME is doing in recent builds (0.142u4+ HLSL).  I'd suggest visiting the Nvidia site, select your video card and choose a driver that is earlier than than recent.  Many Nvidia owners are getting similar BSOD issues until they rollback their driver.  I, for example, am using one from late 2009 for my on-board GeForce 6100 chipset and MAME is happy now.  It's hopefully an issue that Nvidia will address soon.

http://www.nvidia.com/Download/Find.aspx?lang=en-us (http://www.nvidia.com/Download/Find.aspx?lang=en-us)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shrunkenmaster on June 22, 2011, 04:40:45 pm
Thanks Tafoid,
Using an earlier driver and now I can run the Mame binary. However, I still cant compile a version with the hi_diff patch.

I'm using the Headcaze compiler (1.20), trying to compile mame 0137 (with just the hi_0137 patch).

The latest error I'm getting is shown on the attached pic.

Three days of this, getting bored now... :angry:

Title: Re: hiscore diff (with no nag/white box removal)
Post by: jimmy2x2x on June 22, 2011, 05:06:21 pm
Dont use HeadKaze compiler - this has the latest version of mingw, which is incompatible with the version you are trying to compile.

1] delete everything you have (source, tools, compilers - the lot)

2] create a mamesrc folder in c:\ (so its c:\mamesrc)

3] unpack the mame source code to this folder

4] get this version of the compiler tools http://www.mameworld.info/misc/mingw-mame-20100102.exe (http://www.mameworld.info/misc/mingw-mame-20100102.exe)

5] unpack that to c:\mingw

6] get the correct version of the hiscore patch and place it in c:\mamesrc

7] Open a command prompt and navigate to c:\mamesrc

8] type these commands into the prompt:

SET Path=c:\mingw\mingw64-w64\bin
patch -p0 -E <xxxxx.xxx (xxxxx.xxx = whatever your hiscore patch was called)
make

This will patch and compile 0.137 for a 64 bit system, for a 32 bit compile change the path in 8] to the mingw32 path.

This is all from memory, but im pretty sure it should work.



Title: Re: hiscore diff (with no nag/white box removal)
Post by: yotsuya on June 22, 2011, 05:58:26 pm
Interestingly enough, I can't compile any new versions of Mame that use HLSL. It errors out during compile, referencing what appear to be my video drivers.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shrunkenmaster on June 23, 2011, 02:25:58 am
Thank again Jimmy,

I've already tried that method but that was before I got my video drivers working properly.

I'll give that another try tonight.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: shrunkenmaster on June 24, 2011, 06:10:22 am
Just tried your method again jimmy, worked first time! Thanks for running through that, you made it even simpler than Mr Do's instructions.  :applaud:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jimmy2x2x on June 24, 2011, 08:35:19 am
np
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bclinton on July 12, 2011, 07:46:32 pm
After a few tries I got it to work. I patched mameui and the hiscore.diff update. All seems to work fine. I was wondering why all the patching is needed. Why wouldnt these additions simply be added to the regular version of mame? Is it a copyright issue?

Anyways, I appreciate all the help I got from here by reading all the posts.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Woodshop Flunky on July 19, 2011, 08:26:16 pm
Thanks for your post Jimmy.  I had the same compile errors as Shrunkenmaster and your instructions worked great!  :applaud:

And thanks to everyone else that contributed to this thread.  I was able to compile very easily, and get rid of the nag screens.  :cheers:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: mrclean on July 25, 2011, 11:43:48 am
I was able to compile a variety of older mame versions and apply these .diffs however I'm running into a variety of problems :

In Command Prompt I'm getting the following error : " 'patch' is not recognized as an internal or external command, operable program batch file.

Using Mr. Do's Compiling MAME for Dummies the .bat files of "patch mame, and make mame" don't seem to work as I click on them they quickly exit.

In addition If I try to use HeadKazes Compiler and I apparently get an error that the .diff can't even be found when I Downloaded it and placed it in it's respective folder.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Nephasth on July 26, 2011, 01:34:40 pm
I tried this the other day following Mr. Do's instructions and those of Jimmy2x2x. I can patch the source (.135), but I get a few different errors when trying to compile. It compiled the longest before getting an error when I first tried Jimmy's technique. It became late and I gave up on it. I'll try giving it another go next week.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Generic Eric on August 01, 2011, 10:56:56 pm
I compiled successfully for .143 with the u1 and u2 diffs as well as the hi_143 diff.  I wasn't successful until moved the src files up a directory if that makes since.  Some how in the unzipping, I unzipped into an extra  143 source folder.  After that it was just fine.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: Avrus on September 04, 2011, 07:32:04 pm
Running into a bizarre issue with 143.  If I patch 143 or 143u4 with the hiscore patch (no errors) and try and then while in mame right to pause or use tab to hit the config window mame crashes.  If I load 143 unpatched it runs fine and all functions are available.

Edit: I just noticed my hiscore.dat file is from last year and the latest one is from January of this year.  Going to update that and recompile see if it makes a difference.

Edit2: Does not make a difference.  Going to try compiling without any optimizations in place.

Edit3: Removing all optimizations has resolved the issue.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Justin on October 20, 2011, 11:03:31 pm
Hello all... loooooong mame builder here, early member.  Coming back lately for my newest cab upgrade!

Anyhow, I am trying to compile a custom version of MAME (non-GUI) based on 0.132
Having several errors/issues, given up after 2 hours...

I now re-read everything, and I conclude 0.132 is not supported under this tutorial -  is this correct?  I interpret 0.136 or newer is what this tutorial is for?

If anyone could provide assistance for a custom 0.132 compile with non-nag that would be much appreciated.

EDIT:  nvm, I think I figured it out...  ended up grabbing an older version of mingw (mingw-mame-20070810.exe) and this seems to be compiling just fine...!

EDIT 2:  Spoke too soon lol...   it started comiling fine, and about 8 mins into it, I got a large number of errors and then it halted... all seemed to be related to DirectDraw.  here are the last few:
Code: [Select]
src/osd/windows/drawdd.c:1211: error: 'DDENUM_ATTACHEDSECONDARYDEVICES' undeclar
ed (first use in this function)
src/osd/windows/drawdd.c:1212: error: 'DD_OK' undeclared (first use in this func
tion)
src/osd/windows/drawdd.c: At top level:
src/osd/windows/drawdd.c:1230: error: expected ')' before 'desc'
src/osd/windows/drawdd.c: In function 'pick_best_mode':
src/osd/windows/drawdd.c:1333: warning: implicit declaration of function 'IDirec
tDraw7_EnumDisplayModes'
src/osd/windows/drawdd.c:1333: error: 'dd_info' has no member named 'ddraw'
src/osd/windows/drawdd.c:1333: error: 'DDEDM_REFRESHRATES' undeclared (first use
 in this function)
src/osd/windows/drawdd.c:1333: error: 'enum_modes_callback' undeclared (first us
e in this function)
src/osd/windows/drawdd.c:1334: error: 'DD_OK' undeclared (first use in this func
tion)
mingw32-make: *** [obj/windows/mame/osd/windows/drawdd.o] Error 1

Giving up on this -  anyone knowledgeable enough to enlighten me please?  

EDIT 3: Deleted all files, started from scratch, compiled in 13 mins!  Thanks for your wonderful work with this, it is my first MAME compile after 20 years of emulation!!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ShaggyNerd on November 19, 2011, 08:55:22 am
I compiled MAME 0.144 but still no nag screen removal. What do I do?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: mamejay on November 27, 2011, 08:27:47 pm
Hi everyone,

Does anyone know where I can get an older dat file?

Looking for 0.103
I use this version as I find it works best on older hardware.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Havok on November 27, 2011, 09:34:31 pm
I compiled MAME 0.144 but still no nag screen removal. What do I do?

Sounds like you didn't apply the hiscore.diff before compiling...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ShaggyNerd on November 28, 2011, 04:19:34 pm
I compiled MAME 0.144 but still no nag screen removal. What do I do?

Sounds like you didn't apply the hiscore.diff before compiling...
I said this wrong. I did apply the diff. I got those info screens to disappear, but I still get those messages that say that certain games have video and/or sound emulation problems. Anything I can do about those?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Havok on November 28, 2011, 04:43:02 pm
I thought that got disabled too with the hiscore diff. Perhaps not. Try editing your mame.ini file. Look for the following:

# CORE MISC OPTIONS

and change the skip_gameinfo to 1.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ShaggyNerd on November 28, 2011, 04:56:58 pm
I thought that got disabled too with the hiscore diff. Perhaps not. Try editing your mame.ini file. Look for the following:

# CORE MISC OPTIONS

and change the skip_gameinfo to 1.
It was already set to 1. It gets rid of those info screens, but whenever I load up certain games, I still get a little yellow box that says, "There are known problems with this game." How do I get rid of those?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: harveybirdman on December 17, 2011, 09:06:38 pm
just a quick word of advice for morons like me.  If you're going to compile MAME make sure you have the source version and NOT one of the binaries...

The source download is in the first table on Mamedev's download page...

If you're new to Mame like me you might have failed to extract it from this source the first time because.... "duh it don't have an application for me to double click?!?!?"

I now know the real reason, and you will too. I'm literally dancing now that I have a MAME version with no Nag screens.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: herg on December 28, 2011, 09:28:11 pm
I spent a little time with Gorf, and I've been able to get it working.  It requires a write to a particular I/O address before each write to the protected ram where hiscores are located.  Here's a diff file that I created that works with mame0144u4 after patching with hi_144u3.

File removed since it's now included in the main patch.

It may also help other astrocde.c games.  If it works for others, maybe it can be included in the mainline patches.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on December 29, 2011, 04:57:03 pm
Nicely done, herg.
I added it to the u3-u4 patch (re-uploaded it) and it will be included in all future patches.

Thanks!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: gatordad on January 30, 2012, 10:24:36 pm
I am moving all my mame stuff to a new computer so I decided to compile my first version

I used HK compiler for my 114 build, applied the u1, u2, u3 and u4 build updates along with the hs diff for 114 to 116 in the first post, I have added a hi folder in my mame directory, however  where do I get the high score dat file from?
The link to leezers site only has the one for 14X, will that one work for 114?

Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 31, 2012, 11:54:33 am
Yes, that one will work or you can get it here (I believe more current): http://www.hitotext.com/HiScoreDat/index.php (http://www.hitotext.com/HiScoreDat/index.php)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Khenemet Heru on February 03, 2012, 04:35:33 pm
MKChamp, just a quick question, I'm trying to add no-nag/whitebox removal to the MamePlus source so I can compile that.  I wanted to know what sections of the diff file I can delete to get rid of the hiscore stuff, since MamePlus already has it implemented. This is using hi_144.diff for MamePlus 0.144r4932 source. Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 05, 2012, 12:16:40 am
You could probably just remove the section that begins with: diff -Nru old/emu/hiscore.c src/emu/hiscore.c and be all good.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ataruzzolo on February 07, 2012, 06:54:32 am
Thanks for the 145 update ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: atarinut on February 10, 2012, 03:42:55 pm
Hmmmm. Getting this error with the patch installed on 0.145 (compiles fine without patch):

Compiling src/mame/video/mappy.c
src/mame/video/mappy.c: In function 'void palette_init_mappy(running_machine&, const UINT*)':
src/mame/video/mappy.c:92: internal compiler errror: Segmentation fault

Anyone seen this before? Thanks
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on February 10, 2012, 03:53:37 pm
Try compiling without any optimizations.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: syncmaster on February 10, 2012, 04:02:56 pm
You could probably just remove the section that begins with: diff -Nru old/emu/hiscore.c src/emu/hiscore.c and be all good.

Sorry but I've just tested this and it doesn't work. MAMEplus has it's own modifications so files don't match  :-[

Help please  :dunno

Thank you
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TrojanBarber on March 11, 2012, 07:19:32 am
Need to compile my own 0.142u4 hiscore mame and i am a little late  ;D

Tried with plain 0.142 and 0.143 hiscore diff just to find out what i already suspected. It won't work that way of course...
Compiled 0.142 hiscore without problem with older version of mingw.

What i want to try now is 142u4 with hiscore using new mingw. Versions 0.143-0.145 are useless to me... All compile fine (with or without hiscore diff with newer mingw) but mame throws error when you press ESC on second run (not first not third and so on, only after second run and i really dont get it, why only in direct3d version 9 which i need most). Tried with precompiled versions 0.143-0.145 from mamedev.org, same problem.
Didn't find anything usefull on mametesters.org

Anyone with 142u4 hiscore diff download link?  :notworthy:

Thx in advance
Title: Re: hiscore diff (with no nag/white box removal)
Post by: milhouse on March 15, 2012, 09:20:07 am
The latest hi_score diff is named "hi_145u1.diff" but the latest u release is 0145u4.diff.  When I apply diffs, do I apply in the order

0145u1.diff
hi_145u1.diff
0145u2.diff
0145u3.diff
0145u4.diff

or

0145u1.diff
0145u2.diff
0145u3.diff
0145u4.diff
hi_145u1.diff

Thanks....

Title: Re: hiscore diff (with no nag/white box removal)
Post by: deadkat37 on March 20, 2012, 10:37:48 am
Hmmmm. Getting this error with the patch installed on 0.145 (compiles fine without patch):

Compiling src/mame/video/mappy.c
src/mame/video/mappy.c: In function 'void palette_init_mappy(running_machine&, const UINT*)':
src/mame/video/mappy.c:92: internal compiler errror: Segmentation fault

Anyone seen this before? Thanks

Hi,

I got this same error compiling 0.145 - compiling with no optimizations (just 64-bit ticked) did resolve it - thanks Headkaze! - but I am curious as to why it has suddenly happened in 0.145 and whether the lack of optimisations will cause a noticeable slowdown of MAME performance.

Will this go away in future patches?

TIA for any advice.


Title: Re: hiscore diff (with no nag/white box removal)
Post by: bullrees on March 20, 2012, 06:10:25 pm
The latest hi_score diff is named "hi_145u1.diff" but the latest u release is 0145u4.diff.  When I apply diffs, do I apply in the order

0145u1.diff
hi_145u1.diff
0145u2.diff
0145u3.diff
0145u4.diff

or

0145u1.diff
0145u2.diff
0145u3.diff
0145u4.diff
hi_145u1.diff

Thanks....


Same question. If I do it the second way I get an error when I do the patch and when I try to compile. I didn't try the first way yet but if I leave it out all together it compiles fine.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Sparkolicious on March 28, 2012, 09:47:33 pm
I did:

0145u1.diff
0145u2.diff
0145u3.diff
0145u4.diff
0145u5.diff
hi_145u1.diff

and that seems to have worked for me..
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Knightlore on April 01, 2012, 12:31:57 pm
*SNIP

I've just tried this with hi_145 and the Mame 145 source code. 

After I type the stuff in command prompt, nothing happens Left it about 10 mins, but doesn't appear to be doing anything - all I get is a blinking cursor, is there something I'm missing  ???
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Knightlore on April 01, 2012, 04:45:29 pm
Aha! got it to compile without errors showing but still got the nag screens there and hiscore isn't working either.  (I made a folder called "hi").  Any ideas?  I have read through most of the thread, obviously missing something.

I did this using Mr Do's website (but used the most up-to-date files).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Knightlore on April 02, 2012, 09:48:29 am
Well, kind of stumped now - I tried Headkaze compiler and when applying the 0.145.txt I get a green message that says "2of2 hunk ignored" < or something like that.  I tried changing the .txt to .diff but the resulting file is : 0.145.diff.txt

Anyway, when I hit "Go" I get a red error message (can't remember what it said) but now I can't access Windows at all says the Windows\System directory is missing  ???

Bizzare.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Sparkolicious on April 02, 2012, 11:08:29 am
ummmmm.... you are doing it wrong!!!  ;D


Here's the deal...   If you follow Mr. Do's instructions you will be fine. 

Make sure you get all of the patches.  That would be:

http://mamedev.org/updates.html (http://mamedev.org/updates.html)
 
0145u1.diff
0145u2.diff
0145u3.diff
0145u4.diff
0145u5.diff

then

hi_145u1.diff

If you made the name change when you were saving the file and ended up with .diff.txt,  rename the file without the .txt extension.  What you did was NOT change the file type setting at the bottom of the save window.  So you changed the name only, and the file type stayed .txt. 

patchmame  in that order!!! If you don't it will never work.  If the source is patched out of order the lines will not match and everything goes to shite.

so.. assuming you did everything correct so far it would be:

patchmame 0145u1 <enter>
patchmame 0145u2 <enter>

and so on until you have applied them all, including the hi_145 diff


Then makemame...



The key here is to go back and start over.   Read the directions very carefully, and do them in order stated.  If at any point you get a result different than what you are supposed to, you have made an error.  Blowing up your windows install isn't part of the equation, and I have no hope of guessing how the fark you managed that lol! 

Title: Re: hiscore diff (with no nag/white box removal)
Post by: Knightlore on April 02, 2012, 12:01:02 pm
ummmmm.... you are doing it wrong!!!  ;D


Here's the deal...   If you follow Mr. Do's instructions you will be fine. 

Make sure you get all of the patches.  That would be:

http://mamedev.org/updates.html (http://mamedev.org/updates.html)
 
0145u1.diff
0145u2.diff
0145u3.diff
0145u4.diff
0145u5.diff

then

hi_145u1.diff

If you made the name change when you were saving the file and ended up with .diff.txt,  rename the file without the .txt extension.  What you did was NOT change the file type setting at the bottom of the save window.  So you changed the name only, and the file type stayed .txt. 

patchmame  in that order!!! If you don't it will never work.  If the source is patched out of order the lines will not match and everything goes to shite.

so.. assuming you did everything correct so far it would be:

patchmame 0145u1 <enter>
patchmame 0145u2 <enter>

and so on until you have applied them all, including the hi_145 diff


Then makemame...



The key here is to go back and start over.   Read the directions very carefully, and do them in order stated.  If at any point you get a result different than what you are supposed to, you have made an error.  Blowing up your windows install isn't part of the equation, and I have no hope of guessing how the fark you managed that lol! 



Thanks for the reply!

I've managed to repair the Windows System but I had to install Xp over the top of itself again, normal repair didn't work :(

So I'm having to install a few drivers/programs again.

Okay I will try and rename the .txt file correctly, although the way things have been going... lol :)

The thing I am confused about is, why do I need to apply the updates?  I am only running the base version of Mame 0.145 I have none of the updates installed, so thought I just go for the 0.145.txt file
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Sparkolicious on April 02, 2012, 12:36:37 pm
diff files (difference) or patches only contain the changes between the old and new versions of a given file.  So.. applying the patch may result in a new line being created, an original being removed or otherwise altered.  If you attempt to apply a diif out of sequence then there is a good chance that the changes in the diff file cannot be applied because the original doesn't contain the changes that should have been applied in a previous diff.  So....  apply the diffs in order, then the hi diff, and enjoy.  I reserve the right to be corrected by someone that can provide a more detailed explanation, and/or actually knows wth they are talking about.  I am no expert by any stretch, but I just whipped my bro's High score in St. Dragon so I know my shiz works  ;D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Knightlore on April 02, 2012, 01:34:48 pm
Haha fantastic :)

Thanks for the detailed explanation - I thought the u1, u2, u3 etc corresponded to what Mame romset/version you were using ie Mame 0.145u3.  In my case I'm just using 0.145 for both romset and Mame version.

At any rate I will try what you suggested, I did originally follow the Mr Do guide - but that mentioned to skip the update diff's if I was using just the standard version ???
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Knightlore on April 03, 2012, 04:27:26 pm
Well I've now tried everything at least 3 times.  But now when compiling I get an error which I wasn't before.  I get "void machine reset irobot"  I have applied all patches in order with no errors and followed everything with a fine tooth comb.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Knightlore on April 04, 2012, 01:24:01 pm
Any ideas anyone?!

Maybe I should mention this is with Xp, or does that not make a difference.  I just tried everything through once again from scratch and I get the same error as above.

Can't find any mention of that particular error in this thread or on google, so no idea tbh.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: juanchocnva on April 12, 2012, 01:33:39 am
hi guys am having problems following  Mr.DO compiler

my mame64.exe is fine
am having trouble compiling the UI after downloading the MAME UI Source
the Tutorial asks me to  copy a file named
MAMEUI.MAk but the thing is that there is no file in the WINUI folder named exactly like that  :banghead:
there is one called WINUI.MAK and another one called MAMEUI.RC

Ohhh i wish i could Mix the mak from winui and the mameui from the mameui.rc

i have tried changing the extension for both files but it seams there is something missing in the two of them
anyone with the same problem here ...?  am i doing something silly!
or am not seeing that file :dunno

please help !

am compiling the newest 145u6 in case u ask
Title: Re: hiscore diff (with no nag/white box removal)
Post by: juanchocnva on April 12, 2012, 01:23:45 pm
i have tried changing the Makemameui.bat folder

from this set path=c:\mingw\mingw64-w64\bin

make -f mameui.mak -j3 to this
set path=c:\mingw\mingw64-w64\bin

make -f winui.mak -j3
but i get a error saying

make -f winui.mak -j3
make: *** No rule to make target '/emu/rendersw.c' , needed by '/osd/windows/draw
dd.o' . Stop.


PLEASE HELP ME :notworthy:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Hunk_4TH on April 27, 2012, 02:18:07 pm
For anyone who was curious if this works with Mess it seems to work. At least I used Headkaze's Mame Compiler 64 and it worked like a charm! Speaking of Mess, does do console hiscores save? Like for example will the hiscores in Truxton for Genesis save using this patch? I kno wit removes the nag screens which is the main reason I used it on Mess.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Seith on May 02, 2012, 03:49:34 pm
Finally got this to work (i think), however...

When I click on the mame.exe I get the (infamous) windows blue screen, with an error "nv4_disp.dll".

I've looked this up and it appears to be video-related. Tried uninstalling/reinstalling the video driver (Nvidia Quatro FX 550), no luck.

Any ideas? Maybe I should now be posting in the software section.


Latest video drivers do not like the advancement that MAME is doing in recent builds (0.142u4+ HLSL).  I'd suggest visiting the Nvidia site, select your video card and choose a driver that is earlier than than recent.  Many Nvidia owners are getting similar BSOD issues until they rollback their driver.  I, for example, am using one from late 2009 for my on-board GeForce 6100 chipset and MAME is happy now.  It's hopefully an issue that Nvidia will address soon.

http://www.nvidia.com/Download/Find.aspx?lang=en-us (http://www.nvidia.com/Download/Find.aspx?lang=en-us)


Thanks, this helped me!  I just put a new video card in my cab unit and couldn't figure out why I was getting bluescreens, the trick was to remove the drivers and install older versions.  Worked like a charm!  :applaud:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wynneth on June 11, 2012, 03:10:33 am
Nevermind... Need to delete this post...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Nephasth on June 11, 2012, 09:46:55 pm
I tried this the other day following Mr. Do's instructions and those of Jimmy2x2x. I can patch the source (.135), but I get a few different errors when trying to compile. It compiled the longest before getting an error when I first tried Jimmy's technique. It became late and I gave up on it. I'll try giving it another go next week.


SUCCESS! After nearly a year of not bothering with it, I finally got it to work! I needed to use an older set of compiling tools that would work with .135. Also, I patched hi_135.txt and never changed it to .diff, once I realized I was already done compiling. But it works! Super excited! Thank you!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Woodshop Flunky on June 12, 2012, 10:58:08 am
... But it works! Super excited! Thank you!

+1 Thanks to all that helped make this work.

Was a bit of a hassle for me, but has been so worth it.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: LucasBuck on July 26, 2012, 07:41:35 pm
I was able to compile a variety of older mame versions and apply these .diffs however I'm running into a variety of problems :

In Command Prompt I'm getting the following error : " 'patch' is not recognized as an internal or external command, operable program batch file.

Using Mr. Do's Compiling MAME for Dummies the .bat files of "patch mame, and make mame" don't seem to work as I click on them they quickly exit.

In addition If I try to use HeadKazes Compiler and I apparently get an error that the .diff can't even be found when I Downloaded it and placed it in it's respective folder.

I know this was an old post I'm replying to, but I had the same problem and didn't see an answer. Thought I would post the solution since I ran into the same thing (in case someone else is looking like I was!)

In Mr. Do's bat files he said change set path=C:\mingw\mingw64-w64\bin  if you are using the 32 bit version. You don't change both 64's. Just the second one. He thought ahead and highlighted it in his guide, but I made the mistake of changing them both. That gives you the 'not recognized' error. Just change the one he (in his wisdom) highlighted.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: LucasBuck on August 02, 2012, 11:59:11 am
I'm having an issue with my recompile. For some reason it won't differentiate between mame.ini and vertical.ini. I was trying to set it up so that horizontal games were stretched (by setting up mame.ini set not to keep aspect ratio) and then having a vertical.ini that kept the ratio. It doesn't seem to ever read the vertical.ini. That setting works fine in vanilla mame, so I figure it's something with my compile. Any suggestions?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: mike boss on August 02, 2012, 03:53:29 pm
So what if I don't want to (read : know how) to compile my own version of MAME, but I want to save hi-score. I create a folder called HI and place the file in the main post ? That's it ?
(I'm a total noob)

thanks all
Title: Re: hiscore diff (with no nag/white box removal)
Post by: LucasBuck on August 02, 2012, 06:47:51 pm
I had not compiled before either, and it was easy. Just read the link to Mr. Do's guide in the very first post. It went smoothly for me, other than the widescreen issue I'm having.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: mike boss on August 03, 2012, 10:11:54 pm
I'll have to study this as I'd like to keep my build of MAME the same (for simplicity) but add the hi-score save functionality.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kenshen on August 17, 2012, 02:58:51 pm
Hey guys i need some help so i am trying to completely shell mala as my front end. I want it to be able my friends an mine high scores from mame i rebuilt mame with this patch and it kinda worked for a little while but now Mame with this patch applied will not save high scores what do i do?   
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kenshen on August 19, 2012, 11:29:11 am
BUMP
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Troyus on August 25, 2012, 02:03:42 pm
Wow that is insanely complicated to do. There are links to download tiny files here then links to more pages with more tiny files and difficult instructions.
No way I can work it out for my 0.122 release.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TGov on September 15, 2012, 11:49:16 pm
I am having some issues.  I have read and re-read Mr. Do's instructions several times and I can't get the patches to install.  I have attached a picture of the error I am getting.  I have also tried using the auto compiler and it is having problems as well.   I have a feeling it is something simple I am missing.....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: boerbiet on September 17, 2012, 12:12:25 pm
The 0.146u5 patch works fine on 0.147 also :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on September 17, 2012, 12:13:44 pm
Good news :) .
Title: Re: hiscore diff (with no nag/white box removal)
Post by: drventure on September 17, 2012, 01:55:18 pm
You might also check out HeadKaze's Mame Compiler

http://headsoft.com.au/index.php?category=mame&page=mc64 (http://headsoft.com.au/index.php?category=mame&page=mc64)

I haven't used it yet, but it's supposed to be pretty nice for this kind of thing.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TGov on September 17, 2012, 02:08:11 pm
I got the same errors with it as I did with Mr. Do's explanation.  I am not sure what I am doing wrong but it is something  :banghead:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on September 19, 2012, 01:56:08 am
just wanted to greet MKChamp again and say 'thank you' for keeping up a good work. it's really great that this patch is still released on every MAME/MESS version.

i hope the hosting is working good as well...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Saki on September 20, 2012, 01:39:29 am
Hello, I am trying to apply this highscore/no nag patch to the mame source code on linux; xubuntu 12.04.

I am able to compile mame successfully.

I guess my main question is how does one go about applying it without mamecompiler64?

I've tried searching this forum and haven't found this to be addressed. Can anyone give me some insight on how to go about doing this or if it already has been covered please link me.

Thank you for all the hard work, it is much appreciated.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on September 21, 2012, 02:10:26 am
Hello, I am trying to apply this highscore/no nag patch to the mame source code on linux; xubuntu 12.04.

you need to find patch utility for linux.

then use the following line:

patch -p0 -E < filename.diff
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nemo1966 on October 04, 2012, 05:28:33 am
Hey guys the link for Mr Do's instructions is broken, has anyone got another link or the instructions please?

thanks
Nemo
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nemo1966 on October 04, 2012, 06:26:14 am
A BIG thank you to HeadKaze... the tool he produced is awesome.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: the_gamer on October 04, 2012, 03:01:17 pm
Perhaps this is a stupid question but the readme tells me to put the highscore.dat in the file where mame.exe is located. Where to put it in linux? ~/.mame/ doesn't work
Title: Re: hiscore diff (with no nag/white box removal)
Post by: the_gamer on October 07, 2012, 02:45:32 pm
Given that nobody answers I guess this isn't as stupid as I thought? I grepped through the source to find it out but I can find "hiscore.dat" only once and that is in a comment. This confuses me. Where is he looking for that file? I have it compiled but it doesn't work and I think it is because of that file which is in the wrong place. But where to put it?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on October 08, 2012, 08:54:57 am
hi_147.diff applies almost fine to 0.147u1 source tree (with 1 warning), but the compile stops at the end. :(
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 08, 2012, 11:50:08 pm
hi_147.diff applies almost fine to 0.147u1 source tree (with 1 warning), but the compile stops at the end. :(

Should be good to go now. Thanks again for the hosting!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wolfi on October 09, 2012, 12:23:29 am
Thanks for your excellent service over the years !
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on October 09, 2012, 01:03:33 am
Should be good to go now. Thanks again for the hosting!

awesome, thanks for the updated diff!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Hammerfist on October 10, 2012, 07:02:08 am
I did everything according to the instructions (I think), downloading the newest source and aplying the newest diff. After that I applied the 147u1 hiscore diff and started compiling. Everything goes well, untill almost in the end, I get about nine errors (sorry, can't paste them here yet, since I'm not at home) complaining about drivers and listing names of some games. Then the compiler exits with error 1. Any ideas what I could be doing wrong? Thanks!

Ok, so here is the list of errors I got:

obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x50c): undefined reference to `driver_alg_bios'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x78c): undefined reference to `driver_aplatoon'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x21d0): undefined reference to `driver_crimep2'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x21d4): undefined reference to `driver_crimep211'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x21d8): undefined reference to `driver_crimepat'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x4630): undefined reference to `driver_fastdraw'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x4d74): undefined reference to `driver_gallgall'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x73f8): undefined reference to `driver_lastbh'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0xe104): undefined reference to `driver_maddog'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0xe108): undefined reference to `driver_maddog2'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0xe10c): undefined reference to `driver_maddog21'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0xe110): undefined reference to `driver_maddog22'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0xe114): undefined reference to `driver_maddoga'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x176ec): undefined reference to `driver_spacepir'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x197f0): undefined reference to `driver_wsjr'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x197f4): undefined reference to `driver_wsjr15'
obj/windows/mame/mame/drivlist.o:drivlist.c:(.rdata+0x19b80): undefined reference to `driver_zortonbr'
collect2: ld returned 1 exit status
make: *** [mame.exe] Error 1
Title: Re: hiscore diff (with no nag/white box removal)
Post by: krick on October 23, 2012, 07:56:30 pm
A user on the MAMEWorld forum appears to have found a bug in the hiscore patch with the "disable_loading_patch" option...

http://www.mameworld.info/ubbthreads/showflat.php?&Number=297976 (http://www.mameworld.info/ubbthreads/showflat.php?&Number=297976)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 29, 2012, 07:20:07 pm
A user on the MAMEWorld forum appears to have found a bug in the hiscore patch with the "disable_loading_patch" option...

http://www.mameworld.info/ubbthreads/showflat.php?&Number=297976 (http://www.mameworld.info/ubbthreads/showflat.php?&Number=297976)

Thanks for bringing this to my attention. I re-uploaded hi_147u1 with the fix to correct this. Obviously, not that many people use other modes like cocktail, so it's been slipping through for quite some time.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on October 30, 2012, 04:11:50 am
just wanted to report that hi_147u1.diff works fine with MAME/MESS 0.147u2 source tree, just some warnings, but compiled ok.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 30, 2012, 05:29:47 pm
just wanted to report that hi_147u1.diff works fine with MAME/MESS 0.147u2 source tree, just some warnings, but compiled ok.

Uploaded 147u2 to get rid of the warnings...not that they affected anything as you pointed out. And thanks again for hosting the files!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: luckyluca on November 11, 2012, 01:55:20 pm
Hello,
 
thanks a lot for such wonderful thread, this is my first post and am trying to compile mame 1.47u2 with the addition of this hiscore diff but am getting compile errors. Please note the diffs from the mame website compile without problems.
I'm on windows7 64bit have the 1.47 source, patched the u1,u2, hiscore diff for 1.47u2. I use the wingw32bit as per the tutorial found at the xpadder website (xss).

Please find attached the compile error I get.
Thanks a lot for your help

Luca
 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: luckyluca on November 12, 2012, 05:11:09 pm
never mind, re-extracting the source from the zip file did the trick!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Saki on January 02, 2013, 06:56:56 pm
Hi I posted earlier in this thread about compiling MAME with the nonag/highscore patch using 0.147 source

For the time being I've just been using a Windows box to apply the patch and compile on linux (ubuntu).

Someone earlier in the thread replied that there's a linux utility however I cannot seem to find it, I don't even believe there's one from all the searching i've done.

So if anyone out there has successfully compiled mame with this patch on linux, please let me know how you did it, Thank You.


Edit: to make this much more detailed, I have included the error messages I am getting.

http://pastebin.com/SbhAdVAq (http://pastebin.com/SbhAdVAq)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on January 03, 2013, 04:19:24 am
Go into MAME source directory and use "patch" command:
Code: [Select]
$ patch --binary -E -p0 -i /path/to/hiscore.patch
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Saki on January 03, 2013, 06:05:50 am
You are awesome.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 11, 2013, 07:22:46 am
hi_147u2.diff doesn't work with 0.148 source tree. :(

EDIT: thanks for the diff update!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: edekoning on January 30, 2013, 03:09:25 am
The first post lists the hi_score diffs for all mame versions, but they do not list/specify individual mame updates. So if I download hi_145.txt, does that only apply to mame 0145 without any updates? If so where can I find the hi_score diff for all the individual mame version updates, e.g.: 0145u8?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 30, 2013, 05:18:40 am
If so where can I find the hi_score diff for all the individual mame version updates, e.g.: 0145u8?

diffs for updates are only available during the current cycle (e.g. 0.148u1, u2, etc.). then they are replaced with full version diffs.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Hutt on February 03, 2013, 12:30:08 pm
Just compiled 148
Nag screens are gone but played a quick game of Galaga... got high score... reboot... back to defaults.

Is there something else I am supposed to do?

>>>Disregard. For some reason my highscore.dat was missing.
It's all good  ;D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on February 04, 2013, 04:12:36 am
A bit OT (but not so much): where can I find an updated version of "highscore.dat"? And also, does someone still updating it?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: edekoning on February 04, 2013, 04:51:34 am
check here: highscore.mameworld.info/ (http://highscore.mameworld.info/)

it seems the latest is v0.143u9
Title: Re: hiscore diff (with no nag/white box removal)
Post by: goldfisch on February 08, 2013, 10:52:40 am
someone has 0.147u3 diff for me?
Thanks
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on February 11, 2013, 05:51:29 am
hi_148.diff works fine with MAME/MESS 0.148u1 source tree, just some warnings, but compiled ok.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on February 11, 2013, 05:58:32 am
hi_148.diff works fine with MAME/MESS 0.148u1 source tree, just some warnings, but compiled ok.
Confirm.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: isamu on February 18, 2013, 02:56:53 am
so these files get rid of the "warning: this game blah blah blah" screen?

Bookmarked
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on February 18, 2013, 03:09:22 am
so these files get rid of the "warning: this game blah blah blah" screen?

yes.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lockdown571 on February 28, 2013, 03:58:06 pm
Bummer, I can't seem to get high scores to save, at least not for Burger Time.

I'm pretty sure I compiled everything ok because mame is working fine as well as the warning screen skipping. I put a folder named "hi" (without quotes) within the same folder as mame.exe. Also put hiscore.dat in the same folder as mame.exe. I'm running 0.148u1.  Also, I'm launching from Hyperspin if that makes a difference.

Anything I'm missing?

Edit: My b, I think I might have found the answer to my question here: http://forum.arcadecontrols.com/index.php/topic,106660.msg1130366.html#msg1130366 (http://forum.arcadecontrols.com/index.php/topic,106660.msg1130366.html#msg1130366)

Edit 2: For future reference, in Hyperspin use "normal" execution for Mame instead of "Hyperlaunch". Then, to set the exit key (if using something other than Esc) go to "UI Cancel" in the Mame interface control options.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on March 19, 2013, 10:29:57 am
just wanted to report, that hi_148.diff doesn't work with 0.148u2 source tree. :(

/me is patiently waiting for hi_148u2.diff...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: arquillos on March 19, 2013, 11:14:51 am
Thank you MKChamp!
   Keep up this great good work.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 19, 2013, 03:34:42 pm
just wanted to report, that hi_148.diff doesn't work with 0.148u2 source tree. :(

/me is patiently waiting for hi_148u2.diff...

No more patience needed  ;D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on March 19, 2013, 08:07:03 pm
No more patience needed  ;D

thank you!! ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: saloonstudios on March 28, 2013, 10:37:30 am
Given that nobody answers I guess this isn't as stupid as I thought? I grepped through the source to find it out but I can find "hiscore.dat" only once and that is in a comment. This confuses me. Where is he looking for that file? I have it compiled but it doesn't work and I think it is because of that file which is in the wrong place. But where to put it?

Did you ever figure out where to place the dat file?

EDIT: I should've quoted his first post too, this is for (x)/(l)ubuntu compiling. He tried ~/.mame/ to no avail?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 09, 2013, 03:14:11 am
hi_148u2.diff works fine with 0.148u3 source tree.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on April 09, 2013, 05:50:37 am
hi_148u2.diff works fine with 0.148u3 source tree.
Confirm, also on linux.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 30, 2013, 03:46:01 am
hi_148u2.diff works fine with 0.148u4 source tree.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on April 30, 2013, 03:58:15 am
Trying to compile right now.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: mathdufort on May 01, 2013, 08:19:02 am
Trying to compile right now.

Still compiling??? hehe
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on May 01, 2013, 08:22:00 am
No, all went good so far.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on May 20, 2013, 04:51:11 am
hi_148u2.diff doesn't work with 0.148u5 source tree.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on May 20, 2013, 07:34:55 am
I tried to fix the patch.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on May 20, 2013, 08:24:33 am
I tried to fix the patch.

thank you!! diff and compile seem to be fine.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 20, 2013, 12:14:06 pm
Thanks Ansa89...I've added it to the front page. Saved me some time!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on May 20, 2013, 12:24:02 pm
You're welcome :) .
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wolfsoft on June 11, 2013, 02:42:04 am
I tried groovymame 0148u5 and compiled the diffs to u5 and the your u5 diff
i put in the current highcore.dat in mame root... and highscorepath is created
but it didn't generate hiscore files in the hi path... and eg. pacman is not saving the highscore.
nagscreen and loading patch is working...
Do I miss something?
mame.ini
#
hiscore_directory         ..\common\hi
disable_hiscore_patch     0
disable_nagscreen_patch   0
disable_loading_patch     0



Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 11, 2013, 06:17:56 am
hi_148u5.diff seems to work fine with 0.149 source tree, but with some warnings.

it doesn't compile at last...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on June 11, 2013, 06:36:17 am
Without warnings (here (http://forum.arcadecontrols.com/index.php/topic,64298.msg1365834.html#msg1365834)).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 11, 2013, 06:39:43 am
Without warnings.

thank you!! i will try to compile 0.149 now, because it doesn't compile with 0.148u5 diff.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 11, 2013, 06:50:32 am
hmm, it still doesn't compile:

Code: [Select]
Compiling src/osd/windows/window.c...
src/osd/windows/video.c: In member function 'virtual void windows_osd_interface::update_hi(bool)':
src/osd/windows/video.c:246:42: error: too few arguments to function 'void winwindow_process_events(running_machine&, int
, bool)'
src/osd/windows/window.h:167:6: note: declared here
make.EXE: *** [obj/windows64/osd/windows/video.o] Error 1
make.EXE: *** Waiting for unfinished jobs....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on June 11, 2013, 07:04:47 am
The interface of that function has changed (they added a parameter), so I tried to add a "FALSE".

NOTE: at the moment I can't build windows binaries, so I'm unable to test the new patch.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 11, 2013, 07:24:36 am
The interface of that function has changed (they added a parameter), so I tried to add a "FALSE".

NOTE: at the moment I can't build windows binaries, so I'm unable to test the new patch.

compiles fine now, thanks a lot!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on June 11, 2013, 07:55:31 am
Please double check if the compiled binary has the correct behavior at execution time (for example: hide/un-hide nag screen works correctly).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 11, 2013, 10:14:06 am
Please double check if the compiled binary has the correct behavior at execution time (for example: hide/un-hide nag screen works correctly).

yes, everything works perfectly (no nag screen, no loading status).

thank you once again.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 11, 2013, 10:43:11 am
Thanks Ansa89 for updating it!
Thanks abelenki for hosting it!

Updated the front page.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 11, 2013, 10:44:42 am
Updated the front page.

awesome! ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wolfsoft on June 11, 2013, 11:12:58 am
I copied the highscore.dat into the hi folder and its working great now :-)
thanks


I tried groovymame 0148u5 and compiled the diffs to u5 and the your u5 diff
i put in the current highcore.dat in mame root... and highscorepath is created
but it didn't generate hiscore files in the hi path... and eg. pacman is not saving the highscore.
nagscreen and loading patch is working...
Do I miss something?
mame.ini
#
hiscore_directory         ..\common\hi
disable_hiscore_patch     0
disable_nagscreen_patch   0
disable_loading_patch     0
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wolfsoft on June 17, 2013, 05:50:04 pm
I am searching a patch for mame 0148u4 and didn't find a download here.
As far as I can see the hi_148u2 seems to work but I can't find a download
thanks
cheers from germany
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wolfsoft on June 19, 2013, 04:25:31 pm
please help me, I want to make a hbmame work with highscore and nonag...
cheers
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 20, 2013, 04:23:39 am
please help me, I want to make a hbmame work with highscore and nonag...
cheers

it will be difficult, because HBMAME builds are not tied to MAME full and u-releases. instead, HBMAME is built off SVN (which is updated almost daily).

when next HBMAME is released, you can try to apply latest hi_***.diff to its source tree. but it's not garanteed, it will work.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wolfsoft on June 21, 2013, 03:37:10 pm
it is based on 0148u4.
As the 148u2 diff seems to work with mame 0148u4... it should work on the hbmame version...
Please upload the 0148u2 diff and I will have a try
thanks in advance

Title: Re: hiscore diff (with no nag/white box removal)
Post by: neil324 on June 29, 2013, 10:55:21 am
I'm trying to patch Mame 1.06 to remove the nag screens. To use on a slow PC. There doesn't seem to be a .diff for this release and the others don't work.

Is there a patch or way to edit the .diff for 1.06
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 29, 2013, 11:00:49 am
I'm trying to patch Mame 1.06 to remove the nag screens.

there were never such a version of MAME.

the earliest MAME version for which hiscore diff is available is 0.108.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: neil324 on June 29, 2013, 12:42:02 pm
MAME started at 0.1

I'm trying to remove the nag screen as hi scores still worked in MAME 1.06. The hiscore diff has the patches to remove the nag screens before you compile the MAME of your choice.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 29, 2013, 12:46:31 pm
MAME started at 0.1

sure.

Quote
I'm trying to remove the nag screen as hi scores still worked in MAME 1.06.

lol. there was no MAME 1.06. :D current MAME version is 0.149.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: neil324 on June 29, 2013, 12:50:00 pm
0.106

You know what I meant though ::)

The 0.1 was correct though, going by the MAME website :applaud:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 29, 2013, 12:57:48 pm
0.106

as i already said:

the earliest MAME version for which hiscore diff is available is 0.108, so no luck with 0.106.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: neil324 on June 29, 2013, 01:07:19 pm
0.106

as i already said:

the earliest MAME version for which hiscore diff is available is 0.108, so no luck with 0.106.

Is the hiscore diff the only way to patch MAME to remove the nag screens.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bidinou on July 08, 2013, 04:50:01 am
Hi ! Applied the patch with no pb under Linux (Mint 15 64 bits, MAME 0.149).

I have a question though : the disable_loading_patch option doesn't work. Well, it seems to be taken into account to some extent because it displays two white rectangles at the end of the loading but that's it.

Thanks !
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on July 23, 2013, 03:54:57 am
hi_149.diff works fine with 0.149u1 source tree.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: CalixPapi on August 08, 2013, 03:35:49 am
Can  I please get some help I keep getting this error.

I am trying to do 0.149 have also tried with 0.146

I enter patchmame hi_146 or patchmame hi_149

Have even tried patchmame 0149u1 then patchmame hi_149 then makemame
Title: Re: hiscore diff (with no nag/white box removal)
Post by: CalixPapi on August 08, 2013, 09:37:18 pm
I even get the same error when trying to compile the regular mame. What am I doing wrong?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: CalixPapi on August 09, 2013, 01:57:58 am
would it be possible to compile this on my win7 laptop and then put it onto my winxp laptop? I am using the xinxp laptop for my build but want to get rid of the nag screens.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on September 18, 2013, 05:16:43 am
Thanks for the upgrade :) .

EDIT: the new patch is wrong: instead of modifying "src/emu/emuopts.c", it creates a new file "src/emu/emuopts.c.rej" (which will be probably ignored by mame at compile time).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on September 19, 2013, 05:44:00 am
Here is my patch (IMHO this should be correct).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on September 19, 2013, 10:57:03 am
Thanks for the upgrade :) .

EDIT: the new patch is wrong: instead of modifying "src/emu/emuopts.c", it creates a new file "src/emu/emuopts.c.rej" (which will be probably ignored by mame at compile time).

If actually modified emuopts.c as well. I removed the .rej. Thanks for pointing it out!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on September 20, 2013, 05:25:02 am
Sorry for still complain, but seems you forgot the "OPTION_DISABLE_*" options:
Code: [Select]
--- orig/hi_150.txt 2013-09-19 16:52:24.000000000 +0200
+++ new/hi_150.txt 2013-09-19 11:22:56.376538336 +0200
@@ -31,6 +31,18 @@
 
  // state/playback options
  { NULL,                                              NULL,        OPTION_HEADER,     "CORE STATE/PLAYBACK OPTIONS" },
+@@ -204,6 +208,11 @@
+ { OPTION_HTTP,                                       "0",         OPTION_BOOLEAN,    "enable local http server" },
+ { OPTION_HTTP_PORT,                                  "8080",      OPTION_INTEGER,    "http server listener port" },
+ { OPTION_HTTP_PATH,                                  "web",       OPTION_STRING,     "path to web files" },
++ // MKChamp Hiscore Diff options
++  { NULL,                        NULL,        OPTION_HEADER,     "CORE MKChamp OPTIONS" },
++  { OPTION_DISABLE_HISCORE_PATCH, "0",         OPTION_BOOLEAN,    "disable hiscore saving" },
++  { OPTION_DISABLE_NAGSCREEN_PATCH,  "0",         OPTION_BOOLEAN,    "disable suppression of nagscreens" },
++  { OPTION_DISABLE_LOADING_PATCH,    "0",         OPTION_BOOLEAN,    "disable suppression of loading screens /white box" },
+ { NULL }
+ };
+
 diff -Nru old/emu/emuopts.h src/emu/emuopts.h
 --- old/emu/emuopts.h 2013-09-17 01:47:03.000000000 -0500
 +++ src/emu/emuopts.h 2013-09-17 10:32:41.000000000 -0500
Is that a wanted change or simply a mistake?
Title: hiscore diff (with no nag/white box removal)
Post by: Funkoid on September 22, 2013, 05:49:43 am
This is great work wish I'd found it years ago. It probably falls out the scope of this mod but I'd love to be able to have mame save the .hi file or an alternate copy of it once every hour or so, allowing me to read the latest hiscore tables whilst the rom is still running.

Doable?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on September 23, 2013, 04:01:33 pm
Thanks again Ansa89...that was a mistake...I'm just getting sloppy...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WakiMiko on September 26, 2013, 09:12:51 am
Any reason why hiscores are lost when soft-resetting (default MAME key is F3)? They are kept over hard-resets (Shift+F3).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kjmann on October 15, 2013, 10:07:12 am
Hi There. I'm New Here, so bare with me.

After applying the .diff patch from here Using original mame .150, i keep getting this when I start mame....

Title: Re: hiscore diff (with no nag/white box removal)
Post by: BlackGreen on November 04, 2013, 01:39:38 pm
Thank you to MKChamp and Leezer for putting in the work for the hiscore system.

I was able to merg the changes with 0.148 without any problems.  Just required a full rebuild.

Thanks for your hard work!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on November 05, 2013, 05:13:15 am
hi_150.diff works fine with 0.151 source tree, but with many warnings.

compiled fine.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on November 05, 2013, 05:51:12 am
Without warnings.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on November 05, 2013, 06:05:21 am
Without warnings.

thanks.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 05, 2013, 11:36:45 am
Without warnings.

Gracias! I added it to the main page.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tot on November 07, 2013, 04:10:42 pm
I have just finished reading through this great info ( Thank you for that ) and with some help from Mr. Do have managed to compile MAME with no-nag\hiscore. Next I moved to MESS and from what I've read this ( the .diff ) should work but I just can't figure out how to apply the patch to MESS. Other than the patch the compile of MESS.exe and MESSUI.exe goes smoothly. What command is used to patch MESS before compiling?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on November 07, 2013, 05:33:26 pm
What command is used to patch MESS before compiling?

same as MAME (they share the same source code).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tot on November 08, 2013, 11:32:13 am
Thanks abelenki for the quick reply(s). I went through and re-installed the whole thing ( MESS ) and it seems I was launching the games with MESSUI, this still has nag screen. However when launched with MESS.exe the nag screens are gone. There is still a very brief "Initializing" window, can this also be removed? Did I install something wrong or does MESSUI not support no-nag, or need additional changes? This is not super important, since I am using MESS in Hyperspin to launch games but just to know.  EDIT: After setting rom\bios path in MESSUI and launching game for the first time nag screen exists, close MESSUI then re-open and they are gone. Only "Initializing" screen remains.                                                                                                                                                                                                     
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheManuel on November 11, 2013, 07:48:32 am
Does anybody post compiled builds of MAME with this patch somewhere, both x86 and 64-bit?
I update MAME on avg. every 5 years, and would rather not go through the trouble of installing everything required to do the build.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on November 11, 2013, 07:51:37 am
Does anybody post compiled builds of MAME with this patch somewhere, both x86 and 64-bit?

no

Quote
I update MAME on avg. every 5 years, and would rather not go through the trouble of installing everything required to do the build.

lol. you are out luck then.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: TheManuel on November 11, 2013, 11:09:30 pm
I ended up compiling it myself, after all.  It wasn't that much of a hassle.
If anyone wants the build, just PM me.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: WakiMiko on November 15, 2013, 07:39:34 pm
Any reason why hiscores are lost when soft-resetting (default MAME key is F3)? They are kept over hard-resets (Shift+F3).

Quoting myself in hope of an answer...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Robbbert on November 17, 2013, 02:32:52 am
I'm not at all sure why you want to modify MESSUI as it already has a secret nag-killer... you just need to find out how to turn it on, which can be done from the command line or your ini file. Same with HBMAME.

Furthermore, the change from a standard build is only 2 bytes!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Thirdeyedynamo on December 06, 2013, 06:28:12 pm
I'm quite the newbee here and am quite staggered that the file I downloaded was not a .diff but a txt....... Can this .txt files be used as a patch file when compiling or am I missing a step in the process in order to get this into .Diff format?
Thank you
Brian...the super NEWBEE!!
Title: Re: Re: hiscore diff (with no nag/white box removal)
Post by: lukensteinz on December 06, 2013, 06:51:48 pm
I'm quite the newbee here and am quite staggered that the file I downloaded was not a .diff but a txt....... Can this .txt files be used as a patch file when compiling or am I missing a step in the process in order to get this into .Diff format?
Thank you
Brian...the super NEWBEE!!

Diff files are plain text anyway. Just rename the extension.

Sent from my Sony Xperia using Tapatalk.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: pfcwintergreen on December 08, 2013, 01:43:37 pm
With the latest(151) diff, Donkey Kong and Donkey Kong Jr. etc hard crash mame on my system(i.e. no error message, have to control-alt-delete to end the process). Previous versions of mame with their respective diffs work just fine for these games. When I replace the Diff-patched exe with the official mame64.exe the games work fine.

Anyone else experience this or have some tips? Thanks
Title: Re: hiscore diff (with no nag/white box removal)
Post by: rapture0707 on December 08, 2013, 05:48:11 pm
Good evening folks. Long time lurker but finally got sick of the nag screens and I keep having errors compiling .151. Any help would be appreciated this is the error I am getting

src/osd/windows/video.c:224:6: error: redefinition of 'void windows_osd_interface::update_hi(bool)'
src/osd/windows/video.c:202:6: error: 'virtual void windows_osd_interface::update_hi(bool)' previously defined here
make: *** [obj/windows64/osd/windows/video.o] Error 1

I have tried it multiple times, switched directories, double checked everything and just can't seem to get it to finalize and finish.

Thanks in advance
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on December 24, 2013, 05:06:59 am
hi_151.diff works fine with 0.152 source tree, but with couple of warnings.

p.s.: both MAME and MESS compiled fine.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: pfcwintergreen on December 30, 2013, 07:24:02 pm
With the latest(151) diff, Donkey Kong and Donkey Kong Jr. etc hard crash mame on my system(i.e. no error message, have to control-alt-delete to end the process). Previous versions of mame with their respective diffs work just fine for these games. When I replace the Diff-patched exe with the official mame64.exe the games work fine.

Anyone else experience this or have some tips? Thanks

I'll respond to myself here since someone else may have similar troubles. This turned out to be an issue I was having with Mame Compiler 64 and not the hiscore diff itself. I looked at the mame debug log, and then looked at the source code, and found that Mame was crashing during a legacy function call that isn't even used anymore. So red flags there.... I recompiled using Mr. Do's mame compiling tutorial (http://mrdo.mameworld.info/compile.php (http://mrdo.mameworld.info/compile.php)) and everything works perfectly. My theory is that I was getting bad builds with Mame Compiler 64 because of remnants(object files) from old builds interfering with the new ones. You might be able to avoid this with MC64 by checking the "Clean Compile" check box but I didn't do (yet)another recompile to verify that. But I am assuming user error on my part of course  :dunno
 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: haku99 on January 09, 2014, 11:59:12 am

thank you!

Using the Mr.Do method, I was able to compile a mamev.0152 without issue :) :applaud:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on January 31, 2014, 12:32:36 pm
I have no problem with 0.151 but Higscore seem doesn’t work with 0.152, no ? (it compile fine)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tzakiel on January 31, 2014, 02:07:24 pm
Does anyone know how to tell mame to look in a dropbox folder (desktop app is installed) for the hiscores instead of 'hi"? What is the format I should use for that in mame.ini?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tzakiel on January 31, 2014, 09:27:03 pm
Hm, I also am having an issue with 152, 64 bit, compiled with hiscore diff and the cv1k diff... scores aren't reading or writing. Is there some issue with 152 and the 151 diff?

EDIT: yep, just recompiled, doesn't work. Huh.

EDIT 2: I am really dumb. I had hiscore.dat in my hi directory... needs to be in mame dir.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on February 02, 2014, 06:37:29 am
Hm, I also am having an issue with 152, 64 bit, compiled with hiscore diff and the cv1k diff... scores aren't reading or writing. Is there some issue with 152 and the 151 diff?

EDIT: yep, just recompiled, doesn't work. Huh.

EDIT 2: I am really dumb. I had hiscore.dat in my hi directory... needs to be in mame dir.

And now, It work for you ?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tzakiel on February 03, 2014, 12:21:01 am
Well, what I found out is that it has to be in your mame.exe directory normally, but for groovymame, it has to be in the hiscore dir (hi or whatever you set it as). Weird!

Yes, works perfectly except some games still don't save hiscores, not sure why... Espgaluda II for example. Any way to tell what games will work and what won't besides trial and error?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on February 03, 2014, 03:47:15 am
Weird ! I'm using mame 0.151 without any problem, but no Highscore with 0.152 (no nag OK)
I just swicth the binaries compiled on Linux
Title: Re: hiscore diff (with no nag/white box removal)
Post by: jeracoo on February 13, 2014, 02:55:23 am
I just can't seem to get it to recompile, would anyone be kind enough to give me a recompile link?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on April 08, 2014, 04:40:46 am
Patch (http://forum.arcadecontrols.com/index.php?action=dlattach;topic=135823.0;attach=307167) for mame 0.153: http://forum.arcadecontrols.com/index.php/topic,135823.msg1432055.html#msg1432055 (http://forum.arcadecontrols.com/index.php/topic,135823.msg1432055.html#msg1432055).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: EMDB on April 09, 2014, 10:14:47 am
I updated the patch to add native support for Donkey Kong Pauline Edition to V0.153. I attached it if anybody is interested.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Jumpstile on April 09, 2014, 10:45:26 am
What is Donkey Kong Penny Edition? Link to a ROM?

 - J*
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nitrogen_widget on April 09, 2014, 01:10:16 pm
All I have are .122 & .139 roms but simply could not get those version of mame to compile.
was able to compile .149 with the patch though.
will try once I have the roms.

Also found an old source package for ubuntu for sdlmame .122 so i'll attempt to compile that tonight.
The source on mamedev for older versions seems to need tweaking to compile on linux.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: EMDB on April 09, 2014, 02:16:49 pm
What is Donkey Kong Penny Edition? Link to a ROM?

 - J*
I'm sorry it's Pauline Edition. Use Google to find out about this hacked rom. Links to roms are not allowed.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Jumpstile on April 09, 2014, 03:55:48 pm
Thanks, already have that one!  :)

 - J*
Title: Re: hiscore diff (with no nag/white box removal)
Post by: EMDB on April 10, 2014, 10:43:21 am
Thanks, already have that one!  :)

 - J*
Sure but the original patch does not work anymore due to changes in the dkong.c driver. So if you want to build 0,153 you can use the new hiscore patch and my updated patch...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tzakiel on April 10, 2014, 11:57:17 am
Anyone having any luck with hiscore saving for:

ESPgaluda II
Mushihime sama
Mushihime sama futari
Mushihime sama futari black label
Dodonpachi dai fukkatsu
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on April 10, 2014, 12:03:39 pm
I don't think this patch supports those games.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tzakiel on April 10, 2014, 04:18:20 pm
I don't think this patch supports those games.

Are you referring to MAME .153?  It plays all of those and more.  Just waiting on the hiscore patch and updated .dat
Title: Re: hiscore diff (with no nag/white box removal)
Post by: benarcade on April 10, 2014, 08:47:17 pm
nevermind
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on April 11, 2014, 03:34:19 am
Are you referring to MAME .153?
No, I'm referring to hiscore patch.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tzakiel on April 11, 2014, 08:01:04 pm
Are you referring to MAME .153?
No, I'm referring to hiscore patch.

I thought game support depended on hiscore.dat. Which the author has said he will try and add these games as soon as the 153 hiscore diff is out.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 12, 2014, 04:30:32 pm
Just wondering if the "disable_loading_patch" is known to cause video settings being lost.

While helping Lord-Data, He uncovered this problem. And I found this reference & workaround:
http://www.mameworld.info/ubbthreads/showflat.php?&Number=297976 (http://www.mameworld.info/ubbthreads/showflat.php?&Number=297976)

Looking at the patch, There doesn't seem to be much to this section. I'll look into it & see if I can find something.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: RyoriNoTetsujin on April 15, 2014, 11:23:51 am
As of right now, it appears MKChamps' website is down (the domain has expired?) 

I'm going to pm him, but in the meantime I see that people have been using his 151-152 version for Mame .153 and having success. Can someone please post an alternate download to this file? Many thanks.

Edit: Maybe these files could find an alternate download home on the new wiki? How would one go about making that happen?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 15, 2014, 11:43:48 am
As of right now, it appears MKChamps' website is down (the domain has expired?) 

I'm going to pm him, but in the meantime I see that people have been using his 151-152 version for Mame .153 and having success. Can someone please post an alternate download to this file? Many thanks.

Edit: Maybe these files could find an alternate download home on the new wiki? How would one go about making that happen?



That domain actually belong to abelenki. I would ftp the files there. The only two files I have on my local pc is the latest (153) and the one previous to that. Unless abelenki can get that domain back up or anyone else had a copy of ALL the other files...looks like they will be gone with the wind.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: RyoriNoTetsujin on April 15, 2014, 12:18:35 pm
Any chance you could just post .153 as an attachment directly to this thread, for the time being?

Every search engine and every other link I've seen for hiscore/nonag diffs links back to this thread anyway, so I think that's probably the best bet until abelenki gets that page back up or can confirm the older files are lost.

EDIT: In case it's unclear to those reading through this thread, the .diff for .153 can also be found over in this thread: http://forum.arcadecontrols.com/index.php/topic,135823.msg1433497.html#msg1433497 (http://forum.arcadecontrols.com/index.php/topic,135823.msg1433497.html#msg1433497)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 15, 2014, 02:00:26 pm
I put the 153 patch link over to http://forum.arcadecontrols.com/index.php?action=dlattach;topic=135823.0;attach=307416 (http://forum.arcadecontrols.com/index.php?action=dlattach;topic=135823.0;attach=307416)

Whoever updated the patch to work in 153, thanks...I was out of town and it saved me time!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: pottzman on April 16, 2014, 08:20:37 pm
I put the 153 patch link over to http://forum.arcadecontrols.com/index.php?action=dlattach;topic=135823.0;attach=307416 (http://forum.arcadecontrols.com/index.php?action=dlattach;topic=135823.0;attach=307416)

Whoever updated the patch to work in 153, thanks...I was out of town and it saved me time!

Hi MKChamp,

I've always appreciated your work with the hiscore support but this latest version 153 has a problem. It does not save any changes to the mame.ini file. If I use the standard mameui64 the default mame options save fine but if I compile mameui64 and include your hiscore patch I can change the default mame options but they do not seem to save the changes to the mame.ini file. This is the first version of your patch that I have had any problem with. Just wondering if it is just me that is having this problem or not.

thanks in advance

pottzman
Title: Re: hiscore diff (with no nag/white box removal)
Post by: DoTheDonkeyKonga on April 17, 2014, 07:07:13 pm
Hi guys,

Did anyone manage to save the hiscore_149 patch by any chance?

I don't think I've got the time or the will to update my romset to the latest build and I was hoping on compiling a hiscore/nonag version of mame with load state messages also removed - which is also why I can't just opt for a pre-compiled hiscore 149 as I need to edit the source myself before compiling.

Please somebody tell me I'm in luck!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 18, 2014, 02:17:08 am
Just wondering if the "disable_loading_patch" is known to cause video settings being lost.

While helping Lord-Data, He uncovered this problem. And I found this reference & workaround:
http://www.mameworld.info/ubbthreads/showflat.php?&Number=297976 (http://www.mameworld.info/ubbthreads/showflat.php?&Number=297976)

Looking at the patch, There doesn't seem to be much to this section. I'll look into it & see if I can find something.

Ok, Just to follow up on this post. This is regarding SDLMAME. it does not affect Windows builds of Mame.

Turns out, The "disable_loading_patch" does not work under SDLMame - Because there is no code for it.

After creating my own version, I happened across this post. I wish I had found the post 1st....
Thanks MKChamp, Glad to see I was on the right track! Even though I just reinvented the wheel....
https://forum.arcadecontrols.com/index.php/topic,64298.msg1110111.html#msg1110111 (https://forum.arcadecontrols.com/index.php/topic,64298.msg1110111.html#msg1110111)

Also to note is Bitbytebit post and patch.
https://forum.arcadecontrols.com/index.php/topic,64298.msg1115992.html#msg1115992 (https://forum.arcadecontrols.com/index.php/topic,64298.msg1115992.html#msg1115992)

However this is not the end of the tale.
There is a bug attached to the missing SDL code base and to Bitbytebit's patch.

Bug:
When
Code: [Select]
&window->get_primitives(window) is not executed then game.ini is reset to default.

Occurrence:
1. When Disable Loading Screen is enabled on SDLMame (There is no SDL Code branch for this option)
2. If Bitbytebit's patch is used, The code containing the above line is commented out - resulting in the bug.

Reproduce:
1. load game eg. gyruss
2. go to video options and set to cocktail and exit game.
3. load game and exit game again.
4. load game once more and observe the video mode has reset.

Followup to this next post
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 18, 2014, 03:50:05 am
I have added the SDL code for the disable_loading_patch and it now operates correctly without any bugs.
It is integrated in the same fashion as the windows update_hi code.
No other changes have been made to the way Hi Score patch operates.
Note: New sections are labeled OzFalcon for easy identification, They are just copies of MKChamps code
modified for SDL by me and no credit is meant to be assumed by the labeling.

Changes:
/src/osd/sdl/video.c  --> Added update_hi
/src/osd/sdl/window.c  --> Added sdlwindow_video_window_update_hi
/src/osd/sdl/window.h  --> Declare sdlwindow_video_window_update_hi
/src/osd/sdl/osdsdl.h  --> Declare update_hi

New Hi Score Patch is attached as zip.
Just to clarify, The SDL code has been included in this patch.
It is a complete Hi Score patch for both Windows and SDL Mame.

This patch was built with Calamity's 0.153 updated hi score patch ( 'global_free' ---> 'global_free_array').
http://forum.arcadecontrols.com/index.php/topic,135823.msg1432446.html#msg1432446 (http://forum.arcadecontrols.com/index.php/topic,135823.msg1432446.html#msg1432446)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 18, 2014, 06:14:51 am
Similar bugs.....
https://forum.arcadecontrols.com/index.php/topic,64298.msg1193645.html#msg1193645
https://forum.arcadecontrols.com/index.php/topic,64298.msg1311733.html#msg1311733
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Calamity on April 18, 2014, 08:52:07 am
Did anyone manage to save the hiscore_149 patch by any chance?

I'm posting the ones that I still keep in my hd, in case they can be of help.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Calamity on April 18, 2014, 09:00:26 am
Just to clarify, The SDL code has been included in this patch.

Hi ozfalcon, thanks a lot for the fix. It would be great news for me if MKChamp adopted the SDL bits in his patch so I can remove those from the GroovyMAME patch.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: DoTheDonkeyKonga on April 18, 2014, 09:21:03 am
I'm posting the ones that I still keep in my hd, in case they can be of help.

Calamity you are a living legend! Thank you  :notworthy:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 18, 2014, 02:11:14 pm
Here are some more older patches:

Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 18, 2014, 03:27:45 pm
Just to clarify, The SDL code has been included in this patch.

Hi ozfalcon, thanks a lot for the fix. It would be great news for me if MKChamp adopted the SDL bits in his patch so I can remove those from the GroovyMAME patch.

Yes, It would be good for me also if this sdl code was included in the base Hi Score patch. Makes building upon it easier.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: pottzman on April 20, 2014, 12:06:04 pm
so just to clarify is anybody having the same issue as me with mame 153 hiscore patch?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 20, 2014, 08:08:32 pm
so just to clarify is anybody having the same issue as me with mame 153 hiscore patch?

 If I use the standard mameui64 the default mame options save fine but if I compile mameui64 and include your hiscore patch I can change the default mame options but they do not seem to save the changes to the mame.ini file.

Standard Mame doesn't change the mame.ini file and the Hi Score patch doesn't effect this in any way.
This appears to be a function of MameUI - Which as you say - Is broken when you apply the Hi Score patch.
You need to follow up on the MameUI forums as to what code in MameUI needs to change for it to work.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: trickyd on April 20, 2014, 08:27:47 pm
This issue is known as 153 is quite buggy and a new 153.1 uisorce has been released. If your having problems still just edit .ini in the ini folder and that will save the changes.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 27, 2014, 05:43:38 am
sorry about files couldn't be downloaded.

now i paid for domain, and files should be back on-line in one day or so.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 27, 2014, 07:47:02 am
That domain actually belong to abelenki. I would ftp the files there. The only two files I have on my local pc is the latest (153) and the one previous to that. Unless abelenki can get that domain back up or anyone else had a copy of ALL the other files...looks like they will be gone with the wind.

sorry for the inconvenience once again. i had serious life problems, and couldn't update the domain.

MKChamp, now everything is back, so you can use FTP as you did.

p.s.: for someone, it can take more time when DNS is updated.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Tzakiel on May 01, 2014, 11:06:43 pm
I'm able to report that with the latest hiscore.dat, saving hiscores now works for the newer CAVE SH-3 games like ESPgaluda II, dai fukkatsu, etc.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 05, 2014, 11:23:58 am
MKChamp, now everything is back, so you can use FTP as you did.

Thanks abelenki! And the world turns....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: trickyd on May 06, 2014, 08:51:55 pm
Tried to compile mame from the ume153ex2 source had multiple errors
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on May 18, 2014, 09:31:15 am
Hello all,

I'm still with a problem with recent version, highscore doesn’t works

Ubuntu 14.04
mame 0.153 + patch
hiscore.dat in mame directory (config directory) + directory hi

Maybe I missed something ?

No problem with nomag
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on May 19, 2014, 12:44:26 pm
The problem is here

+    state.mem_range = NULL;
+    emu_file f(OPEN_FLAG_READ);
+      filerr = f.open("hiscore", ".dat");

If I try mame with command line, like this
mame /roms/1943.zip -> No problem with Highscore

But behind a fronted the file hiscore.dat seem never open ...

So, I changed this line by

f.open("/games/roms/hiscore", ".dat");

And it works !
Perhaps the best way to definitely fix this problem (at least with Linux) should be to add an option in mame.ini ? Something like hiscoredatpath 

Fred
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bigrap75 on May 27, 2014, 11:22:56 am
Hello everyone, this is my first time in this forum and I was wondering is there a way I can save my hi scores in the mame32 103u2 version or do I have to upgrade to the latest version of Mame? Thanks!!! :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Benzinbruder on June 07, 2014, 11:14:42 am
@bigrap75: There's no support for highscores for mame v.103, so you should probably upgrade.

I tried compiling the source today, unluckily I was very unlucky doing it.
Any ideas what could have gone wrong? I followed Mr. Do's instructions quite carefully.  ???

EDIT:
Found the solution myself the second after posting this...
I had only copied the contents of the mingw64-w64 folder into my MinGW directory. Thought I'd only need the 64-bit part.
Now there's both mingw64-w64 and mingw64-w32 in the MinGW directory. Compiling...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Jumpstile on July 25, 2014, 10:15:12 am
Anything for .154 yet? Thanks in advance!

 - J*
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on July 25, 2014, 10:17:49 am
Probably I will look into it this weekend.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 25, 2014, 10:36:13 am
Anything for .154 yet? Thanks in advance!

It's been so long since they released anything, I quit checking. At any rate, the patch has been updated for 154...download away...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 27, 2014, 01:10:39 am
UPDATED (Fixed compile error)

The "disable_loading_patch" does not work under SDLMame - Because there is no code for it.
I have added the SDL code for the disable_loading_patch and it now operates correctly for SDL.
No other changes have been made to the way Hi Score patch operates.

Note: New sections are labeled OzFalcon for easy identification, They are duplicates of MKChamps code
modified for SDL by me and no credit is meant to be assumed by the labeling.

Changes:
/src/osd/sdl/video.c  --> Added update_hi
/src/osd/sdl/window.c  --> Added sdlwindow_video_window_update_hi
/src/osd/sdl/window.h  --> Declare sdlwindow_video_window_update_hi
/src/osd/sdl/osdsdl.h  --> Declare update_hi

Just to clarify, The SDL code has been included in this patch.
It is a complete Hi Score patch for both Windows and SDL Mame.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 28, 2014, 10:56:41 am
Thanks ozfalon. I made that the baseline patch (re-uploaded hi_154.txt) and will use it going forward.

Gracias!
Jason
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Calamity on July 29, 2014, 07:26:08 am
Thanks for including the patches SDL!

The current patch however crashes the patch command here, due to mixed DOS/Unix line endings. Here's a fixed one.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 29, 2014, 01:08:49 pm
Thanks for including the patches SDL!

The current patch however crashes the patch command here, due to mixed DOS/Unix line endings. Here's a fixed one.

Thanks for correcting this. I re-uploaded the 154 patch to this one. Hope all is well!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 29, 2014, 08:30:04 pm
Thats odd, Now when I patch I get this error
patch --binary -p0 -E <../1.HiScorePatch0154/hi_154.fixed.txt
patching file src/emu/emu.mak
patch: **** malformed patch at line 5:

However the original SDL patch works ok
patch --binary -p0 -E <../1.HiScorePatch0154/hi_154.orig.txt
patching file src/emu/emu.mak
patching file src/emu/emuopts.c
patching file src/emu/emuopts.h
patching file src/emu/hiscore.c
patching file src/emu/hiscore.h
patching file src/emu/machine.c
patching file src/emu/machine.h
patching file src/emu/mame.c
patching file src/emu/profiler.c
patching file src/emu/profiler.h
patching file src/emu/romload.c
patching file src/emu/ui/ui.c
patching file src/emu/video.c
patching file src/emu/video.h
patching file src/mame/machine/cps2crpt.c
patching file src/osd/osdepend.c
patching file src/osd/osdepend.h
patching file src/osd/sdl/osdsdl.h
patching file src/osd/sdl/video.c
patching file src/osd/sdl/window.c
patching file src/osd/sdl/window.h
patching file src/osd/windows/video.c
patching file src/osd/windows/window.c
patching file src/osd/windows/window.h
patching file src/osd/windows/winmain.h


Incase patch version has something to do with it:
patch --version
GNU patch 2.7.1
Copyright (C) 2003, 2009-2012 Free Software Foundation, Inc.
Copyright (C) 1988 Larry Wall

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Larry Wall and Paul Eggert
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 29, 2014, 11:54:30 pm
Thanks for including the patches SDL!

The current patch however crashes the patch command here, due to mixed DOS/Unix line endings. Here's a fixed one.

Calamity, What system and how are you applying the patches?
I'm guessing windows, But there shouldn't be any difference from previous patches.

Do you get the same result from applying the 154 Pre SDL patch?
(Attached)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Calamity on July 30, 2014, 06:12:37 am
It's the patch build that comes with the official MAME toolchain:

Code: [Select]
patch 2.5.4
Copyright 1984-1988 Larry Wall
Copyright 1989-1999 Free Software Foundation, Inc.

This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

written by Larry Wall and Paul Eggert

The pre-SDL patch works fine here.

The only change I did to your patch is saving it again with Sublime Text 2, making sure the line endings option was marked as "Windows". After that it worked fine with this version of 'patch'.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 30, 2014, 06:27:35 am
It's the patch build that comes with the official MAME toolchain:

Code: [Select]
patch 2.5.4
Copyright 1984-1988 Larry Wall
Copyright 1989-1999 Free Software Foundation, Inc.

This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

written by Larry Wall and Paul Eggert

The pre-SDL patch works fine here.

The only change I did to your patch is saving it again with Sublime Text 2, making sure the line endings option was marked as "Windows". After that it worked fine with this version of 'patch'.

ok, I wonder if it's the way the patch is created or if the new sdl parts have unix linefeeds.

Does it give you a line number it fails on?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Calamity on July 30, 2014, 06:37:23 am
Code: [Select]
D:\test>patch -p0 -E <HiScore_0154_sdl.diff
patching file src/emu/emu.mak
Assertion failed: hunk, file patch-2.5.4/patch.c, line 343

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

D:\test>
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 30, 2014, 07:14:06 am
Code: [Select]
D:\test>patch -p0 -E <HiScore_0154_sdl.diff
patching file src/emu/emu.mak
Assertion failed: hunk, file patch-2.5.4/patch.c, line 343

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

D:\test>

Will fire up the laptop (windows) and see if I can make the patch work for both Windows & Linux.
Seems using the Linux tools causes an issue for applying the patch under Windows.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Calamity on July 30, 2014, 08:22:37 am
Will fire up the laptop (windows) and see if I can make the patch work for both Windows & Linux.
Seems using the Linux tools causes an issue for applying the patch under Windows.

This issue is an old one. If you search the GM subforum you'll see several cases where patches resulting from collaboration of Windows & Linux users have caused problems, because of the different line endings etc. To be safe I always create and apply the patches using then Windows tools (the ones from the MAME toolchain), even when working with Linux (ironically).

Also, using Linux text editors for the MAME source code has caused me problems in the past with mixed line endings. I believe that git takes care of all these annoyances with different line endings.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 30, 2014, 08:32:38 pm
Will fire up the laptop (windows) and see if I can make the patch work for both Windows & Linux.
Seems using the Linux tools causes an issue for applying the patch under Windows.

This issue is an old one. If you search the GM subforum you'll see several cases where patches resulting from collaboration of Windows & Linux users have caused problems, because of the different line endings etc. To be safe I always create and apply the patches using then Windows tools (the ones from the MAME toolchain), even when working with Linux (ironically).

Also, using Linux text editors for the MAME source code has caused me problems in the past with mixed line endings. I believe that git takes care of all these annoyances with different line endings.

I'll need to search the GM subforum as you mentioned to catch up on what was discussed.
Interestingly your use of Sublime Text 2 causes patches to fail under Linux (Possibly Mac too?).
Yes, It looks like the safe way is to create the patches with the windows Mame toolchain utils.

Hopefully, Now that the SDL code is in MKCHAMPS build tree - When he creates the patch it will work for both Linux & Windows.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 31, 2014, 12:07:14 am
In the mean time, I have re-created the patch under the windows mame toolchain.
It now works (tested) under both Windows and Linux.

Hopefully this will be the final  ;)
Just to note: Applying patches under Linux seems to be ok, It's just the creation of patches with diff under Linux that caused issue.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 31, 2014, 05:00:32 pm
Thanks guys for getting it sorted out. I've uploaded the latest patch and will use that going forward!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Skeeball_Fanatic on August 26, 2014, 03:12:52 am
Thanks guys for getting it sorted out. I've uploaded the latest patch and will use that going forward!

Alright.  Total newbie here, so be prepared.  I'm using .154.

I've followed the instructions on the first page of this post to the letter (as far as I'm aware).  I used Mr Do's instructions to compile MAME (I'm such a newb that I don't even know what compiling means, I just followed the instructions) and I downloaded the correct diff file and again followed the instructions to the letter (as far as I'm aware - I think you're getting some idea of my competency level here).

The Mame executable runs just fine, but I'm still getting the nagscreen/loading screen and I'm not sure what to do from here.  Bearing in mind I'm not going to understand a heap of technical terminology, does anyone know what I can do from here?  Have I even given you enough info to know what my problem is?

I'm using Windows 7, 64 Bit if that matters.

Thanks in advance and apologies for my idiocy.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bclinton on August 26, 2014, 07:48:15 am
Thanks guys for getting it sorted out. I've uploaded the latest patch and will use that going forward!

Alright.  Total newbie here, so be prepared.  I'm using .154.

I've followed the instructions on the first page of this post to the letter (as far as I'm aware).  I used Mr Do's instructions to compile MAME (I'm such a newb that I don't even know what compiling means, I just followed the instructions) and I downloaded the correct diff file and again followed the instructions to the letter (as far as I'm aware - I think you're getting some idea of my competency level here).

The Mame executable runs just fine, but I'm still getting the nagscreen/loading screen and I'm not sure what to do from here.  Bearing in mind I'm not going to understand a heap of technical terminology, does anyone know what I can do from here?  Have I even given you enough info to know what my problem is?

I'm using Windows 7, 64 Bit if that matters.

Thanks in advance and apologies for my idiocy.

Not trying to change you game plan but I struggled with this too until I found mameuifx. It is already modified to support hi scores and remove nag screens. Take a look at it if you hit a wall...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Skeeball_Fanatic on August 26, 2014, 07:35:16 pm
Thanks guys for getting it sorted out. I've uploaded the latest patch and will use that going forward!

Alright.  Total newbie here, so be prepared.  I'm using .154.

I've followed the instructions on the first page of this post to the letter (as far as I'm aware).  I used Mr Do's instructions to compile MAME (I'm such a newb that I don't even know what compiling means, I just followed the instructions) and I downloaded the correct diff file and again followed the instructions to the letter (as far as I'm aware - I think you're getting some idea of my competency level here).

The Mame executable runs just fine, but I'm still getting the nagscreen/loading screen and I'm not sure what to do from here.  Bearing in mind I'm not going to understand a heap of technical terminology, does anyone know what I can do from here?  Have I even given you enough info to know what my problem is?

I'm using Windows 7, 64 Bit if that matters.

Thanks in advance and apologies for my idiocy.

Not trying to change you game plan but I struggled with this too until I found mameuifx. It is already modified to support hi scores and remove nag screens. Take a look at it if you hit a wall...

Thanks dude, I will look now.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Jakobud on September 16, 2014, 12:40:49 am
Are there any known patches for adding in the good old "skip startup frames" feature?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: darthcommanderman on October 09, 2014, 02:38:42 am
Hi,

Could someone please help with compiling mame 154s? I'm running XP SP3 (32-bit) and 32-bit mingw (ming-mame-w32-20140905.exe).

I followed Mr.Do's steps and patched the hi_154.diff. It runs a long time and then the error below occurs. I observed that the path advice was incorrect in Mr.Do's steps as make.exe was found in c:\mingw\bin, where c:\mingw\mingw64-w32\bin is an empty folder. I'm pretty sure my path correction is correct since make is not found and errors out quickly otherwise.

Update: I have now tried starting over without any diffs and the same error occurs.

Update 2: I observed that Mr.Do's screenshot showed "make -j5" where makemame.bat calls "make -j3". I tried changing this and the error received was only slightly different (these 2 lines: makefile:909: recipe for target 'obj/windows/mame/video/model1.o' failed
make: *** [obj/windows/mame/video/model1.o] Error 1L

--COMPILE ERRORS (save me!!!):
Compiling src/mame/drivers/model2.c...
src/mame/video/model1.c: In function 'void draw_quads(model1_state*, bitmap_rgb3
2&, const rectangle&)':
src/mame/video/model1.c:307:17: error: array subscript is above array bounds [-W
error=array-bounds]
    while(p[ps2+1].y == cury)
                 ^
src/mame/video/model1.c:319:17: error: array subscript is below array bounds [-W
error=array-bounds]
    while(p[ps1-1].y == cury)
                 ^
src/mame/video/model1.c:319:17: error: array subscript is below array bounds [-W
error=array-bounds]
src/mame/video/model1.c:329:17: error: array subscript is above array bounds [-W
error=array-bounds]
    while(p[ps2+1].y == cury)
                 ^
src/mame/video/model1.c:329:17: error: array subscript is above array bounds [-W
error=array-bounds]
src/mame/video/model1.c:305:17: error: array subscript is below array bounds [-W
error=array-bounds]
    while(p[ps1-1].y == cury)
                 ^
Compiling src/mame/video/model2.c...
cc1plus.exe: all warnings being treated as errors
makefile:909: recipe for target 'obj/windows64/mame/video/model1.o' failed
make: *** [obj/windows64/mame/video/model1.o] Error 1
make: *** Waiting for unfinished jobs....



I found this on a random google search but i think it is for a different symptom (and on linux!)

Troubleshoot

Q: When compiling I get error ompiling src/emu/video/9927tms9927.c... cc1plus: warnings being treated as errors src/emu/video/tms9927.c: In function 'void generic_access(const device_config*, offs_t)': src/emu/video/tms9927.c:142: error: array subscript is above array bounds. What should I do?

A: Edit the makefile and uncomment and edit the line

OPTIMIZE=0

Retrieved from "http://www.mohid.com/wiki/index.php?title=Mame"
Category: Linux


Any help is graciously appreciated!!!
D.

 :dizzy:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: krick on October 09, 2014, 10:21:04 am
Start over and make sure you are using the correct build tools from mamedev.org for 0.154:

http://www.mamedev.org/tools/previous-20121207.html (http://www.mamedev.org/tools/previous-20121207.html)

I'd follow the instructions on that page instead of the ones on Mr. Do's page.  I'm not sure his are updated with any frequency.

As an aside, the -j parameter to make controls how many threads are used to build.  -j3 means use 3 threads, -j5 means use 5 threads.  If you have a multi-core and/or hyperthreading CPU, it can dramatically decrease the build time.  Usually, the best number is one more than the number of cores you have.  If you have multi-core and hyperthreading, then I think you use the (cores x 2) + 1  However, some people have issues during the linking stage of the build.  Usually, these are fixed by running the make command again.  If you're experiencing issues compiling, just run "make" without the -j parameter.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: darthcommanderman on October 13, 2014, 02:36:38 am
I've been able to reproduce that same error on another XP/32 machine. I was able to compile first try on Vista/64 into mame64.exe. So I guess i'm out of luck for the moment. Someone has suggested looking into patching mingw so I may look into that.

When i used your older version of the build tool against a fresh download of 154s, I received a 'file not found' error near the end. I have no AV on the XP Home SP3 machine was underpatched so i patched it and still nada. I'll update if i continue the thrust or just bail out and download one of the binaries mentioned in this thread.

Thanks so much for your posting!!!

UPDATE: I realized after reading this that I can probably just compile 32-bit mame using the 64 bit machine so long as i set the 32-bit mingw directories in the path. I think i'm finally over it and I'll just use MAMEUIFX.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on October 15, 2014, 06:43:55 am
hi_154.diff doesn't work with 0.155 source tree, many warnings and errors.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 15, 2014, 04:13:08 pm
hi_154.diff doesn't work with 0.155 source tree, many warnings and errors.

Looking at it now...

EDIT....Uploaded and ready to roll!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lamprey on October 15, 2014, 08:45:25 pm
hi_154.diff doesn't work with 0.155 source tree, many warnings and errors.

Looking at it now...

EDIT....Uploaded and ready to roll!
Sweet, thanks a ton!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on October 15, 2014, 08:59:23 pm
EDIT....Uploaded and ready to roll!

many thanks!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Andypc on October 19, 2014, 05:33:37 am
I am getting a compile error with 0.155

Make.exe: *** [obj/windows64/emu/cpu/h8/h8.inc] Error 2
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Skinnysloth on October 19, 2014, 10:20:20 pm
I'm having an issue with the video settings not being saved.  I go into mame and set it to display my bezel.  If I quit and restart mame, the bezel is displayed.  If I quit again and restart, the bezel no longer shows up.  I have to go back into the menu setting to set the bezel again.

This was not happening with the mame 0.154 compiled with just the hiscore diff.  It doesn't happen with the precompiled 0.155b from the officical mame site.  It happens with the mame 0.155 compiled with just the hicore diff.

I'm not sure if this is an issue with the hiscore diff, or the 0.155 source.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Skinnysloth on October 21, 2014, 04:23:14 am
Ok, so I complied the 0.155 source without the 0.155 hiscore diff and my video options are being saved.  It looks like there's something in the 0.155 hiscore diff preventing the video settings from being save or it's resetting it.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lamprey on October 21, 2014, 03:27:30 pm
Ok, so I complied the 0.155 source without the 0.155 hiscore diff and my video options are being saved.  It looks like there's something in the 0.155 hiscore diff preventing the video settings from being save or it's resetting it.
Confirmed.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 21, 2014, 04:21:10 pm
Ok, so I complied the 0.155 source without the 0.155 hiscore diff and my video options are being saved.  It looks like there's something in the 0.155 hiscore diff preventing the video settings from being save or it's resetting it.
Confirmed.

I uploaded a new version that I believe will correct this(download from the usual spot...). Can someone compile and test and let me know?
Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Skinnysloth on October 21, 2014, 06:26:06 pm
I uploaded a new version that I believe will correct this(download from the usual spot...). Can someone compile and test and let me know?
Thanks!

Just compiled with the new 0.155 diff and video options are now being saved.  Thanks for the fix.  :cheers:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: phulshof on October 26, 2014, 07:11:49 am
I'm obviously doing something wrong, but I'm not getting anywhere with the 0.155 patch. It probably doesn't help that I'm doing this under Linux.
For starters, it doesn't appear to be able to find the files:

-----
Quote
patch < hi_155_2.diff
(Stripping trailing CRs from patch; use --binary to disable.)
can't find file to patch at input line 12
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru old/emu/emu.mak src/emu/emu.mak
|+++ src/emu/emu.mak    2014-10-21 15:13:00.000000000 -0500
|
| # emulator core objects
| #-------------------------------------------------
| EMUOBJS = \
|       $(EMUOBJ)/emupal.o \
|       $(EMUOBJ)/hash.o \
|       $(EMUOBJ)/image.o \
|       $(EMUOBJ)/input.o \
|--- old/emu/emuopts.c  2014-09-23 00:48:10.000000000 -0500
--------------------------
File to patch:
---

which is interesting, because the file's right there:

-----
Quote
ls src/emu/emu.mak
src/emu/emu.mak
-----

so I figure I'll help it a little:

-----
Quote
File to patch: src/emu/emu.mak
patching file src/emu/emu.mak
Hunk #1 FAILED at 52 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/emu.mak.rej
-----

Any thoughts?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 27, 2014, 11:19:31 am
Try patch -p0 -E <hi_155_2.diff
Title: Re: hiscore diff (with no nag/white box removal)
Post by: phulshof on October 28, 2014, 02:30:24 am
Try patch -p0 -E <hi_155_2.diff

That takes care of one error; we're on the right track. :)
Quote
patch -p0 -E < hi_155_2.diff
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/emu/emu.mak
Hunk #1 FAILED at 52 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/emu.mak.rej
(Stripping trailing CRs from patch; use --binary to disable.)
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- old/emu/emuopts.h  2014-06-06 12:11:32.000000000 -0500
--------------------------
File to patch:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: phulshof on October 28, 2014, 04:53:07 am
There appears to be a bit of discrepancy between the code too; perhaps I need a different code base? I'm currently using mame0155s.zip  from http://www.mamedev.org/release.html (http://www.mamedev.org/release.html)

From the patch:
Quote
diff -Nru old/emu/emu.mak src/emu/emu.mak
+++ src/emu/emu.mak   2014-10-21 15:13:00.000000000 -0500
 
 # emulator core objects
 #-------------------------------------------------
 EMUOBJS = \
    $(EMUOBJ)/emupal.o \
    $(EMUOBJ)/hash.o \
    $(EMUOBJ)/image.o \
    $(EMUOBJ)/input.o \

From the file:
Quote
#-------------------------------------------------
# emulator core objects
#-------------------------------------------------

EMUOBJS = \
   $(EMUOBJ)/hashfile.o \
   $(EMUOBJ)/addrmap.o \
   $(EMUOBJ)/attotime.o \
   $(EMUOBJ)/audit.o \
   $(EMUOBJ)/cheat.o \
   $(EMUOBJ)/clifront.o \
   $(EMUOBJ)/config.o \
   $(EMUOBJ)/crsshair.o \
   $(EMUOBJ)/debugger.o \
   $(EMUOBJ)/devdelegate.o \
   $(EMUOBJ)/devcb.o \
   $(EMUOBJ)/devcpu.o \
   $(EMUOBJ)/devfind.o \
   $(EMUOBJ)/device.o \
   $(EMUOBJ)/didisasm.o \
   $(EMUOBJ)/diexec.o \
   $(EMUOBJ)/digfx.o \
   $(EMUOBJ)/diimage.o \
   $(EMUOBJ)/dimemory.o \
   $(EMUOBJ)/dinetwork.o \
   $(EMUOBJ)/dinvram.o \
   $(EMUOBJ)/dioutput.o \
   $(EMUOBJ)/dirtc.o \
   $(EMUOBJ)/diserial.o \
   $(EMUOBJ)/dislot.o \
   $(EMUOBJ)/disound.o \
   $(EMUOBJ)/dispatch.o \
   $(EMUOBJ)/distate.o \
   $(EMUOBJ)/divideo.o \
   $(EMUOBJ)/drawgfx.o \
   $(EMUOBJ)/driver.o \
   $(EMUOBJ)/drivenum.o \
   $(EMUOBJ)/emualloc.o \
   $(EMUOBJ)/emucore.o \
   $(EMUOBJ)/emuopts.o \
   $(EMUOBJ)/emupal.o \
   $(EMUOBJ)/fileio.o \
   $(EMUOBJ)/hash.o \
   $(EMUOBJ)/image.o \
   $(EMUOBJ)/info.o \
   $(EMUOBJ)/input.o \
   $(EMUOBJ)/ioport.o \
   $(EMUOBJ)/luaengine.o \
   $(EMUOBJ)/mame.o \
   $(EMUOBJ)/machine.o \
   $(EMUOBJ)/mconfig.o \
   $(EMUOBJ)/memarray.o \
   $(EMUOBJ)/memory.o \
   $(EMUOBJ)/network.o \
   $(EMUOBJ)/output.o \
   $(EMUOBJ)/render.o \
   $(EMUOBJ)/rendfont.o \
   $(EMUOBJ)/rendlay.o \
   $(EMUOBJ)/rendutil.o \
   $(EMUOBJ)/romload.o \
   $(EMUOBJ)/save.o \
   $(EMUOBJ)/schedule.o \
   $(EMUOBJ)/screen.o \
   $(EMUOBJ)/softlist.o \
   $(EMUOBJ)/sound.o \
   $(EMUOBJ)/speaker.o \
   $(EMUOBJ)/sprite.o \
   $(EMUOBJ)/tilemap.o \
   $(EMUOBJ)/timer.o \
   $(EMUOBJ)/uiinput.o \
   $(EMUOBJ)/ui/ui.o \
   $(EMUOBJ)/ui/swlist.o \
   $(EMUOBJ)/ui/menu.o \
   $(EMUOBJ)/ui/mainmenu.o \
   $(EMUOBJ)/ui/miscmenu.o \
   $(EMUOBJ)/ui/selgame.o \
   $(EMUOBJ)/ui/filemngr.o \
   $(EMUOBJ)/ui/filesel.o \
   $(EMUOBJ)/ui/imgcntrl.o \
   $(EMUOBJ)/ui/imginfo.o \
   $(EMUOBJ)/ui/barcode.o \
   $(EMUOBJ)/ui/tapectrl.o \
   $(EMUOBJ)/ui/viewgfx.o \
   $(EMUOBJ)/validity.o \
   $(EMUOBJ)/video.o \
   $(EMUOBJ)/debug/debugcmd.o \
   $(EMUOBJ)/debug/debugcon.o \
   $(EMUOBJ)/debug/debugcpu.o \
   $(EMUOBJ)/debug/debughlp.o \
   $(EMUOBJ)/debug/debugvw.o \
   $(EMUOBJ)/debug/dvdisasm.o \
   $(EMUOBJ)/debug/dvmemory.o \
   $(EMUOBJ)/debug/dvbpoints.o \
   $(EMUOBJ)/debug/dvwpoints.o \
   $(EMUOBJ)/debug/dvstate.o \
   $(EMUOBJ)/debug/dvtext.o \
   $(EMUOBJ)/debug/express.o \
   $(EMUOBJ)/debug/textbuf.o \
   $(EMUOBJ)/profiler.o \
   $(EMUOBJ)/webengine.o \
   $(OSDOBJ)/osdcore.o \
   $(OSDOBJ)/osdepend.o \
   $(OSDOBJ)/osdnet.o \
   $(OSDOBJ)/modules/sound/none.o \
   $(OSDOBJ)/modules/debugger/none.o \
   $(OSDOBJ)/modules/debugger/debugint.o \

I can see how that's not going to match...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: OnePunchRob on November 03, 2014, 07:36:37 am
I am getting a compile error with 0.155

Make.exe: *** [obj/windows64/emu/cpu/h8/h8.inc] Error 2

I had this problem too.  I used an older version of MinGW, which I used to compile 153, and it works fine now.

If you are still having trouble, try using an older version of MinGW.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bandit721 on December 06, 2014, 01:49:24 pm
Quick question - Is there any update for MAME .156 or do we just use the same diff as version .155?

Thanks in advance!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: haynor666 on December 08, 2014, 02:51:05 am
I've taken 156 diff from http://forum.arcadecontrols.com/index.php/topic,135823.0.html (http://forum.arcadecontrols.com/index.php/topic,135823.0.html)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on December 08, 2014, 11:40:40 pm
I've taken 156 diff from http://forum.arcadecontrols.com/index.php/topic,135823.0.html (http://forum.arcadecontrols.com/index.php/topic,135823.0.html)

thanks for the link.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bandit721 on December 09, 2014, 09:32:20 am
Thanks haynor
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on December 09, 2014, 10:42:55 am
FYI...the 155 patch works on 156.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: haynor666 on December 10, 2014, 03:44:43 pm
I need hi_156 to build groovymame without galaxian hack and since everything was together in post about groovymame 156 I didn't bother to test hi_155 if this version will work :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: bandit721 on December 12, 2014, 07:53:17 am
Thanks for the confirmation MKChamp!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: haynor666 on December 14, 2014, 06:28:23 am
You know, there are some diffrences between 155 posted here and 156 posted on groovymame topic.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Janez on December 16, 2014, 12:40:35 pm
Hi everyone I'm new here.
I want to thank you MKChamp for your work with the diff file for hiscore support, I really find it useful.
May I make a request?
Can you add an option to choose the path of the hiscore.dat file?
Something like:

mame -hiscore_file /path/to/hiscore.dat pacman

It will be very useful for a Linux user like me, because in Linux, executables, configuration and library files are often in different directories of the filesystem.

I also have a question:
If I press F3 the game resets and the hiscore is resetted too. Is it a correct behaviour? When MAME had the hiscore support built-in, resetting didn't wipe the hiscore.

TIA
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on December 16, 2014, 12:46:04 pm
Taken from "mame.ini":
Code: [Select]
hiscore_directory         $HOME/hi
Title: Re: hiscore diff (with no nag/white box removal)
Post by: haynor666 on December 16, 2014, 04:02:32 pm
If I press F3 the game resets and the hiscore is resetted too. Is it a correct behaviour? When MAME had the hiscore support built-in, resetting didn't wipe the hiscore.
That's normal. Highscores are read and put in memory only when game starts. When You hit reset game goes back to it's default state without highscore patch.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lamprey on December 16, 2014, 05:59:52 pm
Taken from "mame.ini":
Code: [Select]
hiscore_directory         $HOME/hi
Can you put the DAT file there too? Or is that just where the high scores are saved to? I was under the impression that you had to have the highscore.dat in the same folder with the MAME exe.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on December 17, 2014, 04:28:08 am
That is the directory where you need to put "hiscore.dat" (speaking of linux OSes; I don't know if windows has different options).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Janez on December 17, 2014, 06:38:04 am
Sorry Ansa89 but it doesn't work.
hiscore_directory is the directory in which the .hi files are stored.
If I put hiscore.dat between them nothing happen.
To have hiscore support I need to have hiscore.dat in the same directory from which I launch MAME.
This is unconfortable and I wish to avoid.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on December 17, 2014, 07:08:10 am
That's strange, I have the dat file in a separated path and it works without any issue.
I'll check more deeply ASAP.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: haynor666 on December 26, 2014, 09:05:53 am
On windows highscore.dat must be placed in hi directory. Tested - it works.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on December 31, 2014, 04:45:25 am
hi_155_2.diff doesn't work with 0.157 source tree, many warnings and errors.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: haynor666 on December 31, 2014, 11:39:02 am
You may try a small fixto already fixed hiscore 156 by Calamity.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on December 31, 2014, 11:43:30 am
You may try a small fixto already fixed hiscore 156 by Calamity.

thanks, haynor666, works perfectly.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on December 31, 2014, 02:00:42 pm
Uploaded hi_157 to the front page!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on December 31, 2014, 02:41:06 pm
Uploaded hi_157 to the front page!

thanks!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on January 01, 2015, 03:33:11 pm
trying to compile sdlmame on a Mac - it compiles fine when i don't add the whisker.diff, but if i do i get the following error during the compile:

Code: [Select]
Compiling src/osd/sdl/draw13.c...
src/osd/sdl/video.c:359:4: error: use of undeclared identifier
      'sdlwindow_video_window_update_hi'
                        sdlwindow_video_window_update_hi(machine(), window);
                        ^
1 error generated.
make: *** [obj/sdl64/osd/sdl/video.o] Error 1
make: *** Waiting for unfinished jobs....
src/osd/sdl/window.c:1045:27: error: unused variable 'primlist'
      [-Werror,-Wunused-variable]
                        render_primitive_list *primlist = &get_primitives(this);
                                               ^
1 error generated.
make: *** [obj/sdl64/osd/sdl/window.o] Error 1/code]

Now, i managed to compile 156 just a week or so ago, this is my first time messing with this sort of stuff so am now a bit stuck - i guess as 156 compiled fine that i am doing something wrong or missing something, anyone got any ideas? Also, if i am posting in the wrong place please let me know...

cheers, and Happy New Year!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Calamity on January 01, 2015, 04:30:02 pm
I've modified the current MKChamp's patch by removing the osd part, so now the size is half of the old one. This should make the task of mantaining it much easier. I've done basic testing here and it seems to work fine. Anyway, maybe the osd part was there for a good reason that I'm missing, so let's consider it experimental until it's confirmed to be right.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on January 01, 2015, 05:11:55 pm
In an effort to get it working I too removed a load of the code, in my case quite a bit from the end, despite being new to this it seems to have worked and mame compiled and runs as it should, when I get near my computer I'll compare what I did with your file, hopefully will be the same, ar least then I know I'm on the right track with this stuff...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nitrogen_widget on January 03, 2015, 01:40:38 pm
I've modified the current MKChamp's patch by removing the osd part, so now the size is half of the old one. This should make the task of mantaining it much easier. I've done basic testing here and it seems to work fine. Anyway, maybe the osd part was there for a good reason that I'm missing, so let's consider it experimental until it's confirmed to be right.

Thank you!
I was getting pretty much the exact same error as chubsta on Linux with the patch on the first page.
This patch let me finish the compile.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on January 04, 2015, 07:33:00 pm
I've modified the current MKChamp's patch by removing the osd part, so now the size is half of the old one. This should make the task of mantaining it much easier. I've done basic testing here and it seems to work fine. Anyway, maybe the osd part was there for a good reason that I'm missing, so let's consider it experimental until it's confirmed to be right.

I've been off the radar for a bit but I'll give it a test and examine the code this week to see if I can find any effects.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: lordnacho on January 26, 2015, 11:45:16 am
Anyone seen this error before?
Code: [Select]
Linking obj/windows64/build/makedep.exe...
Linking obj/windows64/build/makemak.exe...
Linking obj/windows64/build/makelist.exe...
Linking obj/windows64/build/png2bdc.exe...
Linking obj/windows64/build/verinfo.exe...
Linking obj/windows64/build/m68kmake.exe...
Building driver list src/mame/mame.lst...
Converting src/mame/layout/ace.lay...
process_begin: CreateProcess(NULL, python src/build/file2str.py src/mame/layout/
ace.lay obj/windows64/mame/layout/ace.lh layout_ace, ...) failed.
make (e=2): The system cannot find the file specified.
makefile:975: recipe for target 'obj/windows64/mame/layout/ace.lh' failed
make: *** [obj/windows64/mame/layout/ace.lh] Error 2
make: *** Waiting for unfinished jobs....
29856 drivers found

Note: I'm following http://mrdo.mameworld.info/compile.php (http://mrdo.mameworld.info/compile.php) for 64bit

Update: went with headkaze's mame compiler.  worked first time. 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 28, 2015, 08:34:51 am
hi_157.diff doesn't work with 0.158 source tree, many warnings and errors.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 28, 2015, 03:34:36 pm
Can you compile this and let me know if it works before I put it on the front page? My PC I used to compile will be tied up for a few days...

Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 28, 2015, 04:42:24 pm
Can you compile this and let me know if it works before I put it on the front page? My PC I used to compile will be tied up for a few days...

the diff applied fine, but it didn't compile. :(

Code: [Select]
Compiling obj/windows64/mame/mame/drivlist.c...
Archiving obj/windows64/mame/mame/liboptional.a...
Linking mame64.exe...
obj/windows64/libosd.a(osdobj_common.o):osdobj_common.c:(.rdata$_ZTV12osd_common_t[_ZTV12osd_common_t]+0x58): undefined r
eference to `osd_interface::update_hi(bool)'
collect2.exe: error: ld returned 1 exit status
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 28, 2015, 05:05:55 pm
Can you compile this and let me know if it works before I put it on the front page? My PC I used to compile will be tied up for a few days...

the diff applied fine, but it didn't compile. :(

Code: [Select]
Compiling obj/windows64/mame/mame/drivlist.c...
Archiving obj/windows64/mame/mame/liboptional.a...
Linking mame64.exe...
obj/windows64/libosd.a(osdobj_common.o):osdobj_common.c:(.rdata$_ZTV12osd_common_t[_ZTV12osd_common_t]+0x58): undefined r
eference to `osd_interface::update_hi(bool)'
collect2.exe: error: ld returned 1 exit status

Ok....this one should fix that. Please do a clean build...and thanks for helping me out!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 28, 2015, 05:37:30 pm
Ok....this one should fix that. Please do a clean build...and thanks for helping me out!

this one applied and compiled just fine!!

thanks a lot!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nitrogen_widget on February 05, 2015, 06:57:56 am
hello, .158 compiles fine without the patch on 64bit linux but with the patch I get the following error.

Quote
Compiling src/osd/sdl/window.c...
src/osd/sdl/video.c: In member function ‘virtual void sdl_osd_interface::update_hi(bool)’:
src/osd/sdl/video.c:363:54: error: ‘sdlwindow_video_window_update_hi’ was not declared in this scope
    sdlwindow_video_window_update_hi(machine(), window);
                                                      ^
makefile:956: recipe for target 'obj/sdl64/osd/sdl/video.o' failed
make: *** [obj/sdl64/osd/sdl/video.o] Error 1
make: *** Waiting for unfinished jobs....
src/osd/sdl/window.c: In member function ‘void sdl_window_info::video_window_update_hi(running_machine&)’:
src/osd/sdl/window.c:1095:58: error: ‘get_primitives’ was not declared in this scope
    render_primitive_list *primlist = &get_primitives(this);
                                                          ^
src/osd/sdl/window.c:1095:27: error: unused variable ‘primlist’ [-Werror=unused-variable]
    render_primitive_list *primlist = &get_primitives(this);
                           ^
cc1plus: all warnings being treated as errors
makefile:956: recipe for target 'obj/sdl64/osd/sdl/window.o' failed
make: *** [obj/sdl64/osd/sdl/window.o] Error 1
[mame@localhost 158spatched]$

thanks in advance
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GumboMcGee on February 09, 2015, 12:18:43 pm
hello, .158 compiles fine without the patch on 64bit linux but with the patch I get the following error.

Quote
Compiling src/osd/sdl/window.c...
src/osd/sdl/video.c: In member function ‘virtual void sdl_osd_interface::update_hi(bool)’:
src/osd/sdl/video.c:363:54: error: ‘sdlwindow_video_window_update_hi’ was not declared in this scope
    sdlwindow_video_window_update_hi(machine(), window);
                                                      ^
makefile:956: recipe for target 'obj/sdl64/osd/sdl/video.o' failed
make: *** [obj/sdl64/osd/sdl/video.o] Error 1
make: *** Waiting for unfinished jobs....
src/osd/sdl/window.c: In member function ‘void sdl_window_info::video_window_update_hi(running_machine&)’:
src/osd/sdl/window.c:1095:58: error: ‘get_primitives’ was not declared in this scope
    render_primitive_list *primlist = &get_primitives(this);
                                                          ^
src/osd/sdl/window.c:1095:27: error: unused variable ‘primlist’ [-Werror=unused-variable]
    render_primitive_list *primlist = &get_primitives(this);
                           ^
cc1plus: all warnings being treated as errors
makefile:956: recipe for target 'obj/sdl64/osd/sdl/window.o' failed
make: *** [obj/sdl64/osd/sdl/window.o] Error 1
[mame@localhost 158spatched]$

thanks in advance

Having the same issue with both cross compiling on mc64 for linux, and Ubuntu 14.10, Debian Squeeze and Debian Wheezy x64
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 09, 2015, 02:40:45 pm
I'm obviously running windows, so I don't get those errors when compiling. Please use the attach diff file and let me know if it works for yall.If it does, I will move it the the hi_158 file on the main page. Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GumboMcGee on February 09, 2015, 05:41:02 pm
I'm obviously running windows, so I don't get those errors when compiling. Please use the attach diff file and let me know if it works for yall.If it does, I will move it the the hi_158 file on the main page. Thanks!

Hey MKChamp,
Thanks for the update, it did something right, but still fell at the last hurdle. see below.

Code: [Select]
Compiling obj/sdl64/mame/mame/drivlist.c...
Archiving obj/sdl64/libosd.a...
Archiving obj/sdl64/mame/mame/libbus.a...
Compiling src/emu/cpu/m68000/m68kcpu.c...
Compiling obj/sdl64/emu/cpu/m68000/m68kops.c...
Archiving obj/sdl64/libemu.a...
Archiving obj/sdl64/mame/mame/liboptional.a...
Linking mame64...
obj/sdl64/libosd.a(osdobj_common.o):(.rodata._ZTI12osd_common_t[_ZTI12osd_common_t]+0x10): undefined reference to `typeinfo for osd_interface'
collect2: error: ld returned 1 exit status
make: *** [mame64] Error 1
rm obj/sdl64/osd/modules/debugger/qt/debugqtdeviceinformationwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtmemorywindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtview.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtdasmwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtdeviceswindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtlogwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtmainwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtbreakpointswindow.moc.c

Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 10, 2015, 03:22:30 pm
Did you perform a clean build?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GumboMcGee on February 10, 2015, 04:47:01 pm
Did you perform a clean build?

Yeah, several times, Untouched source compiles fine.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 10, 2015, 05:44:45 pm
Clean compile...I mean as did you delete the obj folder and start the compile from scratch?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GumboMcGee on February 10, 2015, 05:47:28 pm
Clean compile...I mean as did you delete the obj folder and start the compile from scratch?

Indeed i did, I completely removed the folder and re-downloaded the source and recompiled.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nitrogen_widget on February 10, 2015, 07:40:30 pm
Clean compile...I mean as did you delete the obj folder and start the compile from scratch?

Indeed i did, I completely removed the folder and re-downloaded the source and recompiled.

Same her.
Deleted folder & re downloaded source.
Got this:
Quote
Archiving obj/sdl64/libportmidi.a...
Linking mame64...
obj/sdl64/libosd.a(osdobj_common.o):(.rodata._ZTI12osd_common_t[_ZTI12osd_common_t]+0x10): undefined reference to `typeinfo for osd_interface'
collect2: error: ld returned 1 exit status
makefile:931: recipe for target 'mame64' failed
make: *** [mame64] Error 1
rm obj/sdl64/osd/modules/debugger/qt/debugqtmemorywindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtview.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtdasmwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtdeviceswindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtlogwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtmainwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtdeviceinformationwindow.moc.c obj/sdl64/osd/modules/debugger/qt/debugqtbreakpointswindow.moc.c
[mame@localhost mame0158]$
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 11, 2015, 01:38:27 pm
OK...shot in the dark. Please try this one...and if this doesn't work, maybe OZFALCON can supply the fix (he implemented the sdl code into the patch originally).

Fingers crossed!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GumboMcGee on February 11, 2015, 03:16:17 pm
OK...shot in the dark. Please try this one...and if this doesn't work, maybe OZFALCON can supply the fix (he implemented the sdl code into the patch originally).

Fingers crossed!

Bad news from my end im affraid :(
Exactly the same error, I was really hoping it would work this time,
Thank you for giving it a try MKChamp, Its Apreciated :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: limner on February 17, 2015, 12:28:56 pm
hi
i'm trying to compile mame in order to include the "high score" diff file.

i downloaded 155 not-compiled mame files and the proper diff file to include.

i installed mingw in C:\MinGW\mingw64-w32
and modified the make files and directory names as Mr Do told

but i always have the same error (image included)
anyone can help me?

thanks

P.S.
i also tried to compile mame without diff file and i had the same error at the same time.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on February 17, 2015, 12:50:31 pm
Have you installed python executable (and made it "visible" to mingw)?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: limner on February 17, 2015, 02:10:54 pm
Have you installed python executable (and made it "visible" to mingw)?

?
Where on the guide is it explained?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on February 17, 2015, 02:45:28 pm
Some time ago I found this topic (http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=333434&page=&view=&sb=5&o=&vc=1) where someone said "also run setup-python.bat and add the executable path to your PATH variable".
Title: Re: hiscore diff (with no nag/white box removal)
Post by: limner on February 17, 2015, 04:27:15 pm
Thanks Ansa89
i've been able to compile and use highscore diff for 155 version.

Now....

i've compiled mame and downloaded highscore.dat and put in the mame directory
i also have created an empty "hi" directory in the mame directory...

....and now? Do i have to do something in the mame.ini?

i know that the highscore is not working for every game but if i want to try if it works...what should i do?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ansa89 on February 18, 2015, 03:51:23 am
Run "your_compiled_mame.exe -cc" to recreate your mame.ini, it should add new options for high scores support.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on February 25, 2015, 06:05:42 pm
FYI
I uploaded a new patch for 159. The SDL portion of the patch does NOT work...so, basically this is for windows versions only. If anyone wants to get the SDL portion working again, please do and I will add it in. Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wolfi on February 26, 2015, 01:05:54 am
Thank you for your Support over all those years!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on February 26, 2015, 01:10:12 am
FYI
I uploaded a new patch for 159.

thanks!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on February 26, 2015, 02:48:29 am
FYI
I uploaded a new patch for 159. The SDL portion of the patch does NOT work...so, basically this is for windows versions only. If anyone wants to get the SDL portion working again, please do and I will add it in. Thanks!

Terrible news for this of us using SDLMame, hopefully someone with the skills to make it work will give it a go - thanks for all the work though, really makes a difference to the whole mame experience!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: -rich- on February 27, 2015, 07:27:50 pm
FYI
I uploaded a new patch for 159. The SDL portion of the patch does NOT work...so, basically this is for windows versions only. If anyone wants to get the SDL portion working again, please do and I will add it in. Thanks!

Terrible news for this of us using SDLMame, hopefully someone with the skills to make it work will give it a go - thanks for all the work though, really makes a difference to the whole mame experience!

I am working on this at the moment. I have managed to get it to compile but it's breaking at the linking stage. I am a developer but I've never used C++ so the issue is not obvious to me at the moment but I'll figure it out in due course. Once I have a working diff I'll post if (and be happy to try and maintain it going forward). In the meantime you can see the changes (and assumptions) I made here http://www.evernote.com/l/ABS6zai1KQlLCo7bayTkmEBBs78RA6UhDKU/ (http://www.evernote.com/l/ABS6zai1KQlLCo7bayTkmEBBs78RA6UhDKU/)

In the meantime if someone else figures it out then we all win so don't wait for me :)

rich
Title: Re: hiscore diff (with no nag/white box removal)
Post by: xenonk on March 14, 2015, 08:55:24 pm
Possible suspects for that linker error are that there's a defined but undeclared virtual, or a definition is in the wrong spot and the linker is running into a reference to its symbol before it actually sees the symbol created. In the latter case a shared library would be unaffected, but afaik mame is compiled completely static.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: what2be on March 26, 2015, 03:26:34 am
Sorry if this is a asnine question but does HK's hiscore.diff always contain the no nag / white box removed in the diff or do I need a seperate no nag diff like I see on misc sites on the net? Its been years since ive compiled a mame version and hopefully am headed in the right direction. I recently got the mame buildtools from GIT and the latest mame compiler 64 and 160 sources and hoping to compile my own version of mameuifx once MK's hi-score for 160 is released. Also, not to hijack the thread but  can anyone point me towards a current tutorial on doing this using buildtools via GIT?
Title: Error Patching in Archlinux
Post by: kmi on March 29, 2015, 05:50:25 am
Hi, when applying the patch hi_160 in arch linux i have a lot of errors, how do I can solve the problem?

patch -p0 -E --binary <hi_160.diff
Code: [Select]
patching file src/emu/emu.mak
Hunk #1 FAILED at 46 (different line endings).
Hunk #2 FAILED at 88 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file src/emu/emu.mak.rej
patching file src/emu/emuopts.c
Hunk #1 FAILED at 52 (different line endings).
Hunk #2 FAILED at 180 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file src/emu/emuopts.c.rej
patching file src/emu/emuopts.h
Hunk #1 FAILED at 65 (different line endings).
Hunk #2 FAILED at 181 (different line endings).
Hunk #3 FAILED at 236 (different line endings).
Hunk #4 FAILED at 342 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/emu/emuopts.h.rej
patching file src/emu/hiscore.c
patching file src/emu/hiscore.h
patching file src/emu/machine.c
Hunk #1 FAILED at 75 (different line endings).
Hunk #2 FAILED at 115 (different line endings).
Hunk #3 FAILED at 161 (different line endings).
Hunk #4 FAILED at 352 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/emu/machine.c.rej
patching file src/emu/machine.h
Hunk #1 FAILED at 234 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/machine.h.rej
patching file src/emu/mame.c
Hunk #1 FAILED at 79 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/mame.c.rej
patching file src/emu/profiler.c
Hunk #1 FAILED at 156 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/profiler.c.rej
patching file src/emu/profiler.h
Hunk #1 FAILED at 51 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/profiler.h.rej
patching file src/emu/romload.c
Hunk #1 FAILED at 535 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/romload.c.rej
patching file src/emu/ui/ui.c
Hunk #1 FAILED at 335 (different line endings).
Hunk #2 FAILED at 351 (different line endings).
Hunk #3 FAILED at 373 (different line endings).
Hunk #4 FAILED at 398 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/emu/ui/ui.c.rej
patching file src/emu/video.c
Hunk #1 FAILED at 466 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/video.c.rej
patching file src/emu/video.h
Hunk #1 FAILED at 79 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/video.h.rej
patching file src/mame/machine/cps2crpt.c
Hunk #1 FAILED at 111 (different line endings).
Hunk #2 FAILED at 672 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file src/mame/machine/cps2crpt.c.rej
patching file src/osd/modules/lib/osdobj_common.c
Hunk #1 FAILED at 335 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/modules/lib/osdobj_common.c.rej
patching file src/osd/modules/lib/osdobj_common.h
Hunk #1 FAILED at 153 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/modules/lib/osdobj_common.h.rej
patching file src/osd/osdepend.h
Hunk #1 FAILED at 64 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/osdepend.h.rej
patching file src/osd/osdmini/minimain.c
Hunk #1 FAILED at 164 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/osdmini/minimain.c.rej
patching file src/osd/osdmini/osdmini.h
Hunk #1 FAILED at 33 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/osdmini/osdmini.h.rej
patching file src/osd/sdl/osdsdl.h
Hunk #1 FAILED at 155 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/sdl/osdsdl.h.rej
patching file src/osd/sdl/video.c
Hunk #1 FAILED at 326 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/sdl/video.c.rej
patching file src/osd/sdl/window.c
Hunk #1 FAILED at 1047 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/sdl/window.c.rej
patching file src/osd/windows/video.c
Hunk #1 FAILED at 203 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/video.c.rej
patching file src/osd/windows/window.c
Hunk #1 FAILED at 826 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/window.c.rej
patching file src/osd/windows/window.h
Hunk #1 FAILED at 45 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/window.h.rej
patching file src/osd/windows/winmain.h
Hunk #1 FAILED at 269 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/winmain.h.rej
Title: Re: hiscore diff (with no nag/white box removal)
Post by: darryldale on April 01, 2015, 09:09:48 pm
Weird behaviour with patched versions. Am I the only one that has this issue?

I'll use centipede as an example.

If I launch centipede through the vanilla mame .160 latest and greatest no issues (mame_160.exe centiped)

If I launch centipede through the patched mame .160 it complains about missing roms. (mame_160_patched.exe centiped)

This is kind of annoying since I'm running through Hyperspin and I have gotten around it by doing the following:

1) Set my mame wheel to launch mame.bat
2) Contents of mame.bat are as follows:

mame_160_patched.exe %1
if %errorlevel% neq 0 mame_160.exe %1

What it essentially does is first try to launch the game using the patched version and if it errors out will launch the vanilla mame version.

Anybody else have this issue?

Only certain games have this issue. Two that I have come across so far are Centipede and Indian Jones.
Title: Re: Error Patching in Archlinux
Post by: ayjanu on April 04, 2015, 07:28:02 pm
Hi, when applying the patch hi_160 in arch linux i have a lot of errors, how do I can solve the problem?

patch -p0 -E --binary <hi_160.diff
Code: [Select]
patching file src/emu/emu.mak
Hunk #1 FAILED at 46 (different line endings).
Hunk #2 FAILED at 88 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file src/emu/emu.mak.rej
patching file src/emu/emuopts.c
Hunk #1 FAILED at 52 (different line endings).
Hunk #2 FAILED at 180 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file src/emu/emuopts.c.rej
patching file src/emu/emuopts.h
Hunk #1 FAILED at 65 (different line endings).
Hunk #2 FAILED at 181 (different line endings).
Hunk #3 FAILED at 236 (different line endings).
Hunk #4 FAILED at 342 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/emu/emuopts.h.rej
patching file src/emu/hiscore.c
patching file src/emu/hiscore.h
patching file src/emu/machine.c
Hunk #1 FAILED at 75 (different line endings).
Hunk #2 FAILED at 115 (different line endings).
Hunk #3 FAILED at 161 (different line endings).
Hunk #4 FAILED at 352 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/emu/machine.c.rej
patching file src/emu/machine.h
Hunk #1 FAILED at 234 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/machine.h.rej
patching file src/emu/mame.c
Hunk #1 FAILED at 79 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/mame.c.rej
patching file src/emu/profiler.c
Hunk #1 FAILED at 156 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/profiler.c.rej
patching file src/emu/profiler.h
Hunk #1 FAILED at 51 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/profiler.h.rej
patching file src/emu/romload.c
Hunk #1 FAILED at 535 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/romload.c.rej
patching file src/emu/ui/ui.c
Hunk #1 FAILED at 335 (different line endings).
Hunk #2 FAILED at 351 (different line endings).
Hunk #3 FAILED at 373 (different line endings).
Hunk #4 FAILED at 398 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/emu/ui/ui.c.rej
patching file src/emu/video.c
Hunk #1 FAILED at 466 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/video.c.rej
patching file src/emu/video.h
Hunk #1 FAILED at 79 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/video.h.rej
patching file src/mame/machine/cps2crpt.c
Hunk #1 FAILED at 111 (different line endings).
Hunk #2 FAILED at 672 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file src/mame/machine/cps2crpt.c.rej
patching file src/osd/modules/lib/osdobj_common.c
Hunk #1 FAILED at 335 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/modules/lib/osdobj_common.c.rej
patching file src/osd/modules/lib/osdobj_common.h
Hunk #1 FAILED at 153 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/modules/lib/osdobj_common.h.rej
patching file src/osd/osdepend.h
Hunk #1 FAILED at 64 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/osdepend.h.rej
patching file src/osd/osdmini/minimain.c
Hunk #1 FAILED at 164 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/osdmini/minimain.c.rej
patching file src/osd/osdmini/osdmini.h
Hunk #1 FAILED at 33 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/osdmini/osdmini.h.rej
patching file src/osd/sdl/osdsdl.h
Hunk #1 FAILED at 155 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/sdl/osdsdl.h.rej
patching file src/osd/sdl/video.c
Hunk #1 FAILED at 326 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/sdl/video.c.rej
patching file src/osd/sdl/window.c
Hunk #1 FAILED at 1047 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/sdl/window.c.rej
patching file src/osd/windows/video.c
Hunk #1 FAILED at 203 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/video.c.rej
patching file src/osd/windows/window.c
Hunk #1 FAILED at 826 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/window.c.rej
patching file src/osd/windows/window.h
Hunk #1 FAILED at 45 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/window.h.rej
patching file src/osd/windows/winmain.h
Hunk #1 FAILED at 269 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/winmain.h.rej

kmi - this is on account of Unix/Linux having different line endings (as the error says) than DOS/Windows.  You need to install the dos2unix package, and convert the patch before applying it.  Syntax is
dos2unix hi_160.txt
If that doesn't work, do
dos2unix *
in the folder you extracted the Mame source (and copied the patch) to.  Unfortunately, however, as stated above, this patch does not currently work for SDLMAME, which Arch Linux uses.  (I should know; I'm running Manjaro, an Arch derivative.)  Hopefully this problem will be fixed soon.
Title: Re: Error Patching in Archlinux
Post by: kmi on April 05, 2015, 08:20:12 am
Hi, when applying the patch hi_160 in arch linux i have a lot of errors, how do I can solve the problem?

patch -p0 -E --binary <hi_160.diff
Code: [Select]
patching file src/emu/emu.mak
Hunk #1 FAILED at 46 (different line endings).
Hunk #2 FAILED at 88 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file src/emu/emu.mak.rej
patching file src/emu/emuopts.c
Hunk #1 FAILED at 52 (different line endings).
Hunk #2 FAILED at 180 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file src/emu/emuopts.c.rej
patching file src/emu/emuopts.h
Hunk #1 FAILED at 65 (different line endings).
Hunk #2 FAILED at 181 (different line endings).
Hunk #3 FAILED at 236 (different line endings).
Hunk #4 FAILED at 342 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/emu/emuopts.h.rej
patching file src/emu/hiscore.c
patching file src/emu/hiscore.h
patching file src/emu/machine.c
Hunk #1 FAILED at 75 (different line endings).
Hunk #2 FAILED at 115 (different line endings).
Hunk #3 FAILED at 161 (different line endings).
Hunk #4 FAILED at 352 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/emu/machine.c.rej
patching file src/emu/machine.h
Hunk #1 FAILED at 234 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/machine.h.rej
patching file src/emu/mame.c
Hunk #1 FAILED at 79 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/mame.c.rej
patching file src/emu/profiler.c
Hunk #1 FAILED at 156 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/profiler.c.rej
patching file src/emu/profiler.h
Hunk #1 FAILED at 51 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/profiler.h.rej
patching file src/emu/romload.c
Hunk #1 FAILED at 535 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/romload.c.rej
patching file src/emu/ui/ui.c
Hunk #1 FAILED at 335 (different line endings).
Hunk #2 FAILED at 351 (different line endings).
Hunk #3 FAILED at 373 (different line endings).
Hunk #4 FAILED at 398 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/emu/ui/ui.c.rej
patching file src/emu/video.c
Hunk #1 FAILED at 466 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/video.c.rej
patching file src/emu/video.h
Hunk #1 FAILED at 79 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/emu/video.h.rej
patching file src/mame/machine/cps2crpt.c
Hunk #1 FAILED at 111 (different line endings).
Hunk #2 FAILED at 672 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file src/mame/machine/cps2crpt.c.rej
patching file src/osd/modules/lib/osdobj_common.c
Hunk #1 FAILED at 335 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/modules/lib/osdobj_common.c.rej
patching file src/osd/modules/lib/osdobj_common.h
Hunk #1 FAILED at 153 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/modules/lib/osdobj_common.h.rej
patching file src/osd/osdepend.h
Hunk #1 FAILED at 64 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/osdepend.h.rej
patching file src/osd/osdmini/minimain.c
Hunk #1 FAILED at 164 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/osdmini/minimain.c.rej
patching file src/osd/osdmini/osdmini.h
Hunk #1 FAILED at 33 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/osdmini/osdmini.h.rej
patching file src/osd/sdl/osdsdl.h
Hunk #1 FAILED at 155 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/sdl/osdsdl.h.rej
patching file src/osd/sdl/video.c
Hunk #1 FAILED at 326 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/sdl/video.c.rej
patching file src/osd/sdl/window.c
Hunk #1 FAILED at 1047 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/sdl/window.c.rej
patching file src/osd/windows/video.c
Hunk #1 FAILED at 203 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/video.c.rej
patching file src/osd/windows/window.c
Hunk #1 FAILED at 826 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/window.c.rej
patching file src/osd/windows/window.h
Hunk #1 FAILED at 45 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/window.h.rej
patching file src/osd/windows/winmain.h
Hunk #1 FAILED at 269 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/osd/windows/winmain.h.rej

kmi - this is on account of Unix/Linux having different line endings (as the error says) than DOS/Windows.  You need to install the dos2unix package, and convert the patch before applying it.  Syntax is
dos2unix hi_160.txt
If that doesn't work, do
dos2unix *
in the folder you extracted the Mame source (and copied the patch) to.  Unfortunately, however, as stated above, this patch does not currently work for SDLMAME, which Arch Linux uses.  (I should know; I'm running Manjaro, an Arch derivative.)  Hopefully this problem will be fixed soon.

Ayjanu Thanks, did not know dos2unix, now I could apply the patch without any problem, however with version hi_155 did not have this problem.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ayjanu on April 05, 2015, 03:52:37 pm
Hmm...strange.  But yeah, I looked that up a while ago, because I used to have the same problem as you.  In my case, there was never a time where I didn't have the problem.  If I knew C (which I'm hoping to learn at some point), perhaps I could help fix the current state of the patch.  Oh well...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GalaxianUK on April 06, 2015, 03:39:45 am
Hi,

I'm getting the following compile error on Ubuntu 14.10 having patched with 0.160.txt:

src/osd/sdl/video.c: In member function ‘virtual void sdl_osd_interface::update_hi(bool)’:
src/osd/sdl/video.c:346:67: error: ‘class sdl_window_info’ has no member named ‘next’
   for (window = sdl_window_list; window != NULL; window = window->next)
                                                                   ^
src/osd/sdl/video.c:347:12: error: ‘class sdl_window_info’ has no member named ‘video_window_update_hi’
    window->video_window_update_hi(machine());
            ^
makefile:972: recipe for target 'obj/sdl64/osd/sdl/video.o' failed
make: *** [obj/sdl64/osd/sdl/video.o] Error 1

Any pointers would be appreciated.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kmi on April 06, 2015, 08:58:05 am
Hi,

I'm getting the following compile error on Ubuntu 14.10 having patched with 0.160.txt:

src/osd/sdl/video.c: In member function ‘virtual void sdl_osd_interface::update_hi(bool)’:
src/osd/sdl/video.c:346:67: error: ‘class sdl_window_info’ has no member named ‘next’
   for (window = sdl_window_list; window != NULL; window = window->next)
                                                                   ^
src/osd/sdl/video.c:347:12: error: ‘class sdl_window_info’ has no member named ‘video_window_update_hi’
    window->video_window_update_hi(machine());
            ^
makefile:972: recipe for target 'obj/sdl64/osd/sdl/video.o' failed
make: *** [obj/sdl64/osd/sdl/video.o] Error 1

Any pointers would be appreciated.

I have the same compile error on Arch Linux, any solution??
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on April 06, 2015, 09:56:56 am
I'm not an expert, but

for (window = sdl_window_list; window != NULL; window = window->next) should be m_next no ? (related to window.h)

src/osd/sdl/video.c:347:12: error: ‘class sdl_window_info’ has no member named ‘video_window_update_hi’

Where is video_window_update_hi ? Nowhere in the code

I wonder how the patch could be works with windows ?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GalaxianUK on April 07, 2015, 02:25:49 am
My understanding is that the patch should work for SDL Mame.

I've installed the tools suggested for Ubuntu 14.04 here: http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=35138#Post35138 (http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=35138#Post35138)

Code:
sudo apt-get install build-essential subversion libsdl1.2-dev libgtk2.0-dev libgconf2-dev libsdl-ttf2.0-dev gcc-4.6 g++-4.6
sudo apt-get install libqt4-*


Should this be updated in 14.10 or is there a bug in the patch?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 07, 2015, 02:36:22 pm
The patch hasn't work for SDL for a couple of versions now. Mainly because since I run on Windows, I can't test.

At any rate, I've made a stab at getting it to compile for SDL. If someone can test the patch attached and post your results, that would be great. If it works, I'll add it to the main page and include it going forward.

Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on April 07, 2015, 03:36:40 pm
Just tried compiling without the patch and all worked fine, but with the patch applied i get:

Compiling src/osd/modules/font/font_osx.c...
src/osd/sdl/window.c:1103:27: error: unused variable 'primlist' [-Werror,-Wunused-variable]
                        render_primitive_list &primlist = *m_renderer->get_primitives();Compiling src/osd/modules/font/font_none.c...
1 error generated.
make: *** [obj/sdl64/osd/sdl/window.o] Error 1

If i try to compile with NOWERROR i get a warning on the above, then it gets as far as linking mame64 but then throws this:
Linking mame64...
Undefined symbols for architecture x86_64:
  "typeinfo for osd_interface", referenced from:
      typeinfo for osd_common_t in libosd.a(osdobj_common.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mame64] Error 1
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 07, 2015, 04:40:21 pm
The one attached takes care of the first error.

I'm not sure if the second error is due to the patch or the environment you are compiling in. Can someone try to compile with the attached patch?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on April 08, 2015, 01:19:42 am
yep, can confirm the first error is gone but i still get the final one during the linking which doesn't occur if i just build mame straight from the source with no patch...

I am using 10.10.3 Yosemite, Xcode 6.2 6C131e.

Anyone else having any luck?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ayjanu on April 08, 2015, 11:30:56 am
I'll try to compile it in Manjaro Linux today.  (SDL version.)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kmi on April 08, 2015, 11:50:37 am
I have compiled in Arch Linux with hi_160_2_txt and I have the following error.
Code: [Select]
Traceback (most recent call last):
  File "src/build/makelist.py", line 62, in <module>
    if parse_file(sys.argv[1]) :
  File "src/build/makelist.py", line 42, in parse_file
    drivname += c
TypeError: Can't convert 'int' object to str implicitly
makefile:1016: fallo en las instrucciones para el objetivo 'obj/sdl64/mame/mame/drivlist.c'
make: *** [obj/sdl64/mame/mame/drivlist.c] Error 1

Code: [Select]
Compiling src/osd/sdl/window.c...
src/osd/sdl/window.c: En la función miembro ‘void sdl_window_info::update_hi()’:
src/osd/sdl/window.c:1103:27: error: variable ‘primlist’ sin usar [-Werror=unused-variable]
    render_primitive_list &primlist = *m_renderer->get_primitives();
                           ^
cc1plus: todos los avisos se tratan como errores
makefile:972: fallo en las instrucciones para el objetivo 'obj/sdl64/osd/sdl/window.o'
make: *** [obj/sdl64/osd/sdl/window.o] Error 1
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ayjanu on April 08, 2015, 12:45:46 pm
Here's the error output from my attempted compile in Manjaro:

Code: [Select]
Linking mame...
obj/sdl/libosd.a(osdobj_common.o):(.rodata._ZTI12osd_common_t[_ZTI12osd_common_t]+0x18): undefined reference to `typeinfo for osd_interface'
collect2: error: ld returned 1 exit status
makefile:948: recipe for target 'mame' failed
make: *** [mame] Error 1
rm obj/sdl/osd/modules/debugger/qt/deviceinformationwindow.moc.c obj/sdl/osd/modules/debugger/qt/mainwindow.moc.c obj/sdl/osd/modules/debugger/qt/windowqt.moc.c obj/sdl/osd/modules/debugger/qt/dasmwindow.moc.c obj/sdl/osd/modules/debugger/qt/logwindow.moc.c obj/sdl/osd/modules/debugger/qt/deviceswindow.moc.c obj/sdl/osd/modules/debugger/qt/debuggerview.moc.c obj/sdl/osd/modules/debugger/qt/memorywindow.moc.c obj/sdl/osd/modules/debugger/qt/breakpointswindow.moc.c

EDIT: Interesting that our error outputs are different, despite Manjaro being a derivative of Arch.  Due to this, I should probably provide some additional details about what dependencies I have listed, and what command I use to build SDLMAME.  It's thanks to information obtained from the PKGBUILD for the sdlume package in the Arch User Repository (which I normally build, plus sdlmame has been moved to the community repository now), that I was able to find the needed dependencies and commands...

For dependencies, the following are listed as required: libxinerama, sdl2_ttf, qt4, flac, portmidi, sqlite, and expat
and the following is listed as optional: ttf-liberation

And the command I use to build:

Code: [Select]
make NOWERROR=1 PYTHON=python2 \
      BUILD_EXPAT=0 BUILD_ZLIB=0 BUILD_FLAC=0 BUILD_JPEGLIB=0 BUILD_MIDILIB=0 \
      BUILD_SQLITE3=0 \
      SUFFIX64=

Perhaps this additional information may prove useful...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 08, 2015, 02:51:59 pm
I appreciate the help on this. I am not set up to compile SDL builds myself to test, so this really helps out. Try the attached patch and cross your fingers....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on April 08, 2015, 04:16:47 pm
well, this sure is odd - compiles fine now with the latest patch but when i run a game there is no video! The game seems to play blind fine, have tried with a few different ones and it is the same...

although i normally run a front-end i have tried just running the executable and it does not bring up the usual mame menu so it is not a problem that just affects games, the issue appears from the first running.

have tried a basic compile again and that is ok, just the patched one has the problem - thanks for your continuing work on this...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 08, 2015, 04:34:37 pm
Thanks for helping me out. This is a joint effort!

Try the attached patch. I hope this is the one....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kmi on April 08, 2015, 04:36:41 pm
well, this sure is odd - compiles fine now with the latest patch but when i run a game there is no video! The game seems to play blind fine, have tried with a few different ones and it is the same...

although i normally run a front-end i have tried just running the executable and it does not bring up the usual mame menu so it is not a problem that just affects games, the issue appears from the first running.

have tried a basic compile again and that is ok, just the patched one has the problem - thanks for your continuing work on this...

I have the same problem, compile fine with the hi_160_3.txt but no video signal, the screen goes black.

The terminal returns this.
Code: [Select]
[ArchLinux ~]$ mame
Value 1 not supported for option sound - falling back to auto
[ArchLinux ~]$
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 08, 2015, 05:22:18 pm
Yep. Try hi_160_4.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ayjanu on April 08, 2015, 06:35:47 pm
I'll also try compiling with the version 4 patch.  Thanks.

Edit *to remove confusion and speculation on my behalf*: Hmm....  I'm getting the same problem as listed above.  It shows as "empty," there's no video, but audio plays, and it loads games...  Also, there's no terminal error output.  The sdlume build I built earlier (the successful attempt) has the same problem; disregard anything I said before, that you may have read in this post.  That was me just having a long day, so I thought it best to remove it before confusion arises...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kmi on April 09, 2015, 02:45:32 pm
In Archlinux with hi_160_4.txt I get the same result as hi_160_3.txt
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ayjanu on April 09, 2015, 08:38:14 pm
Yes, it would seem that you and I are having the same results, kmi.  Perhaps these consistent results can be helpful, at least, in the debugging process...  It is certainly strange.  What could have changed since 0.159, that could be causing these issues?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nitrogen_widget on April 10, 2015, 08:23:14 am
well, this sure is odd - compiles fine now with the latest patch but when i run a game there is no video! The game seems to play blind fine, have tried with a few different ones and it is the same...

although i normally run a front-end i have tried just running the executable and it does not bring up the usual mame menu so it is not a problem that just affects games, the issue appears from the first running.

have tried a basic compile again and that is ok, just the patched one has the problem - thanks for your continuing work on this...

I have the same problem, compile fine with the hi_160_3.txt but no video signal, the screen goes black.

The terminal returns this.
Code: [Select]
[ArchLinux ~]$ mame
Value 1 not supported for option sound - falling back to auto
[ArchLinux ~]$

I get the same also on PCLinuxOS with both 160_3 & 160_4.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 10, 2015, 03:05:58 pm
Ok...I compiled a SDL version (in windows) and believe I've got it sorted out. Someone apply this patch (to a clean build) and let me know how it looks.

Thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ayjanu on April 10, 2015, 10:47:29 pm
I'll try it now.  Will edit my post and report back whether it worked or not.

EDIT: I can confirm that it's working here!  Starts up normally, and I'm able to save high scores for games just fine again.  Thank you.  (Now, if I could only get GLSL shaders working, but that's a whole different topic...)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on April 11, 2015, 02:46:49 am
Not sure what is happening here - compiles fine, no nag screen but i tried with Juno First and Joust and both crash mame after a couple of minutes play - not sure if that is a problem with the patch or just coincidental...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ayjanu on April 11, 2015, 03:37:15 am
@chubsta - both games are working fine for me here.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kmi on April 11, 2015, 05:16:43 am
Thanks MKChamp, hi_160_5.txt is perfect, I could compile without errors on Arch Linux.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GalaxianUK on April 11, 2015, 05:28:30 am
All good here Ubuntu 14.10. Great effort chaps.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on April 11, 2015, 07:07:16 am
Just tried again and get the same result - running a 2014 iMac latest Yosemite 10.10.3, emulous shows the following:

11:59:20.908: stderr[#0]: Invalid prescale option, reverting to '1'
11:59:21.614: stderr[#0]: Value 1 not supported for option sound - falling back to auto
11:59:23.174: stdout[#0]: FONT NAME default
12:02:27.390: stderr[#0]: mame64(24145,0x7fff79eb7300) malloc: *** error for object 0x7fcbe6713fb0: double free
12:02:27.390: stderr[#0]: *** set a breakpoint in malloc_error_break to debug

no errors with default build of mame...

if anyone else is running mame on a similar system with no problems is there any chance they could compile for me and ill see if that works?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on April 11, 2015, 07:34:57 am
It would appear the problem revolves around 'multithreading' - with it enabled i get a crash, with it disabled everything is fine - still not sure if it is patch related or whether something else is happening. Can other people try with multithreading enabled and let me know if they suffer the same issues please?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GalaxianUK on April 11, 2015, 01:20:33 pm
No crash here with multi-threading enabled (although the frame rate drops)..
Title: Re: hiscore diff (with no nag/white box removal)
Post by: GalaxianUK on April 11, 2015, 01:38:22 pm
I've noticed that a white edged outline of the nag box (which contains no text) momentarily appears for a split second (not present in windows) just before the game loads. Hardly an issue but may be worth reporting.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: BlackGreen on April 15, 2015, 03:55:15 pm
Wanted to chime in here with my experience trying to patch with the 0155 diff.

I'm running MAME on a linux box based on slackware 13.37 without SDL2 (VectorLinux), so I don't want to deal with the SDL upgrade stuff quite yet (0156+).  My purpose for upgrading was to get some of the game fixes in later versions from 0148.

I tried running dos2unix on the diff and source files, as well as upgrading my "patch" binary on the linux box.  I was still unable to to patch.  I would always get:

Code: [Select]
patch -p0 < hi_155_2.txt
Hunk #1 FAILED at <line_number> (different line endings).

The only way I could get the patch to work was to make sure to unzip the mame source and download the hiscore diff files directly on my linux box.  I also had to use the --binary option in patch:
Code: [Select]
patch --binary -p0 < hi_155_2.txt
Code: [Select]
patching file src/emu/emu.mak
patching file src/emu/emuopts.c
patching file src/emu/emuopts.h
patching file src/emu/hiscore.c
patching file src/emu/hiscore.h
patching file src/emu/machine.c
patching file src/emu/machine.h
patching file src/emu/mame.c
patching file src/emu/profiler.c
patching file src/emu/profiler.h
patching file src/emu/romload.c
patching file src/emu/ui/ui.c
patching file src/emu/video.c
patching file src/emu/video.h
patching file src/mame/machine/cps2crpt.c
patching file src/osd/osdepend.c
patching file src/osd/osdepend.h
patching file src/osd/sdl/osdsdl.h
patching file src/osd/sdl/video.c
patching file src/osd/sdl/window.c
patching file src/osd/sdl/window.h
patching file src/osd/windows/video.c
patching file src/osd/windows/window.c
patching file src/osd/windows/window.h
patching file src/osd/windows/winmain.h

So, ultimately:
> Make sure to download / unzip on the linux box to avoid CR endings.
> Use the --binary option with patch.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lamprey on April 15, 2015, 04:43:56 pm
It would appear the problem revolves around 'multithreading' - with it enabled i get a crash, with it disabled everything is fine - still not sure if it is patch related or whether something else is happening. Can other people try with multithreading enabled and let me know if they suffer the same issues please?
You might try scrolling to the bottom of this (http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Board=mamechat&Number=335315) thread and see the post by Calamity to see if that helps.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: newoski on April 28, 2015, 07:23:01 am
Is it possible to patch HBMAMEUI 0.160 with nonag/white box removal?

Every time I try, I get the following error. Any tips would be really appreciated:


C:\buildtools\src>cmd.exe
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\buildtools\src>patchmame hi_160

C:\buildtools\src>set path=c:\mingw\mingw64-w64\bin

C:\buildtools\src>patch -p0 -E  0<hi_160.diff
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru old/emu/emu.mak src/emu/emu.mak
|--- old/emu/emu.mak    2015-03-25 08:16:52.000000000 -0500
|+++ src/emu/emu.mak    2015-03-25 11:50:02.000000000 -0500
--------------------------
File to patch:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on April 29, 2015, 07:50:18 am
also getting this same error on mame 161 on SDLMame...

can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru old/emu/emu.mak src/emu/emu.mak
|--- old/emu/emu.mak   2015-03-25 08:16:52.000000000 -0500
|+++ src/emu/emu.mak   2015-03-25 11:50:02.000000000 -0500
--------------------------
File to patch:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: esmith13 on April 29, 2015, 10:21:16 am
Impatiently waiting for a 0.161 compatible diff...  ;D ;D ;D

Thanks in advance!  :angel:
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 29, 2015, 03:19:09 pm
Impatiently waiting for a 0.161 compatible diff...  ;D ;D ;D

Thanks in advance!  :angel:

Wait no more :-)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on May 01, 2015, 01:15:20 am
Wait no more :-)

thanks for the patch!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: chubsta on May 01, 2015, 06:38:48 am
thanks very much!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on May 03, 2015, 03:04:19 am
Wait no more :-)

Hey MKChamp. Really appreciate your work on this patch. I'm currently updating MC64 to use the latest Build Tools. I'm having some trouble applying your patch (I get a lot of HUNK failed errors). If I use the patch.exe from the older MinGW tools it will apply fine. Right now my work around is to include the old patch.exe and copy it over. Do you have any idea what is going wrong here? It seems strange that the version of patch.exe would matter since I expect the diff format to be some sort of standard.

BTW The new patch.exe is stored in buildtools\vendor\unixtools (buildtools.7z (https://github.com/mamedev/buildtools/releases/download/1.1/buildtools.7z))
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on May 03, 2015, 03:40:09 am
I'm having some trouble applying your patch (I get a lot of HUNK failed errors).

i use latest patch from new build tools and MKChamp's patch applies quite fine - no warnings and errors for 0.161:

Code: [Select]
D:\emulation\ExtraStuff\BuildTools\src>patch -p0 -E < hi_161.diff
patching file `src/emu/emuopts.c'
patching file `src/emu/emuopts.h'
patching file `src/emu/hiscore.c'
patching file `src/emu/hiscore.h'
patching file `src/emu/machine.c'
patching file `src/emu/machine.h'
patching file `src/emu/mame.c'
patching file `src/emu/profiler.c'
patching file `src/emu/profiler.h'
patching file `src/emu/romload.c'
patching file `src/emu/ui/ui.c'
patching file `src/emu/video.c'
patching file `src/emu/video.h'
patching file `src/mame/machine/cps2crpt.c'
patching file `src/osd/modules/lib/osdobj_common.c'
patching file `src/osd/modules/lib/osdobj_common.h'
patching file `src/osd/osdepend.h'
patching file `src/osd/osdmini/minimain.c'
patching file `src/osd/osdmini/osdmini.h'
patching file `src/osd/sdl/osdsdl.h'
patching file `src/osd/sdl/video.c'
patching file `src/osd/sdl/window.c'
patching file `src/osd/sdl/window.h'
patching file `src/osd/windows/video.c'
patching file `src/osd/windows/window.c'
patching file `src/osd/windows/window.h'
patching file `src/osd/windows/winmain.h'
patching file `scripts/src/emu.lua'

p.s.: note, there's new needed directory for compiling - scripts. it comes with latest sources.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on May 04, 2015, 12:37:18 pm
i use latest patch from new build tools and MKChamp's patch applies quite fine - no warnings and errors for 0.161:

Yeah it's really odd; from command line there are no problems but launching from Mame Compiler I get HUNK errors. The only difference I can find is that patch version 2.5.4 works and patch 2.5 doesn't. Anyway copying over the new version solves the issue  :dunno
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on May 29, 2015, 10:09:33 pm
currently, hi_162.diff can be downloaded from GroovyMAME (http://forum.arcadecontrols.com/index.php/topic,135823.0.html) thread.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 30, 2015, 02:56:35 pm
Uploaded to main page...sorry for the delay...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on May 30, 2015, 06:36:02 pm
Uploaded to main page...sorry for the delay...

thanks!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: hazfinger on June 06, 2015, 04:26:50 pm
Hi everyone,
I have a error when apply the patch 0.162:

C:\buildtools\src
? patch -p0 -E <hi_162.diff
patching file `src/emu/emuopts.c'
patching file `src/emu/emuopts.h'
patching file `src/emu/hiscore.c'
patching file `src/emu/hiscore.h'
patching file `src/emu/machine.c'
patching file `src/emu/machine.h'
patching file `src/emu/mame.c'
patching file `src/emu/profiler.c'
patching file `src/emu/profiler.h'
patching file `src/emu/romload.c'
patching file `src/emu/ui/ui.c'
patching file `src/emu/video.c'
patching file `src/emu/video.h'
patching file `src/mame/machine/cps2crpt.c'
patching file `src/osd/modules/lib/osdobj_common.c'
patching file `src/osd/modules/lib/osdobj_common.h'
patching file `src/osd/osdepend.h'
patching file `src/osd/osdmini/minimain.c'
patching file `src/osd/osdmini/osdmini.h'
patching file `src/osd/sdl/osdsdl.h'
patching file `src/osd/sdl/video.c'
patching file `src/osd/sdl/window.c'
patching file `src/osd/sdl/window.h'
patching file `src/osd/windows/video.c'
patching file `src/osd/windows/window.c'
patching file `src/osd/windows/window.h'
patching file `src/osd/windows/winmain.h'
patching file `scripts/src/emu.lua'
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 107 with fuzz 1.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 06, 2015, 07:43:37 pm
Quote
Hunk #1 succeeded at 107 with fuzz 1.

this is not an error. it's a warning. so, MAME could still be compiled.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: wolfi on June 26, 2015, 01:48:46 pm
Thanks for .163 ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: lettuce on July 04, 2015, 04:42:13 pm
Is there anyway to stop F3 wiping the hi score??
Title: Re: hiscore diff (with no nag/white box removal)
Post by: hazfinger on July 04, 2015, 10:12:35 pm
Quote
Hunk #1 succeeded at 107 with fuzz 1.

this is not an error. it's a warning. so, MAME could still be compiled.

Thanks abelenki for your reply ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on July 29, 2015, 11:55:21 pm
currently, hi_164.diff can be downloaded from GroovyMAME (http://forum.arcadecontrols.com/index.php/topic,135823.0.html) thread.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on July 30, 2015, 01:49:04 pm
163 patch actually worked for 164. It just had a warning. I made a new 164 and added it to the front page.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on July 30, 2015, 07:31:46 pm
163 patch actually worked for 164. It just had a warning.

oh, haven't checked that.

Quote
I made a new 164 and added it to the front page.

thanks!!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: katuuuz on August 18, 2015, 12:45:54 pm
Using headkaze's compiler.  (hey kaze hope you've been well man)

Do I have to have the build tools downloaded to compile the non-GUI source of mame?  I dont plan on editing mame at all, just wanted to use the compiler to integrate the hi-score function.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: katuuuz on August 19, 2015, 11:14:21 am
Ok guys this is driving me nuts.  I'm trying it mr dos way now.  I can't compile.  Do I have to put these mame folders into the build tools foler?  Saying something about python not in path
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Robbbert on August 21, 2015, 11:12:43 pm
I wonder if someone can explain to me, what is the "white box" that you want to remove? I can understand the no-nag, but I've never noticed a "white box".


EDIT: found out that it's the "Loading" and "Initializing" text messages.
Not really sure why that text is so objectionable...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on August 26, 2015, 04:37:16 am
hi_164.diff works fine with 0.165 source tree, but with couple of warnings.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on August 26, 2015, 01:00:25 pm
hi_164.diff works fine with 0.165 source tree, but with couple of warnings.

165 patch uploaded...warnings removed!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: vwalbridge on August 26, 2015, 01:08:30 pm
Not really sure why that text is so objectionable...

Because the real arcades never had white boxes and loading text. Mame users are always trying to achieve the absolute closest experience to the real thing.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: JohnyO on September 01, 2015, 12:18:25 pm
I compiled MAME .165 with the compiler from headkaze, including the highscore diff, everything went off without a hitch. (thanks a bunch headkaze). No errors or anything popped up. However it doesn't seem like my system is saving high scores. Is there a certain way I should exit games to ensure high scores are saved. Currently just using esc key.
Title: Re: Linux unable to load hiscore.dat
Post by: sten_gun on September 08, 2015, 01:23:06 am
I compiled MAME .165 with the compiler from headkaze, including the highscore diff, everything went off without a hitch. (thanks a bunch headkaze). No errors or anything popped up. However it doesn't seem like my system is saving high scores. Is there a certain way I should exit games to ensure high scores are saved. Currently just using esc key.

Fist of all, Hi to the forum!
I think I figured out this behavior and I worked on a patch to fix that. I want MKCHAMP to take a look at it, it will affect the load of hiscore.dat, now being required to be inside the same directory where you save the .hi files (and no more in the same dir as mame executable).
I can't test it on windows, but code compiles well and works well on linux, now I can load my hiscore.dat and play with it.
here the commit with the changes
https://github.com/stengun/mame/commit/548f7a3419afaeb3f51bfac6122654424342028a#diff-b19d7d069af37c931feb2be2d8799a89

I did a bit of backtracking, and I think the problem resides inside emu_file class, wich has strange behaviors if you pass the Readonly attribute without a base directory. Mame devs always passed the base dir when opening a file with "readonly" attribute. What do you think?
ps. sorry for my bad english.
btw thank you for your help, I apreciate that!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: AnX on September 10, 2015, 10:22:18 pm
I compiled MAME .165 with the compiler from headkaze, including the highscore diff, everything went off without a hitch. (thanks a bunch headkaze). No errors or anything popped up. However it doesn't seem like my system is saving high scores. Is there a certain way I should exit games to ensure high scores are saved. Currently just using esc key.

I have this problem too.  No obvious errors in the log.  Though it is monstrous and there is a possibility I missed something a more capable user may have noticed.  I tried HeadKaze compiler (awesome app  :applaud:) and doing it manually without any luck.  Can anybody confirm a Mame0.165 hi score no nag build for windows?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on September 30, 2015, 09:01:37 am
hi_165.diff works fine with 0.166 source tree, but with some warnings.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: oldhag270 on September 30, 2015, 10:26:27 am
MAME 0.166 just got released.(Sorry just seen abelenki mentioned it)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on October 28, 2015, 05:46:54 am
hi_165.diff works fine with 0.167 source tree, but with some warnings.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on October 28, 2015, 01:06:46 pm
hi_165.diff works fine with 0.167 source tree, but with some warnings.

I cleaned the patch up to remove the warnings. Thanks for confirming it works for 167!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on October 30, 2015, 06:26:40 am
I cleaned the patch up to remove the warnings.

thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: nitrogen_widget on November 11, 2015, 10:59:30 am
167 patched compiles fine on Linux.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on November 25, 2015, 06:01:06 am
hi_167.diff seems to be completely incompatible with 0.168 source tree, or i'm doing something wrong...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on November 25, 2015, 09:23:51 pm
currently, hi_168.diff can be downloaded from GroovyMAME (http://forum.arcadecontrols.com/index.php/topic,135823.0.html) thread.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on November 30, 2015, 01:45:13 pm
currently, hi_168.diff can be downloaded from GroovyMAME (http://forum.arcadecontrols.com/index.php/topic,135823.0.html) thread.

Sorry for the delay...holidays and all.
The patch has been updated and uploaded. Just a quick note on the hiscore patch in the GroovyMAME thread. I'm not sure what all is in it compared to the one here, but I will note that the groovyMAME one is 19KB and this one is 38KB...so, it's quite bigger. I am guessing it's the white box and no nag stuff...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: sten_gun on December 11, 2015, 03:45:28 pm
I saw that you included my linux fix in the latest patch, thank you. I didn't read any feedback so I supposed it was working only for me.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on December 30, 2015, 08:28:24 pm
hi_0168.diff doesn't work with 0.169 source tree, there are warnings and errors.

currently, hi_169.diff can be downloaded from GroovyMAME (http://forum.arcadecontrols.com/index.php/topic,135823.0.html) thread.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 04, 2016, 03:06:00 pm
hi_0168.diff doesn't work with 0.169 source tree, there are warnings and errors.

currently, hi_169.diff can be downloaded from GroovyMAME (http://forum.arcadecontrols.com/index.php/topic,135823.0.html) thread.

Sorry for the delay...holidays and stuff. Updated patch has been uploaded and ready!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 04, 2016, 03:16:39 pm
Sorry for the delay...holidays and stuff. Updated patch has been uploaded and ready!

thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ayjanu on January 06, 2016, 11:47:45 pm
Hmm.  For some reason, highscores are not saving/loading for me.  If I keep hiscore.dat in the base Mame folder (with the executable), I see that .hi files are created in the hi folder, but are not apparently recognized by Mame; upon reloading a game, the original high scores are displayed.  If I move the hiscore.dat file to the hi subfolder, no .hi files are created, and thus, no high scores are saved either.  Not sure what's wrong.  I'm using the latest 0.169 patch, and am running Manjaro Linux (a derivative of Arch).

EDIT: Well, I've found a workaround solution; for some reason, copying hiscore.dat to both the base Mame folder AND the hi folder solved the problem; high scores now both save AND load as expected.  ...Odd, but a solution for me nonetheless...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: plataoubuntu on January 08, 2016, 07:58:27 pm
hello, i work a video about MAME in Ubuntu system ; ).

How to compile, aply a patch(Mortal Kombat Champ) and more... I hope it helps someone|!


platao

https://www.youtube.com/watch?v=1lMxcDLUZUE (https://www.youtube.com/watch?v=1lMxcDLUZUE)

https://www.youtube.com/watch?v=AgPqyhMyxpg (https://www.youtube.com/watch?v=AgPqyhMyxpg)

https://www.youtube.com/watch?v=WGT37a97_aM (https://www.youtube.com/watch?v=WGT37a97_aM)

https://www.youtube.com/channel/UCz3XFE_Yk_kPWSA2PWYvR5A (https://www.youtube.com/channel/UCz3XFE_Yk_kPWSA2PWYvR5A)


 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 13, 2016, 09:46:44 am
MKChamp, i just moved to new hosting, so login data to FTP server has changed. please see PM for details.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on January 27, 2016, 09:30:51 am
hi_0169.diff doesn't work with 0.170 source tree, there are warnings and errors.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on January 27, 2016, 11:56:11 am
hi_0169.diff doesn't work with 0.170 source tree, there are warnings and errors.

hi_170 patch has been uploaded. I haven't had a chance to compile with it yet, so if you find any issues, please let me know.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: reflex33 on February 03, 2016, 03:36:02 pm
I'm having a problem with the 170 patch...

Compiles just fine without the patch.  But with it we get errors.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on February 03, 2016, 10:06:50 pm
hi_170 patch has been uploaded. I haven't had a chance to compile with it yet, so if you find any issues, please let me know.
thanks!! it compiles fine.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: reflex33 on February 05, 2016, 02:25:28 pm
Ok so I saw that it compiled fine for other people... but I'm getting the following with the patch (without the patch it compiles fine):

Compiling src/osd/windows/window.cpp...
../../../../../src/osd/windows/window.cpp: In member function 'void win_window_info::update_hi()':
../../../../../src/osd/windows/window.cpp:863:34: error: 'osd_lock_acquire' was not declared in this scope
    osd_lock_acquire(m_render_lock);
                                  ^
../../../../../src/osd/windows/window.cpp:865:41: error: 'osd_lock_try' was not declared in this scope
    got_lock = osd_lock_try(m_render_lock);
                                         ^
../../../../../src/osd/windows/window.cpp:875:34: error: 'osd_lock_release' was not declared in this scope
    osd_lock_release(m_render_lock);
                                  ^
osd_windows.make:675: recipe for target '../../../../mingw-gcc/obj/x64/Release/osd_windows/src/osd/windows/window.o' failed
make[2]: *** [../../../../mingw-gcc/obj/x64/Release/osd_windows/src/osd/windows/window.o] Error 1
Makefile:19: recipe for target 'osd_windows' failed
make[1]: *** [osd_windows] Error 2
makefile:849: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on February 24, 2016, 08:50:58 am
hi_170.diff doesn't work with 0.171 source tree, there are warnings and errors.

currently, hi_171.diff can be downloaded from GroovyMAME (http://forum.arcadecontrols.com/index.php/topic,135823.0.html) thread.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 07, 2016, 01:30:28 pm
hi_170.diff doesn't work with 0.171 source tree, there are warnings and errors.

currently, hi_171.diff can be downloaded from GroovyMAME (http://forum.arcadecontrols.com/index.php/topic,135823.0.html) thread.

Sorry for the delay. My PC where I do all the code and compile bit the dust and I lost everything. I've uploaded the 171 patch...have fun!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on March 07, 2016, 09:10:01 pm
Sorry for the delay. My PC where I do all the code and compile bit the dust and I lost everything. I've uploaded the 171 patch...have fun!
thanks, MKChamp!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Stiletto on March 12, 2016, 10:58:38 am
Hi guys,

You may have heard of this new development:
https://github.com/cracyc/mame-hiscores (https://github.com/cracyc/mame-hiscores)

Description thread at MAMEWorld:
http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=351252 (http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=351252)

I talked to MKChamp about this new development and he says in light of this, so long as the new script is as bug free as the previous hiscore.dat patch, he may discontinue hiscore.dat sourcecode patch maintenance in the future in favor of this script that does not require recompiling MAME.

MAMEdev is hoping that this and other scripts like it are the beginning of a thriving third-party Lua script community. We can't wait to see how other enthusiasts use this new feature.

It should be ready to go officially when MAME 0.172 hits, but you can take it for a test drive now if you can compile latest GIT. :)

Cheers!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: sean_skroht on March 14, 2016, 09:46:15 am
Thanks for the info, it looks promising.

For the time being though, I think I'll stick with the hiscore diff. Time has proven it's reliability and a significant amount of time needs to pass to prove the new lua hi score script is reliable and mature enough before I'll change over. I'm always open to being convinced otherwise.

The other concern is if the new hi score script removes nag screens or if anyone is developing a script for that. I have a cabinet setup with Hyperspin shelled to hide Windows and dont want nag screens since it kinda ruins the effect I'm going for, that is, the feel of a real arcade machine.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: airix on March 30, 2016, 03:10:00 pm
Hi MKChamp.  Thanks for always being so quick with new patches for the mame updates!!

Having a problem with 0.172 patch though.  Compiling on linux_x64 (sdlmame), and getting the following error:

Code: [Select]
/src/osd/sdl/video.cpp: In member function ‘virtual void sdl_osd_interface::update_hi(bool)’:
./src/osd/sdl/video.cpp:299:25: error: ‘sdlinput_poll’ was not declared in this scope  sdlinput_poll(machine());
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 30, 2016, 03:41:36 pm
Hi MKChamp.  Thanks for always being so quick with new patches for the mame updates!!

Having a problem with 0.172 patch though.  Compiling on linux_x64 (sdlmame), and getting the following error:

Code: [Select]
/src/osd/sdl/video.cpp: In member function ‘virtual void sdl_osd_interface::update_hi(bool)’:
./src/osd/sdl/video.cpp:299:25: error: ‘sdlinput_poll’ was not declared in this scope  sdlinput_poll(machine());

I don't compile for SDL...just windows...so, I don't find these issues. I uploaded a new hi_172 patch to correct this. Let me know if you find any other issues!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: airix on March 30, 2016, 05:11:30 pm
Thanks, that was fast!

It fixed that error, but unfortunately produces another one:

Code: [Select]
In file included from /src/emu/ui/dsplmenu.cpp:21:0:
/src/osd/../osd/modules/lib/osdobj_common.h:175:16: error: ‘virtual void osd_common_t::update_hi(bool)’ can be marked override [-Werror=suggest-override virtual void update_hi(bool skip_redraw);
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MomoneDk on March 30, 2016, 05:12:50 pm
Hello,
I compiled hi172 with windows 7x64, and had the same error with hi171 patch :

Archiving liboptional.a...
makefile:879: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

I will wait the patch from groovymame, but i don't understand why the patch from groovymame works (171 for example), and not the one from arcadecontrols ?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 30, 2016, 05:49:13 pm
Hello,
I compiled hi172 with windows 7x64, and had the same error with hi171 patch :

Archiving liboptional.a...
makefile:879: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

I will wait the patch from groovymame, but i don't understand why the patch from groovymame works (171 for example), and not the one from arcadecontrols ?

171 patch doesn't work for 172. Get the 172 patch.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 30, 2016, 05:57:10 pm
Thanks, that was fast!

It fixed that error, but unfortunately produces another one:

Code: [Select]
In file included from /src/emu/ui/dsplmenu.cpp:21:0:
/src/osd/../osd/modules/lib/osdobj_common.h:175:16: error: ‘virtual void osd_common_t::update_hi(bool)’ can be marked override [-Werror=suggest-override virtual void update_hi(bool skip_redraw);

Go past that and see if it still compiles...that may just be a type of error-warning....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: airix on March 30, 2016, 08:20:06 pm
Unfortunately it won't go past that:

Code: [Select]
cc1plus: all warnings being treated as errors
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on March 30, 2016, 09:02:48 pm
unfortunately, i also can't compile 0.172 with hi_172.txt (i tried both, older and newer re-uploaded patches).

compiling stops with an error:

Code: [Select]
Archiving liboptional.a...
makefile:879: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

(as in case with MomoneDk).

and yes, i could successfully compile 0.171 with GroovyMAME's hi_0171.diff.

UPDATE: it has nothing to do with hiscore diff - i just tried to compile official sources without any modifications, and i got the same error. :(
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MomoneDk on March 31, 2016, 01:44:38 am
Hello

I tried the patch 172 with the official mame 172 sources.
But it does not work, i don't know why.
It is not a problem of compilation, this patch would not work for nobody :-[
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on March 31, 2016, 11:44:48 am
Hello

I tried the patch 172 with the official mame 172 sources.
But it does not work, i don't know why.
It is not a problem of compilation, this patch would not work for nobody :-[

Strange. I compiled mine twice with no issues. I'm using Headkaze's compiler. Can you guys check the whole compile log and send any and all warnings/errors?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MomoneDk on March 31, 2016, 02:33:23 pm
When i try to compile with the last mame compiler (2.0.169), i can patch successfully, but the compalition does not work (start and stop directly with errors).

I think i am wrong with mame compiler, maybe the directories ? Maybe other thing ?
The last version of mame compiler appear no up to date for use with the last buildtools (over mame 170).
Do you copy/paste the make.exe from the program files to the buildtools/msys64 ?
Do you use older buildtools (until mame 169) ?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 01, 2016, 07:01:24 am
Can you guys check the whole compile log and send any and all warnings/errors?

here are mine:

Code: [Select]
Compiling src/emu/ui/dsplmenu.cpp...
In file included from ../../../../../src/osd/../osd/windows/winmain.h:14:0,
                 from ../../../../../src/emu/ui/dsplmenu.cpp:19:
../../../../../src/osd/modules/lib/osdobj_common.h:175:16: error: 'virtual void osd_common_t::update_hi(bool)' can
 be marked override [-Werror=suggest-override]
   virtual void update_hi(bool skip_redraw);
                ^
In file included from ../../../../../src/emu/ui/dsplmenu.cpp:19:0:
../../../../../src/osd/../osd/windows/winmain.h:302:16: error: 'virtual void windows_osd_interface::update_hi(bool
)' can be marked override [-Werror=suggest-override]
   virtual void update_hi(bool skip_redraw);
                ^
cc1plus.exe: all warnings being treated as errors
emu.make:1648: recipe for target '../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o' failed
make[2]: *** [../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o] Error 1
makefile:79: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
makefile:879: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MomoneDk on April 01, 2016, 09:59:37 am
Finally, and only with mame compiler, i can compile mame when diff hi172 is applied.
I don't like that, i prefer without mame compiler  :(

But, for mame compiler when i click on go the first time i have this error after 3 seconds (tried 3 times, always this error) :
make[1]: Leaving directory `D:/buildtools170/msys64/src/3rdparty/genie/build/gmake.windows'

And when i click again on "go", the compilation works  and finish....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 01, 2016, 10:16:29 am
Can you guys check the whole compile log and send any and all warnings/errors?

here are mine:

Code: [Select]
Compiling src/emu/ui/dsplmenu.cpp...
In file included from ../../../../../src/osd/../osd/windows/winmain.h:14:0,
                 from ../../../../../src/emu/ui/dsplmenu.cpp:19:
../../../../../src/osd/modules/lib/osdobj_common.h:175:16: error: 'virtual void osd_common_t::update_hi(bool)' can
 be marked override [-Werror=suggest-override]
   virtual void update_hi(bool skip_redraw);
                ^
In file included from ../../../../../src/emu/ui/dsplmenu.cpp:19:0:
../../../../../src/osd/../osd/windows/winmain.h:302:16: error: 'virtual void windows_osd_interface::update_hi(bool
)' can be marked override [-Werror=suggest-override]
   virtual void update_hi(bool skip_redraw);
                ^
cc1plus.exe: all warnings being treated as errors
emu.make:1648: recipe for target '../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o' failed
make[2]: *** [../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o] Error 1
makefile:79: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
makefile:879: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Ok...I believe it is now fixed...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 01, 2016, 12:08:23 pm
Ok...I believe it is now fixed...
thanks, MKChamp, but i got another similar error with new patch:

Code: [Select]
Compiling src/emu/ui/dsplmenu.cpp...
In file included from ../../../../../src/emu/ui/dsplmenu.cpp:19:0:
../../../../../src/osd/../osd/windows/winmain.h:302:16: error: 'virtual void windows_osd_interface::update_hi(bool
)' can be marked override [-Werror=suggest-override]
   virtual void update_hi(bool skip_redraw);
                ^
cc1plus.exe: all warnings being treated as errors
emu.make:1648: recipe for target '../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o' failed
make[2]: *** [../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o] Error 1
makefile:79: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
makefile:879: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2
Title: Re: hiscore diff (with no nag/white box removal)
Post by: EMDB on April 01, 2016, 12:58:32 pm
The original patch worked just fine with the 0172 sources and the latest MC64 2.0.171 without any error or even the need to restart the compilation...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: airix on April 01, 2016, 01:25:13 pm
Can you guys check the whole compile log and send any and all warnings/errors?

here are mine:

Code: [Select]
Compiling src/emu/ui/dsplmenu.cpp...
In file included from ../../../../../src/osd/../osd/windows/winmain.h:14:0,
                 from ../../../../../src/emu/ui/dsplmenu.cpp:19:
../../../../../src/osd/modules/lib/osdobj_common.h:175:16: error: 'virtual void osd_common_t::update_hi(bool)' can
 be marked override [-Werror=suggest-override]
   virtual void update_hi(bool skip_redraw);
                ^
In file included from ../../../../../src/emu/ui/dsplmenu.cpp:19:0:
../../../../../src/osd/../osd/windows/winmain.h:302:16: error: 'virtual void windows_osd_interface::update_hi(bool
)' can be marked override [-Werror=suggest-override]
   virtual void update_hi(bool skip_redraw);
                ^
cc1plus.exe: all warnings being treated as errors
emu.make:1648: recipe for target '../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o' failed
make[2]: *** [../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o] Error 1
makefile:79: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
makefile:879: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Ok...I believe it is now fixed...

That patch worked just fine on linux_x64, compiles with no errors and runs fine.
Thanks for the quick changes!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 01, 2016, 04:29:31 pm
Ok...I believe it is now fixed...
thanks, MKChamp, but i got another similar error with new patch:

Code: [Select]
Compiling src/emu/ui/dsplmenu.cpp...
In file included from ../../../../../src/emu/ui/dsplmenu.cpp:19:0:
../../../../../src/osd/../osd/windows/winmain.h:302:16: error: 'virtual void windows_osd_interface::update_hi(bool
)' can be marked override [-Werror=suggest-override]
   virtual void update_hi(bool skip_redraw);
                ^
cc1plus.exe: all warnings being treated as errors
emu.make:1648: recipe for target '../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o' failed
make[2]: *** [../../../../mingw-gcc/obj/x64/Release/src/emu/ui/dsplmenu.o] Error 1
makefile:79: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
makefile:879: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

OK..OK...This one SHOULD WORK I promise!  ;D
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 01, 2016, 09:59:39 pm
OK..OK...This one SHOULD WORK I promise!  ;D

thank you, MKChamp!! it works perfectly now. much appreciated.

there are two warnings because of two tabs in the last line. i removed them, so it's perfect now.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 02, 2016, 04:08:27 pm
OK..OK...This one SHOULD WORK I promise!  ;D

thank you, MKChamp!! it works perfectly now. much appreciated.

there are two warnings because of two tabs in the last line. i removed them, so it's perfect now. ;) i'm attaching fixed diff to the post.

Great! Uploaded to main page!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 02, 2016, 08:29:44 pm
Great! Uploaded to main page!
cool, thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: h0tw1r3 on April 03, 2016, 02:44:09 pm
Now that hiscore support is back in mame (https://github.com/mamedev/mame/tree/master/plugins/hiscore) is there any reason for this patch to include hiscore support?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 04, 2016, 11:46:19 am
Now that hiscore support is back in mame (https://github.com/mamedev/mame/tree/master/plugins/hiscore) is there any reason for this patch to include hiscore support?

Once it's completely ironed out and has the full support of games as in the current hiscore.dat, then you won't see this patch updated anymore. I can't wait!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 14, 2016, 06:59:06 pm
Yes it will be great to not have to maintain the Patch  :applaud:

<UPDATED>
In the meantime I thought I'd let you know current observations of Nag/Loading patches under 0.172 SDL.

Nag patch enabled
1. Disables Nag Screen (As expected)
2. Disables Loading message but leaves white box (Not expected)

Loading patch enabled
1. Disables Loading message and removes white box (As expected - As long as nag patch is not enabled!)
2. When Nag patch is also enabled (typical) it causes the white box to be displayed (See nag patch point 2)

Also noticed in Mame 0.172 is the omission of the Legal Rom Requirement - Not sure if this was on purpose or not.

* Not sure if this has been an issue with previous releases - As I have just jumped up to 0.172 from an earlier release.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 15, 2016, 12:41:37 pm
Not sure why the Nag screen patch should affect the Loading message.  ???
Title: Re: hiscore diff (with no nag/white box removal)
Post by: h0tw1r3 on April 16, 2016, 10:47:14 pm
Not sure why the Nag screen patch should affect the Loading message.  ???

I came up with my own patch for uxme (https://github.com/h0tw1r3/uxme) because these patches never actually removed the white border. It appeared to work because when all messages are hidden the white border is never rendered. If any message is displayed before the machine starts, a white border will still be rendered.

Here's my take in patch form: https://playground.btolab.com/sandbox/kb/arcade/emulation/mame/mods/version/0.172/skip-messages-and-remove-white-border.patch.source

Provides three separate options: skip_loading, skip_warning, and render_border.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 16, 2016, 11:43:24 pm
Interesting, Looking at the loading patch - And it is forced on regardless of the config option setting.

+  //if (!options_get_bool(mame_options(), OPTION_DISABLE_LOADING_PATCH))
+    return;


Quote
I came up with my own patch for uxme because these patches never actually removed the white border. It appeared to work because when all messages are hidden the white border is never rendered. If any message is displayed before the machine starts, a white border will still be rendered.

Here's my take in patch form: https://playground.zaplabs.com/sandbox/kb/arcade/emulation/mame/mods/version/0.172/skip-messages-and-remove-white-border.patch.source

Provides three separate options: skip_loading, skip_warning, and render_border.

You have probably done what I was just about to do. Thanks for the link I'll have a look and read.
Given that the Hi_Score patch will more than likely move to the LUA script, It's probably time to look at liberating the other patches.

Of Course I really have no say in what happens - That's upto MKChamp - But I'm sure he's keen as previously indicated.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 17, 2016, 09:51:39 am
I came up with my own patch for uxme (https://github.com/h0tw1r3/uxme) because these patches never actually removed the white border. It appeared to work because when all messages are hidden the white border is never rendered. If any message is displayed before the machine starts, a white border will still be rendered.

Here's my take in patch form: https://playground.zaplabs.com/sandbox/kb/arcade/emulation/mame/mods/version/0.172/skip-messages-and-remove-white-border.patch.source

Provides three separate options: skip_loading, skip_warning, and render_border.

Just looking at your Skip_Loading sections compared to Hi_Score Disable_Loading_Patch

It seems there are three areas of interest:
fgrep "ui().set_startup_text"  * -R
Code: [Select]
emu/machine.cpp: ui().set_startup_text("Initializing...", true);
emu/romload.cpp: machine().ui().set_startup_text(buffer, false);
mame/machine/cps2crpt.cpp: machine.ui().set_startup_text(loadingMessage,FALSE);

Your patch does:
emu/machine.cpp:   ui().set_startup_text("Initializing...", true);
emu/romload.cpp:      machine().ui().set_startup_text(buffer, false);

Hi_Score does:
emu/romload.cpp:      machine().ui().set_startup_text(buffer, false);
mame/machine/cps2crpt.cpp:         machine.ui().set_startup_text(loadingMessage,FALSE);

Any reason your patch does not alter cps2crpt.cpp?

Will look at the rest of the patch (skip_warning, and render_border) over the week.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: h0tw1r3 on April 17, 2016, 05:22:23 pm

Just looking at your Skip_Loading sections compared to Hi_Score Disable_Loading_Patch

It seems there are three areas of interest:
fgrep "ui().set_startup_text"  * -R
Code: [Select]
emu/machine.cpp: ui().set_startup_text("Initializing...", true);
emu/romload.cpp: machine().ui().set_startup_text(buffer, false);
mame/machine/cps2crpt.cpp: machine.ui().set_startup_text(loadingMessage,FALSE);

Your patch does:
emu/machine.cpp:   ui().set_startup_text("Initializing...", true);
emu/romload.cpp:      machine().ui().set_startup_text(buffer, false);

Hi_Score does:
emu/romload.cpp:      machine().ui().set_startup_text(buffer, false);
mame/machine/cps2crpt.cpp:         machine.ui().set_startup_text(loadingMessage,FALSE);

Any reason your patch does not alter cps2crpt.cpp?

Will look at the rest of the patch (skip_warning, and render_border) over the week.

Thanks for reviewing the patch. Uploaded a new version. Removed some irrelevant code, fixed the cps2 decrypt message showing and simplified.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 18, 2016, 07:25:30 pm
For a different method of message suppression and writeup on using the MinGW environment.
http://forum.attractmode.org/index.php?topic=348.0 (http://forum.attractmode.org/index.php?topic=348.0)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 19, 2016, 12:18:32 pm
Just looked at the latest revision of @h0tw1r3 patch :burgerking:

This patch pretty much gets to the root of each area.
Looks like a much cleaner way of doing things.
& it's small - So it should be easy to manage..

Still have to test it out.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 19, 2016, 12:41:56 pm
I came up with my own patch for uxme (https://github.com/h0tw1r3/uxme) because these patches never actually removed the white border. It appeared to work because when all messages are hidden the white border is never rendered. If any message is displayed before the machine starts, a white border will still be rendered.

Here's my take in patch form: https://playground.zaplabs.com/sandbox/kb/arcade/emulation/mame/mods/version/0.172/skip-messages-and-remove-white-border.patch.source

Provides three separate options: skip_loading, skip_warning, and render_border.

It's obvious now to see why the Disable Nag in the Hi_Score patch was affecting the Loading messages (Kind of a double up on function).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 20, 2016, 08:31:59 am
Updated Hi_Score Patch 0.172c.txt
Hi_Score 0.172 has been repaired for both Win & SDL to provide expected operational behaviour.
It only deals with the suppression patches and does not alter the Hi_Score patch in any way.

In a nutshell, I noticed the suppression patches were not working correctly for SDL Mame (& Probably Windows too).

This patch has been built under the MinGW (Windows) environment and can be used by either Windows or SDL users.

Patch Notes:
The patch has been built on a Win7 64bit system in the MinGW environment (http://mamedev.org/tools/ (http://mamedev.org/tools/))
The patch has been compiled/tested on a Win7 64bit system.
The patch has been compiled/tested on a Linux 32bit system.
Mac has not been tested.



Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 21, 2016, 07:39:47 pm
Updated Hi_Score Patch 0.172d.txt
For end users, skip_gameinfo needs to be set in mame.ini
For maintainers, The suppression patches have been simplified.

Key points of Rev D
* KISS Philosopy applied to suppression patches - Making them simple & easy to maintain.
* Suppression & Hi_Score code separated in both diff & source files.
* Detailed explanation of suppression patches.
* Hi_Score code unaltered.

There are two areas to deal with regarding suppression of messages.
Note: The depth of patch is important, We want to keep it moderate as to not make the patch too abstract.

1. The Initializing, Loading & Decrypting messages.
2. The Warning (User input to continue) messages.

1. The Initializing, Loading & Decrypting messages.
These messages are sent via different subroutines to the "set_startup_text" function.
fgrep "ui().set_startup_text"  * -R
Code: [Select]
emu/machine.cpp: ui().set_startup_text("Initializing...", true);
emu/romload.cpp: machine().ui().set_startup_text(buffer, false);
mame/machine/cps2crpt.cpp: machine.ui().set_startup_text(loadingMessage,FALSE);

The current patch disables the message at each subroutine.
The natural progression is to follow the path and disable at the "set_startup_text" function.
This also has the benifit of being simpler and not interfering with the Hi_Score patch files.

The new method disables all the messages by immediately returning from the "set_startup_text" function call.


2. The Warning (User input to continue) messages.
These messages are all sent via the "display_startup_screens" function.

The old patch disables all interactive messages regardless of message type.
Code: [Select]
1. show_warnings
2. show_gameinfo
3. show_mandatory_fileman  (Mess related notice, May be ignored/omitted)

The new method targets show_warnings only, And will still display game_info if enabled.
(skip_gameinfo may be enabled/disabled by the standard Mame configuration option)




Build Notes:
This patch has been built under the MinGW (Windows) environment and can be used by either Windows or SDL users.

Patch Notes:
The patch has been built on a Win7 64bit system in the MinGW environment (http://mamedev.org/tools/ (http://mamedev.org/tools/))
The patch has been compiled/tested on a Win7 64bit system.
The patch has been compiled/tested on a Linux 32bit system.
Mac has not been tested.


Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 23, 2016, 12:38:17 pm
The next logical step might be to tie all the suppression patches to "skip_gameinfo" thereby making the suppression patches fully separated from the Hi_Score patch (ie. declarations) AND able to be toggled on/off by the standard Mame "skip_gameinfo" option.....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 23, 2016, 09:47:13 pm
Updated Hi_Score Patch 0.172e.txt FINAL
This should be the final release of the updates.
Summary of changes
* hi_172c - Repair of suppression patches.
* hi_172d - Simplify suppression patches.
* hi_172e - Liberate suppression patches.

Key points of Rev E
* KISS Philosopy applied to suppression patches - Making them simple & easy to maintain.
* Suppression patches now toggled on/off by the Mame "skip_gameinfo" option.
* Suppression & Hi_Score code separated in both diff & source files.
* Hi_Score code unaltered.

Maintenance note: The suppression patches have been fully separated from the hi_score patch (ie declarations).

Build Notes:
This patch has been built under the MinGW (Windows) environment and can be used by either Windows or SDL users.

Patch Notes:
The patch has been built on a Win7 64bit system in the MinGW environment (http://mamedev.org/tools/ (http://mamedev.org/tools/))
The patch has been compiled/tested on a Win7 64bit system.
The patch has been compiled/tested on a Linux 32bit system.
Mac has not been tested.



Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 27, 2016, 06:43:57 am
hi_172.txt doesn't work with 0.173 source tree.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 27, 2016, 07:24:35 pm
hi_172.txt doesn't work with 0.173 source tree.

This patches ok and executable seems to work without any problems.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 27, 2016, 09:15:10 pm
This patches ok and executable seems to work without any problems.
your diff somehow crashes patch.exe:

Code: [Select]
[MINGW64] D:\emulation\ExtraStuff\BuildTools\src>patch -p0 -E  < hi_173.txt
patching file src/emu/emuopts.cpp
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

patch 2.5.9 (http://gnuwin32.sourceforge.net/packages/patch.htm), Windows 10 x64
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 27, 2016, 09:43:39 pm
This patches ok and executable seems to work without any problems.
your diff somehow crashes patch.exe:

Code: [Select]
[MINGW64] D:\emulation\ExtraStuff\BuildTools\src>patch -p0 -E  0<hi_173.txt
patching file src/emu/emuopts.cpp
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

patch 2.5.9 (http://gnuwin32.sourceforge.net/packages/patch.htm), Windows 10 x64

You need to patch like this
Code: [Select]
patch --binary -p0 -E <hi_173.txt
There is a writeup on using the MinGW environment here:
http://forum.attractmode.org/index.php?topic=348.0 (http://forum.attractmode.org/index.php?topic=348.0)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 27, 2016, 09:47:59 pm
You need to patch like this
Code: [Select]
patch --binary -p0 -E <hi_173.txt
i don't patch binaries, i patch MAME source:

Code: [Select]
patch -p0 -E  < hi_173.txt
Quote
There is a writeup on using the MinGW environment here:
http://forum.attractmode.org/index.php?topic=348.0 (http://forum.attractmode.org/index.php?topic=348.0)
thanks, i don't need instructions on how to use patch.exe.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 27, 2016, 09:50:41 pm
You need to patch like this
Code: [Select]
patch --binary -p0 -E <hi_173.txt
i don't patch binaries, i patch MAME source:

Code: [Select]
patch -p0 -E  < hi_173.txt
Quote
There is a writeup on using the MinGW environment here:
http://forum.attractmode.org/index.php?topic=348.0 (http://forum.attractmode.org/index.php?topic=348.0)
thanks, i don't need instructions on how to use patch.exe.

I'm sure you will work it out then.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 27, 2016, 09:52:05 pm
I'm sure you will work it out then.
yeah, already worked out - your diff crashes patch.exe.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 27, 2016, 09:54:00 pm
I'm sure you will work it out then.
yeah, already worked out - your diff crashes patch.exe.

Well why don't you be helpful rather than an Ass and post what you did to work it out, So others can benefit....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 27, 2016, 09:55:40 pm
Well why don't you be helpful rather than an Ass and post what you did to work it out, So others can benefit....
i already posted an error, patch and OS version. you just don't want to listen.

p.s.: i'm giving it another test just right now to make sure, it's not a problem on my end.

p.s. 2: still crashes.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Nightbring3r on April 27, 2016, 10:18:10 pm
Well why don't you be helpful rather than an Ass and post what you did to work it out, So others can benefit....
i already posted an error, patch and OS version. you just don't want to listen.

p.s.: i'm giving it another test just right now to make sure, it's not a problem on my end.

p.s. 2: still crashes.

He already told you what to do. Patch with --binary since the diff has different line endings than the source.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 27, 2016, 10:21:38 pm
Well why don't you be helpful rather than an Ass and post what you did to work it out, So others can benefit....
i already posted an error, patch and OS version. you just don't want to listen.

p.s.: i'm giving it another test just right now to make sure, it's not a problem on my end.

p.s. 2: still crashes.

I did listen, And I gave you a solution too (FWIW One that works on my Windows machine).
I suspect it's a cr/lf issue, But interested in your fix to see of that is the case.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 27, 2016, 10:31:46 pm
He already told you what to do. Patch with --binary since the diff has different line endings than the source.
oh, i didn't realise --binary is needed extra key.

I did listen, And I gave you a solution too (FWIW One that works on my Windows machine).
i just tried it once again with --binary, and it worked. thank you.

Quote
I suspect it's a cr/lf issue, But interested in your fix to see of that is the case.
i don't have a fix, because i'm not a programmer.

will --binary -p0 -E < diff.txt work with previous MKChamp's diffs? (i just tested, it doesn't work).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on April 28, 2016, 01:59:59 am
ozfalcon, compiled fine, thanks once again!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on April 29, 2016, 03:32:31 pm
Hey ozfalcon,
I appreciate your work! To be honest...I am completely burned out. Would you like to take over this thread? Perhaps one of the moderators can give you edit access to update the main page and abelenki can give you ftp access to upload the updated patched?

Once again...good work.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: airix on April 29, 2016, 05:49:16 pm


This patches ok and executable seems to work without any problems.
[/quote]

Thanks ozfalcon for working on this!

Is this just the hi score patch?  I patched mine but it still am getting the nag screen.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 29, 2016, 06:41:26 pm


This patches ok and executable seems to work without any problems.

Thanks ozfalcon for working on this!

Is this just the hi score patch?  I patched mine but it still am getting the nag screen.
[/quote]
No It should also be the nag patch, Make sure you have in your mame.ini
Code: [Select]
skip_gameinfo             1
And let me know what happens.
And also what's the rom your running (or all roms?)

Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 29, 2016, 07:09:02 pm
Hey ozfalcon,
I appreciate your work! To be honest...I am completely burned out. Would you like to take over this thread? Perhaps one of the moderators can give you edit access to update the main page and abelenki can give you ftp access to upload the updated patched?

Once again...good work.
I'm not sure I'd be a good candidate for taking over this thread, I rarely have time - It's only occasionally I have small breaks of time like this  :-\
Last time I had time like this was back at Mame version 0.154

You & abelenki do such a good job maintaining and hosting the patch that the entire community appreciates your work.
I just try to help out where & when I can.

We also have to consider that when the Lua Hi Score support is stable and can be trusted that this may become redundant.
Until such a time, I think your doing great work running this thread - You don't need to pass it on.
 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: airix on April 29, 2016, 07:26:52 pm


This patches ok and executable seems to work without any problems.

Thanks ozfalcon for working on this!

Is this just the hi score patch?  I patched mine but it still am getting the nag screen.
No It should also be the nag patch, Make sure you have in your mame.ini
Code: [Select]
skip_gameinfo             1
And let me know what happens.
And also what the rom your running (or all roms?)
[/quote]

That did that trick!  Thanks again for working on this.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 29, 2016, 07:58:55 pm

disable_hiscore_patch   1   <- To disable highscore support. Set to 0 or omit it entirely from ini file to enable.
disable_crosshair_patch   1  <- To disable crosshairs off by default. Set to 0 or omit it entirely from ini file to enable. <- removed @ hi_130u3
disable_nagscreen_patch   1  <- To disable removal of nagscreens /white box. Set to 0 or omit it entirely from ini file to enable. <- removed @ hi_172e
disable_loading_patch   1      <- To disable suppression of loading/decrypting/etc messages. Set to 0 or omit it entirely from ini file to enable. <- removed @ hi_172e
skip_gameinfo   0      <- To disable suppression of gameinfo, nagscreen & loading/decrypting messages. Set to 1 to enable suppression.


Minor Correction:
skip_gameinfo control applied @ hi_172e (Not hi_172c).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on April 30, 2016, 10:54:29 pm
<Redundant post removed>
<Thought I'd missed something - But I was looking at the wrong source tree....>
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 02, 2016, 03:54:39 pm
Hey ozfalcon,
I appreciate your work! To be honest...I am completely burned out. Would you like to take over this thread? Perhaps one of the moderators can give you edit access to update the main page and abelenki can give you ftp access to upload the updated patched?

Once again...good work.
I'm not sure I'd be a good candidate for taking over this thread, I rarely have time - It's only occasionally I have small breaks of time like this  :-\
Last time I had time like this was back at Mame version 0.154

You & abelenki do such a good job maintaining and hosting the patch that the entire community appreciates your work.
I just try to help out where & when I can.

We also have to consider that when the Lua Hi Score support is stable and can be trusted that this may become redundant.
Until such a time, I think your doing great work running this thread - You don't need to pass it on.
 

I'll admit...I am completely burned out after almost a decade of supporting this :-) Hopefully Lua will be stable soon. I appreciate you stepping in...if only briefly! I added the patch to the main page.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on May 02, 2016, 06:37:50 pm
Yes very briefly indeed, In fact my contribution is so minor - It really doesn't warrant any credits or mentions.

Thanks for uploading the current patch, I'm sure there are plenty of people still relying on it (Can only guess the DL numbers).
I'm not sure if the transition to monthly updates has increased the burden, But I imagine it has contributed considerably.

Credits and continued thanks again to @MKChamp and @abelenki for maintaining and hosting.
 
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on May 25, 2016, 09:38:40 am
hi_173.txt works fine with 0.174 source tree, but with some warnings.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on May 25, 2016, 11:45:48 am
Patch cleaned up to remove warning...and uploaded....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on May 25, 2016, 11:49:31 am
Patch cleaned up to remove warning...and uploaded....
thanks!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MomoneDk on May 27, 2016, 05:44:50 am
Really appreciated that you continue to update the diff for the hiscore.dat !!!

Thanks
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Arbee on June 03, 2016, 12:13:58 pm
Why is this still a thing?  Hiscore support is now included with MAME specifically so that all you guys can use baseline and will finally be welcome at MAMETesters.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Arbee on June 03, 2016, 12:18:37 pm
The other concern is if the new hi score script removes nag screens or if anyone is developing a script for that. I have a cabinet setup with Hyperspin shelled to hide Windows and dont want nag screens since it kinda ruins the effect I'm going for, that is, the feel of a real arcade machine.

Real arcade machines don't run Hyperspin.  Your nitpicking is invalid.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on June 13, 2016, 11:16:30 pm
I muffed up  :badmood:

I neglected to include the No-White-Border code (Thanks go to @h0tw1r3 for the code snippet).

Attached is "hi_174nowhitebox.txt"
This patch has been tested on both Linux and Windows (MinGW) platforms.

Patch Note:
Due to LF/CR, Patch with the --binary flag.
Code: [Select]
patch --binary -p0 -E <../hi_174nowhitebox.txt

Compile Note:
I believe that due to updates in the MinGW environment, It may be necessary to compile with the "No Warning Error" flag.
Code: [Select]
make SUBTARGET=arcade NOWERROR=1

Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on June 13, 2016, 11:43:01 pm
Just to clarify for those that might be interested.

There were actually TWO white boxes.
1. Is the box surrounding the dialog (When not removed was visible in the center of the screen).
2. Is the border surrounding the entire screen. (Referred to as nowhitebox - infact means no white border).

The 1st was resolved with the repair of the suppression patches.
The 2nd is resolved with the previous post attachment "hi_174nowhitebox.txt".
Title: Re: hiscore diff (with no nag/white box removal)
Post by: kaptainsteve on June 24, 2016, 03:55:09 pm
Hello, I have a couple of questions I was hoping someone could help me with.

First, is Hiscore now in the regular Mame?

Second, can someone please walk through, step by step a checklist of things to check for when one's hiscores are not saving in a Mame 174 compiled with hiscore?  I've tried everything yet the scores are not saving... please!

Thanks in advance.

Steve
Title: Re: hiscore diff (with no nag/white box removal)
Post by: EssexMame on June 28, 2016, 05:17:26 am
First, is Hiscore now in the regular Mame?
Hi.

I think it is in the regular mame now. I'd not seen any documentation saying so and I might be mistaken but I've downloaded/setup 0.174 and didn't do this patch. Indeed I was planning on doing so but it didn't seem to need it! I do have 0.133 on the same machine  (different directory) with this patch but the 0.174 is definitely saving some/all highscores. Flying Shark certainly and I believe others. Of course these could be doing it as per original hardware (NVRAM) where the machine saved high scores after power off...

For high score on the patch method, you need a "hi" directory under Mame and disable_highscore_patch 0 (or remove the disable_highscore_patch line entirely from mame.ini).
Title: Re: hiscore diff (with no nag/white box removal)
Post by: MKChamp on June 29, 2016, 11:47:59 am
Patch updated to 175...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on June 29, 2016, 11:50:20 am
Patch updated to 175...
thanks, MKChamp!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ginsonic on June 30, 2016, 06:34:26 am
Unfortunately the new patch is not working for me with MAME version 175:

Log:

Testing Diff Patch...
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru old/emu/emuopts.cpp src/emu/emuopts.cpp
|--- old/emu/emuopts.cpp   2016-06-29 03:04:14.753317700 -0500
|+++ src/emu/emuopts.cpp   2016-06-29 09:36:42.863647400 -0500
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 28
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.
|diff -Nru old/emu/emuopts.h src/emu/emuopts.h


Update:

The patch did not work using MAME compiler. When I patched it manually using the buildtools command line, it worked flawlessly !
Title: Re: hiscore diff (with no nag/white box removal)
Post by: headkaze on June 30, 2016, 01:25:45 pm
The patch did not work using MAME compiler. When I patched it manually using the buildtools command line, it worked flawlessly ![/b]

I changed the default -p option to work with the new feature to create patches. If MKChamp used MAME Compiler to create the patch then there wouldn't be a problem as the -p options would match.

I think I'm going to have to add a manual -p setting to MAME Compiler as there doesn't seem to be a setting that will work with all patches.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Ginsonic on July 01, 2016, 03:00:23 am

I changed the default -p option to work with the new feature to create patches. If MKChamp used MAME Compiler to create the patch then there wouldn't be a problem as the -p options would match.

I think I'm going to have to add a manual -p setting to MAME Compiler as there doesn't seem to be a setting that will work with all patches.

Thanks for the info Headkaze !
Title: Re: hiscore diff (with no nag/white box removal)
Post by: fleskebacon on July 03, 2016, 05:49:40 pm
Hi all, I've been using these diffs since like forever.

Lately, I'm having issues with artwork when using the patched and compiled Mame64.exe.

What happens is, that when I set video mode to standard 4:3 without any artwork, it saves this option one time, but then removes the lines from the .cfg file and at the next start, the game is back to default, which is usually not 4:3 but some artwork option that I obviously don't want as default.

Regular Mame not patched works fine.

Any options or anything new I've missed, or is anybody else also having this?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 04, 2016, 06:29:26 am
Hi all, I've been using these diffs since like forever.

Lately, I'm having issues with artwork when using the patched and compiled Mame64.exe.

What happens is, that when I set video mode to standard 4:3 without any artwork, it saves this option one time, but then removes the lines from the .cfg file and at the next start, the game is back to default, which is usually not 4:3 but some artwork option that I obviously don't want as default.

Regular Mame not patched works fine.

Any options or anything new I've missed, or is anybody else also having this?

I am unable to reproduce this behaviour on SDL/Linux.
Which Mame version are you experiencing this problem?
Title: Re: hiscore diff (with no nag/white box removal)
Post by: fleskebacon on July 04, 2016, 10:34:22 am
Hi all, I've been using these diffs since like forever.

Lately, I'm having issues with artwork when using the patched and compiled Mame64.exe.

What happens is, that when I set video mode to standard 4:3 without any artwork, it saves this option one time, but then removes the lines from the .cfg file and at the next start, the game is back to default, which is usually not 4:3 but some artwork option that I obviously don't want as default.

Regular Mame not patched works fine.

Any options or anything new I've missed, or is anybody else also having this?

I am unable to reproduce this behaviour on SDL/Linux.
Which Mame version are you experiencing this problem?
I'm using Windows 7 64-bit, same thing happens in both 0173 and 0175. Haven't tested 0174. I think the issue started with 0173, but I'm not sure.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 04, 2016, 08:08:18 pm
Hi all, I've been using these diffs since like forever.

Lately, I'm having issues with artwork when using the patched and compiled Mame64.exe.

What happens is, that when I set video mode to standard 4:3 without any artwork, it saves this option one time, but then removes the lines from the .cfg file and at the next start, the game is back to default, which is usually not 4:3 but some artwork option that I obviously don't want as default.

Regular Mame not patched works fine.

Any options or anything new I've missed, or is anybody else also having this?

I am unable to reproduce this behaviour on SDL/Linux.
Which Mame version are you experiencing this problem?
I'm using Windows 7 64-bit, same thing happens in both 0173 and 0175. Haven't tested 0174. I think the issue started with 0173, but I'm not sure.
I can reproduce the problem.
ONLY the "view=" gets removed on subsequent runs.

As a workaround - Use an artwork lay file defining your video mode.
This may take some time to get fixed (GroovyMame may be suffering the same problem - It uses almost identical mechanism)

The problem I believe is the suppression of the loading patch.
Reference:
http://forum.arcadecontrols.com/index.php/topic,64298.msg1434501.html#msg1434501 (http://forum.arcadecontrols.com/index.php/topic,64298.msg1434501.html#msg1434501)

Title: Re: hiscore diff (with no nag/white box removal)
Post by: kaptainsteve on July 04, 2016, 08:52:17 pm
Hiscore saving and no nag is included in the plugin option in all Mames now after 174....
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 04, 2016, 09:01:05 pm
Hiscore saving and no nag is included in the plugin option in all Mames now after 174....
What is the no nag option to disable the "There are known problems with this machine", White borders and loading messages.....?

The hiscore plugin appears to be fine, But the plugins function still requires bug fixes and the like - Though it is still perfectly usable.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 04, 2016, 11:43:18 pm
Hi all, I've been using these diffs since like forever.

Lately, I'm having issues with artwork when using the patched and compiled Mame64.exe.

What happens is, that when I set video mode to standard 4:3 without any artwork, it saves this option one time, but then removes the lines from the .cfg file and at the next start, the game is back to default, which is usually not 4:3 but some artwork option that I obviously don't want as default.

Regular Mame not patched works fine.

Any options or anything new I've missed, or is anybody else also having this?

Thanks for posting  :applaud:

I have moved the "loading" messages patch, The game.cfg issue is resolved.

However, There may be unforeseen consequences........... Like other expected messages not showing.

 So now would be a good time to give it a thorough testing.

Update: Patch hi_175b.txt removed, Use hi_175c.txt in the next post.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 05, 2016, 01:05:34 am
One unforeseen consequence has been found.
If using  "-confirm_quit" then the exit dialog is clobbered.

This patch fixes the "-confirm_quit" dialog (And possibly others).

New (hi_175c.txt) patch still needs a thorough testing.

Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on July 05, 2016, 04:10:52 am
One unforeseen consequence has been found.
If using the -confirm_quit then the exit dialog is clobbered.

This patch fixes the -confirm_quit dialog.

New (hi_175c.txt) patch still needs a thorough testing.
(ie. Make sure all INITIALIZING, LOADING & DECRYPTING MESSAGES are suppressed).

Tested on linux xubuntu 16.04, mame works good but I have a problem with my previous high score, maybe I missed something ?

hi directory in mame directory
highscore.dat in mame directory
disable_highscore_patch removed from mame.ini
hiscore_directory         $HOME/.mame/hi added in mame.ini

But now there is no high score in game
Title: Re: hiscore diff (with no nag/white box removal)
Post by: hsialin on July 05, 2016, 04:53:28 am
HeadKaze we need you bad man.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 05, 2016, 07:38:25 am
One unforeseen consequence has been found.
If using the -confirm_quit then the exit dialog is clobbered.

This patch fixes the -confirm_quit dialog.

New (hi_175c.txt) patch still needs a thorough testing.
(ie. Make sure all INITIALIZING, LOADING & DECRYPTING MESSAGES are suppressed).

Tested on linux xubuntu 16.04, mame works good but I have a problem with my previous high score, maybe I missed something ?

hi directory in mame directory
highscore.dat in mame directory
disable_highscore_patch removed from mame.ini
hiscore_directory         $HOME/.mame/hi added in mame.ini

But now there is no high score in game

These changes do not affect the hiscore code, So it's likely something your doing differently.
You need to be sure you start Mame in the same directory as the hiscore.dat
You also need to use the MKChamp hiscore.dat (Not the one supplied with Mame.zip)
 http://highscore.mameworld.info/download.htm (http://highscore.mameworld.info/download.htm)

Also ensure you have the Lua script version of hiscore disabled.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on July 05, 2016, 09:51:52 am

Quote

These changes do not affect the hiscore code, So it's likely something your doing differently.
You need to be sure you start Mame in the same directory as the hiscore.dat
You also need to use the MKChamp hiscore.dat (Not the one supplied with Mame.zip)
 http://highscore.mameworld.info/download.htm (http://highscore.mameworld.info/download.htm)

Also ensure you have the Lua script version of hiscore disabled.

Yes right, now I remember that http://forum.arcadecontrols.com/index.php/topic,64298.msg1440381.html#msg1440381 (http://forum.arcadecontrols.com/index.php/topic,64298.msg1440381.html#msg1440381)
I will make a try thanks
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on July 05, 2016, 12:19:44 pm

Quote

These changes do not affect the hiscore code, So it's likely something your doing differently.
You need to be sure you start Mame in the same directory as the hiscore.dat
You also need to use the MKChamp hiscore.dat (Not the one supplied with Mame.zip)
 http://highscore.mameworld.info/download.htm (http://highscore.mameworld.info/download.htm)

Also ensure you have the Lua script version of hiscore disabled.

Yes right, now I remember that http://forum.arcadecontrols.com/index.php/topic,64298.msg1440381.html#msg1440381 (http://forum.arcadecontrols.com/index.php/topic,64298.msg1440381.html#msg1440381)
I will make a try thanks


Ok it's good I added a path in source code
I guess hiscore.dat in hi directory, by default, should be a more logical/practical way ...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 05, 2016, 05:42:40 pm

Quote

These changes do not affect the hiscore code, So it's likely something your doing differently.
You need to be sure you start Mame in the same directory as the hiscore.dat
You also need to use the MKChamp hiscore.dat (Not the one supplied with Mame.zip)
 http://highscore.mameworld.info/download.htm (http://highscore.mameworld.info/download.htm)

Also ensure you have the Lua script version of hiscore disabled.

Yes right, now I remember that http://forum.arcadecontrols.com/index.php/topic,64298.msg1440381.html#msg1440381 (http://forum.arcadecontrols.com/index.php/topic,64298.msg1440381.html#msg1440381)
I will make a try thanks


Ok it's good I added a path in source code
I guess hiscore.dat in hi directory, by default, should be a more logical/practical way ...

Yes, It is more convenient to have hiscore.dat coupled with the hi score directory.
However, The HiScore component of this patch is MKChamps expertise - So I don't modify it at all.

I do use the same method, But rather than modifying the source - I just patch the HiScore patch.
ie. Apply the HiScore patch then apply the HiDatDirectory patch (Attached) and your hiscore.dat will be looked for in the "hi" directory.

<Also added current hi_175c.txt for convenience>
Title: Re: hiscore diff (with no nag/white box removal)
Post by: cugel on July 06, 2016, 09:26:22 am
Yes I did the same thing, hope I will not forget the next time ;)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: fleskebacon on July 07, 2016, 07:45:07 am
Hiscore saving and no nag is included in the plugin option in all Mames now after 174....
What is the no nag option to disable the "There are known problems with this machine", White borders and loading messages.....?

The hiscore plugin appears to be fine, But the plugins function still requires bug fixes and the like - Though it is still perfectly usable.
I've been using the hiscore plugin for some time now, and as you say - it seems to be working fine, at least in all games I've played.

Worth to mention that the MKChamp hiscore patch and the Mame plugin use different formats of the hiscore.dat file... I sure spent some frustrating time before discovering this.

I also found some old code for supressing the white box and all loading messages, it seems to work fine with the recent Mame versions as well. Could very well be the same code used in this diff for all I know, but at first glance it seems to do it in a different way. My programming skills are absolutely rubbish, so I barely have a clue of what I'm doing... However, I managed to manually patch render.cpp and ui.cpp using the code I found, so now I have a nag-free Mame without added hiscore support, and using the Mame hiscore plugin.

Could very well turn out to be problems with this approach, but so far so good. Will check back later with an update on this. :)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 07, 2016, 10:57:56 am
Hiscore saving and no nag is included in the plugin option in all Mames now after 174....
What is the no nag option to disable the "There are known problems with this machine", White borders and loading messages.....?

The hiscore plugin appears to be fine, But the plugins function still requires bug fixes and the like - Though it is still perfectly usable.
I've been using the hiscore plugin for some time now, and as you say - it seems to be working fine, at least in all games I've played.

Worth to mention that the MKChamp hiscore patch and the Mame plugin use different formats of the hiscore.dat file... I sure spent some frustrating time before discovering this.

I also found some old code for supressing the white box and all loading messages, it seems to work fine with the recent Mame versions as well. Could very well be the same code used in this diff for all I know, but at first glance it seems to do it in a different way. My programming skills are absolutely rubbish, so I barely have a clue of what I'm doing... However, I managed to manually patch render.cpp and ui.cpp using the code I found, so now I have a nag-free Mame without added hiscore support, and using the Mame hiscore plugin.

Could very well turn out to be problems with this approach, but so far so good. Will check back later with an update on this. :)

The suppression code is right at the end of the hiscore patch - The entire lot can be easily removed to be standalone.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Sorn on July 07, 2016, 12:35:53 pm
The patch did not work using MAME compiler. When I patched it manually using the buildtools command line, it worked flawlessly ![/b]

I changed the default -p option to work with the new feature to create patches. If MKChamp used MAME Compiler to create the patch then there wouldn't be a problem as the -p options would match.

I think I'm going to have to add a manual -p setting to MAME Compiler as there doesn't seem to be a setting that will work with all patches.

I would like to get 0175 compiled with the hi score patch, is there currently any work around (such as a diff patching util) or do we need to wait for your update headkaze?

Thank you!
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on July 07, 2016, 12:45:04 pm
I would like to get 0175 compiled with the hi score patch, is there currently any work around (such as a diff patching util) or do we need to wait for your update headkaze?
LOL.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: ppv on July 07, 2016, 12:54:59 pm
http://www.hyperspin-fe.com/files/download/11913-mame-64bit-nonag-hi-score-raw-input/ (http://www.hyperspin-fe.com/files/download/11913-mame-64bit-nonag-hi-score-raw-input/)

you'll need an account of the Hyperspin forum though...
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Sorn on July 11, 2016, 07:38:19 pm
I am running into the same problem, although I am using the command line environment (windows/64) and its still throwing the same error with 0175. Could someone please explain the correct syntax to get beyond this error? I understand that mame has officially added support, though I am more interested in fully removing nag screens, which official mame currently does not offer, and this patch does.

thank you.

Unfortunately the new patch is not working for me with MAME version 175:

Log:

Testing Diff Patch...
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru old/emu/emuopts.cpp src/emu/emuopts.cpp
|--- old/emu/emuopts.cpp   2016-06-29 03:04:14.753317700 -0500
|+++ src/emu/emuopts.cpp   2016-06-29 09:36:42.863647400 -0500
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 28
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.
|diff -Nru old/emu/emuopts.h src/emu/emuopts.h


Update:

The patch did not work using MAME compiler. When I patched it manually using the buildtools command line, it worked flawlessly !

Title: Re: hiscore diff (with no nag/white box removal)
Post by: ozfalcon on July 12, 2016, 12:00:04 am
I am running into the same problem, although I am using the command line environment (windows/64) and its still throwing the same error with 0175. Could someone please explain the correct syntax to get beyond this error? I understand that mame has officially added support, though I am more interested in fully removing nag screens, which official mame currently does not offer, and this patch does.

thank you.

Unfortunately the new patch is not working for me with MAME version 175:

Log:

Testing Diff Patch...
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru old/emu/emuopts.cpp src/emu/emuopts.cpp
|--- old/emu/emuopts.cpp   2016-06-29 03:04:14.753317700 -0500
|+++ src/emu/emuopts.cpp   2016-06-29 09:36:42.863647400 -0500
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 28
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.
|diff -Nru old/emu/emuopts.h src/emu/emuopts.h


Update:

The patch did not work using MAME compiler. When I patched it manually using the buildtools command line, it worked flawlessly !


Are you using the official build tools environment, Not the standard windows command line environment?
http://mamedev.org/tools/ (http://mamedev.org/tools/)
Title: Re: hiscore diff (with no nag/white box removal)
Post by: Sorn on July 12, 2016, 11:31:28 pm
I am running into the same problem, although I am using the command line environment (windows/64) and its still throwing the same error with 0175. Could someone please explain the correct syntax to get beyond this error? I understand that mame has officially added support, though I am more interested in fully removing nag screens, which official mame currently does not offer, and this patch does.

thank you.

Unfortunately the new patch is not working for me with MAME version 175:

Log:

Testing Diff Patch...
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru old/emu/emuopts.cpp src/emu/emuopts.cpp
|--- old/emu/emuopts.cpp   2016-06-29 03:04:14.753317700 -0500
|+++ src/emu/emuopts.cpp   2016-06-29 09:36:42.863647400 -0500
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 28
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.
|diff -Nru old/emu/emuopts.h src/emu/emuopts.h


Update:

The patch did not work using MAME compiler. When I patched it manually using the buildtools command line, it worked flawlessly !


Are you using the official build tools environment, Not the standard windows command line environment?
http://mamedev.org/tools/ (http://mamedev.org/tools/)

I am. Using the msys64 in console (win32con.bat) with the patching software updated (pacman --needed -Sy patch) and the following syntax
patch --binary -p0 -E <C:\msys32\hi_175.diff

Which results in the same error as the other user had, which I quoted.

Thank you for your response. I can compile 0175 no problem, just cant apply patch.
Title: Re: hiscore diff (with no nag/white box removal)
Post by: abelenki on July 12, 2016, 11:38:08 pm
I am. Using the msys64 in console (win32con.bat) with the patching software updated (pacman --needed -Sy patch) and the following syntax
patch --binary -p0 -E <C:\msys32\hi_175.diff

Which results in the same error as the other user had, which I quoted.
MKChamp's hi_175.diff should be applied without --binary parameter:

Code: [Select]
patch -p0 -E < hi_175.diff
Title: Re: hiscore diff (with no nag/white box remov