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: 108u4 out. New diff to add hiscore back in *EDIT* 108u5 changed again...  (Read 6571 times)

0 Members and 1 Guest are viewing this topic.

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
108u4 changed the add_exit_callback which would cause compiles with the old hi-score diff to fail. Updated it...if you want it, here it is...rename to .diff. Remember, it does the following:

1) Adds hiscore support back in
2) Removes crosshair in gun games by default
3) Removes all message screens
4) Changes button config slightly...tab now brings up option window AND pauses/unpauses MAME. 1 now acts as enter in the windows(did this since it runs on a cab)
5) Small change to fix many of the vertical games that have a white line on the border

EDIT ---  108u5 removed a flag for the hiscore logic. The previous diff will not compile. For 108u5 use hiscore_108u5.diff (rename attached file to .diff)


« Last Edit: September 23, 2006, 09:47:22 pm by MKChamp »

wolfi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:July 16, 2025, 01:11:59 pm
  • I'm a llama!
Re: 108u4 out. New diff to add hiscore back in
« Reply #1 on: September 15, 2006, 09:59:06 am »

Thanks MKCHAMP,

just wanted to pm you when i found this.

thanks

wolfi


108u4 changed the add_exit_callback which would cause compiles with the old hi-score diff to fail. Updated it...if you want it, here it is...rename to .diff. Remember, it does the following:

1) Adds hiscore support back in
2) Removes crosshair in gun games by default
3) Removes all message screens
4) Changes button config slightly...tab now brings up option window AND pauses/unpauses MAME. 1 now acts as enter in the windows(did this since it runs on a cab)
5) Small change to fix many of the vertical games that have a white line on the border




Santo8742

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:September 11, 2015, 06:48:39 pm
Re: 108u4 out. New diff to add hiscore back in
« Reply #2 on: September 15, 2006, 03:29:16 pm »
Does this .diff file include the u4 update, or will I need to compile MAME .108 with the u4 .diff file and your .diff file?

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: 108u4 out. New diff to add hiscore back in
« Reply #3 on: September 15, 2006, 05:47:02 pm »
Wolfi - Your welcome!

Santo8742 -
No this is a standalone diff to be used for 108u4 and any version after this.

For all the version before 108u4(from 107u2 - 108u3, you can use the diff I posted in this thread:
http://forum.arcadecontrols.com/index.php?topic=56259.0

So for instance when 108u5 comes out, you would apply the diff's in this order:
108u1.diff
108u2.diff
108u3.diff
108u4.diff
108u5.diff
hiscore.diff

Or when 109 official comes out...you just apply the hiscore.diff.

Hope that clears everything up ;-)

SirPeale

  • Green Mountain Man
  • Global Moderator
  • Trade Count: (+23)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 12963
  • Last login:August 04, 2023, 09:51:57 am
  • Arcade Repair in New England
    • Arcade Game and Other Coin-Op Projects
Re: 108u4 out. New diff to add hiscore back in
« Reply #4 on: September 15, 2006, 10:19:13 pm »
4) Changes button config slightly...tab now brings up option window AND pauses/unpauses MAME. 1 now acts as enter in the windows(did this since it runs on a cab)

Hm...does this cause problems when you remap keys?  There used to be a problem that if you remapped a key while a game was paused, it didn't stick for some reason.  Never followed up on this as I knew not to do this.

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: 108u4 out. New diff to add hiscore back in
« Reply #5 on: September 15, 2006, 11:47:22 pm »
Hm...does this cause problems when you remap keys?  There used to be a problem that if you remapped a key while a game was paused, it didn't stick for some reason.  Never followed up on this as I knew not to do this.

Actually, the tab button pressed once, brings the menu up, pressed again, pauses the game, pressed again, removes menu, pressed again, unpauses game so on and so forth. You are correct that there are still problems mapping keys while the game is paused...I believe it is mainly with the shift key this problems occurs.

allroy1975

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 980
  • Last login:November 11, 2023, 08:51:48 pm
  • I'm a dork!
    • Matt's Mame
Re: 108u4 out. New diff to add hiscore back in
« Reply #6 on: September 16, 2006, 01:56:45 pm »
I got it to work, and I'm stupid.  :D

It works and it works well.  :D
They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

MiKman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 360
  • Last login:March 25, 2018, 12:28:45 pm
  • Blah
Re: 108u4 out. New diff to add hiscore back in
« Reply #7 on: September 17, 2006, 07:27:25 pm »
Are the Devs ever going to add back in some method of high score saving or is it gone forever?

um3k

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 74
  • Last login:July 04, 2025, 06:51:19 am
Re: 108u4 out. New diff to add hiscore back in
« Reply #8 on: September 17, 2006, 10:06:59 pm »
I think that save states are supposed to replace hi score - but save states are either not functional or flakey on a lot of games right now.  (They should get better as time goes on though  :))

BamBam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:November 03, 2011, 07:18:19 am
  • This is better than Disney Land man!
Re: 108u4 out. New diff to add hiscore back in
« Reply #9 on: September 18, 2006, 08:55:22 am »
 ???So having said all that, where should I place my hiscore.diff file?  After it is there, what do I need to do with it?
Thanks.

John
Galaga... Was there any other game?

Chris

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re: 108u4 out. New diff to add hiscore back in
« Reply #10 on: September 18, 2006, 10:50:54 am »
???So having said all that, where should I place my hiscore.diff file?  After it is there, what do I need to do with it?
Thanks.
You have to actually recompile MAME, meaning you have to have a full development environment configured on your machine.  There's a FAQ on the MAME site describing how to do this.

--Chris
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

Leezer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:April 13, 2014, 05:55:43 am
Re: 108u4 out. New diff to add hiscore back in
« Reply #11 on: September 18, 2006, 03:45:12 pm »
thanks for that diff file mkchamp, is there any chance you could do a diff patch with just the hiscore.dat support and nothing else because i like the keys as they are and also prefer the crosshairs on games,

if you could do a diff file would you please email it to me leezer@leezer.karoo.co.uk

many thanks
 

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: 108u4 out. New diff to add hiscore back in
« Reply #12 on: September 18, 2006, 04:50:54 pm »
Just delete the things you don't want:
To remove the crosshair portion, delete the section that begins:
diff -r -c -N old/drawgfx.c src/drawgfx.c

To remove the button remapping portion, delete the section that begins:
diff -r -c -N old/inptport.c src/inptport.c

So, to clarify, for the crosshair part, you would remove:

diff -r -c -N old/drawgfx.c src/drawgfx.c
*** old/drawgfx.c   Thu Sep 14 12:25:08 2006
--- src/drawgfx.c   Thu Sep 14 12:22:42 2006
***************
*** 3544,3550 ****
        plot_pixel(bitmap,x,y,pen);
  }
 
! static int crosshair_enable=1;
 
  void drawgfx_toggle_crosshair(void)
  {
--- 3544,3550 ----
        plot_pixel(bitmap,x,y,pen);
  }
 
! static int crosshair_enable=0;
 
  void drawgfx_toggle_crosshair(void)
  {


That's it...
Pretty straightforward.

MiKman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 360
  • Last login:March 25, 2018, 12:28:45 pm
  • Blah
Re: 108u4 out. New diff to add hiscore back in
« Reply #13 on: September 19, 2006, 09:01:23 pm »
I think that save states are supposed to replace hi score - but save states are either not functional or flakey on a lot of games right now.  (They should get better as time goes on though  :))

So how do save states work? would I have to press the function key to save the state of the game everytime I play the game instead of just exiting the game by pressing ESC?  I know it's all about documentation and not actually about playing and using the games, but throw us a bone here devs ::)

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: 108u4 out. New diff to add hiscore back in
« Reply #14 on: September 20, 2006, 03:31:28 am »
So how do save states work? would I have to press the function key to save the state of the game everytime I play the game instead of just exiting the game by pressing ESC?  I know it's all about documentation and not actually about playing and using the games, but throw us a bone here devs ::)

Just use the -autosave option.  If the game supports save state, then every time you exit mame, the game will save the current conditions automatically, and load it the next time you start.  If the doesn't support save state, then neither the autosave nor the manual way will work.  More info in docs/windows.txt that comes with mame. 

And if you want to help add savestate to certain games, check out aarongiles.com savestate fundamentals: parts 1, 2, 3, & 4.  A little much if you just want to use it ;), but a fun read if you're into this type of stuff.
Robin
Knowledge is Power

MiKman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 360
  • Last login:March 25, 2018, 12:28:45 pm
  • Blah
Re: 108u4 out. New diff to add hiscore back in
« Reply #15 on: September 20, 2006, 11:27:06 am »
Thanks u_rebelscum.  Now if I can find an easy way to pull my high scores over from the old method into the new save states.  I'll be more inclined to update to the latest version.  I guess if I am at 106 now I can save the state of all my favorite games with my highscores, then upgrade to 108 and theoretically all the games shoudl load from the saved state correct?

