TemplateExtractor.exe is a utility for extracting all the information needed in Template Collection from three source files: a .png file with Template images, a .png file with Template terrain info, and a .txt file with Template names.
For details on the formats of these source files see the Template Art Guidelines, Template Terrain Guidelines, and Template Naming Guidelines.
TemplateExtractor usage:
TemplateExtractor [-tc <output.tc>] [-n <names.txt>] -art <art.png> -ter <terrain.png>
If the output Template Collection is not specified each Template will be written as a separate .png file using the name given in the names.txt file. If no names file is specified the Templates are named "templateNN" where NN starts at 00 and increments for each Template.
Example:
TemplateExtractor -tc grassy.tc -n grassyNames.txt -art grassyTemplates.png -ter grassyTerrain.png
This will produce the Template Collection grassy.tc which may then be loaded into the Map Editor for use or added to a Game Database.