Author Topic: How to create a filter that will filter out all mature roms for all displays  (Read 5744 times)

ps2daddy

  • Newbie
  • *
  • Posts: 6
    • View Profile
I need some help an insight on where and how to create a filter to accomplish this.

I have a hyperpie 2 image based on attract mode and I thought there was some way to go to a "master" display and set the filter but I am very confused.

Any help would be greatly appreciated.


progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Code: [Select]
global_filter       
rule                 Category not_contains Mature

ps2daddy

  • Newbie
  • *
  • Posts: 6
    • View Profile
I saw the roms in the arcade folder for I went to the attract.cfg file and edited the arcade menu but galpanic it still shows up in that display

I tried this

display   Arcade
   layout               HP2-Arcade-Menu
   romlist              Arcade
   in_cycle             no
   in_menu              no
   global_filter    
      rule                 Category not_contains Mature
      rule                 FileIsAvailable equals 1
      rule                 CloneOf not_equals .*
      rule                 Status not_equals preliminary
      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"
      sort_by              PlayedCount
      reverse_order        true
      rule                 PlayedCount not_contains 0
   filter               Breakout
      rule                 Category contains Ball & Paddle|Breakout
   filter               Driving
      rule                 Category contains Driving|Biking|Motorcycle
   filter               Fighter
      rule                 Category contains Fighter
   filter               Mature
      rule                 Category contains Mature
    I didnt change this but also saw this under favorites in that menu
   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               Atari
      sort_by              Name
      rule                 CloneOf not_equals .+
      rule                 Manufacturer contains Atari
   filter               Banpresto
      sort_by              Name
      rule                 CloneOf not_equals .+
      rule                 Manufacturer contains Banpresto
   filter               Capcom
      sort_by              Name
      rule                 CloneOf not_equals .+
      rule                 Manufacturer contains Capcom

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
1. Your global_filter has two different "Category not_contains" rules which is likely your problem. To test you should only use one rule to be certain what works and doesn't work on its own.

2. If your romlists don't contain the correct data then your rules won't work.
« Last Edit: October 27, 2018, 08:56:55 AM by progets »

ps2daddy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Looked at arcade romlist and all matue games are labled "*Mature*"

2 examples
galpanica;Gals Panic (MCU Protected);Arcade;galpanic;1990;Kaneko;Puzzle / Outline * Mature *;;;;;0;;;;;
apparel;Apparel Night (Japan 860929);Arcade;;1986;Central Denshi;Tabletop / Mahjong * Mature *;;;;;0;;;;;

I took the "*" of each mature title and that did not make a difference.

I assumed the the filters for mature contained under favorites allowed you to select mature games for you favorites in arcades if you choose them but would not show up in the regular arcade list.

I even removed the Mature rule under each favorites category and left the "not_contains mature" under each global_filter and that didnt make a difference either

:(
« Last Edit: October 28, 2018, 08:08:30 PM by ps2daddy »

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Rules are case sensitive. Your example of "not_contains mature" should be "not_contains Mature" based on the romlist entries you provided.

ps2daddy

  • Newbie
  • *
  • Posts: 6
    • View Profile
I tried this in the appropriate global sections

display   Arcade
   layout               HP2-Arcade-Menu
   romlist              Arcade
   in_cycle             no
   in_menu              no
   global_filter    
      rule                 FileIsAvailable equals 1
      rule                 CloneOf not_equals .*
      rule                 Status not_equals preliminary
      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 ?
      rule                 Category not_contains Mature    (I added this line)

Also tried leaving the Mature filter in the "Favorites" section settings and removing it and neither way worked In conjuction with the Global filter addition

Favorites filter
filter               Mature
      rule                 Category contains Mature 

(See last post for more details)

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Like I told you in the post above.

Quote
Your global_filter has two different "Category not_contains" rules which is likely your problem.

Append the first "Category not_contains" rule with |Mature and get rid of the second "Category not_contains" rule.

ps2daddy

  • Newbie
  • *
  • Posts: 6
    • View Profile
tried that and that didn't work either

global_filter       
      rule                 FileIsAvailable equals 1
      rule                 CloneOf not_equals .*
      rule                 Status not_equals preliminary
      rule                 Category not_contains Electromechanical|Tabletop|Casino|Quiz|Mahjong|Computer|Microcomputer|Test|Portable|Console|Handheld|Device|Training Board|Synthesiser|Clock|Document Processors|Mature
      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 ?


Went back and to the "*"'s out for Mature in the rom list and that didn't help either

« Last Edit: October 29, 2018, 08:52:09 PM by ps2daddy »

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
tried that and that didn't work either

global_filter       
      rule                 FileIsAvailable equals 1
      rule                 CloneOf not_equals .*
      rule                 Status not_equals preliminary
      rule                 Category not_contains Electromechanical|Tabletop|Casino|Quiz|Mahjong|Computer|Microcomputer|Test|Portable|Console|Handheld|Device|Training Board|Synthesiser|Clock|Document Processors|Mature
      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 ?


Went back and to the "*"'s out for Mature in the rom list and that didn't help either

I have tested this and it works for me. Like I mentioned above, get rid of all your other rules so you can test with just one rule until you get it right. Troubleshooting with all those rules makes zero sense. Once you have it working you can then implement your other rules and see where the problem comes in.

Post your attract.cfg and your mame.cfg if you want further feed back.

toothlessgrinn

  • Sr. Member
  • ****
  • Posts: 190
    • View Profile
there is an app called simple multi filter i think. let me find it and see if i cant attach to my next reply. works great and filterswhat you want.
we came , we saw , we lost LOTS of quarters...

Win 7
Asus mobo amd 64bit 3core
12g ram
4 player. Custom built woody cab
46" plasma screen with 22" marquee

ps2daddy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Thanks I look into the app and here are my files

toothlessgrinn

  • Sr. Member
  • ****
  • Posts: 190
    • View Profile
here this works very well.... well when you figure out how to use it... sorry i had no instructions maybe find some nline. what i did found this i think in arcadepunks website.

i used it a few months ago and been using same rom list since so i kinda forgot how to use this. but it will filter the important parts. anyway....
« Last Edit: October 30, 2018, 12:13:14 PM by toothlessgrinn »
we came , we saw , we lost LOTS of quarters...

Win 7
Asus mobo amd 64bit 3core
12g ram
4 player. Custom built woody cab
46" plasma screen with 22" marquee

toothlessgrinn

  • Sr. Member
  • ****
  • Posts: 190
    • View Profile
there is another better filter app out there but i cant remember the name. the hdd i had it on took a crap and i cant seem to find it. it has a few more filter options then this one. sorry cant be more help.
we came , we saw , we lost LOTS of quarters...

Win 7
Asus mobo amd 64bit 3core
12g ram
4 player. Custom built woody cab
46" plasma screen with 22" marquee