I did some modifications to the plugin and some of the PHP-scripts.
Writes stats for custom maps (campaigns). The stats for custom maps are readable from the web stats.
Overwrite the web stats PHP-scripts and run the updatetable.php
before installing the customized plugin.
This will not reset any current stats. New field "custom
" (bit) was added in table Maps
. This will not cause problems when msleeper finally updates the plugin. Everytime the server loads a map in COOP mode, it checks if that map is in the DB. If it is not, it inserts it and sets the "custom
" to true
(1). The original maps are inserted with "custom
" set to false
(0). The PHP scripts lists all the custom maps at the bottom of the Campaign Stats
-page. I don't know how to detect in which campaign they belong to.
I also included crazydogs "Line 1790" edit.
I hope everything works...
EDIT(1): Uploaded a version with an improved map detection.
EDIT(2): Uploaded modified player.php. Requested by Whosat
EDIT(3): Uploaded modified maps.php. Added some checks that hopefully prevents occurance of some PHP-errors and if not then give a more detailed error message.