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.

Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Featured Replies

  • Author
  • Localization

AlphaTwentyThree, posted Wed Feb 18, 2015 11:33 am (3253)


However, I get an "Incomplete file number 1" error with quickbms.exe and quickbms_4gb_files.exe ... Maybe a different version?
  • Author
  • Localization

Ekey, posted Wed Feb 18, 2015 12:11 pm (3254)


I guess problem here because different offsets.

Code:
goto 0x1248D8
  • Author
  • Localization

AlphaTwentyThree, posted Wed Feb 18, 2015 1:42 pm (3258)


Ekey wrote:
I guess problem here because different offsets.

Code:
goto 0x1248D8

Haha, yeah, didn't notice.
Correct value here is
Code:
goto 0x6f2b8

:)
  • Author
  • Localization

AlphaTwentyThree, posted Wed Feb 18, 2015 1:44 pm (3259)


aluigi wrote:
Hopefully the following is working with both the games/versions:
http://aluigi.org/papers/bms/others/tales_of_xillia.bms

I simply added the code to reach the information offset and some things to make the script more readable.

hey, cool thing! :)
  • Author
  • Localization

rogered, posted Wed Jun 24, 2015 5:40 pm (5896)


Would like to add a few words upon finding this. It works like a charm. Had an outdated quickbms, worked flawlessly when updated. Sound TLFILE of Zestiria.

Everything other folder has .dat, save for two

Sound folders are SPIS14 (SFX? Voice?) and SPIS22 (BGM) 107 files.
BGM is .NSBF format. SPIS14 also is NSBF, but is not playable via vgmstream.

Easy use would be foobar vgmstream, combined with cmd ren *.nbs *nbsf

Will probably return with results from main TLFile later, since finding information is sparse, hope it'll help whoever runs across it.
  • Author
  • Localization

aluigi, posted Thu Oct 15, 2015 4:13 pm (8469)


I don't see problems, everything is extracted correctly and with 100% of coverage of both index and data file.
  • Author
  • Localization

shadow_lonely, posted Thu Oct 15, 2015 11:56 pm (8480)


aluigi wrote:
I don't see problems, everything is extracted correctly and with 100% of coverage of both index and data file.


Thanks for your quick reply, but when I reimporting, it's error :(

This is error:
  • Author
  • Localization

aluigi, posted Fri Oct 16, 2015 6:18 pm (8494)


Not valid for reimporting.
Chunked MEMORY_FILEs are not that good in reimport mode.
  • Author
  • Localization

shadow_lonely, posted Sat Oct 17, 2015 1:16 am (8501)


aluigi wrote:
Not valid for reimporting.
Chunked MEMORY_FILEs are not that good in reimport mode.


