Fixing OGGs from .bank files?

Codecs, formats, encoding/decoding of game audio, video and music
ZanaGB
Posts: 4
Joined: Sat May 27, 2017 11:42 am

Fixing OGGs from .bank files?

Post by ZanaGB »

I have been doing some research on trying to get a complete rip of a game's soundtrack for a few days already ( as the official soundtrack is missing a lot of songs ), and i finally managed to find the .bank files where the music is stored, sadly, there are no FSBs or FDPs to my knowledge.

I have tried everything on my hand to no avail, until i found fsbext and it surprisingly extracted the tracks off the .bank file. Sadly, as the tool indicates, the OGGs are dumped as-is and they cannot be played. is there a way to fix the ogg files so they can be played?

I am not familiar at all with the OGG format, and i have tried to insert a blank OGG header off into a copy of the files just to see if that'd make a difference, and it did not.

Is there anything i can do, or is it a lost cause from here?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fixing OGGs from .bank files?

Post by aluigi »

For the FSB archives that use OGG codec you have to use this tool:
viewtopic.php?f=17&t=1901

First you have to dump the FSB archives located in the bank file with this script for quickbms:
http://aluigi.altervista.org/bms/dump_fsbs.bms
Then use fsb_aud_extr.exe on each fsb file dumped by the script
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Fixing OGGs from .bank files?

Post by spider91 »

aluigi wrote:First you have to dump the FSB archives located in the bank file with this script for quickbms:
http://aluigi.altervista.org/bms/dump_fsbs.bms

Banks usually (maybe even always) have FSB5 inside it and this dumper is for FSB1-4. Also there is no vorbis codec in FSB4, only in FSB5. I guess this script is more appropriate
viewtopic.php?p=6506#p6506
ZanaGB
Posts: 4
Joined: Sat May 27, 2017 11:42 am

Re: Fixing OGGs from .bank files?

Post by ZanaGB »

spider91 wrote:
aluigi wrote:First you have to dump the FSB archives located in the bank file with this script for quickbms:
http://aluigi.altervista.org/bms/dump_fsbs.bms

Banks usually (maybe even always) have FSB5 inside it and this dumper is for FSB1-4. Also there is no vorbis codec in FSB4, only in FSB5. I guess this script is more appropriate
viewtopic.php?p=6506#p6506


If i recall correctly, FSBExt reports the .banks i am using as being FSB5, so that is correct. I will be checking out the script and replying back with the results.

Thanks to the both of you!
ZanaGB
Posts: 4
Joined: Sat May 27, 2017 11:42 am

Re: Fixing OGGs from .bank files?

Post by ZanaGB »

Holy Macaroni. I need to check which of the two scripts i used, but i can testify this method works.

Sadly, as soon as i managed to rip this out, the devs have found out about my activity, so, sadly i cannot share the results.

EDIT: Now i got a question, i have found beta content i would like to put back onto place, i know i can just rename the old sound bits with the new names, but, can i rebuild the .bank file?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fixing OGGs from .bank files?

Post by aluigi »

Rebuilding/reimporting? That starts to be difficult.
Let's say you can correctly build the fsb archive by using the official FMOD tools, then you must be sure that the final size is smaller/equal than the original file and then you can try to reimport the fsb archive in the bank file.
ZanaGB
Posts: 4
Joined: Sat May 27, 2017 11:42 am

Re: Fixing OGGs from .bank files?

Post by ZanaGB »

Well, it is a matter of renaming one old file with the name used ingame, so i think the sizes should be the same. Thanks for pointing that out though!