Hi.
Anybody know how to extract these .BFF files?
Samples: http://66.7.218.134/~usaportu/pub/BFFs.rar
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
NfS Shift .BFF files
-
- advanced
- Posts: 65
- Joined: Mon Mar 12, 2007 3:38 pm
- Has thanked: 5 times
- Been thanked: 4 times
Re: NfS Shift .BFF files
this game use zlib compression i looking into shift.exe with hexadecimal and i found zlib:
Error decompressing asset (zlib inflate): %s in pakfile %s
also i suppose the bff archives contain xml files
you can try to use Jaeder Naub to scan and rip the files inside bff archives
Error decompressing asset (zlib inflate): %s in pakfile %s
also i suppose the bff archives contain xml files
you can try to use Jaeder Naub to scan and rip the files inside bff archives
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: NfS Shift .BFF files
no, it's not zlib.
the most probable hypothesis it's that it uses chunks of 0x800 bytes compressed with a lzx-like algorithm.
this is the max I can say without the game.
the most probable hypothesis it's that it uses chunks of 0x800 bytes compressed with a lzx-like algorithm.
this is the max I can say without the game.
- Savage
- VIP member
- Posts: 559
- Joined: Sun Apr 17, 2005 11:00 am
- Has thanked: 16 times
- Been thanked: 18 times
Re: NfS Shift .BFF files
Maybe helps..here more examples:
http://www.zshare.net/download/65787584f473ba87/
And the official demo:
http://needforspeed.com/web/nfs/downloads
Direct link: http://cdn.needforspeed.com/data/downlo ... PCDEMO.exe 1.1Gb's
http://www.zshare.net/download/65787584f473ba87/
And the official demo:
http://needforspeed.com/web/nfs/downloads
Direct link: http://cdn.needforspeed.com/data/downlo ... PCDEMO.exe 1.1Gb's
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: NfS Shift .BFF files
I have started to work on it this morning.
I have already figured almost all the fields included the rc4 encryption used in some bffs.
the compression algorithm should be called XMemDecompress and I guess it's referred to a cross-platform xbox function.
I will keep you update if there are news
I have already figured almost all the fields included the rc4 encryption used in some bffs.
the compression algorithm should be called XMemDecompress and I guess it's referred to a cross-platform xbox function.
I will keep you update if there are news
- Savage
- VIP member
- Posts: 559
- Joined: Sun Apr 17, 2005 11:00 am
- Has thanked: 16 times
- Been thanked: 18 times
Re: NfS Shift .BFF files
I found some info about Xmemcompress http://forums.gtamodding.ru/index.php?showtopic=10
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: NfS Shift .BFF files
good news, I did it :)
so stay tuned for a new version of QuickBMS and the needed script when all the tests will be finished completely
so stay tuned for a new version of QuickBMS and the needed script when all the tests will be finished completely
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: NfS Shift .BFF files
new version of quickbms: http://aluigi.org/papers.htm#quickbms
and the needed script for Need for Speed Shift: http://aluigi.org/papers/bms/nfsshift.bms
and the needed script for Need for Speed Shift: http://aluigi.org/papers/bms/nfsshift.bms
- japamd
- advanced
- Posts: 41
- Joined: Sat Sep 19, 2009 10:26 pm
- Has thanked: 3 times
- Been thanked: 8 times
Re: NfS Shift .BFF files
Wonderful job!Bugtest wrote:new version of quickbms: http://aluigi.org/papers.htm#quickbms
and the needed script for Need for Speed Shift: http://aluigi.org/papers/bms/nfsshift.bms
If the string are translated, how do I put the files together again?
Thanks!
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: NfS Shift .BFF files
I make only the extractors.
if someone wants to write a quick rebuilder I suggest to use X12d equal to 0 (no encryption) and ever type 0 for each file so that it's not needed to use the compression.
the crc calculated on the files is just the simple classic one:
if someone wants to write a quick rebuilder I suggest to use X12d equal to 0 (no encryption) and ever type 0 for each file so that it's not needed to use the compression.
the crc calculated on the files is just the simple classic one:
Code: Select all
unsigned int crtable[...0x77073096 polynomial...];
unsigned int crc = 0xffffffff;
for(i = 0; i < len; i++) {
crc = crctable[(data[i] ^ crc) & 0xff] ^ (crc >> 8);
}
return(crc);
-
- mega-veteran
- Posts: 180
- Joined: Sun Sep 20, 2009 5:41 pm
- Has thanked: 31 times
- Been thanked: 20 times
Re: NfS Shift .BFF files
Don't know if this is against the Rules here but ...
I bet please please create a BFF Rebuilder because Shift don't reads extracted files and I want to start modding
I bet please please create a BFF Rebuilder because Shift don't reads extracted files and I want to start modding