J#beat Arc@des data / tex_*.bin

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Blueendless
Posts: 3
Joined: Tue Apr 14, 2015 5:46 am

J#beat Arc@des data / tex_*.bin

Post by Blueendless »

tex_*.bin contains all kinds of graphic files with special encryption. Files can be extracted by this quickBMS script (Thanks to aluigi!). But "reimport" does not work very well. Replaced file size (compressed) is not allowed bigger than original. Force will destroy it.
Image
Smaller is OK and load in game normally.

Please help for finding out a proper method to reimport or repack graphic files to bin format. :|
Bytes behind PMAN should be used for pointing to each TDXT's offset address. But I still don't understand its meaning. :cry:

Some tex_*.bin samples HRER.
Last edited by Blueendless on Thu Apr 16, 2015 2:58 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: J#beat Arc@des data / tex_*.bin

Post by aluigi »

Have you tried to edit the file in a way that can be compressed more?
For example if it's an image then it's better if you don't make it too complex, it's better to leave it very simple with just few colors.

Remember to remove the files that you have not edited.
Blueendless
Posts: 3
Joined: Tue Apr 14, 2015 5:46 am

Re: J#beat Arc@des data / tex_*.bin

Post by Blueendless »

Each song has four images. Example after converting to png: http://bin.jvnv.net/f/5AdXx.rar
Replacing one must ensure the same number of four images(after compressing) is smaller than original. This is really a little hard.
So I think paste TDXT bytes to replace designated area and redefine each TDXT's offset address (perhaps need to rewrite the whole PMAN part) is better..... Is it possible?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: J#beat Arc@des data / tex_*.bin

Post by aluigi »

I really don't know if exist some tricks to use less space when compressed, maybe reducing the bit depth.