NAME

change-uiflags - Change UIFlags of the models


SYNOPSIS

change-uiflags [--help|-h] [--version|-V] [--verbose|-v] [--config config-file] [--type|-t type-regexp] [--uiflags|-u uiflags] [--output|-s output-file-or-dir] [--force|-f] filename ...

change-uiflags --help


DESCRIPTION

change-uiflags changes the UIFlags of the model based on the list of regexps and new values. Regexp and new uivalues are given in pairs. If regexp given in --type matches, then uiflags is set to the value given in --uiflags option.

If --output option is given and specifies directory then new models are written to that directory with same name as the input file. If it is not directory then output file is written to that file (if no mdb prefix is specified then it is automatically added). If not --output option is given, then the input file is overwritten with the new file.

This will only write output files if it actually changes the model unless --force option is given (useful if used with --output option pointing to directory).


OPTIONS

--help -h
Prints out the usage information.

--version -V
Prints out the version information.

--verbose -v
Enables the verbose prints. This option can be given multiple times, and each time it enables more verbose prints.

--config config-file
All options given by the command line can also be given in the configuration file. This option is used to read another configuration file in addition to the default configuration file.

[--type|-t type-regexp] =item [--uiflags|-u uiflags]
Regexp to match the file name and type. If the resource inside the input file matches this then the UIFlags are changed to the matching --uiflags. There must be equal number of --type and --uiflags options as they act as pairs. This defaults to --type ``rigd$'' --uiflags 64 --type ``(walk|col2|col3)$'' --uiflags 0

=item [B<--output>|B<-s> I<output-file-or-dir>]

Output file or directory. If it is directory then outuput files are written to that directory with same name as input file (it might be useful to include --force option in that case). If it points to file then output is written to that file (if multiple input file names are given all output is still written to same file). If not given then input files are overwritten with the new modified version.

[--force|-f]
Force writing output file even if the file is not modified.


EXAMPLES

    change-uiflags --type "rigd\$" --uiflags 64 --type "(walk|col[23])$" --uiflags 0 *.mdb
    change-uiflags -o output-dir/ *.mdb


FILES

~/.changeuiflagsrc
Default configuration file.


SEE ALSO

trnprint(1), Trn(3), TrnWrite(3) and TrnRead(3).


AUTHOR

Tero Kivinen <kivinen@iki.fi>.


HISTORY

Program made for Hellfire to set the UIFlags in the models when making tilesets.