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

[PC] Eurofighter Typhoon - typhoon.dat

Featured Replies

  • Localization

I think I have recovered about 77% of the filenames. I got these after placing a bunch of hooks on functions from the internal filesystem and functions that handle the resources from the XFS archive and its streaming interface.

The following python code was used to perform the hashing:

def hash_path(path: str) -> int:
    data = path.encode("latin-1")

    if len(data) < 2:
        return 0

    suffix_sum = 0
    suffixes = [0] * len(data)

    for index in range(len(data) - 1, -1, -1):
        value = data[index]
        if value >= 0x80:
            value -= 0x100  # signed byte

        suffix_sum = (
            suffix_sum
            + (value + index) * (value + 0x13)
        ) & 0xFFFFFFFF

        suffixes[index] = suffix_sum

    result = 0

    for index in range(len(data) - 1):
        value = data[index]
        if value >= 0x80:
            value -= 0x100

        result = (
            result
            + suffixes[index]
            * (value + 7)
            * (value + index)
        ) & 0xFFFFFFFF

    return result % 0xEE6B2800

This is a great start but, we're still missing the original paths of roughly around 3.1k assets.

typhoon_hashes.7z

  • Localization

I created my own DLL which uses MS Detours to hook the necessary functions inside of the game executable. The data the hooked functions parse I log to disk and then I ran them through the python script.

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.