Preserving Arcade Core High Scores
- bigrico2000
- Posts: 2
- Joined: Sat Jul 18, 2020 8:09 pm
- Been thanked: 1 time
Re: Preserving Arcade Core High Scores
Does the linux/arm side actually have access to the FPGA memory? Or is this going to involve having to modify the sys module to provide an interface for generic peeks into FPGA memory?
-
- Core Developer
- Posts: 300
- Joined: Sun May 24, 2020 6:55 pm
- Has thanked: 5 times
- Been thanked: 154 times
Re: Preserving Arcade Core High Scores
Most arcade cores store the "memory" for the arcade system on the FPGA in bram. So we will have to setup some code to be able to read/write to that main ram like mame does. It should be straightforward hopefully.. We might need dual port ram, i need to look at it. I think if we build it for one arcade game, it should be fairly straightforward to port to the next. Some cores like pacman will effect many games at once.
Re: Preserving Arcade Core High Scores
Why can’t high score saving be done in-game? BitKit does it. I mean I know it requires some work per-core, but it still seems worth it.
—Donnie
—Donnie
- Aspie
- Posts: 188
- Joined: Sat Sep 26, 2020 1:07 pm
- Location: Manchester
- Has thanked: 20 times
- Been thanked: 47 times
- Contact:
Re: Preserving Arcade Core High Scores
You could grab a screenshot with WIN + PrtSc when you get a high score. Then move that screengrab into your wallpapers folder
Re: Preserving Arcade Core High Scores
It might be worth looking at the Defender Core - that hardware family had a battery backup (3 AA/LR6 Batteries) to save several daily/all-time high scores, so it would stand to reason there is not just a logical, but also physical, location for that information, and could springboard linking the ARM side to similar spots in other boards.
I could, of course, be very wrong; I'm still learning how this all works.
I could, of course, be very wrong; I'm still learning how this all works.
Re: Preserving Arcade Core High Scores
This seems like the best solution. There are high score kits available for most of these popular arcade platforms. But I say best coming from someone who has no idea what this would entail for core modifications.
- aberu
- Core Developer
- Posts: 1192
- Joined: Tue Jun 09, 2020 8:34 pm
- Location: Longmont, CO
- Has thanked: 247 times
- Been thanked: 411 times
- Contact:
Re: Preserving Arcade Core High Scores
Easiest solution would probably be to port the saveram feature of other cores and adapt it to the areas where the high scores are saved in the Arcade board's ram temporarily.
birdybro~
-
- Core Developer
- Posts: 300
- Joined: Sun May 24, 2020 6:55 pm
- Has thanked: 5 times
- Been thanked: 154 times
Re: Preserving Arcade Core High Scores
The list of ram locations are in the mame hiscores.dat file. We should put this table into the MRA and build a generic module to read the ram locations from the mra and use it to load / save ram.
I haven’t gotten around to building this yet. But happy to help someone else do it.
- Aspie
- Posts: 188
- Joined: Sat Sep 26, 2020 1:07 pm
- Location: Manchester
- Has thanked: 20 times
- Been thanked: 47 times
- Contact:
Re: Preserving Arcade Core High Scores
So with the latest update to the arcade cores and mentions of nvram, does that mean high scores will now be stored?
-
- Core Developer
- Posts: 547
- Joined: Sun May 24, 2020 9:30 pm
- Has thanked: 20 times
- Been thanked: 145 times
Re: Preserving Arcade Core High Scores
I know that Alan was looking into this as part of his process going through the arcades to update the framework; I'm not sure how many will have the required information easily obtainable though.
I'm pretty sure that for those which do get this update, he will include a comment in the notification post.
I'm pretty sure that for those which do get this update, he will include a comment in the notification post.
Re: Preserving Arcade Core High Scores
That was likely there to support arcade systems that save settings to some sort of permanent storage, like cps1.5 (and cps2), cave etc.
I guess a core could leverage that to save high scores, but it would still require more per-core work. (and may not even be the best way to approach the problem, given some cores can load multiple games, or variants of the same game)
- jimmystones
- Core Developer
- Posts: 218
- Joined: Sun Nov 22, 2020 1:26 pm
- Location: Reading, UK
- Has thanked: 32 times
- Been thanked: 251 times
- Contact:
Re: Preserving Arcade Core High Scores
The latest updates by alanswx to defender cores have definitely added high score load+save - or more accurately load+save of the whole CMOS RAM. (I was having a go at trying to implement it myself but as soon as i saw the update to main a little while back i stepped back as i knew someone else more competent was working on it!)
It only saves that at the moment when you use the Save Settings menu option though, so I'm still hoping to get autosave working somehow.
It only saves that at the moment when you use the Save Settings menu option though, so I'm still hoping to get autosave working somehow.
- Aspie
- Posts: 188
- Joined: Sat Sep 26, 2020 1:07 pm
- Location: Manchester
- Has thanked: 20 times
- Been thanked: 47 times
- Contact:
Re: Preserving Arcade Core High Scores
Thanks Jimmy that's great news. Defender was one game that I had hoped would implement high score saves.
- Aspie
- Posts: 188
- Joined: Sat Sep 26, 2020 1:07 pm
- Location: Manchester
- Has thanked: 20 times
- Been thanked: 47 times
- Contact:
Re: Preserving Arcade Core High Scores
I tried the Defender update last night and it's fantastic. Not just because of the high score saves, but the new control mode options, especially mode 2. I used to have to remap the controls every time I loaded Defender to get this set up. Now it's there automatically.
- jimmystones
- Core Developer
- Posts: 218
- Joined: Sun Nov 22, 2020 1:26 pm
- Location: Reading, UK
- Has thanked: 32 times
- Been thanked: 251 times
- Contact:
Re: Preserving Arcade Core High Scores
For anyone who is interested, I've started applying alanswx's changes enable NVRAM save/load to other cores - so far I've updated the MCR3 and MCR3Scroll cores (I'm basically doing this in order of games I like so Spy Hunter came first!). That adds support to:
MCR3Scroll
- Spy Hunter
- Crater Raider
- Turbo Tag
MCR3
- Discs of Tron
- Journey
- Tapper
- Timber
As with Defender you need to hit Save Settings in the core menu to save those scores
MCR3Scroll
- Spy Hunter
- Crater Raider
- Turbo Tag
MCR3
- Discs of Tron
- Journey
- Tapper
- Timber
As with Defender you need to hit Save Settings in the core menu to save those scores
- jimmystones
- Core Developer
- Posts: 218
- Joined: Sun Nov 22, 2020 1:26 pm
- Location: Reading, UK
- Has thanked: 32 times
- Been thanked: 251 times
- Contact:
Re: Preserving Arcade Core High Scores
I'll be honest I'm very new to MiSTer development so I'm not going to promise anything yet
I do think we could implement the optional autosave behaviour similar to some console cores where save is triggered by opening the OSD - and that would keep me happy at least!
I do think we could implement the optional autosave behaviour similar to some console cores where save is triggered by opening the OSD - and that would keep me happy at least!
- Aspie
- Posts: 188
- Joined: Sat Sep 26, 2020 1:07 pm
- Location: Manchester
- Has thanked: 20 times
- Been thanked: 47 times
- Contact:
Re: Preserving Arcade Core High Scores
Great work Jimmy. I downloaded your updates today and had a few games of Tapper.
- jimmystones
- Core Developer
- Posts: 218
- Joined: Sun Nov 22, 2020 1:26 pm
- Location: Reading, UK
- Has thanked: 32 times
- Been thanked: 251 times
- Contact:
Re: Preserving Arcade Core High Scores
Good evening... Some more high score save enabled cores and games:
MCR3-Mono
- Demolition Derby
- Max RPM
- Power Drive
- Rampage
- Sarge
- Star Guards
MCR2
- Domino Man
- Kozmik Kroozr
- Satans Hollow
- Tron
- Two Tigers
- Wacko
MCR1
- Kick / Kick Man
- Solar Fox
Berserk
Frenzy
MCR3-Mono
- Demolition Derby
- Max RPM
- Power Drive
- Rampage
- Sarge
- Star Guards
MCR2
- Domino Man
- Kozmik Kroozr
- Satans Hollow
- Tron
- Two Tigers
- Wacko
MCR1
- Kick / Kick Man
- Solar Fox
Berserk
Frenzy
- LamerDeluxe
- Top Contributor
- Posts: 1239
- Joined: Sun May 24, 2020 10:25 pm
- Has thanked: 887 times
- Been thanked: 284 times
Re: Preserving Arcade Core High Scores
Fantastic! I somehow missed that this was already being worked on. Manual saving is a great first way to save highscores without risk of corruption when turning the MiSTer off. Another idea I mentioned elsewhere could be to save when exiting a core.
- jimmystones
- Core Developer
- Posts: 218
- Joined: Sun Nov 22, 2020 1:26 pm
- Location: Reading, UK
- Has thanked: 32 times
- Been thanked: 251 times
- Contact:
Re: Preserving Arcade Core High Scores
Another chunk of titles now with high score save/load:
Amidar
Anteater
Armored Car
Battle of Atlantis
Calipso
Dark Planet
Frogger
Lost Tomb
Minefield
Moonwar
Rescue
Scramble
Super Cobra
Tazz-Mania
The End
Turtles
Amidar
Anteater
Armored Car
Battle of Atlantis
Calipso
Dark Planet
Frogger
Lost Tomb
Minefield
Moonwar
Rescue
Scramble
Super Cobra
Tazz-Mania
The End
Turtles