Another Century's Episode R .tpf

Textures, recreate headers, conversions, algorithms and parsing of image files
mark12
Posts: 10
Joined: Fri May 04, 2018 4:19 am

Another Century's Episode R .tpf

Post by mark12 »

I've tried scripts for other FromSoftware games like Dark Souls but they don't work on this game.

Sample:
https://mega.nz/#F!nYBTyAQY!M6UuwFYJcQ2di2la3K2c_g

Only c99_130_01.tpf can be extracted with the script
Anexenaumoon
Posts: 119
Joined: Sun Dec 27, 2015 10:22 pm

Re: Another Century's Episode R .tpf

Post by Anexenaumoon »

Use this QuickBMS code on the .tpf's to extract DCP files (Not sure if this is proper extension, but I just appended that for an ID-string purpose):

Code: Select all

endian big
idstring "TPF\x00"
get DATSZ long
get FCOUNT long
get NULL long
savepos TBL

for i = 0 < FCOUNT
   goto TBL
   get OFFSET long
   get SIZE long
   getdstring NULL 0x10 #Skips over useless data
   get FOFF long
   get ZERO long
   savepos TBL
   goto FOFF
   get NAME string
   string NAME += ".dcp"
   log NAME OFFSET SIZE
next i


Part of the reason why that may not work is that it's stored differently across games. I have to look at the actual graphic formats now.