

DTX v1 / DTX v1.5 is an old format with all textures being paletted 8-bit images and alpha being stored inside DTX file. I also wrote a second script to extract alpha layer (first mipmap of it) from DTX v1 / DTX v1.5 files. Python.exe main.py -input "C:\Textures\Example1.DTX" -output "C:\Textures-Upscaled\Example1.DTX" DTX v1 / DTX v1.5 Alpha Extraction Transfering meta information between files Python.exe main.py -input "C:\Textures\Example3.DTX" -table "C:\NOLF\out.csv" Python.exe main.py -input "C:\Textures\Example2.DTX" -table "C:\NOLF\out.csv" Python.exe main.py -input "C:\Textures\Example1.DTX" -table "C:\NOLF\out.csv" Writing meta information from several files to one CSV table (it will insert new rows into existing file or create new if there is none) Python.exe main.py -input "C:\Textures\Example.DTX" -read We do not use -read or -table arguments with -output o OUTPUT, -output OUTPUT Path to the DTX we want to transfer meta-information to. t TABLE, -table TABLE Write DTX Meta information into CSV table, requires -input option

r, -read Print DTX Meta information into console, requires -input option i INPUT, -input INPUT Path to the DTX we want to read You can read more about this format and ways of modding LithTech engine games in these two articles: Because of dtxutil always use 32-Bit as image format - BPP information is not transfered.ĭO NOT TRANSFER INFORMATION BETWEEN DIFFERENT VERSIONS OF THE FILES (from DTX v2 to DTX v1 and so on)!!! So I wrote a python script to extract this information from original files and write into upscaled files. This way game was lacking detail textures, environment textures etc cause all this information was stored in original DTX files. The main reason was: I was doing upscale pack for NOLF1 and needed to replace original textures with thousands of upscaled textured, which were batch converted from tga by dtxutil program. The idea of transfering is to transfer all the embedded meta information of DTX textures (Flags, Surface Types, Details Scales, Command strings etc) from one DTX file to another, except for Width, Height and BPP. Also alpha image extraction is available for DTX v1 and DTX v1.5 (DTX v2 doesn't need that, there is a converter from DTX v2 to TGA with alpha layer). And DTX v1.5 version (Kiss: Psycho Circus: The Nightmare Child) for information reading only. Transfer of LithTech engine DTX texture files meta-informationįor now support added for information reading and transfering for DTX v1, DTX v2 versions of the textures.
