Jump to content



Photo
- - - - -

PINemHi New version 1.3.1 released

PINemHi hiscores stern roms

  • Please log in to reply
60 replies to this topic

#1 DnaDisturber

DnaDisturber

    Pinball Fan

  • VIP
  • 775 posts
  • Location:Hiscore Hill

  • Flag: Netherlands

  • Favorite Pinball: Monster Bash

Posted 30 March 2018 - 03:23 PM

Hi,

Just wanted to let you know that there is a new version of PINemHi released.

 

This new version includes all the hiscores for the newer STERN roms (SAM) and is compatible with vpinmame version 3.0

You can overwrite the files in your pinballx directory (or you can use it standalone of course for other purposes) , you only have to setup the paths in pinemhi.ini to your visual pinball and or future pinball directory's

1240 roms are supported for visual pinball and all for future pinball. For visual pinball that means roughly 425 games that are supported.

 

Pinballx has PINemHi in the installation package but that is quite an old version with not all roms in it (especially newer STERN roms)

I have attached the new version to this post

 

Dna Disturber

 

 

P.S. This release has nothing to do with the online part of PINemHi Leaderboard.

Working on that one as well.... as of now there is no tablename required so it will register on the gamename rather than on the tablename.

With the pinballx plugin for pinemhi leaderboard you can easily register scores on PINemHi Leaderboard , even the special ones (combo's and such).

There are also challenges that you can try and even earn badges for your accomplishments

Will release a new version of that one soon.....including lots of new games to set scores for....also newer STERN games(like Spider-man, Avatar, Batman)

 

Attached File  PINemHi 1.3.1.zip   117.45KB   372 downloads


Author of PINemHi & PINemHi Leaderboard........
Website : www.pinemhi.com (to see all hiscores being made and the challenges)

 


#2 subdisturb

subdisturb

    Hobbyist

  • Platinum Supporter
  • 27 posts

  • Flag: ---------

  • Favorite Pinball: All

Posted 30 March 2018 - 03:43 PM

Thanks for this update!



#3 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 01 April 2018 - 11:38 AM

This is one of the last things I have to get setup on the cab.  Thanks for the update.  Adding another monitor to the backglass as a topper needs info to be displayed and this seems perfect.  I have high score notes on top of all my real tables, so this should be awesome.



#4 DnaDisturber

DnaDisturber

    Pinball Fan

  • VIP
  • 775 posts
  • Location:Hiscore Hill

  • Flag: Netherlands

  • Favorite Pinball: Monster Bash

Posted 01 April 2018 - 09:05 PM

Hi Slydog43,

That sounds like a great idea....
In pinballx the rom is recognized with the use of the romnames in pinemhi.ini....it is in the log statistics if i recall correctly after you start a game
If you can create a program that reads that out then you could run pinemhi and hopefully get the text on the topper...

Or maybe you already have thought of a way to get it done?
Love to know if you get it working....and a picture from the result would be awesome
Would be great for others as well i would think

Edited by DnaDisturber, 01 April 2018 - 11:02 PM.

Author of PINemHi & PINemHi Leaderboard........
Website : www.pinemhi.com (to see all hiscores being made and the challenges)

 


#5 subdisturb

subdisturb

    Hobbyist

  • Platinum Supporter
  • 27 posts

  • Flag: ---------

  • Favorite Pinball: All

Posted 02 April 2018 - 12:45 PM

This is one of the last things I have to get setup on the cab.  Thanks for the update.  Adding another monitor to the backglass as a topper needs info to be displayed and this seems perfect.  I have high score notes on top of all my real tables, so this should be awesome.

 

This is exactly what I had planned to do.  Over this past weekend, I wrote a relatively quick little C# console app that I call on table load from PBX to create a text file of the high score results.  The same console app then creates a png image from that text file that is saved in the correct topper images folder for PBX.  However, it seems as though that once PBX loads the first of my newly created topper images, it is locked onto the screen and won't update as you flip through other tables.  The console app is still creating the new topper images and placing them in the correct folders, but PBX is just not updating what it should be displaying on the topper screen.  I'm guessing PBX doesn't like the way I'm dynamically swapping out images on the fly.

 

 

In pinballx the rom is recognized with the use of the romnames in pinemhi.ini....it is in the log statistics if i recall correctly after you start a game
If you can create a program that reads that out then you could run pinemhi and hopefully get the text on the topper...

 

I'll have to take a look at the log statistics to see if I can formulate a better way of matching.  That was longest part of this whole project, trying to rename the results correctly (mostly due to the idiotic way I've named stuff :stunned: )

 

I didn't have a whole lot of time to actually debug the app since I had a lot going on over the holiday weekend.  But I plan to try to figure something out this week.



#6 DnaDisturber

DnaDisturber

    Pinball Fan

  • VIP
  • 775 posts
  • Location:Hiscore Hill

  • Flag: Netherlands

  • Favorite Pinball: Monster Bash

Posted 02 April 2018 - 03:14 PM

Sounds awesome subdisturb.

Perhaps it's possible to see if a process starts from vpinmame and relate the windowname to the ones in pinemhi.ini
Then you have the romname as well. This is how the romname is discovered in pinballx

If you have a proces running in the background to see if that proces starts and ends then you can do the pinemhi txt to png everytime at start and perhaps when a proces ends, in other words you exit a game, you can display another type of png...logo or other cool picture
Just a thought.....

Would love to hear any progress to your app... others as well i would think

Author of PINemHi & PINemHi Leaderboard........
Website : www.pinemhi.com (to see all hiscores being made and the challenges)

 


#7 subdisturb

subdisturb

    Hobbyist

  • Platinum Supporter
  • 27 posts

  • Flag: ---------

  • Favorite Pinball: All

Posted 04 April 2018 - 12:18 AM

Perhaps it's possible to see if a process starts from vpinmame and relate the windowname to the ones in pinemhi.ini
Then you have the romname as well. This is how the romname is discovered in pinballx

I appreciate the suggestion, but I may be missing something.  When I gather all processes running after I've started the table, everything is grouped under the VPinball applications.  I don't see an actual pinmame process listed.  I suppose it's the way the VP editor initiates the emulator as I child process?  I can get the rom based on the window title from the VPinball exe instances, but that's not really fool-proof either.  Some times it will list the window title as the rom name for the exe, sometimes it won't.  Also, I have a physical DMD, so I typically have the virtual dmd turned off.  Understandably, with hiding the virtual DMD, there's not an open window for me to grab the title from.  However, I did modify my registry to turn those all back on and it still wouldn't always show me the rom name in the window title.  I suspect that may possibly be due to also using dmdext for colorized roms.

 

In any event, I changed my application to use the passed table name from when the table is launched in PBX and matched that up to the list I previously created to find the correct rom.  This works perfectly and displays the high scores on my topper screen without issue (as long as I have a match in my list :80: )

 

I also changed it from a console app that created images on load (which PBX had issues displaying) to a winform app with a transparent background that I can overlay on any of my screens.  I initially wanted to put this as a small hud overlay on the backglass screen as I'm not sure I'm going to use a topper screen once I finish the cab.  But this was way too busy. 

 

Here's a screen cap of what I've got working:

hiscore_t.png

 

I'm not sure how much more time I want to invest in trying to perfect this.  With the upcoming Pinup Popper (which looks amazing),  I may have to reinvent this to begin with depending on that functionality.

 

I do greatly appreciate you updating the PINemHI software though!   :otvclap:   I also use it for a separate digital touchscreen scoreboard that we use to keep a tally of total head-to-head wins and having the additional Stern tables on there is great.


Edited by subdisturb, 04 April 2018 - 12:30 AM.


#8 DnaDisturber

DnaDisturber

    Pinball Fan

  • VIP
  • 775 posts
  • Location:Hiscore Hill

  • Flag: Netherlands

  • Favorite Pinball: Monster Bash

Posted 05 April 2018 - 01:33 PM

I totally understand...these kind of projects are very time consuming
Looks nice btw , especially centered....I like it the most when it's centered...
That's why i always use a fixed amount of characters for the scores , filling it up with spaces on the front of the scores so that the lines with the scores are always a fixed length

Saw a vid about the pinup popper..that indeed looks awesome...
Maybe it can be implemented one day in pinup popper...

Always nice to hear that someone is actually using the tool and finds it useful....as you send it out , you don't really know if people are using it and if it is worth spending time on it.
So subdisturb thank you for the kind words and of course finding it useful....now i know updating it was a good decision.... :) :tup:

Thanks,

Dna Disturber


Edited by DnaDisturber, 05 April 2018 - 01:45 PM.

Author of PINemHi & PINemHi Leaderboard........
Website : www.pinemhi.com (to see all hiscores being made and the challenges)

 


#9 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 05 April 2018 - 02:33 PM

