Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: qqplayer on January 20, 2019, 01:29:36 PM
-
I have some "duplicated" names containing "[a]" , "[a2]" , "" ...
Tried:
|[a2]|[a3]|[t]
rule Name not_contains "[h CEZ]"
rule Name not_contains "[h MSX Games bOX]"
rule Name not_contains "[cr King Soft]"
But doesnt work.
How can I filter this names?
-
[ & ] are special characters and must be escaped by a \.
rule Name not_contains \[a\]
rule Name not_contains \[a2\]
-
Thanks, now is working.
-
FWIW - You can also combine these into a single rule like this
rule Name not_contains \[a\]|\[a2\]
-
Thanks again.
What about names like this?
Afteroids (1988)(Zigurat Software)(ES)
I want to include '(ES)' games only on a filter.
-
The same character escaping is needed do to the ( & ).
rule Name contains \(ES\)
-
Ok , final question, can I make a filter like 'rompath contains...'?
Thanks.
-
Not directly as far as I know. There isn't any filtering file used that contains the rompath information. You can still accomplish this but it will take some creativity and a little more work. If you explained your use of this I might be able to provide a solution. A few possibilities might be...
- populate and use the "Extra" field of the romlist (this could be done manually, with a script or with a spreadsheet app)
- use separate "Emulator" names for each path needed and then use the builtin feature to combine the two romlists into one (now you can directly filter on the "Emulator" field since each will have a unique name for the rompath needed)
- create and use tagging for the roms using the specific path and then create your filter based on the tags
-
Ill keeptrying, thanks for the suggestions.
Tried this , but failed.
filter NEC
rule Name contains NEC
rule Name not_equals "NEC PC Engine-CD (Redump)"
Trying to exclude this emulator fom NEC filter.
-
Name = Name of the game. I think you want "Emulator". So something like this...
filter NEC
rule Emulator contains NEC
rule Emulator not_equals "NEC PC Engine-CD \(Redump\)"