Left 4 Dead 2

Left 4 Dead 2

UI Font Fix [up to 4K] | Increased console font
47 Comments
Crossbow Nov 2 @ 8:37am 
Okay, I'll try again,maybe I can finish it. I'm just too clumsy to handle something this complicated,I apologize for making a fool of myself. Thanks again!
El Daro  [author] Nov 2 @ 7:56am 
To create your own addon with only some changes from mine you first need to unpack the .vpk files from the Left 4 Dead2\left4dead2 folder. Choose pak01_dir.vpk in GCFScape (3rd party tool) and then select resource folder to properly unpack it ( vpk.exe from the game's bin folder fails to do that correctly).

Then you can diff the files with the ones from this addon, see what was changed and adapt the stuff that you need.
Crossbow Nov 2 @ 12:18am 
I tried searching in the res document following the clues you provided, and oh my god, it's really complicated! My brain is completely overloaded, lmao. My initial reason for asking was that I subscribed to your addon, but it's a global modification. Actually, my only problem is that the font in the console and server browser is too small, so I was wondering if it was possible to extract this part from your results. I just tried it, and it's simply beyond my capabilities. For my own sake, I'll just use your addon directly, lmao. Thank you very much for your patient explanation; perhaps I'll try again in the future. Have a nice day!
El Daro  [author] Nov 1 @ 10:34pm 
So, to summarize:

1. Console
- Title: sourcescheme.res/UIBold (non-exclusive)
- Output: sourcescheme.res/ConsoleText (exclusive)
- Input: sourcescheme.res/DefaultSmall (non-exclusive)
- Input suggestions: *likely the same as input*
2. Server Browser :
- Main: resource/l4d360uischeme.res/Default (non-exclusive)
- First tab: sourcescheme.res/Default (extremely non-exclusive)
- Column titles: sourcescheme.res/DefaultSmall (non-exclusive)

* non-exclusive — means it controls various other parts of UI, so changing them will require fixing the rest manually, painstakingly, one by one.
Which is why this addon exists.
El Daro  [author] Nov 1 @ 10:33pm 
I have documented everything inside the resource files. You can go from the header, searching the file for the fonts listed there, or you can search for keywords, like "console", or "server browser", or even my name to find the stuff that's been altered or simply figured out — I left comments everywhere it could be helpful for anyone trying to learn from it.

As a bonus: Marlett font describes symbols used to indicate window buttons (such as minimize, close, resize and so on). It is described in every resource file. But since this font errors out during import, you don't see those symbols (aside from 'x', which is taken from a standard font family). However, there is still a way of loading it if you find the font and put it in your addon. Although it requires a different installation method, if I remember correctly.
El Daro  [author] Nov 1 @ 10:27pm 
After defining your new font with the old properties you have to change the following:
- For keybinding editor:
resource\l4d360uischeme.res —> { BaseSettings { SectionedListPanel.Font "YourNewFont" } }

- For menu titles:
resource\ui\l4d360ui\mainmenu.res —> { BtnGameModes { "subpicnamefont" "DefaultMedium" } }
This one doesn't have to be your new font. For example, here I used one of the default ones simply because it is in a separate optional addon (kind of the sole reason it exists as the optional addon in the first place, 'cause it would conflict with all of the server browser addons).
I did it to avoid introducing unnecessary dependancy.

But it doesn't stop there. The first tab of the Server Browser is actually described by a third font:
resource\sourcescheme.res —> Default

Note: Can't remember if console suggestions use the same font as input window or not, but since I don't have specific notes on them, I would say they do.
El Daro  [author] Nov 1 @ 10:26pm 
The console fonts are described in resource\sourcescheme.res

Console title is described by UIBold font.
Console output is described by ConsoleText font.
Console input window is DefaultSmall . But it also controls the Server Browser column titles.

And this is where it becomes interesting. Because it's a bit more complicated with Server Browser.

