XeNTaX Forum Index
Forum Home Tools Blog GFFC MultiEx
It is currently Tue Sep 07, 2010 11:02 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 113 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next
Author Message
 Post subject: NfS Shift .BFF files
PostPosted: Wed Sep 16, 2009 6:49 pm 
Offline
ultra-n00b

Joined: Sat Jun 20, 2009 2:47 pm
Posts: 6
Hi.
Anybody know how to extract these .BFF files?

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


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Fri Sep 18, 2009 4:30 pm 
Offline
beginner

Joined: Mon Mar 12, 2007 3:38 pm
Posts: 27
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


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Fri Sep 18, 2009 7:10 pm 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
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.


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 9:54 am 
Offline
VIP member
VIP member
User avatar

Joined: Sun Apr 17, 2005 11:00 am
Posts: 476
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

_________________
Image


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 12:16 pm 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
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


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 12:49 pm 
Offline
ultra-n00b

Joined: Sat Jun 20, 2009 2:47 pm
Posts: 6
Thank you Bugtest, you rock. :keke:


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 1:25 pm 
Offline
VIP member
VIP member
User avatar

Joined: Sun Apr 17, 2005 11:00 am
Posts: 476
I found some info about Xmemcompress http://forums.gtamodding.ru/index.php?showtopic=10

_________________
Image


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 2:13 pm 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
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


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 3:31 pm 
Offline
VIP member
VIP member
User avatar

Joined: Sun Apr 17, 2005 11:00 am
Posts: 476
:eek:

_________________
Image


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 9:54 pm 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
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


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 10:50 pm 
Offline
advanced
User avatar

Joined: Sat Sep 19, 2009 10:26 pm
Posts: 41
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!


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 11:09 pm 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
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);


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sat Sep 19, 2009 11:44 pm 
Offline
n00b

Joined: Sun Jul 26, 2009 2:10 am
Posts: 19
Cool :) I hope soon we should have compiler working, good job!


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sun Sep 20, 2009 4:55 am 
Offline
advanced
User avatar

Joined: Sat Sep 19, 2009 10:26 pm
Posts: 41
zeeh wrote:
Cool :) I hope soon we should have compiler working, good job!


Are you making one? It would be great!


Top
 Profile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sun Sep 20, 2009 6:39 pm 
Offline
mega-veteran
mega-veteran

Joined: Sun Sep 20, 2009 5:41 pm
Posts: 175
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 :)


Top
 Profile  
 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 113 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group