Hello,
Hugo: The Evil Mirror has its data stored in a file called Hugo5.cd.
Multiple "MDIC" markers are found inside and data seems to be padded with 0xDEADBEEF.
It doesn't seem to be compressed, as many RIFF headers are found easily inside.
I'd like to extract the files from this type of archive but I haven't found a BMS script for that yet.
I'm attaching the archives in question:
Hugo5.cd from the PC version (39 MB):
https://www26.zippyshare.com/v/5Q8IGQiX/file.html
Hugo5.cd from the PSX version (24.9 MB):
https://www26.zippyshare.com/v/4nHRyP7y/file.html
Could someone help out with this type of archive?
Regards,
NT
Hugo: The Evil Mirror "Hugo5.cd" archive with "MDIC" markers inside
-
- Posts: 4
- Joined: Thu Nov 10, 2022 3:43 am
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: Hugo: The Evil Mirror "Hugo5.cd" archive with "MDIC" markers inside
Is there an header file other than the CD file? Something like "Hugo5.idx" or something. But if there's no such files exist, maybe the table of contents was hardcoded in the game's executable. For that I need the EXE file for the PC and SLUS/SLES file for the PSX version.
-
- Posts: 4
- Joined: Thu Nov 10, 2022 3:43 am
Re: Hugo: The Evil Mirror "Hugo5.cd" archive with "MDIC" markers inside
No such additional file exists I'm afraid, so I'm attaching the requested binaries.
PC Hugo5.exe:
https://www33.zippyshare.com/v/wvW7PR5z/file.html
PSX SLES_038.36:
https://www33.zippyshare.com/v/LmJjIWU1/file.html
Thanks for checking it out!
PC Hugo5.exe:
https://www33.zippyshare.com/v/wvW7PR5z/file.html
PSX SLES_038.36:
https://www33.zippyshare.com/v/LmJjIWU1/file.html
Thanks for checking it out!
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: Hugo: The Evil Mirror "Hugo5.cd" archive with "MDIC" markers inside
I've checked the executable and I haven't found the TOCs in there as well unfortunately. Or maybe the TOCs was actually in those individual MDIC chunks, so I made the BMS script like this:
So, from what you've seen from the script, there's a basic info of the file type defined in the offset 0x0c in the each chunks (ex: 0x02 for textures/images, contains info for dimensions/WxH and possibly bits per pixel). However, my script doesn't handle those infos yet so most, if not all file types are extracted as a headerless raw data and you have to use a tool to view it as such (like TiledGGD or Kuriimu2 for the graphics). The audios are extracted as a normal WAV files though (For PC at least. PSX version however, didn't have any headers so you'll need to use something like PSound or MFAudio since they are using PSX ADPCM codec).
Also, no filename records either, so don't expect any proper ones.
Code: Select all
get CD_SIZE asize
for i = 0
savepos CHUNK_POS
if CHUNK_POS >= CD_SIZE
break
endif
get MAGIC long # MDIC
get OFF_ABS long
get SIZE long
get FILE_TYPE long
get TYPE_INFO1 long
get TYPE_INFO2 long
string NAME p "%05d." i
savepos OFFSET
if SIZE == 0
log NAME OFFSET 0
math CHUNK_POS + 0x800
else
log NAME OFFSET SIZE
math CHUNK_POS + OFF_ABS
math CHUNK_POS + SIZE
math CHUNK_POS x+ 0x800
endif
goto CHUNK_POS
next i
Also, no filename records either, so don't expect any proper ones.
-
- Posts: 4
- Joined: Thu Nov 10, 2022 3:43 am
Re: Hugo: The Evil Mirror "Hugo5.cd" archive with "MDIC" markers inside
Thanks for the script, BloodRaynare. The script works and the largest files are the WAV sound effects. It's odd that there are no music files, though.
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: Hugo: The Evil Mirror "Hugo5.cd" archive with "MDIC" markers inside
Music files are likely XA ADPCM (for PSX) or Audio CD tracks (for PC) and were stored outside the Hugo5.CD archive. For PSX, you can try scan the disc image with jPSXDec. As for PC version, you can try to rip the CD audio tracks with supported media players (like foobar) by mounting the CUE files with Virtual Drive tools or drag the CUE files directly or even access the disc directly if you have the drive and the game's disc as well.NTxC wrote:Thanks for the script, BloodRaynare. The script works and the largest files are the WAV sound effects. It's odd that there are no music files, though.
-
- Posts: 4
- Joined: Thu Nov 10, 2022 3:43 am
Re: Hugo: The Evil Mirror "Hugo5.cd" archive with "MDIC" markers inside
You were right, the music tracks were stored as Audio CD. Crazy how I didn't even think of that in the first place! Thanks for the help, appreciate it very much.