Crates.io | nwn-lib-rs |
lib.rs | nwn-lib-rs |
version | |
source | src |
created_at | 2023-03-03 21:06:19.690632 |
updated_at | 2024-10-26 17:18:45.280055 |
description | Parsing library and command-line tools for Neverwinter Nights 1 and 2 data files |
homepage | |
repository | https://gitlab.com/CromFr/nwn-lib-rs |
max_upload_size | |
id | 800064 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Parsing library and command-line tools for Neverwinter Nights 1 and 2 data files
See the Release page
Read and write NWN2 TRN files (TRX, TRN)
Print TRN packets information
Pack / unpack TRN packets into separate files
nwn-lib-rs can be used to improve git diffs to view changes made inside GFF files (blueprints, journal, areas, ..) and TLK files, and also quickly merge TLK content in case of merge conflicts.
Assuming the nwn-lib-rs tools have been installed in C:\nwn-lib-rs\
, open a terminal (git bash on windows) and run:
git config --global diff.gff.textconv '"C:/Program Files/nwn-lib-rs/nwn-gff"'
git config --global diff.tlk.textconv '"C:/Program Files/nwn-lib-rs/nwn-tlk"'
git config --global diff.tlk.xfuncname '^\s*([0-9]+)>'
git config --global mergetool.tlk.cmd '"C:/Program Files/nwn-lib-rs/nwn-tlk" "$LOCAL" -I tlk --merge "$REMOTE" --merge-format tlk -o "$MERGED" -O tlk'
In your module directory, or any git directory containing NWN files, create a file named .gitattributes
:
# Areas
*.[aA][rR][eE] diff=gff
*.[gG][iI][cC] diff=gff
*.[gG][iI][tT] diff=gff
# Dialogs
*.[dD][lL][gG] diff=gff
# Module
*.[fF][aA][cC] diff=gff
*.[iI][fF][oO] diff=gff
*.[jJ][rR][lL] diff=gff
# Blueprints
*.[uU][lL][tT] diff=gff
*.[uU][pP][eE] diff=gff
*.[uU][tT][cCdDeEiImMpPrRtTwW] diff=gff
# Others
*.[pP][fF][bB] diff=gff
*.[tT][lL][kK] diff=tlk merge=tlk