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

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

  

Author Topic: hiscore diff (with no nag/white box removal)  (Read 619508 times)

0 Members and 1 Guest are viewing this topic.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: hiscore diff (with no nag/white box removal)
« Reply #1120 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.

Ginsonic

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 96
  • Last login:October 09, 2023, 12:56:04 pm
  • Arcade enthusiast !
Re: hiscore diff (with no nag/white box removal)
« Reply #1121 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 !

fleskebacon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 73
  • Last login:Today at 04:02:32 pm
Re: hiscore diff (with no nag/white box removal)
« Reply #1122 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?

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1123 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?

fleskebacon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 73
  • Last login:Today at 04:02:32 pm
Re: hiscore diff (with no nag/white box removal)
« Reply #1124 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.

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1125 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

« Last Edit: July 04, 2016, 09:19:45 pm by ozfalcon »

kaptainsteve

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 70
  • Last login:February 18, 2024, 01:30:53 pm
    • Swamp-Ass
Re: hiscore diff (with no nag/white box removal)
« Reply #1126 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....

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1127 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.
« Last Edit: July 04, 2016, 09:04:41 pm by ozfalcon »

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1128 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.
« Last Edit: July 05, 2016, 09:21:02 am by ozfalcon »

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1129 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.

« Last Edit: July 05, 2016, 09:21:52 am by ozfalcon »

cugel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:July 06, 2016, 09:58:38 am
    • http://numsys.eu
Re: hiscore diff (with no nag/white box removal)
« Reply #1130 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

hsialin

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:July 11, 2016, 12:19:30 pm
  • I want to build my own arcade controls!
Re: hiscore diff (with no nag/white box removal)
« Reply #1131 on: July 05, 2016, 04:53:28 am »
HeadKaze we need you bad man.

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1132 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

Also ensure you have the Lua script version of hiscore disabled.
« Last Edit: July 05, 2016, 09:15:56 am by ozfalcon »

cugel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:July 06, 2016, 09:58:38 am
    • http://numsys.eu
Re: hiscore diff (with no nag/white box removal)
« Reply #1133 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

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
I will make a try thanks

cugel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:July 06, 2016, 09:58:38 am
    • http://numsys.eu
Re: hiscore diff (with no nag/white box removal)
« Reply #1134 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

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
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 ...

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1135 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

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
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>
« Last Edit: July 06, 2016, 07:41:54 am by ozfalcon »

cugel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:July 06, 2016, 09:58:38 am
    • http://numsys.eu
Re: hiscore diff (with no nag/white box removal)
« Reply #1136 on: July 06, 2016, 09:26:22 am »
Yes I did the same thing, hope I will not forget the next time ;)

fleskebacon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 73
  • Last login:Today at 04:02:32 pm
Re: hiscore diff (with no nag/white box removal)
« Reply #1137 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. :)

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1138 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.

Sorn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:July 09, 2018, 08:56:19 pm
  • I want to build my own arcade controls!
Re: hiscore diff (with no nag/white box removal)
« Reply #1139 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!

abelenki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:December 21, 2022, 06:58:00 pm
    • MAME Stuff
Re: hiscore diff (with no nag/white box removal)
« Reply #1140 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.
MAME Stuff | MAME favorites | Bubble Bobble Series chart / wiki | PC configuration

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: hiscore diff (with no nag/white box removal)
« Reply #1141 on: July 07, 2016, 12:54:59 pm »
« Last Edit: July 07, 2016, 12:57:24 pm by ppv »
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

Sorn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:July 09, 2018, 08:56:19 pm
  • I want to build my own arcade controls!
Re: hiscore diff (with no nag/white box removal)
« Reply #1142 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 !

« Last Edit: July 11, 2016, 09:32:55 pm by Sorn »

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1143 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/
« Last Edit: July 12, 2016, 06:41:18 am by ozfalcon »

Sorn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:July 09, 2018, 08:56:19 pm
  • I want to build my own arcade controls!
Re: hiscore diff (with no nag/white box removal)
« Reply #1144 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/

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.

abelenki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:December 21, 2022, 06:58:00 pm
    • MAME Stuff
Re: hiscore diff (with no nag/white box removal)
« Reply #1145 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
MAME Stuff | MAME favorites | Bubble Bobble Series chart / wiki | PC configuration

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1146 on: July 13, 2016, 08:32:08 am »
I just loaded up Windows/msys64 (Full console).

Updated the msys64 environment.

Unpacked Mame 0.175 (Twice).

