Help with python script for .fbrb files from Battlefield Bad Company 2

Doubts, help and support about QuickBMS and other game research tools
Graveyard
Posts: 54
Joined: Sun Nov 12, 2017 12:30 pm

Help with python script for .fbrb files from Battlefield Bad Company 2

Post by Graveyard »

Hello friends.

I found this python script that extracts and reimports .fbrb files used in Battlefiel BC2.

http://www.bfeditor.org/forums/index.ph ... torpacker/


However, at the time of re-import, the script compresses the .fbrb file. Would it be possible for someone with more knowledge to edit it so it does not compress the reimported files? I'm using it for a translation, and the game does not recognize the compressed file.

I tried to use Quickbms, but the .bms script for the respective file does not accept reimportation.

I do not know if this is the right place to post this topic, if it is not, transfer it to the location you have chosen.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Help with python script for .fbrb files from Battlefield Bad Company 2

Post by Acewell »

unless i'm misunderstanding the script, if you set line 16 of the script to 0 (zero) it should skip the compression,
try change this

Code: Select all

compressionlevel=1

to this

Code: Select all

compressionlevel=0
Graveyard
Posts: 54
Joined: Sun Nov 12, 2017 12:30 pm

Re: Help with python script for .fbrb files from Battlefield Bad Company 2

Post by Graveyard »

Acewell wrote:unless i'm misunderstanding the script, if you set line 16 of the script to 0 (zero) it should skip the compression,
try change this

Code: Select all

compressionlevel=1

to this

Code: Select all

compressionlevel=0



Thanks, you've eliminated the compression. :D

Now it's the in-game tests. I will report the results as soon as I edit the texts. 8-)


Edit. worked perfectly. Thank you very much. :P