might have to do a little testing with this...

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: 108u4 out. New diff to add hiscore back in *EDIT* 108u5 changed again...
« Reply #16 on: September 23, 2006, 09:49:12 pm »
108u5 changed to the point the diff won't compile. So see the original post. Use hiscore_108u5.diff for 108u5 and hopefully mame builds after...

BamBam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:November 03, 2011, 07:18:19 am
  • This is better than Disney Land man!
Re: 108u4 out. New diff to add hiscore back in
« Reply #17 on: September 24, 2006, 06:02:11 pm »
???So having said all that, where should I place my hiscore.diff file?  After it is there, what do I need to do with it?
Thanks.
You have to actually recompile MAME, meaning you have to have a full development environment configured on your machine.  There's a FAQ on the MAME site describing how to do this.

--Chris
Thanks Chris.
Galaga... Was there any other game?

MiKman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 360
  • Last login:March 25, 2018, 12:28:45 pm
  • Blah
Re: 108u4 out. New diff to add hiscore back in
« Reply #18 on: September 28, 2006, 06:44:12 pm »
So how do save states work? would I have to press the function key to save the state of the game everytime I play the game instead of just exiting the game by pressing ESC?  I know it's all about documentation and not actually about playing and using the games, but throw us a bone here devs ::)

Just use the -autosave option.  If the game supports save state, then every time you exit mame, the game will save the current conditions automatically, and load it the next time you start.  If the doesn't support save state, then neither the autosave nor the manual way will work.  More info in docs/windows.txt that comes with mame. 

And if you want to help add savestate to certain games, check out aarongiles.com savestate fundamentals: parts 1, 2, 3, & 4.  A little much if you just want to use it ;), but a fun read if you're into this type of stuff.

I use MAME32 on my regular computer, is there any way to add the -autosave switch and have it work with it?

EDIT:
Found I just needed to edit the Mame32/ini/mame32.ini file and change the 0 to 1 on the autosave line.
Also found that version 109 has a checkbox for this now.
« Last Edit: September 30, 2006, 02:48:09 pm by MiKman »

subcriminal

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 282
  • Last login:November 20, 2019, 12:58:00 pm
Re: 108u4 out. New diff to add hiscore back in *EDIT* 108u5 changed again...
« Reply #19 on: December 14, 2006, 05:49:31 pm »
Hi, I have managed to compile mame 0.110 but would like to add hiscore support back in, I just tried compiling it again using the patch.bat from Mr. Do!'s site and edited it to apply the hiscore.diff posted at the top of this thread but it wont apply.
I take it I'm doing something wrong here ???

Code: [Select]
C:\mamesrc>patchmame.bat

C:\mamesrc>patch -p0 -E  0<hiscore.diff
patching file src/core.mak
patching file src/drawgfx.c
patching file src/hiscore.c
patching file src/hiscore.h
patching file src/inptport.c
Hunk #1 FAILED at 862.
Hunk #2 FAILED at 881.
2 out of 2 hunks FAILED -- saving rejects to file src/inptport.c.rej
patching file src/mame.c
Hunk #2 succeeded at 313 (offset 8 lines).
Hunk #3 succeeded at 1232 with fuzz 1 (offset 202 lines).
patching file src/profiler.c
patching file src/profiler.h
patching file src/windows/config.c
Hunk #1 FAILED at 147.
1 out of 1 hunk FAILED -- saving rejects to file src/windows/config.c.rej
patching file src/windows/drawd3d.c
patching file src/windows/fileio.c
Hunk #1 FAILED at 98.
1 out of 1 hunk FAILED -- saving rejects to file src/windows/fileio.c.rej

Can anyone help please?

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: 108u4 out. New diff to add hiscore back in *EDIT* 108u5 changed again...
« Reply #20 on: December 14, 2006, 10:50:54 pm »
The diff in this thread is for an older version. Do a search for hiscore + diff to find all the different diffs...or check this thread and compile 110u3 or later...ya might as well go get 111 which just came out. This diff works for all versions of mame from 110u3 to present.

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

subcriminal

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 282
  • Last login:November 20, 2019, 12:58:00 pm
Re: 108u4 out. New diff to add hiscore back in *EDIT* 108u5 changed again...
« Reply #21 on: December 15, 2006, 05:12:09 am »
Thanks! My post was a bit premature ;D I saw another thread with the 110u3 diff which you modified, thanks!