ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Aug 15, 2018 11:09 pm

All times are UTC




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sun Jan 24, 2016 4:09 am 
User avatar

Joined: Sat Dec 13, 2014 1:01 am
Posts: 161
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.


Top
   
PostPosted: Sun Jan 24, 2016 10:22 am 

Joined: Mon Dec 22, 2014 1:04 am
Posts: 9
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


Last edited by dniel888 on Thu Nov 23, 2017 6:14 pm, edited 1 time in total.

Top
   
PostPosted: Mon Jan 25, 2016 2:48 am 
User avatar

Joined: Sat Dec 13, 2014 1:01 am
Posts: 161
Thanks a lot! I'll see if I can get these into actual images.


Top
   
PostPosted: Tue Sep 05, 2017 4:03 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 511
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 "%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? :)

_________________
Quickbms.com link thread
Search bms scripts


Last edited by Acewell on Mon Jan 22, 2018 10:01 am, edited 1 time in total.

Top
   
PostPosted: Tue Sep 05, 2017 1:38 pm 
User avatar

Joined: Sun Aug 17, 2014 7:27 pm
Posts: 1116
Wow! This .tfc: Warp, Styx, Mortal Kombat Arcade Kollection https://mega.nz/#!4XgkEDpS!yjQxr7-tYxi2 ... c26g2ElZd4


Top
   
PostPosted: Fri Jan 19, 2018 3:11 pm 

Joined: Fri Feb 12, 2016 11:53 am
Posts: 9
Hey everyone, I'd also like to view the textures, especially the signs, anyway I can do it?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited