Half-Life: Alyx

Half-Life: Alyx

Expand the world of Half-Life: Alyx
Browse the Half-Life: Alyx Workshop to find the best new addons created by the community, or install the free tools yourself and start making your own Half-Life: Alyx content.
Learn More
Rebine 18 Jan, 2023 @ 9:25am
Error when generating lightmaps
So when I compile a map without generating lightmaps, everything works fine but when I want to generate them, an error appears.

Here is the log:



Start build: 2023-01-18T17:53:04
Hammer: Attempting incremental build.
Hammer: Copying previously compiled map to temp directory.
SoundStack hlvr_music_startup unable to find imported stack hlvr_music_track_base
SoundStack hlvr_music_startup unable to find imported stack hlvr_music_track_base
Unzip my_map.vpk (17 files):
Done (0.0 sec: 0.1ms read, 5.3ms write 0.0mb).
- hlvr_addons\my_custom_maps\maps\my_map.vmap
Settling physics objects...Done. (0.00 seconds)
Simulated 2 objects, 2 sleeping.
Assigned 2 Baked Light Indices [0 - 1].
Building map "maps\my_map"...


... Building 'world'

Ray Tracing Environment
Building ray trace environment...
Wrote C:\Users\Rebine\AppData\Local\Temp\hlvr_addons\my_custom_maps\maps\my_map.rte
Wrote C:\Users\Rebine\AppData\Local\Temp\hlvr_addons\my_custom_maps\maps\my_map.viscfg
Done (0.03 seconds)
+- hlvr_addons\my_custom_maps\maps\my_map\world_visibility.vvis
Building map visibility

Loading kd-trees
Successfully read C:\Users\Rebine\AppData\Local\Temp\hlvr_addons\my_custom_maps\maps\my_map.rte
Successfully unserialized ray tracing environment.
Convert RTE with 86 triangles in 0.00s

Building view cells
Loaded 150822 LOS hints from c:\users\Rebine\steam\steamapps\common\half-life alyx\game\hlvr_addons\my_custom_maps\maps\my_map.los! (0.0 seconds)
Loaded 0 LOS hints from C:\Users\Rebine\Steam\steamapps\common\Half-Life Alyx\content\hlvr_addons\my_custom_maps\maps\my_map.los! (0.0 seconds)
Voxelize (16 units) took 0.05 seconds (3,145 nodes)
Outside detection took 0.01 seconds
1632 initial clusters, merging.
Partitioned into 1 islands
Assigned 1630 clusters in 0.00 seconds
Removed 62,700 bytes from tree structure
CLOSRayGenerator rays complete.
CLOSRayGenerator rays complete.
AxialRays rays complete.
AxialRays rays complete.
AxialRays rays complete.
1.5s::cast 10,002,432 rays, Found 135,073 valid LOS (128 jobs)
ClusterView rays complete.
Queue drained to 0!!! 1 completed 0 processed 0ms (1 were queued)
Queue drained to 0!!! 1 completed 0 processed 0ms (1 were queued)
Queue drained to 0!!! 1 completed 0 processed 0ms (1 were queued)
2.7s::cast 20,119,552 rays, Found 135,438 valid LOS (0 jobs)
Queue drained to 2!!! 1 completed 0 processed 0ms (1 were queued)
Traced 20,520,960 rays in 2.729 seconds [7,519,866 rays per second]
5.422 cpu s cast, 21.603 cpu s rasterize
Target 448 clusters, clamped to 446
Built 1,630 clusters in 0.0s
1630 clusters, 1 steps
Merge vis clusters:0...1...2...3...4...5...6...7...8...9...10
Merged to 448 clusters in 1.0s (0.8s recompute, 1136 passes)
1.0s total merge time
Split 1187 outside regions into 416 regions, passed through 0 outside regions
Wrote merge clusters 3942 clusters, 715 sets
Wrote vis resource 284.18 KB bytes
Wrote 135438 LOS hints for next time c:\users\Rebine\steam\steamapps\common\half-life alyx\game\hlvr_addons\my_custom_maps\maps\my_map.los!
Visibility complete in 4.46s.

Creating World
Fixing T-junction edge cracks...Done 0.0 seconds

