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

Discussion in 'Tutorials & Resources' started by A Boojum Snark, Jul 12, 2009.

  1. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,521
    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!
     
    • Thanks Thanks x 8
    Last edited: Oct 15, 2011
  2. Shmitz

    aa Shmitz Old Hat

    Messages:
    1,129
    Positive Ratings:
    740
    Awesomesauce! Exactly what I need to budget my extremely limited waterindices.
     
  3. SiniStarR

    SiniStarR L8: Fancy Shmancy Member

    Messages:
    585
    Positive Ratings:
    116
    thanks for the find. Not exactly sure why one would use this but its good to know its there
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,521
    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.
     
  5. NovaSilisko

    aa NovaSilisko L42: Life, the Universe and Everything

    Messages:
    502
    Positive Ratings:
    128
    Neat.

    Bumped for the people who haven't found this.
     
    • Thanks Thanks x 1
    Last edited: Sep 3, 2009
  6. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,682