Thanks! This game is hard to translate. :(
  • Author
  • Localization

Shinkun, posted Wed Oct 21, 2015 8:40 am (8719)


SO, there's no way of reimporting?
  • Author
  • Localization

aluigi, posted Wed Oct 21, 2015 9:46 am (8721)


I will check quickbms if it's something that can be fixed there but reimporting using memory files is a sort of "hack" in quickbms.
  • Author
  • Localization

Shinkun, posted Wed Oct 21, 2015 11:38 pm (8753)


Oh cool so, if there is a way, this should work for the PC version too?
  • Author
  • Localization

nuocda, posted Fri Oct 23, 2015 6:17 pm (8825)


hi there, i looking way can reimporting edit text on dlc, any news ? :( i try using force and sure it don't work all
  • Author
  • Localization

Schedar, posted Thu Nov 05, 2015 8:30 am (9331)


Hi guys!!! Im new in this comunity!! Well, I want tell us that I?m spanish, and Im sorry if my english is not very good.

OK, this post is for ask help of this community for can decrypt the audio files of this game for I can do a modd to dubbing the game into spanish.

In this game exist 2 folders: PK0 and PK1. PK0 is the folder to japanese language, PK1 is to english language (or this I think). Into de PK0 are the files (FILEHEADER.TOFHDB (10.270kb) and TLFILE.TLDAT (3,5gb.) ) I have succes of decrypt the "TLFILE.TLDAT" and I obtained a lot of folders from the extraction of the PK0 folder, and between all of them only 2 folders have files that have a weight than I think if possible are the audio files of the internal sequences the game, BUT all files are in .DAT files, and I need encounter the way to extract this audio to change the language to spanish and return this audio file back to .DAT

Somebody can help me??

Thanks
  • Author
  • Localization

Nameless32, posted Tue Nov 10, 2015 4:08 am (9509)


aluigi wrote:
I will check quickbms if it's something that can be fixed there but reimporting using memory files is a sort of "hack" in quickbms.



Thanks Aluigi...

i'm trying to reimport on Tales of Zestiria PS3 - NPEB02235,
your script can extract all files, but when i try reimport the quickbms give me that error.
maybe in near future can be possible to reimport ?

please take a look...

Image
  • Author
  • Localization

aluigi, posted Fri Nov 13, 2015 9:56 pm (9686)


Reimport mode works:
- perfectly with normal files
- so-so or very well with chunked files written directly to disk (log/append/log/append)
- probably not with chunked files built in memory and then written to disk (log mem/append/log mem/append/log)

The mode that I adopt for all my scripts for archived with chunked files is the last one.
There is not a fix for it, quickbms already implements an experimental method to try to work with these chunked memory files but it can't make miracles.
Sorry.
  • Author
  • Localization

Nameless32, posted Sat Nov 14, 2015 12:46 pm (9724)


I believe that miracles are made, I believe u already has made some "miracles" with quickbms and scripts.

but I also understand that you are not omnipotent...
anyway. thank you for everything u have done so far.

but if find out a another method for this game.
a lot of people will be very happy :D
  • Author
  • Localization

aluigi, posted Sat Nov 14, 2015 1:31 pm (9726)


Let's try to convert the script to the second category, open the script with a text editor and replace the following:
Code:
            putvarchr MEMORY_FILE TSIZE 0
            log MEMORY_FILE 0 0
            append
            for x = 0 < CHUNKS
                getarray CHUNK_ZSIZE 0 x
                clog MEMORY_FILE OFFSET CHUNK_ZSIZE CHUNK_SIZE 1
                math OFFSET CHUNK_ZSIZE
            next x
            append
            log NAME 0 TSIZE MEMORY_FILE
with:
Code:
            log NAME 0 0
            append
            for x = 0 < CHUNKS
                getarray CHUNK_ZSIZE 0 x
                clog NAME OFFSET CHUNK_ZSIZE CHUNK_SIZE 1
                math OFFSET CHUNK_ZSIZE
            next x
            append

You don't need to reextract, just use it in reimport mode and let me know if it works (both reimporting and in-game)
  • Author
  • Localization

Nameless32, posted Sun Nov 15, 2015 10:37 pm (9777)


aluigi wrote:
Let's try to convert the script to the second category, open the script with a text editor and replace the following:
Code:
            putvarchr MEMORY_FILE TSIZE 0
            log MEMORY_FILE 0 0
            append
            for x = 0                 getarray CHUNK_ZSIZE 0 x
                clog MEMORY_FILE OFFSET CHUNK_ZSIZE CHUNK_SIZE 1
                math OFFSET CHUNK_ZSIZE
            next x
            append
            log NAME 0 TSIZE MEMORY_FILE
with:
Code:
            log NAME 0 0
            append
            for x = 0                 getarray CHUNK_ZSIZE 0 x
                clog NAME OFFSET CHUNK_ZSIZE CHUNK_SIZE 1
                math OFFSET CHUNK_ZSIZE
            next x
            append

You don't need to reextract, just use it in reimport mode and let me know if it works (both reimporting and in-game)



Thank You Very much, now it's working reimport and in-game...
you made again a new " miracle " :D

\o/

Quote:
# Tales of Xillia / Zestiria / Tales of the Abyss (script 0.1.1)
# script from Chrrox http://forum.xentax.com/viewtopic.php?p=59251#p59251
# updated and rewritten by aluigi
# script for QuickBMS http://quickbms.aluigi.org

get EXT extension

string TMP p "FILEHEADER.%s" EXT
open FDSE TMP 0 EXISTS
if EXISTS == 0
string TMP p "FILEHEADER.%s" "TOFHDB"
open FDSE TMP 0
set EXT string "TLDAT"
endif

string TMP p "TLFILE.%s" EXT
open FDSE TMP 1

endian big

get DUMMY long # 0x9ae71c1a
get DUMMY long
get DUMMY long
get HASHES long
endian guess HASHES
get HASH_SIZE long
get ZERO long
get DUMMY long
get FILES long
get DUMMY_SIZE long
get ZERO long
for i = 0 get HASH_KEY long
get HASH_VALUE long
next i
for i = 0 get SIZE longlong
get ZSIZE longlong
get OFFSET longlong
get HASH long
getdstring EXT 8
get DUMMY long

string NAME p= "%s/." EXT # autoguess

if ZSIZE == SIZE
log NAME OFFSET SIZE 1
else
endian save CURRENT_ENDIAN
endian little
goto OFFSET 1
get TLZC long 1
get TVER long 1
get TZSIZE long 1
get TSIZE long 1
if TVER == 0x0201 # Tales of the Abyss
comtype deflate
getdstring DUMMY 8 1
savepos OFFSET 1
clog NAME OFFSET TZSIZE TSIZE 1
else
comtype MSF # lzma_0
getdstring DUMMY 9 1
get CHUNK_SIZE long 1

xmath CHUNKS "TSIZE / CHUNK_SIZE"
xmath TMP "CHUNKS * CHUNK_SIZE"
if TMP != TSIZE
math CHUNKS 1
endif
for x = 0 get CHUNK_ZSIZE short 1
putarray 0 x CHUNK_ZSIZE
next x
savepos OFFSET 1

log NAME 0 0
append
for x = 0 getarray CHUNK_ZSIZE 0 x
clog NAME OFFSET CHUNK_ZSIZE CHUNK_SIZE 1
math OFFSET CHUNK_ZSIZE
next x
append

endif
if CURRENT_ENDIAN != 0
endian big
endif
endif
next i
  • Author
  • Localization

Shinkun, posted Sun Nov 22, 2015 2:36 am (9979)


I'm assuming this works with the PC version?

Code:

QuickBMS generic files extractor and reimporter 0.5.3 (64bit test)
by Luigi Auriemma
e-mail: [email protected]
web:    aluigi.org

- GUI mode activated, remember that the tool works also from command-line
  where are available various options like folder scanning, filters and so on

- select the BMS script or plugin to use
- select the input archives/files to extract, type "" for whole folder and subfolders
- select the output folder where extracting the files
- open input file PK0\WIN\TLFILE.TLDAT
- open script G:\tales_of_xillia_zes.bms

Error: invalid endian value guess

Error: invalid endian value save

Error: invalid command "xmath" or arguments -1 at line 66

Press RETURN to quit


Nope. :/

Doesn't even seem to have the header...?
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.