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



Joined: 05 Aug 2008
Posts: 6

PostPosted: Thu Aug 07, 2008 1:07    Post subject: Reply with quote

Hi to all, and sorry for bad english

The same as Undertowe and pdwalker. Don't works, the log in the txt say all ok, but the script in the module don't run.


nwn2 1.13.1407
nwnx4 1.8
xp_chat 0.3.5
Windows XP SP2


I try to replace the xp_chat.dll 0.3.5 with the 0.3.3 one, but it says 'Plugin don't installed properly, the reinstallation of the aplication may fix it' (in spanish).

Thanks.
Back to top
View user's profile Send private message
Rumata



Joined: 05 Aug 2008
Posts: 6

PostPosted: Sun Aug 10, 2008 20:33    Post subject: Reply with quote

Hi.

I installed the Microsoft Visual C++ 2005 SP1 Redistributable Package.







This is the xp_chat.txt for 0.3.5:
Code:

NWNX4 Chat Plugin V.0.3.5
(c) 2005-2006 by dumbo (dumbo@nm.ru)
(c) 2006-2007 by virusman (virusman@virusman.ru)
visit us at http://www.nwnx.org

* Log level set to 0 (nothing)
ChatFunc found at 0x432f00
RunScript found at 0x747640
GetPCobjByOID found at 0x4524f0
Chat function is hooked.
* Plugin initialized.


And no more text... no more log


This is the same file for the 0.3.3 one:
Code:

NWNX4 Chat Plugin V.0.3.3
(c) 2005-2006 by dumbo (dumbo@nm.ru)
(c) 2006-2007 by virusman (virusman@virusman.ru)
visit us at http://www.nwnx.org

ChatFunc found at 0x432f00
RunScript found at 0x747640
GetPCobjByOID found at 0x4524f0
Chat function is hooked.
* Plugin initialized.
o CHAT: mode=5, from_oID=7F000000, msg='Estás en un área PvP de grupo (Jugador contra Jugador).', to_ID=00000000
lastMsg: 05         0Estás en un área PvP de grupo (Jugador contra Jugador).
o CHAT: mode=1, from_oID=7FFFFFFF, msg='Hello to NWNX crew', to_ID=FFFFFFFF
lastMsg: 01        -1Hello to NWNX crew


The nwnx.txt:
Code:


NWN Extender 4 V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org

* Loading plugins...
* Loading plugin xp_chat.dll: Successfully registered as class: CHAT
* Loading plugin xp_mysql.dll: Successfully registered as class: SQL
* Disabling general protection fault error dialog.
* NWNX4 activated.





My 'on enter':
Code:
#include "dmb_chat"

void main ()
{

  object oPC = GetEnteringObject();
  dmb_PCin(oPC);
 
  int nID = dmb_GetClientID(oPC);

  SetLocalObject(GetModule(), dmb_LIST_ITEM_NAME  +  IntToString(nID), oPC);


}




My 'on load':
Code:
#include "dmb_chat"

void main ()
{
 dmb_ChatInit();   
}


The chat script is the chat_script.nss.sample file, included in the xp_chat.rar

And i put and compile the include file dmb_chat in the module.



Seems all right... all work. but...




In the 0.3.3 version:
The text does not return to the game, in his place there are five lines of text points '.' (may be the reserved memory 128x8);


In the 0.3.5 version:
Simply not works, the chat_script don't run, and the xp_chat.txt don't log.


Help, please...

Thank you.
Back to top
View user's profile Send private message
Rumata



Joined: 05 Aug 2008
Posts: 6

PostPosted: Tue Aug 12, 2008 17:17    Post subject: Reply with quote

Well, the problem was the sample files provided, calls the nwnx with the old style (ex. SetLocalString(GetModule(),"NWNX!CHAT!SUPRESS","1"); )... Changed the sentences to New style (ex. NWNXSetInt("CHAT", "SUPRESS", "", 0, 1); ) and it works correctly.

Please, remove the files dmb_chat.nss and chat_script.nss.sample from the new style releases (0.3.3 & 0.3.5) or fix it to prevent painfull headaches in neewly users of this.


Thanks to all.
Back to top
View user's profile Send private message
Undertowe



Joined: 03 Jan 2005
Posts: 33

