mcount.pl

A Perl script that dumps monster count / HP statistics for DOOM WAD files. Current version: 1.06. Copyright © 2004-2008 Schneelocke; licensed under the terms of the GNU GPL.

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.

Download Screenshot Help Changes TODO

Download

Sample output (a.k.a. screenshot)

$ ./mcount.pl --map=map24 hr.wad
Map / Monster                        S2       S3       S4
-------------------------------------------------------------------------------
Map: MAP24
  Heavy Weapon Dude               :      12       20       37
  Imp                             :     143      143      143
  Demon                           :      28       28       28
  Cacodemon                       :       8       16       60
  Hell Knight                     :       6       10       12
  Baron of Hell                   :       7       11       41
  Arachnotron                     :       3        6       16
  Pain Elemental                  :      10       20       35
  Revenant                        :      10       27       88
  Mancubus                        :      12       22       52
  Arch-vile                       :      17       27       49
  Spider Mastermind               :       2        2        4
  Cyberdemon                      :       3        8       14
  Total                           :     261      340      579
  Total HP                        :   72420   125780   268270

$ ./mcount.pl --compact ksutra.wad
Map                  S2       S3       S4
-------------------------------------------------------------------------------
Map: MAP01           29       42       44
Map: MAP02           57       95      110
Map: MAP03           34       58       68
Map: MAP04           75      111      132
Map: MAP05           59       78      105
Map: MAP06           57      108      146
Map: MAP07           48      100      128
Map: MAP08          105      170      200
Map: MAP09          104      118      133
Map: MAP10          122      158      196
Map: MAP11          121      181      223
Map: MAP12           47       60       73
Map: MAP13          168      292      327
Map: MAP14          151      199      282
Map: MAP15          134      195      247
Map: MAP16          211      280      327
Map: MAP17          112      152      178
Map: MAP18          235      314      401
Map: MAP19          125      203      293
Map: MAP20          336      493      544
Map: MAP21           79      136      210
Map: MAP22          112      156      198
Map: MAP23          160      278      385
Map: MAP24          144      196      247
Map: MAP25           91      184      316
Map: MAP26          261      491      623
Map: MAP27          216      376      436
Map: MAP28          613     1106     1716
Map: MAP29          544      747      882
Map: MAP30            3        5        9
Map: MAP31          408      605      886
Map: MAP32           98      149      176
-------------------------------------------------------------------------------
Total              5059     7836    10241

$ ./mcount.pl scythe2.wad --map 27
Map / Monster                            S2       S3       S4
-------------------------------------------------------------------------------
Map: MAP27
  Heavy Weapon Dude               :       8       11       15
  Imp                             :      42       72       81
  Demon                           :       7        7       20
  Spectre                         :      11       16       21
  Cacodemon                       :      20       40       50
  Hell Knight                     :      14       17       23
  Baron of Hell                   :      15       13       13
  Arachnotron                     :       2        2        2
  Pain Elemental                  :       2        4        6
  Revenant                        :      48       74      102
  Mancubus                        :      24       32       38
  Arch-vile                       :       4        5       12
  Cyberdemon                      :       3        4        6
  [D] Commander Keen              :                4        5
  Total                           :     200      301      394
  Total HP                        :   81180   119540   158260

$
			

Help text

mcount.pl 1.06
Copyright (C) 2004-2008 Schneelocke, licensed under the terms of the GNU GPL v2
(or, at your option, any later version)

Usage: mcount.pl [OPTION]... FILE

Options:

         --game=...     Select game (valid choices: doom, heretic,
                        hexen; default: doom)
         --skill=...    Select skill(s) (1-5, all for all; default: UV)
         --map=...      Select map(s) (all for all; default: MAP01)
         --resource=... Use resource WAD(s) (for custom monsters)
         --format=...   Force doom/hexen WAD format (valid choices:
                        doom, hexen; default: autodetect)
         --deh=...      Load DEH file(s) (for monster HP adjustment)
         --no-custom    Disable recognition of custom ZDoom monsters
         --no-dehlump   Disable loading of DEHACKED lumps
	 --allthings    Always report all THINGS entries
         --no-lostsouls Ignore Lost Souls
         --powerups	Output stats for powerups rather than monsters
                        (DOOM only)

Output options:

         --total        Enable combined (all skills) monster count
         --summary      Enable monster summary (all levels)
         --compact      Enable compact view (total monster counts only)
         --multi        Enable multi-player stats
         --no-hp        Disable hitpoint stats
         --no-single    Disable singer-player stats

Miscellaneous options:

         --verbose      Verbose mode
	 --dump         Dump monsters after loading WAD
         --help         Print this help screen

Example: mcount.pl --skill=hmp --map=map01,5-7 --summary WADFILE.WAD

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.
				

Changes

1.06

1.05

1.04

1.03

1.02

1.01

1.00

0.99

0.98

0.97

0.96

0.95

0.90

Earlier versions

Earlier versions did not have version numbers; change history is not recorded.

TODO

Well-formed XML 1.0! Valid XHTML 1.1! Valid CSS!