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 
 
NWNX4 Profiler

 
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 Jul 12, 2007 1:29    Post subject: NWNX4 Profiler Reply with quote

NWNX4 Profiler 1.0 RC1
The functionality is almost the same as in the Linux port here:
http://www.nwnx.org/phpBB2/viewtopic.php?t=509
The script name limit is 64 characters.
No pathfinding hook yet.

NWNX4 1.07: http://data.virusman.ru/nwn/nwnx4/xp_profiler-1.0.0-rc1-nwnxp7.rar
NWNX4 1.08b2: http://data.virusman.ru/nwn/nwnx4/xp_profiler-1.0.0-rc1.rar
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
patch



Joined: 12 Jul 2007
Posts: 2

PostPosted: Thu Jul 12, 2007 14:35    Post subject: Reply with quote

Thanks a lot it seems to be working fine once I figured out you were using 1.08 beta 2 nwnx4

Really appreciate you getting it up even without pathfinding

Kid in candystore - read the whole post??? naw grab it and run!!!
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Jul 14, 2007 15:09    Post subject: Reply with quote

This is really great news!
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Illuminatus



Joined: 10 Oct 2007
Posts: 1

PostPosted: Wed Oct 10, 2007 0:49    Post subject: Reply with quote

I'm going to ask a dumb question to all you coding gurus....

But how does one install this mod? Any NWNx.ini changes? Do I drop it in the NWN2 folder?
Back to top
View user's profile Send private message
radsam



Joined: 03 Dec 2006
Posts: 3

PostPosted: Fri Oct 12, 2007 20:12    Post subject: Reply with quote

Hi Virusman,

first of all, thanks for the Profiler port to NWNX4.

I'm trying to get this plugin to run and i'm getting an Error 126 at initialization time. I ran the Dependency Walker on the xp_profiler.dll and the only problem it shows is a missing function from MPR.dll ? I looked around and it seems to be a benign problem.

I have tried to use the 1.07 prototype and the 1.08b2 versions with the two download links you have provided. I also tried to use the 1.08b2 xp_profiler.dll with the final 1.08 NWNX4 release. all give the same Error 126

Any idea on what I may be missing? the system i'm running NWNX4 on has no Development tools. it's a clean Win XP Pro SP2 with .NET 2.0 and C++ runtimes installed. I had to manually copy the MSVCR80.dll into the System32 directory (dependency walker was complaining)

Thanks,

-RaDSaM
_________________
NWN2 PW: http://www.abyssya.com
Back to top
View user's profile Send private message
radsam



Joined: 03 Dec 2006
Posts: 3

PostPosted: Sun Oct 14, 2007 0:29    Post subject: Reply with quote

Well after days of spending and searching and code twisting I was ready to give up, but I found a post from the NWNX Chat plugin that solved the problem. Copy the damn madCHook.dll into the NWN2's exe directory to get the xp_profiler.dll to work

This isnt obvious, since other plugins seem to not need this. Can you please mention nearby the download links? would save many days of frustration

Thanks,

-RaDSaM
_________________
NWN2 PW: http://www.abyssya.com
Back to top
View user's profile Send private message
Morrandir



Joined: 13 Jan 2006
Posts: 27

PostPosted: Wed Jul 09, 2008 10:39    Post subject: Reply with quote

I have a question concerning the profiler log.

I have following lines:
Code:
>_ha2_onmoduleload        8882 msec   1179 calls  |
_ha2_onmoduleload           77 msec      1 calls  |


As you might estimate, the script is the OnModuleLoad event script, running on a persistent world, that should run exactly one time.

But what does the line with ">" mean exactly?

(Yes, I read the * RunScript hooked (symbol: >). in the logfiles header, but that didn't help. Smile )
_________________
German NWN1/2 Persistent World Hochwaldallianz
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Jul 09, 2008 13:51    Post subject: Reply with quote

an example
Code:
...some code...
RunScript("somescript");
...some code...

Everything before RunScript is _ha2_onmoduleload, everything after RunScript is >_ha2_onmoduleload. As far as I remember, the "scriptparts" ini setting has been added in this build, so if you set it to 0, it will not divide the script execution time.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Morrandir



Joined: 13 Jan 2006
Posts: 27

PostPosted: Wed Jul 09, 2008 15:34    Post subject: Reply with quote

RunScript("somescript") means, that I call a function defined in another included script?
Cause we don't have any ExecuteScript() in _ha2_onmoduleload.
_________________
German NWN1/2 Persistent World Hochwaldallianz
Back to top
View user's profile Send private message
Morrandir



Joined: 13 Jan 2006
Posts: 27

PostPosted: Fri Jul 18, 2008 8:47    Post subject: Reply with quote

*bump* Smile
_________________
German NWN1/2 Persistent World Hochwaldallianz
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Page 1 of 1

 
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