Garry's Mod

Garry's Mod

D/GL4: Customizable Holographic HUD
 此主题已被置顶,因此可能具有重要性
DyaMetR  [开发者] 4 月 6 日 下午 3:26
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.
最后由 DyaMetR 编辑于; 4 月 7 日 上午 1:56
< >
正在显示第 1 - 15 条,共 165 条留言
jangwmpt7 4 月 6 日 下午 8:26 
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.
jangwmpt7 4 月 6 日 下午 8:41 
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  [开发者] 4 月 6 日 下午 10:25 
引用自 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?
jangwmpt7 4 月 7 日 上午 5:26 
I meant the Aux power.
DyaMetR  [开发者] 4 月 7 日 上午 5:33 
引用自 jangwmpt7
I meant the Aux power.
Can you tell me how to replicate it?
UlτrαΤwο 4 月 7 日 下午 1:26 
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  [开发者] 4 月 7 日 下午 1:27 
引用自 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!
最后由 DyaMetR 编辑于; 4 月 7 日 下午 1:35
The Sup Lord 4 月 7 日 下午 5:05 
it won't let me switch my weapons
sideswipeBL 4 月 7 日 下午 7:12 
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.
sideswipeBL 4 月 7 日 下午 7:23 
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  [开发者] 4 月 7 日 下午 8:42 
引用自 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  [开发者] 4 月 7 日 下午 8:42 
引用自 The Sup Lord
it won't let me switch my weapons
In what scenario?
T-Panzer800 4 月 8 日 上午 2:50 
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  [开发者] 4 月 8 日 上午 2:52 
引用自 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.
T-Panzer800 4 月 8 日 上午 3:01 
引用自 DyaMetR
引用自 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
< >
正在显示第 1 - 15 条,共 165 条留言
每页显示数: 1530 50