Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: empardopo on March 24, 2016, 08:56:37 AM

Title: Filters and rules (solved)
Post by: empardopo on March 24, 2016, 08:56:37 AM
Is it possible to add some rules to an filter?
I've this in my attract.cfg file.

Code: [Select]
display mame
layout               gifAnimado
romlist              mame
in_cycle             yes
in_menu              yes
filter               All
sort_by              Title
filter               Favourites
rule                 Favourite equals 1
[color=blue]filter               Otros
    sort_by              Title
rule                 Category does not equal Electromechanical / Reels
rule                 Category does not equal Casino
rule                 Category does not equal Casino / Reels
rule                 Status does not equal imperfect[/color]

When I launch AM I can see next the games:

sstar;Super Star;mame;;200?;<unknown>;Casino;???;0;;preliminary;1;raster;;;

or

m5supstr;Super Star (Barcrest) (MPU5) (set 1);mame;;199?;Barcrest;Electromechanical / Reels;???;;;preliminary;0;;;;mechanical

or

suprstar;Super Stars;mame;;1996;Amatic Trading GmbH;Casino / Reels;1P;90;gambling;imperfect;1;raster;;;

What am I doing wrong?

Thanks in advance.
Title: Re: Filters and rules
Post by: empardopo on March 24, 2016, 11:26:26 AM
Sorry, I have solved my problem.

Code: [Select]
display mame
layout               traces
romlist              mame
in_cycle             yes
in_menu              yes
filter               All
sort_by              Title
filter               Favourites
rule                 Favourite equals 1
filter               Otros
sort_by              Title
rule                 Category not_equals Casino
rule                 Category not_contains Mahjong
rule                 Category not_equals Quiz / Korean
rule                 Category not_equals Electromechanical / Reels
rule                 Category not_equals Casino / Cards
rule                 Category not_equals Casino / Reels
rule                 Status not_equals preliminary

changin does not equal by not_equals.

Thanks.

Note: perhaps, it could be interesting that AM shows now_equals instead of does not equal.