mcount.pl

A Perl script that dumps monster count / HP statistics for DOOM WAD files. Current version: 1.12. Copyright © 2004-2010 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. screenshots)

Basic usage

Regular DOOM level:

$ ./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
				

Compact mode display of an entire megawad:

$ ./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
				

DeHackEd monsters:

$ ./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
				

Custom DECORATE monsters (ZDoom):

$ ./mcount.pl 1000screams.wad --map e2m6
Map / Monster                            S2       S3       S4
-------------------------------------------------------------------------------
Map: E2M6
  Trooper                         :      13       15       18
  Sergeant                        :      64       76       82
  Imp                             :     436      531      629
  Demon                           :     219      279      378
  Spectre                         :      12       20       36
  Lost Soul                       :     673      857     1179
  Cacodemon                       :     197      290      412
  Baron of Hell                   :     276      296      433
  Baron of Hell (stealth)         :       8       14       17
  Spider Mastermind               :       3        3        3
  Cyberdemon                      :       3        4        6
  [C] HellElemental               :      92      131      192
  [C] Cardinal                    :      28       40       77
  [C] OverLord                    :       2        3        4
  [C] Hellion                     :      11       21       33
  [C] MetaCyberdemon              :       5        7       10
  Total                           :    2042     2587     3509
  Total HP                        :  663660   831860  1202970
				

Fancier stuff

How many arch-viles are there in "Speed of Doom", all in all?

$ ./mcount.pl sodfinal.wad --map all --summary --no-levels --monsters=archie
Map / Monster                            S2       S3       S4
-------------------------------------------------------------------------------
Summary
  Arch-vile                       :     199      240      307
  Total HP                        :  139300   168000   214900
				

Which maps are present in Ultimate Doom?

$ ./mcount.pl --dump-levels doom.wad
E1M1-9, E2M1-9, E3M1-9, E4M1-9
				

Help text

mcount.pl 1.12
Copyright (C) 2004-2010 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

DOOM-specific options:

         --no-lostsouls    Ignore Lost Souls
         --powerups        Output stats for powerups rather than monsters
         --sort=...        Specify sort order (valid choices: default, wiki)
         --monsters=...    Only process specified monsters
         --no-monsters=... Process all but the specified monsters

Output control 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 output
         --debug           Debug output (implies --verbose)
         --dump-monsters   Dump monsters (after loading WADs, if any)
         --dump-levels     Dump level numbers 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.12

1.11

1.10

1.09

1.08

1.07

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

Generic

DOOM

Heretic

Hexen

Strife

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