View previous topic :: View next topic |
Author |
Message |
void
Joined: 26 Apr 2010 Posts: 3
|
Posted: Mon Apr 26, 2010 16:26 Post subject: Problem whith nwnx_chat 0.3.4-win |
|
|
I apologise for bad English, it's not my native language and i use it not often.
My problem is that:
nwnx_chat.dll copied to <nwn_root_dir>
nwnx.ini section
Code: | [CHAT]
debuglevel=3
chat_script=nl_mod_ochat
server_script=nl_mod_ochat_s
processnpc=1
ignore_silent=0 |
dmb_ChatInit placed in onModuleLoad script, as well as dmb_PCIn/dmb_PCOut in onPlayerEnter/onPlayerExit scripts
nl_mod_ochat
Code: |
#include "dmb_chat"
#include "vd_inc_debug"
void main()
{
object oSpeaker = OBJECT_SELF;
SetLocalString( oSpeaker, "NWNX!CHAT!TEXT", dmb_GetSpacer() );
string sMessage = GetLocalString( oSpeaker, "NWNX!CHAT!TEXT" );
vd_DebugMessageIngame( DEBUG_MODULE_CHAT, "nl_mod_ochat", oSpeaker, sMessage, DEBUG_LEVEL_DEBG );
}
|
vd_DebugMessageIngeim is simply wrapper for WriteTimestampedLogEntry
logs.0/nwnx.txt
Code: | NWN Extender V.2.7-beta4
(c) 2004 by Ingmar Stieger (Papillon) and Jeroen Broekhuizen
(c) 2007-2008 by virusman
visit us at http://www.nwnx.org
* Loading plugins...
* Plugin ceditor is loaded.
* Plugin chat is loaded.
* Plugin events is loaded.
* Plugin fixes is loaded.
* Plugin functions is loaded.
* Plugin leto is loaded.
* Plugin odbc is loaded.
* Plugin profiler is loaded.
* Plugin resetplugin is loaded.
* Plugin resman is loaded.
* Plugin restart is loaded.
* Plugin systemdata2 is loaded.
* NWNX2 activated.
|
logs.0/nwnx_chat.txt
Code: | NWNX Chat version 0.3.4 for Windows.
(c) 2005-2006 by dumbo (dumbo@nm.ru)
(c) 2006-2008 virusman (virusman@virusman.ru)
! ChatProc hooked at 43ca00.
! RunProc located at 5bf9d0.
! GetIDProc located at 452f70.
|
after server start i type something in game chat and looking into logs.0/nwnserverlog1.txt
Code: | [Mon Apr 26 17:05:54] [CHAT] [nl_mod_ochat] [void] [MyTestCharacter] ............... <- 1024 dots
|
Looks like nwnx_chat not hooking changing of NWNX!CHAT!TEXT on oSpeaker.
Hope for some help. |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Tue Apr 27, 2010 15:27 Post subject: |
|
|
Are you calling the relevant chat functions in OnModuleLoad, OnClientEnter and OnClientLeave? |
|
Back to top |
|
|
void
Joined: 26 Apr 2010 Posts: 3
|
Posted: Wed Apr 28, 2010 15:50 Post subject: Re: Problem whith nwnx_chat 0.3.4-win |
|
|
void wrote: |
dmb_ChatInit placed in onModuleLoad script, as well as dmb_PCIn/dmb_PCOut in onPlayerEnter/onPlayerExit scripts |
Yes. Maybe I have a mistaken dialog.tlk, but those functions sounded as i wrote (onPlayerEnter/onPlayerExit). =) |
|
Back to top |
|
|
void
Joined: 26 Apr 2010 Posts: 3
|
Posted: Thu Apr 29, 2010 11:40 Post subject: |
|
|
Hm... The same pw under linux works fine. |
|
Back to top |
|
|
|