Graveyard Keeper

Graveyard Keeper

Not enough ratings
Adding support for Superwide and Ultrawide resolutions 5120x1440 (32:9) / 3440x1440 (21:9)
By соус татарин
This is a hack of hard-coded code for maximum game resolution
   
Award
Favorite
Favorited
Unfavorite
Intro
This is a hack of hard-coded code for maximum game resolution

The value has been changed from 2560 to 5120
And also, the area of fog has been increased from 6 to 8 (tested only for 3440x1440 resolution)

Tested on game version - 1.404
Warning!
Some elements of the game may not display correctly, since this was not provided by the developers!

For example - game menu
Gameplay screenshots
16:9
21:9
32:9
Instructions
You can use a modified file or make changes manually
Installing modified file
  1. Download modified file - http://puu.sh/IAvRz/5091af952a.dll
  2. Copy Assembly-CSharp.dll to the game folder
    Graveyard Keeper\Graveyard Keeper_Data\Managed
  3. Agree to replace the file
  4. Now you can choose your resolution in the game settings
Manual modification
  1. Download dnSpy from GitHub - https://github.com/dnSpy/dnSpy/releases
  2. Unpack and run dnSpy.exe
  3. Opening the file Assembly-CSharp.dll from your game folder
    Graveyard Keeper\Graveyard Keeper_Data\Managed
  4. Expanding the file tree structure, open - section
    Assembly-CSharp Assembly-CSharp.dll -
  5. Scroll down to ResolutionConfig, and right click -> Edit Class (C#)...
  6. Find
    if (height <= 1440 && width <= 2560)
  7. Edit 2560 to 5120
    if (height <= 1440 && width <= 5120)
  8. After that, click Compile in the bottom right
  9. Scroll up to FogObject, and right click -> Edit Class (C#)...
  10. Find
    else if (this.tile_pos.x > 6f - FogObject.BORDER_X)
  11. Edit 6f to 8f
    else if (this.tile_pos.x > 8f - FogObject.BORDER_X)
  12. Find
    for (int i = 0; i < 6; i++)
  13. Edit 6 to 8
    for (int i = 0; i < 8; i++)
  14. Find
    private readonly Vector3 TILES_X_VECTOR = new Vector2(36f, 0f);
  15. Edit 36f to 48f
    private readonly Vector3 TILES_X_VECTOR = new Vector2(48f, 0f);
  16. Also click Compile in the bottom right
  17. Select File -> Save All...
  18. Now you can choose your resolution in the game settings
5 Comments
Dimossa Mar 18 @ 5:04pm 
same question about the text
Nerdfection Feb 24 @ 11:53pm 
Anyone have any clue how to remove the white text on the right side for the 32:9 resolution? You can see it in the screenshot.
Spirit_Champ Dec 31, 2024 @ 9:39am 
Many thanks to the author, I would like to point out two important points. 1st - the calendar with the days of the week is now hidden by 70-80%. 2nd - my scary rtx 3060 does not pull this miracle and shows 20, or at best 40 fps. The game has optimization problems even before the release.:kovaccry:
DrPhreezy Jan 6, 2024 @ 4:06pm 
the fog pop in was driving me mad...thanks!!
Jean Freitas Dec 17, 2022 @ 8:39pm 
Thanks! works for me with LG34WP65C.