PigStats v1.3

Half-Life log file analyzer and statistics generator

PigStats V1.3 Copyright (C) 2000  Eric Dennison

*** LICENSE ***

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*** FEATURES ***

Revision 1.2:

*Generates output in text or html 
*Statistics for total kills, deaths, suicides, kill rate, and kill  ratio 
(kills/deaths) 
*Statistics for weapon usage 
*Individual player statics including kill ratios against other players and 
most favored/feared weapons 
*Player kills and deaths for each match played  
*Match totals 
*Displays team information for each match and match totals, when using 
teamplay 

Revision 1.3:

*No limit on number of log files, or players analyzed 
*HTML output to a single file, or split into separate files for general, 
weapon, game and individual player statistics 
*Filter out players with zero kills 
*Simplified installation: PigStats comes as a single executable with no 
additional dll's to install 


*** SUPPORTED PLATFORMS ***

PigStats was built and tested under both Win98 and WinNT4.0.  It 
should work under Win95, but I'm not promising anything. ;)


*** INSTALLATION ***

Put pigstats.exe wherever you want.  It's not a GUI app and you will probably 
want to run it from a DOS box command prompt or a batch file.  So you should 
either execute it from your current directory, or set your path system 
variable to point to its final resting place. 

*** USAGE ***

pigstats [-i<input path>] [-o<output path>] [-s] [-m] [-f] 
Where <input path> is the path and file name (including wild cards) of the 
input log file(s) and <output path> is the path and file name of the output 
file. Don't add any spaces between the '-i' or '-o' and the respective paths.

If the extension of the output file is .htm or .html then output is in HTML, 
otherwise it's straight text. 

If no input path is provided PigStats looks for log files in the current 
directory.  If no output path is provided, PigStats generates a text file 
called "stats.txt" in the current directory. 

'-s' causes PigStats to execute silently. If this parameter is omitted, 
PigStats prints a startup banner and parsed file names to the console. 

'-m' causes PigStats to generate individual output files for game, weapons 
and player statistics (if an html output file is specified).  This is helpful 
when a single html file would be too large to quickly load in a browser.

'-f' causes PigStats to filter out zero scores.  Players with zero kills are 
not displayed in the general statistics section.

Oh yeah... almost forgot:  To generate Half-Life log files you have to turn 
on logging.  Bring down the Half-Life console (`) and type "log on".  Log 
files will appear in a valve\logs folder as if by magic!.


*** SOURCE CODE ***

Full source code is available for pigstats and regex under the terms
of the GPL.  Please e-mail your request to better_dead@yahoo.com.



Eric Dennison
March 1, 2000
better_dead@yahoo.com
http://pigstats.50megs.com