[TUTORIAL] Getting BSP statistics the easy way: vbspinfo.exe

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
You know that nice little report of all your BSP data that VRAD spits out at the end? Well it's not the only thing that can do it!
One of the many overlooked and neglected programs sitting in the SDK bin is vbspinfo.exe which can, among other things, generate this report.

It is a command line tool, which means you'll have to run it from the command prompt in Windows (Start>Run>cmd), if you are unfamiliar with doing this, see further down the post.
Without any parameters vbspinfo will generate the big statistics report on the specified BSP file. However, there are a few other things it can do, some useful and some not so useful.

-worldtexturestats will produce a list of every material used in the map, and how many surfaces it occurs on. (example)
-modelstats does the same for models. Lists them all, and how many times each is used. (example)
The less useful ones are -treeinfo, -liststaticprops, -x[lump ID number], and -size. Which, in respective order: return binary partitioning stats, the ID of every static prop individually listed, extract the specified bsp lump, and give the bounding size of the world.


For those of you who are not familiar with using the command prompt, and for those who are and just want it easy, I've made a batch file for you. Simply download it, put it somewhere handy, and then drag your BSP file onto it. Click me for batch file!
 
Last edited:

SiniStarR

L8: Fancy Shmancy Member
Mar 31, 2009
585
116
thanks for the find. Not exactly sure why one would use this but its good to know its there
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
For cases such as Shmitz's, where you need to check/monitor a specific limit, and because it takes forever to calculate lighting this is much easier and faster.
 

NovaSilisko

L42: Life, the Universe and Everything
aa
Feb 3, 2009
502
270
Neat.

Bumped for the people who haven't found this.
 
Last edited: