The NEW Build Your Own Arcade Controls

Front End Support => MaLa Frontend => Topic started by: kernelpanic on September 05, 2010, 12:00:55 pm

Title: Hi Score plugin?
Post by: kernelpanic on September 05, 2010, 12:00:55 pm
I read a few threads here where this idea was kicked around. That was a while back, so I'm just curious if anyone has mastered the idea of reading and displaying the hi score for a game when the game is highlighted in MaLa?

Title: Re: Hi Score plugin?
Post by: empardopo on September 05, 2010, 04:58:14 pm
It's a great idea!
Please share if you get the solution.

Greetings!
Title: Re: Hi Score plugin?
Post by: loadman on September 05, 2010, 07:25:25 pm
You would want to use the tools and be part of the HiToTest project right?

http://forum.arcadecontrols.com/index.php?topic=83614.0 (http://forum.arcadecontrols.com/index.php?topic=83614.0)
Title: Re: Hi Score plugin?
Post by: kernelpanic on September 05, 2010, 08:22:31 pm
you would want to Part of the HiToTest project right?

http://forum.arcadecontrols.com/index.php?topic=83614.0 (http://forum.arcadecontrols.com/index.php?topic=83614.0)

I dunno - let me read those 12 pages of posts - that's quite a sidetrack  :lol

my prelim look at the hiscore data is that the hi score is easily extracted from the files. I think getting it into MaLa for display is the tricky part.

I've downloaded the plugin SDK - BTW Loadman, the link on that page to download the stub app points to your desktop, not to a real file   :o

It's been 5 years since I used Delphi for anything, so who knows if I can even get around in it any more - and I have to find that set of CDs, lol.

If we could just write the score info into a %somevar% construct that the Layout Manager could pick up on, then this should be easy enough.

I'll be back after doing some reading/studying.
Title: Re: Hi Score plugin?
Post by: kernelpanic on September 06, 2010, 08:46:52 am
you would want to Part of the HiToTest project right?

http://forum.arcadecontrols.com/index.php?topic=83614.0 (http://forum.arcadecontrols.com/index.php?topic=83614.0)

I dunno - let me read those 12 pages of posts - that's quite a sidetrack  :lol


 :dizzy: wow, after reading all that - I really don't know  :dunno
Title: Re: Hi Score plugin?
Post by: empardopo on September 06, 2010, 10:43:55 am
Is it possible then to do?
Title: Re: Hi Score plugin?
Post by: kernelpanic on September 06, 2010, 11:40:58 am
Is it possible then to do?


Sure, anything is possible. Then you get to the question "is it worth the effort?"

I think there are 2 parts to this task of showing hi scores in the MaLa frontend:

1) obtaining the hi score info
2) getting MaLa to display it

task #1 is fairly straightforward and objective. The link that loadman gave us goes along way towards extracting the info from the files in the hi folder - no sense in reinventing the wheel. Some games only keep a single high score with no initials, Some keep scores with initials - some only the top 5, some the top 10, some keep 50, and I'm sure some don't even keep one, but I haven't encountered one yet.

task #2 OTOH is a bit more subjective - what I want to display may not be what you want to display and where/how I want it displayed may not match your expectations. Do you want a single high score? or the top 5? 10? with intials? Do you think it should be something you can plug into a layout? or should it be something that is accessible via the MaLa Info panel in much the same way the Histroy.dat info is shown?

I haven't figured out a way to get it into MaLa yet, but I'm real new to MaLa and having troubles locating detail instructions on all its capabilities. These forums help a lot - (it's a bit of a pain since the forum's search function requires the page to be refreshed when you click "back" after reading a topic)

I'm still trying to answer all those questions myself. Once I can answer them (for me), then I'm back to the question of "is it worth the effort?"



Title: Re: Hi Score plugin?
Post by: kernelpanic on September 06, 2010, 08:11:52 pm
ok, after further thoughts and discussions with family members, we've decided this is a non issue for us.

For us, choosing a game to play is not driven by what the current high score is, so we see no need to even continue down this path.

For us, attract videos, screen shots, history, etc - which we currently have in MaLa - is all we need.

Sorry to stir this pot again.  :-[
Title: Re: Hi Score plugin?
Post by: Fyrecrypts on September 06, 2010, 09:10:50 pm
I dunno - let me read those 12 pages of posts - that's quite a sidetrack  :lol

Yeah, it's getting to be quite the novel. I think only the first couple, and last couple pages are worthwhile. I try to update the first post when necessary to really explain what the project is all about at this point.

We've probably only got about 1/5 of the games in the hiscore.dat figured out in HiToText so we could use all the help we can get.

Anyway, glad to see it's an interesting project to other people anyway, it's been about 2 years now, and I don't really see an end in sight. =)
Title: Re: Hi Score plugin?
Post by: loadman on September 06, 2010, 11:52:59 pm
I have may still do something when I have time....

Open to ideas
Title: Re: Hi Score plugin?
Post by: empardopo on September 07, 2010, 08:57:55 am
Loadman,

could MALA read data from a plain text file, called hiscoremala.txt for example? The file would have the following structure:
< namerom >;< record >
For example:
< aerofgt >;< 123000 >
< kungfum >;< 85000 >

These records could be placed in the layouts manually by editing the previous file or using a plugin. While someone makes a plugin, the file may manually edited!

The plugin would extract the records and then write the file hiscoremala.txt.

It's only my idea!

Greetings!
Title: Re: Hi Score plugin?
Post by: loadman on September 07, 2010, 08:22:02 pm
Loadman,

could MALA read data from a plain text file, called hiscoremala.txt for example? The file would have the following structure:
< namerom >;< record >
For example:
< aerofgt >;< 123000 >
< kungfum >;< 85000 >

These records could be placed in the layouts manually by editing the previous file or using a plugin. While someone makes a plugin, the file may manually edited!

The plugin would extract the records and then write the file hiscoremala.txt.

It's only my idea!

Greetings!

I like the idea of a PLugin doing the work to update the text file.

MaLa would read (nativley not a plug) the data if the file existed and the data was there for that game.
Title: Re: Hi Score plugin?
Post by: kernelpanic on September 07, 2010, 09:57:52 pm
my apologies - I have managed to split my thoughts/work on this idea between two threads.

I like the idea of hi scores just being another "info window" - see my post about Info Window issues for more.
Title: Re: Hi Score plugin?
Post by: empardopo on September 08, 2010, 05:18:21 am
I think both ideas could be compatible.
If you want to see your record as you add to your layout, otherwise no! It's easy!

Greetings!
Title: Re: Hi Score plugin?
Post by: loadman on October 16, 2010, 03:09:55 am
I've downloaded the plugin SDK - BTW Loadman, the link on that page to download the stub app points to your desktop, not to a real file   :o

Fixed  ;D

And for others. Hi score support was added to MaLa (nativley not as a plugin). MaLa will now run 'hi.bat' on game quit (if present in the subfolder hi)

Refer to this other thread:

http://forum.arcadecontrols.com/index.php?topic=105664.msg1119973#msg1119973 (http://forum.arcadecontrols.com/index.php?topic=105664.msg1119973#msg1119973)