Currently I was able to run Lucys Revenge and renpai 6.0.0 demo games without sound.
I have several questions about renpy.
1) Nokia 770 support max 16 color depth for a display, renpy try to set it to 32 and fails. In Lucys Revenge's renpy I saw some code for supporting 24 color depth, but it was deleted in 6.0.0. Is there any problem I should be aware?
I had to write this patch to deal with the problem:
Code: Select all
diff -ru renpy-6.0.0.old/renpy/display/core.py renpy-6.0.0/renpy/display/core.py --- renpy-6.0.0.old/renpy/display/core.py 2007-02-04 17:04:48.000000000 +0200 +++ renpy-6.0.0/renpy/display/core.py 2007-02-24 15:28:44.000000000 +0200 @@ -590,19 +590,26 @@ height = renpy.config.screen_height self.screen_xoffset = 0 + depth = 32 # Try out the widescreen mode. if os.environ.get('RENPY_FULLSCREEN_WIDE', False): wide_width = max(int(1.6 * height), width) try: - pygame.display.set_mode((wide_width, height), fsflag, 32) + d = pygame.display.mode_ok((wide_width, height), fsflag) + if d: + depth = d + pygame.display.set_mode((wide_width, height), fsflag, depth) self.screen_xoffset = (wide_width - width) // 2 width = wide_width except: pass + d = pygame.display.mode_ok((width, height), fsflag) + if d: + depth = d # The window we display things in. - self.window = pygame.display.set_mode((width, height), fsflag, 32) + self.window = pygame.display.set_mode((width, height), fsflag, depth) # Sample surface that all surfaces are created based on. sample = pygame.Surface((10, 10))
Nokia 770 have only 64mb on board, so when system is loaded, only about 24mb free user program. I have not looked at code very closely, but does renpy unload any pictures as game progress?
Nokia 770 support 800x480 resolution so images are cropped and I can't access any menu unless I modify script.rpy:
$ config.screen_width = 640
$ config.screen_width = 480
(This works for Lucys Revenge, but not for 6.0.0)
As a solution to this problem I see evironment variable to set fullscreen resolution. All images and absolute coordinates from scripts.rpy will be scalled from game resolution to screen resolution. This will allow to run game on low resolution display without modification to game itself.
Anyone have better idea?
4) During game start I see this message
Code: Select all
The _renpy module was not found. Please read module/README.txt for more information.
Everything seems to work without it.