r/hammer • • 3d ago

Unsolved Running into a memory issue when compiling

messing around and making a very unserious map, running into a memory issue

Using shader api: shaderapiempty.dll

materialPath: C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\ep2\materials

Loading C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\bin\CustomMaps\BigAssMaptest3.vmf

ConVarRef mat_specular_scalar doesn't point to an existing ConVar

Could not locate 'GameData' key in c:\program files (x86)\steam\steamapps\common\half-life 2\ep2\gameinfo.txt

fixing up env_cubemap materials on brush sides...

0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Processing areas...done (0)

Building Faces...done (0)

Chop Details...done (0)

Find Visible Detail Sides...

Merged 318 detail faces...done (0)

Merging details...done (0)

FixTjuncs...

PruneNodes...

WriteBSP...

done (0)

writing C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\bin\CustomMaps\BigAssMaptest3.prt...Building visibility clusters...

done (0)

Creating default LDR cubemaps for env_cubemap using skybox materials:

skybox/sky_wasteland02*.vmt

! Run buildcubemaps in the engine to get the correct cube maps.

Creating default HDR cubemaps for env_cubemap using skybox materials:

skybox/sky_wasteland02*.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 (1) (572774 bytes)

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

Compacting texture/material tables...

Reduced 6810 texinfos to 3300

Reduced 12 texdatas to 11 (333 bytes to 276)

Writing C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\bin\CustomMaps\BigAssMaptest3.bsp

1 second elapsed

28 threads

reading c:\program files (x86)\steam\steamapps\common\half-life 2\bin\custommaps\BigAssMaptest3.bsp

reading c:\program files (x86)\steam\steamapps\common\half-life 2\bin\custommaps\BigAssMaptest3.prt

182 portalclusters

360 numportals

0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Optimized: 4 visible clusters (0.02%)

Total clusters visible: 26382

Average clusters visible: 144

Building PAS...

Average clusters audible: 180

visdatasize:9796 compressed from 8736

writing c:\program files (x86)\steam\steamapps\common\half-life 2\bin\custommaps\BigAssMaptest3.bsp

0 seconds elapsed

[Reading texlights from 'lights.rad']

[48 texlights parsed from 'lights.rad']

Loading c:\program files (x86)\steam\steamapps\common\half-life 2\bin\custommaps\BigAssMaptest3.bsp

15992 faces

22635328 square feet [3259487232.00 square inches]

0 Displacements

0 Square Feet [0.00 Square Inches]

15992 patches before subdivision

352934 patches after subdivision

2 direct lights

0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10transfers 86656680, max 1640

transfer lists: 661.1 megs

0...1...2...3...4...5...6...7...8...9...10 Bounce #1 added RGB(195412, 144041, 82749)

0...1...2...3...4...5...6...7...8...9...10 Bounce #2 added RGB(98140, 74279, 44665)

0...1...2...3...4...5...6...7...8...9...10 Bounce #3 added RGB(23238, 17627, 10391)

0...1...2...3...4...5...6...7...8...9...10 Bounce #4 added RGB(17259, 13408, 8207)

0...1...2...3...4...5...6...7...8...9...10 Bounce #5 added RGB(5050, 3928, 2352)

0...1...2...3...4...5...6...7...8...9...10 Bounce #6 added RGB(3576, 2849, 1770)

0...1...2...3...4...5...6...7...8...9...10 Bounce #7 added RGB(1152, 920, 561)

0...1...2...3...4...5...6...7...8...9...10 Bounce #8 added RGB(791, 647, 409)

0...1...2...3...4...5...6...7...8...9...10 Bounce #9 added RGB(272, 223, 139)

0...1...2...3...4...5...6...7...8...9...10 Bounce #10 added RGB(184, 154, 100)

0...1...2...3...4...5...6...7...8...9...10 Bounce #11 added RGB(66, 56, 36)

0...1...2...3...4...5...6...7...8...9...10 Bounce #12 added RGB(44, 38, 25)

