License: MIT ci CodeQL codecov Documentation Status pypi

rollNW

rollNW is an homage to Neverwinter Nights in C++ and Python.

See the docs and tests for more info, or open an IDE in browser in the quickstart section below.

This library is a work-in-progress. There will be serious refactoring and until there is a real release, it should be assumed the library is in flux.


features

  • The beginnings of a novel Rules System designed for easily adding, overriding, expanding, or removing any rule and reasonable performance

  • A combat engine that’s very nearing being able to simulate melee battles.

  • Objects (i.e. Creatures, Waypoints, etc) are implemented at a toolset level. Or in other words their features cover blueprints, area instances, with support for effects and item properties. They are still missing some new EE things. Player Characters are read only, for now.

  • A recursive decent NWScript Parser

  • Implementations of pretty much every NWN File Format

  • An binary and ASCII Model Parser. See also the mudl model viewer side project.

  • A Resource Manager that can load all NWN containers (e.g. erf, key, nwsync) and also Zip files.

  • An implementation of NWN’s Localization System focused on utf8 everywhere.


goals

  • aims to implement an RPG engine inspired by NWN, excluding graphics and networking.

  • focuses on usage, instead of doing things the Aurora Engine Way.

  • follows utf8 everywhere.

  • hews as close to C++ Core Guidelines as possible.

  • aims to be as easily bindable as possible to other languages. I.e. only library specific or STL types at API boundaries.


quickstart - Open VS Code in your Browser

Open in Gitpod

Github Codespaces is available to those in the beta.


History

A lot of what’s here was written in the 2011-2015 range as part of personal minimalist toolset, modernized and with new EE stuff added. In some sense, it’s a work of historical fiction - it’s what I’d have suggested at the start of NWN:EE: get the game and the community on the same set of libraries. Similarly to an older project that asked “what if Bioware had stuck with Lua?”. The answer to that was pretty positive: a decade ahead, at least, of nwscript.


Moonshots

You make ask yourself, why? But, to paraphrase Tennyson, ours isn’t to question why, it’s but to do and die and learn and maybe make neat things. In that spirit, here is a list of crazy projects that this library hopes to facilitate and that all fly in the face of “WHY?”.

  • A nwscript Language Server

  • A modern, cross-platform nwexplorer.

  • And, of course, the ever elusive open source NWN Toolset, with plugins, scripting, and a built-in console.


Credits

getting started