hi
the bf2 stats script is no longer updated so I had to fix the parsing of stat string since the new patches added the additional tag before the name. Python scripts haven't been modified so can be patched on ranked and unranked servers.
to apply my fix open the stats.pl and search for:
open(LOGIN, "<$File::Find::name") || die "Can not read file $File::Find::name !\n";
my code does a different parsing by identifying the string patterns used by the stats engine
paste these lines:
# mod by karl: parse $line
chomp $line;
@elem = split(" ",$line);
$command = $elem[0];
# Put all values into hash $v for easy access
%v = ();
for($i=1;$i<=$#elem;$i++)
{
# join
if ( $elem[$i] =~ m@(PlayerName)|(VictimName)|(AttackerName)@ && $elem[$i+2]=~
m@(PID)|(Score)|
(PlayerTeam)
|(AttackerTeam)|(Weapon)|
(VictimTeam)|(PlayerName)|(Time)@x) {
$elem[$i].=' '.$elem[$i+1];
splice(@elem,$i+1,1);
}
($key, $value) = ($elem[$i] =~ /(\w*)=(.*)/);
# print "$key, $value\n";
$v{$key} = $value;
};
please note that the new patches can add new features and this code should be modified
a copy of this info will be posted on your forum,
hope this helps, cheers
mysql SELECT * from users where IQ "0"; Empty set (0.01 sec)