Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by AlphaTwentyThree »

Hi everybody!

Can somebody help me extract the sound archive of the file? Here's a cut of the main archive plus the TOC file: http://*USE_ANOTHER_FILEHOSTING*/a09f901 ... _sample.7z
Thanks for your help! :)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by AlphaTwentyThree »

However, I get an "Incomplete file number 1" error with quickbms.exe and quickbms_4gb_files.exe ... Maybe a different version?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by Ekey »

I guess problem here because different offsets.

Code: Select all

goto 0x1248D8
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by aluigi »

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.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by AlphaTwentyThree »

Ekey wrote:I guess problem here because different offsets.

Code: Select all

goto 0x1248D8

Haha, yeah, didn't notice.
Correct value here is

Code: Select all

goto 0x6f2b8

:)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by AlphaTwentyThree »

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! :)
rogered
Posts: 1
Joined: Wed Jun 24, 2015 5:15 pm

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by rogered »

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.
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by shadow_lonely »

This is example file from PS3 version (EU): https://drive.google.com/file/d/0B44CD2 ... sp=sharing

Anyone can take and look? Thanks?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by aluigi »

I don't see problems, everything is extracted correctly and with 100% of coverage of both index and data file.
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by shadow_lonely »

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:
loi.png
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by aluigi »

Not valid for reimporting.
Chunked MEMORY_FILEs are not that good in reimport mode.
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by shadow_lonely »

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


Thanks! This game is hard to translate. :(
Shinkun
Posts: 4
Joined: Wed Oct 21, 2015 8:38 am

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by Shinkun »

SO, there's no way of reimporting?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by aluigi »

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.
Shinkun
Posts: 4
Joined: Wed Oct 21, 2015 8:38 am

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by Shinkun »

Oh cool so, if there is a way, this should work for the PC version too?
nuocda
Posts: 1
Joined: Thu Oct 22, 2015 5:30 am

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by nuocda »

hi there, i looking way can reimporting edit text on dlc, any news ? :( i try using force and sure it don't work all
Schedar
Posts: 3
Joined: Mon Nov 02, 2015 9:23 pm

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by Schedar »

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
Nameless32
Posts: 35
Joined: Sun Dec 21, 2014 7:43 pm

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by Nameless32 »

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
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tales of Zestiria FILEHEADER.TOFHDB/TLFILE.TLDAT

Post by aluigi »

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.