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.

[PSP] Narikiri Dungeon X - .TSS file

Featured Replies

  • Author
  • Localization

pnvnd, posted Sat May 08, 2021 2:06 pm (63847)


Greetings!

I'm working with a team on gathering as much information as possible about Tales of Phantasia: Narikiri Dungeon X (PSP).
So far, everything is open-source on Github: https://github.com/pnvnd/Narikiri-Dungeon-X.

We've got permission to use an English translated script in our project, as well as permission to continue from an exisiting menu patch. So the next goal is to extract files from all.dat (681 MB) to see if we can insert the English translated text, and create a patch. Based on other "Tales of" games for PSP, I was expecting to find a pointer table in the decrypted EBOOT.BIN file (ULJS00293.BIN) to split up the files in all.dat. However, NDX doesn't appear to follow the same pattern as Tales of Destiny 2 (PSP).

Since I'm stuck at extracting all.dat, I'll be mapping out the hex to Japanese manually so we have something to work with after all.dat is extracted. I'm hoping after extracting all.dat we can re-use the existing tools from the open-source Tales of Destiny DC and Tales of Destiny 2 projects. Any help to get all.dat extracted would be much appreciated!

Feel free to join us on Discord: https://discord.gg/fpK8UvBfy3
  • Author
  • Localization

pnvnd, posted Mon May 10, 2021 12:38 am (63869)


After extracting some of the movie files manually in all.dat, we confirmed the offset and size of the file to start searching in the decrypted EBOOT.BIN file. Here's a Python script that can extract all.dat, the only issue with this is the filenames appear to be hash values. There should be 2116 files after extracting.

Code:
import struct

def extract_files(start,size,filename):
    input_file = open('all.dat', 'rb')

    input_file.seek(start, 0)
    data1 = input_file.read(size)
    output_file01 = open(filename, 'wb')
    output_file01.write(data1)
    output_file01.close()

    input_file.close()

def extract_all_dat():
    eboot = open('ULJS00293.BIN', 'rb')
    eboot.seek(0x1FF624)
    while True:
        file_info = struct.unpack('<3I', eboot.read(12))
        if(file_info[2] == 0):
            break
        extract_files(file_info[0],file_info[1],"%4X" % file_info[2])
        #print("%4X" % file_info[2])


We still need help extracting some of the files that came out of unpacking all.dat as we still can't find where the scenario (story) text is.
  • Author
  • Localization

pnvnd, posted Wed May 12, 2021 12:49 am (63910)


We managed to find the story and skit text:
Scenario: all.dat > map\pack\ep_000_010.cab > script.dat > script_0000.tss
Skit: all.dat > chat\ct_001_001.bin > ar.dat > ar_0001.tss

CAB files can be opened natively with Windows. The script.dat inside was extracted with "pakcomposer" to get 3 more files. The first file is the TSS file with story text.
BIN file for skits are actually CAB files, and the resultng ar.dat file can also be unpacked with "pakcomposer" to get another 3 files. THe second file is the TSS file with skit text.
The script.dat and ar.dat are "pak3" files, if that helps.

We need a way to extract and re-insert text into the TSS file to move forward with translating the game.
Note: It looks like the TSS files from Vesperia, Hearts, and Narikiri Dungeon X are different...
  • Author
  • Localization

pnvnd, posted Tue Jul 27, 2021 3:22 am (65380)


We've managed to extract text from the TSS files, but are still having trouble figuring out how to re-insert these back into the game. More hacker notes and details have been added on https://github.com/pnvnd/Narikiri-Dungeon-X
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.