PEVSoft Texture 2 TGA (Console Version)
http://www.members.optusnet.com.au/~villaump/pevsoft.htm



The Console Version is provided to work with Auran's Content Manager for TRS2009.
It is launched from the command line and has the same conversion capabilities as the 
Windows version, able to convert one texture to TGA or able to scan folders for .textures
and convert what ever .texture files it finds.


The following command line parameters (switches) are accepted:-

-trawl -dxt -help -version -echo (help, version and echo also work without hyphen)

Use double quotes around any path entry, and back slashes \ within the quotes as folder separators.


Launch with a .texture file as the only command line parameter will convert that one file
 to a TGA. eg.   [path]\Texture2TGA_con.exe "[path]\myfile.texture"

[path]\Texture2TGA_con.exe -trawl "[trspath]\editing" will convert all uncompressed
 .texture files that are open for edits (in the editing folder or subfolders) to TGAs

Add -DXT (not case sensitive) to convert DXT compressed files as well.  eg.
[path]\Texture2TGA_con.exe -dtx -trawl "[trspath]\editing"

[path]\Texture2TGA_con.exe -help    displays the help screen

[path]\Texture2TGA_con.exe -version   displays program name and present version number

[path]\Texture2TGA_con.exe -echo [data] displays the [data] string for testing purposes



To Install this program as a tool into Content Manager, create a folder in the Trainz installation
as follows:
              c:\Program Files\TRS2009\bin\CMPData\tools\OpenWith

In this folder create a DOS batch file with the name "Texture2TGA.bat" (or similar) with
the following commands:

  @echo off
  "C:\Program Files\TRS2009\Extras\Third-party Addons\PEVSoft\Texture2TGA_con.exe" -trawl %1


To use the program select one or more items in Content Manager, then right click to bring
up the menu.  Select Open With, then click on Texture2TGA.bat.

The selected items will open for edit and the Texture2TGA conversion will be done as 
they are opened.  Content Manager will display a progress bar..

If you inspect the opened items you will find that all *.texture files will have  *.tga and
*.texture.txt files added.  When you commit the assets the *.texture files will be deleted,
and replaced in the database by the *.tga and *.texture.txt pointer files.  




