Garry's Mod

Garry's Mod

View Stats:
JugginBrain Aug 4, 2020 @ 12:14pm
"Access Denied" error while compiling map.
I'm having an issue in the Hammer editor when I try to compile my map. I put in a custom command in the expert compile options (I typed it correctly and it's on the right line) and when I compile the map I get this error message:
** Executing... ** Command: "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\vbsp.exe" ** Parameters: -game "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod" "c:\mymaps\secretbase" FileSystem_LoadSearchPaths Valve Software - vbsp.exe (Jun 10 2020) 8 threads materialPath: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\materials Loading c:\mymaps\secretbase.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:\mymaps\secretbase.prt...Building visibility clusters... done (0) Creating default LDR cubemaps for env_cubemap using skybox materials: skybox/sky_day01_09*.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_09*.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) (49428 bytes) Placing detail props : 0...1...2...3...4...5...6...7...8...9...10 Compacting texture/material tables... Reduced 254 texinfos to 148 Reduced 77 texdatas to 55 (3146 bytes to 2195) Writing c:\mymaps\secretbase.bsp 0 seconds elapsed ** Executing... ** Command: "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\vvis.exe" ** Parameters: -game "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod" "c:\mymaps\secretbase" Valve Software - vvis.exe (Jun 10 2020) FileSystem_LoadSearchPaths 8 threads reading c:\mymaps\secretbase.bsp reading c:\mymaps\secretbase.prt 295 portalclusters 796 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: 128 visible clusters (0.44%) Total clusters visible: 29409 Average clusters visible: 99 Building PAS... Average clusters audible: 201 visdatasize:23337 compressed from 23600 writing c:\mymaps\secretbase.bsp 0 seconds elapsed ** Executing... ** Command: "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\vrad.exe" ** Parameters: -both -final -game "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod" "c:\mymaps\secretbase" Valve Software - vrad.exe SSE (Jun 10 2020) Valve Radiosity Simulator FileSystem_LoadSearchPaths 8 threads [Reading texlights from 'lights.rad'] [45 texlights parsed from 'lights.rad'] Loading c:\mymaps\secretbase.bsp PREP OK Setting up ray-trace acceleration structure... Done (0.02 seconds) 1001 faces 840164 square feet [120983664.00 square inches] 0 Displacements 0 Square Feet [0.00 Square Inches] 1001 patches before subdivision 16273 patches after subdivision 35 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 202283, max 434 transfer lists: 1.5 megs GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #1 added RGB(15762, 11647, 6568) GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #2 added RGB(1190, 745, 386) GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #3 added RGB(90, 47, 22) GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #4 added RGB(7, 3, 1) GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #5 added RGB(1, 0, 0) Build Patch/Sample Hash Table(s).....Done<0.0034 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 (3) Writing leaf ambient...done Ready to Finish Object names Objects/Maxobjs Memory / Maxmem Fullness ------------ --------------- --------------- -------- models 19/4096 912/196608 ( 0.5%) brushes 128/16384 1536/196608 ( 0.8%) brushsides 770/65536 6160/524288 ( 1.2%) planes 542/65536 10840/1310720 ( 0.8%) vertexes 1600/65536 19200/786432 ( 2.4%) nodes 769/65536 24608/2097152 ( 1.2%) texinfos 148/12288 10656/884736 ( 1.2%) texdata 55/2048 1760/65536 ( 2.7%) 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 1001/65536 56056/3670016 ( 1.5%) hdr faces 0/65536 0/3670016 ( 0.0%) origfaces 469/65536 26264/3670016 ( 0.7%) leaves 789/65536 25248/2097152 ( 1.2%) leaffaces 1121/65536 2242/131072 ( 1.7%) leafbrushes 411/65536 822/131072 ( 0.6%) areas 2/1024 16/8192 ( 0.2%) surfedges 6490/512000 25960/2048000 ( 1.3%) edges 3551/256000 14204/1024000 ( 1.4%) LDR worldlights 35/8192 3080/720896 ( 0.4%) HDR worldlights 0/8192 0/720896 ( 0.0%) leafwaterdata 1/32768 12/393216 ( 0.0%) waterstrips 62/32768 620/327680 ( 0.2%) waterverts 0/65536 0/786432 ( 0.0%) waterindices 1017/65536 2034/131072 ( 1.6%) cubemapsamples 112/1024 1792/16384 (10.9%) overlays 0/512 0/180224 ( 0.0%) LDR lightdata [variable] 673760/0 ( 0.0%) HDR lightdata [variable] 0/0 ( 0.0%) visdata [variable] 23337/16777216 ( 0.1%) entdata [variable] 39990/393216 (10.2%) LDR ambient table 789/65536 3156/262144 ( 1.2%) HDR ambient table 789/65536 3156/262144 ( 1.2%) LDR leaf ambient 1960/65536 54880/1835008 ( 3.0%) HDR leaf ambient 789/65536 22092/1835008 ( 1.2%) 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/1762 ( 0.1%) pakfile [variable] 10257041/0 ( 0.0%) physics [variable] 49428/4194304 ( 1.2%) physics terrain [variable] 2/1048576 ( 0.0%) Level flags = 0 Total triangle count: 2612 Writing c:\mymaps\secretbase.bsp 3 seconds elapsed Valve Software - vrad.exe SSE (Jun 10 2020) Valve Radiosity Simulator FileSystem_LoadSearchPaths 8 threads [Reading texlights from 'lights.rad'] [45 texlights parsed from 'lights.rad'] Loading c:\mymaps\secretbase.bsp PREP OK Setting up ray-trace acceleration structure... Done (0.02 seconds) 1001 faces 840164 square feet [120983664.00 square inches] 0 Displacements 0 Square Feet [0.00 Square Inches] 1001 patches before subdivision 16273 patches after subdivision 35 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 202283, max 434 transfer lists: 1.5 megs GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #1 added RGB(15762, 11647, 6568) GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #2 added RGB(1190, 745, 386) GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #3 added RGB(90, 47, 22) GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #4 added RGB(7, 3, 1) GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0) Bounce #5 added RGB(1, 0, 0) Build Patch/Sample Hash Table(s).....Done<0.0035 sec> FinalLightFace: 0...1...2...3...4...5...6...7...8...9...10 (1) 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 (2) Writing leaf ambient...done Ready to Finish Object names Objects/Maxobjs Memory / Maxmem Fullness ------------ --------------- --------------- -------- models 19/4096 912/196608 ( 0.5%) brushes 128/16384 1536/196608 ( 0.8%) brushsides 770/65536 6160/524288 ( 1.2%) planes 542/65536 10840/1310720 ( 0.8%) vertexes 1600/65536 19200/786432 ( 2.4%) nodes 769/65536 24608/2097152 ( 1.2%) texinfos 148/12288 10656/884736 ( 1.2%) texdata 55/2048 1760/65536 ( 2.7%) 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 1001/65536 56056/3670016 ( 1.5%) hdr faces 1001/65536 56056/3670016 ( 1.5%) origfaces 469/65536 26264/3670016 ( 0.7%) leaves 789/65536 25248/2097152 ( 1.2%) leaffaces 1121/65536 2242/131072 ( 1.7%) leafbrushes 411/65536 822/131072 ( 0.6%) areas 2/1024 16/8192 ( 0.2%) surfedges 6490/512000 25960/2048000 ( 1.3%) edges 3551/256000 14204/1024000 ( 1.4%) LDR worldlights 35/8192 3080/720896 ( 0.4%) HDR worldlights 35/8192 3080/720896 ( 0.4%) leafwaterdata 1/32768 12/393216 ( 0.0%) waterstrips 62/32768 620/327680 ( 0.2%) waterverts 0/65536 0/786432 ( 0.0%) waterindices 1017/65536 2034/131072 ( 1.6%) cubemapsamples 112/1024 1792/16384 (10.9%) overlays 0/512 0/180224 ( 0.0%) LDR lightdata [variable] 673760/0 ( 0.0%) HDR lightdata [variable] 673760/0 ( 0.0%) visdata [variable] 23337/16777216 ( 0.1%) entdata [variable] 39990/393216 (10.2%) LDR ambient table 789/65536 3156/262144 ( 1.2%) HDR ambient table 789/65536 3156/262144 ( 1.2%) LDR leaf ambient 1960/65536 54880/1835008 ( 3.0%) HDR leaf ambient 1960/65536 54880/1835008 ( 3.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/1762 ( 0.1%) pakfile [variable] 10257041/0 ( 0.0%) physics [variable] 49428/4194304 ( 1.2%) physics terrain [variable] 2/1048576 ( 0.0%) Level flags = 0 Total triangle count: 2612 Writing c:\mymaps\secretbase.bsp 3 seconds elapsed ** Executing... ** Command: bspzip.exe ** Parameters: -deletecubemaps "c:\mymaps\secretbase.bsp" * Could not execute the command: bspzip.exe -deletecubemaps "c:\mymaps\secretbase.bsp" * Windows gave the error message: "Access is denied." ** Executing... ** Command: Copy File ** Parameters: "c:\mymaps\secretbase.bsp" "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\maps\secretbase.bsp" ** Executing... ** Command: "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\hl2.exe" ** Parameters: -dev -console -allowdebug -game "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod" +map "secretbase"

Here's what my map is doing: https://www.youtube.com/watch?v=3ceOpfK8u-c

If anyone knows how to fix this issue please let me know.
Last edited by JugginBrain; Aug 5, 2020 @ 5:36pm
< >
Showing 1-3 of 3 comments
Ttiki Aug 4, 2020 @ 12:29pm 
Probably because of the location of your folder. You folder mymaps is directly under C:/
Try putting it on another hardrive or in your document / desktop...
Or it's comming from the executable bspzip.exe.
JugginBrain Aug 4, 2020 @ 12:44pm 
I looked at some other conversations and they said to have a shorter file path. When I first had this problem, the folder was already on my desktop.
JugginBrain Aug 4, 2020 @ 12:46pm 
I'm using a guide to help fix cubemap reflections (first real map i'm working on.) Here is the link if it helps: https://www.youtube.com/watch?v=5pv1LagQWkw
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Aug 4, 2020 @ 12:14pm
Posts: 3