DKP Log Parser Forum Index
 Forum FAQ   Search   Register   Log in 
 About   Download   Forum   Wiki   Development
LOTRO Help

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Patterns

Author

Message

Elenna



Joined: 29 Aug 2007
Posts: 14

PostPosted: Wed Aug 29, 2007 4:33 pm    Post subject: LOTRO Help

Reply with quote


Since LOTRO has not put in a /log feature yet, I will be asking my raid leaders to submit a simple text file (or post on our forums), using a certain format. I'd like for this format to be easy to follow.

How would I alter the Patterns to use something like this:

Event:
*Event Helegrod - 3 DKP - Mon Apr 1 2007 18:30

Zone:
*Zone North Downs

Attendees:
*Att Maera [49 Minstrel] (Elf)
*Att Maighdeann [48 Champion] (Elf)
*Att Petrin [50 Guardian] (Dwarf)

Loot:
*Loot Maera - Staff of Greatness - 3 DKP
*Loot Petrin - Sword of Uber - 5 DKP

Back to top

Elenna



Joined: 29 Aug 2007
Posts: 14

PostPosted: Thu Aug 30, 2007 11:15 pm    Post subject:

Reply with quote


I updated my request (above) to be a little more concise, after reviewing it.

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Fri Aug 31, 2007 9:56 pm    Post subject: Re: LOTRO Help

Reply with quote


Elenna wrote:
Since LOTRO has not put in a /log feature yet, I will be asking my raid leaders to submit a simple text file (or post on our forums), using a certain format. I'd like for this format to be easy to follow.


An important thing to note is that DKPLP requires a timestamp on each line (it's not aware of any context outside the line when parsing).

If it's too annoying to add one to every line then one could create a preprocessor which takes care of it (see another post for an example of a groovy preprocessor).

Quote:
*Event Helegrod - 3 DKP - Mon Apr 1 2007 18:30


The EQ events patterns probably provide a good basis.

Code:
\[\w{3} (\w{3}) (\d{2}) (\d{2}):(\d{2}):(\d{2}) (\d{4})] You tell .*?:\d+, '\*[eE]vent (.+)\s?-\s?(-?\d+(?:\.\d+)?)'
$6|$1|$2|$3|$4|$5|$7|$8


Becomes something like the following (untested).

Code:
\*[eE]vent (.+)\s?-\s?(-?\d+(?:\.\d+)?) DKP\s?-\s?(\w{3}) (\d{1,2}) (\d{4}) (\d{2}):(\d{2})
$5|$3|$4|$6|$7|0|$1|$2


The rest of the lines need timestamps in the example, but should turn out similarly.

Back to top

Elenna



Joined: 29 Aug 2007
Posts: 14

PostPosted: Sat Sep 01, 2007 2:02 pm    Post subject:

Reply with quote


Thanks very much!

Do I need the (3812774321) (log lines??) in front of the line as well, or just the timestamp [Mon Apr 1 17:30:00 2007]?

It would be no problem to add a timestamp in front of each line.

Would it be easier with the timestamp in front? So that they'd send me:

Event:
[Sat Aug 17 18:00:00 2007] *Event Helegrod - 3 DKP

Zone:
[Sat Aug 17 18:00:00 2007] *Zone North Downs

Attendees:
[Sat Aug 17 18:00:00 2007] *Att Maera [49 Minstrel] (Elf)
[Sat Aug 17 18:00:00 2007] *Att Maighdeann [48 Champion] (Elf)
[Sat Aug 17 18:00:00 2007] *Att Petrin [50 Guardian] (Dwarf)

Loot:
[Sat Aug 17 18:00:00 2007] *Loot Maera - Staff of Greatness - 3 DKP
[Sat Aug 17 18:00:00 2007] *Loot Petrin - Sword of Uber - 5 DKP

I think I can figure out the Pattern part for those, but I'm not quite understanding the Format part Sad

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Mon Sep 03, 2007 8:58 am    Post subject:

Reply with quote


Elenna wrote:
Would it be easier with the timestamp in front?


It doesn't matter as long as they are on the same line, the only difference is that the pattern and format will be different.

Quote:
I think I can figure out the Pattern part for those, but I'm not quite understanding the Format part Sad


Hopefully the wiki can be of some help. Basically the format just describes what each captured group is (e.g. which group contains the day and so on). What each format should contain is defined for each parse mode in the wiki.

Back to top

Elenna



Joined: 29 Aug 2007
Posts: 14

PostPosted: Mon Sep 03, 2007 4:02 pm    Post subject:

Reply with quote


Thanks very much - after you mentioned EQ1, I took a look at that pattern set and it was a very quick edit from there! All is working well.

Back to top

Elenna



Joined: 29 Aug 2007
Posts: 14

PostPosted: Mon Sep 22, 2008 1:08 am    Post subject:

Reply with quote


Hi there, I'm back Smile I am starting fresh with this, ready to use any pre-built patterns available.

We switched to a EPGP system, and our members can now receive a different number of points, based on the number of attempts on a boss they attend, and if they attended the boss defeat.

Any ideas on how this might work? An easy one might be that 12 people attended a boss, they defeated the boss and all attendees should receive 4 points.

It gets more complicated when, say, a total of 13 people attend a boss, with one person leaving for one attempt and another person showing up for the second attempt. Everyone that attended the first attempt will receive 1 point. One fellow leaves, and someone else takes their place. The new attendee list defeats the boss, gaining 4 points for the attempt and defeat. Soooo.... we have 10 people who receive 5 points, one person who receives 4 points (who attended the second attempt and defeat) and one person who receives 1 point (first attempt).

We are tracking all of this on an Excel sheet, with the sheet calculating the number of points each person receives.

Is there a way to tie in each person's "here" (/who results line) with the number of points they receive? Or possibly have a separate raid for each grouping of total points (i.e. one raid for the people, above, who received 5 points, one for the 4 point person, and another for the 1 point person)?

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Tue Oct 07, 2008 3:32 pm    Post subject:

Reply with quote


Sorry about the late reply.

Elenna wrote:
Any ideas on how this might work?


I would use one event per attempt. Events basically capture a snapshot of the people present and award them points. Hence you would e.g. award 1 dkp to every failed attempt and 4 points for successful attempts.

Quote:
Is there a way to tie in each person's "here" (/who results line) with the number of points they receive? Or possibly have a separate raid for each grouping of total points (i.e. one raid for the people, above, who received 5 points, one for the 4 point person, and another for the 1 point person)?


I think events are what you're looking for. To get you started I have produced a couple of patterns for the example you posted previous.

The log:
Code:
[Sat Aug 17 18:00:00 2007] *Event Helegrod - 3 DKP
[Sat Aug 17 18:00:00 2007] *Zone North Downs
[Sat Aug 17 18:00:00 2007] *Att Maera [49 Minstrel] (Elf)
[Sat Aug 17 18:00:00 2007] *Att Maighdeann [48 Champion] (Elf)
[Sat Aug 17 18:00:00 2007] *Att Petrin [50 Guardian] (Dwarf)
[Sat Aug 17 18:00:00 2007] *Loot Maera - Staff of Greatness - 3 DKP
[Sat Aug 17 18:00:00 2007] *Loot Petrin - Sword of Uber - 5 DKP


The log member pattern:
Code:
\[\w{3} (\w{3}) (\d{2}) (\d{2}):(\d{2}):(\d{2}) (\d{4})] \*Att (\w+)
$6|$1|$2|$3|$4|$5|$7


The event pattern:
Code:
\[\w{3} (\w{3}) (\d{2}) (\d{2}):(\d{2}):(\d{2}) (\d{4})] \*Event ([^.]*.) - (-?\d+)
$6|$1|$2|$3|$4|$5|$7|$8


Those two are enough to detect the events and who participated.

Tools like RegexPal are useful when constructing the regular expressions. If you need help with any of the other then don't hesitate to ask.

Back to top

Elenna



Joined: 29 Aug 2007
Posts: 14

PostPosted: Mon Oct 13, 2008 11:59 pm    Post subject:

Reply with quote


Thanks very much, that is what we ended up doing. We give a bonus if people defeat the boss, so we added in an extra event for boss defeat.

I am trying to figure out which line(s) the Notes pull from. When parsing, it currently adds in the date and event title, and we are manually editing the note (on the Event tab, by double-clicking).

Let me know if you want me to give an example of our generated log and patterns.

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Tue Oct 14, 2008 6:41 pm    Post subject:

Reply with quote


Elenna wrote:
I am trying to figure out which line(s) the Notes pull from. When parsing, it currently adds in the date and event title, and we are manually editing the note (on the Event tab, by double-clicking).


The event title, date and reward are the only things parsed from the log. The note is generated according to the default event note format option.

Quote:
Let me know if you want me to give an example of our generated log and patterns.


Please do. It would be helpful for others playing LOTRO.

Back to top

Elenna



Joined: 29 Aug 2007
Posts: 14

PostPosted: Fri Oct 17, 2008 2:01 am    Post subject:

Reply with quote


Thank you! I was afraid of that Smile Oh well, just a little extra work.

Here is a sample log that we are generating, with the patterns at the end:

Log
------------------------- The Rift - Barz (Attempt 1) -------------------------
(1224201172)[Thu Oct 16 23:52:52 2008] Event: The Rift - Barz for 1 EP
(1224201172)[Thu Oct 16 23:52:52 2008] Attendees for: The Rift - Barz (Attempt 1)
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Loremaster] Ardoril
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Minstrel] Aruen
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Champion] Daegyl
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Guardian] Darormur
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Hunter] Errana
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Captain] Iseulte
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Hunter] Jarrah
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Captain] Jitred
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Minstrel] Khevan
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Minstrel] Leyton
(1224201172)[Thu Oct 16 23:52:52 2008] [50 Champion] Maighdeann

