Game keeps crashing at hospital scene.

Questions, answers and issues regarding releases.
Post Reply
Shirley101

Game keeps crashing at hospital scene.

Post by Shirley101 »

Whenever I try to play the game, as soon as I get to the part where Hisao is saying he'd been in the hospital for a few months, the game crashes, and I get this error message.


I'm sorry, but an exception occured while executing your Ren'Py
script.

AttributeError: 'pygame.Surface' object has no attribute 'surface'

While running game code:
- script call at line 27 of /Developer/Projects/ks_svn/Katawa Shoujo/game/imachine.rpy
- script call at line 177 of /Developer/Projects/ks_svn/Katawa Shoujo/game/_ui_early.rpy
- script at line 277 of /Developer/Projects/ks_svn/Katawa Shoujo/game/script-a1-monday.rpy
- python at line 199 of /Users/delta/Documents/ks svn/common/00nvl_mode.rpy.

-- Full Traceback ------------------------------------------------------------

File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\bootstrap.py", line 260, in bootstrap
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\main.py", line 310, in main
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\main.py", line 93, in run
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\execution.py", line 234, in run
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\ast.py", line 341, in execute
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\exports.py", line 539, in say
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\character.py", line 565, in __call__
File "/Users/delta/Documents/ks svn/common/00nvl_mode.rpy", line 199, in do_display
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\character.py", line 338, in display_say
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\ui.py", line 70, in interact
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\core.py", line 1578, in interact
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\core.py", line 1726, in interact_core
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\core.py", line 254, in predict
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\core.py", line 228, in visit_all
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\core.py", line 254, in <lambda>
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\im.py", line 501, in predict_one
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\im.py", line 195, in get
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\im.py", line 973, in load
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\scale.py", line 536, in rotozoom
File "C:\Documents and Settings\Shirley\Desktop\BOREDOM\Katawa Shoujo\renpy\display\scale.py", line 536, in rotozoom
AttributeError: 'pygame.Surface' object has no attribute 'surface'

While running game code:
- script call at line 27 of /Developer/Projects/ks_svn/Katawa Shoujo/game/imachine.rpy
- script call at line 177 of /Developer/Projects/ks_svn/Katawa Shoujo/game/_ui_early.rpy
- script at line 277 of /Developer/Projects/ks_svn/Katawa Shoujo/game/script-a1-monday.rpy
- python at line 199 of /Users/delta/Documents/ks svn/common/00nvl_mode.rpy.

Ren'Py Version: Ren'Py 6.10.2e


It's not installed in Program Files because I heard that if I installed it in another folder, this would stop happening. Any help?
User avatar
PyTom
Programming/Tech
Posts: 86
Joined: Mon Apr 23, 2007 10:51 pm

Re: Game keeps crashing at hospital scene.

Post by PyTom »

In renpy/display/scale.py, change:

Code: Select all

    def rotozoom(surf, angle, scale):
        new_surf = pgrender.rotozoom(surf.surface, angle, scale)
        return ScaledSurface(new_surf)
to:

Code: Select all

    def rotozoom(surf, angle, scale):
        new_surf = pgrender.rotozoom_unscaled(surf.surface, angle, scale)
        return ScaledSurface(new_surf)
Ren'Py Creator - KS Forum Host
SONOFKORUPT76
Posts: 3
Joined: Tue Mar 18, 2014 11:27 pm

Re: Game keeps crashing at hospital scene.

Post by SONOFKORUPT76 »

This keeps happening for me too, i need help badly.
SONOFKORUPT76
Posts: 3
Joined: Tue Mar 18, 2014 11:27 pm

Re: Game keeps crashing at hospital scene.

Post by SONOFKORUPT76 »

Could you please post how the text should be placed in order cause i copied and pasted the two texts in the notepad, but i started up the game again and it crashed as soon as I make it to the hospital part.Yeah I know i'm an idiot just please help me so i continue my lets play series on youtube.
Post Reply