Garry's Mod

Garry's Mod

Dynamic Volumetric Fog
Game halts upon opening configuration menu
With no other addons installed outside of this addon's dependency, when the configuration panel is opened, the game freezes indefinitely with the following lua error:
[Volumetric Lighting / Fog] lua/entities/volume_cloud.lua:54: called mesh.Begin with a primitive count which results in too many vertices (1228824, maximum=32768)
1. Begin - [C]:-1
2. RegenerateMesh - lua/entities/volume_cloud.lua:54
3. unknown - lua/entities/volume_cloud.lua:38
4. CallProxies - lua/includes/extensions/entity.lua:352
5. Setsubdivisions - lua/includes/extensions/entity.lua:380
6. DynamicVolumetricsInit - lua/autorun/client/cl_dynamic_volumetrics.lua:21
7. OnChange - lua/autorun/client/cl_dynamic_volumetrics.lua:118
8. OnChange - lua/vgui/dcheckbox.lua:87
9. SetValue - lua/vgui/dcheckbox.lua:31
10. ConVarStringThink - lua/derma/init.lua:102
11. unknown - lua/vgui/dcheckbox.lua:59
< >
Showing 1-7 of 7 comments
Tiny Desk Engineer 12 Dec, 2024 @ 12:49pm 
Sometimes it only freezes when the main menu is opened after the error occurs, but otherwise the error is identical. It also happens on both the 32 and 64 bit versions of the game.
And sometimes it doesn't even freeze at all. The error remains mostly consistent, though, and no volumetric fog appears.
Mikey  [developer] 12 Dec, 2024 @ 4:12pm 
It looks like you set the subdivisions too high somehow.
Mikey  [developer] 12 Dec, 2024 @ 4:15pm 
How the ♥♥♥♥ did that manage to happen??
Mikey  [developer] 12 Dec, 2024 @ 4:16pm 
I'm looking in the code rn and I've set clear mins and maxes for that.
Mikey  [developer] 12 Dec, 2024 @ 4:17pm 
I will try something stupid.
Mikey  [developer] 12 Dec, 2024 @ 4:20pm 
ah, looks like I forgot to set limits on the ConVars themselves. The gui had limits but the convars didn't have any.
< >
Showing 1-7 of 7 comments
Per page: 1530 50