Does the MAME 2003 core support CHD images?

I have been searching, but no luck answering this question. The impression I get is that CHDs are probably supposed to work in MAME 2003, but no one has written up an example of successful CHD use with MAME 2003 that I can track down.

These forum posts seem representative of people struggling to get CHDs to work:

[ul] [li]http://libretro.com/forums/showthread.php?t=1089 (from a little while ago)[/li][li]http://libretro.com/forums/showthread.php?t=5983&p=41532&viewfull=1#post41532[/li][/ul]

On my end, I’m working with Lakka and the “MAME 2003 Reference Set,” which includes CHDs. I’m glad to do any testing or logging if it means I can help put the question to rest.

romdir/gamename/gamename.chd is the right format. it seems to locate the file, but it doesn’t work for whatever reason. i’ve only tried with killer instinct 1 & 2 - perhaps you could test with others?

other than that, i think it probably need someone to debug through the code and workout what the issue is.

OK, I think the heart of the issue is this error:

blitz.chd NOT FOUND ERROR: required files are missing, the game cannot be run. RetroArch [ERROR] :: Failed to load content.

I’ve spot checked a few CHD games and they all seem to behave this way. Maybe it’s time to file a bug?

A larger excerpt of the log, for context:


RetroArch [INFO] :: Using content: /storage/roms/MAME 0.78/blitz.zip.
RetroArch [INFO] :: arg #0: retroarch
RetroArch [INFO] :: arg #1: /storage/roms/MAME 0.78/blitz.zip
RetroArch [INFO] :: arg #2: -s
RetroArch [INFO] :: arg #3: /storage/savefiles
RetroArch [INFO] :: arg #4: -S
RetroArch [INFO] :: arg #5: /storage/savestates
RetroArch [INFO] :: arg #6: -c
RetroArch [INFO] :: arg #7: /storage/.config/retroarch/retroarch.cfg
RetroArch [INFO] :: arg #8: -L
RetroArch [INFO] :: arg #9: /tmp/cores/mame2003_libretro.so
RetroArch [INFO] :: [KMS]: Missed 2 VBlank(s) (Frame: 3428, DRM frame: 23269).
RetroArch [INFO] :: Threaded video stats: Frames pushed: 2285, Frames dropped: 0.
RetroArch [INFO] :: Monitor FPS estimation is disabled for threaded video.
RetroArch [INFO] :: Redirecting save file to "/storage/savefiles/blitz.srm".
RetroArch [INFO] :: Redirecting savestate to "/storage/savestates/blitz.state".
RetroArch [INFO] :: === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3
Built: Jun  2 2016
RetroArch [INFO] :: Version: 1.3.4
RetroArch [INFO] :: Git: f8b1f05
RetroArch [INFO] :: =================================================
RetroArch [INFO] :: Loading dynamic libretro core from: "/tmp/cores/mame2003_libretro.so"
RetroArch [INFO] :: Overrides: no core-specific overrides found at /storage/.config/retroarch/config/MAME 2003/MAME 2003.cfg
RetroArch [INFO] :: Overrides: no game-specific overrides found at /storage/.config/retroarch/config/MAME 2003/blitz.cfg
RetroArch [INFO] :: Environ SET_VARIABLES.
RetroArch [INFO] :: Remaps: core name: MAME 2003
RetroArch [INFO] :: Remaps: game name: blitz
RetroArch [INFO] :: Remaps: remap directory: /storage/remappings
RetroArch [INFO] :: Remaps: no game-specific remap found at /storage/remappings/MAME 2003/blitz.rmp
RetroArch [INFO] :: Remaps: no core-specific remap found at /storage/remappings/MAME 2003/MAME 2003.rmp
RetroArch [INFO] :: Environ GET_LOG_INTERFACE.
RetroArch [INFO] :: Environ GET_VARIABLE mame2003-frameskip:
RetroArch [INFO] ::     4
RetroArch [INFO] :: Environ GET_VARIABLE mame2003-dcs-speedhack:
RetroArch [INFO] ::     enabled
RetroArch [INFO] :: Environ GET_VARIABLE mame2003-skip_disclaimer:
RetroArch [INFO] ::     enabled
RetroArch [INFO] :: Environ PERFORMANCE_LEVEL: 10.
RetroArch [INFO] :: Content loading skipped. Implementation will load it on its own.
RetroArch [libretro INFO] :: Found game: blitz [blitz].
RetroArch [INFO] :: Environ SET_ROTATION: 0
RetroArch [libretro INFO] :: osd_fopen (buffer = [/storage/roms/MAME 0.78/blitz/sound102.u95]), (systemDir: [/storage/roms]), (path type dir: [rom]), (path: [1]), (filename: [blitz/sound102.u95])
RetroArch [libretro INFO] :: osd_fopen (buffer = [/storage/roms/MAME 0.78/blitz.zip]), (systemDir: [/storage/roms]), (path type dir: [rom]), (path: [1]), (filename: [blitz.zip])
RetroArch [libretro INFO] :: osd_fopen (buffer = [/storage/roms/MAME 0.78/blitz/blitz1_2.u32]), (systemDir: [/storage/roms]), (path type dir: [rom]), (path: [1]), (filename: [blitz/blitz1_2.u32])
RetroArch [libretro INFO] :: osd_fopen (buffer = [/storage/roms/MAME 0.78/blitz.zip]), (systemDir: [/storage/roms]), (path type dir: [rom]), (path: [1]), (filename: [blitz.zip])
RetroArch [libretro INFO] :: osd_fopen (buffer = [/storage/roms/image/blitz/blitz.chd]), (systemDir: [/storage/roms]), (path type dir: [image]), (path: [2]), (filename: [blitz/blitz.chd])
RetroArch [libretro INFO] :: osd_fopen (buffer = [/storage/roms/image//blitz.chd]), (systemDir: [/storage/roms]), (path type dir: [image]), (path: [2]), (filename: [/blitz.chd])
blitz.chd    NOT FOUND
ERROR: required files are missing, the game cannot be run.
RetroArch [ERROR] :: Failed to load content
.

Yeah, seems like a good option at this point:

[QUOTE=hunterk;41866]Yeah, seems like a good option at this point: https://github.com/libretro/mame2003-libretro/issues[/QUOTE]

Alrighty, thanks! Here’s what I put together for the github issue tracker: https://github.com/libretro/mame2003-libretro/issues/38

Thanks for posting the bug…I had the same issue…mame2003 just doesnt look for the CHD’s correctly.

i updated the issue. if that’s the errors you get, you have an old version of mame2003 or have your files in the wrong place. it still doesn’t work, but not for the above reason. anyway, lets keep everything in the issue tracker.