[Main thread]
The Advanced Scirpt Compiler (old, defunct vault page) is an updated and renovated version of Torlack's script compiler (otherwise sometimes known as the "PRC script compiler"). Because the other compiler forks no longer have any interested maintainer, I am taking over maintainership for the open source compiler project.
The project includes a new standalone script compiler (NWNScriptCompiler.exe), which is compatible with both NWN1 and NWN2. Only Windows builds of the updated compiler are available right now.
Additionally, a toolset compiler plugin for the NWN2 toolset is included in the release package. The NWN2 toolset plugin changes the toolset to use the improved compiler (which is likely not of interest to this forum).
Virusman produces a toolset compiler plugin for the NWN1 toolset, NWNTX, which you can find here. (Both projects share the same compiler core module and will pick up improvements to the compiler as time goes on.) If you prefer working with the toolset as your compiler and editor, I recommend using virusman's plugin instead of the standalone compiler; compiler functionality is equivalent in both packages.
Details on compiler improvements versus Torlack's compiler and the standard BioWare toolset compiler can be found in the readme notes of the distribution. In summary, numerous compiler bugs (including some bad code generation issues) have been fixed, and many new compile time errors and warnings are available that help detect potentially problematic issues with scripts being compiled. Additionally, many constructs that are incompatible for one reason or another with the standard BioWare toolset compiler will emit a warning if compiler version 1.69 or earlier is requested, to aid content creators in avoiding introducing incompatibilities with the standard BioWare toolset compiler (which has various bugs and non-obvious internal limitations).
Typical usage of NWNScriptCompiler.exe for compiling projects with NWN1, if you are in the directory containing your module's scripts and module.ifo, is:
NWNScriptCompiler.exe -1clov1.69 -r . -n "path to NWN1 install" *.nss
Command line syntax is compatible with (and an extension of) the old nwnnsscomp syntax. You may specify raw fileystem include paths via -i, if you do not want the compiler to search in the game's data files for includes and nwscript.nss (in which case you would want to omit the -l option). If you want to compile freestanding scripts not associated with a module, the '-r .' option can be omitted.
Additional documentation is available by running the compiler on the command line, or by looking in the readme documentation in the release package on NWVault linked at the top of the thread.
Modifié par SkywingvL, 29 juin 2014 - 01:05 .





Retour en haut







