True Crime - New York City (PS2) DATA.PAK archive file
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
True Crime - New York City (PS2) DATA.PAK archive file
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
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.
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: True Crime - New York City (PS2) DATA.PAK archive file
Post updated with whole archive uploaded.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
Upload the first 100 megabytes
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: True Crime - New York City (PS2) DATA.PAK archive file
okay done, check the first post
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
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.
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.
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
True Crime: Streets of LA (PS2) DATA.PAK extractor
Well, hello
I want to showing you guys the script I've been working on lately
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
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
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
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:
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.
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
*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.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
Regarding the script I mean something like this as starting point:
Code: Select all
...edited by aluigi...
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: True Crime - New York City (PS2) DATA.PAK archive file
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).
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).
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: True Crime - New York City (PS2) DATA.PAK archive file
This is the example of the recursive directories of the DATA.PAK header
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
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.
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.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
Regarding New York City, I have almost finished the script *edit* script finished
Waiting the archive for LA.
Waiting the archive for LA.
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: True Crime - New York City (PS2) DATA.PAK archive file
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).
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).
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
Script compatible with both the formats:
http://aluigi.org/bms/true_crime.bms
http://aluigi.org/bms/true_crime.bms
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: True Crime - New York City (PS2) DATA.PAK archive file
Thanks a lot, aluigi. Your scripts extracted the files as intended by the structure
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
Very good. I have edited your post with the huge script to make the topic more readable.
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: True Crime - New York City (PS2) DATA.PAK archive file
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)
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
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
*edit* and yes I'm 100% sure that this is an ISO9660 extension like RockRidge or similar but without the volume descriptors
-
- Posts: 367
- Joined: Fri Mar 10, 2017 7:23 am
Re: True Crime - New York City (PS2) DATA.PAK archive file
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.
And yes, the NYC one using ISO9660 format but apparently Luxoflux removes the preceding 21 sectors of the image.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: True Crime - New York City (PS2) DATA.PAK archive file
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
In fact the real referenced files are 11327 (40 less than before).
So the current script is 0.2.1.
*edit* still double-checking