Hammer will compile but doesn't run TF2

  • New users! Unable to confirm your account via email? Contact nesman on discord, there's an issue with the email server. *unrelated to the recent issue that we DM'd everyone about.

CRS

L1: Registered
Feb 25, 2025
2
2
My map will compile. Using basic settings. F9 does not launch TF2. Can anybody help?

Log:

Code:
** Executing...
** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe"
** Parameters: -game "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf" "C:\Users\USER\My Folder\Gaming\Team Fortress 2\Hammer\First Map\first_map.vmf"

Valve Software - vbsp.exe (Feb 17 2025)
12 threads
MSG_FILEWRITE - Filesystem was asked to write to 'C:\Users\USER\My Folder\Gaming\Team Fortress 2\Hammer\First Map\first_map.log', but we don't own that location. Allowing.
Using shader api: shaderapiempty.dll
materialPath: C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\materials
Loading C:\Users\USER\My Folder\Gaming\Team Fortress 2\Hammer\First Map\first_map.vmf
fixing up env_cubemap materials on brush sides...
ProcessBlock_Thread: 0...1...2...3...4...5...6...7...8...9...10 (0)
ProcessBlock_Thread: 0...1...2...3...4...5...6...7...8...9...10 (0)
Processing areas...done (0)
Building Faces...done (0)
FixTjuncs...
PruneNodes...
WriteBSP...
done (0)
writing C:\Users\USER\My Folder\Gaming\Team Fortress 2\Hammer\First Map\first_map.prt...Building visibility clusters...
done (0)
Creating default LDR cubemaps for env_cubemap using skybox materials:
   skybox/sky_day01_01*.vmt
 ! Run buildcubemaps in the engine to get the correct cube maps.
Creating default HDR cubemaps for env_cubemap using skybox materials:
   skybox/sky_day01_01*.vmt
 ! Run buildcubemaps in the engine to get the correct cube maps.
Finding displacement neighbors...
Finding lightmap sample positions...
Displacement Alpha : 0...1...2...3...4...5...6...7...8...9...10
Building Physics collision data...
done (0) (2506 bytes)
Placing detail props : 0...1...2...3...4...5...6...7...8...9...10
Compacting texture/material tables...
Reduced 14 texinfos to 6
Reduced 1 texdatas to 1 (22 bytes to 22)
Writing C:\Users\USER\My Folder\Gaming\Team Fortress 2\Hammer\First Map\first_map.bsp
MSG_FILEWRITE - Filesystem was asked to write to 'C:\Users\USER\My Folder\Gaming\Team Fortress 2\Hammer\First Map\first_map.bsp', but we don't own that location. Allowing.
Wrote ZIP buffer, estimated size 105881, actual size 105667
0 seconds elapsed

** Executing...
** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe"
** Parameters: -game "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf" -fast "C:\Users\USER\My Folder\Gaming\Team Fortress 2\Hammer\First Map\first_map"

Valve Software - vvis.exe (Feb 17 2025)
fastvis = true
MSG_FILEWRITE - Filesystem was asked to write to 'c:\users\USER\my folder\gaming\team fortress 2\hammer\first map\first_map.log', but we don't own that location. Allowing.
12 threads
reading c:\users\USER\my folder\gaming\team fortress 2\hammer\first map\first_map.bsp
reading c:\users\USER\my folder\gaming\team fortress 2\hammer\first map\first_map.prt
   4 portalclusters
   4 numportals
BasePortalVis:       0...1...2...3...4...5...6...7...8...9...10 (0)
Optimized: 0 visible clusters (0.00%)
Total clusters visible: 16
Average clusters visible: 4
Building PAS...
Average clusters audible: 4
visdatasize:44  compressed from 64
writing c:\users\USER\my folder\gaming\team fortress 2\hammer\first map\first_map.bsp
MSG_FILEWRITE - Filesystem was asked to write to 'c:\users\USER\my folder\gaming\team fortress 2\hammer\first map\first_map.bsp', but we don't own that location. Allowing.
0 seconds elapsed

** Executing...
** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe"
** Parameters:  -game "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf" -noextra "C:\Users\USER\My Folder\Gaming\Team Fortress 2\Hammer\First Map\first_map"

Valve Software - vrad.exe SSE (Feb 17 2025)

      Valve Radiosity Simulator    
12 threads
MSG_FILEWRITE - Filesystem was asked to write to 'c:\users\USER\my folder\gaming\team fortress 2\hammer\first map\first_map.log', but we don't own that location. Allowing.
[Reading texlights from 'lights.rad']
unknown light specifier type - lights

[56 texlights parsed from 'lights.rad']

Loading c:\users\USER\my folder\gaming\team fortress 2\hammer\first map\first_map.bsp
Setting up ray-trace acceleration structure... Done (0.00 seconds)
16 faces
7419 square feet [1068428.00 square inches]
0 Displacements
0 Square Feet [0.00 Square Inches]
16 patches before subdivision
1520 patches after subdivision
0 direct lights
BuildFacelights:     0...1...2...3...4...5...6...7...8...9...10 (0)
BuildVisLeafs:       0...1...2...3...4...5...6...7...8...9...10 (0)
transfers 146542, max 234
transfer lists:   1.1 megs
GatherLight:         0...1...2...3...4...5...6...7...8...9...10 (0)
    Bounce #1 added RGB(0, 0, 0)
