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.

Antichamber - Textures.tfc

Featured Replies

  • Author
  • Localization

puggsoy, posted Sun Jan 24, 2016 4:09 am (10999)


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.
  • Author
  • Localization

dniel888, posted Sun Jan 24, 2016 10:22 am (11001)


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:
# 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
  • Author
  • Localization

puggsoy, posted Mon Jan 25, 2016 2:48 am (11016)


Thanks a lot! I'll see if I can get these into actual images.
  • Author
  • Localization

Acewell, posted Tue Sep 05, 2017 4:03 am (26277)


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:
# 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 "x.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? :)
  • Author
  • Localization

qabRieL, posted Fri Jan 19, 2018 3:11 pm (31696)


Hey everyone, I'd also like to view the textures, especially the signs, anyway I can do it?
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.