CountMines, Version 1.0 (August 1999) by Michael_Herrmann@m2.maus.de CountMines is a host tool for VGA Planets (c) by Tim Wisseman. CountMines counts all mines in a Planets match, writes a list of which Player has how many mines, and exits with an exit code corresponding to the total number of mines or the percentage of galactic area covered with mines. Usage: CntMines [[-|/]%] [match_directory] Use this tool for observing the number of mines in any planets match. I wrote it because I started a PHost game with switch MinesDestroyMines OFF, but we agreed to switch it ON when the match reached 700000 mines. CountMines can be operated from any directory. The file Mines.Hst is needed in the match directory or, if not indicated, in the present directory. If the parameter '%', '-%' or '/%' is given, the exit code is based on the percentage of area, otherwise on the number of mines. (You can write './%' for a match dir called '%' etc., but don't use more than one '%' in the command line!) Output goes to screen unless redirected. You can use a batch file, for example: @CntMines /%% >CntMines.Log @if errorlevel==60 pause @type CntMines.Log @copy CntMines.Sum+CntMines.Log CntMines.Sum This will write the mine summary table to a file 'CntMines.Log'. Note the double '%' because of the batch file. If the mines exceed 60 % of the area, the batch will pause. The table is then typed to screen, and the log file added to a summary log file which will contain information on all turns of the game. Use this program at your own risk!!! Exit codes: XCode No. of mines % of area covered 0 0 no mines at all 1 1 .. 10000 0 < p » 1 2 10001 .. 20000 1 < p » 2 : : : : : : 202 2010001 .. 2020000 201 < p » 202 203 2020001 .. 3000000 202 < p » 300 % 204 3000001 .. 4000000 300 < p » 400 % : : : : : : 250 49000001 ..50000000 4900 < p » 5000 % 251 > 50000000 mines >5000 % of area 252 Error while writing to log. 253 Command line parameters faulty. 254 Error opening or reading from file Mines.Hst. 255 This info message supplied.
Last Modified: 25-Feb-2000 <URL:http://phost.de/~vagabond/addons/countmines/countmines.html> |