Imouto mode - Automatic scaling

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Message
Author
User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Imouto mode - Automatic scaling

#1 Post by monele » Mon Feb 04, 2008 5:24 am

I can't believe I can't find it anymore : how does one activate this mode? o_o;... And what's the official name?

User avatar
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

#2 Post by PyTom » Mon Feb 04, 2008 10:02 am

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: Imouto mode - Automatic scaling

#3 Post by monele » Mon Feb 04, 2008 11:21 am

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.

User avatar
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

#4 Post by PyTom » Mon Feb 04, 2008 12:15 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
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

#5 Post by chronoluminaire » Mon Feb 04, 2008 1:21 pm

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". :P)
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!

User avatar
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

#6 Post by PyTom » Mon Feb 04, 2008 1:32 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: Imouto mode - Automatic scaling

#7 Post by monele » Mon Feb 04, 2008 2:14 pm

do you have a really good use-case for it?
Uuh... no... :'(... Don't kill imouto, pwease! She's done nothing!

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.

User avatar
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

#8 Post by PyTom » Mon Feb 04, 2008 2:37 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
farvardin
Regular
Posts: 28
Joined: Tue Mar 13, 2007 8:15 am
Contact:

Re: Imouto mode - Automatic scaling

#9 Post by farvardin » Sat Mar 15, 2008 6:47 am

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 :

Code: Select all

        config.screen_width = 800
        config.screen_height = 600
        renpy_scale_factor = 0.7
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 ?

User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: Imouto mode - Automatic scaling

#10 Post by monele » Sat Mar 15, 2008 9:08 am

"renpy_scale_factor" must be an environment variable. What OS are you using?

User avatar
farvardin
Regular
Posts: 28
Joined: Tue Mar 13, 2007 8:15 am
Contact:

Re: Imouto mode - Automatic scaling

#11 Post by farvardin » Sat Mar 15, 2008 10:21 am

I'm using linux.

I understand now, so I've typed :

Code: Select all

export RENPY_SCALE_FACTOR=0.7
./NettestadtTroll.sh 
but then the game crashed :
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.
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.

User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: Imouto mode - Automatic scaling

#12 Post by monele » Sat Mar 15, 2008 11:26 am

Sadly, this goes beyond my knowledge :/... We'll have to wait for the author or PyTom to get an in depth analysis ^^;

User avatar
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

#13 Post by PyTom » Sat Mar 15, 2008 12:05 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
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

#14 Post by PyTom » Sat Mar 15, 2008 12:49 pm

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:

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))
which is found around line 637.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
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

#15 Post by rocket » Sat Mar 15, 2008 2:04 pm

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?

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]