Author Topic: Custom ini usage  (Read 3868 times)

feltz916

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Custom ini usage
« on: April 30, 2017, 11:14:16 PM »
Hey everyone, looking to try to create a filter using progrettosnaps bestgames.ini file which is in catver format.
bestgames.ini has rank categories, but I dont know how to query them in the filter.
Anyone done something like this?

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Custom ini usage
« Reply #1 on: May 01, 2017, 12:01:34 AM »
The bestgames.ini isn't directly supported. In Attract-Mode most filters use the romlist, favorites and tag lists. MAME can add information from mame/list.xml, carver.ini, nplayers.ini and controls.ini (currently not working) to the romlist.

If you really want to use the bestgames.ini, your best bet is to create tag group files for each section and cut and paste the rom names from their perspective section to the corresponding tag files. Then you can create your filters base on the tag files in Attract-Mode.
« Last Edit: May 01, 2017, 12:46:34 AM by progets »

feltz916

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: Custom ini usage
« Reply #2 on: May 01, 2017, 12:21:54 AM »
that should be easy enough, how can i filter based on tag files? I see they are used for favorites, can you have multiple tag files for a display?

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Custom ini usage
« Reply #3 on: May 01, 2017, 12:29:58 AM »
Yes, you can have multiple tag files for a display but they work slightly different then the favorites file (which is only one per display).

What is your romlist file named: MAME.txt, mame.txt, Arcade.txt, etc.?

What platform are you on: Linux, Windows, OSX, etc.?
« Last Edit: May 01, 2017, 12:53:45 AM by progets »

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Custom ini usage
« Reply #4 on: May 01, 2017, 02:59:41 AM »
Assuming your romlist is named "MAME.txt" and you're running Linux on a Raspberry Pi you can follow these steps...

1. Create a directory that matches your display name (without the extension) in the romlist folder
example:
Code: [Select]
/home/pi/.attract/romlists/MAME

2. in the new directory, create text files for each each category of the bestgames.ini but use the ".tag" extension and copy and paste the corresponding rom names into each file.
examples:
/home/pi/.attract/romlists/MAME/Worst.tag
Code: [Select]
azurian
battlex
bbprot
berenstn
black
boxer
brod
cball
claybust
dacholer
desertdn
einning
embargo
flyball
galgame
kot
/home/pi/.attract/romlists/MAME/Horrible.tag
Code: [Select]
005
4in1
7mezzo
ace
altair
ar_rdwr
ar_socc
astropal
attckufo
barricad
bbonk
beaminv
bilyard
birdiy
blkhole
blockade
boonggab
botanic
bowl3d
bowler
cannonbp
castfant
catchp
catnmous
cfghtice
checkmat
chkun
clayshoo
comotion
crash
crgolfhi
ctornado
dai3wksi
desertgu
destroyr
devzone
dodgem
dodgeman
dogpatch
dotrikun
dplay
fghtbskt
filetto
futflash
gmissile
gunfight
heiankyo
indianbt
istreb
kaitei
kickboy
kok
ksayakyu
laststar
logger
m4
m4conn4
mastkin
mineswpr
minferno
minivadr
mogura
navarone
nomnlnd
panther
phantom2
phklad
polyplay
redalert
reikaids
ripcord
robotbwl
roldfrog
safari
samurai
shpeng
skybase
skychut
sos
spcenctr
strtheat
timelimt
tornbase
tranqgun
tylz
wink
wtennis
yosakdon
zipzap
/home/pi/.attract/romlists/MAME/Bad.tag
Code: [Select]
30test
airrace
alienar
alinvade
animalc
armchmp2
astrowar
attackfc
berzerk
blandia
botss
buccanrs
bullfgtr
chwrestl
cmanhat
devilfsh
eeekk
enmadaio
fantasy
flyboy
galactic
imolagp
jankenmn
keroppi
naughtyb
polyplay2

3. create filters for each .tag file you created
examples:
Worst Games
Code: [Select]
Configure-->Displays-->MAME-->Add Filter-->Enter Filter Name=Worst Games-->Add Rule
    Target=Tags
    Comparison=contains
    Filter Value=Worst
Horrible Games
Code: [Select]
Configure-->Displays-->MAME-->Add Filter-->Enter Filter Name=Horrible Games-->Add Rule
    Target=Tags
    Comparison=contains
    Filter Value=Horrible
Bad Games
Code: [Select]
Configure-->Displays-->MAME-->Add Filter-->Enter Filter Name=Bad Games-->Add Rule
    Target=Tags
    Comparison=contains
    Filter Value=Bad

feltz916

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: Custom ini usage
« Reply #5 on: May 02, 2017, 01:16:00 AM »
This helps, i got it setup! Thanks!