ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu May 25, 2017 1:15 am

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Wed Mar 08, 2017 2:22 pm 

Joined: Mon Mar 06, 2017 11:10 pm
Posts: 3
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.


Attachments:
TEX files.zip [255.73 KiB]
Downloaded 32 times
Top
   
PostPosted: Mon Mar 20, 2017 1:26 pm 
User avatar

Joined: Thu Oct 02, 2014 4:58 pm
Posts: 142
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


Attachments:
bg_2.jpg [94.28 KiB]
Downloaded 2 times
Top
   
PostPosted: Mon Mar 20, 2017 4:53 pm 

Joined: Tue Feb 16, 2016 6:36 pm
Posts: 45
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.


Top
   
PostPosted: Mon Mar 20, 2017 5:06 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6008
Code:
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


Top
   
PostPosted: Tue Mar 21, 2017 5:39 am 
User avatar

Joined: Sat Dec 27, 2014 8:49 pm
Posts: 88
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.


Attachments:
texjpg.zip [2.76 KiB]
Downloaded 24 times

_________________
My personal site: http://atom0s.com
Donations can be made via Paypal: Click Here
Top
   
PostPosted: Wed Apr 26, 2017 12:54 pm 

Joined: Thu Dec 08, 2016 8:35 pm
Posts: 10
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 :)


Top
   
PostPosted: Wed Apr 26, 2017 4:38 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6008
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 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