--------------------------- The Rift - Barz (Defeat) ---------------------------
(1224201232)[Thu Oct 16 23:53:52 2008] Event: The Rift - Barz for 3 EP
(1224201232)[Thu Oct 16 23:53:52 2008] Attendees for: The Rift - Barz (Defeat)
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Loremaster] Ardoril
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Minstrel] Aruen
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Champion] Daegyl
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Guardian] Darormur
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Hunter] Errana
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Captain] Iseulte
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Hunter] Jarrah
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Captain] Jitred
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Minstrel] Khevan
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Minstrel] Leyton
(1224201232)[Thu Oct 16 23:53:52 2008] [50 Champion] Maighdeann

---------------------------- The Rift - Barz (Loot) ----------------------------
(1224201232)[Thu Oct 16 23:53:52 2008] Loot: Errana received Near Perfect Sapphire for 19.43 GP

------------------------- The Rift - Zurm (Attempt 1) -------------------------
(1224201292)[Thu Oct 16 23:54:52 2008] Event: The Rift - Zurm for 1 EP
(1224201292)[Thu Oct 16 23:54:52 2008] Attendees for: The Rift - Zurm (Attempt 1)
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Minstrel] Aruen
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Champion] Maighdeann
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Minstrel] Khevan
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Minstrel] Leyton
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Guardian] Darormur
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Loremaster] Ardoril
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Captain] Iseulte
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Champion] Daegyl
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Hunter] Jarrah
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Hunter] Errana
(1224201292)[Thu Oct 16 23:54:52 2008] [50 Captain] Jitred

--------------------------- The Rift - Zurm (Defeat) ---------------------------
(1224201352)[Thu Oct 16 23:55:52 2008] Event: The Rift - Zurm for 3 EP
(1224201352)[Thu Oct 16 23:55:52 2008] Attendees for: The Rift - Zurm (Defeat)
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Minstrel] Aruen
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Champion] Maighdeann
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Minstrel] Khevan
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Minstrel] Leyton
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Guardian] Darormur
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Loremaster] Ardoril
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Captain] Iseulte
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Champion] Daegyl
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Hunter] Jarrah
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Hunter] Errana
(1224201352)[Thu Oct 16 23:55:52 2008] [50 Captain] Jitred

---------------------------- The Rift - Zurm (Loot) ----------------------------
(1224201352)[Thu Oct 16 23:55:52 2008] Loot: Jitred received Near Perfect Sapphire for 19.43 GP


Patterns - Classic
Log Member Pattern: \((\d+)\)\[.*?\] \[.*?\] (\w+)
Log Member Format: 0|0|0|0|0|$1|$2

Zone Pattern: \((\d+)\)\[.*?\] Attendees for (.*?):
Zone Format: 0|0|0|0|0|$1|$2

Loot Pattern: \((\d+)\)\[.*?\] Loot: (.*?) received (.*?) for (-?\d+(?:\.\d+)?) GP
Loot Format: 0|0|0|0|0|$1|$2|$3|$4

Event Pattern: \((\d+)\)\[.*?\] Event: (.*?) for (-?\d+(?:\.\d+)?) EP
Event Format: 0|0|0|0|0|$1|$2|$3

Other patterns are unused by us, due to coding.

Back to top

Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Patterns All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
SoftGreen 1.1 phpBB theme © DaTutorials.com 2005