Applied the patch with --binary and it worked without any errors or warnings.
 patch --binary -p0 -E <../hi_175.txt

Applied the patch without --binary and it complained about trailing CR/LF (Still appeared to work).
 patch -p0 -E <../hi_175.txt

Are you sure you are applying the patch from the correct location?

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1147 on: July 13, 2016, 08:44:35 am »
Just to note, There has been a bug fix and you probably want to be using hi_175c.txt
You will also more than likely need to patch hi_175c.txt with the --binary flag.

This post has the fixed revision
http://forum.arcadecontrols.com/index.php/topic,64298.msg1579630.html#msg1579630

Sorn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:July 09, 2018, 08:56:19 pm
  • I want to build my own arcade controls!
Re: hiscore diff (with no nag/white box removal)
« Reply #1148 on: July 13, 2016, 05:38:06 pm »
Just to note, There has been a bug fix and you probably want to be using hi_175c.txt
You will also more than likely need to patch hi_175c.txt with the --binary flag.

This post has the fixed revision
http://forum.arcadecontrols.com/index.php/topic,64298.msg1579630.html#msg1579630

Using hi_175c with the --binary flag worked :) thanks!

Sorn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:July 09, 2018, 08:56:19 pm
  • I want to build my own arcade controls!
Re: hiscore diff (with no nag/white box removal)
« Reply #1149 on: July 13, 2016, 07:02:24 pm »
Just to note, There has been a bug fix and you probably want to be using hi_175c.txt
You will also more than likely need to patch hi_175c.txt with the --binary flag.

This post has the fixed revision
http://forum.arcadecontrols.com/index.php/topic,64298.msg1579630.html#msg1579630

Using hi_175c with the --binary flag worked :) thanks!

Hah, spoke too soon! Patching works but compiling does not?

make[2]: *** No rule to make target '../../../../../src/emu/hiscore.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/emu/hisc
ore.o'.  Stop.
make[2]: *** Waiting for unfinished jobs....
Compiling src/devices/cpu/sh2/sh2dasm.cpp...

...continues compiling...

makefile:67: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
make[1]: *** Waiting for unfinished jobs....
Compiling src/mame/audio/targ.cpp...

...continues compiling....then gets to

Compiling src/devices/cpu/tms57002/57002dsm.cpp...
Archiving libdasm.a...
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Any idea?  :)

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1150 on: July 13, 2016, 08:42:36 pm »
Just to note, There has been a bug fix and you probably want to be using hi_175c.txt
You will also more than likely need to patch hi_175c.txt with the --binary flag.

This post has the fixed revision
http://forum.arcadecontrols.com/index.php/topic,64298.msg1579630.html#msg1579630

Using hi_175c with the --binary flag worked :) thanks!

Hah, spoke too soon! Patching works but compiling does not?

make[2]: *** No rule to make target '../../../../../src/emu/hiscore.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/emu/hisc
ore.o'.  Stop.
make[2]: *** Waiting for unfinished jobs....
Compiling src/devices/cpu/sh2/sh2dasm.cpp...

...continues compiling...

makefile:67: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
make[1]: *** Waiting for unfinished jobs....
Compiling src/mame/audio/targ.cpp...

...continues compiling....then gets to

Compiling src/devices/cpu/tms57002/57002dsm.cpp...
Archiving libdasm.a...
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Any idea?  :)

How are you compiling?

Sometimes compile will fail with -j3 (The number of jobs option).
The load option may help if this is a persistent issue on your machine when using the -j option.
Read this: https://www.gnu.org/software/make/manual/make.html#Parallel

If you restart the compile, It should continue and finish.

« Last Edit: July 13, 2016, 08:46:27 pm by ozfalcon »

brucelee00

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 110
  • Last login:December 13, 2020, 05:16:36 pm
Re: hiscore diff (with no nag/white box removal)
« Reply #1151 on: July 13, 2016, 10:00:53 pm »
Can someone explain how you and where you exactly apply the patch with binary ? I have tried using the hi_175.txt with the same errors above I have used hi_175c.txt with the same errors... how and where am i suppose to be applying these patches ? I am just using Mamecompiler 64> apply patch option to apply the patch. Thanks for the help in advance :)

Sorn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:July 09, 2018, 08:56:19 pm
  • I want to build my own arcade controls!
Re: hiscore diff (with no nag/white box removal)
« Reply #1152 on: July 14, 2016, 12:59:02 am »
Just to note, There has been a bug fix and you probably want to be using hi_175c.txt
You will also more than likely need to patch hi_175c.txt with the --binary flag.

