|
Post by illandous on Feb 13, 2007 13:51:43 GMT
Sounds like a sourceforge thing, plenty of people share code out there. Unless we want to use a forum to support code, update revisions and all of that. I'm sure I can provide one off www.illandous.com (just a parked site at the moment.)
|
|
|
Post by resonance378 on Feb 13, 2007 16:47:04 GMT
log analyzer request:
Have an active listen for !startlog and !stoplog
Damage done by monster break down :Monster Name: P S B F C E A :Damage: XXX XXX XXX XXX XXX XXX XXX
It's great to know who is doing what damage and hitting for what but it's even better to know what YOU are getting hit with. Helps find holes/flaws in the build or gear for certain types of monsters me thinks.
|
|
|
Post by Bakchuda on Feb 13, 2007 18:52:36 GMT
The report does show that kind of a breakdown, in the Monster's area it shows damage dealt, to whom, and what type(s). And in the report for each player, it shows the damage received, from whom, and what type(s)
As for the startlog/stoplog, that's a good idea for localizing the analysis. I can add that in today, i'll post when it's ready
|
|
|
Post by resonance378 on Feb 13, 2007 19:25:15 GMT
*dances merrily like the evil 6'2" 205lbs imp he is* Yesses!
|
|
|
Post by Bakchuda on Feb 13, 2007 20:49:47 GMT
Ok, the ruby script is updated. There is a second option at the top of the file, below the file name property, called $LOG_SECTIONS . By default it is set to false, if you set this value to true (by replacing the false with true in any text editor) the analyzer will only look at lines between when it sees a line that ends with !startlog and !stoplog. It's case insensitive, but it will not recognize the command unless it is the last word on the line. I have only tested this "manually" by editing a log file myself, let me know how this works for people "in the wild" Just in case you see this post and not the parent, the script can be found here: devel.snipehunt.net/downloads/chatAnalyzer.rbEnjoy!
|
|
|
Post by Bakchuda on Feb 14, 2007 2:20:16 GMT
Updated script after I found a bug, just in case anyone saw the bug and was about to post
|
|
|
Post by cathedralmaster on Feb 14, 2007 3:41:10 GMT
Seem to run into an error when it gets to lines concerning when I shift.
**EEE*** Error in this line: [CHAT WINDOW TEXT] [Wed Feb 07 16:52:33] Merged: Armor, Helmet, Shield, Rings, Amulet, Cloak, Boots, Belt, Bracers, Weapon (if you had one equipped) or gloves to unarmed attacks. sections.last = Merged: Armor, Helmet, Shield, Rings, Amulet, Cloak, Boots, Belt, Bracers, Weapon (if you had one equipped) or gloves to unarmed attacks. method.to_s = attack chatAnalyzer.rb:61:in `parseLine': undefined method `rindex' for nil:NilClass (NoMethodError) from chatAnalyzer.rb:109:in `attack' from (eval):1:in `parseLine' from chatAnalyzer.rb:53:in `eval' from chatAnalyzer.rb:61:in `parseLine' from chatAnalyzer.rb:53:in `each_pair' from chatAnalyzer.rb:53:in `parseLine' from chatAnalyzer.rb:368 from chatAnalyzer.rb:368:in `each' from chatAnalyzer.rb:368
|
|
|
Post by AndyDeck on Feb 14, 2007 7:09:01 GMT
Seem to run into an error when it gets to lines concerning when I shift. **EEE*** Error in this line: [CHAT WINDOW TEXT] [Wed Feb 07 16:52:33] Merged: Armor, Helmet, Shield, Rings, Amulet, Cloak, Boots, Belt, Bracers, Weapon (if you had one equipped) or gloves to unarmed attacks. sections.last = Merged: Armor, Helmet, Shield, Rings, Amulet, Cloak, Boots, Belt, Bracers, Weapon (if you had one equipped) or gloves to unarmed attacks. method.to_s = attack chatAnalyzer.rb:61:in `parseLine': undefined method `rindex' for nil:NilClass (NoMethodError) from chatAnalyzer.rb:109:in `attack' from (eval):1:in `parseLine' from chatAnalyzer.rb:53:in `eval' from chatAnalyzer.rb:61:in `parseLine' from chatAnalyzer.rb:53:in `each_pair' from chatAnalyzer.rb:53:in `parseLine' from chatAnalyzer.rb:368 from chatAnalyzer.rb:368:in `each' from chatAnalyzer.rb:368 The problem is with the 'attacks.' at the end of the line. I fixed it by adding "'attacks.' => :null" to the @linetypes entry on line 16, and then copying the function heal() on line 150 into a new blank function called null(). All better
|
|
|
Post by gruntgruntson on Feb 14, 2007 12:52:53 GMT
Hi Great sript! Now maybe I can find out why I keep dying! You mentioned in post 1 that you could get it to output to file, rather than to console - is this easy? Has it been implimented? It sounds like a great feature! I cannot script, so cannot guess how much work it would be. Gonna go test out the analyzer! Keep up the good work! Spike
|
|
|
Post by resonance378 on Feb 14, 2007 15:31:31 GMT
I'm guessing that you could pipe the output to file
chatAnalyzer.rb > outputlog.txt or chatAnalyzer.rb | outputlog.txt
In the meantime... I can't even get my NWN to LOG yet :/
|
|
|
Post by MurphysLawAgain on Feb 14, 2007 15:49:35 GMT
Bakchuda & Claus, Many thanks for your respective analysis tools - they have proved handy already. Now if we could just get 1 tool to produce Claus's table with Bak's level of detail I would be in hog heaven. Since my coding smells however I will be grateful for whatever you produce. Resonance, make sure that ClientEntireChatWindowLogging = 1 in your nwnplayer.ini. You should then get logs appearing in the log folder Phandal
|
|
|
Post by illandous on Feb 14, 2007 15:54:07 GMT
Also, I'm noticed this as I've been scripting.. I only can keep my log up to 3 meg or so. then it just stops. Anyone else seeing this?
|
|
|
Post by resonance378 on Feb 14, 2007 16:22:26 GMT
Resonance, make sure that ClientEntireChatWindowLogging = 1 in your nwnplayer.ini. You should then get logs appearing in the log folder Yeah, I've had it in nwnplayer.ini with 0 success, will try again tonight, probably typo'd or something. That switch goes under Game Options correct?
|
|
|
Post by cathedralmaster on Feb 14, 2007 16:43:48 GMT
ClientEntireChatWindowLogging=1 ClientChatLogging=1 RotateServerLog=0
In the NWNplayer.ini under game options. I keep ClientChatLogging=0 since it the ruby script seems not to like it (phrases keep showing up as monsters).
|
|
|
Post by illandous on Feb 14, 2007 17:08:50 GMT
Thanks Cath, I will give that a shot.
|
|