Gildor's Forums

Author Topic: Textures Modding  (Read 3280 times)
deepshit
Newbie
*
Posts: 22


View Profile
Textures Modding
« on: June 01, 2012, 12:25 »

Hi
I'm working on reskinning some characters from couple of UE games.
I managed to hex edit almost any texture in .upk files.(of course after decompression)
But the problem is they're not the main textures and the real ones are in .tfc files.
My question is has anybody ever hex edited any texture in .tfc fles?
Cause it seems .tfc files can not be decompressed so no hex editing.
Thanks
Logged
warrantyvoider
Full Member
***
Posts: 109


View Profile
Re: Textures Modding
« Reply #1 on: June 04, 2012, 20:55 »

my tool reads the references for ME3s pcc files, they come right after the properties, maybe you can copy that behaviour. Just google ME3Explorer

greetz
Logged
deepshit
Newbie
*
Posts: 22


View Profile
Re: Textures Modding
« Reply #2 on: June 06, 2012, 15:40 »

I can't find out how your tool can help me.
I need to decompress textures.tfc.
Your tool can extract bink movies from movies.tfc though.
btw,great tool.
Logged
warrantyvoider
Full Member
***
Posts: 109


View Profile
Re: Textures Modding
« Reply #3 on: June 07, 2012, 02:16 »

the tfc is just a big pile of compressed chunks, which contains the textures in compressed blocks. they all start with a magic number, you could scan for them, but thats unreliable as it could occur in the data too. In the pccs are the offsets saved where these chunks begin, then you need to read the header at this position (16bytes) and all block headers(each 8byte). After that follows the compressed blocks one after another and you need to decompress them with zlib. After that you have to recombine them and add an dds or tga header so you can view it in a picture program. all this is done in my programs code, just search for it, most work is done in the unreal helper section.

greetz

warranty voider
Logged
deepshit
Newbie
*
Posts: 22


View Profile
Re: Textures Modding
« Reply #4 on: June 07, 2012, 18:45 »

Thanks
That's really some good info.
I'll try to see what can I do.
Logged
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS