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 
 
NWNX-Speech
Goto page Previous  1, 2, 3, 4, 5, 6, 7
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Mon Oct 24, 2005 11:52    Post subject: Reply with quote

Ok, it would appear that I'm an idiot. Smile I double-checked (after seeing that error message in the log) and realized I had the wrong IP address in the /etc/nwnspeech.conf file. OOPS. Embarassed

I did a "service start" on it, and the log now shows:

Code:

02:39:25        INFO            Autoemotes enabled.   
02:39:25        INFO            Plugin mode activated.
02:39:25        INFO            .
02:39:25        INFO            SocketListenerThread start.
02:39:25        INFO            Waiting for client connection on socket /usr/local/games/nwn/tmp/nwnspeech.
02:39:25        DEBUG           Comparing IP 2.0.0.0 to 192.168.0.102.
02:39:25        DEBUG           Comparing IP 192.168.0.102 to 192.168.0.102.
02:39:25        DEBUG           IP Addresses for selected interface: 192.168.0.102
02:39:25        INFO            Starting capture loop
02:39:27        DEBUG           Found a long header.
02:39:27        DEBUG           Checking 900e
02:39:42        DEBUG           Found a long header.
02:39:42        DEBUG           Checking C7sû
02:39:43        DEBUG           Found a long header.
02:39:43        DEBUG           Checking
02:39:43        DEBUG           Found a long header.
02:39:43        DEBUG           Checking
02:39:57        DEBUG           Found a long header.
02:39:57        DEBUG           Checking
02:39:58        DEBUG           Found a long header.
02:39:58        DEBUG           Checking 900e
02:40:00        DEBUG           Found a long header.
02:40:00        DEBUG           Checking }SA
02:40:00        DEBUG           Found a long header.
02:40:00        DEBUG           Checking ¸¿A
02:40:01        DEBUG           Found a long header.
02:40:01        DEBUG           Checking ¼¬A
02:40:01        DEBUG           Found a long header.
02:40:01        DEBUG           Checking ]ÓA
02:40:01        DEBUG           Found a long header.
02:40:01        DEBUG           Checking V5A
02:40:11        DEBUG           Found a long header.
02:40:11        DEBUG           Checking
02:40:14        DEBUG           Found a long header.
02:40:14        DEBUG           Checking
02:40:29        DEBUG           Found a long header.
02:40:29        DEBUG           Checking 900e
02:40:42        DEBUG           Found a long header.
02:40:42        DEBUG           Checking C7sû
02:41:00        DEBUG           Found a long header.
02:41:00        DEBUG           Checking 900e
02:41:27        DEBUG           Found a long header.
02:41:27        DEBUG           Checking BNER
02:41:27        DEBUG           Found a long header.
02:41:27        DEBUG           Checking BNXR
02:41:27        INFO            Port: 5121  Module Name : (CEP) CHAINMAIL Beta
02:41:27        DEBUG           Found a long header.
02:41:27        DEBUG           Checking BNDR
02:41:27        DEBUG           Found a long header.
02:41:27        DEBUG           Checking es t
02:41:31        DEBUG           Found a long header.
02:41:31        DEBUG           Checking
02:41:31        DEBUG           Found a long header.
02:41:31        DEBUG           Checking 900e
02:41:42        DEBUG           Found a long header.
02:41:42        DEBUG           Checking C7sû
02:42:02        DEBUG           Found a long header.
02:42:02        DEBUG           Checking 900e
02:42:16        DEBUG           Found a long header.
02:42:16        DEBUG           Checking BNER
02:42:17        DEBUG           Found a long header.
02:42:17        DEBUG           Checking BNXR
02:42:17        INFO            Port: 5121  Module Name : (CEP) CHAINMAIL Beta


Does this mean it's working? I never got the green OK when I did the service start, but my syslog isn't filling up with those messages I listed earlier. Could be a good sign....

Hmm... When I did the "service nwnspeech stop" command, I did see the following message in the syslog:

Code:

Oct 24 02:51:00 janet nwnspeech: nwnspeechd startup failed
Oct 24 02:51:00 janet nwnspeech: nwnspeechd shutdown succeeded


Note that the "startup failed" did not appear until I issued the "service stop" command.

Thoughts?

On a seperate note: If I set the config file to use database access (old style) instead of plugin access, I should be able to get the data the way I did when running the old plugin that went the DB route, right? I agree that plugin access would be better, but for now (to save some time if nothing else) I'd like to use the DB access method since the game module is already set up for that. I can clean it up and import the new scripts at a later time.

--Dave
Back to top
View user's profile Send private message
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Wed Oct 26, 2005 20:18    Post subject: Reply with quote

