07th-mod / hou-plus

4 stars 1 forks source link

Switching to fullscreen mode causes the game to be inappropriately stretched #13

Open jroyvde opened 1 month ago

jroyvde commented 1 month ago

Bug Information

Switching to fullscreen causes the game to be stretched horizontally, resulting in widened graphics and black bars at the top and bottom of the screen. Menus don't seem to be affected and will fill the whole screen. In addition, switching back to windowed mode from fullscreen causes the game's visuals to be frozen or stuck, needing a program restart to fix.

To reproduce: Change to fullscreen mode in the options.

Expected behavior: Everything should display correctly.

Install Information

The game: Higurashi When They Cry Hou+

The mod variant: Full

I installed the patch: Using the Installer

I bought the game at: MangaGamer

Mod Install Date: 6th August 2024

System Information

My operating system is: Linux (Fedora 40)

State anything "special" about your computer's setup: N/A

Screenshots

Screenshot_20240806_211935

drojf commented 1 month ago

If you have any previous chapters installed (ch1-9), does it happen on those chapters too? (From my testing a long time ago, it shouldn't happen on previous chapters)

drojf commented 1 month ago

Actually never mind, I can confirm this issue happens on my side (Steam + Ubuntu)

Also, the unmodded game does not have this issue, so it is something to do with the mod.

drojf commented 1 month ago

@jroyvde I found/remembered we have a workaround if you just want to play the game for now

  1. Open the game
  2. Press F10 to open the mod menu
  3. Go to "Graphics" tab
  4. At the very bottom, there is a small section called "Fullscreen Resolution Override"
  5. Fill in your screen resolution for the "width" and "height" (I filled in Width: 1920, Height: 1080).
  6. Click the "Click repeatedly to override" button three or more times to save the value.
    • NOTE: this will save a value to a Unity config file somewhere on your computer, so it will be remembered even if you close the game
  7. Click "Go Fullscreen" button on the mod menu or on the main "Config" menu to go fullscreen
  8. Going back to "windowed" now also works (I don't understand why this fixes going fullscreen->windows lol)

I closed the game and opened it again and it was still "fixed". But I guess if you change monitors or sth you will need to update the fullscreen resolution.


Also on that section of the mod menu, you can see what resolution the game "thinks" is fullscreen. My game "thinks" fullscreen is 1400 x 1050 (when it should be 1080p), which is likely the cause this this problem.

drojf commented 1 month ago

I believe I've figured out this issue (and some other issues related to resolution too)

If you replace your HigurashiEp10_Data/Managed/Assembly-CSharp.dll file with the one in this archive it should fix it: Assembly-CSharp-linux-resolution-fix-2024-08-12.zip

See here for details: https://github.com/07th-mod/higurashi-assembly/pull/128

drojf commented 3 days ago

This issue is partially fixed now, as of release https://github.com/07th-mod/hou-plus/releases/tag/v1.1.0

But I noticed some bugs occuring on my machine which should be fixed: