Author Topic: Filters Not Showing Up  (Read 5226 times)

jelliott

  • Newbie
  • *
  • Posts: 5
    • View Profile
Filters Not Showing Up
« on: March 09, 2015, 04:50:47 AM »
On Linux Mint 17.1, 64-bit, AttractMode 1.5.1:

I've not been successful with my filters showing up (MAME in this case, the only one I've tested so far). Whenever I press the next or previous filters assigned keys the games list is empty. Bringing up the Filters Menu only displays "All" and "Favourites".

I suspect I'm the issue here with a typo or something. ;-)

The categories are showing up correctly when I use the "machines" display (which looks really, really good btw).

My mame.cfg has this line:

import_extras        $HOME/Desktop/AttractMode/EmulatorsData/mame/catver/catver.ini;$HOME/Desktop/AttractMode/EmulatorsData/mame/catver/filters.ini

My filters.ini looks like this:

filter "Justin Test Filter"
  rule   Title not_contains bootleg|prototype|Sports|Trivia|Quiz|Mahjong
  rule   Year not_contains ?
  rule   Manufacturer not_contains bootleg
  rule   Category not_contains Mature|Quiz|Sports|Mahjong|Casino
  rule   Players equals 1|2
  rule   Control contains joystick
  rule   Control contains 2-way|4-way|8-way
  rule   Status equals good|imperfect
  rule   DisplayCount equals 1
filter "Justin Favourite Games"
  rule   Favourite equals 1

After adding all of these changes and then running the "Generate Collection/Rom list" option in the Emulators MAME section I'm still not seeing my filter appear.

Do I also need to add brackets around the 'filter "Name Of Filter Here"' section?

Any ideas or suggestions on what to check? Thanks in advance.

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Filters Not Showing Up
« Reply #1 on: March 09, 2015, 10:22:32 AM »
Could you give me an example of what you are trying to do? I understand the filter part..but what type of filter are you trying to make? Are you wanting to hide  bootleg,prototype,Sports,Trivia,Quiz,Mahjong? I'm guessing this but I hate to assume.  Also I seem to be having the same problem I'll look into it.

If you want you can use RomLister to make a batch file and delete the games you don't want from your roms folder. You can find it here. http://www.waste.org/~winkles/ROMLister/ It will run fine in WINE if you need help let me know.
People want life easy..then complain about it

jelliott

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Filters Not Showing Up
« Reply #2 on: March 09, 2015, 06:40:49 PM »
Thanks for the link to that tool, looks promising!

My goal is to have AttractMode only display the games that are the originals and work with the controls that I have. The other one would be to only show my favorite games. (I still need to figure out how to have it default to a particular filter instead of displaying all of the games.)

I figured out my issue: The filter rules need to be added to the "attract.cfg" file in the section for your emulator. On Linux this file is located here:

~/.attract/attract.cfg

Here's what my attract.cfg file looks like at the start: (Largely based on the filter docs here: https://github.com/mickelson/attract/wiki/Example-filters )

# Generated by Attract-Mode 1.5.1
#
list   mame
   layout               machines
   romlist              mame
   filter               "Justin Test Filter"
      rule                 Title not_contains bootleg|prototype|Sports|Trivia|Quiz|Mahjong
      rule                 Year not_contains ?
      rule                 Manufacturer not_contains bootleg
      rule                 Category not_contains Mature|Quiz|Sports|Mahjong|Casino
      rule                 Players equals 1|2
      rule                 Control contains joystick
      rule                 Control contains 2-way|4-way|8-way
      rule                 Status equals good|imperfect
      rule                 DisplayCount equals 1
   filter               Favourites
      rule                 Favourite equals 1
   filter               All

list   nestopia ...

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Filters Not Showing Up
« Reply #3 on: March 09, 2015, 07:22:37 PM »
Glad you got it figured out. :) I couldn't get it to work either. I was using the configure menu and I tried a simple "Controls contain joystick" and got nothing. The only thing I could get to work right is the "category rules". Works every time even with other emulator lists. Maybe I am just missing something. That's funny how you did that..that is the same "formula" that RomLister uses!  ;D Looks like you typed yours out??  ???  I copied and pasted your filter config..it filtered all but two games for my list.  :o  So..is anyone else having a problem with this or is it just me?

Edit: Ok so I did get it to work. I am not sure what was wrong. *Shrugs* To default it to a filter? As far as I can tell what filter you had showing last should show when you start AM. If you REALLY want you can delete the all filter so that it doesn't ever show. If you do though make sure all you games list in your other filters you want!
« Last Edit: March 09, 2015, 08:40:07 PM by akafox »
People want life easy..then complain about it

cools

  • Full Member
  • ***
  • Posts: 83
  • Arcade Otaku Sysadmin
    • View Profile
    • Arcade Otaku
Re: Filters Not Showing Up
« Reply #4 on: March 10, 2015, 07:28:59 AM »
It's "Control contains", not "Controls contain" ;)

I no longer find it necessary to work directly in the .cfg file to generate filters, now that the global filters have been implemented it's straightforward to make a whole host of them.