stretched UI issue using 5760x1080

Post Reply
KPEX
Posts: 1
Joined: Wed Feb 24, 2021 5:23 am

Wed Feb 24, 2021 8:28 am

Hi guy, love the game... but.

from changing to 5760x1080 my UI looks like this. (see below for screenshots)


any way to reduce the stretch marks? :lol:


using an Alienware RTX 3080 10GB OEM with 3x27" monitors

yeah I can revert back to 1920x1080 and only have the middle screen usable... please stick to the topic if you're going to "comment"

Steam name KPEX.
screenshots should be set to public if you want to see more of them. (if you're sadistic enough)

Cheers

KPEX
Attachments
20210213035952_1.jpg
20210213035952_1.jpg (1.39 MiB) Viewed 9844 times
20210213035747_1.jpg
20210213035747_1.jpg (651.52 KiB) Viewed 9844 times
20210213035716_1.jpg
20210213035716_1.jpg (720.65 KiB) Viewed 9844 times

User avatar
Borgrumm
Posts: 20
Joined: Wed Jul 08, 2020 11:39 am
Location: France (near Paris)

Tue Mar 09, 2021 4:47 pm

Hi

I have a bad news for you... there is no solution.
The user interface was built in percent of the display area with a basic resolution set to 1920x1080.
This allow correct downsizing but create streched upsizing, as your screen captures show.
When Kenshi was created you video resolution was not even a dream...
Bheuuuarrrg

Stone-D
Posts: 4
Joined: Tue Nov 02, 2021 3:05 am

Tue Nov 02, 2021 3:42 am

So, I've actually found a solution for this. Unfortunately, there isn't a "one size fits all".

The values I am using are for a horizontal measurement of 3840: an LG 38GN950. If you're using 5760 or 2560 or whatever, you will need to fiddle with the numbers.

Dark UI Original:
DarkUI Original.jpg
DarkUI Original.jpg (735.58 KiB) Viewed 9752 times
Dark UI Modified:
DarkUI Modified.jpg
DarkUI Modified.jpg (996.45 KiB) Viewed 9752 times
You need to modify the layout files. You can either edit them in place, or create a mod that serves this purpose (a blank one is fine, all you're doing is replacing files and not changing gameplay features). I took door number two, and used the Dark UI files as a basis as that's the UI I am using. This method works with the originals, though.

The files you need are in:

Code: Select all

... Kenshi\data\gui\layout
For the main interface, the most problematic, you need Kenshi_MainPanel.layout.
For the build interface, Kenshi_BuildWindow.layout

These two are very similar, and the values are the same for the original and for Dark UI.

At the very top, find this line:

Code: Select all

<Widget type="Widget" skin="PanelEmpty" position_real="0 0 1 1" align="Stretch" layer="Middle" name="Root">
Change this to

Code: Select all

<Widget type="Widget" skin="PanelEmpty" position_real="0.15 0.08 0.7 0.9" align="Stretch" layer="Middle" name="Root">

For the Statistics window, Kenshi_StatsWindow.layout.

At the very top, find this line. Original/Dark UI values differ, this is for Dark UI:

Code: Select all

<Widget type="Window" skin="Kenshi_WindowCXP" position_real="0 0 0.66093748807907104 0.60555553436279297" layer="Window" name="Root">
Change this to

Code: Select all

<Widget type="Window" skin="Kenshi_WindowCXP" position_real="0 0 0.5 0.60555553436279297" layer="Window" name="Root">
Basically, change the third number to 0.5. You'll need less at 5760, try 0.3.

For the map, squad management, research, etc, you need Kenshi_OverviewWindow.layout
DarkUI Modified.jpg
DarkUI Modified.jpg (996.45 KiB) Viewed 9752 times
At the very top, find this line. Again, the values aren't identical but they are very close to the original:

Code: Select all

<Widget type="Window" skin="Kenshi_WindowCX" position_real="0 0 0.45104166865348816 0.73055553436279297" layer="Window" name="Root">
Change this to

Code: Select all

<Widget type="Window" skin="Kenshi_WindowCX" position_real="0 0 0.35104166865348816 0.63055553436279297" layer="Window" name="Root">
In this case, I've lowered the both the 3rd and 4th numbers.

Good luck.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests