Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started 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)
-
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)
-
.
-
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)
-
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? ???
-
Why exactly, do you want to do this?
-
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:
-
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 :)
-
You could try Cfg Magician
-
You could try Cfg Magician
thanks did try that one, but no success
-
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.
-
no waaaaaaaaayy :notworthy:
plz keep us (or me, at least) posted :lol
-
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.
-
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?
-
excellent, the program works fine for me
todays legend of the day award must go to theob42 :D
-
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.
-
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.
-
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.
-
K file uploaded.