"make-yourself" kit
Code:
#!/usr/local/bin/perl
# hr / 070707
die "usage: $0 c:\\path\\to\\l2server\\log\\err \n" unless $ARGV[0];
mkdir ("bugs") unless (-e "bugs");
@list_tmp=glob($ARGV[0]."\\*.log");
foreach $file (@list_tmp){
print "reading: $file\n";
open IN,"$file";
while(<IN>){
if (/GetTestPoint/){
if (/([\d-]+,[\d-]+,[\d-]+)/){
$GetTestPoints{$1}=1;
}
}
}
close IN;
}
foreach $GetTestPoint(keys %GetTestPoints){
($x,$y)=(split /,/,$GetTestPoint)[0,1];
$geo_x=20+($x-$x%32768)/32768;
$geo_y=18+($y-$y%32768)/32768;
open OUT,">>bugs\\".$geo_x."_".$geo_y."_bug.txt";
print OUT $GetTestPoint,"\n";
close OUT;
}
print "done\n";
--or--
_http://rapidshare.com/files/41615435/gen_test_points.exe.html
(the same script converted to standalone exe)
usage:
gen_test_points.exe c:\MyK3wlServer\L2server\log\err
script will make new dir "bugs" with X_X_bug.txt files