Antichamber - Textures.tfc

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Antichamber - Textures.tfc

Post by puggsoy »

I'd really like to grab the textures from Antichamber (in particular the signs that show up around the place). I tried using UModel but that can only open the .upk files and doesn't give me much.

If someone could even just help with figuring out how to decompress this that would be appreciated! Here is the file.
dniel888
Posts: 9
Joined: Mon Dec 22, 2014 1:04 am

Re: Antichamber - Textures.tfc

Post by dniel888 »

I wrote a script that get the textures but some data doesn't seem to exist (like texture height), also I don't know what the texture format, and maybe something wrong with the decrypting of the chunks (the script just decrypt all the texture), here is the script:

Code: Select all

# extract the textures from .tfc archive (Antichamber)
# (c) 24/01/2016 by dniel888
# script for QuickBMS http://quickbms.aluigi.org
 
comtype lzo1x
 
for i = 0 < 1424
    get HASH long
    get UNK long
    get ZSIZE long
    get SIZE long
    set SUM long 0
    for SUM = SUM != ZSIZE
        get ZSIZECHUNK long
        get SIZECHUNK long
        math SUM += ZSIZECHUNK
    next
    savepos OFFSET
    clog i OFFSET ZSIZE SIZE
    math OFFSET += ZSIZE
    goto OFFSET
next i
Last edited by dniel888 on Thu Nov 23, 2017 6:14 pm, edited 1 time in total.
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: Antichamber - Textures.tfc

Post by puggsoy »

Thanks a lot! I'll see if I can get these into actual images.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Antichamber - Textures.tfc

Post by Acewell »

dniel888 wrote:I wrote a script that get the textures

thanks! i was going to make a bms script for these tfc archives and found your post.
i modified it to work universally with other tfc files from other games too, here is what i got so far :D

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm
 
comtype lzo1x
get TFC_SIZE asize
for i
    get HASH long
    get UNK long
    get ZSIZE long
    get SIZE long
    math SUM_OF_ZSIZE_CHUNKS = 0
    do
        get ZSIZE_CHUNK long
        get SIZE_CHUNK long
        math SUM_OF_ZSIZE_CHUNKS + ZSIZE_CHUNK
    while SUM_OF_ZSIZE_CHUNKS != ZSIZE
    savepos OFFSET
    string NAME p "%08x.dxt" OFFSET
    clog NAME OFFSET ZSIZE SIZE
    math OFFSET + ZSIZE
    goto OFFSET
    if OFFSET == TFC_SIZE
        break
    endif
next i

it works but extracts without names and headers, i believe the strings are stored in a bin file along side the original tfc files.
can someone upload some tfc/bin sample pairs for examination? :)
Last edited by Acewell on Mon Jan 22, 2018 10:01 am, edited 1 time in total.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Antichamber - Textures.tfc

Post by makc_ar »

Wow! This .tfc: Warp, Styx, Mortal Kombat Arcade Kollection https://mega.nz/#!4XgkEDpS!yjQxr7-tYxi2 ... c26g2ElZd4
qabRieL
Posts: 12
Joined: Fri Feb 12, 2016 11:53 am

Re: Antichamber - Textures.tfc

Post by qabRieL »

Hey everyone, I'd also like to view the textures, especially the signs, anyway I can do it?