Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: mrclean on September 24, 2008, 06:11:30 pm

Title: MisfitMAME is able to run "Simpsons Tapper" can i run this in regular MAME
Post by: mrclean on September 24, 2008, 06:11:30 pm
MisfitMAME is able to run "Simpsons Tapper" can i run this in regular MAME ? I came across this and would love to also have this on my ROM list playable in MAME, along with keeping the original Tapper, any way to do this ? (http://www.mameworld.net/mrdo/page_img/stapper.png)
Title: Re: MisfitMAME is able to run "Simpsons Tapper" can i run this in regular MAME
Post by: Tafoid on September 24, 2008, 06:27:48 pm
Only way you could do that is add the source from MisfitMAME to the regular MAME source and compile that.  Since it's a hack and not a regular arcade game - it doesn't qualify in MAME's current view of "preservation".  That is the sole reason MisfitMAME exists, to allow you to play the leftover dregs discarded or ignored by MAME.
Title: Re: MisfitMAME is able to run "Simpsons Tapper" can i run this in regular MAME
Post by: Thenasty on September 25, 2008, 08:34:10 am
there is a way, just need to make yourself a batch file to do the dirty work for you.

I run other hack/games that MAME does not support by using a BATCH file doing hte dirty work before I execute the command for the game.
Title: Re: MisfitMAME is able to run "Simpsons Tapper" can i run this in regular MAME
Post by: nipsmg on September 25, 2008, 11:04:00 am
This is fairly easy to do.

Get both the misfitMAME source and the MAME source, and extract them to different directories.

Step1: Find the simpsons tapper definitions

In the MisfitMAME source tree, open "mamedriv.c" and search for "tapper".  You'll see that tapper is an MCR game.

Go into the drivers subdriectory, and open the file mcr.c

Look for a comment that says "Misfitmame Start" at the bottom of the file, and you'll see the code that was added for simpsonstapper:
Code: [Select]
ROM_START( stapper )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "tappg0.bin",   0x00000, 0x4000, CRC(127171d1) SHA1(373e9a9d73b71e100c02862662d025f5ead2f94d) )
ROM_LOAD( "tappg1.bin",   0x04000, 0x4000, CRC(9d6a47f7) SHA1(e493e46fc70a765e54bfdd7ba7ca570e6a5c79d6) )
ROM_LOAD( "tappg2.bin",   0x08000, 0x4000, CRC(3a1f8778) SHA1(cb46a2248289ced7282b1463f433dcb970c42c1a) )
ROM_LOAD( "tappg3.bin",   0x0c000, 0x2000, CRC(e8dcdaa4) SHA1(45bf1571a2418c7dc00ccc7061a3e04e65cb6bff) )

ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for the audio CPU */
ROM_LOAD( "tapsnda7.bin", 0x0000, 0x1000, CRC(0e8bb9d5) SHA1(9e281c340b7702523c86d56317efad9e3688e585) )
ROM_LOAD( "tapsnda8.bin", 0x1000, 0x1000, CRC(0cf0e29b) SHA1(14334b9d2bfece3fe5bda0cbd53158ead8d27e53) )
ROM_LOAD( "tapsnda9.bin", 0x2000, 0x1000, CRC(31eb6dc6) SHA1(b38bba5f12516d899e023f99147868e3402fbd7b) )
ROM_LOAD( "tapsda10.bin", 0x3000, 0x1000, CRC(01a9be6a) SHA1(0011407c1e886071282808c0a561789b1245a789) )

