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: Monitor Orientation Filter?  (Read 3437 times)

0 Members and 1 Guest are viewing this topic.

FrizzleFried

  • no one listens to me anyway.
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5145
  • Last login:March 07, 2025, 10:44:09 am
    • Idaho Garagecade
Monitor Orientation Filter?
« on: December 19, 2006, 02:44:50 am »
The current version of MAMEWAH (v1.62b12) has a broken filter.  Unfortunately it is the MONITOR ORIENTATION filter...so I can't filter out the horizontal games from my vertical cabinet via the MAMEWAH lists.

Does someone know how I can filter out horizontal ROMS from the cabinet and just not even load them on that cab?

Thanks!
Visit my arcade blog at: www.idahogaragecade.com (Updated 10-28-21)

FrizzleFried

  • no one listens to me anyway.
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5145
  • Last login:March 07, 2025, 10:44:09 am
    • Idaho Garagecade
Re: Monitor Orientation Filter?
« Reply #1 on: December 19, 2006, 02:45:22 pm »
No love?
Visit my arcade blog at: www.idahogaragecade.com (Updated 10-28-21)

Havok

  • Keeper of the __Blue_Stars___
  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4530
  • Last login:June 22, 2025, 02:32:40 am
  • Insufficient facts always invite danger.
Re: Monitor Orientation Filter?
« Reply #2 on: December 19, 2006, 05:23:54 pm »

FrizzleFried

  • no one listens to me anyway.
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5145
  • Last login:March 07, 2025, 10:44:09 am
    • Idaho Garagecade
Re: Monitor Orientation Filter?
« Reply #3 on: December 19, 2006, 06:12:20 pm »
Havok...that only filters by category...not by orientation.

:-\

Thanks for trying though.

« Last Edit: December 19, 2006, 06:15:13 pm by FrizzleFried »
Visit my arcade blog at: www.idahogaragecade.com (Updated 10-28-21)

rockin_rick

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 495
  • Last login:May 27, 2017, 09:20:20 am
Re: Monitor Orientation Filter?
« Reply #4 on: December 19, 2006, 06:32:26 pm »
Perhaps some info in this post can be of help - http://forum.arcadecontrols.com/index.php?topic=55636.0

Perhaps you could post here what you ultimately did and how it worked out for you, as I'm sure others are interested (I know I am).

Rick
If I do not respond to your post in a timely manner, feel free to PM me.

Havok

  • Keeper of the __Blue_Stars___
  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4530
  • Last login:June 22, 2025, 02:32:40 am
  • Insufficient facts always invite danger.
Re: Monitor Orientation Filter?
« Reply #5 on: December 20, 2006, 03:59:03 am »
Havok...that only filters by category...not by orientation.

:-\

Thanks for trying though.



You think I am so easily defeated? Ha! Save the attached file, and rename the extension to .ini. Point to it in the ini file field of MCM, and enjoy!

FrizzleFried

  • no one listens to me anyway.
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5145
  • Last login:March 07, 2025, 10:44:09 am
    • Idaho Garagecade
Re: Monitor Orientation Filter?
« Reply #6 on: December 20, 2006, 12:12:08 pm »
How did you get/make that filter?   THANKS!   I should be able to delete all the horizontal games without issue now.

YOU ROCK!

EDIT: Yup...works kickass!   I'd love to know how you made the ini... next it may be time to remove the non-working....

THANKS HAVOK!


Rockin' Rick...I found my solution (or it found me actually).
« Last Edit: December 20, 2006, 12:38:48 pm by FrizzleFried »
Visit my arcade blog at: www.idahogaragecade.com (Updated 10-28-21)

Havok

  • Keeper of the __Blue_Stars___
  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4530
  • Last login:June 22, 2025, 02:32:40 am
  • Insufficient facts always invite danger.
Re: Monitor Orientation Filter?
« Reply #7 on: December 21, 2006, 10:59:15 am »
Hehe - ancient Chinese secret!

I generated the list by using Nop's utility from the thread that Rockin Rick posted, with a dash of Excel to throw in the attribute. I started to write my own, but had some problems with it and decided to check out Nop's. His utility doesn't work for non-working games, as the xml file is a little funky how they assign the runnable status to a game. But it works great for many of the characteristics that you can query for.

I'll keep you posted about the non-working games...


NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Monitor Orientation Filter?
« Reply #8 on: December 21, 2006, 03:38:16 pm »
>I started to write my own, but had some problems with it and decided to check out Nop's. His utility doesn't work for non-working games, as the xml file is a little funky how they assign the runnable status to a game. But it works great for many of the characteristics that you can query for.

Interesting.
Can you give me the details on what the xml file does for non-runable games? 
I'd be happy to add a -working or something if it can be isolated down to runable/non-runable in some obvious way, funky or not.

