XeNTaX
http://forum.xentax.com/

NfS Shift .BFF files
http://forum.xentax.com/viewtopic.php?f=10&t=3717
Page 1 of 8

Author:  dijotp [ Wed Sep 16, 2009 6:49 pm ]
Post subject:  NfS Shift .BFF files

Hi.
Anybody know how to extract these .BFF files?

Samples: http://66.7.218.134/~usaportu/pub/BFFs.rar

Author:  demolos [ Fri Sep 18, 2009 4:30 pm ]
Post subject:  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

Author:  aluigi [ Fri Sep 18, 2009 7:10 pm ]
Post subject:  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.

Author:  Savage [ Sat Sep 19, 2009 9:54 am ]
Post subject:  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

Author:  aluigi [ Sat Sep 19, 2009 12:16 pm ]
Post subject:  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

Author:  dijotp [ Sat Sep 19, 2009 12:49 pm ]
Post subject:  Re: NfS Shift .BFF files

Thank you Bugtest, you rock. :keke:

Author:  Savage [ Sat Sep 19, 2009 1:25 pm ]
Post subject:  Re: NfS Shift .BFF files

I found some info about Xmemcompress http://forums.gtamodding.ru/index.php?showtopic=10

Author:  aluigi [ Sat Sep 19, 2009 2:13 pm ]
Post subject:  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

Author:  Savage [ Sat Sep 19, 2009 3:31 pm ]
Post subject:  Re: NfS Shift .BFF files

:eek:

Author:  aluigi [ Sat Sep 19, 2009 9:54 pm ]
Post subject:  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

Author:  japamd [ Sat Sep 19, 2009 10:50 pm ]
Post subject:  Re: NfS Shift .BFF files

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


Wonderful job!

If the string are translated, how do I put the files together again?

Thanks!

Author:  aluigi [ Sat Sep 19, 2009 11:09 pm ]
Post subject:  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:
Code:
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);

Author:  zeeh [ Sat Sep 19, 2009 11:44 pm ]
Post subject:  Re: NfS Shift .BFF files

Cool :) I hope soon we should have compiler working, good job!

Author:  japamd [ Sun Sep 20, 2009 4:55 am ]
Post subject:  Re: NfS Shift .BFF files

zeeh wrote:
Cool :) I hope soon we should have compiler working, good job!


Are you making one? It would be great!

Author:  Simon [ Sun Sep 20, 2009 6:39 pm ]
Post subject:  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 :)

Page 1 of 8 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/