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 
 
Chat plugin for NWNX4?
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 9, 10, 11  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
Undertowe



Joined: 03 Jan 2005
Posts: 33

PostPosted: Tue Jul 10, 2007 11:31    Post subject: Reply with quote

Gah ffs, scratch that, folks. I completely forgot that you need to have a copy of madCHook.dll in your NWNX4 directory AND in the root of your NWN2 install directory. Everything appears to be working now. Sorry for the bother. Rolling Eyes
Back to top
View user's profile Send private message
Elrahc



Joined: 30 Jan 2007
Posts: 10

PostPosted: Wed Jul 25, 2007 23:00    Post subject: Reply with quote

Just a tip to those who're newbs like myself. You need to have Microsoft Visual C++ 2005 SP1 Redistributable Package installed (Google it to get the right version for your OS - here's the link to the x86 version).

~Elrahc
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Fri Jul 27, 2007 21:01    Post subject: Reply with quote

The dll was compiled with VS2005 without SP1.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Elrahc



Joined: 30 Jan 2007
Posts: 10

PostPosted: Sat Jul 28, 2007 1:17    Post subject: Reply with quote

Then I must have been missing something else that this SP1 provided, because that's the only change I did, based on a tip from Grinning Fool.


~Elrahc
Back to top
View user's profile Send private message
PNJ



Joined: 30 Jun 2007
Posts: 67

PostPosted: Wed Aug 15, 2007 12:30    Post subject: Reply with quote

I can't seem to get the valid receiver for Private message (Mode 4)

the sender is right but the receiveir can't be found.

In log the receveir of the private message is always : to_ID=FFFFFFFF

I added the Onenter & Ondisconnect NWNX Chat function on PCs.

Did i miss another thing?


Last edited by PNJ on Wed Aug 15, 2007 21:28; edited 1 time in total
Back to top
View user's profile Send private message
dumbo



Joined: 21 Aug 2005
Posts: 21

PostPosted: Wed Aug 15, 2007 21:10    Post subject: Reply with quote

Private message = Mode 4
Back to top
View user's profile Send private message
PNJ



Joined: 30 Jun 2007
Posts: 67

PostPosted: Wed Aug 15, 2007 21:30    Post subject: Reply with quote

Yes, 4, typing error.

my code is :

Code:


string sText = NWNXGetString("CHAT", "TEXT", "", 0);
int nMode = StringToInt(GetStringLeft(sText,2));
int nTo = StringToInt(GetSubString(sText,2,10));

   if (nMode==4)
   {
   oPCn = dmb_getPC(nTo);
   Debug("!FROM! "+GetName(oPC)+" !TO! "+GetName(oPCn)+" : "+sText);
   }


got the sender & the message, but not the receiver.
Back to top
View user's profile Send private message
dumbo



Joined: 21 Aug 2005
Posts: 21

PostPosted: Wed Aug 15, 2007 22:58    Post subject: Reply with quote

if it was just typo then let's try to wake virusman. Smile

PNJ wrote:
In log the receveir of the private message is always : to_ID=FFFFFFFF

virusman, hello! Twisted Evil
Back to top
View user's profile Send private message
PNJ



Joined: 30 Jun 2007
Posts: 67

PostPosted: Wed Aug 15, 2007 23:04    Post subject: Reply with quote

thank ^^
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Aug 15, 2007 23:40    Post subject: Reply with quote

What versions of NWN2, NWNX4, Chat are you using?
To all: Did anyone else encounter this bug?

P.S. Hi, dumbo! Smile
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
PNJ



Joined: 30 Jun 2007
Posts: 67

PostPosted: Thu Aug 16, 2007 10:25    Post subject: Reply with quote

I m using

NWN2 1.06.980

NWNX4 Chat Plugin V.0.3.3

NWN Extender 4 V.0.0.8
Back to top
View user's profile Send private message
Undertowe



Joined: 03 Jan 2005
Posts: 33

PostPosted: Thu Aug 23, 2007 6:17    Post subject: Reply with quote

I've been having the same issue with the same versions. Every great once in awhile it will get SOME receiver, but when it does it's the wrong one.
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Thu Aug 23, 2007 8:06    Post subject: Reply with quote

Ok, I'll fix this bug, but only after Sept 9th.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
gencorky



Joined: 19 Sep 2006
Posts: 2

PostPosted: Mon Sep 17, 2007 2:51    Post subject: Reply with quote

Thank's for an awsome plugin, virusman and dumbo. The ability to capture and control text is a powerful ability for module scripters. If NWNX didn't have database support, I would still probably install it just to use your plugin.
Back to top
View user's profile Send private message
PNJ



Joined: 30 Jun 2007
Posts: 67

PostPosted: Fri Sep 28, 2007 13:19    Post subject: Reply with quote

Since the 1.10 the plugin only hook Shoot text.
Obisidian did some reworking onn the way text display (for DM avatars mainly).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 9, 10, 11  Next
Page 6 of 11

 
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