Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Quasar

thingcount utility

Recommended Posts

I wrote a tool that can run on WADs and zips (pke/pk3) which can tally up counts of all the thing types present on all maps or on just a provided list of them, with options regarding game type (single/coop/DM) and player class (for Hexen-format maps). Tallies are counted up by skill level and printed out as a table.

It is possible to edit the scripts to create custom configurations, such as for your favorite source port or some custom project you've been working on such as a DECORATE or EDF mod.

Source code only for now, I'll throw a binary distribution for Windows up at some point.

https://github.com/haleyjd/thingcount

Share this post


Link to post

I'm sure it's neither the first nor the only tool that can do some of the things it does. Nobody could refer me to one earlier however other than scripting it out in omgifol, so I just wrote my own (NIH syndrome symptoms fully satisfied).
The options it supports:

thingcount
Copyright 2015 James Haley et al.
This program is free software distributed under the terms of the GNU General
Public License. See the file "COPYING" for full details.

thingcount options:

-file <archive>
  Required. List a WAD or PKE/PK3 archive to open.
-script <scriptfile>
  Change the thingtype definition script.
  Default is 'scripts/doom.cfg'
-maps <map> [<map> ...]
  Specify one or more maps to tabulate by map header name.
  By default, all maps will be autodetected and tabulated.
-gametype <single|coop|dm>
  Restrict output to a single game type.
-class <fighter|cleric|mage>
  Restrict output to a single player class for Hexen maps.
And some sample output for E1M1 in coop mode:
======================E1M1======================

Game mode: Cooperative
Monsters:
  DEN Type                      Easy Norm.  Hard
================================================
    9 Shotgun guy                  0     0    16
 3001 Imp                          2     2     4
 3004 Zombieman                    2     4     9

Health:
  DEN Type                      Easy Norm.  Hard
================================================
 2011 Stimpack                     1     1     1
 2012 Medikit                      3     3     3
 2014 Health bonus                12    12    13

Armor:
  DEN Type                      Easy Norm.  Hard
================================================
 2015 Armor bonus                 25    25    25
 2018 Green armor                  1     1     1
 2019 Blue armor                   1     1     1

Ammo:
  DEN Type                      Easy Norm.  Hard
================================================
 2046 Box of rockets               3     3     3
 2048 Box of bullets               6     6     6
 2049 Box of shells                6     6     6
 2007 Clip                         2     2     2
 2008 Shells                       3     3     3

Weapons:
  DEN Type                      Easy Norm.  Hard
================================================
 2001 Shotgun                      2     2     2
 2002 Chaingun                     1     1     1
 2003 Rocket launcher              1     1     1

Powerups:
  DEN Type                      Easy Norm.  Hard
================================================
 2023 Berserk                      1     1     0

Decor:
  DEN Type                      Easy Norm.  Hard
================================================
   10 Gibbed marine                2     2     2
   12 Gibbed marine 2              2     2     2
   15 Dead marine                  4     4     4
   24 Gibs                         7     7     7
   35 Candelabra                   2     2     2
   48 Tech pillar                  2     2     2
 2028 Column                       8     8     8

Hazards:
  DEN Type                      Easy Norm.  Hard
================================================
 2035 Explosive barrel             9     9     9

Technical:
  DEN Type                      Easy Norm.  Hard
================================================
    1 Player 1 start               1     1     1
    2 Player 2 start               1     1     1
    3 Player 3 start               1     1     1
    4 Player 4 start               1     1     1
   11 Deathmatch start             5     5     5

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×