Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: jimmer on July 31, 2014, 07:10:07 pm
-
I have no idea how to go about this, but what I would like is something to analyse the hi-score (I use the MAME hi-score patch) information and produce a table of players with their lists of hi-scores. Only the top N players need to fit on the screen. eg
JIM JON JCN DIL
Defender Pacman Pengo mrdo
Robotron Scramble Rtype
Galaxian Frogger Ghosts
qix
Galaga
If it could be my layout or screensaver for AttratMode that would be perfect. But building the table will be a start.
Once this table appears, the numbers of games played will probably expand massively.
-
It looks like there was a project that worked for older versions of MAME, and I see that someone else posted that they are starting a project to bring it up to date. Here is a link to the thread http://forum.arcadecontrols.com/index.php?topic=83614.0 (http://forum.arcadecontrols.com/index.php?topic=83614.0)
The new developer has a post on the last page of the thread.
-
Hello,
I am the developer of the "resurrected" hi2txt utility ;)
And what is requested is indeed feasible, but with a bit of coding:
# get games with nvram for hi scores
list all games having a <mame>\nvram\<game> directory
# get games with hi file for hi scores
list all games having a <mame>\hi\<game>.hi file
concat the two list, removing duplicates
for each games
call hi2txt to extract hi scores as readable stuff (sort of CSV output)
#as 1st line of the output is always the main table header...
#as 1st column is always RANK, the hi score is always in the 2nd column
read the 2nd line and extract NAME column
# optional: skip unknown name to keep only the one from your friends, or to minimize the displayed result in order to be readable in one screen?
put name+game in a structure storing name as a key, and game as a value, where multiple values are allowed
dump the content of the structure in something readable by your favorite front-end
What should be a valid output at the end to be integrated into a front-end? A jpg/png image?
Regards,
GreatStone.
-
I gave a vague example of the display I was thinking of. But I'm sure once the data collected into a file, people will come up with a variety of ways to display it.
I play mostly old classics and unfortunately quite a few don't take the name of the hi-scorer. Not sure what to do about that, maybe I will need an editable file where I can specify the name for those games.