Battle For Bikini Bottom Extraction

Codecs, formats, encoding/decoding of game audio, video and music
Cameron007
Posts: 30
Joined: Sat Sep 12, 2015 11:59 pm

Battle For Bikini Bottom Extraction

Post by Cameron007 »

I am trying to extract music from the Battle for Bikini Bottom game. I know they should be in the .HOP files, but not only can I not find the supposed music within, but I also can't even cleanly extract what I can find. I'm using the free version of Game Extractor to browse the .HOP files. Here are some samples:

https://mega.nz/#!UstiyArY!IWlIpC4wmYdY ... ExDnmwuolg
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Battle For Bikini Bottom Extraction

Post by aluigi »

Cameron007
Posts: 30
Joined: Sat Sep 12, 2015 11:59 pm

Re: Battle For Bikini Bottom Extraction

Post by Cameron007 »

That did something, but I still don't know about the music. I used it on the .HOP files and got a bunch of folders, none of which contained it. The closest I got was some sound effects.
Cameron007
Posts: 30
Joined: Sat Sep 12, 2015 11:59 pm

Re: Battle For Bikini Bottom Extraction

Post by Cameron007 »

...anything...anyone...?
brendan19
Posts: 144
Joined: Fri Aug 08, 2014 11:25 am

Re: Battle For Bikini Bottom Extraction

Post by brendan19 »

I don't think they contain music because none of the files are very big at all. All far too small to have music in them.
Cameron007
Posts: 30
Joined: Sat Sep 12, 2015 11:59 pm

Re: Battle For Bikini Bottom Extraction

Post by Cameron007 »

Where might it be then?
Cameron007
Posts: 30
Joined: Sat Sep 12, 2015 11:59 pm

Re: Battle For Bikini Bottom Extraction

Post by Cameron007 »

I'm gonna resurrect this. Does anyone know how to do these?
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Battle For Bikini Bottom Extraction

Post by Mygoshi »

Which version are you talking about first: PS2, GC or Xbox?
Last edited by Mygoshi on Fri Jan 14, 2022 9:42 pm, edited 1 time in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Battle For Bikini Bottom Extraction

Post by Mygoshi »

Ok it's not necessary. The file that contains music is in the MN folder, it's called MNU5.HIP

Extract it with this script:

Code: Select all

Endian Big ;
findloc OFFSET string "\x50\x43\x4E\x54" 0 0 ;
If OFFSET = 0 ;
Print error ;
CleanExit ;
EndIF ;
GoTo OFFSET 0 ;
GoTo 0x8 0 SEEK_CUR ;
Get files Long 0 ;
findloc OFFSET string "\x41\x48\x44\x52" 0 0 ;
GoTo OFFSET 0 ;
SavePos base 0 ;
For x = 1 To files ;
GoTo base 0 ;
GoTo 0xC 0 SEEK_CUR ;
GetDString ext 4 0 ;
GoTo base 0 ;
GoTo 0x10 0 SEEK_CUR ;
Get offset Long 0 ;
Get size Long 0 ;
GoTo 0xC 0 SEEK_CUR ;
Get toend Long 0 ;
SavePos base 0 ;
Math base += toend ;
GoTo 0x4 0 SEEK_CUR ;
Get name String 0 ;
string name += . ;
string name += ext ;
Log name offset size 0 ;
Next x ;


Then, you have .snds music, open VGMToolbox, create a genh with these settings:
Header skip: 0x0
Channel: 1 (mono)
Freq: 44100
Interleave: 0x10

Play the GENH with vgmstream and it's finished... don't forget to convert into wav or flac, mp3 reduces the quality.

Also, the game OST is in mono for all platforms, gc & xbox. I tried to find stereo sources but not possible.
Last edited by Mygoshi on Thu Feb 18, 2021 7:45 pm, edited 2 times in total.
Cameron007
Posts: 30
Joined: Sat Sep 12, 2015 11:59 pm

Re: Battle For Bikini Bottom Extraction

Post by Cameron007 »

Mygoshi wrote:Ok it's not necessary. The file that contains music is in the MN folder, it's called MNU5.HIP
Extract it with this script :


Code: Select all

Endian Big ;
findloc OFFSET string "\x50\x43\x4E\x54" 0 0 ;
If OFFSET = 0 ;
Print error ;
CleanExit ;
EndIF ;
GoTo OFFSET 0 ;
GoTo 0x8 0 SEEK_CUR ;
Get files Long 0 ;
findloc OFFSET string "\x41\x48\x44\x52" 0 0 ;
GoTo OFFSET 0 ;
SavePos base 0 ;
For x = 1 To files ;
GoTo base 0 ;
GoTo 0xC 0 SEEK_CUR ;
GetDString ext 4 0 ;
GoTo base 0 ;
GoTo 0x10 0 SEEK_CUR ;
Get offset Long 0 ;
Get size Long 0 ;
GoTo 0xC 0 SEEK_CUR ;
Get toend Long 0 ;
SavePos base 0 ;
Math base += toend ;
GoTo 0x4 0 SEEK_CUR ;
Get name String 0 ;
string name += . ;
string name += ext ;
Log name offset size 0 ;
Next x ;


Then, you have .snds musics, open VGMTOOlbox, create a genh with these settings:
Header skip: 0x0
Channel: 1 (mono)
Freq: 44100
Interleave: 0x10

Play the GENH with vgmstream and finished.. don't forget to convert into wav or flac, mp3 reduce the quality.
Also, the game OST is in mono for all platforms, gc & xbox. I tried to find stereo sources but not possible.

I don't know how you do it, but you sure know a lot about ripping. Do you know how long I've been trying to do this game?
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Battle For Bikini Bottom Extraction

Post by Mygoshi »

Aluigi and his team know a lot of more things than me. No, I don't now how long you've been trying to rip the game.
Cameron007
Posts: 30
Joined: Sat Sep 12, 2015 11:59 pm

Re: Battle For Bikini Bottom Extraction

Post by Cameron007 »

Mygoshi wrote:Aluigi and his team know a lot of more things than me. No, I don't now how long you've been trying to rip the game.

A long time. Anyways, thanks a lot. This will help me with other THQ games. Is the music always in the same folder since they're all structured the same?
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Battle For Bikini Bottom Extraction

Post by Mygoshi »

No, you just have to look the biggest file, usually the biggest contains music.