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 
 
NWNX Events
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 10, 11, 12  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Wed Mar 04, 2009 22:38    Post subject: Reply with quote

The closest you can get with Windows is Z-Dialog (or ZZ-Dialog).
Back to top
View user's profile Send private message
jec2



Joined: 17 Jul 2008
Posts: 49

PostPosted: Thu Mar 05, 2009 4:03    Post subject: EVENTS OCASSIONALLY FAILS ON LOAD Reply with quote

all right, I've had this issue before, i used to have 64 bit ubuntu desktop, and this issue popped up all the time.. i recently wiped and installed ubuntu 8.10 32bit so we could compile all plugs from the svn, and use them..
We were having problems getting the database plugs to compile in 64bit.
I compiled svn co 205 in our 32bit OS.. I'm using nwnx2 and plugs from it and this problem is back.. i used to think maybe it was a 64bit issue, but now its as bad or worse with this 32bit installation..

After starting or restarting the server, 1 or 2 times out a 5 in a day, EVENTS plug fails to load (on create) .. it is intermittent, doesn't happen every time..
my question is this.. can you tell me if a switch exists that would let me say in the nwnx2.ini, if all plugs dont load well, restart?

Or if not, can u offer the best code possible to use in the mod, so that on load, EVENTS hooks are tested, and if there not loaded, restart the mod? if we could do that , it would be unnoticeable anyway.. here are some logs..

The big reason we need this, is because we reset using the reset plug every 5 hours, and that means, unchecked, the server can run without the events plug for 5 hours at a time when it doesn't load properly..

fail log..

NWNX Events version 1.3.1 for Linux.
(c) 2006-2008 by virusman (virusman@virusman.ru)
X Could not find SaveChar function or hook failed: 0
X Could not find ActPickPocket function or hook failed: 0
X Could not find ActAttack function or hook failed: 0
X Could not find UseItem function or hook failed: 0
X Could not find ConversationNodeSelect function or hook failed: 0
X Could not find ConditionalScript function or hook failed: 0
X Could not find SendServerToPlayerQuickChatMessage function or hook failed: 0
X Could not find ExamineItem function or hook failed: 0
X Could not find ExamineCreature function or hook failed: 0
X Could not find ExaminePlaceable function or hook failed: 0
X Could not find ExamineDoor function or hook failed: 0
X Could not find UseSkill function or hook failed: 0
X Could not find UseFeat function or hook failed: 0
X Could not find ToggleMode function or hook failed: 0
X Could not find CastSpell function or hook failed: 0
X Could not find TogglePause function or hook failed: 0
X Could not find PossessFamiliar function or hook failed: 0
! RunProc hooked at 8261f94.


good load log..


NWNX Events version 1.3.1 for Linux.
(c) 2006-2008 by virusman (virusman@virusman.ru)
! SaveChar hooked at 805d910.
! ActPickPocket hooked at 810a3f4.
! ActAttack hooked at 81188d4.
! UseItem hooked at 81159bc.
! ConversationNodeSelect hooked at 823deac.
! ConditionalScript hooked at 823cab0.
! SendServerToPlayerQuickChatMessage hooked at 8068dec.
! ExamineItem hooked at 8073f9c.
! ExamineCreature hooked at 8073958.
! ExaminePlaceable hooked at 8074668.
! ExamineDoor hooked at 8074c50.
! UseSkill hooked at 812b1d8.
! UseFeat hooked at 812a004.
! ToggleMode hooked at 812bcb4.
! CastSpell hooked at 811610c.
! TogglePause hooked at 80adb18.
! PossessFamiliar hooked at 810de48.
! RunProc hooked at 8261f94.

Here is build data from svn co 205 in case that helps(from after running install.sh ) ..
its too big to post here, so im giving link to a doc on our web server.. http://cwlweb.servegame.org:16080/svn_co_205_built_on_ubuntu_8.10_32bit.txt if your having trouble reading a linux file in windows.. may i suggest http://www.pspad.com/en/ .. pspad lets you look at linux files no problem in windows.. thanks..

gcc version in package manager shows as 4:431-1ubuntu2
g++ version in package manager shows as same..

Anything u can give on how to deal with this issue would be helpful..
Thanks..
JEC..


Last edited by jec2 on Fri Mar 06, 2009 22:56; edited 5 times in total
Back to top
View user's profile Send private message
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Thu Mar 05, 2009 18:35    Post subject: Reply with quote

Fireboar wrote:
The closest you can get with Windows is Z-Dialog (or ZZ-Dialog).


Figured this was the case. Ah, well. ZZ Dialog is it. Smile

Thanks for the response. Glad to get an answer this time Razz
Back to top
View user's profile Send private message
jec2



Joined: 17 Jul 2008
Posts: 49

PostPosted: Fri Mar 06, 2009 22:04    Post subject: supplemental for EVENTS problem.. Reply with quote

Added build data link for issue given 2 posts up..
please look.. thanks..
JEC.
Back to top
View user's profile Send private message
jec2



Joined: 17 Jul 2008
Posts: 49

PostPosted: Fri Mar 06, 2009 23:02    Post subject: EVENTS OCASSIONALLY FAILS ON LOAD Reply with quote

all right, I've had this issue before, i used to have 64 bit ubuntu desktop, and this issue popped up all the time.. i recently wiped and installed ubuntu 8.10 32bit so we could compile all plugs from the svn, and use them..
We were having problems getting the database plugs to compile in 64bit.
I compiled svn co 205 in our 32bit OS.. I'm using nwnx2 and plugs from it and this problem is back.. i used to think maybe it was a 64bit issue, but now its as bad or worse with this 32bit installation..

After starting or restarting the server, 1 or 2 times out a 5 in a day, EVENTS plug fails to load (on create) .. it is intermittent, doesn't happen every time..
my question is this.. can you tell me if a switch exists that would let me say in the nwnx2.ini, if all plugs dont load well, restart?

Or if not, can u offer the best code possible to use in the mod, so that on load, EVENTS hooks are tested, and if there not loaded, restart the mod? if we could do that , it would be unnoticeable anyway.. here are some logs..

The big reason we need this, is because we reset using the reset plug every 5 hours, and that means, unchecked, the server can run without the events plug for 5 hours at a time when it doesn't load properly..

fail log..

NWNX Events version 1.3.1 for Linux.
(c) 2006-2008 by virusman (virusman@virusman.ru)
X Could not find SaveChar function or hook failed: 0
X Could not find ActPickPocket function or hook failed: 0
X Could not find ActAttack function or hook failed: 0
X Could not find UseItem function or hook failed: 0
X Could not find ConversationNodeSelect function or hook failed: 0
X Could not find ConditionalScript function or hook failed: 0
X Could not find SendServerToPlayerQuickChatMessage function or hook failed: 0
X Could not find ExamineItem function or hook failed: 0
X Could not find ExamineCreature function or hook failed: 0
X Could not find ExaminePlaceable function or hook failed: 0
X Could not find ExamineDoor function or hook failed: 0
X Could not find UseSkill function or hook failed: 0
X Could not find UseFeat function or hook failed: 0
X Could not find ToggleMode function or hook failed: 0
X Could not find CastSpell function or hook failed: 0
X Could not find TogglePause function or hook failed: 0
X Could not find PossessFamiliar function or hook failed: 0
! RunProc hooked at 8261f94.


good load log..


NWNX Events version 1.3.1 for Linux.
(c) 2006-2008 by virusman (virusman@virusman.ru)
! SaveChar hooked at 805d910.
! ActPickPocket hooked at 810a3f4.
! ActAttack hooked at 81188d4.
! UseItem hooked at 81159bc.
! ConversationNodeSelect hooked at 823deac.
! ConditionalScript hooked at 823cab0.
! SendServerToPlayerQuickChatMessage hooked at 8068dec.
! ExamineItem hooked at 8073f9c.
! ExamineCreature hooked at 8073958.
! ExaminePlaceable hooked at 8074668.
! ExamineDoor hooked at 8074c50.
! UseSkill hooked at 812b1d8.
! UseFeat hooked at 812a004.
! ToggleMode hooked at 812bcb4.
! CastSpell hooked at 811610c.
! TogglePause hooked at 80adb18.
! PossessFamiliar hooked at 810de48.
! RunProc hooked at 8261f94.

Here is build data from svn co 205 in case that helps(from after running install.sh ) ..
its too big to post here, so im giving link to a doc on our web server.. http://cwlweb.servegame.org:16080/svn_co_205_built_on_ubuntu_8.10_32bit.txt ..as you will see, there were many warnings.. depricated this, etc...
If your having trouble reading a linux file in windows.. may i suggest http://www.pspad.com/en/ .. pspad lets you look at linux files no problem in windows.. thanks..

gcc version in package manager shows as 4:431-1ubuntu2
g++ version in package manager shows as same..

Anything u can give on how to deal with this issue would be helpful..
Thanks..
JEC..
Back to top
View user's profile Send private message
SartriX



Joined: 13 Jul 2008
Posts: 16

PostPosted: Sat Mar 07, 2009 10:51    Post subject: Reply with quote

Since you're using Linux anyhow, I believe the easiest way would be to spawn a detached bash-script just before launching nwserver, assuming it's now called in a looping script to auto-restart on crash as well.

