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 
 
Installation/Tips/Howto to Nwnx4 Prototype 1.05

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support
View previous topic :: View next topic  
Author Message
Fable



Joined: 25 Nov 2006
Posts: 10

PostPosted: Fri Dec 01, 2006 3:28    Post subject: Installation/Tips/Howto to Nwnx4 Prototype 1.05 Reply with quote

I just got nwnx4 prototype 1.05 working on my server and it was hell trying to find the information I needed.

That got me thinking that we need to gather as much information as possible to help people getting started.

The important thing is that people include version numbers in their hints and tips.

I know there's a lot of information to be found if you just search for it. It's not always easy to find exactly what you need. Which is why I wanted to make this thread. To help those in trouble to solve their problems.


My system is running with MySQL 4.1.12 with Nwn2 v1.02 and currently Nwnx4 Prototype 1.05


- MySQL Server Tools can be downloaded here. These tools are excellent for managing your MySQL databases.

MySQL Command to create "pwdata" table (send this in MySQL Query Browser):
Code:

CREATE TABLE pwdata (player varchar(64) default NULL, tag varchar(64) default NULL, name varchar(64) default NULL, val text, expire int(11) default NULL, last timestamp(14) NOT NULL, KEY idx (player,tag,name))



- You do not need to edit your Module On Load (like you did in nwn1). Simply including "sql_include" in your script will be enough to get it working.

- If you haven't made the "pwdata" table and try to use the SetPersistantWhatever functions the server will crash. So make sure your "pwdata" is made exactly to the specs I've mentioned earlier.

- In your nwnx.ini the line "parameters = -module mymodule" - Do NOT include .mod on your module name. The program doesn't give any error messages when it doesn't find your module. It just launches the server, but the server never loads the module.

- I think Set/GetPersistantLocation is bugged. I tried making a Persistant Location system on my PW, but location isn't valid.

I think that's just about it for now. If I find any more useful information I'll post it here. I hope people find this thread useful. Excellent work Papillion!
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Fri Dec 01, 2006 10:10    Post subject: Reply with quote

Good idea, please add as much information as you can to this thread, guys! Ideally, someone would then browse through the infos here, and add them to the documentation later on.

Btw, partly it's called "prototype" because there are no docs yet Wink. It sounds like this might change soon, though.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Fable



Joined: 25 Nov 2006
Posts: 10

PostPosted: Mon Dec 04, 2006 13:32    Post subject: Reply with quote

- Set/GetPersistantLocation isn't bugged. It just requires you to set TAG on your areas. I never bothered with it before so lucky me Razz
Back to top
View user's profile Send private message
dougnoel



Joined: 21 Mar 2005
Posts: 27
Location: VA

PostPosted: Thu Dec 07, 2006 17:01    Post subject: Reply with quote

Good stuff, thanks Fable. I haven't had a chance to play with the toolset or NWNX4 much yet. A2 is sucking a lot of my time now. But I still plan on coming through with my promise of an installation guide for you Pap, complete with how to install MySQL, etc. for newbs. Hoping to get to NWNX in the next week or two.

Doug
Back to top
View user's profile Send private message Send e-mail
Will_Constantine



Joined: 12 Aug 2007
Posts: 9

PostPosted: Sat Oct 13, 2007 17:10    Post subject: Reply with quote

I have a question, on the modules on load where you say include the "sql_include" i have #include "nwnx_time" and
#include "nwnx_sql"

is that what you meant? as i donot see any script labeled sql_include i assumed that was what you meant. also does it matter to include nwnx_time? i didnt see it required but i wasnt sure to i put it in there anyway. or should i remove that ? thanks in advance.
Back to top
View user's profile Send private message Visit poster's website
knightmb



Joined: 23 Jan 2008
Posts: 5

PostPosted: Wed Jan 23, 2008 3:58    Post subject: Reply with quote

To add to this, if you have a module with a 'space' in the name, you need to put the module in "" so it will load.

Example:
parameters = -module "My Module"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support 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