The main font it uses is Default in the resource\l4d360uischeme.res . But it is the default font for other UI elements, such as game titles and descriptions, or keybinding editor. And it scales automatically everywhere... aside from the Server Browser.
Which means you have to create a supplementary font with the old descriptions, and then make all the other panels use it instead. Because as soon as you define different properties for different resolutions, it can no longer be scaled automatically where it does so by default.
Crossbow Oct 31 @ 10:42am 
The l4d360uischeme.res file is a bit complicated, and I really don't understand it, so I had to ask you for help. Can you help me?
Crossbow Oct 31 @ 10:40am 
Hello, I want to change only the font size in the console and server browser. I know this mod works using chatscheme.res, clientscheme.res, sourcescheme.res, and the main file l4d360uischeme.res. Could you tell me which sections in l4d360uischeme.res are responsible for the console and server browser font sizes?
El Daro  [author] Dec 3, 2024 @ 6:01am 
No, not possible to do with addons. If it was, I would've done it already. But, alas, the size of the chat's input window is hardcoded.
Jmod Dec 2, 2024 @ 7:33pm 
Could you make it so the text on 4k screens fit the area so I can see what I'm writing fully? Like I can't exactly see what I'm typing because it gets cut off at the top/bottom. Still a nice mod for reading chat, just a little hard to type when I can't see what I'm typing exactly sometimes in case I make a mistake i won't know until after I post it.
Mekalygie May 27, 2024 @ 1:56pm 
Nvm, I saw an earlier comment with the same problem. It works! Thank you for this mod. :)
Mekalygie May 27, 2024 @ 1:51pm 
I have followed all steps correctly, but I can't change the autoexec.cfg file as it doesn't exist. The only file I have is autoexec.360 and it doesn't do anything since it's just a copy of the original for controller usage. I tried changing my settings to keyboard and mouse. I tried verifying my game files. I cannot find this file.
Can you please tell me if I'm missing something?
Fizzarolli Mar 16, 2024 @ 6:39am 
Nvm
Fizzarolli Mar 16, 2024 @ 6:39am 
Will this work for the text in the server browser
El Daro  [author] Dec 29, 2023 @ 12:43am 
All right, PM with the details and I'll walk you through it.
qxlf Dec 28, 2023 @ 11:31pm 
i have file extention on, i leave the vpk in the addons folder but nothing changes. im used to the smaller letters from the console by now, but still
El Daro  [author] Dec 28, 2023 @ 9:54am 
If you are using default Windows Explorer, make sure you have extensions visible. Otherwise you're saving the file with duplicated extensions.

If you are using Linux-based OS, some of the stuff might not work, depending on your distributive.
qxlf Dec 27, 2023 @ 8:07am 
followed all steps, and nothing changed. after i unsub from this add on, move the vpk file to the addons folder, then nothing changes in game. made the changes in the autoexec, still nothing. do i need to subscribe again to let the add on work?
Трупэр Jul 4, 2023 @ 12:32pm 
Я ВИЖУ БУКВЫ!!!!!!!!!!
El Daro  [author] Jun 6, 2023 @ 8:02pm 
P.S. Technically, there are only four essential '.res' files required for the add-on to work. Everything else is just corrections for the fonts that have become unscalable for certain parts of the GUI. You can find more info in the comment sections of every scheme file.
El Daro  [author] Jun 6, 2023 @ 8:02pm 
1. No, it doesn't. Font replacements are done through the very same basic scheme files that have been edited here in order to change the font sizes.

2. Well, yes, but actually no.
'addons.res' has only one line diff from the stock one. Since 'Default' font has been adjusted for the Server Browser page in the 'L4D360UIScheme.res', it was supplemented by a custom 'DefaultScalable' font for the add-ons description: it is basically the same as the old one, which means it gets scaled for the 'Add-ons' page automatically.
If some other add-on conflicts with this one only in the 'Add-ons' menu, you can rearrange the loading order to have it override mine. Worst you would get is a smaller/bigger font in the 'Add-ons' description panel.
Lettuce9018 Jun 6, 2023 @ 6:23pm 
I have 2 questions:

1: Does this work with font replacements?
2: Is the addons.res file replacement required for the mod to function?
Seaman Jun 2, 2023 @ 7:36am 
Thanks you, have a nice day
El Daro  [author] Jun 2, 2023 @ 6:49am 
No. `autoexec.360.cfg` is used for Xbox 360 or when Xbox controllers are connected to PC and used as your main input method.
If you can't find `auotexec.cfg`, just go on and create it.
Seaman Jun 1, 2023 @ 6:31am 
This might be a dumb question. I can't find the autoexec.cfg the only cfg that I find is autoexec.360.cfg. is this the same thing or no?
Tayzor Azul May 6, 2023 @ 2:29am 
Thanks for the info. I will give the addonlist a try.
El Daro  [author] May 5, 2023 @ 4:44pm 
For the most part, these two addons can work together. You will get the conflict message, but it's mostly about the addons and achievements menus. Depending on which addon loads the last, you will either get these menus affected by one addon or the other. So if you don't visit these pages often, you likely won't notice the difference.

