XeNTaX Forum Index
Forum Home GFFC MultiEx
It is currently Tue Feb 09, 2010 6:17 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 111 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
Thanks: 3
Thanked: 0 time in 0 post
Hi.
Anybody know how to extract these .BFF files?

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


Top
 Thank the author of this postProfile  
 
 
 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: 22
Thanks: 1
Thanked: 1 time in 1 post
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
 Thank the author of this postProfile  
 
 
 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: 638
Location: http://aluigi.org
Thanks: 1
Thanked: 153 times in 128 posts
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
 Thank the author of this postProfile  
 
 
 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: 423
Thanks: 3
Thanked: 2 times in 2 posts
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
 Thank the author of this postProfile  
 
 
 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: 638
Location: http://aluigi.org
Thanks: 1
Thanked: 153 times in 128 posts
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
 Thank the author of this postProfile  
 
 
 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
Thanks: 3
Thanked: 0 time in 0 post
Thank you Bugtest, you rock. :keke:


Top
 Thank the author of this postProfile  
 
 
 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: 423
Thanks: 3
Thanked: 2 times in 2 posts
I found some info about Xmemcompress http://forums.gtamodding.ru/index.php?showtopic=10

_________________
Image


Top
 Thank the author of this postProfile  
 
 
 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: 638
Location: http://aluigi.org
Thanks: 1
Thanked: 153 times in 128 posts
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
 Thank the author of this postProfile  
 
 
 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: 423
Thanks: 3
Thanked: 2 times in 2 posts
:eek:

_________________
Image


Top
 Thank the author of this postProfile  
 
 
 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: 638
Location: http://aluigi.org
Thanks: 1
Thanked: 153 times in 128 posts
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
 Thank the author of this postProfile  
 
 
The following user would like to thank aluigi for this post
dijotp, japamd, sommergemuese, YodaStar

 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
Thanks: 3
Thanked: 8 times in 4 posts
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
 Thank the author of this postProfile  
 
 
 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: 638
Location: http://aluigi.org
Thanks: 1
Thanked: 153 times in 128 posts
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
 Thank the author of this postProfile  
 
 
 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: 15
Thanks: 1
Thanked: 0 time in 0 post
Cool :) I hope soon we should have compiler working, good job!


Top
 Thank the author of this postProfile  
 
 
 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
Thanks: 3
Thanked: 8 times in 4 posts
zeeh wrote:
Cool :) I hope soon we should have compiler working, good job!


Are you making one? It would be great!


Top
 Thank the author of this postProfile  
 
 
 Post subject: Re: NfS Shift .BFF files
PostPosted: Sun Sep 20, 2009 6:39 pm 
Offline
beginner

Joined: Sun Sep 20, 2009 5:41 pm
Posts: 21
Thanks: 6
Thanked: 0 time in 0 post
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
 Thank the author of this postProfile  
 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 111 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], Google Adsense [Bot] and 3 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