logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
NWNX2 or SQL or both?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
archer4217



Joined: 17 Feb 2010
Posts: 3

PostPosted: Wed Feb 17, 2010 1:37    Post subject: NWNX2 or SQL or both? Reply with quote

Hi all,

Our mod has been having issues with date and time so I decided we need a better database than the default nwn one.

My question is, will NWNX2 be sufficient or is SQL needed as well?

Thank in advance. Smile Very Happy
Back to top
View user's profile Send private message
MaxRock



Joined: 24 Jan 2008
Posts: 196

PostPosted: Wed Feb 17, 2010 2:59    Post subject: Reply with quote

You can't really have one without the other:
NwNX2 (more specifically one of its plug ins) provides scripting functionality to access a database other than the default bioware one; e.g: MySQL, SQLite or MSSQL.
So you'll have to get the nwnx base which comes with database (odbc) functionality for MySQL and SQLite. Then you will have to set up the database itself
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Wed Feb 17, 2010 4:16    Post subject: Reply with quote

The "better database" you're looking for *is* SQL (more properly, a DB using SQL, such as MySQL or SQLite). NWNX just allows you to access that database from NWN (and it can do many other things, but that's another story).
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
archer4217



Joined: 17 Feb 2010
Posts: 3

PostPosted: Wed Feb 17, 2010 8:48    Post subject: Reply with quote

Thank you both, and hi there Zebranky, long time-no see. You might not remember me, but you and others used to help me a lot in Mirc. I ended up scrapping the old mod and starting a new one, then had to wipe my drive, then got a new computer and couldn't remember how to find you guys again.

So, I'll go ahead and download sqlite.

Thanks again. I'm sure I'll come begging for more help. Wink
Back to top
View user's profile Send private message
archer4217



Joined: 17 Feb 2010
Posts: 3

PostPosted: Wed Feb 17, 2010 10:06    Post subject: Reply with quote

Ok, so I downloaded sqlite from here http://www.sqlite.org/download.html
got the recommended amalgamation and opened up the zip and found these 3 files: sqlite 3.c, sqlite 2.h, sqlite3ext.h

Where should I put them?
Back to top
View user's profile Send private message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Wed Feb 17, 2010 13:06    Post subject: Reply with quote

archer4217 wrote:
Ok, so I downloaded sqlite from here http://www.sqlite.org/download.html
got the recommended amalgamation and opened up the zip and found these 3 files: sqlite 3.c, sqlite 2.h, sqlite3ext.h

Where should I put them?

Sqlite gets embedded with the application, you don't need all those files as the plugin was built using them.
When you use the default configuration Sqlite will be chosen. This will create a file on your server which contains the data.
This is the simplest database use, but it doesn't give you any tools for using the database outside of NWN. (you can download a separate tool if you can find one)
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Thu Feb 18, 2010 15:26    Post subject: Reply with quote

Yes, basically if you want to use SQLite, you don't need anything except NWNX2 and the nwnx_odbc plugin.
Back to top
View user's profile Send private message
Asparius



Joined: 18 Sep 2007
Posts: 52

PostPosted: Mon Feb 22, 2010 23:51    Post subject: Reply with quote

Hmmm if I recall, SQLite embedded in NWNX was outdated - is it fixed at this moment?
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Tue Feb 23, 2010 14:47    Post subject: Reply with quote

Not that I know of - SQLite is not a great solution in any case - if you just want SQL functionality for variable or object storage then SQLite is fine. If you want to run a proper server on it, then installing MySQL is a better option.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group