Neverwinter Script syntax and build
Sublime Text completion, syntax highlighting and build system for NWScript (NSS) (NWN2 and possibly NWN1)
Details
Installs
- Total 2K
- Win 1K
- Mac 259
- Linux 205
Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text completion and build tools for NWScript
Features
- NWScript
- Syntax highlighting: A bit more accurate than the C syntax
- Auto-completion: Functions, constants, #define and include scripts names
- Documentation: Popups containing function documentation parsed from the script, with some additional notes for known badly behaving functions.
- Snippets: while loops with GetFirst / GetNext functions, and other useful code snippets
- Smart build tool: Quick multi-threaded compilation (only re-compile needed scripts)
- 2DA syntax hilighting: Syntax highlighting and label column indexing (Ctrl+R)
Note: This package has been designed for NWN2, but it should work with NWN1 as well.
Installation
Compiler installation (required for using this package)
Chose either option 1 or 2
Option 1: Using the prepared zip (easy)
- Download and extract the Packed
NWNScriptCompiler
in:
- Windows:
C:\Program Files (x86)\
- Linux:
/opt/
- Windows:
Option 2: Making your own compiler + scripts package
Download the AdvancedScriptCompiler (http://neverwintervault.org/project/nwn2/other/tool/advanced-script-compiler-nwn2) and extract content of
StandaloneCompiler
in- Windows: C:\Program Files (x86)\NWNScriptCompiler\
- Linux: /opt/NWNScriptCompiler/
- or any other path (see Custom paths below)
Extract the NWN2 script data files (located by default in
C:\Program Files (x86)\Atari\Neverwinter Nights 2\Data\Scripts*.zip
) in- Windows:
C:\Program Files (x86)\NWNScriptCompiler\Scripts\
- Linux:
/opt/NWNScriptCompiler/Scripts
- or any other path (see Custom paths below)
- Windows:
[Optional] You can delete ncs files from the
Scripts
directory, since only nss are required.
Custom paths: If you want to install the compiler somewhere else, you will
need to modify the package settings (Preferences -> Package settings ->
STNeverwinterScript -> Settings) to override the compiler_cmd
and
include_path
variables.
Extra steps for Linux
You need wine in order to use the NWNScriptCompiler.exe
apt-get install wine # Ubuntu/Debian users
yum install wine # Fedora/Redhat users
pacman -S wine # Arch-Linux awesome users
You also need to edit STNeverwinterScript settings (Preferences -> Package
settings -> STNeverwinterScript -> Settings) to override the compiler_cmd
and include_path
variables for Linux (examples provided).
Sublime package installation
Install with PackageControl
- From Sublime Text: press Ctrl+Shift+P, write
PCInstall
, press Enter - Search for
Neverwinter Script syntax and build
, press Enter - Follow the Compiler installation instruction above, if you haven't already