Bake Lighting
Build: pc64 Jun 12 2020 17:43:59
Light Importance Tree... [0....1....2....3....4....5....6....7....8....9....] Done (0.31 seconds)
WARNING! No lightmap resolution volumes set for this geometry!
Whilst we still can process lightmaps for this map, texel resolution of the lightmap will be sub-optimal.
Please add a mesh enclosing the player navigable space with toolslightmapres.vmat applied to it.
Preprocessing 16 meshes and computing charts [0....1....2....3....4....5....6....7....8....9....] Done (0.34 seconds)
Packing 821 UV charts onto atlas...
Pass 1 of 9 ->[0....1....2....3....4....5....6....7....8....9....] Done (0.11 seconds) - (0.508653)
Pass 2 of 9 ->[0....1....2....3....4....5....6....7....8....9....] Done (0.05 seconds) + (0.254327)
Pass 3 of 9 ->[0....1....2....3....4....5....6....7....8....9....] Done (0.14 seconds) + (0.381490)
Pass 4 of 9 ->[0....1....2....3....4....5....6....7....8....9....] Done (0.19 seconds) + (0.445072)
Pass 5 of 9 ->[0....1....2....3....4....5....6....7....8....9....] Done (0.21 seconds) - (0.476862)
Pass 6 of 9 ->[0....1....2....3....4....5....6....7....8....9....] Done (0.20 seconds) - (0.460967)
Pass 7 of 9 ->[0....1....2....3....4....5....6....7....8....9....] Done (0.20 seconds) + (0.453019)
Pass 8 of 9 ->[0....1....2....3....4....5....6....7....8....9....] Done (0.19 seconds) - (0.456993)
Pass 9 of 9 ->[0....1....2....3....4....5....6....7....8....9....] Done (0.20 seconds) + (0.455006)
Mesh with material materials/dev/reflectivity_30.vmat is extremely large in lightmap (20.9%), 468x468
World Bounds -512.000000,-512.000000,0.000000 -> 512.000000,512.000000,512.000000
0 / 13101 (00%) of triangles are outside lightmap importance volumes
LIGHTMAP QUERY SIMPLIFY: indices 30138->15069
LIGHTMAP QUERY MEM: verts 11649->9099, indices 39303->15069 (0mb -> 0mb)
Added lightmap query data to VPK: maps\my_map\lightmaps\lightmap_query_data.kv3
Vertex Data Uncompressed: 145584 bytes
Index Data Uncompressed: 60276 bytes
==== Baking 1024 x 1024 lightmap ====
SetupTexels [0....1....2....3....4....5....6....7....8....9....] Done (0.05 seconds)
VRAD3 (local) [Could not execute the command:
vrad3 -map maps/my_map.vmap -script script.vrad3 -entrypoint lm_compute -blockfile=lm_block_00000000.dat -blocknum=0 -threads 6 -outdir results/outputs
OS error message:
"Acc&#-24;s refus&#-23;."
Unable to run Vrad3.
Light mapper didn't return valid triangles: failing.
--> Map build FAILED.
[FAIL]
0/ 1 (elapsed 7.825): c:\users\Rebine\steam\steamapps\common\half-life alyx\content\hlvr_addons\my_custom_maps\maps\my_map.vmap
Compile of 1 file(s) matching nonrecursive specification "c:/users/Rebine/steam/steamapps/common/half-life alyx/content/hlvr_addons/my_custom_maps/maps/my_map.vmap" took 7.825 seconds
-----------------------------------------------------------------
ERROR: 1 compiled, 1 failed, 1 skipped, 0m:10s
-----------------------------------------------------------------
Using breakpad crash handler Setting breakpad minidump AppID = 546560 Forcing breakpad minidump interfaces to load Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Steam_SetMinidumpSteamID: Caching Steam ID: 76561199129978211 [API loaded yes] Steam_SetMinidumpSteamID: Setting Steam ID: 76561199129978211 End build: 2023-01-18T17:53:16, elapsed time 0h:00m:11s.085ms
< >
Showing 1-4 of 4 comments
Schranzi 19 Jan, 2023 @ 6:38am 
Possible to send me the VmapFile so that i could check if i find the Issue ? From the error log it is not obvious for me where the problem is
Last edited by Schranzi; 19 Jan, 2023 @ 6:41am
Rebine 19 Jan, 2023 @ 7:36am 
Yep, Here it is.[cdn.discordapp.com]

I don't think the problem is with the map, I tried to create a map with just an empty room, an info_player_start and a light_omni inside but I got the exact same error.
Last edited by Rebine; 19 Jan, 2023 @ 7:36am
Schranzi 19 Jan, 2023 @ 8:39am 
Hm, No errors when i compile this little Map -> Screenshot : https://ibb.co/bL5Nknf

Maybe Deinstall and Reinstall Alyx again or verify Game Files ? Maybe there is something missing ? Or uncheck DLC (Workshop) and check it again ?

I have no Idea what cause your Problem,because this little Scene is ok (i just recommend you to reduce the Radius of your Lightsources. For such a little Scene you dont need 512 LSRadius or higher)

The only thing what i have done was (just for a test)..

- i added a Lightprobe volume and added a Lightmap Playerspace
- reduced the Radius of all Lightsources

but this is not the Problem in my Opinion.
Last edited by Schranzi; 21 Jan, 2023 @ 6:48am
Rebine 21 Jan, 2023 @ 7:52am 
Ok, thank you very much, I checked the game files, added a playerspace lightmap and removed a weird launch option. Idk what fixed it but now it's working.

Small question, when I use the lightning preview in the editor, I have this result[cdn.discordapp.com] (it is this result that I would like to have in game).

And when i preview baked lightning, the game is much brighter: screenshot [cdn.discordapp.com]

Is it possible to have darker light when using baked lightning ?
Last edited by Rebine; 21 Jan, 2023 @ 9:48am
< >
Showing 1-4 of 4 comments
Per page: 1530 50