$20 for a .tex to dds or png (and vise-versa) converter

If nobody is able to help for free... let's try this way. No sellers allowed.
MListener54
Posts: 3
Joined: Mon Mar 06, 2017 11:10 pm

$20 for a .tex to dds or png (and vise-versa) converter

Post by MListener54 »

Hi guys. I will pay $20 to anyone who can give me a tool or write me script that can convert the attached .tex files to dds or png, and another to roll back the files format to .tex again.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: $20 for a .tex to dds or png (and vise-versa) converter

Post by Savage »

It's a jpg with the header modified i attach a sample reconverted, don't pay me, pay to Aluigi (i recommend in BTC, will soar soon), he deserves it, i will attach the script this week :D
OClear
Posts: 45
Joined: Tue Feb 16, 2016 6:36 pm

Re: $20 for a .tex to dds or png (and vise-versa) converter

Post by OClear »

MListener54 wrote:Hi guys. I will pay $20 to anyone who can give me a tool or write me script that can convert the attached .tex files to dds or png, and another to roll back the files format to .tex again.


The image data doesn't need to be converted. It's just a jpg file with a bogus file header. Heck, even the jpg comments are still in there. You could probably fix that with a hex editor if you're desperate enough, and then just rename the file to .jpg.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: $20 for a .tex to dds or png (and vise-versa) converter

Post by aluigi »

Code: Select all

set MEMORY_FILE binary "\xff\xd8\xff\xe0\x00\x10\x4a\x46\x49\x46\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xe1\x00\x3a"
math OFFSET = 0x2f
get SIZE asize
math SIZE - OFFSET
get NAME basename
string NAME + ".jpg"
log NAME 0 0x18 MEMORY_FILE
append
log NAME OFFSET SIZE
append
atom0s
Posts: 250
Joined: Sat Dec 27, 2014 8:49 pm

Re: $20 for a .tex to dds or png (and vise-versa) converter

Post by atom0s »

Here's a simple console app you can drag and drop .tex files onto to convert to .jpg.

Converting back to .tex would require understanding what the 0x2C chunk of data after the TEX in the header is actually used for otherwise the game probably wont allow the file to be used.
dissectionalone
Posts: 10
Joined: Thu Dec 08, 2016 8:35 pm

Re: $20 for a .tex to dds or png (and vise-versa) converter

Post by dissectionalone »

Hi guys,

I've been trying to find a way to convert CSR Racing 2 .tex files to some other format that "normal" programs like photoshop can read and stumbled across this thread but I'm not having any luck. The texjpg.exe doesn't do anything when I drag and drop files onto it and if I run it from a command prompt it tells me the file I specified doesn't exist. Other tools like unity assets explorer can't convert those .tex files to dds either.

Does anyone know any alternative tools that might do the conversion?

Thanks in advance :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: $20 for a .tex to dds or png (and vise-versa) converter

Post by aluigi »

We don't know what's the game from which the author of the topic got these TEX files and we don't know what TEX files you have.
Better if you open a new topic in the Graphics section.