Jump to content
LaunchBox Community Forums

MAME Hi-Score Display - A plugin for BigBox 5.1.0

   (0 reviews)

2 Screenshots

About This File

MAME Hi-Score Display - A plugin for BigBox

Use this plugin to view a games high scores from BigBox’s Game Menu.

Features

  • Creates a menu item called “View Hi-Scores” that allows you to display high scores for most games in your Arcade platform directly in BigBox.

What's needed

  • (3) files that are included in the downloaded zip file (the plugin)
  • Version 3.0 - One file that is included in the downloaded zip file (the plugin)
  • 2 lines of text added to the "TextGamesView.xaml" file for your current BigBox Theme
  • MAME configured to save high scores
  • Saved high score files (These are automatically generated by MAME once it’s configured to save them in the "hi" and/or “nvram” subfolders of your MAME emulator)

What it won't do

  • Show high scores for games using emulators other than MAME.
  • Show high scores for games in LaunchBox.
  • MAME is not built to save high scores the same way (or at all) for all arcade machines, so not all games are supported by this plugin

Contributors
@jayjay – The one who came up with the idea and did all the hard stuff.
@JoeViking245 – The one who helped with all the easy stuff.
@fromlostdays – The one who made these instructions easier to follow. 

A HUGE Special Thanks goes to GreatStone’s utility “hi2txt”.  This utility converts MAME’s high score files into a readable format which ultimately makes this plugin possible!!
http://greatstone.free.fr/hi2txt/index.html

 

Installation and setup instructions:

Step 1: Installing the Plugin
Step 2: Editing your BigBox Theme to add support for the Plugin
Step 3: Making sure MAME is set up to save high scores
 

Installing the Plugin:

  • Download the plugin, Mame_Hi_Scores (v5.0.0).7z from the LaunchBox download section
  • (If not using 7zip) After you’ve downloaded the zip file, be sure to unblock it in Windows by right clicking it, selecting Properties, and clicking Unblock434432205_Unblockdll.jpg.ca44bf5c0712edda88a3feb25e718026.jpg
  • Open the zip file and extract/copy the "Hi_Scores" folder into ..\LaunchBox\Plugins
    • i.e.   D:\LaunchBox\Plugins\Hi_Scores\Mame_Hi_Scores.dll

 

Editing Your BigBox Theme to add support for the Plugin:

As of version 5.0.0, this step is no longer required.

If you are updating from a version PRIOR to v5.0.0, you will need to UNDO THE CHANGES made to your TextGamesView.xaml file!!!

(just delete the 2 lines that were added, and save.)

Spoiler

You just need to add two lines of text, each in a specific place, in one of the theme’s .xaml files so that your theme can display the Hi -Scores. This should work for all themes.

  • Go to the "Views" folder of the theme you are using and find the file "TextGamesView.xaml".
    • e.g.  D:\LaunchBox\Themes\my_current_theme\Views\TextGamesView.xaml
  • Right click on "TextGamesView.xaml" and select Edit

583663427_edit1.jpg.8366eca1c82a0ec0b1ab8070a0f614b4.jpg

  • Insert the following line after the last existing "xmlns" entry located near the top of the file:
xmlns:hsc="clr-namespace:Mame_Hi_Scores;assembly=Mame_Hi_Scores"

   It will look similar to this:2003255578_Edit2.thumb.jpg.caa37654b6585d896af131d24bb185d0.jpg

  • Now scroll all the way down to the bottom of the document.
  • Insert the following line* just above the text "</Canvas>":
<hsc:Hi_Scores Height="{Binding Source={x:Static SystemParameters.PrimaryScreenHeight}}" Width="{Binding Source={x:Static SystemParameters.PrimaryScreenWidth}}" HorizontalAlignment="Center" VerticalAlignment="Center"/>

*NOTE: The word “canvas” may show up multiple times in the document. You’re looking for the last instance of it, at the very bottom of the text just above </UserControl>. Also note that the indentation of the line doesn’t matter. The above is one single line of text, so be sure and copy and paste the entire line. Depending on your text editor, it may ‘wrap around’ and look like two lines, which is not a problem. 

 It will look similar to this:641378449_Edit3.thumb.jpg.653cf694a37fc389d29c0f0a986aa364.jpg

  • Save and close TextGamesView.xaml .
  •  

 

