프로젝트 좀보이드

Project Zomboid에서 HDR 전체 화면 문제를 해결하는 방법

This game can cause problems for HDR users on Windows if they try to run it in fullscreen or borderless fullscreen. This guide explains the problem and provides a couple ways to fix it.

문제

Project Zombiod seems to cause problems on Windows when HDR is enabled. When the game is set to Fullscreen or Borderless Fullscreen, HDR is toggled off every time the window is selected.

나의 경우에는, my entire monitor has to reset itself (meaning, it blacks out for 2-3 초) every time HDR is toggled on or off. This means that every time I accidentally click off-screen or tap the windows key by mistake, I get a couple seconds of black screen, and as soon as I click back onto the game, I get another couple seconds of black screen:

Given the nature of Project Zomboid, a few seconds of black screen is more than enough to guarantee a bite, if not an instant death.

I’ve looked around in the Steam discussion page and noticed I’m not the only one with this issue, and while a few solutions seem to exist, none of them are to my liking. So I put my autism to work on finding an actual solution and came up with one of my own as well. In this guide I’ll share both.

고치다 #1: Disable HDR (Easy Mode)

The simplest and most straightforward fix is to just go into your Windows settings and disable HDR entirely. I find this droll, because I paid a lot of money for my HDR monitor, but this is the option for anyone who just wants a one-button fix for the problem.

  • Go to Windows Settings
  • Select ‘Display
  • Under the ‘Brightness & colorsection look for ‘Use HDR
  • Ensure the button is toggled ‘off

메모: You can toggle it back on manually this way after you’re done playing

고치다 #2: Run PZ Windowed (Easy Mode)

The issue of HDR getting turned on/off by the game does not occur when the game is set to Windowed mode. If you can tolerate having the windows titlebar and the taskbar on-screen while you play (I can’t) then you can go to the in-game Options menu and set it to Windowed.

고치다 #3: Hack window styles (Chad mode)

If toggling HDR before running the game is too annoying, or if dealing with the distractions of the taskbar and menubar in Windowed mode is just as bad, I came up with another option. We’re going to run the game in Windowed mode, but then we’re going to use a PowerShell script to access some System32 methods to remove the menubar from the game window. The end result will basically look the same as Borderless Fullscreen without the HDR problem.

첫 번째, get a copy of my script 여기.

The script consists of two parts:

  • pz.ps1PowerShell script file with code to pull methods from user32.dll to search for a window named “프로젝트 좀보이드” and apply window styling and sizing
  • PZ_Window_Fix.batBatch file that launches PowerShell and runs pz.ps1

It doesn’t matter where you put the files, they just need to be in the same folder.

메모: My script is written for a 4k monitor. If you have a different screen resolution, you’ll need to make a quick edit first. Use notepad or a similar text editor to open pz.ps1 and change the values at the top from 3840 그리고 2160 to the width and height of your screen:

If you have a 1080p screen, 예를 들어, you’ll need to change it to 1920 그리고 1080.

Once you have my script and it’s set to your screen size, launch the game, and make sure it’s running in Windowed mode and the window is not maximized. 그 다음에, double-click PZ_Window_Fix.bat and it removes the borders from the game window and fills the screen:

A slight annoyance that I haven’t been able to fix yet is that the taskbar sometimes gets stuck overtop the bottom of the game window even when it’s focused. This can be remedied by going to settings (after you’ve run the script) and changing the resolution back to your screen size.

이 가이드는 프로젝트 좀보이드 에 의해 작성되었습니다 Sunderbraze. 여기에서 원본 간행물을 방문할 수 있습니다. 링크. 이 가이드에 대해 우려 사항이 있는 경우, 주저하지 마시고 연락주세요 여기.

저자 소개