Dirt 4's nefs files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
phoenix
Posts: 4
Joined: Fri Jun 09, 2017 4:24 am

Dirt 4's nefs files

Post by phoenix »

Hi, the just released Dirt 4 from Codemasters uses nefs files.
I tried using codemasters_nefs.bms with no success.
error : can't read 1 bytes from offset a74527a9

Appreciate it if you can take a look.

Attached the file tested (first partial file as can't upload the whole file)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dirt 4's nefs files

Post by aluigi »

I guess that currently it's better to use offzip do to the job:

Code: Select all

offzip -a -z -15 -Q -x -c 0x10000 str1.nefs OUTPUT_FOLDER
When I will have time and desire I will update the script :)
phoenix
Posts: 4
Joined: Fri Jun 09, 2017 4:24 am

Re: Dirt 4's nefs files

Post by phoenix »

aluigi wrote:I guess that currently it's better to use offzip do to the job:

Code: Select all

offzip -a -z -15 -Q -x -c 0x10000 str1.nefs OUTPUT_FOLDER
When I will have time and desire I will update the script :)


Thanks.
rallyart04
Posts: 12
Joined: Fri Oct 23, 2015 8:45 pm

Re: Dirt 4's nefs files

Post by rallyart04 »

Hi Aluigi. I have the same problem...
phoenix
Posts: 4
Joined: Fri Jun 09, 2017 4:24 am

Re: Dirt 4's nefs files

Post by phoenix »

Hi, what should be the command for injecting the modded file back using packzip ?
Thank you.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dirt 4's nefs files

Post by aluigi »

offzip has a -r option that works just like quickbms but honestly I don't know if it will work in this particular situation with chunked content.
If you want to try it's just the SAME command-line you used for extraction plus the -r option just after "offzip.exe", remember to make a backup of your archive.
Obviously there is no support about this, it works or doesn't work.
phoenix
Posts: 4
Joined: Fri Jun 09, 2017 4:24 am

Re: Dirt 4's nefs files

Post by phoenix »

aluigi wrote:offzip has a -r option that works just like quickbms but honestly I don't know if it will work in this particular situation with chunked content.
If you want to try it's just the SAME command-line you used for extraction plus the -r option just after "offzip.exe", remember to make a backup of your archive.
Obviously there is no support about this, it works or doesn't work.

Thanks. Tried and didn't work.
Error :the compressed file is bigger than the original by...
BelReed71
Posts: 1
Joined: Tue Jun 13, 2017 3:14 pm

Re: Dirt 4's nefs files

Post by BelReed71 »

may I ask if it is fixed too?

same problem here. :cry:

waiting for the reply
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dirt 4's nefs files

Post by aluigi »

No way to fix it.
zissakos
Posts: 1
Joined: Wed Jun 28, 2017 12:27 pm

Re: Dirt 4's nefs files

Post by zissakos »

what exactly does it mean "no way"?
Technically impossible? encrypted?

I managed to decode the nefs file and get the single files. So there must be a way to get them back into a NEFs file right?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dirt 4's nefs files

Post by aluigi »

jadugar
Posts: 38
Joined: Tue Nov 29, 2016 6:39 pm

Re: Dirt 4's nefs files

Post by jadugar »


hi,thanks aluigi
no any way to import big .nefs file?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dirt 4's nefs files

Post by aluigi »

Eh no, for 2 reasons: first it's usually necessary to dump the archive in a temporary file and then it uses chunked files.
I don't know if splitting the script in two parts and using the chunks without the MEMORY_FILE may change something but usually there are ever problems (even if quickbms has been tested to work with chunked files [memory_files too] in reimport mode but people report ever problems)... in short the main rule remains the same: if the game uses chunks you can't reimport the files.
jadugar
Posts: 38
Joined: Tue Nov 29, 2016 6:39 pm

Re: Dirt 4's nefs files

Post by jadugar »

aluigi wrote:Eh no, for 2 reasons: first it's usually necessary to dump the archive in a temporary file and then it uses chunked files.
I don't know if splitting the script in two parts and using the chunks without the MEMORY_FILE may change something but usually there are ever problems (even if quickbms has been tested to work with chunked files [memory_files too] in reimport mode but people report ever problems)... in short the main rule remains the same: if the game uses chunks you can't reimport the files.

Thanks,
jadugar
Posts: 38
Joined: Tue Nov 29, 2016 6:39 pm

Re: Dirt 4's nefs files

Post by jadugar »


Hi,aluigi
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dirt 4's nefs files

Post by aluigi »

Script 0.2.5, let me know if everything works correctly
jadugar
Posts: 38
Joined: Tue Nov 29, 2016 6:39 pm

Re: Dirt 4's nefs files

Post by jadugar »

aluigi wrote:Script 0.2.5, let me know if everything works correctly

Thanks, all files are extracted
But there is only one thing and there is a problem that was in the previous script.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dirt 4's nefs files

Post by aluigi »

Choose R
jadugar
Posts: 38
Joined: Tue Nov 29, 2016 6:39 pm

Re: Dirt 4's nefs files

Post by jadugar »

aluigi wrote:Choose R

I knew this
I just wanted to tell you
Thank you
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dirt 4's nefs files

Post by aluigi »

Ah ok.
Yeah it happens also with other Codemasters games, probably they are duplicated files.