NWN DataBase can be a bit dificult to use, specially when you use it during an OnClientLeave Event. This include is a full set of functions to manage a DataBase, it is robust and allow advanced scripting. It should work on all versions of NWN with patch 1.32 and up. It also includes tools to manage PC current hps, Spell/Feat uses, PC Locations, and fix a bug that happens when characters log-out when possessing a familiar. The idea is giving scripters a good DataBase managent script, and something useful for other users. Actually it is v. beta 1. I will improve documentation and tools in future versions. The zip contains an erf and a sample module. *Update: More features, now it can store infinite players and PCs.
Posted by Snye ( 135.12.xxx.xxx ) at 2006-03-14 11:26:56
I am not totally sure why... but I started a new mod, imported this script first and then started adding all my other scripts and areas, and now its working fine... not sure why... but I'll take it. This is an awesome database. It has made my life a lot easier on the mod. Thanks again for a job well done.
Actually, got it working, except that it is not saving my location. every time I shut it down it restarts me at the start location instead of where I logged out at... I have the right script in the Heartbeat, it saves everything else, EXCEPT location... any help on this would be great.
This is a cool database, the only problem is, I have CNR. Are these two databases able to work together? Cause, as this moment, this database aint working correctly like it did in the demo. any help would be great. Other than that, nice job. =)
Thank you. A suggestion for you, probably it is not documented, but there must be some function in the include that you can call to save the character location for your own uses, you can try to use it in an onenter area script (Never for an OnExit area event).
In any case, i'm considering to use another (better?) DB system to manage the DataBase (Knat's NDBE), and rewrite the functions to work with it.... and present it the complete caveat/anti-exploit/anti-bug utility it is.
Most people searchs for this things, but i think that most people have no idea what this script does.
Update:
Now it can store infinite players and PCs using a very small number of DBfiles (one file for small servers)
It fixes a bug that happens when a character logs-out possessing a familiar.
Posted by Bralnar at 2004-05-06 07:35:06 Voted 10.00 on 05/06/04
Excellent script, well written with lots of remarks throughout the code. I installed it into my module in less than 5 minutes and it worked great. Would like to see a readme explaining some of the additional features in the code.
Posted by Bralnar at 2004-05-03 16:58:00 Voted 10.00 on 05/06/04
It works! A moment or two after my last post I thought of launching the ded server from my client machine - doh! I must really miss my old server box :~)
Thanks for the good script.
Posted by Bralnar at 2004-05-03 16:37:00 Voted 10.00 on 05/06/04
I just sold my spare computers, so I'll have to wait until I get a new server box before I can test this one. Glad to hear theres a reason why it wasn't working ;)
Sorry, the functions ready to be used quickly (used by the demo) don't work in single player mode.
I think it is because in a sigle player game the client-leave-event is not triggered. And most information is saved when PC leaves -instead of using the heartbeat event, which most scripts does.
To see it work the module must be launched by the NWN server.
Thanks for posting.
Posted by Bralnar at 2004-05-01 18:39:00 Voted 10.00 on 05/06/04
Nope, couldnt get the demo mod to work. I waited 15 minutes, then logged off, but it didnt remember my hp or location. I noticed there was a new database in the db folder, but thats it. I tried setting the timer from 10 min down to 1 min. and tested a couple more times, but it didnt work. Am I missing something here? Is there something that has to be done to get it to work? Im testing in single player mode, but all other db scripts I've tried work in SP.
I have little time now, i will try to update solving bugs and doubts of the users.
So, If anyone has doubts or problems please post them there or send me an e-mail. I will try to answer quickly.
Posted by Razheem ( 217.220.xxx.xxx ) at 2004-04-28 08:53:00
WoW!!! I've tried it and seems to be very easy to implement. If you could provide some documentation, it could be better. Thank you for sharing
You must be Logged In to post comments in this section.