I hadn't noticed that there was an issue there, but then again, for my purposes, I was only trying to find vertical, 1button, 4way joystick games, and I'd imagine 99% of those are runable by now.  :)

-jeff!

Havok

  • Keeper of the __Blue_Stars___
  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4530
  • Last login:June 22, 2025, 02:32:40 am
  • Insufficient facts always invite danger.
Re: Monitor Orientation Filter?
« Reply #9 on: December 22, 2006, 12:52:33 pm »
Interesting.
Can you give me the details on what the xml file does for non-runable games? 
I'd be happy to add a -working or something if it can be isolated down to runable/non-runable in some obvious way, funky or not.

The runnable status is not contained within the <game name="x"> </game> section for some odd reason. Near the end of the file, if references each game that is not runnable, for example:

<game runnable="no" name="cpzn1" sourcefile="zn.c">
      <description>ZN1</description>
      <year>1995</year>
      <manufacturer>Sony/Capcom</manufacturer>
      <rom name="coh-1000c.353" size="524288" crc="50033af6" sha1="486d92ff6c7f1e54f8e0ef41cd9116eca0e10e1a" region="user1" offset="0"/>
   </game>

And then continues to list other not runnable games. It does not list all the games, so it appears that if one of these entries is not present for a particular game, Mame assumes the game is runnable.

While you are looking at modifying the program, could you add a switch to output the game description, instead of just the rom name?

Thanks!
 

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Monitor Orientation Filter?
« Reply #10 on: December 22, 2006, 07:06:52 pm »
Interesting.
Can you give me the details on what the xml file does for non-runable games? 
I'd be happy to add a -working or something if it can be isolated down to runable/non-runable in some obvious way, funky or not.

The runnable status is not contained within the <game name="x"> </game> section for some odd reason. Near the end of the file, if references each game that is not runnable, for example:

<game runnable="no" name="cpzn1" sourcefile="zn.c">
      <description>ZN1</description>
      <year>1995</year>
      <manufacturer>Sony/Capcom</manufacturer>
      <rom name="coh-1000c.353" size="524288" crc="50033af6" sha1="486d92ff6c7f1e54f8e0ef41cd9116eca0e10e1a" region="user1" offset="0"/>
   </game>

And then continues to list other not runnable games. It does not list all the games, so it appears that if one of these entries is not present for a particular game, Mame assumes the game is runnable.

If you look at listxml's DTD, the default is runnable="yes" (and there's only two valid options, yes or no):

Code: [Select]
<!ATTLIST game runnable (yes|no) "yes">
So basically, xml parsers should see all games as runnable, unless it specifically states runnable="no", as in the example you posted.

edit: added dropped verb
« Last Edit: December 22, 2006, 07:08:48 pm by u_rebelscum »
Robin
Knowledge is Power

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Monitor Orientation Filter?
« Reply #11 on: December 28, 2006, 10:38:21 am »
The runnable status is not contained within the <game name="x"> </game> section for some odd reason. Near the end of the file, if references each game that is not runnable, for example:

<game runnable="no" name="cpzn1" sourcefile="zn.c">
      <description>ZN1</description>
      <year>1995</year>
      <manufacturer>Sony/Capcom</manufacturer>
      <rom name="coh-1000c.353" size="524288" crc="50033af6" sha1="486d92ff6c7f1e54f8e0ef41cd9116eca0e10e1a" region="user1" offset="0"/>
   </game>

And then continues to list other not runnable games. It does not list all the games, so it appears that if one of these entries is not present for a particular game, Mame assumes the game is runnable.

While you are looking at modifying the program, could you add a switch to output the game description, instead of just the rom name?

Thanks!
 

Sorry for the delay-was out for the holidays. 

Now that I'm back I'll take a look at this and see if there's a way to get that data out-it may require 2 passes through the output xml files, but shouldn't be that big of a deal.

Adding a game description output option should be a breeze.  I likewise want to add a batch file creation feature to the -r option so that you can easily create a batch file to copy all the roms you just filtered.

-jeff!

Havok

  • Keeper of the __Blue_Stars___
  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4530
  • Last login:June 22, 2025, 02:32:40 am
  • Insufficient facts always invite danger.
Re: Monitor Orientation Filter?
« Reply #12 on: December 28, 2006, 11:12:29 am »
Thanks - this is a great little utility that helps to not only create custom game lists, but can also reduce the storage requirements. Your work is definitely appreciated!

 :applaud:

rockin_rick

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 495
  • Last login:May 27, 2017, 09:20:20 am
Re: Monitor Orientation Filter?
« Reply #13 on: December 28, 2006, 11:59:53 pm »
I tried -find:runnable and it didn't find any even though it is in-between the <game></game> tags.  Perhaps your program doesn't search the <game> field until it reads the name="xxxxxx" (the runnable="no" is before the name="xxxxxx")?

