Unpacking and then repacking an FSB?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Miles2345
Posts: 76
Joined: Thu Oct 16, 2014 3:05 am

Unpacking and then repacking an FSB?

Post by Miles2345 »

Is it possible to modify the .wav's inside of an FMOD sound bank using any of your tools? I want to be able to change the music in a game, but I've found no luck searching around for information. There is only one track in this song I think.

http://puu.sh/hzgF3.fsb
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unpacking and then repacking an FSB?

Post by aluigi »

fsbext probably can do that because it has a rebuilding feature.
fsbext -s dump_files.dat input.fsb
fsbext -s dump_files.dat -r output.fsb

dump_files.dat is a file that is generated by fsbext, it contains information about the original structure of the FSB archive.

Note: in case of FSB5 (FSB4 too?) and multichannel mp3s you need to add also the -m option during the extraction because fsbext dumps the multichannel mp3s as one single stereo or multiple mp3 files that are not valid for rebuilding.
Your file uses a normal stereo mp3 so this note is not for this case.
Miles2345
Posts: 76
Joined: Thu Oct 16, 2014 3:05 am

Re: Unpacking and then repacking an FSB?

Post by Miles2345 »

https://www.youtube.com/watch?v=ASpzokGF_O4

The music skips a lot. I tried it with both a song longer than the original, and one of the same exact length, I had the same problem both times.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unpacking and then repacking an FSB?

Post by aluigi »

Has your new file the same number of channels (max 2) and frequency?
As far as I know the rebuild code is correct so I don't know what may be the reason.