Slice Log and Trim Log

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