NWNX:EE stands for Neverwinter Nights Extender: Enhanced Edition. In a nutshell, NWNX:EE is a framework that developers can use to modify existing hardcoded rules or inject brand new functionality into Neverwinter Nights: Enhanced edition.
Using NWNX:EE, developers can make plugins to do anything they want, including but not limited to:
NWNX:EE is not just for plugin developers. Module creators can use plugins created by the NWNX:EE contributors to expand the scripting and systems functionality of their modules.
Check out the Awesome NWNX page for a list projects using NWNX.
The most recent build of NWN:EE that is supported can be discovered at the top of this file. Please note that we do NOT support any server binaries other than the one in the dedicated server package. We support neither the binary released through the Beamdog client nor the one released through the Steam client. That said, the Steam and Beamdog binaries are almost always identical to the one in the dedicated server package, see the top of this readme for a md5sum of the binary we support.
We release at least one update for each new version of the dedicated server package, which can be found here: Server download packages and docker support
Only Linux is natively supported. It is possible to run NWNX:EE on Windows using Docker to emulate a Linux server environment or WSL/WSL2 when using Windows 10. At this point in time there are no plans for native Windows support of NWNX:EE.
First of all, you need to get the NWNX binaries. If you want to compile the binaries yourself, refer to the compiling section below. Otherwise, you can download the binaries by clicking on the Releases header to the right of the GitHub repository page.
Each NWNX:EE Release has a NWScript.zip
file containing all of the scripts files, if you have built NWNX:EE yourself the NWScript.zip
file will be in your Binaries
folder. Simply import the scripts into your module and call the functions as you would any other scripting function. Be sure to update these scripts whenever updating NWNX, and then rebuild all your scripts in your module.
Given the binaries, follow these steps:
#!/bin/sh export LD_PRELOAD="./NWNX_Core.so" ./nwserver-linux
export NWNX_LUA_SKIP=true
export NWNX_CORE_LOG_LEVEL=7 # Default log level for core and all plugins export NWNX_LUA_LOG_LEVEL=7 # Log level for LUA, overrides default
Optionally, you can use Docker to run the server with pre-built NWNX binaries. Refer to the section below
nwnxee/unified
supports the following tags:
[commit-hash]
(7 characters)latest
[tag]
(for example: build8193.20
or build8193.35.36
)Due to Docker's local image cache we recommend using the [commit-hash]
tag to explicitly state which nwnx build to run. In comparison, the latest
tag will usually hit the image cache and return an outdated build, as you have to run docker pull nwnxee/unified
to update the latest
image in your cache. Using the [commit-hash]
tag removes the need to manually run docker pull on your machines, and enables you to roll back in a simple and sensible manner.
Run the image exactly the same as you would run the urothis/nwserver
image. For any questions related to running nwserver, please refer to the nwserver README.
nwnxee plugins are configured using environment variables passed to docker run
. With the exception of ServerLogRedirector, all plugins are skipped by default. Plugins are activated by passing n
to the corresponding environment variable for a given plugin in order to not skip it, e.g. -e NWNX_ADMINISTRATION_SKIP=n
.
Some plugins require additional configurations, like for instance the database plugin. To find plugin specific configurations please refer to the README of the given plugin located in its directory.
It is advised to configure the container with docker-compose. Please refer to these resources for documentation and examples
As of NWN:EE Release 8193 it is possible to run nwserver-linux
and NWNX:EE on Windows 10's Subsystem for Linux. See this guide on how to do so: NWNX:EE on WSL1, a brief guide
Please note that you need a modern C++17 compatible compiler to build NWNX:EE. The code is confirmed to build on GCC 7.4+, Clang 5.0+ might work but is not supported. It may be possible to build on an older compiler.
Each plugin may have one or more dependencies that must be satisfied in order to build that plugin. Refer to each individual plugin's CMakeLists.txt to determine their dependencies.
To build the typical way:
./Scripts/buildnwnx.sh
Or, if you want to compile manually:
mkdir build-nwnx && cd build-nwnx && cmake .. && make
To build on Linux, MacOS, or Docker-Toolbox:
To build on Windows:
Prebuilt images exist for the master branch and can be found under nwnxee/package. The Dockerfiles in this repository serve the following purposes:
builder.Dockerfile
defines the environment to compile nwnx (ghcr.io/nwnxee/builder)base.Dockerfile
defines the environment to run nwserver and nwnx, but has no nwnx binaries (ghcr.io/nwnxee/nwnxee-base)gha.Dockerfile
defines the environment to run nwserver and nwnx, using binaries built by CI ghcr.io/nwnxee/unifiedDockerfile
defines the environment to run nwserver and nwnx, using binaries built locally with the builder image, and based on the local base imageNote that the nwserver binary in the base image is included by starting "FROM [ghcr.io/urothis/nwserver](https://github.com/urothis/nwserver/pkgs/container/nwserver)".
It is recommended to use the prebuilt images for production environments. If you cannot use a prebuilt image (e.g. if you are testing a preview branch), you can build the image locally using Dockerfile
. You may use Scripts/buildimages.sh
to do this, or run the docker build commands yourself.
All contribution are welcome. See CONTRIBUTING.md for requirements and style guidelines.
Use the issue tracker to report any bugs. Please always provide the relevant stdout
output of your runs, ideally at debug log level (NWNX_CORE_LOG_LEVEL=7
).
The project is an open source project created and maintained by community members for free in their spare time.
Thanks, but you should donate your dolla dolla bills to a good cause instead. If you really want to spend money to support NWN, consider donating to Neverwinter Vault to cover their server hosting costs.
The team can be contacted on Discord using the invite at the following URL: https://discord.gg/hxTt8Fr