You could edit the addonlist.txt file in the game folder (..\Steam\steamapps\common\Left 4 Dead 2\left4dead2\) to change the loading order.
Tayzor Azul May 5, 2023 @ 1:54pm 
My bad I posted the wrong link, its this one.
https://steamcommunity.com/sharedfiles/filedetails/?id=1291797268
El Daro  [author] May 5, 2023 @ 1:34pm 
There are no conflicts with this addon, so you can just use them together.
Tayzor Azul May 5, 2023 @ 11:38am 
How can I make this mod work with this one ?
https://steamcommunity.com/sharedfiles/filedetails/?id=121091252
Nigugu Apr 16, 2023 @ 10:25pm 
This gave me aimbot. Literally,  I am shooting headshots only. This is insane, totally recommended.

God Job Men :tank:
El Daro  [author] Jan 24, 2023 @ 6:59am 
None. You cannot dynamically change font sizes in the Source games.
21 Jan 23, 2023 @ 11:37pm 
which commands are responsible for the font size?
El Daro  [author] Jan 12, 2023 @ 3:36am 
There's only so much a modder can do.

The column widths are hardcoded, so unless you find the source code and recompile "serverbrowser.dll" for 1440p, also recompiling the whole game so that it would accept the new library file, you will have to cope with it.

Same goes for the "Latency" column. You can change the width of the other ones, but, apparently, Valve decided that the player count and ping would never need more space. And they actually don't, unless you adapt the fonts for high DPI screens.
Iris Jan 11, 2023 @ 8:15pm 
I can't preview the number of players anymore, help!
https://steamcommunity.com/sharedfiles/filedetails/?id=2916701552
joystick_on Jan 4, 2023 @ 1:01am 
Okay, thanks
El Daro  [author] Jan 3, 2023 @ 6:13pm 
Yes, it does. And it will conflict with every addon that affects the fonts in any way.

As for the second part: no, I do not. I promised no BS and I delivered no BS.
joystick_on Jan 3, 2023 @ 7:53am 
Does it conflict with https://steamcommunity.com/sharedfiles/filedetails/?id=2704870949 ?
Both addons change font but you seem to have it on your screenshots
El Daro  [author] Dec 11, 2022 @ 7:32pm 
The addon has been updated to v1.4.0.

This is the last major update that was planned out beforehand. And unless some flaws will be discovered, or small fonts that I have overlooked, there won't be no more updates.

Go through installation procedure again and come back some other day, maybe there will be something new.

If you strive for perfection, there is an additional addon that fixes the bug with the game mode titles in the main menu (it was introduced in v1.3.0 as a necessary tradeoff):
https://steamcommunity.com/sharedfiles/filedetails/?id=2900742715
It is in a separate project, because it would be incompatible with the most popular addons that add the server browser in the main menu. So use it only if you really want to, it is optional.
bohdi Nov 25, 2022 @ 10:25pm 
El Daro the savior (once again)! :stronk::stronk::stronk:
El Daro  [author] Nov 24, 2022 @ 6:52pm 
The addon has been updated to v1.3.0, now supporting 1440p (2K) and 2160p (4K) resolutions.
Go through installation procedure again and come back later for future updates.
This addon is still WIP.
anny Nov 23, 2022 @ 5:20pm 
as some dude use 1080p laptop monitor, this helped a lot, ty
≾22ςᶆ≿🖤 Nov 23, 2022 @ 4:24pm 
Test & Approve :steamthumbsup:
El Daro  [author] Nov 22, 2022 @ 11:51am 
The addon have been updated to v1.2.0.
Go through installation procedure again and come back later for future updates.
Maur0 Nov 22, 2022 @ 6:33am 
You are a savior. Thank you very much! Now I can see the console texts much better :)
Mla'ghir Nov 22, 2022 @ 3:04am 
Читерский аддон!