GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CromFr/STNeverwinterScript: Sublime Text completion, syntax highlighting and build system for NWScript (NSS) (NWN2 and possibly NWN1)

BranchesTags
Open more actions menu

Latest commit

 

History

115 Commits
115 Commits

Folders and files

NameName
Last commit message
Last commit date
messages
messages
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
2da.sublime-syntax
2da.sublime-syntax
 
 
Main.sublime-menu
Main.sublime-menu
 
 
README.md
README.md
 
 
messages.json
messages.json
 
 
nwnscriptcompiler.sublime-syntax
nwnscriptcompiler.sublime-syntax
 
 
nwscript.sublime-build
nwscript.sublime-build
 
 
nwscript.sublime-completions
nwscript.sublime-completions
 
 
nwscript.sublime-settings
nwscript.sublime-settings
 
 
nwscript.sublime-syntax
nwscript.sublime-syntax
 
 
nwscript.tmPreferences
nwscript.tmPreferences
 
 
nwscript_builder.py
nwscript_builder.py
 
 
nwscript_completion.py
nwscript_completion.py
 
 
nwscript_doc_fixes.py
nwscript_doc_fixes.py
 
 

Repository files navigation

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.

Configuration

Global preferences can be found in Preferences -> Package settings -> STNeverwinterScript -> Settings

Project-specific preferences can be set in the .sublime-project file:

{
  "settings": {
    "nwscript": {
      "compiler_args": ["-q", "-o", "-y", "-v1.70", "-e"],
    }
  }
}

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/

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

About

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

packagecontrol.io/packages/Neverwinter%20Script%20syntax%20and%20build

Resources

Readme
Activity

Stars

11 stars

Watchers

3 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.