Garry's Mod

Garry's Mod

QuickSelect - Weapon Selection Done Right
Jazztache 2023 年 5 月 28 日 上午 3:15
Broken Fonts On Linux
Hello!

I recently found a bug where the font used on the weapon wheel is completely broken, using UI icons.

Here is a screenshot: https://psteamcommunity.yuanyoumao.com/id/Jazztache/screenshot/2029480134930976648/

OS: Arch Linux x86_64
Desktop: KDE Plasma 5.27.5
< >
正在显示第 1 - 11 条,共 11 条留言
Jazztache 2023 年 5 月 28 日 上午 5:57 
The solution is to make sure to install the font beforehand as a system theme. This was tested on the TF2 theme for this addon with `TF2build.ttf` required to be installed.

Please provide a download link to the ttf file used in the default theme on the workshop page, so people on OSX and Linux can install the font to solve the problem.
Rib 2023 年 5 月 30 日 下午 6:06 
Have the exact same issue, I tried decompiling the mod and I still wasn't able to find it. If I read the code correctly, it makes the font on the fly? (Do not quote me on that though, I am not super good with lua)
Jazztache 2023 年 5 月 31 日 下午 5:57 
I attempted to decompile the mod as well, and there was a font that was just icons called Ma-something. I didn't even bother to download it.
Jazztache 2023 年 5 月 31 日 下午 5:59 
One idea I have is to use the TF2 sample theme they did, decompile it, revert and recreate the style of the vanilla HUD, and then change the font to Noto Sans.
Rib 2023 年 5 月 31 日 下午 6:16 
Marlett, and yeah it doesn't do jack... (Though It does look like it's using the font in-game? still gibberish but of note maybe) Do let me know if you get anywhere with the TF2 theme work around though!
最后由 Rib 编辑于; 2023 年 5 月 31 日 下午 6:23
Jazztache 2023 年 6 月 1 日 上午 12:59 
TF2 theme works if you install TF2 Build and TF2 Secondary
The texture for the TF2 theme is broken in general.
Jazztache 2023 年 11 月 14 日 下午 2:27 
引用自 Rib
Have the exact same issue, I tried decompiling the mod and I still wasn't able to find it. If I read the code correctly, it makes the font on the fly? (Do not quote me on that though, I am not super good with lua)
Apologies for necro-ing, but what process did you end up using to decompile the mod? Where in the `garrysmod` folder was it stored?
Jazztache 2023 年 11 月 14 日 下午 2:28 
Note, I have confirmed this still happens even with no other addons installed (just a sanity check), and it's also still a problem on the Steam Deck.
Jeff_Clark 8 月 13 日 上午 3:10 
I FIXED IT!!
Install TrebuchetMS font, decompile the addon (with gmad.exe in garrysmod folder) and in "qsel/lua/autorun/sh_wepsel_config.lua", change every occurence of "Marlett" with "TrebuchetMS" and put the qsel folder into "Garry's Mod/garrysmod/addons/"

I have no idea why but for some reason I couldn't get Marlett font to work but after going into multiple forums I found out that original Half-Life uses TrebuchetMS font so I thought it would fit well with it. You can change this to any font but I can't guarantee it will work and for me TrebuchetMS works very well.

The fonts for the default theme is declared in "lua/autorun/sh_wepsel_config.lua"
最后由 Jeff_Clark 编辑于; 8 月 13 日 上午 3:11
Jeff_Clark 8 月 13 日 上午 3:13 
引用自 Rib
Marlett, and yeah it doesn't do jack... (Though It does look like it's using the font in-game? still gibberish but of note maybe) Do let me know if you get anywhere with the TF2 theme work around though!
Here, if you're still interested
Rib 8 月 13 日 上午 8:35 
Thank you, hopefully this helps anyone else that stumbles upon this thread as well

引用自 Jeff_Clark
引用自 Rib
Marlett, and yeah it doesn't do jack... (Though It does look like it's using the font in-game? still gibberish but of note maybe) Do let me know if you get anywhere with the TF2 theme work around though!
Here, if you're still interested
< >
正在显示第 1 - 11 条,共 11 条留言
每页显示数: 1530 50