Quick question about those map preview thumbnail things...

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
The ones for the "simple server browser" cannot be packed into your map, people must download and install them separately. And the people who would do that probably aren't using the simple-view anyway. So AFAIK that one is a bit of a lost-cause.

The second ones (the "map intro" screen) are described here.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
For TF2 maps you always take your custom content and "pack" it into the BSP, resulting in a somewhat larger file. (As opposed to .res files or .vpk packages.) You must do this for all custom content you make, VMTs, VTFs, Models, soundscapes, particles, etc.

When the game loads the map, it temporarily "pretends" that the packed content is in the equivalent spot on the hard-drive.

Note that cubemaps are a special case: The game itself rewrites the BSP to include them when they are generated. (Side note: Don't rename your BSP file after it has been compiled. It breaks stuff.)

To do the "packing" step, you have a few choices:

  • Use bspzip.exe which comes with the SDK and should already be on your hard-drive. Not very user-friendly, but does exactly what you ask of it.
  • Use PackBSP (this is mine, I'm biased)
  • Use Pakrat (old, abandoned, but still very popular)
  • Use Map Analyst (?)