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:
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.
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.
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.
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]).
Comments
The fix for this bug is already in the code, but an official update hasn't been released yet.
Maybe the format of nwn_base.key has changed in v80.8193.14.
Using the Toolset, the file compiles just fine.
The format didn't change, nwnsc just took some incorrect shortcuts in parsing the files and its coming back to bite it.
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]).