Jump to content

[Tutorial] Batch convert TEX to PNG


rafabsides

Recommended Posts

Hi all!

 

This is something I did yesterday that could save you a lot of time in converting the images (just to find out it isnt the one you needed... oh noes). Well, now you can convert a bunch of those .tex files to .png and quickly see if they are the ones you want.

 

Tools needed:

* mhvuze's WorldChunkTool to unpack your bin into pkg into actual files
* Qowyn's MHWTexToPng which will actually convert any file .tex you drag over its .exe

 

Save Qowyn's tool in a place you know where it's at, like the desktop.

Then create a .bat file and put the below into it:

@echo off
if [%1]==[] goto :eof
:loop
start "" "D:\Desktop\mhw-resources\TexToPng.exe" "%~f1"
shift
if not [%1]==[] goto loop

Now you can carry this .bat file (mine is called "doit.bat") into the .tex folder, drag all of those .tex files into this .bat and the converted .png files output in the same folder as the .tex.

 

Hope it will save you some time!

 

Good modding :D

 

 

PS - Don't try too many files (> 30) or your machine will kind of explode.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...