Build Your Own Arcade Controls Forum
November 21, 2009, 09:55:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:  
 
   Home   Help Arcade Search Login Register  

 
Main Woodworking Reviews Software Monitor/Video
Audio/Jukebox/MP3 Project Announcements Artwork Consoles Buy/Sell/Trade
Arcade Miscellaneous Everything Else Politics n Religion Forum Discussion Wiki Discussion
DOS/WinCab PowerMAME SK Jukebox UncleTs Jukebox Project Arcade
Linux Restorations Pinball MaLa Frontend  
 
Recent posts | Arcade | Rules | Old Boards | Old Archives | Chatroom | Wiki | File Repository | RSS


Pages: 1 ... 8 9 [10]  All   Go Down
  Send this topic  |  Print  
Author Topic: hiscore diff (with no nag/white box removal)  (Read 66662 times)
0 Members and 1 Guest are viewing this topic.
Stormrider
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 240


View Profile
« Reply #360 on: October 05, 2009, 06: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.
Logged
MKChamp
Trade Count: (+1)
Full Member
***
Offline Offline

Posts: 354

I'm a llama!


View Profile
« Reply #361 on: October 05, 2009, 04: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...
Logged
Stormrider
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 240


View Profile
« Reply #362 on: October 05, 2009, 05: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...  Wink


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);
Logged
MKChamp
Trade Count: (+1)
Full Member
***
Offline Offline

Posts: 354

I'm a llama!


View Profile
« Reply #363 on: October 06, 2009, 09: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...  Wink

Good point....although your 'point' included my death :-)
Glad you figured it out...if you have any other questions, let me know!
Logged
GaryMcT
Trade Count: (+1)
Full Member
***
Offline Offline

Posts: 689



View Profile
« Reply #364 on: October 06, 2009, 12: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...  Wink

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.
Logged
rooroosta
Trade Count: (0)
Jr. Member
**
Offline Offline

Posts: 8


View Profile
« Reply #365 on: October 12, 2009, 12: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).
Logged
Kman-Sweden
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 257


Up the Irons!


View Profile WWW
« Reply #366 on: October 13, 2009, 12: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.
Logged

See my hard work over here -----> http://www.koskimaki.se/MyArcadePC.htm
rooroosta
Trade Count: (0)
Jr. Member
**
Offline Offline

Posts: 8


View Profile
« Reply #367 on: October 13, 2009, 01:53:34 AM »

Yep i have a hi folder..it just saves the same games as before i compiled and patched.
Logged
Ryglore
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 469



View Profile WWW
« Reply #368 on: October 16, 2009, 11:42:41 PM »

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....  I dunno!
Logged

MKChamp
Trade Count: (+1)
Full Member
***
Offline Offline

Posts: 354

I'm a llama!


View Profile
« Reply #369 on: October 17, 2009, 01: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, want to take a look at getting it corrected...they seem to be good as creating and correcting entries in the dat file.
Logged
Ryglore
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 469



View Profile WWW
« Reply #370 on: October 17, 2009, 01: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....)
Logged

Kman-Sweden
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 257


Up the Irons!


View Profile WWW
« Reply #371 on: October 17, 2009, 02:12:54 PM »

renaming the .txt to .diff
Logged

See my hard work over here -----> http://www.koskimaki.se/MyArcadePC.htm
Ryglore
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 469



View Profile WWW
« Reply #372 on: October 18, 2009, 02: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.
Logged

Huggybaby
Trade Count: (0)
Jr. Member
**
Offline Offline

Posts: 5


View Profile
« Reply #373 on: October 19, 2009, 10: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:


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

Thank you.  Smiley
Logged
MKChamp
Trade Count: (+1)
Full Member
***
Offline Offline

Posts: 354

I'm a llama!


View Profile
« Reply #374 on: October 20, 2009, 12: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.
Logged
headkaze
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 2173


0x2b|~0x2b?


View Profile
« Reply #375 on: October 24, 2009, 07: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.
« Last Edit: October 24, 2009, 07:06:06 PM by headkaze » Logged

JustMichael
Global Moderator
Trade Count: (+1)
Full Member
*****
Offline Offline

Posts: 1072


Mmmmm!! Cheesecake!!


View Profile
« Reply #376 on: October 24, 2009, 07: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.
« Last Edit: October 24, 2009, 07:16:18 PM by JustMichael » Logged
Huggybaby
Trade Count: (0)
Jr. Member
**
Offline Offline

Posts: 5


View Profile
« Reply #377 on: October 24, 2009, 11:00:21 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.
Thank you!
Logged
headkaze
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 2173


0x2b|~0x2b?


View Profile
« Reply #378 on: October 25, 2009, 12: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.
Logged

solid187
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 82


View Profile
« Reply #379 on: October 28, 2009, 09:13:22 AM »

 I 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.... Talking to you is like banging your head against a wall!
Logged
MKChamp
Trade Count: (+1)
Full Member
***
Offline Offline

Posts: 354

I'm a llama!


View Profile
« Reply #380 on: October 28, 2009, 09:21:03 AM »

I 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.... Talking to you is like banging your head against a wall!

Are you using Headkaze's program to compile? What version of MAME and hiscore patch are you using?
Logged
Kman-Sweden
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 257


Up the Irons!


View Profile WWW
« Reply #381 on: October 28, 2009, 09:23:46 AM »

I 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.... Talking to you is like banging your head against a wall!
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
      (ie. mame0126s.exe)

3.) Download the Intermediate Updates for Mame from 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
     (ie. MameUIFXs.126u4)


5.) Download the hiscore diff patch from 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.  
« Last Edit: October 28, 2009, 09:26:01 AM by Kman-Sweden » Logged

See my hard work over here -----> http://www.koskimaki.se/MyArcadePC.htm
solid187
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 82


View Profile
« Reply #382 on: October 28, 2009, 09: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.

« Last Edit: October 28, 2009, 09:55:08 AM by solid187 » Logged
solid187
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 82


View Profile
« Reply #383 on: October 28, 2009, 11:10:01 AM »

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. 
Logged
MKChamp
Trade Count: (+1)
Full Member
***
Offline Offline

Posts: 354

I'm a llama!


View Profile
« Reply #384 on: October 28, 2009, 12: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.
Logged
solid187
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 82


View Profile
« Reply #385 on: October 29, 2009, 08:58:03 AM »

worked....TY.
Logged
mvsfan
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 220


View Profile
« Reply #386 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?






Logged
Huggybaby
Trade Count: (0)
Jr. Member
**
Offline Offline

Posts: 5


View Profile
« Reply #387 on: November 06, 2009, 01:08:22 AM »

Yes, it works with Mame32/64 and UI.
Logged
Bobulus
Trade Count: (0)
Full Member
***
Offline Offline

Posts: 17


View Profile
« Reply #388 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!
Logged
Pages: 1 ... 8 9 [10]  All   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.557 seconds with 43 queries.