Left 4 Dead 2
Speedrunner Tools
 Тема закреплена. Скорее всего, здесь есть важная информация.
Troubleshoot HUD
The stopwatch HUD originally configured for 1920x1080 resolution (Full HD) and doesn't look correct at others. Unfortunately, the game cannot scale some HUD elements.

Download below the needed addon for your monitor and place into the folder "left4dead/addons" locally. Or if you prefer to use only vscripts folder contents, you may also download STHUD separately (just to piece together the exploded HUD elements for cosmetic purposes).
  • STHUD[drive.google.com]– default size for Full HD monitors.

  • STHUD (2160p)[drive.google.com]– for 4K monitors.

  • STHUD (1440p)[drive.google.com]– for 2K monitors.

  • STHUD (720p)[drive.google.com]– for laptops with 1366x768 resolution.

  • STHUD Remove[drive.google.com]– to remove stopwatch HUD from the demo.

Despite that addons will be conflict each other, don't worry about it, simple make sure that any custom STHUD in your Add-ONs list is above[ibb.co] the main Speedrunner Tools addon in order to be activated (prolly, it's enough to just restart the game to make your local addons be higher, either set in addonlist.txt priority manually).

Custom
In case you'd love to edit STHUD by your own way, extract from pak01_dir.vpk this file "../resource/ui/hud/hudscriptedmode.res" for the further editing and then create your custom addon.

Also, it's possible to edit the HUD through the script functions. Here is example, adjusted to 1366x768 monitors. Push this code to the bottom of your vs_st_speedrun.nut script.
//adjusted by @nautilus2K#4790 g_STLib.Vars.HUD.Fields.timer_sec.slot = HUD_MID_BOX; g_STLib.Vars.HUD.Fields.timer_sec.flags = HUD_FLAG_AS_TIME | HUD_FLAG_NOBG | HUD_FLAG_ALIGN_RIGHT; g_STLib.Vars.HUD.Fields.timer_bg <- {slot = HUD_LEFT_TOP, dataval = ""}; HUDPlace(HUD_LEFT_TOP, 0.325, 0.001, 0.203, 0.054); // BG HUDPlace(HUD_MID_BOX, 0.417, -0.024, 0.1, 0.1); // 00:00 HUDPlace(HUD_LEFT_BOT, 0.524, 0.011, 0.1, 0.04); // 000 HUDPlace(HUD_MID_TOP, 0.47, 0.028, 0.1, 0.04); // ' qmark
But be careful, if you edit the HUD via scripts, the STHUD Remove no longer be able to remove it from the demo (pretty difficult to do this in general).

Just In Case
If you recorded the demo without timer and later for some reason decided to return it back, it's possible to recover the HUD through the hudscriptedmode.res file, by replacing positions of VISIBLE HUD with NOT VISIBLE HUD within tables. It works because the timer still active, but simple located outside the screen.

Extra HUD
Check this tutorial, if you need some additional HUD to your screen: https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/510955402/7130962134692101390/
Отредактировано シェイディ♑; 15 апр. 2024 г. в 0:34