Dead Rising 2 .tex

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Dead Rising 2 .tex

Post by makc_ar »

Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Dead Rising 2 .tex

Post by Acewell »

this bms script will split and decompress the bct textures from your tex samples :D

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

idstring "\x06\x05\x04\x03"
get TEX_INFO_SZ long
get TEX_SZ long
get FILES long
get TEX_HEADER_SZ long
get STRING_TABLE_OFF long
for i = 0 < FILES
   get NAME_OFF long
   get HASH long
   get ZSIZE long
   get SIZE long
   get OFFSET long
   get PADDING_SZ long
   get COMP_FLAG long
   savepos TMP
   goto NAME_OFF
   get NAME string
   set NAME basename NAME
   string NAME + .bct
   if COMP_FLAG == 0
      log NAME OFFSET SIZE
   else
      math OFFSET + 4
      math ZSIZE - 4
      comtype zlib
      clog NAME OFFSET ZSIZE SIZE
   endif
   goto TMP
next i

i have not looked at the formats of the extracted *.bct yet, just wanted to at least get this posted for now. :)

edit
just found this script on Xentax but it looks like it doesn't decompress any files so we are still good. :)
http://forum.xentax.com/viewtopic.php?p=48763#p48763

edit2
there is also gibbed tools for working with this game but i didn't try it :)
http://deadrising.wikia.com/wiki/Mod:Gi ... ling_files
http://www.mediafire.com/?nfvixrepf530sm2
Last edited by Acewell on Sun Jan 14, 2018 10:13 am, edited 2 times in total.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Dead Rising 2 .tex

Post by makc_ar »

Thanks a lot Acewell! .bct textures hard format?
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Dead Rising 2 .tex

Post by Acewell »

okay here is Noesis python script to open the bct textures. :D
tex_DeadRising2_bct.zip

supports dxt1, dxt5 and rgba32

some tex files stored 169 file names without the bct extension so i modified the bms script to fix this while extracting.
i don't know if it is just the art style of this game or what but half the textures appear grainy around the edges. :?
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Dead Rising 2 .tex

Post by makc_ar »

Thanks a lot Acewell!