Kuriimu icon indicating copy to clipboard operation
Kuriimu copied to clipboard

[Archive Plugin Request] Tales of Berseria PC .TLDAT Files

Open Etokapa opened this issue 5 years ago • 0 comments

Issue: plugin request Console: PC Format extensions: TLDAT, TOFHDA, TOFHDB Type: Archive Game Name: Tales of Berseria

First 8 bytes of the file(s): TLFILE.TLDAT (Encrypted) - 10 39 D4 7F 25 7D 88 0B - 9Ô%}ˆ TLFILE.TLDAT (Decrypted) - 54 4C 5A 43 01 02 00 00 - TLZC

FILEHEADER.TOFHDA (Encrypted) - 53 EA 1D 2D 85 CC 5A 51 - Sê-…ÌZQ

FILEHEADER.TOFHDB (Encrypted) - 82 63 48 C0 2F AB C6 50 - ‚cHÀ/«ÆP FILEHEADER.TOFHDB (Decrypted) - 00 00 00 00 00 00 00 00 - @

More details: This is an attempt to fix Tales of Berseria's numerous spelling and grammatical errors as seen here. I also hope that it can be used so that the game can be translated into other languages.

The English text files are located in the archive file called TLFILE.TLDAT: ..\Tales of Berseria\GAMEDATA\BASE\CHUNK0\GENERAL\LOCALIZE\ENG\TLFILE.TLDAT

This file is encrypted and was decrypted using Tales of Berseria Tools.

This TLFILE.TLDAT contains a folder called SDBENG with 1684 .SDBENG text files and a TEXTURES folder with 431 texture files. FILEHEADER.TOFHDB acts as an index, and FILEHEADER.TOFHDA is the array of 64bit keys. I think...

I have used Tales of Berseria Tools to successfully edit and fix 30 different errors in the SDBENG files. The last hurdle is getting them back into the TLDAT file for use ingame. I think the PS3's files are not encrypted, unlike the PS4 and PC releases. A PS3 JP->EN and a JP->RU patch has been released so far.

A QBMS script exists that can also extract files like ToB Tools, but can not reimport due to being "a nightmare." QBMS Script ASM Code C Pseudocode ZenHAX Discussion Related ZenHAX discussion for similarly structured Tales of Zestiria - Stalled Korean translation project due to encryption. Info from modder Kaldaien on the subject.

Sample files (if possible): Encrypted samples with exe. Decrypted ENG folder Encrypted COMMON folder.

Etokapa avatar Apr 28 '19 22:04 Etokapa