ROM_REGION( 0x08000, REGION_GFX1, ROMREGION_DISPOSE )
ROM_LOAD( "s-tapbg1.bin", 0x00000, 0x4000, CRC(1326da21) SHA1(6886cbb83372ee4c53e19325a1552d312ce5de69) )
ROM_LOAD( "s-tapbg0.bin", 0x04000, 0x4000, CRC(539b93c3) SHA1(6196516940893fd72d0c0f18efa7584a2df44833) )

ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE )
ROM_LOAD( "s-tapfg1.bin", 0x00000, 0x4000, CRC(29dd8e85) SHA1(f7f7e8a3aebf075fb9a2508ce438ed3bbfdcddba) )
ROM_LOAD( "s-tapfg0.bin", 0x04000, 0x4000, CRC(a8ba850f) SHA1(e143dab595e129936a4744266788542422e3c503) )
ROM_LOAD( "s-tapfg3.bin", 0x08000, 0x4000, CRC(3d9133e4) SHA1(3ca946aee704d59a150a9cd8ea02edf5204022e3) )
ROM_LOAD( "s-tapfg2.bin", 0x0c000, 0x4000, CRC(9254d87c) SHA1(084f71436c984cb0c42cd0d07ce47ab0959b64e1) )
ROM_LOAD( "s-tapfg5.bin", 0x10000, 0x4000, CRC(5ec2544f) SHA1(1a919b0a80417c0f0e22bac2ab6932411bd4ad55) )
ROM_LOAD( "s-tapfg4.bin", 0x14000, 0x4000, CRC(9b970c4b) SHA1(f690708107c4923db5ffe344015388199c7e879a) )
ROM_LOAD( "s-tapfg7.bin", 0x18000, 0x4000, CRC(a2ef5c06) SHA1(cce74ff117921eb0438524e7f598fd2117044b1c) )
ROM_LOAD( "s-tapfg6.bin", 0x1c000, 0x4000, CRC(1baca746) SHA1(3c7015e63ab1a3f98485415e212a4b80f648dcae) )

ROM_REGION( 0x0020, REGION_PROMS, 0 )
ROM_LOAD( "5784",         0x0000, 0x0020, CRC(e1281ee9) SHA1(9ac9b01d24affc0ee9227a4364c4fd8f8290343a) )
ROM_END

ROM_START( stapper1 )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "s1-tappg0.bin",0x00000, 0x4000, CRC(c915f608) SHA1(aad2f1944334a7cdb0483613fdad40caab720259) )
ROM_LOAD( "tappg1.bin",   0x04000, 0x4000, CRC(9d6a47f7) SHA1(e493e46fc70a765e54bfdd7ba7ca570e6a5c79d6) )
ROM_LOAD( "tappg2.bin",   0x08000, 0x4000, CRC(3a1f8778) SHA1(cb46a2248289ced7282b1463f433dcb970c42c1a) )
ROM_LOAD( "s1-tappg3.bin",0x0c000, 0x2000, CRC(dd4c785f) SHA1(6e19e77a0af6073c3955c61cf741b13921ce6bf0) )

ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for the audio CPU */
ROM_LOAD( "tapsnda7.bin", 0x0000, 0x1000, CRC(0e8bb9d5) SHA1(9e281c340b7702523c86d56317efad9e3688e585) )
ROM_LOAD( "tapsnda8.bin", 0x1000, 0x1000, CRC(0cf0e29b) SHA1(14334b9d2bfece3fe5bda0cbd53158ead8d27e53) )
ROM_LOAD( "tapsnda9.bin", 0x2000, 0x1000, CRC(31eb6dc6) SHA1(b38bba5f12516d899e023f99147868e3402fbd7b) )
ROM_LOAD( "tapsda10.bin", 0x3000, 0x1000, CRC(01a9be6a) SHA1(0011407c1e886071282808c0a561789b1245a789) )

