Category: UtilitiesSlice Log and Trim Log -- Slice and dice your log files |
Example of Slice, As rendered with Mapper 2 and Inkscape 0.42
|
|
These are two Perl utilities to break a log file along an axis based on in-game coordinates.
slice_log
Slice_log does a hard cut through a log file, generating "stub" lines up to the axis/offset where the cut occurs. This will allow you to cut any log file along an axis much as if you had deleted one section of the graphic.
Command Line:
perl slice_log.pl <eq2log file> [-]<x|y> <offset> > <output.txt>
Example:
perl slice_log.pl eq2log_Peter.txt -x 20 > my_map.txt
Will cut the contents of the log file, using the y axis at a knife, 20 in game units along the x axis. Everything to the left of that point will be cut off. If you removed the minus sign, it would cut everything to the RIGHT of that point.
trim_log
Trim_log does a soft cut through a log file, based on the AVERAGE offset of each line. If the aveage is less than/greater than the axis and offset, it will not be included in the output.
Command Line:
perl trim_log.pl <eq2log file> [-]<x|y> <offset> > <output.txt>
Example:
perl slice_log.pl eq2log_Peter.txt -x 20 > my_map.txt
Will output only the lines whos average X value is greater than 20.
Requirements:
Requires ActivePerl to run. Download "Standard Installation" from here:
http://www.activeperl.com/Perl.plex?hdr=1
Suggested:
Slice_log and Trim_Log were designed to be used with Mapper2, also avalible on eq2interface.com
|
File Statistics |
User Rating: |
|
Downloads: |
10688 |
Views: |
25802 |
Favorites: |
0 |
Uploaded By: |
|
Last Modified: |
N/A |
|
| |
|
There have been no comments posted to this file.
Be the first to add one.
|
All times are GMT -5. The time now is 03:46 AM.