Skip to content

Latest commit

 

History

History

moduleinstaller

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Module installer tool

If your module is versioned using Git, this tool can help you:

  • Update your git repository
  • Copy/remove changed files to the installed module copy (faster that copying everything)
  • Get faster loading times by using the override folder when possible (files inside module folder get duplicated during module load)
  • Cons: you will need to commit compiled scripts inside the repository

The tool will install these files depending on their extension:

  • .are .git .trx .ult .upe .utc .utd .ute .uti .utm .utp .utr .utt .utw .ncs .dlg .fac .jrl .xml .2da
    • into: $nwn2home/Override/ModuleName
  • .ifo .gff
    • into: $nwn2home/Modules/ModuleName
  • .trn .gic .pfb .dat .nss .ndb
    • are stripped / ignored
  • Other files are put into $nwn2home/Override/ModuleName-unknown for the sake of safety

This tool is only suited for server setup, as it will populate the override folder with module files that will interfere with other modules / campaigns.

Usage

nwn2-moduleinstaller --help
# ./nwn2-moduleinstaller module_git_repo nwn2home
#           --name Override module name
#         --branch Module git branch to install. Default: origin/master
# -f       --force Delete and reinstall all module files
#    --nogitupdate Do not fetch/checkout git repo. Use as is. May need -f in some cases.
# -v     --verbose Print all file operations
# -h        --help This help information.

Build

dub build -b release