This post has the fixed revision
http://forum.arcadecontrols.com/index.php/topic,64298.msg1579630.html#msg1579630

Using hi_175c with the --binary flag worked :) thanks!

Hah, spoke too soon! Patching works but compiling does not?

make[2]: *** No rule to make target '../../../../../src/emu/hiscore.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/emu/hisc
ore.o'.  Stop.
make[2]: *** Waiting for unfinished jobs....
Compiling src/devices/cpu/sh2/sh2dasm.cpp...

...continues compiling...

makefile:67: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
make[1]: *** Waiting for unfinished jobs....
Compiling src/mame/audio/targ.cpp...

...continues compiling....then gets to

Compiling src/devices/cpu/tms57002/57002dsm.cpp...
Archiving libdasm.a...
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Any idea?  :)

How are you compiling?

Sometimes compile will fail with -j3 (The number of jobs option).
The load option may help if this is a persistent issue on your machine when using the -j option.
Read this: https://www.gnu.org/software/make/manual/make.html#Parallel

If you restart the compile, It should continue and finish.

Yes, I thought it might be the -j option, so I did a make clean and then started fresh with a new make and it got similar errors.

Compiling src/emu/hashfile.cpp...
make[2]: *** No rule to make target '../../../../../src/emu/hiscore.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/emu/hiscore.o'.  Stop.
makefile:67: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1153 on: July 14, 2016, 03:52:17 am »
Just to note, There has been a bug fix and you probably want to be using hi_175c.txt
You will also more than likely need to patch hi_175c.txt with the --binary flag.

This post has the fixed revision
http://forum.arcadecontrols.com/index.php/topic,64298.msg1579630.html#msg1579630

Using hi_175c with the --binary flag worked :) thanks!

Hah, spoke too soon! Patching works but compiling does not?

make[2]: *** No rule to make target '../../../../../src/emu/hiscore.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/emu/hisc
ore.o'.  Stop.
make[2]: *** Waiting for unfinished jobs....
Compiling src/devices/cpu/sh2/sh2dasm.cpp...

...continues compiling...

makefile:67: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
make[1]: *** Waiting for unfinished jobs....
Compiling src/mame/audio/targ.cpp...

...continues compiling....then gets to

Compiling src/devices/cpu/tms57002/57002dsm.cpp...
Archiving libdasm.a...
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Any idea?  :)

How are you compiling?

Sometimes compile will fail with -j3 (The number of jobs option).
The load option may help if this is a persistent issue on your machine when using the -j option.
Read this: https://www.gnu.org/software/make/manual/make.html#Parallel

If you restart the compile, It should continue and finish.

Yes, I thought it might be the -j option, so I did a make clean and then started fresh with a new make and it got similar errors.

Compiling src/emu/hashfile.cpp...
make[2]: *** No rule to make target '../../../../../src/emu/hiscore.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/emu/hiscore.o'.  Stop.
makefile:67: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Thats odd. I just compiled with no errors on a Windows 7 64 bit machine.

1.Unpacked the Mame0175.zip (In windows).
2.Patched the source (In msys64).
3.Compiled the source (In msys64).

Patch command was
patch --binary -p0 -E <../hi_175c.txt

Compile command was
make SUBTARGET=arcade -j3

Looking at the error, It seems hiscore.cpp is missing.
Have you checked to see if the hiscore.cpp file is being created at /src/emu/hiscore.cpp after the patch is applied?

Could be something to do with directory permissions, ie. The patch is creating a new file (hiscore.cpp).
All the other files are "Modified" in the patch.
« Last Edit: July 14, 2016, 03:55:53 am by ozfalcon »

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1154 on: July 14, 2016, 08:50:17 pm »
MKChamp & Abelenki & Everyone - Discussion.

The current (Non Lua) hiscore.dat is dated 1/7/2015.
I have noticed various corrections to the Lua hiscore.dat file.
https://github.com/mamedev/mame/commits/3f58aa4548327df4a6223ed7bf84e614c2cb12e7/plugins/hiscore/hiscore.dat
  https://github.com/mamedev/mame/commit/3f58aa4548327df4a6223ed7bf84e614c2cb12e7
  https://github.com/mamedev/mame/commit/f9b5a025a5477e115b461dfacfdb86c675d2945e
  https://github.com/mamedev/mame/commit/249e77583e31dcfb598f33c4ec523abd1430be02
  https://github.com/mamedev/mame/commit/07f297ae7ab41b69df9859cf48a5af3681113dec
  https://github.com/mamedev/mame/commit/d63cd99bc30e8bb71e4774c17d488f03482071c2

