Neverwinter Nights: Enhanced Edition

Neverwinter Nights: Enhanced Edition

Not enough ratings
nwnx_dbfunctions
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
235.284 KB
5 Apr, 2018 @ 10:27am
14 Apr, 2018 @ 5:41am
3 Change Notes ( view )

Subscribe to download
nwnx_dbfunctions

Description
"Commands for NWNX:EE" by Antirelic

*** REQUIRES NWNX:EE ****

*** ALWAYS BACK UP YOUR MODULES BEFORE EXPERIMENTING WITH SOMETHING NEW ***

This workshop entry contains two files.

1. nwnx_sql_func.erf -- You can use this to import new commands into your existing module. This will add new files to your "scripts" list: nwnx_sql, nwnx_sql_res, create_tables, drop_tables, add_to_journal, reset_journal, pqj_inc, x3_mod_def_enter

When you import these scripts, be sure to build your module, and then save.

2. nwnx_mysql.mod -- This is a mod that is already configured to work with these commands. It has examples on how the commands can be used, and also lets you create the tables you need to use these commands.

Please note that you will need to add the following line to the top of your script files to make use of these new commands:

#include "nwnx_sql_res"

If you are trying to use the PersistentQuest functions, you need to add to the top of your file:

#include "pqj_inc"


New Campaign Commands

SetPersistentString
SetPersistentInt
GetPersistentString
GetPersistentInt
GetPersistentLocation
SetPersistentLocation
SetPersistentItems
GetPersistentItems
DeletePersistentLocation
DeletePersistentString
DeletePersistentInt

New Journal Commands

AddPersistentJournalQuestEntry
RemovePersistentJournalQuestEntry
RebuildJournalQuestEntries
RetrieveQuestState

Descriptions will be coming on how to use these (pretty close to the "local" variety). YMMV.

Direct Download: https://s3-us-west-1.amazonaws.com/nwn-stuff/nwnx_dbfunctions.zip
4 Comments
TheThird 6 Jan, 2022 @ 9:57am 
This mod has been the equivalent of the Rosetta stone for me!!!
Not only the functions are useful, but this mod allowed me to understand how to build my own SQL functions and since then I have been able to build a pretty amazing persistent system.

Thanks a LOT for this one. As I said the functions are nice, but for someone who could not get his head around building SQL functions, it has been the instruction manual I was looking for (in some ways).
Star-X 5 Apr, 2018 @ 11:12am 
Nah, I'm sure a Windows build will come along some day, and worst case scenario someone will release it outside of CircleCI just to help poor saps like myself. Also, the source is available easily on Linux, so that's not really an issue either.

Really, it's just a lack of actual builds for Windows, and the autobuilds being on a very badly designed site. If I used Linux I could likely just compile the damn thing myself easier than obtaining the binaries.
antirelic  [author] 5 Apr, 2018 @ 11:03am 
I understand your frustration.

If you would like to try running your modules on Linux NWNX:EE I can make my fully built, ready to go AMI public on Amazon, and then follow up in the description with the AMI ID to make it easy to launch from the EC2 console?
Star-X 5 Apr, 2018 @ 10:53am 
Too bad NWNX:EE is impossible to download thanks to using CircleCI, which is the worst autobuilder I've ever seen. Seriously, who the hell designs a site that automatically builds, but locks the builds behind some arcane BS that is impossible to figure out for us normal people? Either that or its builds are blocked by adblockers, which is a sure sign that it's crap.

Oh, that, and NWNX:EE is Linux only, despite the fact that the original NWNX worked on Windows and Linux. Utter failure.

Nothing wrong with your mod btw, just complaining about the thing it requires :/