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



That would be awsome as I just updated from rocketlaunch and hyperspin Windows 7. I'm all new to this and would be an amazing feature to use on my vertical arcade cabinet build as I tried to keep it looking the same but with new features launchbox is so amazing and runs so much smoother now on Windows 10. Any help would be great. I can see if the theme developer can maybe look into implement this plugin as I try to keep this cabinet for offline play and away from updates as it breaks to much on the internet.

  • Like 1
Link to comment
Share on other sites

15 minutes ago, JaysArcade said:

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? 

No worries!  I have a plan....  ;) 

Link to comment
Share on other sites

Hi folks, a bit confused - the instructions mention a v5, but when I go under downloads, I don't see it?  Any help? Thanks.

Link to comment
Share on other sites

7 minutes ago, w00master said:

Hi folks, a bit confused - the instructions mention a v5, but when I go under downloads, I don't see it?  Any help? Thanks.

I changed the description, got sidetracked 😊, then uploaded v5.0.0.  It's there now.

Link to comment
Share on other sites

7 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?

Version 5.0.0 should resolve the issue.

You will need to UNDO THE CHANGES made to your theme's TextGamesView.xaml file!!!  (just delete the 2 added lines)

Link to comment
Share on other sites

@jayjay @JoeViking245 How can we look over the hiscores for Tempest? They are not correct. Im at top and I only have +90k score. Is it something on launchbox end of the integration or is it hi2text that need to look it over?

Link to comment
Share on other sites

27 minutes ago, JPersson said:

@jayjay @JoeViking245 How can we look over the hiscores for Tempest? They are not correct. Im at top and I only have +90k score.

You high score is a lot higher than mine but yet I'm still #1 here.  :) 

image.thumb.png.5712fbdb54d695aa940db6ca2024e02a.png

 

 

48 minutes ago, JPersson said:

Is it something on launchbox end of the integration or is it hi2text that need to look it over?

Your local high scores are extracted from your hi file and or your nvram file for each game, using hi2txt.  Is the high score that the plugin is showing different than the high score that shows in-game?  Can you share some screenshots?

  • Like 1
Link to comment
Share on other sites

On 9/5/2024 at 1:39 AM, JoeViking245 said:

You high score is a lot higher than mine but yet I'm still #1 here.  :) 

image.thumb.png.5712fbdb54d695aa940db6ca2024e02a.png

 

 

Your local high scores are extracted from your hi file and or your nvram file for each game, using hi2txt.  Is the high score that the plugin is showing different than the high score that shows in-game?  Can you share some screenshots?

Yeah I dont know what has happend with what being presented on my end.

2024-09-09_00-07-39.jpg

Edited by JPersson
Link to comment
Share on other sites

1 hour ago, JPersson said:

Yeah I dont know what has happend with what being presented on my end.

The Community Leaderboard (the screenshot you're showing) is something completely different from this plugin.

 

Your original 'concerns'     "Im at top and I only have +90k score

  • You actually have over 900 K.   Well.. just under 1 Million!
  • You're in 1st for the Week, Month and [this] year
  • Overall, only one person has a higher score than your highest submitted score.
    • "Overall" being, since the time the Community Leaderboard was implemented

Now, if you're just trolling to get some kudos... Congratulations on having a kickin' high score!!!  ;) 

Link to comment
Share on other sites

On 9/9/2024 at 2:00 AM, JoeViking245 said:

The Community Leaderboard (the screenshot you're showing) is something completely different from this plugin.

Your original 'concerns'     "Im at top and I only have +90k score

  • You actually have over 900 K.   Well.. just under 1 Million!
  • You're in 1st for the Week, Month and [this] year
  • Overall, only one person has a higher score than your highest submitted score.
    • "Overall" being, since the time the Community Leaderboard was implemented

Now, if you're just trolling to get some kudos... Congratulations on having a kickin' high score!!!  ;) 

image.thumb.png.ee61e7e2760c5c298388940ea501e2d7.png

Hmm so community leaderboard uses hi2text but why am I getting wrong scores? Ingame my score is not that high. Around 90k. Is the parsing off to the community leaderboard?

Link to comment
Share on other sites

2 hours ago, JPersson said:

Hmm so community leaderboard uses hi2text but why am I getting wrong scores? Ingame my score is not that high. Around 90k. Is the parsing off to the community leaderboard?

Again, The Community Leaderboard is something completely different from this plugin.

May try reading through the below linked thread and see if your issue [or related] had been addressed.  And if not, ask there.

 

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...