Main > Software Forum

hiscore diff (with no nag/white box removal)

<< < (232/250) > >>

brucelee00:
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:

--- Quote from: ozfalcon on July 14, 2016, 03:52:17 am ---
--- Quote from: Sorn on July 14, 2016, 12:59:02 am ---
--- Quote from: ozfalcon on July 13, 2016, 08:42:36 pm ---
--- Quote from: Sorn on July 13, 2016, 07:02:24 pm ---
--- Quote from: Sorn on July 13, 2016, 05:38:06 pm ---
--- Quote from: ozfalcon 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

--- End quote ---

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

--- End quote ---

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?  :)

--- End quote ---

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.

--- End quote ---

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

--- End quote ---

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.

--- End quote ---

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:

--- Quote from: Sorn on July 14, 2016, 11:56:23 pm ---
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 :)

--- End quote ---

No

Something wrong with your machine/HD. Have you tried on a different machine?

ozfalcon:

--- Quote from: brucelee00 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

--- End quote ---
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: --->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

--- End code ---

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

brucelee00:
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 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version