ROM_REGION( 0x08000, REGION_GFX1, ROMREGION_DISPOSE )
ROM_LOAD( "s-tapbg1.bin", 0x00000, 0x4000, CRC(1326da21) SHA1(6886cbb83372ee4c53e19325a1552d312ce5de69) )
ROM_LOAD( "s-tapbg0.bin", 0x04000, 0x4000, CRC(539b93c3) SHA1(6196516940893fd72d0c0f18efa7584a2df44833) )

ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE )
ROM_LOAD( "s-tapfg1.bin", 0x00000, 0x4000, CRC(29dd8e85) SHA1(f7f7e8a3aebf075fb9a2508ce438ed3bbfdcddba) )
ROM_LOAD( "s-tapfg0.bin", 0x04000, 0x4000, CRC(a8ba850f) SHA1(e143dab595e129936a4744266788542422e3c503) )
ROM_LOAD( "s-tapfg3.bin", 0x08000, 0x4000, CRC(3d9133e4) SHA1(3ca946aee704d59a150a9cd8ea02edf5204022e3) )
ROM_LOAD( "s-tapfg2.bin", 0x0c000, 0x4000, CRC(9254d87c) SHA1(084f71436c984cb0c42cd0d07ce47ab0959b64e1) )
ROM_LOAD( "s-tapfg5.bin", 0x10000, 0x4000, CRC(5ec2544f) SHA1(1a919b0a80417c0f0e22bac2ab6932411bd4ad55) )
ROM_LOAD( "s-tapfg4.bin", 0x14000, 0x4000, CRC(9b970c4b) SHA1(f690708107c4923db5ffe344015388199c7e879a) )
ROM_LOAD( "s-tapfg7.bin", 0x18000, 0x4000, CRC(a2ef5c06) SHA1(cce74ff117921eb0438524e7f598fd2117044b1c) )
ROM_LOAD( "s-tapfg6.bin", 0x1c000, 0x4000, CRC(1baca746) SHA1(3c7015e63ab1a3f98485415e212a4b80f648dcae) )

ROM_REGION( 0x0020, REGION_PROMS, 0 )
ROM_LOAD( "5784",         0x0000, 0x0020, CRC(e1281ee9) SHA1(9ac9b01d24affc0ee9227a4364c4fd8f8290343a) )
ROM_END

and

Code: [Select]
GAME( 2002, stapper,  0,        mcr_91490,     tapper,   mcr_91490, ROT0,  "DC", "Tapper (Simpsons Hack)", GAME_SUPPORTS_SAVE )
GAME( 2002, stapper1, stapper,  mcr_91490,     tapper,   mcr_91490, ROT0,  "DC", "Tapper (Simpsons Hack ver.81)", GAME_SUPPORTS_SAVE )

STEP2: Put into MAME source tree

Now, open up the mcr.c from MAME's source tree. 

Paste each section into that file.  For cleanliness however, i'd put the ROM_REGION code with all the other ROM_REGION code, and the GAME lines with the other tapper GAME lines.

Then, open up mamedriv.c in the MAME source tree and search for tapper:

Add 2 entries for the new drivers so it looks like this:
Code: [Select]
DRIVER( tapper ) /* (c) 1983 */
DRIVER( tappera ) /* (c) 1983 */
DRIVER( sutapper ) /* (c) 1983 */
DRIVER( rbtapper ) /* (c) 1984 */
DRIVER( stapper )   /* (c) 2002 */
DRIVER( stapper1 )  /* (c) 2002 */

Compile and enjoy :)  (you can get the tools needed to compile from mamedev.org.  They give you exact instruction on how to do it.)
Title: Re: MisfitMAME is able to run "Simpsons Tapper" can i run this in regular MAME
Post by: nipsmg on September 25, 2008, 11:07:37 am
ok.. small problem.

MAME seems to have changed the way that ROM regions are defined.
The regions changes from constants like REGION_CPU1 to strings like "main".
Alter your ROM_REGION code for the stapper and stapper1 roms so it looks like below:

Code: [Select]


ROM_START( stapper )
ROM_REGION( 0x10000, "main", 0 ) /* 64k for code */
ROM_LOAD( "tappg0.bin",   0x00000, 0x4000, CRC(127171d1) SHA1(373e9a9d73b71e100c02862662d025f5ead2f94d) )
ROM_LOAD( "tappg1.bin",   0x04000, 0x4000, CRC(9d6a47f7) SHA1(e493e46fc70a765e54bfdd7ba7ca570e6a5c79d6) )
ROM_LOAD( "tappg2.bin",   0x08000, 0x4000, CRC(3a1f8778) SHA1(cb46a2248289ced7282b1463f433dcb970c42c1a) )
ROM_LOAD( "tappg3.bin",   0x0c000, 0x2000, CRC(e8dcdaa4) SHA1(45bf1571a2418c7dc00ccc7061a3e04e65cb6bff) )

