Author Topic: Question about filtering  (Read 4046 times)

edfick18

  • Newbie
  • *
  • Posts: 4
    • View Profile
Question about filtering
« on: March 06, 2017, 05:47:02 AM »
I am having some trouble setting up filters for my NES games. For example, I am trying to filter out "Super Mario Bros. (Japan, USA)"

I used
Code: [Select]
filter               All
rule                 Title not_equals Super Mario Bros. (Japan, USA)

Should't this filter out that game? or am I doing something wrong?

I am on windows.

Thanks
« Last Edit: March 07, 2017, 08:55:35 PM by edfick18 »

Nick

  • Full Member
  • ***
  • Posts: 26
    • View Profile
Re: Question about filtering
« Reply #1 on: March 06, 2017, 06:40:36 PM »
Untested but you may want to try:
Code: [Select]
filter               All
rule                 Title not_equals "Super Mario Bros. (Japan, USA)"

edfick18

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Question about filtering
« Reply #2 on: March 06, 2017, 07:38:29 PM »
I tried that but it didnt work. I've also tried

Code: [Select]
filter               All
rule                 Title not_contains "Super Mario Bros. (Japan, USA)"

With and with out quotes, but that didnt work either.

What I did find is, if I shorten the game rom name to "Test" (and update the rom list), it filters that out fine. So maybe it has something to with the length of the rom name or the special characters that are preventing it from being filtered out?

edit:

Looks to be the parentheses causing the problem. Simply removing them fixes the issue.
« Last Edit: March 06, 2017, 08:00:29 PM by edfick18 »

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: Question about filtering
« Reply #3 on: March 06, 2017, 10:50:46 PM »
@edfick18
I'm not sure, why it doesn't work.
an another problem is the point (.), because its a wildcard. so you'll filter all Super Mario Brosxyz games too

try this:
set your file as a favorite > then add this filter:
Code: [Select]
filter               All
rule                 Favourite not_equals 1

or edit your romlist.txt > add an entry in 'Category' : DontWantIt > set filter:
Code: [Select]
filter               All
rule                 Category not_equals DontWantIt
« Last Edit: March 06, 2017, 10:57:24 PM by hermine.potter »
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

Nick

  • Full Member
  • ***
  • Posts: 26
    • View Profile
Re: Question about filtering
« Reply #4 on: March 07, 2017, 07:17:47 PM »
I'm pretty sure the quotes are needed, as the other poster mentioned AM uses regex for these filters and the dot means any character, the parenthesis might also through the regex off.
Maybe you would you have more luck with this:
Code: [Select]
filter               All
rule                 Title not_equals "Super Mario Bros. \(Japan, USA\)"
or
Code: [Select]
filter               All
rule                 Title not_equals "Super Mario Bros\. \(Japan, USA\)"
Sorry I can't test this ATM.

edfick18

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Question about filtering
« Reply #5 on: March 07, 2017, 08:54:42 PM »
I'm pretty sure the quotes are needed, as the other poster mentioned AM uses regex for these filters and the dot means any character, the parenthesis might also through the regex off.
Maybe you would you have more luck with this:
Code: [Select]
filter               All
rule                 Title not_equals "Super Mario Bros. \(Japan, USA\)"
or
Code: [Select]
filter               All
rule                 Title not_equals "Super Mario Bros\. \(Japan, USA\)"
Sorry I can't test this ATM.

These both worked! Just had to remove the quotes. For some reason, with the quotes, it doesn't work. I used the first one to filter this and a few other titles (they also contained parenthesis) and it worked perfectly.

Thanks to everyone for their suggestions.