Skip to content

Conversation

@tinygiant98
Copy link
Collaborator

@tinygiant98 tinygiant98 commented Jan 21, 2025

The most recent stable (.37-14+) has incorporated NWNX called directly into nwscript.nss. This change carries with it a complete script abort if nwnx is called, but not available. Therefore, during the script registration process, if an nwnx event script is registered and nwnx is not currently running, as may be the case with local testing, the entire library script that is attempting to register that event will be aborted.

There is expected to be a ruleset toggle that prevent this behavior and allows the script to continue while providing an error, however, the toggle will default to script abort, which means we need to take the most conservative route and ensure our libraries aren't aborted because of the lack of nwnx availability.

In addition to the check, an error message is provided to ensure the user understands exactly why the script was not registered.

I didn't swe a threat in hook_nwnx that would require this change to be incorporated there since it's only run via NWNX or ExecuteScript from the framework after the availability check, so worst case, it would simply fail with a transmitted error. However, if youw want full coverage, hook_nwnx may also be modified to include this check.

With this change, .37-14+ is the required minimum game version for the framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant