New DTX Utility 7.0

Lithtech 2.1 / 2.2

Post Reply
User avatar
Spawn
Admin
Admin
Posts: 1312
Joined: Sun Jul 25, 2004 12:50 am
Location: Norway
Contact:

New DTX Utility 7.0

Post by Spawn » Thu Apr 16, 2020 10:36 pm

DTXUTIL 7.0 Apr 15 2020 Copyright (C) 2002 LithTech, Inc.

Usage: DTXUTIL <command> <input filename> <output filename>

All commands are mutually exclusive.
Commands:

-tga2dtx (Converts a TGA file into a DTX file)
-tga2bpp32p (Converts a TGA file into 32 bit bitmap file)
-dtx2tga (Converts a DTX file into a TGA file)
-dtx2bpp32p (Converts a DTX file into a 32 bit bitmap file)
-q (Quantize: leaves textures with alpha as true 32 bit)
-qa (Quantize: forces all to be quantized and turned into 32 bit)
-r_q (Recursively quantize: selective -- see above)
-r_qa (Recursively quantize: forces all -- see above)
-r_dtx2tga (Recursively convert DTX files into TGA files)
-r_filldtx (Recursively replace image data in DTX with TGA)
-dtxpixels (Output DTX pixels to a text file in hex format)
-dtxdirreport (Recursively report dtx file info in a directory tree)
-dtxdirdelim (Recursively report dtx file info to a comma delimited file)

Bulk convert a folder:
@echo off
for /R %%a in (*.dtx) do (
"dtxutil.exe" "-dtx2tga" "%%a" "%%~pa/%%~na.tga"
)
Thanks to The One from Lithfaq.com for creating this tool :)
You do not have the required permissions to view the files attached to this post.
Image

y2keeth
Member
Member
Posts: 3
Joined: Sat Oct 15, 2022 7:35 am
Location: michigan
Contact:

Re: New DTX Utility 7.0

Post by y2keeth » Sat Oct 15, 2022 9:18 am

tried to use your example batch to convert tga to dtx
here is what i tried with no luck

Code: Select all

@echo off
for /R %%a in (*.tga) do (
"dtxutil.exe" "-tga2dtx " "%%a" "%%~pa/%%~na.dtx"
)
there is a tga folder with all the tga's in it

User avatar
Spawn
Admin
Admin
Posts: 1312
Joined: Sun Jul 25, 2004 12:50 am
Location: Norway
Contact:

Re: New DTX Utility 7.0

Post by Spawn » Tue Oct 25, 2022 5:57 pm

You may need to run cmd as administrator, It is the same command Akven used to his upscale mod as well.
Image

y2keeth
Member
Member
Posts: 3
Joined: Sat Oct 15, 2022 7:35 am
Location: michigan
Contact:

Re: New DTX Utility 7.0

Post by y2keeth » Thu Oct 27, 2022 10:42 am

thanks I will try that

albinos
Member
Member
Posts: 2
Joined: Sat Oct 28, 2023 6:36 pm

Re: New DTX Utility 7.0

Post by albinos » Sat Oct 28, 2023 8:06 pm

would anyone tell me why the exe immediately closes when i try to open it?

User avatar
Spawn
Admin
Admin
Posts: 1312
Joined: Sun Jul 25, 2004 12:50 am
Location: Norway
Contact:

Re: New DTX Utility 7.0

Post by Spawn » Sun Oct 29, 2023 12:45 am

Hi, welcome :)

This executable file does not have a GUI (Graphical user interface) which means that it will only run in a command prompt or for instance a .bat script
Image

dadya1055
Member
Member
Posts: 2
Joined: Thu Jan 04, 2024 5:07 am

Re: New DTX Utility 7.0

Post by dadya1055 » Thu Jan 04, 2024 7:16 am

I tried, but dtxutil gives an error mfc140d.dll.
Where can I get this dll file? :(

User avatar
Spawn
Admin
Admin
Posts: 1312
Joined: Sun Jul 25, 2004 12:50 am
Location: Norway
Contact:

Re: New DTX Utility 7.0

Post by Spawn » Fri Jan 05, 2024 6:50 pm

There may be a dependency missing from windows, I will look into this.
Image

Post Reply
jedwabna poszewka 50x60