
Brief info on how to get it running as quick as possible.

1. Compile it (read "stats.txt" for more info)

2. Capture Quake World server's log file (i.e. use "qwsv -master xxx.xxx.xxx.xxx:xxxxx >log" 
   to capture to file "log")

3. Edit sample "header.html" and "footer.html" to suit your needs. Note that
   "header.html" is the first thing Stats prints to each of four ".html"
   files it creates. Therefore it should be a legal HTML document to be
   shown properly in WWW browser. It's wise idea to put <BODY> somewhere
   in it. Stats will just read "header.html" and print it to all four ".html"
   files with some exceptions :
   - $LU is expanded to the time when Stats was run
             (i.e. <center>Last update : $LU</center>
   - $SF is expanded to current sorting function
             (i.e. <title>Stats - $SF</title>
   Same goes for "footer.html" - of course you can have "$xx" in "footer.html"
   instead of in "header.html" file.
   One more thing - as Stats won't end stats info with </BODY> it's very good
   idea to make "footer.html" include at least that.

4. Edit stats config file "stats.cfg" - Stats reads all options from this
   file. It recognizes following commands :
   a) Variables :
         - "Warnings 0/1" If 0 all warnings about missing files, errors while
            opening files etc. will not be printed; if 1 they will be printed.
   b) Formating headers : following are in mainly to allow user to change
      colors of column headers
         - "FormatRankCol text" defines how column headers for "rank.html"
            will look like
         - "FormatEffCol text" defines how column headers for "eff.html"
            will look like
         - "FormatFragsCol text" defines how column headers for "frags.html"
            will look like
         - "FormatDeathsCol text" defines how column headers for "deaths.html"
            will look like
   c) Formating lines : following allow for full customization of each line
      of stats
         - "FormatRankLine text" defines how each line in "rank.html" will
            look like
         - "FormatEffLine text" defines how each line in "eff.html" will
            look like
         - "FormatFragsLine text" defines how each line in "frags.html" will
            look like
         - "FormatDeathsLine text" defines how each line in "deaths.html"
            will look like
    d) Format strings:
         - "$LU" is replaced with time when Stats was run
         - "$SF" is replaced with current sorting function's name
         - "$NU" is replaced with current line's number
         - "$NI" is replaced with current person's nick
         - "$RA" is replaced with current person's rank
         - "$EF" is replaced with current person's efficiency
         - "$FR" is replaced with current person's number of frags
         - "$DE" is replaced with current person's number of deaths

    Of course you have to put them into "stats.cfg" file without quotes. For
    examples look into included "stats.cfg". Also note that you can build
    formats any way you want, you can even omit format strings "$xx" in format
    text. There are some limits though : i.e. if you add "$NI" or any other
    format string that relates to current person to "header.html" you may get
    weird results. 

5. Run Stats as "stats log" where log is the same name as you used in step 2.

6. You now have four ".html" files : "rank.html", "eff.html", "frags.html"
   and "deaths.html" sorted by rank, by efficiency, by number of frags and by
   number of deaths, respectively. Just upload/copy them to the place where
   you have your home page and that's it.
