ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Neverwinter Script syntax and build

by CromFr ST3

Sublime Text completion, syntax highlighting and build system for NWScript (NSS) (NWN2 and possibly NWN1)

Details

Installs

  • Total 2K
  • Win 1K
  • Mac 277
  • Linux 219
Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10
Windows 1 1 1 1 1 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 0 2 3 0 0 0 0 1 1 0 1 0 0 1 0 1 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 0 0 2 0 0 0 0 0 0 0
01234Mar 26Mar 23Mar 20Mar 17Mar 14Mar 11Mar 8Mar 5Mar 2Feb 27Feb 24Feb 21Feb 18Feb 15Feb 12Mar 26 Linux: 0 Mac: 0 Windows: 1Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 1Mar 23 Linux: 0 Mac: 0 Windows: 1Mar 22 Linux: 0 Mac: 0 Windows: 1Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 1Mar 13 Linux: 1 Mac: 0 Windows: 0Mar 12 Linux: 0 Mac: 0 Windows: 1Mar 11 Linux: 0 Mac: 1 Windows: 0Mar 10 Linux: 1 Mac: 0 Windows: 0Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 0 Mac: 0 Windows: 1Mar 7 Linux: 0 Mac: 1 Windows: 0Mar 6 Linux: 0 Mac: 0 Windows: 0Mar 5 Linux: 1 Mac: 0 Windows: 0Mar 4 Linux: 1 Mac: 0 Windows: 1Mar 3 Linux: 0 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 0Mar 1 Linux: 1 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 0 Mac: 0 Windows: 2Feb 26 Linux: 0 Mac: 0 Windows: 3Feb 25 Linux: 0 Mac: 0 Windows: 0Feb 24 Linux: 1 Mac: 0 Windows: 0Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 1 Mac: 0 Windows: 0Feb 21 Linux: 0 Mac: 0 Windows: 1Feb 20 Linux: 0 Mac: 0 Windows: 1Feb 19 Linux: 0 Mac: 0 Windows: 0Feb 18 Linux: 0 Mac: 1 Windows: 1Feb 17 Linux: 2 Mac: 0 Windows: 0Feb 16 Linux: 0 Mac: 0 Windows: 0Feb 15 Linux: 0 Mac: 0 Windows: 1Feb 14 Linux: 0 Mac: 0 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 1Feb 12 Linux: 0 Mac: 0 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 0Feb 10 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 1Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 1Mar 23 Linux: 0 Mac: 0 Windows: 1Mar 22 Linux: 0 Mac: 0 Windows: 1Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 1Mar 13 Linux: 1 Mac: 0 Windows: 0Mar 12 Linux: 0 Mac: 0 Windows: 1Mar 11 Linux: 0 Mac: 1 Windows: 0Mar 10 Linux: 1 Mac: 0 Windows: 0Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 0 Mac: 0 Windows: 1Mar 7 Linux: 0 Mac: 1 Windows: 0Mar 6 Linux: 0 Mac: 0 Windows: 0Mar 5 Linux: 1 Mac: 0 Windows: 0Mar 4 Linux: 1 Mac: 0 Windows: 1Mar 3 Linux: 0 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 0Mar 1 Linux: 1 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 0 Mac: 0 Windows: 2Feb 26 Linux: 0 Mac: 0 Windows: 3Feb 25 Linux: 0 Mac: 0 Windows: 0Feb 24 Linux: 1 Mac: 0 Windows: 0Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 1 Mac: 0 Windows: 0Feb 21 Linux: 0 Mac: 0 Windows: 1Feb 20 Linux: 0 Mac: 0 Windows: 1Feb 19 Linux: 0 Mac: 0 Windows: 0Feb 18 Linux: 0 Mac: 1 Windows: 1Feb 17 Linux: 2 Mac: 0 Windows: 0Feb 16 Linux: 0 Mac: 0 Windows: 0Feb 15 Linux: 0 Mac: 0 Windows: 1Feb 14 Linux: 0 Mac: 0 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 1Feb 12 Linux: 0 Mac: 0 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 0Feb 10 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 1Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 1Mar 23 Linux: 0 Mac: 0 Windows: 1Mar 22 Linux: 0 Mac: 0 Windows: 1Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 1Mar 13 Linux: 1 Mac: 0 Windows: 0Mar 12 Linux: 0 Mac: 0 Windows: 1Mar 11 Linux: 0 Mac: 1 Windows: 0Mar 10 Linux: 1 Mac: 0 Windows: 0Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 0 Mac: 0 Windows: 1Mar 7 Linux: 0 Mac: 1 Windows: 0Mar 6 Linux: 0 Mac: 0 Windows: 0Mar 5 Linux: 1 Mac: 0 Windows: 0Mar 4 Linux: 1 Mac: 0 Windows: 1Mar 3 Linux: 0 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 0Mar 1 Linux: 1 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 0 Mac: 0 Windows: 2Feb 26 Linux: 0 Mac: 0 Windows: 3Feb 25 Linux: 0 Mac: 0 Windows: 0Feb 24 Linux: 1 Mac: 0 Windows: 0Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 1 Mac: 0 Windows: 0Feb 21 Linux: 0 Mac: 0 Windows: 1Feb 20 Linux: 0 Mac: 0 Windows: 1Feb 19 Linux: 0 Mac: 0 Windows: 0Feb 18 Linux: 0 Mac: 1 Windows: 1Feb 17 Linux: 2 Mac: 0 Windows: 0Feb 16 Linux: 0 Mac: 0 Windows: 0Feb 15 Linux: 0 Mac: 0 Windows: 1Feb 14 Linux: 0 Mac: 0 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 1Feb 12 Linux: 0 Mac: 0 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 0Feb 10 Linux: 0 Mac: 0 Windows: 0

Readme

Source
raw.​githubusercontent.​com

Sublime Text completion and build tools for NWScript

animated demo

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)

Option 2: Making your own compiler + scripts package

  1. 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)
  2. 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)
  3. [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

  1. From Sublime Text: press Ctrl+Shift+P, write PCInstall, press Enter
  2. Search for Neverwinter Script syntax and build, press Enter
  3. Follow the Compiler installation instruction above, if you haven't already