Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: How do i create a full set of empty mame game .cfg files?  (Read 8070 times)

0 Members and 1 Guest are viewing this topic.

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
How do i create a full set of empty mame game .cfg files?
« 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)


NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: How do i create a full set of empty mame game .cfg files?
« Reply #1 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

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
.
« Reply #2 on: November 30, 2012, 09:38:48 pm »
 .
« Last Edit: November 30, 2012, 09:41:18 pm by jadder »

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
Re: How do i create a full set of empty mame game .cfg files?
« Reply #3 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



« Last Edit: November 30, 2012, 10:18:15 pm by jadder »

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
Re: How do i create a full set of empty mame game .cfg files?
« Reply #4 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? ???


« Last Edit: December 01, 2012, 12:27:05 am by jadder »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9270
  • Last login:July 14, 2025, 01:30:54 pm
  • ...
Re: How do i create a full set of empty mame game .cfg files?
« Reply #5 on: December 01, 2012, 09:27:42 am »
Why exactly, do you want to do this?

Hoopz

  • Don't brand me a troublemaker!
  • Trade Count: (+8)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5285
  • Last login:June 13, 2025, 09:18:32 pm
  • Intellivision Rocks!
Re: How do i create a full set of empty mame game .cfg files?
« Reply #6 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:

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
Re: How do i create a full set of empty mame game .cfg files?
« Reply #7 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 :)

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: How do i create a full set of empty mame game .cfg files?
« Reply #8 on: December 02, 2012, 06:38:20 am »
You could try Cfg Magician

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
Re: How do i create a full set of empty mame game .cfg files?
« Reply #9 on: December 02, 2012, 10:05:11 pm »
You could try Cfg Magician

thanks did try that one, but no success

theob42

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 74
  • Last login:December 23, 2012, 12:15:25 pm
Re: How do i create a full set of empty mame game .cfg files?
« Reply #10 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.

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
Re: How do i create a full set of empty mame game .cfg files?
« Reply #11 on: December 10, 2012, 10:41:12 pm »
no waaaaaaaaayy :notworthy:

plz keep us (or me, at least) posted :lol

theob42

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 74
  • Last login:December 23, 2012, 12:15:25 pm
Re: How do i create a full set of empty mame game .cfg files?
« Reply #12 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.
« Last Edit: December 12, 2012, 10:23:08 am by theob42 »

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: How do i create a full set of empty mame game .cfg files?
« Reply #13 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?

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
Re: How do i create a full set of empty mame game .cfg files?
« Reply #14 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

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: How do i create a full set of empty mame game .cfg files?
« Reply #15 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.
« Last Edit: December 11, 2012, 09:29:40 am by DaOld Man »

theob42

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 74
  • Last login:December 23, 2012, 12:15:25 pm
Re: How do i create a full set of empty mame game .cfg files?
« Reply #16 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.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: How do i create a full set of empty mame game .cfg files?
« Reply #17 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.

theob42

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 74
  • Last login:December 23, 2012, 12:15:25 pm
Re: How do i create a full set of empty mame game .cfg files?
« Reply #18 on: December 12, 2012, 10:28:25 am »
K file uploaded.