trnpack - Pack files to trn/trx.
trnpack [--help|-h] [--version|-V] [--verbose|-v] [--config config-file] [--dir|-d directory] [--outversion|-O version] --output|-o output_file [filename ...]
trnpack --help
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.
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/*
trnunpack(1), TrnWrite(1), Trn(3), and TrnRead(3).
Tero Kivinen <kivinen@iki.fi>.