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 
 
Total Clueless and Total Noob

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



Joined: 07 Dec 2005
Posts: 37
Location: Denmark

PostPosted: Wed Dec 07, 2005 15:49    Post subject: Total Clueless and Total Noob Reply with quote

Okay. So. Yesterday I downloaded NwNx2.
I'm a total noob at scripting, I have an PW with a mate who also is a noob at scripting. Our Pw is running fine and all, but of course, everything would be better with a DB. So I dl'ed NwNx2 after I heard a lot of people talking about it...
The problem is, I understand NOTHING of the Database. I (Hope) I have it installed correct, I have the aps_onload on my pw and the aps_include in. As it said in the ReadMe, Now i downloaded NeX respawn/Death/log system, which is very nice, but it said something about writing something to a Database Table. I know I sound stupid and I hope someone will take the time to help. How do I acces the table? And what table? I've searched the Forum at bit and found someone who said that you had to make your own table, so my question, how do I do that?
I'm seriously stuck at a 0 and need a lot of REALLY basic help. If someone can take the time. Please do help.
[Edit] And one more nooby question, when I dl'ed the Zip pack with the Database, it had a LOOOOT of files. What am I supposed to do with all those files?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Rami_Ahmed



Joined: 07 Dec 2005
Posts: 37
Location: Denmark

PostPosted: Thu Dec 08, 2005 16:28    Post subject: Reply with quote

I've been searching forums and websites for something, I looked at "Alot of Questions" and followed up there, I did what it said in the Readme's but the DB isn't working.
The problem is really that I have no clue on what I'm doing. Sad
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Thu Dec 08, 2005 20:27    Post subject: Reply with quote

I think your best option would be to learn a bit about databases at this point. While this may seem like a trivial suggestion, it is really the best I can offer right now. Without basic understanding of what a database is, what tools exist, and how it can be used, you will not get far with the database plugin of NWNX.

One idea would be to get a basic book on MySQL, as this database is of moderate complexity, is free, and probably has the most books and online tutorials written about it.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Thu Dec 08, 2005 20:29    Post subject: Reply with quote

Btw, try the demo module that comes with aps/nwnx first. If it does not do what it should, post the log files (logs.0 folder) and your nwnx.ini here.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Rami_Ahmed



Joined: 07 Dec 2005
Posts: 37
Location: Denmark

PostPosted: Mon Dec 12, 2005 1:45    Post subject: Reply with quote

Well... Thank you for the reply, Papillion... I've been searching the net for something on Database's but couldn't find anything that I understood really...
I'll post my log here, even though I can't see what it should reveal:
[Mon Dec 12 02:41:21]---- Server Options ----
Max Players: 4
Char Levels: (1-40)
Player Password: NO
DM Login Enabled: NO
Server Admin Login Enabled: YES
Post Game To Internet: YES
Game Type: Solo
Difficulty: 1
PVP Setting: FULL
Vault: SERVER
Only One Party: NO
Enforce Legal Characters: YES
Item Level Restrictions: YES
Player pausing: DISABLED
Auto Save: Enabled
Saving Characters in Saved Game
---- End Server Options ----
[Mon Dec 12 02:41:44] Loading Module: aps_demo
Connection Attempt made by Rami_Ahmed (QCRMDUF7)
[Mon Dec 12 02:42:04] Rami_Ahmed (QCRMDUF7) Joined as Player 1
[Mon Dec 12 02:42:44] Rami_Ahmed Left as a Player (0 players left)
[Mon Dec 12 02:42:49] Server Shutting Down

And my .Ini:
Code:

; NWNX2 ODBC2 example configuration file
; Copy the contents of this file to your nwnx.ini file and
; edit the parameters accordingly !

[ODBC2]

; Log file
MaxLogSize = 512 ; in KByte
LogLevel = 2 ; 0=nothing, 1=only errors, 2=everything

; Use these two settings for the SQLite internal database
source = sqlite
file   = sqlite.db

; Use these two settings for ODBC connections
;source = odbc
;dsn    = nwn

; Use these five settings for MySQL connections
;source = mysql
;server = localhost
;user   = nwn
;pwd    = nwn
;db     = nwn

; Set hookscorco to false if you want to disable hooking of
; StoreCampaignObject and RetrieveCampaignObject entirely

hookscorco = true

Hope that helps anything... I really have tryed to figure it out...
Thanks for any reply.
{Edit} Oh and... The Demo Module is not working, the first test with retrieving a variable seems to work, but the second with object's does not work. It gives an error: TOO MANY INSTRUCTIONS and stores the same armor 3 times 25 times in the chest...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Rami_Ahmed



Joined: 07 Dec 2005
Posts: 37
Location: Denmark

PostPosted: Mon Dec 12, 2005 1:50    Post subject: Reply with quote

Ohh and one more thing... I don't 'have' an Nwnx.ini in my NwN folder... It says that i should copy it into the nwn folder, but i dont have the file nwnx.ini in the nwn folder, i tryed copying the one from the Zip which i downloaded and put it in the NwN folder, but that didn't help.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Rami_Ahmed



Joined: 07 Dec 2005
Posts: 37
Location: Denmark

PostPosted: Wed Jun 07, 2006 12:50    Post subject: Reply with quote

As a happy ending I can say that this is all past and everything is working fine now. I guess no one really cares but just if people are still reading this ... Mr. Green
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Jun 13, 2006 10:27    Post subject: Reply with quote

Cool Cool
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
dougnoel



Joined: 21 Mar 2005
Posts: 27
Location: VA

PostPosted: Tue Jun 13, 2006 15:34    Post subject: Reply with quote

We care. Smile
Back to top
View user's profile Send private message Send e-mail
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