Something to consider, Though I'm not sure it has much impact on the Majority of games in the existing MKChamp hiscore.dat.
(This is NOT a call to update the MKChamp hiscore.dat)

brucelee00

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 110
  • Last login:December 13, 2020, 05:16:36 pm
Re: hiscore diff (with no nag/white box removal)
« Reply #1155 on: July 14, 2016, 10:11:46 pm »
I guess I am confused by this whole work around. I am used to using Mame Compiler 64 out of the box. I would normally run the program download the latest Mame source files in this case Mame Compiler 64 download list has not been updated to pull the latest sources so, I downloaded the msys64-32-2016-02-16.exe from Mame. Download the mame0175s.zip  unzip 2 times and put the files in the src folder> download hi_175.txt and put that in the patches folder. Where I am getting a bunch of errors is when applying the hi_175.txt patch when I normally don't have these issues. 

Here is the error I get when I apply the hi_175.txt patch

Applying 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
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.
|--- old/emu/emuopts.cpp   2016-06-29 03:04:14.753317700 -0500

This is the error I get when I apply the hi_175c.txt

Applying Diff Patch...
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
Assertion failed: hunk, file patch-2.5.4/patch.c, line 343
The text leading up to this was:
--------------------------
This application has requested the Runtime to terminate it in an unusual way.
|diff -Nru old/emu/emuopts.cpp src/emu/emuopts.cpp
Please contact the application's support team for more information.
|--- old/emu/emuopts.cpp   2016-06-29 18:04:14.000000000 +1000
|+++ src/emu/emuopts.cpp   2016-07-05 15:20:25.328062487 +1000
--------------------------
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:
--------------------------
|diff -Nru old/emu/emuopts.h src/emu/emuopts.h
|--- old/emu/emuopts.h   2016-06-29 18:04:14.000000000 +1000
|+++ src/emu/emuopts.h   2016-07-05 15:20:25.328062487 +1000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
missing header for unified diff at line 57 of patch
can't find file to patch at input line 57
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|@ -231,6 +236,9 @@
|    const char *snapshot_directory() const { return value(OPTION_SNAPSHOT_DIRECTORY); }
|    const char *diff_directory() const { return value(OPTION_DIFF_DIRECTORY); }
|    const char *comment_directory() const { return value(OPTION_COMMENT_DIRECTORY); }
|+   
|+   // MKCHAMP - hiscore directory options
|+   const char *hiscore_directory() const { return value(OPTION_HISCORE_DIRECTORY); }
|
|    // core state/playback options
|    const char *state() const { return value(OPTION_STATE); }
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file emu/hiscore.cpp
Finished!
0 Hours 0 Minutes and 3 Seconds Elapsed.


Sorn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:July 09, 2018, 08:56:19 pm
  • I want to build my own arcade controls!
Re: hiscore diff (with no nag/white box removal)
« Reply #1156 on: July 14, 2016, 11:56:23 pm »
Just to note, There has been a bug fix and you probably want to be using hi_175c.txt
You will also more than likely need to patch hi_175c.txt with the --binary flag.

This post has the fixed revision
http://forum.arcadecontrols.com/index.php/topic,64298.msg1579630.html#msg1579630

Using hi_175c with the --binary flag worked :) thanks!

Hah, spoke too soon! Patching works but compiling does not?

make[2]: *** No rule to make target '../../../../../src/emu/hiscore.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/emu/hisc
ore.o'.  Stop.
make[2]: *** Waiting for unfinished jobs....
Compiling src/devices/cpu/sh2/sh2dasm.cpp...

...continues compiling...

makefile:67: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
make[1]: *** Waiting for unfinished jobs....
Compiling src/mame/audio/targ.cpp...

...continues compiling....then gets to

Compiling src/devices/cpu/tms57002/57002dsm.cpp...
Archiving libdasm.a...
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Any idea?  :)

How are you compiling?

Sometimes compile will fail with -j3 (The number of jobs option).
The load option may help if this is a persistent issue on your machine when using the -j option.
Read this: https://www.gnu.org/software/make/manual/make.html#Parallel

If you restart the compile, It should continue and finish.

Yes, I thought it might be the -j option, so I did a make clean and then started fresh with a new make and it got similar errors.

Compiling src/emu/hashfile.cpp...
make[2]: *** No rule to make target '../../../../../src/emu/hiscore.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/emu/hiscore.o'.  Stop.
makefile:67: recipe for target 'emu' failed
make[1]: *** [emu] Error 2
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Thats odd. I just compiled with no errors on a Windows 7 64 bit machine.

1.Unpacked the Mame0175.zip (In windows).
2.Patched the source (In msys64).
3.Compiled the source (In msys64).

Patch command was
patch --binary -p0 -E <../hi_175c.txt

Compile command was
make SUBTARGET=arcade -j3

Looking at the error, It seems hiscore.cpp is missing.
Have you checked to see if the hiscore.cpp file is being created at /src/emu/hiscore.cpp after the patch is applied?

Could be something to do with directory permissions, ie. The patch is creating a new file (hiscore.cpp).
All the other files are "Modified" in the patch.

You were correct, the hiscore.cpp was missing for some reason. Re-extracted the source from zip, re-patched, everything seemed ok. Did a make clean before a make with no -j switches just incase, and then ran into this -

make[2]: *** No rule to make target '../../../../../src/frontend/mame/ui/filecreate.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/frontend/mame/ui/filecreate.o'.  Stop.
makefile:73: recipe for target 'frontend' failed
make[1]: *** [frontend] Error 2
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Also is no filecreate.cpp in that dir. Checked source, not there either, is it supposed to create it somewhere in the process? There's always some snag waiting to trip me up haha :)

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1157 on: July 15, 2016, 01:03:34 am »

You were correct, the hiscore.cpp was missing for some reason. Re-extracted the source from zip, re-patched, everything seemed ok. Did a make clean before a make with no -j switches just incase, and then ran into this -

make[2]: *** No rule to make target '../../../../../src/frontend/mame/ui/filecreate.cpp', needed by '../../../../mingw-gcc/obj/x64/Release/src/frontend/mame/ui/filecreate.o'.  Stop.
makefile:73: recipe for target 'frontend' failed
make[1]: *** [frontend] Error 2
makefile:947: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Also is no filecreate.cpp in that dir. Checked source, not there either, is it supposed to create it somewhere in the process? There's always some snag waiting to trip me up haha :)

No

Something wrong with your machine/HD. Have you tried on a different machine?
« Last Edit: July 15, 2016, 08:09:34 pm by ozfalcon »

ozfalcon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:April 07, 2022, 04:55:03 am
  • ZSystem
Re: hiscore diff (with no nag/white box removal)
« Reply #1158 on: July 15, 2016, 08:24:44 pm »
I guess I am confused by this whole work around. I am used to using Mame Compiler 64 out of the box. I would normally run the program download the latest Mame source files in this case Mame Compiler 64 download list has not been updated to pull the latest sources so, I downloaded the msys64-32-2016-02-16.exe from Mame. Download the mame0175s.zip  unzip 2 times and put the files in the src folder> download hi_175.txt and put that in the patches folder. Where I am getting a bunch of errors is when applying the hi_175.txt patch when I normally don't have these issues. 

Here is the error I get when I apply the hi_175.txt patch

Applying Diff Patch...
can't find file to patch at input line 4
Your almost there.

That line "can't find file......" is the key to your answer - The patch can not find the files to "modify".
This means your not patching from the correct directory location.

You need to change directory to the "mame0175" folder then apply the patch.
Check you are in the correct directory with the "dir" or "ls" command and you should see the contents of the directory.
Code: [Select]
>dir
3rdparty bgfx   hlsl     LICENSE.md README.md  src
android-project  docs   ini     makefile regtests   tests
artwork doxygen  keymaps   nl_examples  samples    uismall.bdf
benchmarks hash   language  plugins scripts

If you copy the patch into the mame0175 directory then you apply it like this.
patch --binary -p0 -E <hi_175c.txt


brucelee00

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 110
  • Last login:December 13, 2020, 05:16:36 pm
Re: hiscore diff (with no nag/white box removal)
« Reply #1159 on: July 16, 2016, 01:46:09 am »
here is a screen shot of all my paths within Mame Compiler 64 everything is exactly how I use to do it without issues.


As far as applying this patch --binary -p0 -E <C:\msys32\hi_175.diff  can someone elaborate the steps on this ?
am I supposed to do this in windows CMD ?

I never had to do any of these steps before I am use to just applying the patch within Mame compiler on the patch tab 
« Last Edit: July 16, 2016, 01:48:18 am by brucelee00 »