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 
 
MySql_Demo.mod works but not my module! help

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



Joined: 22 Mar 2008
Posts: 9

PostPosted: Sat Oct 17, 2009 15:45    Post subject: MySql_Demo.mod works but not my module! help Reply with quote

Hi all,
in 2005 I created a module.
Great work of art, but i'm very rusty now and back in the game.

I've setup nwnx4 and run the mysql demo, all is setup and working perfectly and I can set persistent data, but only for the mysql demo.

My module just will not work setting and fetching sql data, will not even create a persistent variable in the pwdata table, and i've added all the includes and stuff, weird, where might I be going wrong?

Thanks in advance.
Back to top
View user's profile Send private message
utimagus



Joined: 22 Jun 2007
Posts: 20

PostPosted: Sat Oct 24, 2009 4:41    Post subject: Reply with quote

stupid question, but have you setup the proper variables in the included scripts?
Back to top
View user's profile Send private message
ultravolts



Joined: 22 Mar 2008
Posts: 9

PostPosted: Sat Oct 24, 2009 5:19    Post subject: hmm Reply with quote

I have used #include nwn_sql in all of my scripts using sql features etc (not sure of the exact spelling because i'm at work and can't open my module)
imported the erf's
pretty much copied and pasted the include stuff and imported all the same as in mysql_demo.mod
the demo writes to sql and reads, my module doesnt even look like its trying to start writing or reading with the sql scripts.
Back to top
View user's profile Send private message
ultravolts



Joined: 22 Mar 2008
Posts: 9

PostPosted: Sat Oct 24, 2009 5:25    Post subject: Reply with quote

utimagus wrote:
stupid question, but have you setup the proper variables in the included scripts?


I'm sorry if this puts you out, but could you detail exactly how to code creating the specific variables, as I thought that the SetPersistantInt etc created the variable automatically when you define the variable name in its parameters.
Back to top
View user's profile Send private message
utimagus



Joined: 22 Jun 2007
Posts: 20

PostPosted: Tue Oct 27, 2009 5:31    Post subject: Reply with quote

i know inside the nwn_sql or one of those there are configuration settings you can set. Mayhaps they aren't setup correctly?
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