|
Need some help understanding why a modified driver doesn't work (pacman.c)
#220567 - 04/26/10 04:53 AM
|
|
|
Ok, so the story is that I would like to have pacman available on my cab as a parent instead of puckman. I could write lists of games for my frontend, but it's much easier to build a custom mame with the games I like and thats it. This way I can also build a customized roms database with only the games I want, etc.
Anyway, to have pacman as the main game instead of puckman I made a small modification of the driver:
Quote:
fran@miki ~/dev/cocktailmame/custmame0137/src/mame/drivers $ diff pacman.c.orig pacman.c 3463,3466c3463,3466 < ROM_LOAD( "namcopac.6e", 0x0000, 0x1000, CRC(fee263b3) SHA1(87117ba5082cd7a615b4ec7c02dd819003fbd669) ) < ROM_LOAD( "namcopac.6f", 0x1000, 0x1000, CRC(39d1fc83) SHA1(326dbbf94c6fa2e96613dedb53702f8832b47d59) ) < ROM_LOAD( "namcopac.6h", 0x2000, 0x1000, CRC(02083b03) SHA1(7e1945f6eb51f2e51806d0439f975f7a2889b9b8) ) < ROM_LOAD( "namcopac.6j", 0x3000, 0x1000, CRC(7a36fe55) SHA1(01b4c38108d9dc4e48da4f8d685248e1e6821377) ) --- > ROM_LOAD( "pacman.6e", 0x0000, 0x1000, CRC(c1e6ab10) SHA1(e87e059c5be45753f7e9f33dff851f16d6751181) ) > ROM_LOAD( "pacman.6f", 0x1000, 0x1000, CRC(1a6fb2d4) SHA1(674d3a7f00d8be5e38b1fdc208ebef5a92d38329) ) > ROM_LOAD( "pacman.6h", 0x2000, 0x1000, CRC(bcdd1beb) SHA1(8e47e8c2c4d6117d174cdac150392042d3e0a881) ) > ROM_LOAD( "pacman.6j", 0x3000, 0x1000, CRC(817d94e3) SHA1(d4a70d56bb01d27d094d73db8667ffb00ca69cb9) ) 5743c5743 < GAME( 1980, puckman, 0, pacman, pacman, 0, ROT90, "Namco", "PuckMan (Japan set 1)", GAME_SUPPORTS_SAVE ) --- > GAME( 1980, puckman, 0, pacman, pacman, 0, ROT90, "Namco", "Pac-Man", GAME_SUPPORTS_SAVE )
Basically I modified puckman roms and added the pacman ones to the driver. Then I changed the description of puckman for pacman. I know it's dirty, but I think it should work. (I did a less dirty thing before, but didn't work either)
The problem I have is that when I run it I get:
Quote:
fran@miki ~/dev/cocktailmame/custmame0137 $ ./mame64 puckman pacman.6e NOT FOUND pacman.6f NOT FOUND pacman.6h NOT FOUND pacman.6j NOT FOUND Ignoring MAME exception: ERROR: required files are missing, the game cannot be run. ERROR: required files are missing, the game cannot be run.
The strange thing is that those files are there, and in fact clrmame passes the audit without problems, but mame doesn't. (puckman.zip is the same file will run pacman on a clean build if I rename it to pacman.zip)
Any ideas of what could be happening here?
PS: I only have puckman available on mamedriv.c, all other clones are disabled, if it makes any difference (I think it shouldn't, but since I can't understand what's the problem...)
|
|
|
|
Re: Need some help understanding why a modified driver doesn't work (pacman.c)
[Re: franciscohs]
#220593 - 04/26/10 08:47 AM
|
|
|
despite what clrmame says, the problem seems to be in your romset (your changes are correct).
let's do an experiment: try to create a new rom folder (changing mame.ini accordingly) and to put into that a single puckman zipfile containing both the pacman.zip and puckman.zip files from official MAME (create this romset by hand, not with clrmame). then try to lauch it again: it should work...
if it works in this way, then your problem is some parent/clone or split/merging option in clrmame...
|
|
|
redk9258 |
Regular
|
|
|
Reged: 09/21/03
|
Posts: 3968
|
Loc: Troy, Illinois USA
|
|
Send PM
|
|
|
Re: Need some help understanding why a modified driver doesn't work (pacman.c)
[Re: etabeta]
#220608 - 04/26/10 02:12 PM
|
|
|
Couldn't he just change this:
GAME( 1980, pacman, puckman, pacman, pacman, 0, ROT90, "[Namco] (Midway license)", "Pac-Man (Midway)", GAME_SUPPORTS_SAVE )
To this:
GAME( 1980, pacman, 0, pacman, pacman, 0, ROT90, "[Namco] (Midway license)", "Pac-Man (Midway)", GAME_SUPPORTS_SAVE )
That would make Pac-Man a parent without any dependencies on Puckman.
|
|
|
|
Re: Need some help understanding why a modified driver doesn't work (pacman.c)
[Re: redk9258]
#220613 - 04/26/10 02:57 PM
|
|
|
of course, that would work as well.
I was just trying to make his changes working (because MAME-wise his changes should work perfectly)
|
|
|
|
Re: Need some help understanding why a modified driver doesn't work (pacman.c)
[Re: etabeta]
#220619 - 04/26/10 04:11 PM
|
|
|
> of course, that would work as well. > > I was just trying to make his changes working (because MAME-wise his changes should > work perfectly)
Thanks redk9258 for making me feel silly...
That's what I did first (although I also pointed all clones and puckman itself to pacman as parent) but had a similar problem and didn't know if there was some kind of parent/clone code anywhere else on the code that I didn't know about. But really, I appreciate it, you can always learn new things.
Anyway, thanks etabeta, although the problem was another one altogether, isolating the rom on a different folder is what made me realize what was it.
The problem was that I wasn't using the correct ini file and mame was looking on another directory for roms, not the one I had rebuilt.
As an excuse, for some reason my frontend was looking for the mame configuration on the same path as the mame executable and I assumed this was a mame problem (not looking at ~/.mame/mame.ini), it turns out mame itself was using the correct file, but I was modifying the one on the mame executable path.
|
|
|
|