ROM_REGION( 0x10000, "ssio", 0 ) /* 64k for the audio CPU */
ROM_LOAD( "tapsnda7.bin", 0x0000, 0x1000, CRC(0e8bb9d5) SHA1(9e281c340b7702523c86d56317efad9e3688e585) )
ROM_LOAD( "tapsnda8.bin", 0x1000, 0x1000, CRC(0cf0e29b) SHA1(14334b9d2bfece3fe5bda0cbd53158ead8d27e53) )
ROM_LOAD( "tapsnda9.bin", 0x2000, 0x1000, CRC(31eb6dc6) SHA1(b38bba5f12516d899e023f99147868e3402fbd7b) )
ROM_LOAD( "tapsda10.bin", 0x3000, 0x1000, CRC(01a9be6a) SHA1(0011407c1e886071282808c0a561789b1245a789) )

ROM_REGION( 0x08000, "gfx1", ROMREGION_DISPOSE )
ROM_LOAD( "s-tapbg1.bin", 0x00000, 0x4000, CRC(1326da21) SHA1(6886cbb83372ee4c53e19325a1552d312ce5de69) )
ROM_LOAD( "s-tapbg0.bin", 0x04000, 0x4000, CRC(539b93c3) SHA1(6196516940893fd72d0c0f18efa7584a2df44833) )

ROM_REGION( 0x20000, "gfx2", ROMREGION_DISPOSE )
ROM_LOAD( "s-tapfg1.bin", 0x00000, 0x4000, CRC(29dd8e85) SHA1(f7f7e8a3aebf075fb9a2508ce438ed3bbfdcddba) )
ROM_LOAD( "s-tapfg0.bin", 0x04000, 0x4000, CRC(a8ba850f) SHA1(e143dab595e129936a4744266788542422e3c503) )
ROM_LOAD( "s-tapfg3.bin", 0x08000, 0x4000, CRC(3d9133e4) SHA1(3ca946aee704d59a150a9cd8ea02edf5204022e3) )
ROM_LOAD( "s-tapfg2.bin", 0x0c000, 0x4000, CRC(9254d87c) SHA1(084f71436c984cb0c42cd0d07ce47ab0959b64e1) )
ROM_LOAD( "s-tapfg5.bin", 0x10000, 0x4000, CRC(5ec2544f) SHA1(1a919b0a80417c0f0e22bac2ab6932411bd4ad55) )
ROM_LOAD( "s-tapfg4.bin", 0x14000, 0x4000, CRC(9b970c4b) SHA1(f690708107c4923db5ffe344015388199c7e879a) )
ROM_LOAD( "s-tapfg7.bin", 0x18000, 0x4000, CRC(a2ef5c06) SHA1(cce74ff117921eb0438524e7f598fd2117044b1c) )
ROM_LOAD( "s-tapfg6.bin", 0x1c000, 0x4000, CRC(1baca746) SHA1(3c7015e63ab1a3f98485415e212a4b80f648dcae) )

ROM_REGION( 0x0020, "proms", 0 )
ROM_LOAD( "5784",         0x0000, 0x0020, CRC(e1281ee9) SHA1(9ac9b01d24affc0ee9227a4364c4fd8f8290343a) )
ROM_END

Title: Re: MisfitMAME is able to run "Simpsons Tapper" can i run this in regular MAME
Post by: nipsmg on September 25, 2008, 02:25:36 pm
Since I had never even heard of this hack, I figured I might as well try my own directions and make sure they work..

Screenshots attached.

Title: Re: MisfitMAME is able to run "Simpsons Tapper" can i run this in regular MAME
Post by: Thenasty on September 25, 2008, 03:54:59 pm
for those who don;t want to compile MAME or run Misfitmae, just rename the simpsons tapper to tapper.zip

ie:  stapper.zip - tapper.zip   and run mame tapper. You might get crc/sha error but it will run with no problem.

This is the way I run of the hacks when I got lazy adding it to my own build and compiling.
I just make a batch to rename/copy the ROM.ZIP and execute the emulator etc....


Title: Re: MisfitMAME is able to run "Simpsons Tapper" can i run this in regular MAME
Post by: RetroBorg on September 26, 2008, 10:11:22 pm
This Simpson's hack of Tapper always seemed half finished to me, I can't believe the Budweiser logo wasn't changed to a Duff beer logo.