Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

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

Featured Replies

  • Author
  • Localization

BloodRaynare, posted Wed Aug 16, 2017 10:33 am (25584)


Post updated with whole archive uploaded.
  • Author
  • Localization

aluigi, posted Wed Aug 16, 2017 10:40 am (25586)


Upload the first 100 megabytes
  • Author
  • Localization

BloodRaynare, posted Wed Aug 16, 2017 10:59 am (25588)


okay done, check the first post
  • Author
  • Localization

aluigi, posted Wed Aug 16, 2017 3:22 pm (25604)


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.
  • Author
  • Localization

BloodRaynare, posted Fri Aug 18, 2017 11:52 am (25679)


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

Code:
...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
  • Author
  • Localization

aluigi, posted Fri Aug 18, 2017 12:08 pm (25681)


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:
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.
  • Author
  • Localization

aluigi, posted Fri Aug 18, 2017 12:21 pm (25682)


Regarding the script I mean something like this as starting point:
Code:
...edited by aluigi...
  • Author
  • Localization

BloodRaynare, posted Fri Aug 18, 2017 12:24 pm (25683)


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).
  • Author
  • Localization

BloodRaynare, posted Fri Aug 18, 2017 1:00 pm (25684)


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

Image

Image
  • Author
  • Localization

aluigi, posted Fri Aug 18, 2017 1:24 pm (25685)


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.
  • Author
  • Localization

aluigi, posted Fri Aug 18, 2017 1:47 pm (25687)


Regarding New York City, I have almost finished the script *edit* script finished
Waiting the archive for LA.
  • Author
  • Localization

BloodRaynare, posted Fri Aug 18, 2017 2:35 pm (25688)


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).
  • Author
  • Localization

BloodRaynare, posted Fri Aug 18, 2017 3:06 pm (25692)


Thanks a lot, aluigi. Your scripts extracted the files as intended by the structure :)
  • Author
  • Localization

aluigi, posted Fri Aug 18, 2017 3:13 pm (25693)


Very good. I have edited your post with the huge script to make the topic more readable.
  • Author
  • Localization

BloodRaynare, posted Fri Aug 18, 2017 3:18 pm (25694)


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)
  • Author
  • Localization

aluigi, posted Fri Aug 18, 2017 6:46 pm (25702)


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
  • Author
  • Localization

BloodRaynare, posted Fri Aug 18, 2017 11:21 pm (25713)


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.
  • Author
  • Localization

aluigi, posted Sat Aug 19, 2017 1:43 am (25716)


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
  • Author
  • Localization

aluigi, posted Sat Aug 19, 2017 2:11 am (25717)


I don't know why you get 1.38 Gb only because the parsing of NYC data.pak is correct.
  • Author
  • Localization

BloodRaynare, posted Sat Aug 19, 2017 3:16 am (25720)


It was the files inside the SOUND directory which is missing (all those files were named with a number, like 6000.SND through 6092.SND which is the in-game songs)
  • Author
  • Localization

aluigi, posted Sat Aug 19, 2017 2:03 pm (25728)


Script 0.2.2
The problem was with the handling of the padded space between the blocks of 2048 bytes
Unfortunately with some complex archives it's normal to have multiple versions of the script with improvements and fixes, hopefully this is the last version :D
  • Author
  • Localization

BloodRaynare, posted Sat Aug 19, 2017 3:01 pm (25733)


Finally, this one is able to extract all the files :D I just checked the size of extracted files and the archive and it's pretty close. Thanks
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.