Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: Matt-One on June 13, 2017, 07:25:28 AM

Title: Filter problem
Post by: Matt-One on June 13, 2017, 07:25:28 AM
Hello,
I would like to filter in the puzzle section all the Puzzle Games but not the Puzzle/Mature games, how can i do it?

Thank you.
Title: Re: Filter problem
Post by: hermine.potter on June 13, 2017, 10:19:16 PM
@Matt-One
probably you use 'contain' instead 'equal' in filter?
what is your filter config?
post an example of your romlist (shown a game with category Puzzle and one with category Puzzle/Mature).
Title: Re: Filter problem
Post by: Matt-One on June 14, 2017, 09:40:52 AM
@Matt-One
probably you use 'contain' instead 'equal' in filter?
what is your filter config?
post an example of your romlist (shown a game with category Puzzle and one with category Puzzle/Mature).

Thank you for your reply..
My filter config is like the one on AttractMode Wiki, so :
Code: [Select]
global_filter       
rule                 CloneOf not_equals .*
rule                 Status equals good|imperfect
rule                 Status not_equals preliminary
rule                 Players contains 1|2
rule                 Category not_contains Electromechanical|Tabletop|Casino|Quiz|Mahjong|Computer|Microcomputer|Test|Portable|Console|Handheld|Device|Training Board|Synthesiser|Clock|Document Processors
rule                 Category not_equals Misc.|Quiz / Korean|Electromechanical / Reels|Casino / Cards|Casino / Reels
rule                 Title not_contains bootleg|prototype
rule                 Manufacturer not_contains bootleg
rule                 Year not_contains ?
filter               All
filter               Favourites
rule                 Favourite equals 1
filter               "Most Played Games"
sort_by              PlayedCount
reverse_order        true
rule                 PlayedCount not_contains 0
filter               Breakout
rule                 Category contains Ball & Paddle|Breakout
filter               Casino
rule                 Category contains Casino
filter               Driving
rule                 Category contains Driving|Biking|Motorcycle
filter               Fighter
rule                 Category contains Fighter
filter               Mature
rule                 Category contains Mature
filter               "Maze Games"
rule                 Category equals Maze
filter               Mini-Games
rule                 Category contains Mini-Games
filter               Pinball
rule                 Category contains Pinball
filter               Platform
rule                 Category contains Platform
filter               Puzzle
rule                 Category contains Puzzle
filter               Rhythm
rule                 Category contains Rhythm
filter               Shooter
rule                 Category contains Shooter
filter               Sports
rule                 Category contains Sports
filter               Tabletop
rule                 Category contains Tabletop

And these are some games in my romlist file, as you can see the category games are separated by a / (i made my romlist on arcadeitalia because i made a single selection of my favorite games) :

aerofgts;Aero Fighters Special (Taiwan);mame;;1996;Video System Co.;Shooter / Flying Vertical;2P sim;270;joystick (8-way),joystick (8-way),joystick (8-way),joystick (8-way);imperfect;1;raster;coh1002v;Video System PSX;;3;;;0;;1
aoh;Age Of Heroes - Silkroad 2 (v0.63 - 2001/02/07);mame;;2001;Unico;Fighter / 2.5D;2P sim;0;joystick (8-way),joystick (8-way);good;1;raster;;;;4;;;0;;1
airattck;Air Attack (set 1);mame;;1996;Comad;Shooter / Flying Vertical;2P sim;270;joystick (8-way),joystick (8-way);good;1;raster;;;;2;;;0;;1
airbustr;Air Buster: Trouble Specialty Raid Unit (World);mame;;1990;Kaneko (Namco license);Shooter / Flying Horizontal;2P sim;0;joystick (8-way),joystick (8-way);good;1;raster;;;;2;;;0;;1
missw96;Miss World '96 (Nude) (C-3000A PCB, set 1);mame;;1996;Comad;Puzzle / Outline * Mature *;2P sim;0;joystick (4-way),joystick (4-way);good;1;raster;;;;1;;;0;;1
pbobble;Puzzle Bobble (Japan, B-System);mame;;1994;Taito Corporation;Puzzle / Toss;2P sim;0;joystick (8-way),joystick (8-way),joystick (8-way),joystick (8-way);good;1;raster;;;;3;;;0;;1

Title: Re: Filter problem
Post by: hermine.potter on June 19, 2017, 01:10:56 AM
@Matt-One
add a filter to your emulator system:
start AM > press TAB key > Displays > choose your emulator system, that you want to filter > Add Filter

choose a name (e.g. Puzzles) > Rule > Target : Category > Comparison : contains > Filter Value : Puzzle > Back

at this moment, you get all Puzzles. The trick is to add a second rule to your created filter:
Add rule > Target : Category > Comparision : does not contain > Filter Value : Mature

(http://fs5.directupload.net/images/170619/xf4hs9cg.png)