Request: Utility to export dds files in every needed size

SevenSpirits

Immortal?
Joined
Jul 7, 2007
Messages
512
In the modder's guide, there are instructions on what to do once you've made some icons. Resize, export to dds, resize, export to dds...

No one should have to do that. So we need one or more of the following:

1) A script for photoshop/gimp to export and automatically name all of those sizes with one command.

2) A script, or set of manual configuration instructions, for some other program that can do batch stuff, like Irfanview, to make a bunch of dds files in the right sizes from a 256-size one.

In either case the output files should be named [basename][size].dds.

The required sizes are listed as:
 Promotions 256, 64, 45, 32
 Buildings 256, 128, 64, 45
 Citizens 256, 128, 64, 45, 32
 Civilizations 256, 128, 80, 64, 45, 32
 Difficulties 128, 64, 32
 GameSpeeds 128, 64, 32
 Leaders 256, 128, 64
 Natural Wonders 256, 128, 80, 64, 45
 Policies 256, 64
 Resources 256, 80, 64, 45
 Technologies 256, 214, 128, 80, 64, 45
 Terrain 256, 64
 Unit Actions 64, 45
 Units 256, 128, 80, 64, 45
 Unit Flags 32
 World Sizes 128, 64, 32
 World Types 128, 64, 32

So just have it output 256, 214, 128, 80, 64, 45, 32. No big deal to have extras I think.
 
I 100% agree with you, every time I try to mod a game the DDS part is * **** ** *** *ss :( I found this new tool created by AMD which can facilitate our job:

http://developer.amd.com/gpu/compressonator/Pages/default.aspx

It even has a SDK for some more engaged people/companies make plugins for it, but until there we still have one way that can easy our lives, command line options! See below, if you create .bat batch files you can save lots of work and time:

Spoiler :
Code:
Usage: TheCompressonator.exe -convert [-r, -log, -mipmaps, -skip, -overwrite, -datecheck] <source di
r or file> <destination dir or file> [-format <extension>] [-codec <codec filename> [codec specific
options]] [+fourCC <fourCC identifier>] [-mipper <mipper filename> [mipper specific options]]

    -r                    Recursively convert files in source directory & all
                          subdirectories.
    -log                  Create a debug log.
    -mipmaps              Generate mipmaps (assumed when -mipper is used).
    -skip                 Don't overwrite existing files.
    -overwrite            Overwrite existing files.
    -datecheck            Overwrite existing files when source file is newer.
    -format <extension>   Specifies destination file extension when converting
                          directories.
    +fourCC <identifier>  Specifies what type of compression to use.
    ~MinMipSize <size>    Specifies the smallest mip level to generate.
                          This is the size of the largest dimension of the mip.
    ~MaxMipLevels <mips>  Specifies the maximum number of mip levels to generate.

codec options take the form +attribute value.

mipper options take the form ~attribute value.

example: TheCompressonator.exe -convert -r c:\images ")c:\destination images"    -format .bmp -codec
 dxtc.dll +fourCC DXT5 +red .1 -mipper boxfilter.dll ~string "just part of the example"
(it has a nice GUI too, with batch processing and all, neat)


I'm not there yet (reading, reading, reading..) but as soon I get to work with some graphics mod I'll create my own batch files and share here if it's of interest. Let me know if you give it a try :)
 
Top Bottom