Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: emuola on June 14, 2016, 06:39:36 AM

Title: *SOLVED* Filtering all clones but one?
Post by: emuola on June 14, 2016, 06:39:36 AM
Hi.

Ikari Warriors has this nice bootleg/hacked clone version, that works great with standard joystick instead on the "original pots". I want to filter out all my other clones, but not that one. How do I accomplish this via a filter? I have filtered all clones out via this in my "All":

target="CloneOf", comparison="does not equal" and the filter value=".*"  (dot star)

So now I should be able to make an exception concerning the Ikari Warriors clone.

Sorry, I suck at filters :/
Title: Re: Filtering all clones but one?
Post by: emuola on June 15, 2016, 01:10:54 AM
Ok, let's try the other way around :) How can I run a clone from Attract Mode? In AdvanceMenu there was a configurable key for this back in the day. This would be a nice workaround for the filtering problem :) I could not figure this out either :/
Title: Re: Filtering all clones but one?
Post by: keilmillerjr on June 15, 2016, 07:35:40 AM
Try negative lookahead and let me know how it works. You might have to play around with the regex a bit. I can't test as I am out of state for work.

Code: [Select]
^(?!foo).*$
Title: Re: Filtering all clones but one?
Post by: progets on June 15, 2016, 07:00:11 PM
Exceptions must go first in your filter before your rules.

Try this:
filter               "No Clones"
   exception            Name equals <romname>
   rule                 CloneOf not_equals .*
Title: Re: Filtering all clones but one?
Post by: emuola on June 20, 2016, 07:34:09 AM
Exceptions must go first in your filter before your rules.

Try this:
filter               "No Clones"
   exception            Name equals <romname>
   rule                 CloneOf not_equals .*

This did it :D Thank you so much progets  8)