0...1...2...3...4...5...6...7...8...9...10 Bounce #13 added RGB(17, 14, 9)

0...1...2...3...4...5...6...7...8...9...10 Bounce #14 added RGB(11, 10, 7)

0...1...2...3...4...5...6...7...8...9...10 Bounce #15 added RGB(4, 4, 3)

0...1...2...3...4...5...6...7...8...9...10 Bounce #16 added RGB(3, 3, 2)

0...1...2...3...4...5...6...7...8...9...10 Bounce #17 added RGB(1, 1, 1)

0...1...2...3...4...5...6...7...8...9...10 Bounce #18 added RGB(1, 1, 1)

Build Patch/Sample Hash Table(s).....Done<0.0604 sec>

0...1...2...3...4...5...6...7...8...9...10FinalLightFace Done

0 of 0 (0% of) surface lights went in leaf ambient cubes.

0...1...2...3...4...5...6...7...8...9...10Writing leaf ambient...done

Ready to Finish

Object names Objects/Maxobjs Memory / Maxmem Fullness

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

models 8/2048 384/98304 ( 0.4%)

brushes 1446/16384 17352/196608 ( 8.8%)

brushsides 8838/65536 70704/524288 (13.5%)

planes 948/65536 18960/1310720 ( 1.4%)

vertexes 23006/65536 276072/786432 (35.1%)

nodes 4329/65536 138528/2097152 ( 6.6%)

texinfos 3300/16384 237600/1179648 (20.1%)

texdata 11/8096 352/259072 ( 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_lmsamples 0/0 0/0 ( 0.0%)

faces 15992/65536 895552/3670016 (24.4%)

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

origfaces 7499/65536 419944/3670016 (11.4%)

leaves 4338/65536 138816/2097152 ( 6.6%)

leaffaces 17711/65536 35422/131072 (27.0%)

leafbrushes 4459/65536 8918/131072 ( 6.8%)

areas 3/256 24/2048 ( 1.2%)

surfedges 105131/512000 420524/2048000 (20.5%)

edges 54420/256000 217680/1024000 (21.3%)

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

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

leafwaterdata 0/32768 0/393216 ( 0.0%)

waterstrips 174/32768 1740/327680 ( 0.5%)

waterverts 0/65536 0/786432 ( 0.0%)

waterindices 2598/65536 5196/131072 ( 4.0%)

cubemapsamples 0/1024 0/16384 ( 0.0%)

overlays 2/512 704/180224 ( 0.4%)

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

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

visdata [variable] 9796/16777216 ( 0.1%)

entdata [variable] 7445/393216 ( 1.9%)

LDR ambient table 4338/65536 17352/262144 ( 6.6%)

HDR ambient table 4338/65536 17352/262144 ( 6.6%)

LDR leaf ambient 8223/65536 230244/1835008 (12.5%)

HDR leaf ambient 4338/65536 121464/1835008 ( 6.6%)

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/206 ( 0.5%)

pakfile [variable] 173800/0 ( 0.0%)

physics [variable] 572774/4194304 (13.7%)

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

Level flags = 0

Total triangle count: 42974

Writing c:\program files (x86)\steam\steamapps\common\half-life 2\bin\custommaps\BigAssMaptest3.bsp

1 minute, 10 seconds elapsed

[Reading texlights from 'lights.rad']

[48 texlights parsed from 'lights.rad']

Loading c:\program files (x86)\steam\steamapps\common\half-life 2\bin\custommaps\BigAssMaptest3.bsp

15992 faces

22635328 square feet [3259487232.00 square inches]

0 Displacements

0 Square Feet [0.00 Square Inches]

15992 patches before subdivision

then the "command failed with return code 0xC0000005!" error

2 Upvotes

2 comments sorted by

1

u/Redandblackidress 3d ago

skybox is complex, wondering if i should use propper to turn some of the brushes into props, might fix it

1

u/Wazanator_ 2d ago

In the future https://pastebin.com/ for logs so it's easier to read. 

What does the map look like in hammer?