How to properly change the game resolution? (2024)

Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.

Post Reply

  • Print view

7 posts• Page 1 of 1

Message

Author

M.Knight
Newbie
Posts: 15
Joined: Fri Jan 13, 2017 2:54 pm
Contact:

Contact M.Knight

Send private message

How to properly change the game resolution?

  • Quote

#1Postby M.Knight »

Hello,

When I created a VN project through Ren'Py, I chose the 1280x720 resolution. As a consequence, the gui.init line in gui.rpy looks like this :

Code: Select all

gui.init(1280, 720)

However, I realized that it would be better to switch the resolution to 1920x1080 and couldn't find the option to change it in Ren'Py itself, so I edited the above line to :

Code: Select all

gui.init(1920, 1080)

The issue is that while some of the screens successfully increased their resolution, others - such as the main menus - stayed exactly the same. The end result is this
The problem still occurs even if I add

Code: Select all

define config.screen_width = 1920define config.screen_height = 1080

to options.rpy

Is there a specific option/menu that I missed somewhere in Ren'Py or a simple way to apply the resolution change to all the game's GUI elements, or will I have to edit every single GUI value in the config files?
Thanks in advance.

PyTom
Ren'Py Creator
Posts: 16127
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Contact PyTom

Send private messageTwitterWebsite

Re: How to properly change the game resolution?

  • Quote

#2Postby PyTom »

Unfortunately, you basically have to regenerate the gui to change the resolution. That will overwrite all of the image files as well, but that's less bad, because the image files will be in the wrong resolution anyway.

Supporting creators since 2004
(When was the last time you backed up your game?)

"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Top

M.Knight
Newbie
Posts: 15
Joined: Fri Jan 13, 2017 2:54 pm
Contact:

Contact M.Knight

Send private message

Re: How to properly change the game resolution?

  • Quote

#3Postby M.Knight »

I forced the GUI regeneration (through the Change/Update GUI option) as you advised, and also deleted Persistent data.

The result is not quite perfect yet. While some elements have changed in size, some others are still misplaced :
https://i37.servimg.com/u/f37/11/48/49/65/resolu12.png
https://i37.servimg.com/u/f37/11/48/49/65/resolu11.png

Top

nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Contact nyaatrap

Send private messageTwitterWebsite

Re: How to properly change the game resolution?

  • Quote

#4Postby nyaatrap »

GUI images in its top folder won't be regenerated when only sizes are changed. It seems a bug or non-implemented feature that need to be fixed.

Top

Ocelot
Lemma-Class Veteran
Posts: 2498
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Contact Ocelot

Send private message

Re: How to properly change the game resolution?

  • Quote

#5Postby Ocelot »

This is more a problem with positioning and not images themselves. There a lot more problems than it is visible now (text width and positioning in textbox, for example)

Now you need to go through all of gui.rpy and change all values (for items positions, width and height of elements, etc.). Just go over each value, determine what it means and think if its value is sensible for new resolution.

< < insert Rick Cook quote here > >

Top

M.Knight
Newbie
Posts: 15
Joined: Fri Jan 13, 2017 2:54 pm
Contact:

Contact M.Knight

Send private message

Re: How to properly change the game resolution?

  • Quote

#6Postby M.Knight »

Damn, that sounds like a real pain. =O

I haven't really started working on the project and merely fiddled with the editor to get started.
Therefore, should I delete the project and regenerate it instead?

Top

henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

Contact henvu50

Send private message

Re: How to properly change the game resolution?

  • Quote

#7Postby henvu50 »

Damn it, somehow my renpy project started at 1280 x 720 instead of the 1920 x 1080 that I could've swore I selected. That selection menu is confusing.

How can I fix this? Do I have to transfer all my work to a new renpy project? It won't let me create a new Renpy project with the same Project name though.

There's always a problem. The problems never end. It's a continuous stream of never ending problems. I wonder when I'll be able to actually start making the game.

How are you supposed to pick 1920x1080 resolution? No matter what I do, Ren'py launcher refuses to make the game 1920x1080 resolution. It always makes it 1280x720

I hit the down arrow, it highlighted 1920x1080, then I hit enter?

It keeps making the new project at 1280x720.

Renpy version: renpy-7.4.5

Top

Post Reply

  • Print view

7 posts• Page 1 of 1

Return to “Ren'Py Questions and Announcements”

Who is online

Users browsing this forum: Ahrefs [Bot]

How to properly change the game resolution? (2024)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Francesca Jacobs Ret

Last Updated:

Views: 5895

Rating: 4.8 / 5 (48 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Francesca Jacobs Ret

Birthday: 1996-12-09

Address: Apt. 141 1406 Mitch Summit, New Teganshire, UT 82655-0699

Phone: +2296092334654

Job: Technology Architect

Hobby: Snowboarding, Scouting, Foreign language learning, Dowsing, Baton twirling, Sculpting, Cabaret

Introduction: My name is Francesca Jacobs Ret, I am a innocent, super, beautiful, charming, lucky, gentle, clever person who loves writing and wants to share my knowledge and understanding with you.