well. this script is for a totally different platform, game and data. ofc it won't work just cause it's called a tex file.
the tex *cough* tm2 file you have there is from a ps2 game. and it looks messy. a multi file container. except the signature the files seem compressed. i mean the raw content is visible but garbled. it's not the 'regular tim2 header' either. i can't work with this right now.
Thank you for responding.
I am sad to know that there is no tool capable of extracting and inserting. I am editing the RE: Outbreak game and it only needs this file.