Imouto mode - Automatic scaling
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.
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.
Imouto mode - Automatic scaling
I can't believe I can't find it anymore : how does one activate this mode? o_o;... And what's the official name?
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
Re: Imouto mode - Automatic scaling
You need to set the RENPY_SCALE_FACTOR environment variable to a number. To make things half as big, for example, you would set RENPY_SCALE_FACTOR=0.5
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: Imouto mode - Automatic scaling
Thanks ^^. Has this been put in any documentation yet? I search the forum and the doc for "automatic scaling" and "imouto" and found absolutely nothing except discussions about it, but never the exact procedure. Weird.
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
Re: Imouto mode - Automatic scaling
No, imouto-mode isn't really documented anywhere. I'm not 100% sure I want to keep supporting it... do you have a really good use-case for it?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- chronoluminaire
- Eileen-Class Veteran
- Posts: 1153
- Joined: Mon Jul 07, 2003 4:57 pm
- Completed: Elven Relations, Cloud Fairy, When I Rule The World
- Tumblr: alextfish
- Skype: alextfish
- Location: Cambridge, UK
- Contact:
Re: Imouto mode - Automatic scaling
Ooo. Well, now that I know about it, I'd be vaguely tempted to try playing some Ren'Py games on my 640x480 screen WM5 PDA. I know Python exists for Windows Mobile, and I'd guess that dropping a file into some distributed game's game directory containing that one line in an init: block might apply the scaling to the game. Now I just need to figure out how to run Ren'Py in the version of Python that exists for WM, and...
(Feel free to interpret this entire post as saying "No, I don't have a really good use-case for it".
)
(Feel free to interpret this entire post as saying "No, I don't have a really good use-case for it".
I released 3 VNs, many moons ago: Elven Relations (IntRenAiMo 2007), When I Rule The World (NaNoRenO 2005), and Cloud Fairy (the Cute Light & Fluffy Project, 2009).
More recently I designed the board game Steam Works (published in 2015), available from a local gaming store near you!
More recently I designed the board game Steam Works (published in 2015), available from a local gaming store near you!
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
Re: Imouto mode - Automatic scaling
I wouldn't expect it to work very well. Apart from Python 2.5 and pygame, we also require a couple of Ren'Py specific modules, _renpy and pysdlsound, to handle graphics and audio, respectively. And those modules have a dozen or so dependencies between them.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: Imouto mode - Automatic scaling
Uuh... no... :'(... Don't kill imouto, pwease! She's done nothing!do you have a really good use-case for it?
I was just thinking I'd like to see my games in 320x240 and/or try some new development on a 640x480 base and see if it would work in 320x240 as well without having to change *everything* (config, pictures, font sizes) constantly.
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
Re: Imouto mode - Automatic scaling
Well, I'm not really going to kill it. (6.6 fixes some bugs with it, in fact.) But I'm not sure I want to document it as is...
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: Imouto mode - Automatic scaling
I'm trying to play a game on my EEE PC (it is the Nettestadt Troll, it's not very old), the screen is 800x480 but the game screen is bigger.
How can I use this imouto mode ? I've tried to modify the options.rpy file, this way :
but it doesn't work at all. I've tried to add the renpy_scale_factor into the script.rpy but it's doesn't work either.
What could I do ?
How can I use this imouto mode ? I've tried to modify the options.rpy file, this way :
Code: Select all
config.screen_width = 800
config.screen_height = 600
renpy_scale_factor = 0.7What could I do ?
Re: Imouto mode - Automatic scaling
"renpy_scale_factor" must be an environment variable. What OS are you using?
Re: Imouto mode - Automatic scaling
I'm using linux.
I understand now, so I've typed :
but then the game crashed :
I understand now, so I've typed :
Code: Select all
export RENPY_SCALE_FACTOR=0.7
./NettestadtTroll.sh EDIT : it's probably because of the Renpy Version, because it worked with another game, but when I copied a newer renpy version over the one for the game, I got the same error, so maybe the game is using a feature uncompatible with the scaling.Using scale factor of 0.700000.
File "/home/DATA/partage/renpy/NettestadtTroll-linux-x86/renpy/bootstrap.py", line 197, in bootstrap
renpy.main.main()
File "/home/DATA/partage/renpy/NettestadtTroll-linux-x86/renpy/main.py", line 292, in main
game.interface = renpy.display.core.Interface()
File "/home/DATA/partage/renpy/NettestadtTroll-linux-x86/renpy/display/core.py", line 946, in __init__
self.display = Display(self)
File "/home/DATA/partage/renpy/NettestadtTroll-linux-x86/renpy/display/core.py", line 640, in __init__
renpy.config.window_icon))
TypeError: argument 1 must be pygame.Surface, not Surface
After initialization, but before game start.
Re: Imouto mode - Automatic scaling
Sadly, this goes beyond my knowledge :/... We'll have to wait for the author or PyTom to get an in depth analysis ^^;
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
Re: Imouto mode - Automatic scaling
That may be a bug in imouto-mode. I'll be fixing it shortly.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
Re: Imouto mode - Automatic scaling
Actually, correction. It was fixed in a previous release... so it's not a problem with current games.
To fix it in the Netteststadt Troll, you'll want to edit renpy/display/core.py, and delete the lines:
which is found around line 637.
To fix it in the Netteststadt Troll, you'll want to edit renpy/display/core.py, and delete the lines:
Code: Select all
if renpy.config.window_icon:
pygame.display.set_icon(
pygame.image.load(renpy.loader.load(renpy.config.window_icon),
renpy.config.window_icon))
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- rocket
- Veteran
- Posts: 373
- Joined: Tue Jul 10, 2007 2:54 am
- Projects: Starlight Ep0, Ep1
- Location: San Fransisco
- Contact:
Re: Imouto mode - Automatic scaling
Since we're on the topic I was wondering if imouto mode could be used for scaling some character sprites down during play to create the effect of characters stepping further away but not leaving the room, but without having to create duplicate sprites?
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]



