Batch files - matyalatte/UE4-DDS-Tools GitHub Wiki

[!Note] This is a manual for batch file users.
You should dowload UE4-DDS-tools-*-Batch.zip from here.
Or see the GUI manual

Set UE Version

To run the batch files, you should specify the UE version of your game.
Drop .uasset onto _0_check_version.bat.
It saves one of the validated versions to src/config.json.

[!Note] If you want to set the version manually, edit ./src/config.json by yourself.
config.json

[!Note] You can also use --version= option in the batch files. It will overwrite the config.

Extraction

Drop .uasset (or a folder) onto _1_export_as_tga.bat.
It exports textures to ./exported, and saves the input path for injection.

[!Note] If a .uasset has multiple textures, they will be exported as multiple files with indices.
(e.g. If image.uasset has 10 textures, image.0.tga ~ image.9.tga will be generated.)

Set Asset Path

Drop .uasset onto _2_set_asset_path.bat.
It saves the input path for injection.

[!Note] You can skip this step if you use the same path as _1_export_as_tga.bat.

Injection

Drop an image file (or a folder) onto _3_inject.bat.
It injects the image to the saved uasset path.
Injected asset is saved in ./injected.

[!Note] If a .uasset has multiple textures, drop the first indexed image.
(e.g. If you want to inject image.0.tga ~ image.9.tga to image.uasset, drop image.0.tga onto the batch file.)

Folder Injection

You can use folder paths as arguments.
The tool will search the folders recursively, and run the operations for the found assets.
See here for the details.
Folder Injection · matyalatte/UE4-DDS-tools Wiki

Copy

Drop a folder onto _copy.bat.
It copies only texture assets to ./copied.

Parse

Drop .uasset onto _parse.bat.
You can see parsed info (e.g. name maps, object classes, etc.)

Command Line Usage

You can add some options (like --no_mipmaps) to the batch files.
See here for the details.
Command Line Usage · matyalatte/UE4-DDS-tools Wiki