True Crime - New York City (PS2) DATA.PAK archive file

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

True Crime - New York City (PS2) DATA.PAK archive file

Post by BloodRaynare »

Apparently, the archives using ISO9660 format but only the directory and file structure left.

EDIT: first 100 MB of archive here:

https://mega.nz/#!CskFWJ4L!kDRUCA_La5Oq ... AA46WJl-rA
Last edited by BloodRaynare on Wed Aug 16, 2017 10:59 am, edited 1 time in total.
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by BloodRaynare »

Post updated with whole archive uploaded.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

Upload the first 100 megabytes
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by BloodRaynare »

okay done, check the first post
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

Ah now I remember, I already checked this archive some days ago. Idon't know if I found the file in your first post or somewhere else but I remember the "UXA"s and the structure.
Long story short: it's a mess.
When an archive format is so complex and chaotic it usually means that it's a real filesystem (original or customized), so have you tried to do a "mount -t auto" on Linux?
Probably it will not work but it's worth to try.
Reverse engineering and writing a script for that format would take lot of time so I can't help.
Worst case scenario use a file ripper but I doubt you will get something useful considering that it's a PS2 game.
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

True Crime: Streets of LA (PS2) DATA.PAK extractor

Post by BloodRaynare »

Well, hello
I want to showing you guys the script I've been working on lately

Code: Select all

...edited by aluigi...


NOTE: If this script is too long I'm going to put it on attachment instead.
EDIT: Turns out I was posting on wrong forum section. Move it to Game archive please
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

Wow really a huge work and script.
I'm quite sure that it's possible to shrink that script a lot, for example if the only difference between all these functions is the findloc pattern then you can just build it before calling the function, for example:

Code: Select all

set PATTERN string "M1      "
...
FindLoc TMP string PATTERN
goto TMP
Anyway I leave you all the fun to do the tests :)
*edit* I suggest you to remove the handling of the NAME/DIRNAME to make the script more easy to understand and modify, you can add that part later.

I have moved the post in the original topic you opened.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

Regarding the script I mean something like this as starting point:

Code: Select all

...edited by aluigi...
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by BloodRaynare »

Thanks for the suggestion.
Oh yeah one thing, I would have you informed that the DATA.PAK from Streets of LA is different than the ones in TC New York City, on the header part at least.
The problem why the scripts is so long is because some of the directory were actually recursive especially inside the INT and CINE directory
even almost all of the directories were from inside DATA folder
and more importantly, they're stored sequentially (so the folder names are mixed up on the filename sequence).
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by BloodRaynare »

This is the example of the recursive directories of the DATA.PAK header

Image

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

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

That's an archive structure so it must be handled as an archive (no scanning).
Considering that this format is totally different than the filesystem of the other game you should upload a sample (first 10 megabytes are ok)

Any news regarding the "New York City" pak mounted on Linux?
That's for sure a known filesystem.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

Regarding New York City, I have almost finished the script *edit* script finished
Waiting the archive for LA.
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by BloodRaynare »

Okay, here's the 10MB of LA's DATA.PAK (It's on the attachment)

About mounting the NYC's DATA.PAK on Linux, I haven't tried it yet.

EDIT: Ah yes another thing. The reason why I say the folders was recursive because it was according to the folder structure on the other console versions of TCLA which didn't using an archive containers (Gamecube, at least).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

Script compatible with both the formats:
http://aluigi.org/bms/true_crime.bms
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by BloodRaynare »

Thanks a lot, aluigi. Your scripts extracted the files as intended by the structure :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

Very good. I have edited your post with the huge script to make the topic more readable.
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by BloodRaynare »

Unfortunately, I just checked the extracted files of NYC, and it seems the SOUNDS folder missing alot of files (probably others too, but the SOUNDS seems quite missing alot)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

Script 0.2a

*edit* and yes I'm 100% sure that this is an ISO9660 extension like RockRidge or similar but without the volume descriptors
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by BloodRaynare »

Hmm, I just checked the size of extracted files again and the archive and while there's a improvement of the size of extracted files, but again, some files are not extracted. (The extracted files only sized 1,38 GB vs the archive which is 2,91 GB or less)

And yes, the NYC one using ISO9660 format but apparently Luxoflux removes the preceding 21 sectors of the image.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: True Crime - New York City (PS2) DATA.PAK archive file

Post by aluigi »

I have rechecked the script and there was a very little bug, but the bug was that it extracted few more files than the real ones.
In fact the real referenced files are 11327 (40 less than before).
So the current script is 0.2.1.

*edit* still double-checking