Even though I get that startup failed message in the log when I "service stop" the program, it seems to be sort-of working.

I decided to try it out by putting it into database mode, since the game module I'm running is already setup to do database. BTW, GF, you have the username and dbname parameters backwards in nwnspeech.cpp where you connect to the database. Makes it kinda hard to actually connect. Smile

Once I started it, I logged into the game and said a few things. Nothing showed up in my conversation logs, unfortunately. I thought maybe the listener wasn't listening, but it turns it out was. I checked the database, and found the following entries:

Code:

mysql> select * from nwn_speech;
+----------+--------------------+----------------+------+------+----------------------+--------+
| player   | ip                 | speech         | port | type | servername           | id     |
+----------+--------------------+----------------+------+------+----------------------+--------+
| dguntner | 192.168.0.101:5120 | this sucks     | 5120 |      | (CEP) CHAINMAIL Beta | 129490 |
| dguntner | 192.168.0.101:5120 | this is a test | 5120 |      | (CEP) CHAINMAIL Beta | 129488 |
| dguntner | 192.168.0.101:5120 | I hate this    | 5120 |      | (CEP) CHAINMAIL Beta | 129489 |
+----------+--------------------+----------------+------+------+----------------------+--------+
3 rows in set (0.00 sec)


Those were all things I said, alright. Smile I note that the "type" field is now blank. Doesn't this listener report what type of speech it noticed (talk, whisper, shout, etc.)?

So much for my hope that I can import the scripts, etc., at a later time and be able to use this now. Nothing that was said was collected by the lds_ script that pulls information from the database (old system). I'm guessing/hoping that it's a case of something changed in the scripts and the new scripts will be able to pull that information from the db. Of course, once I import those (whenever I get a chance), I won't want to use the db system anymore. In the meantime, maybe I can add some logging to the lds script that's already there - perhaps I'll be able to figure out what it's doing wrong.

But I sure would like to know if you can have the listener report on the type of speech it's recording - I actually use that information. Smile

--Dave
Back to top
View user's profile Send private message
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Sat Oct 29, 2005 22:29    Post subject: Reply with quote

*tap tap tap* Hello? Anyone still here?
Back to top
View user's profile Send private message
Lanthar D'Alton



Joined: 10 Feb 2005
Posts: 100

PostPosted: Wed Nov 02, 2005 7:42    Post subject: Reply with quote

The 3.04 code should function with the database tables if you edit lds_spch_runonce and swap the #include "lds_speech_dll" with "lds_speech_db" then compile it. Make a backup just in case tho. I'm not sure why his linux version fails to populate the database "type" field. That should be there.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
krikkert



Joined: 04 Nov 2005
Posts: 1
Location: Norway

PostPosted: Fri Nov 04, 2005 0:53    Post subject: Reply with quote

Really must sing my praises for this one. I'm currently running it on my server and it's working brilliantly!

Was told by my more RP players to overbring our gratitude. Smile
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Sun Jan 29, 2006 8:18    Post subject: Reply with quote

Does Grinning Fool still live? Smile I really could use some help with this. I can't get the silly thing to run, the errors I've reported are still showing up.

I note that Lanther says that it will work in DB mode as of 3.04. I've downloaded 3.05b, so I guess I'll see if that works via that route. Sure would be nice to not [b]have to use a MySQL database table as a info-passing channel....

--Dave
Back to top
View user's profile Send private message
vallis



Joined: 13 Jun 2005
Posts: 6

PostPosted: Tue Feb 21, 2006 14:47    Post subject: Reply with quote

dguntner wrote:
Does Grinning Fool still live? Smile I really could use some help with this. I can't get the silly thing to run, the errors I've reported are still showing up.

I note that Lanther says that it will work in DB mode as of 3.04. I've downloaded 3.05b, so I guess I'll see if that works via that route. Sure would be nice to not [b]have to use a MySQL database table as a info-passing channel....

--Dave


All right - I'm confused..

Are you trying to get it to run in db mode, or plugin mode?

My nwnspeech.conf says this:
[database]
provider=mysql # for future use if DB mode of access is still supported, this is currently ignored.

I had it running (working) in plugin mode, but got tied up in other things and dropped working on it till now.

V.
Back to top
View user's profile Send private message
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Tue Feb 21, 2006 18:49    Post subject: Reply with quote

No, I'm trying to get it running in plugin mode, but not having much luck getting the listener to actually start up properly. See my earlier postings on the subject - they all still apply.

When I tried to use DB mode previously, the MySQL table started showing entries, even though I didn't get a proper startup message and shutdown indicated a startup failure (in terms of the message coming out of the system). I still haven't had time to try installing the latest version of the scripts to see if it will pull from the database properly.

--Dave
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 
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