View previous topic :: View next topic |
Author |
Message |
Rumata
Joined: 05 Aug 2008 Posts: 6
|
Posted: Thu Aug 07, 2008 1:07 Post subject: |
|
|
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 |
|
|
Rumata
Joined: 05 Aug 2008 Posts: 6
|
Posted: Sun Aug 10, 2008 20:33 Post subject: |
|
|
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 |
|
|
Rumata
Joined: 05 Aug 2008 Posts: 6
|
Posted: Tue Aug 12, 2008 17:17 Post subject: |
|
|
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 |
|
|
Undertowe
Joined: 03 Jan 2005 Posts: 33
|
Posted: Wed Aug 13, 2008 0:49 Post subject: |
|
|
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 |
|
|
Rumata
Joined: 05 Aug 2008 Posts: 6
|
Posted: Wed Aug 13, 2008 1:59 Post subject: |
|
|
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 |
|
|
TiQ79
Joined: 29 Jul 2007 Posts: 7 Location: Zurich, Switzerland
|
Posted: Thu Aug 21, 2008 20:37 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Thu Aug 21, 2008 21:07 Post subject: |
|
|
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 |
|
|
GodBeastX
Joined: 09 Aug 2006 Posts: 65
|
Posted: Thu Aug 21, 2008 21:59 Post subject: |
|
|
Just a note, Virusman, your call to RunScript is off a bit. |
|
Back to top |
|
|
Rumata
Joined: 05 Aug 2008 Posts: 6
|
Posted: Tue Sep 02, 2008 3:29 Post subject: |
|
|
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
Salut! |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue Sep 02, 2008 8:40 Post subject: |
|
|
SendMessage from NWNX Chat library can do this. |
|
Back to top |
|
|
Rumata
Joined: 05 Aug 2008 Posts: 6
|
Posted: Tue Sep 02, 2008 17:04 Post subject: |
|
|
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 |
|
|
TroveLord
Joined: 22 Nov 2006 Posts: 136 Location: Italy
|
Posted: Wed Oct 01, 2008 13:52 Post subject: |
|
|
Does anyone have a demo module? |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sun Oct 05, 2008 13:01 Post subject: |
|
|
Rumata wrote: |
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 |
|
|
TroveLord
Joined: 22 Nov 2006 Posts: 136 Location: Italy
|
Posted: Sun Oct 05, 2008 18:20 Post subject: |
|
|
Thanks. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Mon Oct 06, 2008 14:21 Post subject: |
|
|
Unfortunately, GrinningFool doesn't have a copy of the module. |
|
Back to top |
|
|
|
|
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
|