ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Jan 27, 2022 5:20 pm

All times are UTC




Post new topic  Reply to topic  [ 22 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Fri May 13, 2016 6:38 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12872
http://aluigi.org/bms/f1_race_stars.bms


Top
   
PostPosted: Fri May 13, 2016 3:07 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
One question though:
Can this also work on the X360 and PS3 versions of the game?

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Fri May 13, 2016 3:40 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12872
I don't know because I had only few samples from the PC version.
If you have samples from both those platforms would be great.


Top
   
PostPosted: Fri May 13, 2016 4:03 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
aluigi wrote:
If you have samples from both those platforms would be great.

I'll do my best.

EDIT: Here's the PS3 version:
https://mega.nz/#!YFEg0RTD!T9ALB3q9o9WIOBzreIb4JaghmbJa5yGxZ7dUP-HFKhU

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Sat May 14, 2016 4:58 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12872
Try this script, if the encryption and the format is the same of other Codemasters game then it will work:
http://aluigi.org/bms/codemasters_nefs.bms


Top
   
PostPosted: Sat May 14, 2016 2:47 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
Strange, I tested this script with said .nfs files and all it found was "0 files"... am I doing something wrong?

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Sat May 14, 2016 3:04 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12872
No, you did it correctly but I have just found the solution :D

The Codemasters games use the NFS archives for non encrypted data and NEFS for encrypted data.
But some games like Toybox Turbos opted for a custom encryption.

So now I launched the Toybox script on the file you provided and ... magic :)
http://aluigi.org/bms/toyboxturbos.bms


Top
   
PostPosted: Sat May 14, 2016 3:14 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
So I executed that script and it worked(output was ps3_000_new.nfs). Now I used that same script(codemasters_nefs.bms) and still nothing. Should I give you a sample or something?

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Sat May 14, 2016 3:27 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12872
Interesting, it seems not fully compatible with the NFS format.


Top
   
PostPosted: Sat May 14, 2016 3:35 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
Okay, here's the sample anyway.


Attachments:
ps3_000_new_nfs.rar [3.8 MiB]
Downloaded 151 times

_________________
the number one killer is time
it destroys us all
Top
   
PostPosted: Sat May 14, 2016 4:28 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12872
The experiment failed, anyway I have updated the f1_race_stars.bms script but it will NOT extract all the files.
Long story short:
offzip -a -c 0x10000 -z -15 -Q ps3_000_new.nfs output_folder 0x70000


Top
   
PostPosted: Sat May 14, 2016 5:00 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
Well when I tested the update script it all went fine and dandy until this appeared:
Code:
Error: the script uses more array indexes(11115) than supported(11115)

Last script line before the error or that produced the error:
  114 getarray CHUNK_ZSIZE 10 x

Then I had to use an alternative method you suggested(offzip solution), and so far the latter was succesful in extracting the whole archive(except for a few errors starting with the 0x37082d61 offset) while the former didn't even get to extract the entirety of the archive.

As a result, your script wasn't capable of extracting the compressed archive, so offzip wins.

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Sun May 15, 2016 7:36 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12872
Yeah that's the same error I had here and it's just caused by the different encryption adopted from offset 0x40000 till the data offset 0x70000... a sort of double protection that obviously avoids to create a working script.
Anyway I tried (and failed) but it's good to have the format partially documented.

Epic win for offzip and its chunk-guessing option :D


Top
   
PostPosted: Sat May 21, 2016 3:04 am 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
And here is the sample for the X360 version. It also includes a decrypted file that I applied out of said archive using the toyboxturbos.bms script.


Attachments:
x360_000_new_nfs.rar [3.79 MiB]
Downloaded 155 times
x360_nfs.rar [3.96 MiB]
Downloaded 162 times

_________________
the number one killer is time
it destroys us all
Top
   
PostPosted: Wed May 25, 2016 1:49 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
Bump.

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Tue May 31, 2016 8:01 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12872
Eh, Xbox games don't use zlib because XmemCompress is implemented natively, so bye bye offzip.
Also in this case the data between offset 0x40000 and the data of the files uses a different encryption, so bye bye script.


Top
   
PostPosted: Tue May 31, 2016 8:39 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
Is there any other method to handle the x360_000.nfs files?

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Tue May 31, 2016 8:47 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12872
My mistake, it uses deflate just like the PC version so the offzip method is still the good one.
Even the chunk size is the same.


Top
   
PostPosted: Tue Jul 19, 2016 11:52 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
Okay, so I'm here to report something regarding the x360_000_new.nfs file with the script:
Code:
Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info:  algorithm   2
       offset      00255c00
       input size  0x00006a00 27136
       output size 0x00010000 65536
       result      0xffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (65536)

Last script line before the error or that produced the error:
  117 clog MEMORY_FILE OFFSET CHUNK_ZSIZE 0x10000

offzip is still the definitive solution, and I say definitive because it is the only working solution at the moment...

Oh yeah, and about the location of the filenames:
Code:
ps3_000_new.nfs - filenames
start: 0x28a4e offset
end: 0x2a4a9 offset

x360_000_new.nfs - filenames
start: 0x2b62e offset
end: 0x2d0a8 offset

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Fri Apr 14, 2017 2:32 am 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1125
And finally, after a long while, here is a sample from the Wii U version of the game. It doesn't use .nfs archives like the PS3 and Xbox 360 versions of the game did, although I'm afraid that just by running the f1_race_stars.bms script with this one might trigger an error.


Attachments:
ap_01_default.rar [27.29 KiB]
Downloaded 146 times

_________________
the number one killer is time
it destroys us all
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 22 posts ]  Go to page 1 2 Next

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited