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 TOTEXB_D and TOTEXP_P archives

Featured Replies

  • Author
  • Localization

lionheartuk, posted Mon Jan 26, 2015 9:21 pm (2920)


Hey Guys.

Much like the previous Tales games, Zestiria uses 2 folders for its textures the first, TOTEXB_D are uncompressed 1kb files and rather bluntly point at what they want from the other file.

Example:
TOTEXB_D
Image
Simply points to the TOTEXP_P that contains the data it wants, not entirely sure how it knows which TOTEXP_P contains that data though.

The TOTEXP_P file is TLZC compressed, but there is this QuickBMS script to extract it:

Code:
idstring "TLZC"
get name basename
string name ".FPS4"
comtype MSF
get version long
get tzsize long
get tsize long
goto 0x1D
set blockcount tsize
math blockcount = 0xFFFF
math blockcount /= 0x10000
for i = 0 get zsize short
putarray 0 i zsize
next i
for i = 0 savepos offset
getarray ZSIZE 0 i
if tsize >= 0x10000
append
clog MEMORY_FILE OFFSET ZSIZE 0x10000
append
else
append
if ZSIZE == 0
log MEMORY_FILE OFFSET tsize
else
clog MEMORY_FILE OFFSET ZSIZE tsize
endif
append
endif
math tsize -= 0x10000
math offset ZSIZE
goto offset
next i
get SIZE asize MEMORY_FILE
log name 0 SIZE MEMORY_FILE


This outputs the following .fps4 file: https://dl.dropboxusercontent.com/u/779 ... EXP_P.FPS4

However that file is either compressed or encrypted, I don't understand it at all. I'm not any good with QuickBMS scripts, but this file seems to have no header whatsoever, I can't gather anything whatsoever from looking at it.

Incase its possible that the file has been extracted incorrectly from the TOTEXP_P archive, I've provided both the TOTEXB_D and the TOTEXP_P file for anyone who's interested to take a look at here
  • Author
  • Localization

aluigi, posted Tue Jan 27, 2015 9:39 pm (2930)


I think that the extraction is ok, the file looks like a texture without header and it's not encrypted.
I'm not good with graphics files so this is the max I can say about it.
  • Author
  • Localization

lionheartuk, posted Sun Feb 01, 2015 3:35 pm (3011)


Thanks for the information Aluigi, I'll keep looking and see if I get any further.
  • Author
  • Localization

sigroon365, posted Mon Aug 22, 2016 4:28 pm (16748)


It seems that the above script works on version 01 04 00 00 at 0x4.
This sample is version 01 02 00 00 at 0x4. And it is different from others.

Samples. https://www.sendspace.com/file/8bfkjp
Are these files also can be unpacked?
Image
  • Author
  • Localization

aluigi, posted Mon Aug 22, 2016 4:42 pm (16751)


The script supports everything correctly but TLZC are the archived files and not the stand-alone ones.
Are you sure these 2 files weren't extracted from an archive?
  • Author
  • Localization

sigroon365, posted Mon Aug 22, 2016 5:18 pm (16753)


aluigi wrote:
The script supports everything correctly but TLZC are the archived files and not the stand-alone ones.
Are you sure these 2 files weren't extracted from an archive?


These files extracted from archive. And current script doesn't extract data from this file.
What 'not the stand-alone ones' means *.TOTEXB_D files like this samples?
https://www.sendspace.com/file/0d0ftb
  • Author
  • Localization

aluigi, posted Mon Aug 22, 2016 5:35 pm (16755)


I don't understand.
The script 0.1.2a already supports archives containing TLZC files of various versions, so what's the problem?

Probably you are using an old version of the script if you have extracted files with the TLZC header.
  • Author
  • Localization

sigroon365, posted Mon Aug 22, 2016 11:25 pm (16769)


Ah, I used old script. :lol: Thank you!
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.