Deconstructing the music of HPatHBP with the mpf.info

Programming related discussions related to game research
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Deconstructing the music of HPatHBP with the mpf.info

Post by AlphaTwentyThree »

Hello folks,

I'm currently taking a deep-dive into Harry Potter and the Half-Blood Prince (PS2 at the moment) because I sense a bit of an opportunity to understand the music engine of at least some EA games here.
The main music archive (hbpmusic.mus) just consists of eamus files without any TOC at the start or the end. It includes 460 files in total. The files can be extracted and played easily. However, deep inside the game's structure is a file called "HBPMusic.mpf.info" which corresponds to the music archive in some way. It has names and all kinds of data saved inside. The names give me hope to finally get some correlation between the split mus segments.
I've attached the file and my stump of a script so you can at least begin to work with the info at hand. The first TOC lists the position of filenames as well as two unknown short variables for each file. After this TOC follows a "PFD" portion (offset and size stored in header). Things I can see in this PFD:
- 0x4c: 0x44f entries of 0x2
- 0x2578: 0x32 entries of 0x18
- 0x2cf8: 0x30 entries of 0x18
- 0x61a8: 0xfe entries of 0x2
- 0xacbc: 0x5c entries of 0x18 (0x8a0)
- 0xacc0: 0x1cb entries of 0x8 (0xe58)
Does anybody have any ideas about this mpf.info file?
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Deconstructing the music of HPatHBP with the mpf.info

Post by AlphaTwentyThree »

just added some observations about the PFD portion