ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Mar 25, 2017 11:28 am

All times are UTC




Post new topic  Reply to topic  [ 5 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 21 times
Top
   
PostPosted: Mon Mar 20, 2017 1:26 pm 
User avatar

Joined: Thu Oct 02, 2014 4:58 pm
Posts: 133
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: 8
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: 5700
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: 67
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 10 times

_________________
My personal site: http://atom0s.com
Donations can be made via Paypal: Click Here
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 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