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, 4, 5 ... 9, 10, 11  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Thu Feb 15, 2007 23:48    Post subject: Reply with quote

NWNX4 Chat 0.3 RC1
----
http://data.virusman.ru/nwn/nwnx4/xp_chat-0.3-rc1.rar
- Merged with NWNX Chat 0.3 sources, fixed SendMessage bug
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Fri Feb 16, 2007 18:27    Post subject: Reply with quote

Sweet, will be trying to break it in just a few hours.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
seed



Joined: 01 Dec 2006
Posts: 44

PostPosted: Fri Feb 16, 2007 21:17    Post subject: Reply with quote

Thanks! I've been running the chat plugin live since the last release. It seems to work great and I don't attribute any crashes to it. I'll update this evening!
Back to top
View user's profile Send private message
seed



Joined: 01 Dec 2006
Posts: 44

PostPosted: Sun Feb 18, 2007 12:05    Post subject: Reply with quote

The plugin link seems to have died. It worked on friday, but can't download now...
Back to top
View user's profile Send private message
seed



Joined: 01 Dec 2006
Posts: 44

PostPosted: Tue Feb 20, 2007 16:52    Post subject: Reply with quote

Is it possible to replace text in a string spoken in Party Chat?

I would like to add the Player's current location to all Party Chat messages but how do I change the text and still have it appear to have come from the Player in party mode?
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Feb 20, 2007 17:16    Post subject: Reply with quote

Send another message and then suppress the original message.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
seed



Joined: 01 Dec 2006
Posts: 44

PostPosted: Tue Feb 20, 2007 22:18    Post subject: Reply with quote

I'm stuck on how you reissue a Party chat from a player. Reissuing a Shout is easy, I used SpeakString with TALKVOLUME_SHOUT

for a party chat, do I use this:

string sMsg = "[" + GetArea(oSender) + "] " + sMsg;
dmb_SendMessage(oSender, CHAT_CHANNEL_PARTY, sMsg);
SetLocalString(oPC, "NWNX!CHAT!SUPRESS", "1");

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



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Feb 21, 2007 8:13    Post subject: Reply with quote

Yes.
But avoid endless loop (dmb_SendMessage calls chat script).
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
seed



Joined: 01 Dec 2006
Posts: 44

PostPosted: Wed Feb 21, 2007 18:54    Post subject: Reply with quote

it didn't seem to be calling itself. If it did I would expect to see the location appened to the Party Chat multiple times until the script call max was exceeded. It appeared to work correctly
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Mar 07, 2007 15:08    Post subject: Reply with quote

NWNX4 Chat 0.3.1
http://data.virusman.ru/nwn/nwnx4/xp_chat-0.3.1.rar

Changes:
- Fixed crash bug in log function
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Demetrious



Joined: 09 Dec 2006
Posts: 6

PostPosted: Wed Mar 07, 2007 15:53    Post subject: Reply with quote

Quick note to say thanks for the continued work.

The DMFI should support this plugin in the next version. So that you can do anything in the DMFI (UI based or UI Text entry based) via typed commands into the default chat bar plus suppress, server messages etc.

If your interested, the code should be up in the DMFI in the next couple of days.

Edit: I should state that credit for the NWNx Chat Support goes out to EPOlson who has helped with coordination between UIs, NWNx, TextMacro inputs, Listeners (before they were cut) etc.
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Mon Apr 09, 2007 0:08    Post subject: Reply with quote

I seem to be running into a problem with the 1.05 beta patch and this plugin. Logs show me the following:

ChatFunc found at 0x431bb0
RunScript NOT FOUND!
GetPCobjByOID found at 0x4505c0
* Hooking error.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Mon Apr 09, 2007 2:45    Post subject: Reply with quote

Alright, found the new offset with some creative use of grep: 0x72f690 -- so code modification needs to increase the upper bound of the search from 0x700000

Update 1: seems to be further issues in that text isn't getting passed in. Researching...
Update 2: looks like the TEXT plugin callback isn't getting invoked. Reseraching...
Update 3: Okay, that last was user error... forgot to call init to set the spacer. Embarassed

So it looks like the only actual change need (thus far) for 1.05 is to increase the upper range of the address search for the runscript hook.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Apr 09, 2007 13:42    Post subject: Reply with quote

I'll update Chat plugin when 1.05 final comes out.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Apr 18, 2007 0:25    Post subject: Reply with quote

NWNX4 Chat 0.3.2
http://data.virusman.ru/nwn/nwnx4/xp_chat-0.3.2.rar

Changes:
- Increased the upper bound of the search range for compatibility with NWN2 1.05
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
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, 4, 5 ... 9, 10, 11  Next
Page 4 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