ZZDATA.BIN Need for Speed Carbon

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

Hi everyone, someone can make for me an script to extract and repack the zzdata.bin files in nfs carbon (PS2 version). The link with zzdata file is this: https://www.dropbox.com/s/rran5c0tbc17j ... 0.BIN?dl=0

and this is the link with TOC file: https://drive.google.com/file/d/0B24D4L ... p=drivesdk
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: ZZDATA.BIN Need for Speed Carbon

Post by aluigi »

Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

Aluigi, the script don't works here, the error message showed here is: "unexpected signature, invalid arguments BIN/BUN/LZC, and possible line that caused error".
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: ZZDATA.BIN Need for Speed Carbon

Post by aluigi »

You have to select zdir.bin
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

I'll try here
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

aluigi, the script now works here, all files has been extracted. But, there is a problem, the files are extracted with names as "00001.dat, 00001a.dat, etc". When I extract some .dat file, the extracted file has a right name.
It is possible to adapt the script for extract the files with all right names? Until now I have found only files related at the cars, but nothing of texts in-game.
All files with right names will make to easy find the texts.
In the end of extraction, 1 only error is returned: "failed in get CRC_NAME long"
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: ZZDATA.BIN Need for Speed Carbon

Post by aluigi »

The script is already optimized and tuned to extract everything it's possible.
If you get files like 00000012.dat it means that there are no filenames stored.

The error with NAME_CRC is ok.
I means it's a micro bug in the script (that I'm going to fix now) but it doesn't affect the extraction, it simply means you reached the end of the file. What you got is 100% of the archive.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

So the script now extract the files with filenames, at least the file called LANGUAGE? all files have no filename, the only file with name that I need is "LANGUAGE". I see this name in executable of game. The executable has the name of the files inside ZZDATA. It is possible extract this file with his own name? the others can have names 00012.dat, etc, I need only of LANGUAGE file
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

it is impossible to find a file without the name
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

Aluigi, the script don't reimport the zzdata files, he always show the error in attached image. What is possible to make for fix this error?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: ZZDATA.BIN Need for Speed Carbon

Post by aluigi »

That script is very complex and probably it will not work in reimporting mode.
For sure it's better if you use quickbms 0.7.7 because you are using an old version, probably it will change nothing because it's something related to the re-compression of non-standard algorithms for which only two of them are supported in recompression.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

Aluigi, it is possible to make the script extract only this files: LANGUAGE_ENGLISH.BIN, and LANGUAGE_GERMAN.BIN?
If this files use an algorithm supported by quickbms in reimport mode, is possible extract and reimport only them?
My goal is only language files and the FONT
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: ZZDATA.BIN Need for Speed Carbon

Post by aluigi »

No duplicate topics, please.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

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

Re: ZZDATA.BIN Need for Speed Carbon

Post by aluigi »

Returning to your question, one of the first rules of the reimport feature of quickbms is deleting all the files that have not been modified and leaving only the modified files in the folder before reimporting.
So if you have extracted 1234 files and you edited only 2 of them, then delete the other 1232 and try the reimporting.
Probably it will change nothing in your case but maybe those 2 files are non compressed and so without problems (I highly doubt).
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

I don't knew about this rule "delete all files unchanged", I'll try here and I will post the results. The only text file has I found was the credits of game, those have .txt format, was easy to find them.
Aluigi, do you know someone that can make a tool for extract the files with your correct names?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: ZZDATA.BIN Need for Speed Carbon

Post by aluigi »

You can read about the reimport feature of quickbms in section 3 of http://aluigi.org/papers/quickbms.txt

Regarding your question, I have been already very clear in my previous posts:
IT'S NOT A LIMITATION OF THE SCRIPT. THERE ARE NO FILENAMES!
I bet now it's more clear :D
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

Understood
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: ZZDATA.BIN Need for Speed Carbon

Post by Kratos9999 »

Aluigi, I finally have found the texts in nfs carbon. I have created an bat file to launch the quickbms and extract all dat files in sequence. With all dat's extracted, between severals folders, I saw the LANGUAGE dir.
My next step is a dumper/inserter to the texts. The script really is very good, thanks by your patience.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: ZZDATA.BIN Need for Speed Carbon

Post by aluigi »

:D