Garry's Mod

Garry's Mod

D/GL4: Customizable Holographic HUD
 This topic has been pinned, so it's probably important
DyaMetR  [developer] 6 Apr @ 3:26pm
Bug report thread
Please read the F.A.Q section for troubleshooting before reporting a bug.
Please follow these instructions when reporting an issue, otherwise I can't help you!
  • Describe the problem.
  • Provide a set of instructions to replicate said problem.
  • Post any errors that may pop up.
    I can't stress enough how important is that you show the error for me to fix it.
  • In case of visual issues, post a picture and/or the export code to your configuration.
    File -> Export -> Get export code
  • In case of the problem being related to an addon post either a download link or link its source code repository.
    • The download link must come from a reputable website (preferably the Steam Workshop).
    • If you can't provide a download link because the problem is being caused by a private addon contact its author instead.
Last edited by DyaMetR; 7 Apr @ 1:56am
< >
Showing 1-15 of 153 comments
The power panel is superimposed in the health panel even though I want it to be above the health panel. Also, When I exit the current map where I made some modifications to the HUD and enter the new map, the changes I made would be lost instead of saved and, defaults to a default preset.
The problem with the cofig not saving between maps only occurs when you do not name a config you made. Like, it should save between maps like the predecessor that was HOL-D4.
DyaMetR  [developer] 6 Apr @ 10:25pm 
Originally posted by jangwmpt7:
The power panel is superimposed in the health panel even though I want it to be above the health panel. Also, When I exit the current map where I made some modifications to the HUD and enter the new map, the changes I made would be lost instead of saved and, defaults to a default preset.
You mean the aux power? Are you running on default HUD settings?
I meant the Aux power.
DyaMetR  [developer] 7 Apr @ 5:33am 
Originally posted by jangwmpt7:
I meant the Aux power.
Can you tell me how to replicate it?
I get this error when toggling "On background" in squad status composition:

[D/GL4: Customizable Holographic HUD] lua/holohud2/elements/squad/hudsquadstatus.lua:477: attempt to call method 'PaintBackground' (a nil value) 1. PaintBackground - lua/holohud2/elements/squad/hudsquadstatus.lua:477 2. PreviewPaint - lua/holohud2/elements/squad.lua:563 3. PaintPreview - lua/holohud2/menu.lua:293 4. PaintPreview - lua/holohud2/vgui/delementproperties.lua:88 5. unknown - lua/holohud2/vgui/dpreview.lua:71
DyaMetR  [developer] 7 Apr @ 1:27pm 
Originally posted by UlτrαΤwο:
I get this error when toggling "On background" in squad status composition:

[D/GL4: Customizable Holographic HUD] lua/holohud2/elements/squad/hudsquadstatus.lua:477: attempt to call method 'PaintBackground' (a nil value) 1. PaintBackground - lua/holohud2/elements/squad/hudsquadstatus.lua:477 2. PreviewPaint - lua/holohud2/elements/squad.lua:563 3. PaintPreview - lua/holohud2/menu.lua:293 4. PaintPreview - lua/holohud2/vgui/delementproperties.lua:88 5. unknown - lua/holohud2/vgui/dpreview.lua:71
Thanks, sounds like a slip up. Will fix it asap. Fixed!
Last edited by DyaMetR; 7 Apr @ 1:35pm
it won't let me switch my weapons
Update for you mister dyametr I have found the exact cause of the crash I was talking about in comments and fixed it on my end (strictly speaking its an infinite freeze but whatever). The problem is there is no maximum for how many bullets the ammotray can render (_count), so if you make it reasonably wide and incredibly thin it renders like a million and the game dies. Just clamp it.
Oh and this goes for the dots on percentage bars too, continuous and non-continuous, though because I guess dots are cheaper you can't freeze the game without explicitly typing in an extremely thin height like 0.001. The bullet tray is way worse because you can freeze the game just by sweeping past 0 while scrolling through the height, either with scroll wheel or by holding down LMB on the arrows.
DyaMetR  [developer] 7 Apr @ 8:42pm 
Originally posted by sideswipeBL:
Oh and this goes for the dots on percentage bars too, continuous and non-continuous, though because I guess dots are cheaper you can't freeze the game without explicitly typing in an extremely thin height like 0.001. The bullet tray is way worse because you can freeze the game just by sweeping past 0 while scrolling through the height, either with scroll wheel or by holding down LMB on the arrows.
Understood, will stress test it and put limits. Thanks for the detailed explanation!
DyaMetR  [developer] 7 Apr @ 8:42pm 
Originally posted by The Sup Lord:
it won't let me switch my weapons
In what scenario?
Using "givecurrentammo" will spam this error in the console, and will break the HUD until a map restart

[D/GL4: Customizable Holographic HUD] lua/holohud2/components/ammopickup.lua:190: bad argument #2 to 'format' (no value)
1. format - [C]:-1
2. SetAmmoType - lua/holohud2/components/ammopickup.lua:190
3. PreDraw - lua/holohud2/elements/resourcehistory.lua:542
4. v - lua/holohud2/init.lua:197
5. unknown - lua/includes/modules/hook.lua:102 (x2038)
DyaMetR  [developer] 8 Apr @ 2:52am 
Originally posted by T-Panzer800:
Using "givecurrentammo" will spam this error in the console, and will break the HUD until a map restart

[D/GL4: Customizable Holographic HUD] lua/holohud2/components/ammopickup.lua:190: bad argument #2 to 'format' (no value)
1. format - [C]:-1
2. SetAmmoType - lua/holohud2/components/ammopickup.lua:190
3. PreDraw - lua/holohud2/elements/resourcehistory.lua:542
4. v - lua/holohud2/init.lua:197
5. unknown - lua/includes/modules/hook.lua:102 (x2038)
Thank you, will look at it.
Originally posted by DyaMetR:
Originally posted by T-Panzer800:
Using "givecurrentammo" will spam this error in the console, and will break the HUD until a map restart

[D/GL4: Customizable Holographic HUD] lua/holohud2/components/ammopickup.lua:190: bad argument #2 to 'format' (no value)
1. format - [C]:-1
2. SetAmmoType - lua/holohud2/components/ammopickup.lua:190
3. PreDraw - lua/holohud2/elements/resourcehistory.lua:542
4. v - lua/holohud2/init.lua:197
5. unknown - lua/includes/modules/hook.lua:102 (x2038)
Thank you, will look at it.


No problem! Also my bad, it also happens when you pick up ammo from RTB:R's OICW ammo
< >
Showing 1-15 of 153 comments
Per page: 1530 50