Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: ListGen WIP  (Read 5483 times)

0 Members and 1 Guest are viewing this topic.

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
ListGen WIP
« on: December 01, 2004, 11:52:51 am »
Hello,

I am working on a program which will generate MAME game lists for front ends.

- It will support old versions of MAME (pre-XML) as well as the more recent versions.

- Only unique game names will be displayed, ie. only one "Pac-Man". Most front ends either generate a list with many different Pac-Man games or none, if clones are filtered out.

- No extra (version ZZZ with XX hardware) type messages will be in the game name.

- If there is a "US" version of the game name then that will be the game in the list, even if the US version is a clone.

- Games with specific words in the game name can be filtered out, "Mahjong" or "Quiz" for example.

- Games with specific words in the catver.ini can be filtered out, "Mature" for example.

- Specific games can be filtered out, "PuckMan" for example. Specific games can also be added.

- The program can search your rom path and filter out games that aren't in it.

I'm writing this program for my own use, but if there is any interest I'll release it to the public. If there are any feature suggestions from the peanut gallery, I'm all ears.

Currently I plan to generate lists for use with the front ends which I use, namely MAMEWah, Dragon King, GameLauncher, and ArcadePic, as well as my own front end, but I can add other front ends if there is demand.

Regards,
Buddabing






I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

PacManFan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:December 06, 2005, 12:18:56 pm
    • Kymaera Home Page
Re: ListGen WIP
« Reply #1 on: December 01, 2004, 11:59:44 am »
Buddabing,
Can you add in support for Kymaera as well?

-PMF
All Hail Smezznar! The Giant purple centipede of Omnicron 5. Regail him with your odiferous offerings of onion powder!

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: ListGen WIP
« Reply #2 on: December 01, 2004, 12:11:22 pm »
Buddabing,
Can you add in support for Kymaera as well?

-PMF

Whoops, I forgot to list it, support for Kymaera was in my list already.
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: ListGen WIP
« Reply #3 on: December 02, 2004, 11:39:38 am »
Sounds cool :)  If you need any help with the MW .lst format let me know - though I expect you've already figured it out!

PacManFan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:December 06, 2005, 12:18:56 pm
    • Kymaera Home Page
Re: ListGen WIP
« Reply #4 on: December 02, 2004, 12:34:13 pm »
Buddabing,
What language are you using to code this in? If it's c++, You can use some code from the KymaeraConfig program. It's got a really nice filtering system (inclusion/exclusion) that can be easily expanded upon.

-PMF
All Hail Smezznar! The Giant purple centipede of Omnicron 5. Regail him with your odiferous offerings of onion powder!

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: ListGen WIP
« Reply #5 on: December 02, 2004, 12:50:02 pm »
Buddabing,
What language are you using to code this in? If it's c++, You can use some code from the KymaeraConfig program. It's got a really nice filtering system (inclusion/exclusion) that can be easily expanded upon.

-PMF

Plain C, like MAME, compiled with MinGW.

I'll look at your source, thanks for the tip.
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re: ListGen WIP
« Reply #6 on: December 02, 2004, 01:23:29 pm »
Sounds cool

I started writing something similar that will allow you to move roms around (along with images ect) to game specific directories.  (you can specify all games based on anything from the catver or the listxml, then add/remove any by hand, then move then from one directory or another.  Also was looking at a synchronized function (so you can have all new capcom games automatically moved into a capcom directory, all 4way games into another, ect...

But yours would work directly with JFront right now...  Since I have other projects, I might wait before finishing it and see if I care.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: ListGen WIP
« Reply #7 on: December 02, 2004, 02:21:50 pm »
sounds interesting

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: ListGen WIP
« Reply #8 on: December 02, 2004, 03:35:47 pm »
Do you plan on making it cross platform or not?

I ask, because if not, if you plan on for windows only, might I suggest doing such a thing in access and c++ or VB.

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: ListGen WIP
« Reply #9 on: December 02, 2004, 04:16:11 pm »
Do you plan on making it cross platform or not?

I ask, because if not, if you plan on for windows only, might I suggest doing such a thing in access and c++ or VB.
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: ListGen WIP
« Reply #10 on: December 02, 2004, 04:27:09 pm »
Do you plan on making it cross platform or not?

I ask, because if not, if you plan on for windows only, might I suggest doing such a thing in access and c++ or VB.  All those features you listed, a well setup DB and queries can do all the work for you.  I should know, my flash FE I started used an access db to do all the work.  I did pretty much everything you listed and it only took a day or two to setup.

I'm planning on making it cross-platform: Windows, DOS, and Linux for sure. The most recent Mac I have is 68040-based, so Mac is out.

That's a good idea about the database, though. It would work well since speed is not an issue here.

  Definitely.. or SQLite.

-Steve

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: ListGen WIP
« Reply #11 on: December 02, 2004, 09:44:03 pm »
Actually, I ws thinking of a DB just for the speed and ease of use.  But you'd need something that could be run on anyone's computer that is simple, not MySQL.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: ListGen WIP
« Reply #12 on: December 02, 2004, 10:38:40 pm »
Actually, I ws thinking of a DB just for the speed and ease of use.  But you'd need something that could be run on anyone's computer that is simple, not MySQL.

yeah, one of the jukebox softwares is MyAQL based or some derivative thereof and is a major pain to setup even though the author did as much as possible to automate the process and give step by step instructions.

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: ListGen WIP
« Reply #13 on: December 03, 2004, 07:23:03 am »
<wigglefingers>SQLite</wigglefingers>.

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re: ListGen WIP
« Reply #14 on: December 03, 2004, 08:58:24 am »
This would be great, I was just thinking this week that this is a needed utility that does not seem to be available... I can't do this kind of thing myself... I use a fairly cumbersome spreadsheet which helps but is far from a fully automated solution.

Seems to me that nplayer support might be nice as well as if we could show a preference for games for which controls.dat information is available.

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: ListGen WIP
« Reply #15 on: December 03, 2004, 10:02:19 am »
Do you plan on making it cross platform or not?

I ask, because if not, if you plan on for windows only, might I suggest doing such a thing in access and c++ or VB.
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: ListGen WIP
« Reply #16 on: December 03, 2004, 10:06:59 am »
Plain text output....

After years of trial and error )p( and myself have determined that it's really the only way to go.
« Last Edit: December 03, 2004, 10:12:31 am by Howard_Casto »

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: ListGen WIP
« Reply #17 on: December 03, 2004, 10:14:13 am »
As for nplayers.ini it's a redundant dat that has no purpose, literally all of it's data can be extracted from the listinfo file if you know the formula. 

  E=MC2?

-S

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: ListGen WIP
« Reply #18 on: December 03, 2004, 11:41:15 am »
heh... no.  The only new data that the nplayers.ini adds is weather you take turns or not. 

This data isn't particularly useful by itself imho and anyway it can be guessed upon with 98% accuracy.  If the game was made before 1988 and it's two player then it's alternating, otherwise it's simultaneous gameplay.  The only exceptions are pong (not in mame)  tank8 and sprint8, and trivia two games. Since those games have the number of players in the title, it should be obvious that their gimmick is true multi-player.  It's not 100% accurate, but as I said, it's not a crucial bit of data (you'll find out immediately upon game launch)  and I personally feel that it's team members should direct their hard work elsewhere. 

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: ListGen WIP
« Reply #19 on: December 03, 2004, 12:13:07 pm »
Plain text output....

After years of trial and error )p( and myself have determined that it's really the only way to go.
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: ListGen WIP
« Reply #20 on: December 04, 2004, 07:02:10 am »
Since you have ignored every single one of my suggestions despite the fact that I am the second-most senior authority on the subject I can only assume that you aren't willing to listen.  Never-the-less, like any good "father" I'll repeat my lecture hoping the kiddies will catch on.  ;)

All of the rationalizations that you posted are wrong.  I don't mean that the ideas are bad, it's just that :

For all games (except for some games made after 1991 and  few random exceptions based upon the mame devs mood when they made the entry) the Term "US" is not in the game name.  That means that your filter simply won't work for at least 50% of the games in mame.  Heck even the example we have been using, Pac-Man, doesn't have a rom revision with a "US" in the title and the parent is the japaneese puckman. 

Can you get close?  Sure.  But so can built in filters in front-ends that you can manually tweak for the games it doesn't work on, so what exactly is the point?

Outputting to plain text is good... but if you use any database engine to generate then dlls have to be installed on the users computer to run the program, which leads to various compatability problems.  (find me a database engine that works well, and installs well and easily on all versions of linux, windows and dos and I'll take it back) Again, k.i.s.s.  You can easily filter using straight code. 

How do multiple gamelists have anything to do with filtering?  If the front end is properly coded then you should easily be able to make a single gamelist with the clones filtered off, the front end should be able to turnicate names with a simple setting, and you should be able to make exceptions for special cases.  (like manually removing puckman and adding pacman in it's place).  If your front end of choice can't do that, then may I suggest you start using a better one.  :)

Why am I making a federal case out of this?  Simple.... just because you don't play the japaneese clones 99% of the time doesn't mean that you don't need the option to occasionally manually add a few.  An example is marvel vs capcom. (if it's the wrong sequel don't kill me fanboys)  In the japaneese version there is a special character not available in the Us or world versions.  Also sometimes the Us version doesn't work while the other regions do.  And on these rare occasions in which you want both parents and clones to be visible, you'll need the data in those parantheese that you filter off the game name so you can tell them apart. 

Remember.... if you want to make a public utility that is actually useful, you can't base the type of filtering it does on what you find useful, else it'll only be helpful to yourself and maybe two other people.  So again, I repeat.. filtering at the masterlist level is a bad idea. 

I think your idea has merit.... it's just the direction your going towards is the wrong one.   

Making a program that pre-filters lists one way is a bad idea.  If you need it personally then great, but it's not a particularly useful utility to the masses. I've made plenty of these little program-ettes, I just don't announce them on the software board as a utility and they are quietly added to my website.  :)

Making a more generic program that filters lists any way, depending upon the variables the user gives is a great idea.  You could even add quick templates to filter the lists in the way you suggested.  I see nothing wrong with that.  Front ends could be designed to call it via the command line and then fe developers could completely ignore list generation and leave it up to you. 

Tampering with the data is still a big no-no though, especially if the front-end "broadcasts" the data to a companion app.  Garbage in, garbage out.  The real key is getting the front end to display it the way you wish, not to fudge the data itself. 

A good example of this are these people who write batch programs to rename all of their console roms to something other than the goodtools naming conventions.  Way to go, now you have to manually rename all of your console artwork and when you download new artwork you have to mess with it yet again.  The real solution is the front-end developer allowing the user to hide part of the filename when it's displayed in a gamelist.

I'm sure your response will be along the lines of "some front ends don't support these features you mentioned".  Yes that's very true; you shouldn't use those front ends then.  I mean there are plenty of advanced windows front ends and I believe that Kymaera works on linux and dos now, and since both options are generally skinnable (meaning you can still make it look like another fe if you really want to)  I can't see any real point in using a simplier fe, unless you want a really simple setup, in which case you probably aren't concerned with any filtering what-so-ever. 

I'm just trying to put some logic behind your intentions.  It's my understanding that you are trying to make a nice turn key solution to filter the games in the way you mentioned for users that don't want to muck around with complex filters and gamelist generators.  The only problem is, as I've shown with my examples, it's quite impossible (or at least impractical) to filter the lists the way you want them filtered automatically, with the "error" percentage low enough to where it's acceptable to most people.  So that leaves manual tweaking, which means users have to muck around with complex filters and your gamelist generator.  Logic dicates that the specific goals you have set for yourself can't currently be met.  Unfortunately the blame lies in lack of data.  There isn't reliable, readily available, data for the fields to wish to sort by.  It's as simple as that. 

I'm sure this will be looked upon as a "flame post".  It's not, if I didn't respect what you were trying to do then I would have just said "it sucks" and left. 


Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: ListGen WIP
« Reply #21 on: December 04, 2004, 02:32:14 pm »
Howard,

I respect your opinions and I appreciate your taking the time it takes for you to express them.

When it comes to programming philosophy, you and I have differing viewpoints on many topics. Neither of us are right or wrong, just different.

Some examples:
- I want a program to work out of the box, you want people to have to tweak it to their own specifications.
- I want cross-platform capability, you would rather spend your time optimizing your code for the high percentage of Windows users.
- My projects are completely open source and I include source to everything. You don't.
- I want programs to be fast and run on low-end machines. You would rather have users spend a few extra dollars on a better machine.

My cabinet is intended for use by family members and guests. As such, I want it simple. I want one game list and I don't want all the duplicates.

Quote
Why am I making a federal case out of this?  Simple.... just because you don't play the japaneese clones 99% of the time doesn't mean that you don't need the option to occasionally manually add a few.  An example is marvel vs capcom. (if it's the wrong sequel don't kill me fanboys)  In the japaneese version there is a special character not available in the Us or world versions.  Also sometimes the Us version doesn't work while the other regions do.  And on these rare occasions in which you want both parents and clones to be visible, you'll need the data in those parantheese that you filter off the game name so you can tell them apart.

Guests at my house don't care one bit about that. There will be a way to add specific games for the BYOAC community members who use this utility.

The "U.S. version" filter was suggested to me by someone on this board, it wasn't my idea. All it does is override any other version of the exact same game name with the U.S. version. I don't think it applies to more than a few hundred games.

I haven't ignored all your suggestions. I am not putting the games into a database. In fact, I've come up with something better. The program will assemble the information about the games from the listxml and catver files, filter them as the user wants, then output the list according to a predefined template. That way, any front end at all can be supported.

You are certainly right about DLL Hell. I'm working on another project, a GUI panel editor for CPMaker, and it is a mess to get the DLLs right. The open source community is so fragmented, and there are so many versions of everything floating around, that it takes a lot of effort to assemble all the DLLs required.

I am indeed working on a front end. It is very very simple, and is loosely based on GameLauncher. It is designed to be cross-platform compatible and based on the curses library. As such it will be very fast and runnable on low-end machines. It will have an integrated game list with one list for all games. It will support MAME, Daphne, Zinc and Vantage, and will pick the appropriate emulator to run if more than one emulator supports a specific game. It will run all versions of MAME, since earlier versions run better on low-end machines.

"Seniority" means very little to me. I have been programming longer than you have been alive. That fact is irrelevant. I have been programming longer than John Carmack, too. My point is that I think everyone can make a suggestion or a contribution, and that everyone should be receptive to new ideas.

Regards,
Buddabing

PS Your remarks about "Dragonball Z underoos" were hilarious. Also, spelling mistakes in posts on message boards don't matter, but you should strive to have good spelling in your published projects.
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:January 13, 2025, 08:48:40 am
  • penguin poker
    • StickFreaks
Re: ListGen WIP
« Reply #22 on: December 04, 2004, 08:58:21 pm »
- If there is a "US" version of the game name then that will be the game in the list, even if the US version is a clone.

If there are any feature suggestions from the peanut gallery, I'm all ears.

All I ask is that if you do go public with this, the feature above is something user-configurable.  Where I am the games are either "Asia" or "World", not "US".  I'm sure the same can be said for our European buddies with their versions.  Anything that spat out US-only titles wouldn't be useful to a few of us non-Americans.

Perhaps even the ability to set a level of priority?  Some games are Japanese/US only, so for me my preferences would go something like World/Asia/US/Euro/Japan to make sure I at least get the english version first.

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re: ListGen WIP
« Reply #23 on: December 08, 2004, 11:51:00 am »
One more thing I would love to see in this app is the ability to automate to some extent.. perhaps with batch files/command line, the regeneration of these lists when new versions of MAME are released.  It would be be great to only have to figure out the ideal criteria once for each list and basically just hit a button when it is time to refresh all the custom lists. 

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: ListGen WIP
« Reply #24 on: December 08, 2004, 01:51:22 pm »
Haven't read this for a while but I am still very interested.

I think some of the things Howard said are certainly valid in some cases, but as long as the program is fully configurable I don't think it matters - if you don't like the feature don't use it.

Personally I would be very happy if I could use this prog. to generate my custom lists for MW each time a new version of MAME comes out.  It would be easier for me than using MW itself since I pretty much use the same lists each time (but MW has the annoying 'feature' of losing the filter info when the main list is regenerated).

Eventually I will rewrite the MAMEWAH backend, which I hope will allow the user to pick which exactly info from -listxml / dat files (+ catver.ini, controls.dat etc.) is available to use.  Would the final output from this program be fully customisable?  That would be neat, for future-proofing for both existing and future FE's...

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
ui
« Reply #25 on: December 08, 2004, 04:44:06 pm »
I envision this thing as being a filter "engine". The engine would collect the data from whatever sources available (mame itself, controls.dat, catver.ini, and others), then filter it according to the user's provided exception list, then output it in the frontend's format.

The exception list would include and exclude different games based on its content.

If I want all 1-player trackball-only games I would have an exception file:
exclude all
include controls trackball
exclude nplayers 2
exclude nplayers 3
exclude nplayers 4

If I want to filter out pr0n games, mahjong, etc.
include all
exclude catver Mature
exclude catver Quiz
exclude catver Mahjong
exclude catver Unplayable

If I don't want Puckman:
include all
exclude rom puckman

The output of the program will be based on a template.

MAMEWah's template looks like:
ROMNAME
DESCRIPTION
YEAR
MANUFACTURER
CLONEOF

STARTCAPSCREEN
ORIENTATIONENDCAP
CTRLDESC
Status STARTCAPSTATUS
Color COLOR
Sound SOUNDENDCAP


The templates would include all crlfs and other field separators. The keywords would substitute in the appropriate field from the game data. STARTCAP and ENDCAP mean to start and end capitalization.

Different front ends use different fields. Some use "yes" instead of "Good". So that is a problem I'm trying to solve right now. Maybe sed scripts can be used.

MAMEWah has the easiest game list to generate so I'm using that for testing.
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

)p(

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 964
  • Last login:March 27, 2009, 03:38:15 am
  • We are the Galaxians...
    • Emulaxian:cabinet and frontend
Re: ListGen WIP
« Reply #26 on: December 09, 2004, 02:30:25 am »
I am with howard in so far as he points out that fe's that also parse this kind of information are more flexible when they apply these filters. Ie in 3darcade you can apply them when you generate a list. when the list gets loaded. or on the fly inside the fe.

But I also see advantages of a standalone app:
1. For more obscure info that would be fun to have but for an developer not really worth the time and effort to add it to their parsers. 
2. Just for the fun playing with filters in a nice gui. In that form what your trieng to do reminds me a lot of a expanded version of Sortinfo by Robert Palmqvist.
3. Exchange gamelists between fe's. People could exchange their favorites lists even if they use different fe's. Its always fun to see what other people actually play.

peter



Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: ListGen WIP
« Reply #27 on: December 09, 2004, 08:17:07 am »
2. Just for the fun playing with filters in a nice gui. In that form what your trieng to do reminds me a lot of a expanded version of Sortinfo by Robert Palmqvist.

This interests me in particular too.  I have gotten to like playing with things on my desktop before applying it to my cab.  This would be a nice way of doing it.  Good for verification of things too - I keep finding myself on my cab thinking 'why isn't [game] in this list?!'...

Looking good Buddabing :)

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: ListGen WIP
« Reply #28 on: December 14, 2004, 03:09:32 pm »
Update:

The filtering is now done with SQL. The user edits a file called filter.sql which contains a SELECT statement which does the filtering.

Some examples:
select * from gamedata where catver_category not like '%mature%';
select * from gamedata where catver_veradded < '.56';
select * from gamedata where control = 'trackball' and players ='1';

and so forth.

Besides the filtering, there are game selection options:
- optional unique game names
- optional truncated game names
- optionally include clones
- priority selectable on US, Euro, Japan, and World versions
- optionally include only the roms in the rompath.

All the SQL stuff is done with machine portable code, no DLLs are required. Thanks to screaming who gave me the link to SQLite.

I am probably going to create a version of this program which just does filtering. It will take a 'master list' as input and output a filtered list.

I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!