I'm also working on something very similar.  I have my own database management software that I wrote for managing all my tables.  Yesterday I finally got a program to cycle through all of my tables, extracting the script file, then I process these and extract the ROM name used in that script.  I then imported the rom file to my database for each table, if there is one.  I now have correct rom names for all my tables (Yeah its been years since I had this info.

 

I now think I have a better way of getting this info, not sure but this is what I'm thinking.  After running a table, run my updateHiScore program that will create a high score png from the last updated nvram file (by date) and copy this to all tables in my db that use that rom.  This will allow Pinballx to display the high score png on my topper.  (Pinup Popper will also work, which is awesome by the way).

 

What do people think, I can have my UpdateHiScore program go through a PinballX xml file as long as the rom info is inserted in the XML.

 

SubDisturb, how did you generate the png from your winforms program?


Edited by Slydog43, 05 April 2018 - 02:34 PM.


#10 subdisturb

subdisturb

    Hobbyist

  • Platinum Supporter
  • 27 posts

  • Flag: ---------

  • Favorite Pinball: All

Posted 05 April 2018 - 03:43 PM

SubDisturb, how did you generate the png from your winforms program?

 

Since I'm not trying to save the png into the PBX topper folders anymore, I'm not actually saving a png at all and just drawing onto the form itself.  I went through a couple different iterations.  The code is def not clean/finalize and I had intended to make all of these parameters dynamic and not hardcoded.  Didn't make sense to flesh all that out yet if I'm not sure where exactly I'm headed yet ;) .

 

**All of the below is assuming you've run the extremely handy and pure awesome PINemHI application to pull the scores into either memory or a tmp text file

 

I initially wanted to overlay on the backglass with a transparent background, but it just was too hard to read.  However, to make it a little clearer to read on the backglass, I needed to add a border to the text to help make it stand out.  To do that, I needed to use GraphicsPath with DrawPath and FillPath:

using (Graphics formGraphics = this.CreateGraphics())
{
	GraphicsPath p = new GraphicsPath();

	p.AddString(
	    scoreString,             		// text to draw
	    FontFamily.GenericSansSerif,  	// or any other font family
	    (int)FontStyle.Regular,      	// font style (bold, italic, etc.)
	    formGraphics.DpiY * 20 / 72,        // em size
	    new Point(0, 0),              	// location where to draw text
	    new StringFormat());          	// set options here (e.g. center alignment)
	formGraphics.FillPath(Brushes.White, p);
	formGraphics.DrawPath(Pens.Black, p);
}

But, ultimately, I trashed the idea of a transparent overlay and just painted the info onto an unused space on my topper screen with a black background.  Since I didn't need to add a border to the text, I just used the DrawString method instead of DrawPath/FillPath:

using (Graphics formGraphics = this.CreateGraphics())
{
        Font font = new Font("Arial", 15);
	Color backColor = Color.Black;
	Color textColor = Color.GhostWhite;

	//paint the background
	formGraphics.Clear(backColor);

	//create a brush for the text
	using (Brush textBrush = new SolidBrush(textColor))
	{
		using (var sf = new StringFormat()
		{
		    Alignment = StringAlignment.Center,
		    LineAlignment = StringAlignment.Center,
		}) formGraphics.DrawString(scoreString, font, textBrush, new Rectangle(0, 0, 1280, 500), sf);
	}
}