Setting up MAME to save high scores:

Using a recent official MAME release –

  • Spoiler

     

    • By default, plugins are enabled in MAME.  You can verify yours by looking at the “mame.ini” file located in the root MAME install folder.
    • Open “mame.ini” and scroll down to (or press Ctrl + F and search for) “Scripting Options”.   “plugins” should be set to 1.  If it’s 0 (zero), change it to 1.

    1071004384_mame1.jpg.bb994277c744e19688fe2ce6b330984c.jpg

    • Next, open “plugin.ini” also located in MAME’s root directory and change “hiscore” to 1.2012490098_mame2.jpg.d69d04bd2ec61529d9ec2b1647f98540.jpg

     

     

If you have an older release of MAME, you may need to do the following steps instead.

  •  
Spoiler

 

  • Go to this website: http://www.mameworld.info/highscore/download.htm and download a copy of the file hiscore.dat that corresponds to your version of MAME.
  • The file (hiscoredat.zip) will need to be unzipped. Place the file hiscore.dat in your MAME/Plugins folder
  • Open up your MAME.ini file in a text editor. In newer versions, this file will be in the same directory as the MAME.exe
  • Press Ctrl + F and search for “Scripting Options”
  • Next to the word Plugins, type “1” no quotes
  • Next to the word Plugin, type “hiscore” no quotes

It will look like this:

955897230_mame3.jpg.3861475e08456fd84c7bbbcc978e6008.jpg

 

 

Congrats! You’re all setup! Now that you’ve setup the plugin, why not give it a try?

How to use:

  • Start BigBox
  • Go into the "Arcade" Platform
  • Select a game
  • Near the bottom of the Menu (if the selected game has a high score file saved) you'll see "View Local Hi-Scores
  • Select "View Local Hi-Scores" to see your high scores for that game!

To close the Hi-Scores window (options): (new v5.1.0)

  • Press the button you have mapped for your controller to Back
  • Press the key you have mapped for your keyboard to Back

What's New in Version 5.1.0   See changelog

Released

Resurrected:   Can again close the window using the controller button mapped to "Back".  (Was depreciated in v5.0.0)

  • Like 9
  • Game On 1
  • Unusual Gem 1

User Feedback

Recommended Comments



This is a great plugin. I love this idea and I will definitely be looking to use it in my themes. (So much to learn and so little time). I was thinking that this would make a great addition to the pause screen. Any idea how to add this to the available options list? It would be so cool since launchbox allows us to make platform specific everything. I think that it would be nice to pause and check high scores every once in a while and add that option to the 'Arcade' specific pause screen.

Anyway. Great plugin and thanks for making it.

Link to comment
Share on other sites

Hey @cemfundog.

At the moment you couldn't add it as a pause screen menu item but it is possible to add it as a custom user control. 

 

I'm not sure when mame updates it's hi-scores though. If it updates on game exit, then any hi-scores on the pause menu couldn't be updated til you quit the game and restart it.

 

If you know how to compile code. I'm sure as @JoeViking245 is a cool dude ;) he wouldn't mind PMing you the source so you can modify it to how ever you like.

 

 

Edited by jayjay
Link to comment
Share on other sites

12 hours ago, jayjay said:

Hey @cemfundog.

At the moment you couldn't add it as a pause screen menu item but it is possible to add it as a custom user control. 

 

I'm not sure when mame updates it's hi-scores though. If it updates on game exit, then any hi-scores on the pause menu couldn't be updated til you quit the game and restart it.

 

If you know how to compile code. I'm sure as @JoeViking245 is a cool dude ;) he wouldn't mind PMing you the source so you can modify it to how ever you like.

 

 

Well I guess its time to learn User Controls. Thank you for your reply and help @jayjay

Link to comment
Share on other sites

Pretty good plugin. Works well. Hope to see this expanded upon if possible. Maybe to work with retroarch mame cores? or making it appear on the game details portion of launchbox.next.

Link to comment
Share on other sites

Thank you everyone!

High Scores appearing in Game Details is being looked at (for both LB & BB).  If/when that's done, then maybe someone can figure out how to transfer that to a marquee ( @midd ) .  :) 

As for getting it to work with RA - MAME, @PlagueDox neither of us use RA for MAME.  If there's enough interest, we could possibly look into it.

Link to comment
Share on other sites

Thanks guys! this works great!

Is there a way for this to show up as part of the game view? love to see high scores as I scroll through games

Link to comment
Share on other sites

i think ive done something wrong, im using critical zone v2 and my textgamesview file looks different, i also have two of them.

Link to comment
Share on other sites

35 minutes ago, putnamto said:

i think ive done something wrong, im using critical zone v2 and my textgamesview file looks different, i also have two of them.

Launchbox/Bigbox now has native support for MAME hi scores.

Link to comment
Share on other sites

8 hours ago, neil9000 said:

Launchbox/Bigbox now has native support for MAME hi scores.

Yeah I know,  but that's for online leaderboards,  I'm looking for local leaderboards... Unless I'm missing something obvious

Link to comment
Share on other sites

1 minute ago, putnamto said:

but that's for online leaderboards

Good point. lol

There is only one of these files.  (Look for the "s" after "Game")image.png.c1caceed5b38c1ebb56768e3d7ad26e4.pngCan you show us what your TextGamesView.xaml file looks like?  At least the section that 'looks different'.  I assume you're taking about the top part (about the first 10 lines)

Link to comment
Share on other sites

23 minutes ago, JoeViking245 said:

Good point. lol

There is only one of these files.  (Look for the "s" after "Game")image.png.c1caceed5b38c1ebb56768e3d7ad26e4.pngCan you show us what your TextGamesView.xaml file looks like?  At least the section that 'looks different'.  I assume you're taking about the top part (about the first 10 lines)

i was adding the lines to the wrong file, i went back, removed the lines, then put them in the proper place, and now when i launch into a game detail page i get this
image.thumb.png.67197ae942369d5e298d89fa1dba3701.png
EDIT: ok i fixed that problem, but high score still isnt showing up
heres my .xaml file
top
image.thumb.png.ca256e247b8b7e27d06badf37004342f.png
and bottomimage.thumb.png.b74babdca5695d94a3a96df467d966ed.png
 

Edited by putnamto
Link to comment
Share on other sites

Ya, error was in the 'bottom' part. Glad you found it.

Is save high scores enabled in MAME?
Does the game you're testing support saving high scores?
Does the game you're testing have a high score file saved?
   (You need to get on the leader board before a high score file will even be created)
When you start the game you've gotten onto the leader board, do your initials show in the games' high scores?

Link to comment
Share on other sites

2 hours ago, JoeViking245 said:

Ya, error was in the 'bottom' part. Glad you found it.

Is save high scores enabled in MAME?
Does the game you're testing support saving high scores?
Does the game you're testing have a high score file saved?
   (You need to get on the leader board before a high score file will even be created)
When you start the game you've gotten onto the leader board, do your initials show in the games' high scores?

in the mame ui plugins section of the settings menu i saw that hi score was off, i turned it on, later i will go get a hi score and see if that fixed it.

  • Like 1
Link to comment
Share on other sites

Very nice plugin. Thank you.

It would be nice if they added an agreement with iScored, or someone even made a paid connection with BB on a separate screen, that would be great🥰

Link to comment
Share on other sites

24 minutes ago, KRI$85 said:

Very nice plugin. Thank you.

Thanks! 

 

43 minutes ago, KRI$85 said:

It would be nice if they added an agreement with iScored

There already is a Community Leaderboard for Arcade (MAME) games (that support high scores).  For pinball, there really isn't a huge following on the forums.  But you are able to at least see your personal scores for VPX with this:

 

iScrore looks to web based, so you'd either need to create a web interface or open a browser window.  Which you can already do.  

Just add a new game, give it a Title ("My iScore page"), set the Application Path to the web sites url, and be sure that in the Emulation section, 'Use an emulator...' is un-checked.  When you "Play" the game, the web site will open in your default browser.

image.thumb.png.7f7a981727931e98c5331ac86f9adcf9.png

 

