MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

franciscohs
M.A.M.E. fan
Reged: 10/04/08
Posts: 174
Loc: Argentina
Send PM
Need some help understanding why a modified driver doesn't work (pacman.c)
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...)







Entire thread
Subject Posted by Posted on
* Need some help understanding why a modified driver doesn't work (pacman.c) franciscohs 04/26/10 04:53 AM
. * Re: Need some help understanding why a modified driver doesn't work (pacman.c) etabeta  04/26/10 08:47 AM
. * Re: Need some help understanding why a modified driver doesn't work (pacman.c) redk9258  04/26/10 02:12 PM
. * Re: Need some help understanding why a modified driver doesn't work (pacman.c) etabeta  04/26/10 02:57 PM
. * Re: Need some help understanding why a modified driver doesn't work (pacman.c) franciscohs  04/26/10 04:11 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 27 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 7578