Optimize Custom TXD

From Multi Theft Auto: Wiki
Revision as of 09:30, 26 February 2015 by Rplgn . (talk | contribs) (pointing things into the right direction)
Jump to navigation Jump to search

Introduction

A TXD file contains image files for GTA to use. Model mods downloaded from the 'internet' often contain bloated TXD files. These can usually be reduced by several MB's which saves memory and download time.

Example of how to reduce the size of a TXD file

  • Find, install and run the TXD editing program "TXD Workshop" (by Jernej L.)
  • Press the 'Open TXD' button at the top and load a TXD file.
  • Look down the list of images and find any that are too big. Examples of too big:
- Almost anything over 512 x 512
- Images of small details, such as vehicle dashboards and license platers which are over 128 x 128
- Images with one color, such as 'remapsub' which are over 32 x 32
  • In TXD Workshop, select an image and press the 'Export' button at the top, select PNG and save the file.
  • Open the file in a image editing program and reduce the file to one of these sizes:
- 32x32, 64x64, 128x128, 256x256, 512x512
  • Save the file.
  • Back in TXD Workshop, press the 'Import' button and load the reduced file.
  • Then press the 'Save TXD' button.

Optimization using TxdGen

To further improve the quality of TXD files, it is advised to clean them. You can do that by passing the textures through the TxdGen tool. It can detect a wide variety of structural problems inside of TXD files and fix them automatically for you.

Tutorials for its usage are included on the GTA Modding page.