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: ROM filtering tool needed  (Read 962 times)

0 Members and 1 Guest are viewing this topic.

Rip

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 234
  • Last login:September 26, 2008, 05:28:16 pm
  • Product of the 80s
    • Curret lineup
ROM filtering tool needed
« on: May 09, 2006, 01:11:19 pm »
I have just completed a vertical 1 joy, 3 button cab.  The machine has minimal specs (PII 500).

I am looking for a tool that'll generate a rom list (for use in the Game Launcher front end) filtered based on specific criteria

- 1989 or older
- 8 way joy
- 0,1,2 or 3 buttons
- no spinner or trackball

Ideally, in addition to the rom list, the tool would also copy the roms (and dependant parent roms etc) from a complete set directory to a subset directory (this is ideal but not necessary)

Any ideas or tips?

Thanks,
John
« Last Edit: May 09, 2006, 02:10:53 pm by jripley »
Recreating the 80s, one cab at a time.
Gallery

Pi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 108
  • Last login:March 08, 2007, 03:46:13 am
  • From Jupiter with pride
    • CAESAR
Re: ROM filtering tool needed
« Reply #1 on: May 09, 2006, 03:27:22 pm »
Uh, MSieve is real close to that. You could use one of the list formats to build a .bat to do the copy/move thing, but it doesn't use the year. I am not planning in updating it anytime soon, as I'm quite burned from programming for now.

If you can filter out the games by year from an XML output, with some other method (I'm thinking in a smart use of DatUtil and a spreadsheet?) then you can use MSieve for the rest.

Also note that the control output in the XML is incomplete. For controllers, it only lists the first. So a game could use a joystick and a dial, but MAME only lists a joystick.
Pictures in the dark I see - Morpheus comes to me.

Rip

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 234
  • Last login:September 26, 2008, 05:28:16 pm
  • Product of the 80s
    • Curret lineup
Re: ROM filtering tool needed
« Reply #2 on: May 09, 2006, 08:08:58 pm »
Uh, MSieve is real close to that. You could use one of the list formats to build a .bat to do the copy/move thing, but it doesn't use the year. I am not planning in updating it anytime soon, as I'm quite burned from programming for now.

If you can filter out the games by year from an XML output, with some other method (I'm thinking in a smart use of DatUtil and a spreadsheet?) then you can use MSieve for the rest.

Also note that the control output in the XML is incomplete. For controllers, it only lists the first. So a game could use a joystick and a dial, but MAME only lists a joystick.

Sweet.  Just what I need.

I've been a Borland tools developer for 14 years.  I did Delphi development from 1992 to 1999.  I still fire up D5 every now and then to make some minor changes to an app we still sell.  It was a great a language but never quite got the mindshare it deserved.  I saw the writing on the wall in 1999 and jumped over to Java.

Thanks,
John
Recreating the 80s, one cab at a time.
Gallery

Rip

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 234
  • Last login:September 26, 2008, 05:28:16 pm
  • Product of the 80s
    • Curret lineup
Re: ROM filtering tool needed
« Reply #3 on: May 10, 2006, 01:55:40 am »
FWIW, I decided to use off-the-shelf XQL (XML Query Language) tools to parse and process mame's XML game list.  The following XQL query did the trick:

<html>
<ul>
{
for $x in doc("games.xml")/mame/game
where
$x/video/@orientation='vertical' and
$x/year<=1989 and
string-length($x/@cloneof)=0 and
(
  $x/input/@control='joy2way' or
  $x/input/@control='joy4way' or
  $x/input/@control='joy8way'
) and
(
  $x/input/@buttons<=3 or
  string-length($x/@buttons)=0
)
order by $x/description
return <li>{data($x/@name)}</li>
}
</ul>
</html>

This gives me all original, vertical, joystick + 0,1,2,3 buttons games that were made prior to 1990
Recreating the 80s, one cab at a time.
Gallery