Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

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

Featured Replies

  • Author
  • Localization

MListener54, posted Wed Mar 08, 2017 2:22 pm (21295)


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.
  • Author
  • Localization

Savage, posted Mon Mar 20, 2017 1:26 pm (21655)


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
  • Author
  • Localization

OClear, posted Mon Mar 20, 2017 4:53 pm (21665)


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.
  • Author
  • Localization

aluigi, posted Mon Mar 20, 2017 5:06 pm (21668)


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
  • Author
  • Localization

atom0s, posted Tue Mar 21, 2017 5:39 am (21677)


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.

texjpg.zip

  • Author
  • Localization

dissectionalone, posted Wed Apr 26, 2017 12:54 pm (22658)


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 :)
  • Author
  • Localization

aluigi, posted Wed Apr 26, 2017 4:38 pm (22665)


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.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.