The detached script would then simply have a sleep, possibly looped till logs.0/nwnx_events.txt exists, and once it does, grep the nwnx_events log on "X Could not find SaveChar". If it finds a result, kill the proces stored in .nwnpid

That way you have an external detection whether a plugin does not properly load, which would obviously be more reliable as any built-in ones, as they could fail loading on their own.
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sat Mar 07, 2009 12:23    Post subject: Reply with quote

Does the same bug appear when you compile from the release version (1.3.1)?
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: Sat Mar 07, 2009 12:25    Post subject: Reply with quote

Zunath wrote:
It's probably a lost cause, but is there any chance we'll see the SelectConversationNode events for Windows?
Yes. It's in the todo list.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
jec2



Joined: 17 Jul 2008
Posts: 49

PostPosted: Sat Mar 07, 2009 18:43    Post subject: Reply with quote

virusman wrote:
Does the same bug appear when you compile from the release version (1.3.1)?

Not quite sure what you mean?.. using svn 205 (latest) which is compiling events 1.3.1
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sat Mar 07, 2009 20:39    Post subject: Reply with quote

jec2 wrote:
Not quite sure what you mean?.. using svn 205 (latest) which is compiling events 1.3.1
SVN version counts as 'unstable'. The stable versions are released in this topic (click here for the latest stable release).
EDIT: You're right: 1.3.1 release and the latest svn trunk are identical - there have been no changes.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
jec2



Joined: 17 Jul 2008
Posts: 49

PostPosted: Sun Mar 08, 2009 16:51    Post subject: Reply with quote

virusman wrote:
jec2 wrote:
Not quite sure what you mean?.. using svn 205 (latest) which is compiling events 1.3.1
SVN version counts as 'unstable'. The stable versions are released in this topic (click here for the latest stable release).
EDIT: You're right: 1.3.1 release and the latest svn trunk are identical - there have been no changes.


So any ideas? when it happens it says "on create()" , could that mean it just had trouble making the EVENTS log file, and kicks out before establishing hooks?
couldn't you just add a couple re-try's on what ever is failing? or maybe just (in that case) continue with hooks (no log file) and just spit out a message like:
ERROR: EVENTS: OnCreate() failed: No Log File Possible, EVENTS plugin registered
Also, are there any nwnx2.ini settings that might be helpful, is there a list of possible settings somewhere? or other things you might suggest to get around this problem?

NWN Extender v2.8-dev
--------------------------------
ERROR: EVENTS: OnCreate() failed.
FUNCS plugin registered.
RESETPLUGIN plugin registered.
LETO plugin registered.
ODBC plugin registered.
CHAT plugin registered.
WEAPONS plugin registered.
* NWNX2 activated.
INIT(S): valid ret=0x082041ec
INIT(S): reset ignored ret=0x082041ec

As you may have seen if you looked at the build text file i provided on earlier posts, there is a lot of this kinda thing happening
NWNXEvents.cpp:40: warning: deprecated conversion from string constant to ‘char*’

I did a search for this issue, and there are many responses. here is one from ubuntu that's titled "g++ doesn't like char*" http://ubuntuforums.org/showthread.php?t=832513 which suggests using "std::string".. but I don't know if its helpful..

this seems to happen though, where ever char* is in the code.. Having trouble believing that is the problem, since other plugs seem to work all the time, and events works half the time.. don't think its the code, but i wouldn't know..

Also seeing these:
nwnx2lib.cpp:497: Warning: indirect jmp without `*'
HookFunc.cpp:807: warning: deprecated conversion from string constant to ‘char*’
NWNXHashSet.cpp:161: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 3 has type ‘long unsigned int’

nwnx2lib.cpp: In function ‘void Log(int, const char*, ...)’:[/b
[b]nwnx2lib.cpp:619: warning: format not a string literal and no format arguments

nwnx2lib.cpp:625: warning: format not a string literal and no format arguments
nwnx2lib.cpp: In constructor ‘startstop::startstop()’:
nwnx2lib.cpp:651: warning: format ‘%p’ expects type ‘void*’, but argument 2 has type ‘long unsigned int’
nwnx2lib.cpp:651: warning: format ‘%p’ expects type ‘void*’, but argument 3 has type ‘long unsigned int’
nwnx2lib.cpp:653: warning: format ‘%p’ expects type ‘void*’, but argument 2 has type ‘long unsigned int’
nwnx2lib.cpp:653: warning: format ‘%p’ expects type ‘void*’, but argument 3 has type ‘long unsigned int

NWNXFunction.cpp: In member function ‘char* CNWNXFunction::GetGroundHeight(char*)’:
NWNXFunction.cpp:372: warning: format ‘%x’ expects type ‘unsigned int*’, but argument 3 has type ‘dword*’
NWNXFunction.cpp: In member function ‘void CNWNXFunction::GetIsWalkableHL(char*)’:
NWNXFunction.cpp:394: warning: format ‘%x’ expects type ‘unsigned int*’, but argument 3 has type ‘dword*’
NWNXFunction.cpp: In member function ‘void CNWNXFunction::ActUseItem(char*)’:
NWNXFunction.cpp:539: warning: format ‘%x’ expects type ‘unsigned int*’, but argument 3 has type ‘dword*’
NWNXFunction.cpp:539: warning: format ‘%x’ expects type ‘unsigned int*’, but argument 4 has type ‘dword*’
NWNXFunction.cpp:539: warning: format ‘%d’ expects type ‘int*’, but argument 8 has type ‘dword*’
NWNXFunction.cpp: In member function ‘void CNWNXFunction::GetPCPort(char*)’:
NWNXFunction.cpp:552: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘dword’
NWNXFunction.cpp: In member function ‘char* CNWNXFunction::GetNextLocalVariable(char*)’:
NWNXFunction.cpp:593: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘dword’
NWNXFunction.cpp:613: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘dword’
NWNXFunction.cpp: In member function ‘void CNWNXFunction::GetItemCount_Ext(char*)’:
NWNXFunction.cpp:627: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘dword’
NWNXFunction.cpp: In member function ‘void CNWNXFunction::ObjDump(char*)’:
NWNXFunction.cpp:652: warning: '0' flag used with ‘%p’ printf format
NWNXFunction.cpp:656: warning: '0' flag used with ‘%p’ printf format

etc..

anyway.. what ever you can do or suggest..

thanks..
jec.
Back to top
View user's profile Send private message
jec2



Joined: 17 Jul 2008
Posts: 49

PostPosted: Sun Mar 22, 2009 7:32    Post subject: problem solved.. but still a prob.. Reply with quote

Our mod creator/main coder, noticed that the EVENTS file built on our system was about half the size of the link you provided for the same build of EVENTS above. We had to use your build...
I had noticed that our ODBC plug was also smaller than the size it should be (we were having problems using it) and I had to find an old one..
Why would my building on my 32 bit ubuntu 8.10, using the SVN, cause files to compile at half their size, and half their capabilities???
For the EVENTS file that we compiled worked, but not always..
and the ODBC plug worked for some table updates(not all), but only if it used DATABASE instead of ODBC2 in the nwnx2.ini file..
We needed ODBC2 , so i had to use an old one..

But anyway.. here again is all build info using the install.sh..
From the old build.. http://cwlweb.servegame.org:16080/svn_co_205_built_on_ubuntu_8.10_32bit.txt
Or, you can see the latest data from the latest buld (svn 219) here http://cwlweb.servegame.org:16080/SVN219BuildText.txt
Same thing is occuring with latest build..

Also, i see there is a plug called nwnx_mysql.so??? how does this differ from the odbc plug? as we use mysql..

I've also added our compiled folder in the case you want to see the files themselves..
here http://cwlweb.servegame.org:16080/plugs/
That URL will give you info only from the compiled folder, like size, no access, if you need the files , ill get them to you.
Can u look at it, maybe see what's missing???.. maybe its a package or something..

UBUNTU is one of the best, or best distro out there (according to http://distrowatch.com and many others)..
Sure would like to build plugs from the svn.. and we use others from it anyway.. weaps, funcs.. we use them, and they seem to work, but i wonder if their shortened somehow.. \
thanks..
jec
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Sun Mar 22, 2009 20:21    Post subject: Reply with quote

It's likely you're compiling them without debug info. If they work, they aren't shortened.

Acaos
Back to top
View user's profile Send private message
jec2



Joined: 17 Jul 2008
Posts: 49

PostPosted: Mon Mar 23, 2009 6:21    Post subject: Reply with quote

acaos wrote:
It's likely you're compiling them without debug info. If they work, they aren't shortened.

Acaos


As i stated in the post though.. 2 main plugs compiled were smaller than there counterparts found thru download, and only half worked, where as the downloaded files worked...
jec.
Back to top
View user's profile Send private message
PhyrPhly



Joined: 16 Jun 2007
Posts: 25

PostPosted: Wed Apr 08, 2009 16:45    Post subject: EVENTS Request Reply with quote

max196 wrote:
Is there a way to get the "cancel polymorph" event?

Thanks,
Max

Hooking this would be a HUGE help. Any chance you guys can make this happen?

- JP
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 10, 11, 12  Next
Page 7 of 12

 
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