I doubt LaunchBox is wanting to integrate a high score viewer (of sorts) since it already has one.  (But who am I say. lol)  I suppose you could register your own account and sharing your Public URL.  But kind of looks like anyone wanting to add their scores will need to purchase/register their own account.

  • Thanks 1
Link to comment
Share on other sites

WoW, I didn't know it was possible, I was planning to add a touch monitor to the tablet and now I'll definitely come up with something. Thanks.

It's a pity that they don't want to develop even a paid application or plug-in.
Ma OMG hehe I'm new to LB it probably only works with mom's games and not all of them but it's better than nothing ;)

I dream of 2 applications:
Hi-score for all, most games, not necessarily online
And most of all, an application with moves for fighting games, etc., something like the Mk Moves apk
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR0qJRqIp0c4Fo5egDqRpZwF-GmERj_JjoLkQ&s

https://imag.malavida.com/mvimgbig/download-fs/mortal-kombat-moves-12795-2.jpg


https://img.utdstc.com/screen/166/5dc/1665dcae4b37298527ab71b1ccc0f9419e6ce05c9d238c69cbd7f64ce051245f:600


 only you can't add anything there and change anything, and when I asked how much it costs to create such an application, it's a good thing I was sitting there, otherwise I would have fallen over hehe

I understand that it's not easy (probably) but don't exaggerate

Edited by KRI$85
Link to comment
Share on other sites

27 minutes ago, KRI$85 said:

It's a pity that they don't want to develop even a paid application or plug-in.

Didn't say they don't want to.  Mine was just speculation. 

You can always Request a Feature (top of the page Help & Support - Request a Feature)

 

30 minutes ago, KRI$85 said:

And most of all, an application with moves for fighting games, etc.

Something like this?

 

  • Unusual Gem 1
Link to comment
Share on other sites

3 hours ago, JoeViking245 said:

Didn't say they don't want to.  Mine was just speculation. 

You can always Request a Feature (top of the page Help & Support - Request a Feature)

 

Something like this?

oO cool, cool, but probably limited only to mom, but it's better than nothing ;)
Damn, I'm blind, I was looking through plugins and didn't see it, I'm just adding useful plugins that are still available because you never know when they'll disappear, so I'll check it out and THANK YOU

And one more question - is it possible to customize the games and, most importantly, put them on a separate screen, tablet, monitor?

Edited by JoeViking245
Link to comment
Share on other sites

46 minutes ago, KRI$85 said:

And one more question - is it possible to customize the games and, most importantly, put them on a separate screen, tablet, monitor?

I'm not sure what you mean.  Anything to do with game play etc. depends on the emulator and how you set it up.  If that's not what you meant or you need info about doing something with a specific emulator, should start a new thread so we don't stray too far off topic.

  • Thanks 1
Link to comment
Share on other sites

3 hours ago, JoeViking245 said:

Didn't say they don't want to.  Mine was just speculation. 

You can always Request a Feature (top of the page Help & Support - Request a Feature)

 

Something like this?

Ah, I think I understand. Check what and how.
I see. Thanks ;)

  • Like 1
Link to comment
Share on other sites

How does one get the highscore screen to display ontop of the image as I see it opening but it's behind my themes images? I'm using this theme:  I've attached the screenshot as it's behind the images when selecting roms.

 

Capture.PNG

Edited by rryanward
Link to comment
Share on other sites

2 hours ago, rryanward said:

How does one get the highscore screen to display ontop of the image as I see it opening but it's behind my themes images? I'm using this theme:  I've attached the screenshot as it's behind the images when selecting roms.

Thanks for bringing this to my attention.  For some reason, somehow, that particular Theme is forcing its window on top of everything else, causing the hi-scores window to go behind.

This is the first time I've heard of a Theme doing that. 

Maybe @JaysArcade can fix his Theme.  ;)  jk Jay!  I'll have my team look into seeing if they can do something to accommodate themes like this.

  • Haha 1
Link to comment
Share on other sites

Sorry guys, I have no idea. This is a community theme creator theme. Not sure if that has anything to do with it or not but maybe one of the theme creator dlls is interfering somehow with the hi-score plugin? 

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...