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 to add a different ROM into MAME (and keep the original)  (Read 2030 times)

0 Members and 1 Guest are viewing this topic.

jimmer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:February 17, 2025, 02:48:38 pm
  • I want to play Defender like at the arcade.

Lets say I have a Defender Pink label rom. It runs on exactly the same hardware as the Red label ROM.

I know how to add it into williams.c so that it replaces the RED label ROM, by giving it the same name and changing the CRD SHA1 codes.

But how do I add it as an additional ROM  ?

I added in williams.c:
ROM_START( defenderp ) ...... definition ....
and a line at the bottom
GAME( 1980, defenderp,  defender, defender,    ......

But it didn't appear in my game list.   So what additional source files do I need to modify ?




 
On forums jimmer speaks for himself as a Defender fan, not as proprietor of www.jbgaming.co.uk  << Is that advertising or disclosure ? or both ?

jimmer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:February 17, 2025, 02:48:38 pm
  • I want to play Defender like at the arcade.
Re: How to add a different ROM into MAME (and keep the original)
« Reply #1 on: July 09, 2013, 07:21:52 am »


And to answer my own question:

there is just 1 more file to alter;  obj/windows64/mame/mame/drivlist.c

add the new ROM name in 2 positions
and either delete an existing ROM or change the ROM count at the bottom of the file (not tried)
On forums jimmer speaks for himself as a Defender fan, not as proprietor of www.jbgaming.co.uk  << Is that advertising or disclosure ? or both ?

Haze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1296
  • Last login:October 04, 2023, 08:30:02 am
  • I want to build my own arcade controls!
    • MAME Development Blog
Re: How to add a different ROM into MAME (and keep the original)
« Reply #2 on: July 09, 2013, 07:49:32 pm »
technically you should be editing mame.lst, the file you're editing is generated during the compile.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 06, 2025, 12:48:28 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How to add a different ROM into MAME (and keep the original)
« Reply #3 on: July 09, 2013, 08:12:09 pm »
Weren't you guys going to add something that allowed you to do this without re-compile?

Haze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1296
  • Last login:October 04, 2023, 08:30:02 am
  • I want to build my own arcade controls!
    • MAME Development Blog
Re: How to add a different ROM into MAME (and keep the original)
« Reply #4 on: July 09, 2013, 08:46:14 pm »
only for removable media, ie the softlist stuff in the MESS part.

plus various mamedevs don't want that part of the functionality used in MAME anyway.

jimmer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:February 17, 2025, 02:48:38 pm
  • I want to play Defender like at the arcade.
Re: How to add a different ROM into MAME (and keep the original)
« Reply #5 on: July 10, 2013, 01:07:17 pm »
technically you should be editing mame.lst, the file you're editing is generated during the compile.

OK thanks.

Previously I looked into making a smaller compilation. I couldn't work out how to do/use tinymame.
It would be nice if I could simply do a hatchet job on one of the MAME files.
Do you have any advice?
On forums jimmer speaks for himself as a Defender fan, not as proprietor of www.jbgaming.co.uk  << Is that advertising or disclosure ? or both ?

Haze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1296
  • Last login:October 04, 2023, 08:30:02 am
  • I want to build my own arcade controls!
    • MAME Development Blog
Re: How to add a different ROM into MAME (and keep the original)
« Reply #6 on: July 10, 2013, 02:24:27 pm »
tbh it's a bit messy at the moment, there are dependencies you probably won't see / realise until you find things not building or working.

there have been various discussions about this on mamedev as of late, including talk / experiments towards improving the dependency detection so that devs can make easier use of the tiny build function (and likewise mobile targets etc.) but right now you really need to know what cores you need, and what drivers are related to the ones you want ;-)

There are no actual runtime benefits to cutting out games tho, any modern OS will only load in what it needs and there is absolutely no performance difference.  A good frontend can filter things you don't want to see by driver already (which is significantly easier than modding thing not to compile)  The only reason you'd actually need a reduced build is if you need a quicker compile because you're doing development on a limited box.

jimmer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:February 17, 2025, 02:48:38 pm
  • I want to play Defender like at the arcade.
Re: How to add a different ROM into MAME (and keep the original)
« Reply #7 on: July 11, 2013, 05:14:44 am »
I can't remember what I was trying to do (probably something that I now know how to do properly) but getting a compilation error after an hour of waiting put me off.  Much rather have a fail after 30s :)

The main use would be if I'm helping someone else set Mame up, and like me they only want 5 or 6 games.
On forums jimmer speaks for himself as a Defender fan, not as proprietor of www.jbgaming.co.uk  << Is that advertising or disclosure ? or both ?

Haze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1296
  • Last login:October 04, 2023, 08:30:02 am
  • I want to build my own arcade controls!
    • MAME Development Blog
Re: How to add a different ROM into MAME (and keep the original)
« Reply #8 on: July 11, 2013, 07:35:56 am »
I can't remember what I was trying to do (probably something that I now know how to do properly) but getting a compilation error after an hour of waiting put me off.  Much rather have a fail after 30s :)

The main use would be if I'm helping someone else set Mame up, and like me they only want 5 or 6 games.

Still don't really see the benefit.. If you're going to be giving them MAME with 5 or 6 games it doesn't really matter what you give them.  If you give them a build with 5-6 games supported they can run those 5-6 games, if you give them a build with everything supported then they can still run those 5-6 games (the rest won't show up if they don't have the ROMs)

The advantage of giving them the full thing of course is that they can later decide they want to drop some extra roms in, whereas if you give them a build reduced to 5-6 games that's all they'll be able to run with it, ever.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 06, 2025, 12:48:28 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How to add a different ROM into MAME (and keep the original)
« Reply #9 on: July 11, 2013, 06:14:24 pm »
Gotta agree with Haze on this one... there is some benefit in adding hacked roms into mame (the old misfit mame, ect) but taking out games/drivers doesn't really make any sense.  Just add the few games you want to play manually to a front-end... the end user will never interact with mame's command line directly.