Upon further investigation, the games with runnable="no" are always excluded from results, even if there is matches in them or not.  I suppose that is fine and what most uses of the program would want, but for flexibility, perhaps being able to search those <game> tags would be nice...  On the other hand, this would lead to an extra 'filtering' step to remove those most of the time though, such as:

rl -in:allgames.xml -out:removenonworking.xml -find:-runnable="no"

Right now, with the current functionality of rl, it is implied.

It appears that the games marked runnable="no" at the end of the mame generated xml are not duplicated at the end of the file, rather all games that are not runnable are listed at the end.  They also have incomplete data, such as no input data.

FWIW

Rick
« Last Edit: December 29, 2006, 12:04:31 am by rockin_rick »
If I do not respond to your post in a timely manner, feel free to PM me.

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Monitor Orientation Filter?
« Reply #14 on: December 29, 2006, 11:04:48 am »
yeah RL is currently only looking at the the stuff inbetween the tags:

<game name="xyz">
and
</game>

The runable stuff is labeled as
<game runable="no" name="xyz">
</game>

so RL isn't going to locate the runable stuff.  This is probably going to be the hardest change to implement into the code.  Since I didn't want to have to read the entire xml file into memory at once, and I don't keep a running list of game names that have been selected, having the runable tag at the end of the file is going to force me to come up with something creative or perhaps something band-aidy.  Not sure which way it'll come out yet.   ;D

-jeff!

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Monitor Orientation Filter?
« Reply #15 on: December 29, 2006, 05:47:37 pm »
well, inspiration hasn't quite hit me yet with the runable tags, but I thought I'd release an interim version:

http://www.waste.org/~winkles/rl_1p1.zip


New stuff in version 1.1:

-find: option now supports AND and OR operators to help you locate 2 items at once:

rl -in:allgames.xml -out:joystickonly.xml -find:"-dial & -trackball"
rl -in:allgames.xml -out:8wayand4way.xml -find:"joy8way | joy4way"

You may still add the - operator to find a NOT of any criteria too.
rl -in:allgames.xml -out:8waynoclones.xml -find:"-cloneof & joy8way"

(I'm going to work on getting multiple & and |'s to work instead of just 1 at the moment, so you could do -find:"rotate=270 | rotate=90 & cocktail" to get all the vertical cocktail machines in 1 swell foop)


added -b and -d options to output final lists.

rl -in:8wayand4way.xml -out:copyroms.bat -b
   
 creates a batch file that looks like this:
copy rugrats.zip q:\path\
copy friskyt.zip q:\path\
copy friskyta.zip q:\path\
copy seicross.zip q:\path\
copy sectrzon.zip q:\path\
copy firebatl.zip q:\path\
copy clshroad.zip q:\path\
copy tubep.zip q:\path\
copy rjammer.zip q:\path\
copy magmax.zip q:\path\

You'll have to go in and do a global search+replace on q:\path\ to where ever you'd like to have the roms copied to.


rl -in:8wayand4way.xml -out:copyroms.bat -d
 
 dumps out the rom descriptions instead of rom name:

Rompers (Japan old version)
Blast Off (Japan)
World Stadium '89 (Japan)
Dangerous Seed (Japan)
World Stadium '90 (Japan)
Pistol Daimyo no Bouken (Japan)
Boxy Boy (US)
Souko Ban Deluxe (Japan)
Puzzle Club (Japan prototype)
Tank Force (US)
Tank Force (Japan)
Final Lap (Rev E)
Final Lap (Rev D)
Final Lap (Rev C)
Final Lap (Japan - Rev C)
Final Lap (Japan - Rev B)
Assault
Assault (Japan)
Assault Plus (Japan)
Metal Hawk (Japan)
Ordyne (Japan)
Mirai Ninja (Japan)
Phelios (Japan)
Dirt Fox (Japan)
Four Trax
Valkyrie No Densetsu (Japan)
Finest Hour (Japan)


Again, this is just a temporary release, but may make some lives easier until the next one, hopefully in the next few days.

-jeff!

rockin_rick

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 495
  • Last login:May 27, 2017, 09:20:20 am
Re: Monitor Orientation Filter?
« Reply #16 on: December 29, 2006, 07:30:59 pm »
deleted - see next post
« Last Edit: December 29, 2006, 07:38:04 pm by rockin_rick »
If I do not respond to your post in a timely manner, feel free to PM me.

rockin_rick

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 495
  • Last login:May 27, 2017, 09:20:20 am
Re: Monitor Orientation Filter?
« Reply #17 on: December 29, 2006, 07:37:07 pm »
This discussion of Jeff's program "rl" is currently running in two threads.  Perhaps we could direct all further discussion of rl to the other thread which is more on topic?

http://forum.arcadecontrols.com/index.php?topic=55636.0

Rick
« Last Edit: December 29, 2006, 07:42:54 pm by rockin_rick »
If I do not respond to your post in a timely manner, feel free to PM me.