As far as creating the png image, this is what I was doing (I spent the least amount of time on this and scraped the idea, but it worked).  Also, I was just running this from a console app at the start of a table load in PBX, not from a winforms app (no reason it wouldn't work in a winform app):

sr = new StreamReader(@"c:\[MY PATH]\tmp\tmp.txt");
string scoreString = sr.ReadToEnd();
Font font = new Font("Arial", 15);
Size minSize = new Size(1280, 300);

//first, create a dummy bitmap just to get a graphics object
SizeF textSize;
using (Image img = new Bitmap(1, 1))
{
    using (Graphics drawing = Graphics.FromImage(img))
    {
	//measure the string to see how big the image needs to be
	textSize = drawing.MeasureString(scoreString, font);
	if (!minSize.IsEmpty)
	{
	    textSize.Width = textSize.Width > minSize.Width ? textSize.Width : minSize.Width;
	    textSize.Height = textSize.Height > minSize.Height ? textSize.Height : minSize.Height;
	}
    }
}

//create a new image of the right size
Image retImg = new Bitmap((int)textSize.Width, (int)textSize.Height);
using (var drawing = Graphics.FromImage(retImg))
{
    Color backColor = new Color();
    backColor = Color.FromArgb(0, 0, 0);

    Color textColor = new Color();
    textColor = Color.FromArgb(255, 255, 255);

    //paint the background
    drawing.Clear(backColor);

    //create a brush for the text
    using (Brush textBrush = new SolidBrush(textColor))
    {
	using (var sf = new StringFormat()
	{
	    Alignment = StringAlignment.Center,
	    LineAlignment = StringAlignment.Center,
	}) drawing.DrawString(scoreString, font, textBrush, new Rectangle(0, 0, retImg.Width, retImg.Height), sf);
	drawing.Flush();
    }
}
retImg.Save(@"c:\[MY PATH]\tmp\temp.png");

I'd love to see how you're pulling out the scripts from the tables.  I think that's really the key piece I'm missing from being able to make this full automated the way I had envisioned it.  My current method of matching file names to roms is not sustainable.


Edited by subdisturb, 05 April 2018 - 03:58 PM.


#11 gpstevens

gpstevens

    Hobbyist

  • Platinum Supporter
  • 42 posts
  • Location:Utah

  • Flag: United States of America

  • Favorite Pinball: Whirlwind, POTC, Eight Ball Deluxe, BOP, Sorcerer

Posted 06 April 2018 - 05:45 AM

Hi. I have tried to install PINemHi following your instructions, but for some reason it's not working right. And, I'm trying to use the leaderboard plugin and it's also not quite working. I was able to get onto pinemhi.com/hiscores.php and request a username and code. I signed up for a Kiddie Challenge, then proceeded to play AFM to beat the necessary score for the first challenge.  After playing AFM several times, and exiting the game each time, my scores are not getting transferred to pinemhi.com/hiscores.php.  My scores do seem to register correctly in the .nv file (the date modified changed to todays date, and opening the file I can see my high scores there).  But, I don't see the high scores showing in PinballX under the "Information" selection, nor did my high scores get posted to the pinemhi.com/hiscores.php site. I cannot even see my username on the Info Player dropdown menu on the High Scores page at pinemhi.com/hiscores.php site. 

 

Here are the details on my setup if it helps....

 

PinemHi.ini settings

 
[paths]
VP=C:\Program Files (x86)\Visual Pinball\VPinMame\nvram\
FP=C:\Games\Future Pinball\fpRAM\
 
PinemHi_leaderboard.ini settings
 
[path]
nvram=C:\Program Files (x86)\Visual Pinball\VPinMame\nvram\
fpram=C:\Games\Future Pinball\fpRAM\
 
[user]
name=gpstevens
code=gzq3n1
 

 

I am running PinballX v2.36, and I did run Plugin Manager and checkboxed the pinemhi plugin.

 

I did notice there was reference in your installation instructions about a log file being created in the plugins folder?  I can't see any log file in the PinballX/plugins folder or any other folder for pinemhi or pinemhi_headerboard.

 

I copied the contents of the installation ZIP file into my PinballX folder (C:\PinballX), and then copied the

PINemHi LeaderBoard.dll file into the plugins folder (C:\PinballX\Plugins)

 

Any help or guidance in resolving this would be appreciated.

 

 



#12 DnaDisturber

DnaDisturber

    Pinball Fan

  • VIP
  • 775 posts
  • Location:Hiscore Hill

  • Flag: Netherlands

  • Favorite Pinball: Monster Bash

Posted 06 April 2018 - 10:49 AM

Hi gpstevens,

 

Let's see what we can do to try and make it work for you.

Perhaps the first step would be to try and figure out if pinemhi works without using pinballx

start a dosbox (cmd) , go to your pinballx directory and then type pinemhi afm_113b.nv

You should get the hiscores from it in the dosbox

If not there's probably something wrong with your path in the pinemhi.ini file

 

---------------------------------

If you go to where you installed your vpinmame and run setup , then click on setup paths , which path does it say for your nvram?

Is this exactly the same as in the pinemhi.ini (almost , as you need a backslash at the end in pinemhi.ini of course ) ?

---------------------------------

 

Because you said that you also don't get the hiscores in info in pinballx i would think it must be path related

did you overwrite the old pinemhi and pinemhi.ini (they come with the pinballx install) ? 

Which version of vpinmame are you using and perhaps you have more than one installed?

 

 

You can also take a look at the logfile from pinballx to see if the plugin starts.

in your pinballx directory there is a log directory , in it you find log.txt (this is the log from pinballx)

It should say something like this:

12:14:48.3  6-4-2018:  PinballX - Version 2.65
12:14:48.4  6-4-2018:  Windows 10 Home 64 bits (7,9814453125GB)
12:14:48.4  6-4-2018:  Loading Settings
12:14:48.5  6-4-2018:  Initialize Component
12:14:48.5  6-4-2018:  Initialize Display
12:14:49.6  6-4-2018:  Loading PlugIns
12:14:49.8  6-4-2018:  Loaded Plugin:"PINemHi LeaderBoard" Version 1.3.1 By Dna Disturber
12:14:49.8  6-4-2018:  PlugIn: "PINemHi LeaderBoard" Initialized OK
12:14:49.9  6-4-2018:  Using Plugin System Version: 131

 

And also you can take a look to see if pinballx gets the rom by looking in pinballx directory then databases and then statistics.ini

It will tell you about the games you started, it looks like this:

[VisualPinball_Pirates_Of_the_Caribbean]
description=Pirates Of the Caribbean
lastplayed=16-3-2018 22:53:42
timesplayed=3
rom=potc_600as
secondsplayed=130
highscore_1=D N|75000000
highscore_2=K O|55000000
highscore_3=D T|40000000

 

as you see it says rom=

------------------------------------------

The player info dropdown on pinemhi site only works when a player has set a score for a game so that's the reason you are not in it yet

There is probably no logfile for pinemhi leaderboard plugin because it's not working properly.

 

But i would focus on getting pinemhi to run first then the rest will probably work as well

 

Your user has been created btw. i checked

The code is somewhat like a password so maybe you shouldn't post that one


Edited by DnaDisturber, 06 April 2018 - 10:59 AM.

Author of PINemHi & PINemHi Leaderboard........
Website : www.pinemhi.com (to see all hiscores being made and the challenges)

 


#13 gpstevens

gpstevens

    Hobbyist

  • Platinum Supporter
  • 42 posts
  • Location:Utah

  • Flag: United States of America

  • Favorite Pinball: Whirlwind, POTC, Eight Ball Deluxe, BOP, Sorcerer

Posted 06 April 2018 - 02:42 PM

Thanks DnaDisturber for your response. Below is what I found out from top to bottom to your queries....

 

  1. I tried pinemhi afm_113b.nv and it worked. My high scores are showing up. So pinemhi is working!
     
  2. I checked the path for nvram running setup64.exe and the path matches what I have in pinemhi.ini (with the backslash at the end of course). There is also a setup.exe in the same folder, and running it, I also see the same path matches.
     
  3. I did overwrite the pinemhi and pinemhi.ini files when they were copied over from your v1.3 upgrade. I am running vpinmame v3. I am not exactly sure how to check whether I have two copies of vpinmame installed.  In the registry, under HKEY_CURRENT_USER/Software/Freeware I see Visual Pinmame listed there just once.
     
  4. I looked at the PinballX log file and it looks like pinemhi is loading correctly (see below).
          07:44:37.4  4/6/2018:  Loaded Plugin:"PINemHi LeaderBoard" Version 1.3.1 By Dna Disturber
          07:44:37.4  4/6/2018:  PlugIn: "PINemHi LeaderBoard" Initialized OK
     
  5. I looked at the statistics log file and doing a search, I found the following on (see below).
         [System_6_Attack_from_Mars_V10_VPX]
         description=Attack From Mars
         lastplayed=4/5/2018 10:52:04 PM
         timesplayed=10
         rom=pinball
         secondsplayed=7263

    I do NOT see high scores showiing after the secondsplayed line. I also notice that the rom= line is set to "pinball" for nearly every entry in this log file.  Could this be the problem? How do I set the proper rom= value without manually doing it to every one of my installed tables?


#14 DnaDisturber

DnaDisturber

    Pinball Fan

  • VIP
  • 775 posts
  • Location:Hiscore Hill

  • Flag: Netherlands

  • Favorite Pinball: Monster Bash

Posted 06 April 2018 - 04:40 PM

Hmmm very strange....
It looks like pinballx can't determine what the rom is for that game.
Are you really sure pinemhi.ini file is the new one?
 
It should say this jus below the paths:
// This section is for the conversion of the pretty-romname to romname.nv
// For use with frontend Hyperpin using FPlaunch or PinballX
// All the roms are included from the vpinmame 3.0 release
// There should be no need to alter the section below
[romfind]
 
Do all of the games in statistics.ini have the same value for rom?
 
The way it works is that pinballx looks at a window that is started via vpinmame. Then in pinemhi.ini it looks for that name and then you also have the romname.
There is no way to do that manually i think.
 
------edit-----
I do notice that it is system 6 you are using instead of the normal one for visual pinball.
Is there  a reason for choosing system 6 instead of visual pinball? ...maybe older version of visual pinball on that one? .....you could try to play one of these games perhaps to see if that does work

I am pretty convinced this is why it doesn't work....because pinballx doesn't think it's visual pinball it doesn't fire the program to find the rom..

Edited by DnaDisturber, 07 April 2018 - 05:45 AM.

Author of PINemHi & PINemHi Leaderboard........
Website : www.pinemhi.com (to see all hiscores being made and the challenges)

 


#15 gpstevens

gpstevens

    Hobbyist

  • Platinum Supporter
  • 42 posts
  • Location:Utah

  • Flag: United States of America

  • Favorite Pinball: Whirlwind, POTC, Eight Ball Deluxe, BOP, Sorcerer

Posted 07 April 2018 - 08:33 AM

I'm not sure what is going on either. But I can say that all my tables run just fine in PinballX. I have configured PinballX to work with a variety of tables including:  VP9, VP9.91, VP10, FP, FX, and Pinball Arcade.  When I first set up my cab, I used the initial Visual Pinball type in PinballX for VP9 tables. Later, I added VP991 when most tables were beginning to convert to using it.  Later, I added VPX when it came out last year.  So my System 6 area in PinballX happens to be assigned to my VPX tables which I have configured to be Visual Pinball tables.

 

I checked my version of PINemHI and this is what is showing in the top portion of the file. It seems to be the latest version...

 

[paths]
VP=C:\Program Files (x86)\Visual Pinball\VPinMame\nvram\
FP=C:\Games\Future Pinball\fpRAM\
 
[options]
// Set these to 1 if you want to see them in your output - 1 means its on , 0 means its off
replays=1
hiscores=1
buyins=1
 
// This section is for the conversion of the pretty-romname to romname.nv
// For use with frontend Hyperpin using FPlaunch or PinballX
// All the roms are included from the vpinmame 3.0 release
// There should be no need to alter the section below
[romfind]

 

Looking closer at my statistics.ini file, I do notice that all of my Visual Pinball tables (VP9, VP991, VPX, VPpm5, etc.) are all showing the rom=pinball line, except for a few tables I have recently loaded including: Gladiators, Flash, Meteor, and Black Pyramid.  I don't know why these four tables are showing the proper rom name in the statistics.ini file. I did not load them any different than I have all my other tables. I have added other tables recently (mostly VPX tables) and they are all showing as rom=pinball in the statistics file.

 

-------

 

I was able to play a few tables that are assigned to the initial Visual Pinball area in PinballX and they seem to create records in your leaderboard log, but the logfile shows an error by saying rom name of "pinball" is not supported by pinemhi.  If you recall, "pinball" was the default value assigned to all the ROM= lines in the statistics log file. So still an issue there.  I did notice that all my other VP tables that I have tied to System 4, 5, or 6  aren't registering in the leadboard log.  Could it be that PINemHI is only looking at the first group of Visual Pinball tables in PinballX and not the other optional areas that PinballX allows for other versions of Visual Pinball Tables?

 

-------

 

I tried one of the tables that actually found the ROM name (the table was Flash). I got a high score, but it seems it didn't register in the leaderboard log because it was under my System 6 tables. It is getting late here, but tomorrow I'll may try reconfiguring the PinballX initial Visual Pinball area to run vpinballx.exe and then try and run the Flash table over there to see if it shows up on the leaderboard log.  Maybe that will help troubleshoot things a bit more.

 

The whole thing is a bit puzzling to me.


Edited by gpstevens, 07 April 2018 - 08:41 AM.


#16 DnaDisturber

DnaDisturber

    Pinball Fan

  • VIP
  • 775 posts
  • Location:Hiscore Hill

  • Flag: Netherlands

  • Favorite Pinball: Monster Bash

Posted 07 April 2018 - 01:03 PM

If you try one of the four that do put the rom in statistics.ini then you propably want to try it with blak pyramid.
As this one is on pinemhi leaderboard and the others are not.

Don't know if it is supposed to work on the system ones....i will try that out and see what it does.
If the rom still keeps giving pinball in statistics.ini you could also try and post a question about it in the pinballx forum.
Perhaps someone there knows the answer. Tom Speirs is always pretty helpful.

Author of PINemHi & PINemHi Leaderboard........
Website : www.pinemhi.com (to see all hiscores being made and the challenges)

 


#17 gpstevens

gpstevens

    Hobbyist

  • Platinum Supporter
  • 42 posts
  • Location:Utah

  • Flag: United States of America

  • Favorite Pinball: Whirlwind, POTC, Eight Ball Deluxe, BOP, Sorcerer

Posted 07 April 2018 - 08:09 PM

I discovered quite a bit last night. I was successful in getting a score posted to the leaderboard playing Black Pyramid. My problem is definitely related to PBX not recognizing the ROM name when it runs. I have proven this now. I have also discoved that the leaderboard plugin only works when a table is in the default Visual Pinball system type within PBX.  It does NOT recognize VP tables that might be configured using the "Other Systems" feature of PBX. For example, I use System6 to run my Visual Pinball X tables and have it configured to execute vpinballx.com.  I am not sure how other configure PinballX, but I was led to believe that the best way to run multiple versions of VP tables was to set them up in PinballX using the "Other Systems" feature so I can direct those tables to run the appropriate .exe file (vpinball.exe vs vpinball991.exe vs vpinballx.exe.

 

Is there a way to modify your leaderboard plug-in to recognize the "Other System" feature in PBX?  Tom has set it up so that when you configure "Other Systems", there is a System Type variable that can be set to Visual Pinball, Future Pinball, or Custom.  Visual Pinball configurations use System Type = 1.  So one solution might be that instead of just looking in the default "Visual Pinball" system type for tables, if you could search for "Other Systems" that have the System Type variable set to 1, I think that might work?  Here is a snippit from my PinballX.ini file for how the System Type variable is being used...

 

[System_4]
Name=Visual Pinball 991
Enabled=True
SystemType=1
WorkingPath=C:\Program Files (x86)\Visual Pinball
TablePath=C:\Program Files (x86)\Visual Pinball\Tables
Executable=Vpinball991.exe
NVRAMPath=C:\Program Files (x86)\Visual Pinball\VPinMame\nvram
Parameters=RunWait, /STAYINRAM /play -"[TABLEPATH]\[TABLEFILE]"
LaunchBeforeEnabled=False
LaunchBeforeWorkingPath=
LaunchBeforeExecutable=notepad.exe
LaunchBeforeWaitForExit=True
LaunchBeforeHideWindow=False
LaunchAfterEnabled=False
LaunchAfterWorkingPath=
LaunchAfterExecutable=notepad.exe
LaunchAfterWaitForExit=True
LaunchAfterHideWindow=False
[System_5]
Name=VP Physmod5
Enabled=True
SystemType=1
WorkingPath=C:\Program Files (x86)\Visual Pinball
TablePath=C:\Program Files (x86)\Visual Pinball\Tables
Executable=VP_physmod5.exe
Parameters=RunWait, /STAYINRAM /play -"[TABLEPATH]\[TABLEFILE]"
LaunchBeforeExecutable=
LaunchAfterExecutable=
[System_6]
Name=Visual Pinball X
Enabled=True
SystemType=1
WorkingPath=C:\Program Files (x86)\Visual Pinball
TablePath=C:\Program Files (x86)\Visual Pinball\Tables
Executable=VPinballX.exe
Parameters=RunWait, /STAYINRAM /play -"[TABLEPATH]\[TABLEFILE]"
LaunchBeforeEnabled=False
LaunchAfterEnabled=False
LaunchBeforeExecutable=
LaunchAfterExecutable=

  

 

I have posted a question to Tom over a PinballX forum as to why PBX is not recognizing my ROM names.  I'll keep  you posted on what I find out.


I just got a response from Tom. Here is what he says.  

 

PinballX gets the rom name to match from PinEmHi.ini. Take a look at the file and see what has changed.

 

Does this make sense? Suggestions on what to try next?



#18 DnaDisturber

DnaDisturber

    Pinball Fan

  • VIP
  • 775 posts
  • Location:Hiscore Hill

  • Flag: Netherlands

  • Favorite Pinball: Monster Bash

Posted 08 April 2018 - 06:19 AM

I tried it myself setting up system 6 to run vpx

See attachment for screenshot

Attached File  system6.png   18.27KB   5 downloads

 

I deleted the game in statistics.ini to be sure to test it well

After that i ran pinballx

In statistics.ini after playing:

[VisualPinball_SpiderMan_10]
description=Spider-Man
lastplayed=8-4-2018 07:41:12
timesplayed=2
rom=sman_261
secondsplayed=142
highscore_1=SSR|150000000
highscore_2=LFS|120000000
highscore_3=J R|90000000

 

The score is submitted properly (i do notice that it says visual pinball instead of system6 , didn't set the variable as you did in config ?!?)

 

This is how it is in the config file of pinballx:

[System_6]
Name=VPX
WorkingPath=D:\Visual Pinball
TablePath=D:\Visual Pinball\Tables
Executable=VPinballX.exe
Parameters=/play -"[TABLEPATH]\[TABLEFILE]"
 

It all seems to work fine on this end, even when using sytem6 .

 

 

The thing that Tom said PinballX gets the rom name to match from PinEmHi.ini. Take a look at the file and see what has changed.

Those are the pretty romnames to romnames.nv section in pinemhi.ini

If the pretty romname doesn't match with the name of the window that vpinmame opens it cannot find the rom.....that should be ok as long as you didn't edit in that section.

I took all the names from vpinmame 3.0 so they should match properly (it works on my systems)

 

 

Didn't see the visual pinball setting in your pinballx config , i'm curious if this line is in there:

NVRAMPath=C:\Program Files (x86)\Visual Pinball\VPinMame\nvram

are the games that work all on the visual pinball 991 ?

As that line is in there

 

Could probably also be that the games that do work were already in statistics.ini with the rom and therefore still work....

The upside is that it probably works if you add the romname manually to statistics.ini for the games but that is rather time-consuming and it shouldn't be necessary

 

So the next step should be to see if it works to put the nvram  line in the other systems and visual pinball if it isn't in yet.

You could also try adding the rom manually for instance on attack from mars in statistics.ini and see if it works

also if you were already planning to do that upgrade pinballx and see if that solves it ( you may have to overwrite the pinemhi.exe and pinemhi.ini after the new version is installed , if it's the old version)


Edited by DnaDisturber, 08 April 2018 - 06:22 AM.

Author of PINemHi & PINemHi Leaderboard........
Website : www.pinemhi.com (to see all hiscores being made and the challenges)

 


#19 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 08 April 2018 - 11:19 AM

trying to make a little program for my setup that will display the high score on my topper.  Its should be very simple, but I'm having some trouble.

in vb.net

 

 Dim myApp As String
        Dim myArgs As String
 
        myApp = "C:\Visual Pinball\PINemHi\pinemhi.exe"
        myArgs = "taf_l7.nv"
 
        Dim myProcess As New Process()
        Dim myStartInfo As New ProcessStartInfo(myApp, myArgs)
 
        myStartInfo.UseShellExecute = False
 
        myStartInfo.RedirectStandardOutput = True
        myStartInfo.RedirectStandardError = True
        myProcess.StartInfo = myStartInfo
        myProcess.Start()
 
        Dim myOutput As String
 
        Using myStreamReader As System.IO.StreamReader = myProcess.StandardOutput
            myOutput = myStreamReader.ReadToEnd()
        End Using
        MsgBox("out=" & myOutput)
 
        Using myStreamReader As System.IO.StreamReader = myProcess.StandardError
            myOutput = myStreamReader.ReadToEnd()
        End Using
        MsgBox("err=" & myOutput)
 
 
gives me an error with conversion of string to integer or something like that.  Very strange.  Can you help me out 
 
I can get it to work with AHK calling a batch file that does it, just would like to simplify my program to not use a batch, ahk & myprogram
 
I think its your parsing of the command line parameters, but then again I don't know

Edited by Slydog43, 08 April 2018 - 12:03 PM.


#20 DnaDisturber

DnaDisturber

    Pinball Fan

  • VIP
  • 775 posts
  • Location:Hiscore Hill

  • Flag: Netherlands

  • Favorite Pinball: Monster Bash

Posted 08 April 2018 - 01:55 PM

I'm guessing it has something to do with not finding pinemhi.ini with running it like this.

It expects it to be in the same directory but when you run it like that your workingdirectory might not be right one.

So if you set workingdirectory to where pinemhi.exe is located it might do the trick.

Let me know if that works for you. :hmm:

 

Perhaps there is also another option. The hiscores are being written in a txt file when you are using pinballx

directory high scores , dir Visual pinball

 

The output is written to these textfiles after exiting a game in pinballx. Pinballx runs pinemhi after exiting game.

So you don't really need to run pinemhi again to get the latest one, just put the contents of the textfile into a variable

The text files have the tablename as name btw

 

But that's only if you use pinballx of course....


Author of PINemHi & PINemHi Leaderboard........
Website : www.pinemhi.com (to see all hiscores being made and the challenges)

 






Also tagged with one or more of these keywords: PINemHi, hiscores, stern roms