EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: HOW TO: exclude romsets from scan (e.g. gambling, mechanical, CHDs, etc)  (Read 10164 times)

cricri_pingouin

  • Guest

First of all, big thanks to Roman for helping me with this: even after using ClrMAMEPro for a decade, I still don't know how to use it properly, so I couldn't get that working without him.

What it does?
These steps will let you bulk exclude romsets from your scan (e.g. MPU4 gambling games anyone?).

How it works?
It uses the possibility to specify a customised filter in the "Set information" window.

How to do it?
1 - From the main window (the small one with 6 graphical buttons), click the "Scanner" button (leftmost). Two windows pop up: "Scanner" and "Scan results".
2 - In the "Scan results" window, click the "Set information" button at the very bottom left. This opens the "Set information" window.
3 - In the "Set selection" frame, type or copy/paste your filter string (more on that later) in the "Select sets" text box.
4 - Click "Apply". This will select only the sets matching your filter (which is the opposite of what we want).
5 - Click "Invert". This inverts the selection, hence all sets matching your filter will be excluded.
6 - Close the "Set information" window.
7 - Scan as usual.
If you got something wrong, don't panic! Delete your filter string, click the "Select all" button, and start again from step 3.

How to build my filter string?
See here:
http://mamedev.emulab.it/clrmamepro/docs/htm/scanner.htm
Basically, you use the following syntax (copy/paste from link above):
    %y - year
    %m - manufacturer
    %s - source file
    %d - description
    %f - set name
    %c - parent rom set name
    %C - parent sample set name
    %b - bios set name
    %A - first character of description
    %a - first character of set name
    %Z - "0-9" in case of first description character is a number, otherwise description
    %z - "0-9" in case of first set name character is a number, otherwise set name
    %U - currently selected URL (Popupmenu -> WWW Open -> Set URL) from urls.ini file
    %u - currently selected URL Extension (Popupmenu -> WWW Open -> Set URL) from urls.ini file
And more importantly, a couple burried in the same page:
    %h - CHDs
    %M - Mechanical games! Note that it has to be %M with capital M.
You can "combine" as many as you want by separating the terms of your filter with a semi-colon ( ; ).
You can also use "*" and "?" wildcards.

Examples:
%h=1: filter CHDs.
%h=1;%M=1: filter both CHDs and mechanical games.
%s=mpu4.c: filter all romsets belonging to the mpu4.c driver.
%s=mpu*: filter all romsets belonging to any driver which name starts with "mpu".
%s=*mpu*: filter all romsets belonging to any driver which name contains "mpu".

String for all gambling games?
WIP and incomplete:
%s=acefruit.c;%s=aces1.c;%s=acesp.c;%s=astrafr.c;%s=bfm_s*;%s=bfmsys8*;%s=bingo.c;%s=bingoman.c;%s=bingor.c;%s=calomega.c;%s=ecoinf*;%s=funworld.c;%s=gamtor.c;%s=gei.c;%s=globalfr.c;%s=goldn*;%s=goldstar.c;%s=hazelgr.c;%s=jpm*;%s=maygay*;%s=mpu*;%s=multfish.c;%s=play_?.c;%s=pluto5.c;%s=proconn.c;%s=sfbonus.c;%s=sumt8035.c

I used the "Source" section of MAMEUI to find these, then checked them in the list of drivers here:
http://mamedev.org/source/src/mame/drivers/index.html

Unfortunately this filter is incomplete. In fact, I'm not 100% sure the drivers in my filter are all ok to exclude, so use with caution! And feel free to contribute to complete it!
« Last Edit: 02 December 2012, 23:15 by cricri_pingouin »
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 23.0.1271.95 Chrome 23.0.1271.95
    • View Profile

nice....

just a comment, the filter settings separated by semicolon in set information form a boolean OR, not an AND, so using the "logical not" checkbox forms a not(a) or not(b) or not(c)....which may not what you expect....so for such cases the invert button is usually better....
Logged

cricri_pingouin

  • Guest

nice....

just a comment, the filter settings separated by semicolon in set information form a boolean OR, not an AND, so using the "logical not" checkbox forms a not(a) or not(b) or not(c)....which may not what you expect....so for such cases the invert button is usually better....

Ah, so this is why you told me to do it this way! Well, that's how I described how to do it in steps 4 and 5, so everyone should be ok with these steps ;)
Also, I updated my filter string: it's now more complete for fruit machines/gambling games, and I removed the filtering of the pinball roms :-[
I myself remove a lot more than that: CHDs, mechanical, big ROMs (Hikaru, Model1/2/3, Triforce, Naomi, etc), but I'll stick to gambling games here as I think that's what others might be interested in.
« Last Edit: 02 December 2012, 22:23 by cricri_pingouin »
Logged

wcndave

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 85.0.4183.121 Chrome 85.0.4183.121
    • View Profile

Still useful 8 years later, many thanks!
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 86.0.4240.111 Chrome 86.0.4240.111
    • View Profile

with the latest nightly you got another variable which allows selecting/deselecting sets which reference a softwarelist.
Logged

yescabernetnointernet

  • "And the wind screams Mary"
  • Member
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 70
  • RED is for WINE
  • Operating System:
  • Linux Linux
  • Browser:
  • Firefox 82.0 Firefox 82.0
    • View Profile

Thank you cricri_pingouin;)

%s=acefruit.c;%s=aces1.c;%s=acesp.c;%s=astrafr.c;%s=bfm_s*;%s=bfmsys8*;%s=bingo.c;%s=bingoman.c;%s=bingor.c;%s=calomega.c;%s=ecoinf*;%s=funworld.c;%s=gamtor.c;%s=gei.c;%s=globalfr.c;%s=goldn*;%s=goldstar.c;%s=hazelgr.c;%s=jpm*;%s=maygay*;%s=mpu*;%s=multfish.c;%s=play_?.c;%s=pluto5.c;%s=proconn.c;%s=sfbonus.c;%s=sumt8035.c

I used the "Source" section of MAMEUI to find these, then checked them in the list of drivers here:
http://mamedev.org/source/src/mame/drivers/index.html
For a more "clean" syntax you can go with all you selections inside one-and-only %s=, e.g.
Code: [Select]
%s=acefruit.c;aces1.c;acesp.c;astrafr.c;bfm_s*;bfmsys8*;bingo.c;bingoman.c;bingor.c;calomega.c;ecoinf*;funworld.c;gamtor.c;gei.c;globalfr.c;goldn*;goldstar.c;hazelgr.c;jpm*;maygay*;mpu*;multfish.c;play_?.c;pluto5.c;proconn.c;sfbonus.c;sumt8035.c
I used the "Source" section of MAMEUI to find these, then checked them in the list of drivers here:
http://mamedev.org/source/src/mame/drivers/index.html
Your link is not working for me  :o
This works: https://git.redump.net/mame/tree/src/mame/drivers
Logged
Lo stalker portò scrittore e professore nella Zona...
Pages: [1]   Go Up
 

Page created in 0.172 seconds with 19 queries.

anything
anything