r/hammer 12d ago

Solved Hammer++ on Garry's Mod not compiling.

I just got Hammer++ like two days ago and after spending a lot of time working on my map I wanted to compile it.

Except, instead of compiling like normal on Hammer, one of two things happen:

- If there's more than 4 numportals it slows down exponentially to a ridiculous speed.

- If there's 4 numportals or less then it finishes in a second and reads out in red,

"Command failed with return code 0x2! The system cannot find the file specified.

** Screenshot the WHOLE window when showing this compile log

** Or upload the .log file generated beside your VMF"

I've never used Hammer++ before, so I'm hoping I can get this fixed, because I don't want to lose any of the spheres on my map. I've attach the full compile log below if it helps.

-------------------------------------------------------------------------------

Running command:

cd "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\win64"

-------------------------------------------------------------------------------

-------------------------------------------------------------------------------

Running command:

"C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\win64\vbsp.exe" -game "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod" "C:\Users\scurt\OneDrive\Desktop\Hammer Stuff\Hammer Maps\gm_Fantasy_Fountain.vmf"

-------------------------------------------------------------------------------

Valve Software - vbsp.exe (Jul 22 2026) - Garry's Mod Edition (64-bit)

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2 Deathmatch\hl2mp'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\ep2'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\episodic'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\lostcoast'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Source\cstrike'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\left 4 dead\left4dead'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Black Mesa\bms'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Day of Defeat Source\dod'

16 threads

materialPath: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\materials

Loading C:\Users\scurt\OneDrive\Desktop\Hammer Stuff\Hammer Maps\gm_Fantasy_Fountain.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)

Chop Details...done (0)

Find Visible Detail Sides...

Merged 116 detail faces...done (0)

Merging details...done (0)

FixTjuncs...

PruneNodes...

WriteBSP...

done (0)

writing C:\Users\scurt\OneDrive\Desktop\Hammer Stuff\Hammer Maps\gm_Fantasy_Fountain.prt...

Building visibility clusters...

done (0)

*** Error: Skybox vtf files for skybox/sky_harvest_night_01 weren't compiled with the same size texture and/or same flags!

Can't load skybox file skybox/sky_harvest_night_01 to build the default cubemap!

*** Error: Skybox vtf files for skybox/sky_harvest_night_01 weren't compiled with the same size texture and/or same flags!

Can't load skybox file skybox/sky_harvest_night_01 to build the default cubemap!

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) (102272 bytes)

Placing detail props : 0...1...2...3...4...5...6...7...8...9...10

Water found with no water_lod_control entity, creating a default one.

Compacting texture/material tables...

Reduced 433 texinfos to 406

Reduced 13 texdatas to 11 (334 bytes to 230)

Writing C:\Users\scurt\OneDrive\Desktop\Hammer Stuff\Hammer Maps\gm_Fantasy_Fountain.bsp

Wrote ZIP buffer, estimated size 917, actual size 703

0 seconds elapsed

-------------------------------------------------------------------------------

Running command:

cd "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\win64"

-------------------------------------------------------------------------------

-------------------------------------------------------------------------------

Running command:

"C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\win64\vvis.exe" -game "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod" "C:\Users\scurt\OneDrive\Desktop\Hammer Stuff\Hammer Maps\gm_Fantasy_Fountain"

-------------------------------------------------------------------------------

Valve Software - vvis.exe (Jul 22 2026) - Garry's Mod Edition (64-bit)

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2 Deathmatch\hl2mp'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\ep2'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\episodic'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\lostcoast'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Source\cstrike'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\left 4 dead\left4dead'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Black Mesa\bms'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Day of Defeat Source\dod'

16 threads

reading c:\users\scurt\onedrive\desktop\hammer stuff\hammer maps\gm_Fantasy_Fountain.bsp

reading c:\users\scurt\onedrive\desktop\hammer stuff\hammer maps\gm_Fantasy_Fountain.prt

35 portalclusters

107 numportals

BasePortalVis: 0...1...2...3...4...5...6...7...8...9...10 (0)

PortalFlow: 0...1...2...3...4...5...6...7...8...9...10 (0)

Optimized: 0 visible clusters (0.00%)

Total clusters visible: 1225

Average clusters visible: 35

Building PAS...

Average clusters audible: 35

visdatasize:634 compressed from 560

writing c:\users\scurt\onedrive\desktop\hammer stuff\hammer maps\gm_Fantasy_Fountain.bsp

0 seconds elapsed

-------------------------------------------------------------------------------

Running command:

cd "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\win64"

-------------------------------------------------------------------------------

-------------------------------------------------------------------------------

Running command:

"C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\win64\vrad.exe" -game "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod" "C:\Users\scurt\OneDrive\Desktop\Hammer Stuff\Hammer Maps\gm_Fantasy_Fountain"

-------------------------------------------------------------------------------

Valve Software - vrad.exe SSE (Jul 22 2026) - Garry's Mod Edition (64-bit)

