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 
 
Neverwinter Nights Logs - Better?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Tue Sep 01, 2009 14:37    Post subject: Neverwinter Nights Logs - Better? Reply with quote

Would anyone be able to make a plugin, that hooks onto the nwn log function, and have it output to an html instead of txt file?


I think it would be great if Player Text, Login Events, Logout Events etc, could be highlighted, hyperlinked, or shown in a different method than a bland txt file.


Know it would probably take abit of effort to script something like this.

Since it more a less involves editing the string that is being wrote to include html tags etc infront and after the string, not to mention changing the outputted file extension to html instead of txt.


I have only minor experience with memory editing etc, and have no clue on how to start a nwnx plugin, lack of tutorials etc,
But think it would be a nice addition, if the log files could be spruced up.
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Sep 01, 2009 15:17    Post subject: Reply with quote

You can just parse the existing log files and produce HTML files.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Tue Sep 01, 2009 17:00    Post subject: Reply with quote

anything around that does this - eg a Community App?

Simplist option, usually the best I suppose.
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Tue Sep 01, 2009 17:49    Post subject: Reply with quote

Something like http://www.avlis.org/viewtopic.php?f=4&t=11418?

Edit: Of course, silly me, the link is dead by now. I should have it saved somewhere, though.

Edit 2: Glad I never delete anything. Razz
Got it up at http://artemis.mercuric.net/parselog.zip
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?


Last edited by Zebranky on Wed Sep 02, 2009 1:03; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Tue Sep 01, 2009 22:09    Post subject: Reply with quote

Our players have made all kinds of log parsers. You can see some examples here:
http://highergroundpoa.proboards.com/index.cgi?board=software

Funky
Back to top
View user's profile Send private message
Disco



Joined: 06 Dec 2006
Posts: 152

PostPosted: Wed Sep 02, 2009 10:37    Post subject: Reply with quote

Log files are a pain in the arse for daily use, to be honest. Why don't you log critical stuff to a database and make some sort/search script in PHP?
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Wed Sep 02, 2009 11:02    Post subject: Generally Speaking Reply with quote

Generally Speaking, I take the odd gander at my log files to check for the things that I may not have expected to find.

For instance, the other day, I was checking the log files, and saw someone bragging about how theyre character got glitched, and has 245 STR.

Not entirely sure how they got it, but now I know that I should keep an eye on this player to see if they replicate it, and if they know an exploit of how it happened.

Plus Log files are useful, especially the nwnx_chat ones, for getting to the bottom of Player Arguments, who said what, who did what etc.

Can anyone recommend a windows log parser? The ones I tried from funky's link didnt seem to work when I loaded a server log in.

One returned
Date Not found Ignoring - for every line in the log file - when the date was actually shown in the log.

Im wondering if maybe the logs were formatted differently when that parser was wrote?
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Wed Sep 02, 2009 16:13    Post subject: Reply with quote

Oh, I think we both assumed you meant client logs (which was kind of silly, given the venue). I don't know of any server log parsers, but I'd just use grep.
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Wed Sep 02, 2009 16:55    Post subject: Reply with quote

Grep?

Whats Grep? Lol
Back to top
View user's profile Send private message
Barking_Mad



Joined: 09 Jan 2009
Posts: 4

PostPosted: Wed Sep 02, 2009 18:47    Post subject: Reply with quote

grep. I use sed which you can also get a binary for windows if you wish.

I use it to parse game logs to XML format, then use XSL styling. I've been considering having it dump into my MySQL DB though, haven't really found the need yet. Being able to hook the log formatting would be neat, there is an element of information degeneracy with NWN logs that makes isolating some patterns difficult without manual editing, because you need to know the context of that message or peice of information.
If it was possible to hook the output formats to remove that degeneracy/ambiguity, i'd be happier. But it's really not worth a great deal of effort :p

MySQL would be better for a server, especially if you wanted more advanced text searching and analysis. But again, you would suffer some from the same ambiguities if you wanted to parse and seperate data fields.
_________________
WooF WooF!
Back to top
View user's profile Send private message MSN Messenger
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Thu Sep 03, 2009 8:07    Post subject: Re: Generally Speaking Reply with quote

Baaleos wrote:

Can anyone recommend a windows log parser? The ones I tried from funky's link didnt seem to work when I loaded a server log in.

Those are client log parsers, most of which are designed to parse damage data from gaming sessions. I only offered them up as an example of log parsing, for you to look at and perhaps base yours off of. Most look for particular input keywords to indicate partymembers, etc - they're highly specialized and won't work on just any text file.

Funky
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows 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