Build Patch/Sample Hash Table(s).....Done<0.0001 sec>
FinalLightFace:      0...1...2...3...4...5...6...7...8...9...10 (0)
FinalLightFace Done
0 of 0 (0% of) surface lights went in leaf ambient cubes.
ThreadComputeLeafAmbient: 0...1...2...3...4...5...6...7...8...9...10 (0)
Writing leaf ambient...done
Ready to Finish

Object names       Objects/Maxobjs  Memory / Maxmem  Fullness
------------       ---------------  ---------------  --------
models                   1/1024           48/49152    ( 0.1%)
brushes                  6/8192           72/98304    ( 0.1%)
brushsides              36/65536         288/524288   ( 0.1%)
planes                  64/65536        1280/1310720  ( 0.1%)
vertexes                41/65536         492/786432   ( 0.1%)
nodes                   27/65536         864/2097152  ( 0.0%)
texinfos                 6/12288         432/884736   ( 0.0%)
texdata                  1/2048           32/65536    ( 0.0%)
dispinfos                0/0               0/0        ( 0.0%)
disp_verts               0/0               0/0        ( 0.0%)
disp_tris                0/0               0/0        ( 0.0%)
disp_lmsamples           0/0               0/0        ( 0.0%)
faces                   16/65536         896/3670016  ( 0.0%)
hdr faces                0/65536           0/3670016  ( 0.0%)
origfaces                6/65536         336/3670016  ( 0.0%)
leaves                  29/65536         928/2097152  ( 0.0%)
leaffaces               16/65536          32/131072   ( 0.0%)
leafbrushes             17/65536          34/131072   ( 0.0%)
areas                    2/256            16/2048     ( 0.8%)
surfedges               88/512000        352/2048000  ( 0.0%)
edges                   57/256000        228/1024000  ( 0.0%)
LDR worldlights          0/8192            0/720896   ( 0.0%)
HDR worldlights          0/8192            0/720896   ( 0.0%)
leafwaterdata            0/32768           0/393216   ( 0.0%)
waterstrips              0/32768           0/327680   ( 0.0%)
waterverts               0/65536           0/786432   ( 0.0%)
waterindices             0/65536           0/131072   ( 0.0%)
cubemapsamples           0/1024            0/16384    ( 0.0%)
overlays                 0/512             0/180224   ( 0.0%)
LDR lightdata         [variable]       20268/0        ( 0.0%)
HDR lightdata         [variable]           0/0        ( 0.0%)
visdata               [variable]          44/16777216 ( 0.0%)
entdata               [variable]         354/393216   ( 0.1%)
LDR ambient table       29/65536         116/262144   ( 0.0%)
HDR ambient table       29/65536         116/262144   ( 0.0%)
LDR leaf ambient         4/65536         112/1835008  ( 0.0%)
HDR leaf ambient        29/65536         812/1835008  ( 0.0%)
occluders                0/0               0/0        ( 0.0%)
occluder polygons        0/0               0/0        ( 0.0%)
occluder vert ind        0/0               0/0        ( 0.0%)
detail props          [variable]           1/12       ( 8.3%)
static props          [variable]           1/12       ( 8.3%)
pakfile               [variable]      105667/0        ( 0.0%)
physics               [variable]        2506/4194304  ( 0.1%)
physics terrain       [variable]           2/1048576  ( 0.0%)

Level flags = 0

Total triangle count: 32
Writing c:\users\USER\my folder\gaming\team fortress 2\hammer\first map\first_map.bsp
0 seconds elapsed

** Executing...
** Command: Copy File
** Parameters: "C:\Users\USER\My Folder\Gaming\Team Fortress 2\Hammer\First Map\first_map.bsp" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\maps\first_map.bsp"


** Executing...
** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2.exe"
** Parameters: -game "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf"  +map "first_map" -steam

Screenshot_23.png
Screenshot_59.png
 

Attachments

  • first_map.vmf
    10.7 KB · Views: 8
Solution
Can you run the map manually by opening the game and typing
Code:
map MAP_NAME
?
I managed to fix my problem. I could run the map in TF2 manually, the problem was with one of hammer's config settings.

In Tools > Options > Build Programs, "Game Executable" was set to "hlf2.exe", but that program didn't exist in the directory. I had to manually change it to "tf.exe".

After that hammer could run my map in tf2.

CRS

L1: Registered
Feb 25, 2025
2
2
Can you run the map manually by opening the game and typing
Code:
map MAP_NAME
?
I managed to fix my problem. I could run the map in TF2 manually, the problem was with one of hammer's config settings.

In Tools > Options > Build Programs, "Game Executable" was set to "hlf2.exe", but that program didn't exist in the directory. I had to manually change it to "tf.exe".

After that hammer could run my map in tf2.
 
Solution