NAME

trnpack - Pack files to trn/trx.


SYNOPSIS

trnpack [--help|-h] [--version|-V] [--verbose|-v] [--config config-file] [--dir|-d directory] [--outversion|-O version] --output|-o output_file [filename ...]

trnpack --help


DESCRIPTION

trnpack takes files and creates trn/trx out from them. The output is written to the file specified with --output option. If list of files is given then only those files are added to the output file. If file list is omitted and --dir is given then all files in the given directory are added to trn.

Note that in trx/trn file it might be possible that the nwn2 requires resources in certain order. Normally they are so that TRWH is first, then all TRRN files (from 00x00y, 01x00y ... 99x99y), and then WATR (in same order), and finally ASWM. It is not known how the game reacts if this order is not followed. Items are added in the order they appear on the command line, or sorted alphabetically in case directory is given.


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.

--dir -d directory
All files from this given directory are added to the output file.

--output -o output_file
File where the output is written. The file is always overwritten.

--outversion -O version
Version to be used when writing file out. For trn files this is normally 2.3, but for example mdb files have version number of 1.12 and toolset will crash if given version 2.3.


EXAMPLES

    trnpack -o test.trn 0000.trwh 0001.trrn 0002.trrn 
    trnpack -d area1 -o area.trx
    trnpack -o a_tk_dyoa.trn a_tk_dyoa/*


FILES

~/.trnpackrc
Default configuration file.


SEE ALSO

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


AUTHOR

Tero Kivinen <kivinen@iki.fi>.