Skip to content

Script Compiler for Enhanced Edition

2»

Comments

  • RinehardtRinehardt Member Posts: 7
    You can add a loop to your batch file or shell script so it keeps attempting to compile until the compiler returns an exit code of 0. Here's the batch file I use to compile on Windows:
    :loop
    "C:\nwn\nwnsc.exe" -o -w -n "C:\Steam\SteamApps\common\Neverwinter Nights" -i "C:\docs\Documents\Neverwinter Nights\modules\temp0" "C:\docs\Documents\Neverwinter Nights\modules\temp0\*.nss"
    if %errorLevel% == -1 goto :loop
    pause
    
    dunahan
  • virusmanvirusman Member, Developer Posts: 173
    nwnsc is now maintained here: https://github.com/nwneetools/nwnsc
    The fix for this bug is already in the code, but an official update hasn't been released yet.
    TarotRedhand
  • virusmanvirusman Member, Developer Posts: 173
    Released version 1.1.1 with fixes: https://github.com/nwneetools/nwnsc/releases/tag/v1.1.1
    dunahanWilliamDracoCalgacus
  • prwoprwo Member Posts: 69
    Since I have upgraded to development branch 8193.14 (v80.8193.14 [0caab8c0]), nwnsc 1.1.1 generates the following error:
    WARNING: Failed to open .key archive '[...]\Beamdog Library\00829\data\nwn_base.key': exception 'SeekOffset( VariableTableOffset ) failed.'.
    ed.nss(5): Error: NSC1085: Unable to open the include file "nw_i0_plot"
    
    NWN_ROOT set accordingly

    Maybe the format of nwn_base.key has changed in v80.8193.14.
    Using the Toolset, the file compiles just fine.
  • SherincallSherincall Member Posts: 387
    prwo wrote: »
    Maybe the format of nwn_base.key has changed in v80.8193.14.

    The format didn't change, nwnsc just took some incorrect shortcuts in parsing the files and its coming back to bite it.
    prwo
  • WilliamDracoWilliamDraco Member Posts: 164
    https://github.com/nwneetools/nwnsc/releases

    nwnsc got an update for this just a few days ago. Turns out there were some empty bif files, and nwnsc didn't know what to do with bif files that only had headers and no data. Suspect this was related to the facelift tilesets that were in preview but removed from dev patch.

    Either way a wonderful contributor fixed up this error and v1.1.2 reads 8193.14 just fine.
    prwodunahan
  • prwoprwo Member Posts: 69
    edited August 2020
    https://github.com/nwneetools/nwnsc/releases

    nwnsc got an update for this just a few days ago. Turns out there were some empty bif files, and nwnsc didn't know what to do with bif files that only had headers and no data. Suspect this was related to the facelift tilesets that were in preview but removed from dev patch.

    Either way a wonderful contributor fixed up this error and v1.1.2 reads 8193.14 just fine.

    Thank you very much. Using nwnsc version 1.1.2 now works with 8193.14 (v80.8193.14 [0caab8c0]).
  • ReachPWReachPW Member Posts: 17
    edited January 14
    Thanks for this tool, it works really well!



    Post edited by ReachPW on
Sign In or Register to comment.