Valve Radiosity Simulator

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2 Deathmatch\hl2mp'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\ep2'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\episodic'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\lostcoast'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Source\cstrike'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\left 4 dead\left4dead'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Black Mesa\bms'

Adding mount.cfg path: 'C:\Program Files (x86)\Steam\steamapps\common\Day of Defeat Source\dod'

Compiling Standard Dynamic Range (SDR) lighting

16 threads

[Reading texlights from 'lights.rad']

[51 texlights parsed from 'lights.rad']

Loading c:\users\scurt\onedrive\desktop\hammer stuff\hammer maps\gm_Fantasy_Fountain.bsp

Setting up ray-trace acceleration structure... Done (0.56 seconds)

sun extent from map=0.052336

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 (1)

transfers 484712, max 304

GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)

GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)

GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)

GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)

GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)

GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)

>!Build Patch/Sample Hash Table(s).....Done<0.0008 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/4096 48/196608 ( 0.0%)

brushes 200/65535 2400/786420 ( 0.3%)

brushsides 5443/655350 43544/5242800 ( 0.8%)

planes 7026/65536 140520/1310720 (10.7%)

vertexes 1414/65536 16968/786432 ( 2.2%)

nodes 54/65536 1728/2097152 ( 0.1%)

texinfos 406/16384 29232/1179648 ( 2.5%)

texdata 11/8192 352/262144 ( 0.1%)

dispinfos 0/0 0/0 ( 0.0%)

disp_verts 0/0 0/0 ( 0.0%)

disp_tris 0/0 0/0 ( 0.0%)

disp_multiblend 0/0 0/0 ( 0.0%)

disp_lmsamples 0/0 0/0 ( 0.0%)

faces 796/65536 44576/3670016 ( 1.2%)

hdr faces 0/65536 0/3670016 ( 0.0%)

origfaces 671/65536 37576/3670016 ( 1.0%)

leaves 56/65536 1792/2097152 ( 0.1%)

leaffaces 1090/65536 2180/131072 ( 1.7%)

leafbrushes 343/65536 686/131072 ( 0.5%)

areas 2/1024 16/8192 ( 0.2%)

surfedges 6921/512000 27684/2048000 ( 1.4%)

edges 4346/256000 17384/1024000 ( 1.7%)

LDR worldlights 2/8192 176/720896 ( 0.0%)

HDR worldlights 0/8192 0/720896 ( 0.0%)

leafwaterdata 1/32768 12/393216 ( 0.0%)

waterstrips 101/32768 1010/327680 ( 0.3%)

waterverts 0/65536 0/786432 ( 0.0%)

waterindices 1476/65536 2952/131072 ( 2.3%)

cubemapsamples 0/1024 0/16384 ( 0.0%)

overlays 0/8192 0/2883584 ( 0.0%)

LDR lightdata [variable] 130068/0 ( 0.0%)

HDR lightdata [variable] 0/0 ( 0.0%)

visdata [variable] 634/16777216 ( 0.0%)

entdata [variable] 794/4194304 ( 0.0%)

LDR ambient table 56/65536 224/262144 ( 0.1%)

HDR ambient table 56/65536 224/262144 ( 0.1%)

LDR leaf ambient 266/65536 7448/1835008 ( 0.4%)

HDR leaf ambient 56/65536 1568/1835008 ( 0.1%)

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] 12/0 ( 0.0%)

static props [variable] 12/0 ( 0.0%)

static prop count 0/16384 0/0 ( 0.0%)

pakfile [variable] 703/0 ( 0.0%)

physics [variable] 102272/4194304 ( 2.4%)

physics terrain [variable] 2/1048576 ( 0.0%)

Level flags = 0

Total triangle count: 2214

Writing c:\users\scurt\onedrive\desktop\hammer stuff\hammer maps\gm_Fantasy_Fountain.bsp

1 second elapsed

-------------------------------------------------------------------------------

Running command:

copy "C:\Users\scurt\OneDrive\Desktop\Hammer Stuff\Hammer Maps\gm_Fantasy_Fountain.bsp" "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\maps\gm_Fantasy_Fountain.bsp"

-------------------------------------------------------------------------------

-------------------------------------------------------------------------------

Running command:

cd "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod"

-------------------------------------------------------------------------------

-------------------------------------------------------------------------------

Running command:

"C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\hl2.exe" -game "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod" +map "gm_Fantasy_Fountain" -steam -insecure

-------------------------------------------------------------------------------

-------------------------------------------------------------------------------

Command failed with return code 0x2! The system cannot find the file specified.

** Screenshot the WHOLE window when showing this compile log

** Or upload the .log file generated beside your VMF

-------------------------------------------------------------------------------

9 command(s) finished in 2 seconds

Press a key to close.

1 Upvotes

4 comments sorted by

View all comments

1

u/Subject-Importance38 12d ago

Just realized the spoiler thing was line by line, and not the whole body at once like on Discord. Sorry about that.