jes icon indicating copy to clipboard operation
jes copied to clipboard

Window larger than screen

Open timmipol opened this issue 11 months ago • 8 comments

I tried booting the program up and it worked (aside from the font file which i fixed manually) but the window is larger than my screen making some things cut off Screenshot_364

timmipol avatar Jan 15 '25 09:01 timmipol

You can use any resolution but it breaks a lot of stuff. Change line 23 in jes.py from 1920x1080 to anything you want ui = UI(_W_W=1920, _W_H=1080, _MOVIE_SINGLE_DIM=(650,650),

azealo avatar Jan 15 '25 20:01 azealo

You can use any resolution but it breaks a lot of stuff. Change line 23 in jes.py from 1920x1080 to anything you want ui = UI(_W_W=1920, _W_H=1080, _MOVIE_SINGLE_DIM=(650,650), Yes but that messes up the UI like the buttons. I can't show a screenshot right now because i'm in bed and it's 12:12AM

timmipol avatar Jan 15 '25 20:01 timmipol

You can use any resolution but it breaks a lot of stuff. Change line 23 in jes.py from 1920x1080 to anything you want ui = UI(_W_W=1920, _W_H=1080, _MOVIE_SINGLE_DIM=(650,650), Yes but that messes up the UI like the buttons. I can't show a screenshot right now because i'm in bed and it's 12:12AM

Play around in SRWE maybe that will work , I used that tool to make some games fullscreen

azealo avatar Jan 15 '25 20:01 azealo

Are there any solutions for macOS?

EthanHoldn avatar Jan 15 '25 21:01 EthanHoldn

I found a temporary fix for Linux, running jes.py with gamescope can scale it properly. I am using Bazzite with KDE Plasma 6 gamescope python jes.py

azealo avatar Jan 17 '25 19:01 azealo

Are there also any solutions for Windows?

Juancraft567 avatar Jan 19 '25 22:01 Juancraft567

I'm using a mac M3, I'm pretty sure it's the screen resolution. Tried to change the window size in the UI code like @azealo said but it threw some error:

Traceback (most recent call last): File "/Users/fhohensee/Downloads/jes-main/jes.py", line 23, in ui = UI(_W_W=1920/2, _W_H=1080/2, _MOVIE_SINGLE_DIM=(650,650), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/fhohensee/Downloads/jes-main/jes_ui.py", line 58, in init self.mosaicScreen = pygame.Surface((self.MS_WC,self.MS_H), pygame.SRCALPHA, 32) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pygame.error: Invalid resolution for Surface

What worked for me was multiplying the MENU_TEXT_UP by 2 so I could see the buttons, then halving the font size (search for self.bigFont and self.smallFont in jes_ui.py) so I could read the text. A bunch of things are still broken but it kinda works now.

mrfoogles avatar Feb 04 '25 05:02 mrfoogles

There are a lot of UI parameters that are hardcoded, and don't depend on the screen size in any way.

Messing with these values will screw up a lot of the visuals because things that should depend on eachother or on a common variable are instead individually hardcoded, e.g. adjusting the size of the graph/SAC does not affect the size of the green progress bar or the location of the names of species that are meant to be displayed next to the SAC.

It unfortunately takes a lot of fiddling and deciphering of the code to make it remotely usable at a different resolution.

LockRay avatar Apr 19 '25 09:04 LockRay