Call Of Duty 4 Stats Reader
Cod4StatsReader is a handy tool for Call of Duty 4 server hosters which can be used to read statistics like kills and deaths from the Call of Duty log file and then display them on a webpage.
To use the stats reader, you first need to set up two databases, and template databases are included in this package for you to download.
Once you have stored the databases in a suitable location you then need to go to control panel and open administrative tools.
Next, open the data sources window and click the button ‘Add’.
In the following window select ‘Microsoft Access Driver’ from the list and click ‘Finish’, then give your data source a name like ‘Stats’.
Once you have named your data source, you can link it to the the template stats database by pressing select and going to the location where you stored it.
When you have finished simply press OK, and repeat the same procedure for the WeaponWeightings database (included in this package) by pressing the ‘Add’ button again.
Now you have completed the tricky part, because most of the rest is handled by the programs.
The file Cod4StatsReader.jar is the application responsible for loading information in the log file into the database, and you should consider placing it in your startup folder so that it is always running.
When you load it for the first time you will have to customise the options to suit your needs.
Most of this should be self explanatory except for the database name, which will depend on what you entered as the data source name for the stats database when you were in control panel, and it should be in the form ‘jdbc:odbc:’.
For example, if you called your datasource ‘Stats’, then the value you should enter in the message box is ‘jdbc:odbc:Stats’.
You will also need to point the log file reader to the log file, and this is located in the Call of Duty 4 folder which should be in the folder called main in the Call of Duty 4 folder in Program Files.
Once your log file reader is running you will now have a database complete with game statistics.
To transfer the statistics from the database to a website you will need to use the files contained in the StatsServlet folder.
You will need to place all of the .class files in the appropriate directory of your web server for running java servlets (consult your webserver’s documentation for details), and once this is done you should be able to access the servlet through the web.
When you load the servlet for the first time you will be asked to customise details again, and you will have to enter the name of the WeaponWeightings database in the same way you entered the name of the Stats database for the log file reader.
Once this is done your in game Call of duty 4 statistics should appear on your website at regular intervals (specified when you first launch the servlet).
Please note, the database templates included should be used because they have the correct field titles for interaction with the software, custom built databases will not function correctly if at all.
Please note, Although the databases are in Microsoft Access format, as they are read and written to by the included software Microsoft Access is not required for this program to work.
However, if you are running these databases on a computer without Microsoft Access then you will not be able to modify the contents of the database, for example, you will not be able to change the Weapon skill ratings.
Please Click Here To download the .ZIP Folder With All the Neccacary Files in it







