MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

BIOS-D
MAME Fan
Reged: 08/07/06
Posts: 1688
Send PM
Re: Can't make the cfg's to work right
05/28/19 05:56 PM


> I was reading the mame docs but couldn't find anything, the best I could find was the
> chapter about multi configuration files but nothing on cfg's.
> https://docs.mamedev.org/advanced/multiconfig.html
>
> Lets say I want to apply some settings to all neogeo games, this one was generated
> from kof99:
> https://pastebin.com/reyvavmm
>
> I've set this way to get a black screen so I know it's working. If I save this as
> neogeo.cfg, delete kog99.cfg and change the "system name" from "kof99" to "neogeo" or
> "default", mame doesn't read the my settings although mame show messages saying it is
> reading neogeo.cfg when it doesn't?
> Attempting to parse: neogeo.cfg
> Attempting to parse: default.cfg
> Attempting to parse: kof99.cfg
>
> Does this cfg files have to be saved/moved to a directory named source/neogeo.cfg or
> something similar like ini files?
>
> Is there an option like cfgfile that we can use inside an ini file so mame can read
> the cfg the user want?

Why are you using XML files? It clearly states they are .ini files and they're plain text files not in XML format.

If you don't know how an INI file looks like use "mame64.exe -cc" parameter to generate a full mame.ini file, then move it to "ini" directory and rename it to your liking. Personally I choose to abuse this system so I only keep the lines I change and let MAME use its default options to fill in the blanks.

My mame.ini:

Code:

#
# CORE SEARCH PATH OPTIONS
#
rompath E:\Emus\MAME\romset;E:\Emus\MAME\softlist;roms

#
# CORE SCREEN OPTIONS
#
pause_brightness 1.0

#
# CORE MISC OPTIONS
#
cheat 1

#
# OSD VIDEO OPTIONS
#
video d3d
window 1

#
# OSD ACCELERATED VIDEO OPTIONS
#
filter 0



I keep the line comments to know where to look for, you can ignore them. In your example your config files would look like this:

Inside neogeo.ini:

Code:

#
# CORE MISC OPTIONS
#
bios unibios33



Into kof99.ini:

Code:

#
# CORE SCREEN OPTIONS
#
brightness 0.5
contrast 0.5
gamma 0.5



EDIT: Just tried the same with cfg files and you can't. It will erase anything that isn't recognized by the parser. Best you could do is say, grab your kof99.cfg, copy it to kof95.cfg and edit the "system name" value. Useful for mapping the same inputs for every neogeo game, but also you would need to do the same procedure for every one of them.

Edited by BIOS-D (05/28/19 06:51 PM)







Entire thread
Subject Posted by Posted on
* Can't make the cfg's to work right 7n004 05/28/19 12:38 PM
. * Re: Can't make the cfg's to work right BIOS-D  05/28/19 05:56 PM
. * Re: Can't make the cfg's to work right 7n004  05/28/19 11:39 PM
. * Re: Can't make the cfg's to work right BIOS-D  05/29/19 09:14 PM
. * Re: Can't make the cfg's to work right 7n004  05/29/19 11:32 PM
. * Re: Can't make the cfg's to work right Vas Crabb  05/28/19 07:09 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 348 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 648