Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: adder on November 30, 2012, 08:29:26 pm

Title: How do i create a full set of empty mame game .cfg files?
Post by: adder on November 30, 2012, 08:29:26 pm
hi all,

does anyone have any ideas on how to create a full set of empty mame game .cfg files?

eg.

strider.cfg
striderua.cfg
strider2a.cfg
...etc

(i would want all of the .cfg files to be empty containing no data)

Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: NOP on November 30, 2012, 09:18:40 pm
you could do this easily with romlister.

make an all games list.
output the list as a batch file
the batch file will be simply:
copy c:\blank.cfg %ROM%.cfg

this .ini tutorial sorta shows the same thing
http://wiki.arcadecontrols.com/wiki/RL_tutorial_batchFiles (http://wiki.arcadecontrols.com/wiki/RL_tutorial_batchFiles)
Title: .
Post by: adder on November 30, 2012, 09:38:48 pm
 .
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: adder on November 30, 2012, 09:39:24 pm
ah ok  i will try to figure out romlister

EDIT:  ok i nearly did it but i saved 20,000 .cfg files to my desktop by mistake lol :o

(http://s7.postimage.org/a3mc271gr/omg.png)

Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: adder on November 30, 2012, 10:55:15 pm
hey thanks, i managed to create the full set of empty mame game .cfg files

but i realised now, i need the following into each of the .cfg files:


<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="NAME" />
</mameconfig>



(note: NAME would be the rom name (which is also the name of the .cfg file))


hmm, any ideas how to do this anyone plz? ???


Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: BadMouth on December 01, 2012, 09:27:42 am
Why exactly, do you want to do this?
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: Hoopz on December 01, 2012, 11:14:00 am
ah ok  i will try to figure out romlister

EDIT:  ok i nearly did it but i saved 20,000 .cfg files to my desktop by mistake lol :o

Sounds like something I would do.   :cheers:
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: adder on December 01, 2012, 11:25:29 am
Why exactly, do you want to do this?

i think if i say the reason, then noboby will help me ::)

ah what the hell, ok i want to do it because it then means i will never again see the 'Type OK to Continue' screen on startup of every new game played in mame.

ps. before somebody says "why dont you compile your own version of mame?"

no thanks :)
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: headkaze on December 02, 2012, 06:38:20 am
You could try Cfg Magician
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: adder on December 02, 2012, 10:05:11 pm
You could try Cfg Magician

thanks did try that one, but no success
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: theob42 on December 10, 2012, 09:04:32 pm
I've been meaning to whip up a small app to do that. Haven't found the time. Actually i'm in a good mood today. I'll see what I can whip up later tonight.
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: adder on December 10, 2012, 10:41:12 pm
no waaaaaaaaayy :notworthy:

plz keep us (or me, at least) posted :lol
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: theob42 on December 11, 2012, 01:09:47 am
Finished! Note it will not overwrite any existing files in there. Only add a new file if it doesn't exist.

Tell me how it goes! Enjoy :)

UPDATED: A few micro tweaks.
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: DaOld Man on December 11, 2012, 02:36:09 am
Just tried your app theob42, and it worked like a charm for me. (Im using Win7 64 bit)

jadder: make sure your mame.ini file points to the correct folder location for the cfg files. Here is what is in my mamepp.ini file:

rompath                   C:\Users\Ken\Arcade\Mame\Roms
samplepath              C:\Users\Ken\Arcade\Mame\samples
inipath                     C:\Users\Ken\Arcade\Mame
cfg_directory            C:\Users\Ken\Arcade\Mame\cfg
nvram_directory       C:\Users\Ken\Arcade\Mame\nvram
memcard_directory   C:\Users\Ken\Arcade\Mame\memcard
input_directory         C:\Users\Ken\Arcade\Mame\inp
hiscore_directory      C:\Users\Ken\Arcade\Mame\hi
state_directory         C:\Users\Ken\Arcade\Mame\sta
artwork_directory     C:\Users\Ken\Arcade\Mame\artwork
snapshot_directory   C:\Users\Ken\Arcade\Mame\snap
diff_directory           C:\Users\Ken\Arcade\Mame\diff
ctrlr_directory          C:\Users\Ken\Arcade\Mame\ctrlr
cheat_file                C:\Users\Ken\Arcade\Mame\cheat.dat

When I first used theob42's app, it didnt appear to work.
I got to looking around and found out mame was writing my cfg files to C:\cfg
I am using mame on this computer just to set everything up for a cab project, and I guess I havent really got in deep into the mame settings.
I went ahead and put full path to each of the above, just to make sure. Of course I will have to change it again when I transfer it to the cab.
Dont know why the standard \cfg didnt work, may be a 64 bit issue?
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: adder on December 11, 2012, 08:53:44 am
excellent, the program works fine for me

todays legend of the day award must go to theob42 :D
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: DaOld Man on December 11, 2012, 09:26:07 am
Perhaps he should be nominated for next years user software award. (Hint Hint LeChuck)
I totally agree. Simple and works, what else could you ask for?

Edit:  theob42, I think you should upload this app to the File Repository, for safe keeping.
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: theob42 on December 11, 2012, 03:33:53 pm
Great stuff! Glad to hear it is working well for people. Sure I can upload it. Just tell me where/how :) If anybody has any suggestions for enhancements, Feel free to ask.
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: DaOld Man on December 12, 2012, 12:20:13 am
Just click on file repository at the top and follow directions to upload the file.
Not sure what category, probably misc?
It may take a day or two for a mod to check it out before it gets posted.
Title: Re: How do i create a full set of empty mame game .cfg files?
Post by: theob42 on December 12, 2012, 10:28:25 am
K file uploaded.