PostPosted: Wed Aug 13, 2008 0:49    Post subject: Reply with quote

Rumata, are you saying that you got xp_chat 0.3.5 to work? Or, does your script only work with 0.3.3?

The reason I ask is because my chat script already uses the NWNGet*() and NWNXSet*() functions. Like you, I wasted a couple hours trying to get the included function library to work, before realizing that it was obsolete (virusman, please update the library or remove it from distribution - it only causes grief). My chat script works with 0.3.3 but I still can't get it to work with 0.3.5. Does your script work with 0.3.5?
Back to top
View user's profile Send private message
Rumata



Joined: 05 Aug 2008
Posts: 6

PostPosted: Wed Aug 13, 2008 1:59    Post subject: Reply with quote

Undertowe, sorry my bad english, may be hard to understand it.

The 0.3.5 seems not work, the main work of this plugin is to execute a chat script when a player writes in the chat window, but do nothing. I'm don't know the reason, may be needs a lib package installed, may be the autor forget something.

I'm working, as you, with the 0.3.3 one, now, with the functions updated to NWNGet* & NWNSet*, and works fine. I'm thinking the only important diference is the loglevel parameter.
Back to top
View user's profile Send private message
TiQ79



Joined: 29 Jul 2007
Posts: 7
Location: Zurich, Switzerland

PostPosted: Thu Aug 21, 2008 20:37    Post subject: Reply with quote

Can you provide us your fixed scripts Rumata?

Don't think it's a good idea to let us do this on our own, and will be less supportable.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Thu Aug 21, 2008 21:07    Post subject: Reply with quote

Sorry for the broken library - seems like I've missed something when I was testing it (at least it was working in NWN1). I'll be able to release a fix next week.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
GodBeastX



Joined: 09 Aug 2006
Posts: 65

PostPosted: Thu Aug 21, 2008 21:59    Post subject: Reply with quote

Just a note, Virusman, your call to RunScript is off a bit.
Back to top
View user's profile Send private message
Rumata



Joined: 05 Aug 2008
Posts: 6

PostPosted: Tue Sep 02, 2008 3:29    Post subject: Reply with quote

TiQ79, Is a very simple script, this works with the 3.30 one.

http://pastebin.com/f4d68ce3d


For now, I'm only have a problem, If I supress the text for manipulate it with language system, I only know 2 ways to resend te text to player and other players:

SendMessageToPC(oPC, sText);
This, and the combat info sends to player in the same channel, is so bad for roleplaying.


SetGUIObjectText( object oPlayer, string sScreenName, string sUIObjectName, int nStrRef, string sText );
SetNoticeText( object oPlayer, string sText );
This, sends text directly to te player's UI, but I don't find the way to make a multi line chat window with the XML UI code, only a single line works, and new text replaces the old text.

May be, virusman can makes a function in the xp_chat 0.3.6 who replaces the text instead supress it Smile

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



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Sep 02, 2008 8:40    Post subject: Reply with quote

SendMessage from NWNX Chat library can do this.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Rumata



Joined: 05 Aug 2008
Posts: 6

PostPosted: Tue Sep 02, 2008 17:04    Post subject: Reply with quote

Shocked

Virusman, it is wonderful, but please, can you tell me where I can find the lib's function list?


Thanks a lot.
Back to top
View user's profile Send private message
TroveLord



Joined: 22 Nov 2006
Posts: 136
Location: Italy

PostPosted: Wed Oct 01, 2008 13:52    Post subject: Reply with quote

Does anyone have a demo module?
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Oct 05, 2008 13:01    Post subject: Reply with quote

Rumata wrote:
Shocked

Virusman, it is wonderful, but please, can you tell me where I can find the lib's function list?


Thanks a lot.
All available functions are listed in the nss include.
TroveLord wrote:
Does anyone have a demo module?
Seems like GrinningFool has removed the file from his site. I'll ask him to upload it again..
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
TroveLord



Joined: 22 Nov 2006
Posts: 136
Location: Italy

PostPosted: Sun Oct 05, 2008 18:20    Post subject: Reply with quote

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



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Oct 06, 2008 14:21    Post subject: Reply with quote

Unfortunately, GrinningFool doesn't have a copy of the module.
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 ... 7, 8, 9, 10, 11  Next
Page 8 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