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.
Zero Tolerance for Disrespect

Harry Potter and the Goblet of Fire (PS2) .str

Featured Replies

I was taking a look at this game again recently and most of the games files are inside of this messy format. Looks like the beginning of the archive contains file paths and sizes to the original unconverted assets and the files that are actually inside of the archive. 

Capture.PNG.240a67937705d5953a87c4efdbbdbd37.PNG

Samples:

GobletofFire str.7z

Solved by Rabatini

  • 5 months later...
  • Author

I did some more digging into the format and now I have a better idea of how it works. Usually a .str file begins with a piece of code that is read. It has a header of 1C 07 and has the file size of the code stored in little endian hexadecimal. It is followed by 0x04 bytes of 00s presumably used for padding. After that is the file entries where each entry always has the header of 16 07. 

fileentries.PNG.be9c6077f8fe20ea561a82ee9823980f.PNG

It seems to vary based on file type but at least for .dir files it contains the file path of where the asset was copied from when the archive was being built along with the size of the file path in hexadecimal. After that is the hash used for the filename. The first 0x08 bytes of each file hash is stored in little endian but the last 0x08 bytes are stored in big endian. So EA A2 3B DB 72 40 95 45 96 49 85 57 0C ED 88 E7 becomes {DB3BA2EA-4072-4595-9649-85570CED88E7}.dir for example. After the file hash is some padding along with 0x04 bytes that are used to store the size of the file in little endian hexadecimal. .dir files in general don't seem to be read by the game itself but it seems to have been at least generated when the archive was being built as seen in the screenshot from my original post.

Depending on the file in question there can be also references to a file directory that it is expected to be read in along with a byte used to track how much space the directory takes up in the archive.

  • Supporter
  • Solution
9 hours ago, phantaton said:

Thanks! Looks pretty accurate based on what I've seen throughout the archive for that file. What did you use to extract it? ILooks like the zip is just the extracted assets

Sorry, forget to put the tool together.

HPGof-ps2-unpacker.zip

Create an account or sign in to comment

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.