 |
|
 |
|
|
Author |
Message |
Cleveland
Joined: 02 Dec 2007 Posts: 4
|
Posted: Sun Dec 02, 2007 9:15 pm Post subject: Custom Patterns? |
|
|
Admittedly a noob here, so sorry if I missed some wiki or post regarding this. I have been messing with this tool for months, and I am amazed at the power and convenience it provides. Now that our guild is going to start raiding in Vanguard:SOH, I come back here a little surprised that no one has said much about this game using this tool.
Question: I see the "preset games", but do not see anywhere to add a new game type... say, Vanguard. I do not want to change a preset, in the event I want to use the tool in one of those other games. Is there a simple way to add a new game type? I've tried making changes, putting in a new name and saving, but "Vanguard" never appears after restarting/reloading a config. ~confused~ I'm sure it's staring me right in the face, but missing it...
Thanks in advance for any info.
PS: This was the closest thing I could find, heh: http://dkplp.org/wiki/Category:Pattern_modifications
|
|
Back to top |
|
 |
Cleveland
Joined: 02 Dec 2007 Posts: 4
|
Posted: Mon Dec 03, 2007 6:36 pm Post subject: |
|
|
I'll stick all my whining in one thread for now. So, I spent literally hours trying to make a pattern work for "Log member pattern" and got varying results.
The log line for member /who info is:
| Quote: |
| [09:41:48] Cleveland: Level 46 Dread Knight (Guild) - The Lost Shores |
First, I tried this (based on EQ /who) for Log Member pattern
Pattern:
| Code: |
| \[(\d{2}):(\d{2}):(\d{2}) (\w+) |
Format:
What I got in DKPLP was a weird date format (31 Aug) and that's it. If I parsed a bigger log with this same pattern, I get 14 or so lines, all with different dates similar to "DD Mon".
Then, I tried simplifying it just to see it work:
| Code: |
| \[\d{2}:\d{2}:\d{2} (\w+) |
Format:
This showed me one date (31 Dec - likely because there is no Date pattern, only Time, which is not being forwarded) - but all the raid attendees in the log showed up. However, again, still no Time for intervals since I am not forwarding the time.
Any other mutation of this causes the parse to say no data is valid.
Is a "Date" (MM-DD-YY) required to make this work? If so, I will see about preprocessing the logs. Or maybe VG logs can timestamp the date in there, too. The log Name has the date in it, but I am not sure where I can parse that (or a place to set the date manually for the current log being parsed?)
So attached is the complete log I'm trying to parse for hourly attendance. If I can get the basics down on how the members can be parsed, I know I can figure out the Loot and Event stuff. But I am starting to think my missing "date" has something to do with my failures.
Any advice on this would be greatly appreciated.
-C
| Description: |
|
 Download |
| Filename: |
Cleveland.zip |
| Filesize: |
1.95 KB |
| Downloaded: |
121 Time(s) |
|
|
Back to top |
|
 |
Lokorin Site Admin
Joined: 03 Apr 2006 Posts: 697
|
Posted: Fri Dec 07, 2007 4:15 pm Post subject: Re: Custom Patterns? |
|
|
| Cleveland wrote: |
| Question: I see the "preset games", but do not see anywhere to add a new game type... say, Vanguard. I do not want to change a preset, in the event I want to use the tool in one of those other games. Is there a simple way to add a new game type? |
New predefined pattern sets are added when someone posts new (confirmed working) ones. You can not change the predefined sets, they are always restored whenever you select to use them (you are just given a copy).
| Quote: |
Pattern:
| Code: |
| \[(\d{2}):(\d{2}):(\d{2}) (\w+) |
Format:
What I got in DKPLP was a weird date format (31 Aug) and that's it. If I parsed a bigger log with this same pattern, I get 14 or so lines, all with different dates similar to "DD Mon". |
| Quote: |
| Is a "Date" (MM-DD-YY) required to make this work? If so, I will see about preprocessing the logs. |
It's only required if you actually want to use it (e.g. when storing the results somewhere). You can always use a constant date instead.
The following seems to work. It uses the constant date 7 Dec 2007, but you can replace that with anything you like.
Pattern:
| Code: |
| \[(\d{2}):(\d{2}):(\d{2})] (\w+): Level |
Format:
| Code: |
| 2007|12|7|$1|$2|$3|$4 |
(Note that the format is year|month|day|hour|minute|second|name)
|
|
Back to top |
|
 |
Cleveland
Joined: 02 Dec 2007 Posts: 4
|
Posted: Wed Dec 12, 2007 5:18 pm Post subject: |
|
|
Awesome, thank you for the reply. I am sure I'll have more questions, but hopefully this will get me on the right track to build a full Vanguard pattern.
Thanks again!
|
|
Back to top |
|
 |
|
|