Jump to content
LaunchBox Community Forums
JoeViking245

View MAME High scores in Game Details - A plugin for LaunchBox/BigBox

Recommended Posts

View MAME High scores in Game Details - A plugin for LaunchBox/BigBox

View File

View MAME High scores in Game Details - A plugin for LaunchBox/BigBox

Use this plugin to see a games top 3 high scores in the Game Details.

 

Features

  • Shows high scores for most games in your Arcade platform in the Game Details.

After playing a MAME Arcade game that saves its' high scores [and is supported by the included hi2txt program], this adds a Custom Field called "Hi-Scores" to the game.  It will store 1st, 2nd and 3rd place and appear in the Game Details when the game is selected.

 

What's needed

  • (3) files that are included in the downloaded zip file (the plugin)
  • MAME configured to save high scores
  • Saved high score files (These are automatically generated by MAME [once 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.
  • MAME does not save high scores for all arcade machines, so not all games are supported by this plugin.

 

Contributors

@jayjay and @JoeViking245

 

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: Making sure MAME is set up to save high scores

 

Installing the Plugin:

  • Download the plugin, LB-BB_Hi_Scores_v1.0.zip, from the LaunchBox download section
  • After you’ve downloaded the zip file, be sure to unblock it in Windows by right clicking it, selecting Properties, and clicking Unblock

1856374065_Unblockdll.jpg.7b0ee1ffaf633990520cc3d8decaf82d.jpg

  • Open the zip file and extract/copy the "Hi_Scores" folder into ..\LaunchBox\Plugins

           e.g  D:\LaunchBox\Plugins\

If you have previously installed “MAME Hi-Score Display - A plugin for BigBox”, you will only to copy the “HiScoreCustomField.dll” file into that same folder.  Otherwise all 3 files are required.  The 2 plugins will not conflict with each other.

 

Setting up MAME to save high scores:

Using a recent official MAME release –

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

581518570_mame1.jpg.25745172cdf45c35efe90b8a6f6f2bc6.jpg

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

1358223493_mame2.jpg.e877703fbfe0e32ef4b45f082a69624d.jpg

 

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

  • 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 control + 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:782718388_mame3.jpg.82aeb30e430f23ed52f8e6e601577c89.jpg

 

How to use:

  • Start LaunchBox or BigBox
  • Go into the "Arcade" Platform
  • Select a game, run it, then close it
  • Now select a different game, then go back (poor man’s version to refresh the Game Details)
  • If the game has saved high scores, they will now appear in that game’s Detail pane

Depending on the BigBox theme you use, the amount of data shown in the Game Details may be limited.  So you might need to go into Options, Game Details and deselect some of the Details.

Be sure that “Custom Fields” is checked.


 

  • Like 1

Share this post


Link to post
Share on other sites

Will this display the hi-scores in LaunchBox as I did all the above and don't see hi-scores in LB Game Info box as I am checking games that have hi-scores saved such as asteroids.

Share this post


Link to post
Share on other sites
8 hours ago, Krakerman said:

Will this display the hi-scores in LaunchBox as I did all the above and don't see hi-scores in LB Game Info box as I am checking games that have hi-scores saved such as asteroids.

It does work. You said you did follow the steps towards the bottom of the plug-in description right?

 

Screen Shot 2019-12-05 at 2.33.49 PM.png

Share this post


Link to post
Share on other sites

Problem solved.  As it turns out, Asteroids is one of the few, if not the only game that saves a high score ("hi") file with no actual high scores in it.  It's just a matter of finishing your 1st game and entering your initials. :) 

image.thumb.png.c609734622e28b18d489d9f108a0ba23.png

Edited by JoeViking245
  • Like 1

Share this post


Link to post
Share on other sites

Yeah talked with JoeViking245 today on discord and got it working 👍Very cool plugin!

 

Edited by Krakerman

Share this post


Link to post
Share on other sites

you better hope Vik and Ing don't get better they may get that high score

 

  • Haha 1

Share this post


Link to post
Share on other sites

I'm having an issue getting this setup.  I'm running Mame through RocketLauncher instead of straight through LaunchBox, so I think that's my issue.

Is there a way to point this at my actual Mame folder?

Share this post


Link to post
Share on other sites

@fredpd Yes.  Using RocketLauncher is the issue.

I've never used RocketLauncher, but it's my understanding you 'point' your games to RL and it then redirects the game to MAME.  The plugin looks for the emulator's folder used to launch your Arcade games which is assumed to be MAME.  From there, it drills down to find the "hi" and "nvram" folders (where the high scores are saved).  Which of course, it won't find inside RL's folder.

At this point, we don't have plans to modify the code to account for RocketLauncher.  But from what I've read, the features that originally made RocketLauncher so sought after are pretty much all available these days in LaunchBox.  

That said, if we get enough hate mail requests/interest to account for RocketLauncher, we’ll look into it. :) 

Share this post


Link to post
Share on other sites

You are exactly right, my "hi" and "nvram" folders are not in the RL folder, they are in Mame. 

It sounds like it might be time to move everything over to LaunchBox directly, it's just years of Hyperspin holding me back.

Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

Has anyone got this to work with mame64 0218?

Mame hi scores are saving in game. Both Hi and nvram games work, but nothing in LB or BB. 

Thanks

 

Share this post


Link to post
Share on other sites

I have this running great within Launchbox, However in BigBox with  the Refried theme I can't get it to work. I have tried editing the XML exactly like I've seen in another post but with no luck.So if anyone has gotten it to work please share your secret...Thanks.

Share this post


Link to post
Share on other sites

i have it working with MAME .201 using the refried theme with the addons.  i had to edit the Arcade.xml in the \Themes\Unified Refried\Views\TextGamesView folder in order to get it to work.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Would you be kind and send the xml privately so i could see it..Thanks for the reply..

 

Share this post


Link to post
Share on other sites

@rexryan 

Make sure you have the BigBox version installed (as well as the LaunchBox version from this post).  See above for link to the BigBox version.

Edit for "Arcade.xaml"

As @ed20910 indicated, for the Refried Theme, be sure you edit "Arcade.xaml" located in the "TextGamesView" folder.  (Note the "s" in "Games")

If the theme you're using shows Game Details (I don't have Refried), in BigBox, be sure to have "Show Custom Fields" checked under "Options", "Games Details".  image.thumb.png.b4961e1ac8bcaa823a9f8fb1dcd3c8d4.png 

Also depending on the Theme, if there are too many "Details" checked, it may not show. image.thumb.png.2749c7d3ff1654b5057c451c34a28348.pngIf your Theme doesn't show Game Details [circled in red], there should also be (assuming the correct xaml is edited) a "View Hi-Scores" item in the menu [highlighted blue].  And of course, none of these will show if there are no saved high scores for the particular game.

 

Edited by JoeViking245

Share this post


Link to post
Share on other sites
1 minute ago, JoeViking245 said:

@rexryan I edited my post to reflect that for the Refried Theme, you will need to edit "Arcade.xaml".

Thanks i realize that..It is working perfectly thanks for help..I love the Plug in..

  • Thanks 1

Share this post


Link to post
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
Reply to this topic...

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