Well, I did what I thought should work but I'm getting errors, so presumably I'm doing something wrong. I can get it to do a section of Visual Novel in Ren'Py, then play a game of chess just fine; but if it tries to return to Ren'Py or you close the window I get hit with this traceback:
Code: Select all
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 at line 18 of C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\Chess/game/script.rpy
- python at line 18 of C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\Chess/game/script.rpy.
-- Full Traceback ------------------------------------------------------------
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\bootstrap.py", line 260, in bootstrap
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\main.py", line 308, in main
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\main.py", line 92, in run
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\execution.py", line 230, in run
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\ast.py", line 558, in execute
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\python.py", line 921, in py_exec_bytecode
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\Chess/game/script.rpy", line 18, in <module>
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\exports.py", line 592, in pause
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\ui.py", line 69, in interact
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\core.py", line 1364, in interact
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\core.py", line 1663, in interact_core
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\core.py", line 992, in show
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\render.py", line 739, in draw_screen
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\render.py", line 613, in draw
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\render.py", line 613, in draw
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\render.py", line 613, in draw
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\render.py", line 613, in draw
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\render.py", line 613, in draw
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\render.py", line 613, in draw
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\render.py", line 497, in draw
File "C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\renpy\display\scale.py", line 362, in blit
AttributeError: 'pygame.Surface' object has no attribute 'surface'
While running game code:
- script at line 18 of C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\Chess/game/script.rpy
- python at line 18 of C:\Documents and Settings\Owner\My Documents\Flash\renpy-6.9.3\Chess/game/script.rpy.
Ren'Py Version: Ren'Py 6.9.3c
Line 18 is the first line of Ren'Py script after the game has finished running, it doesn't seem to matter what it is, it always gives this traceback. I'm guessing I need to adjust something in the pygame thing but I don't know what; there's nothing I can see that even uses surface as an attribute (unless it's hidden in Ren'Py somewhere).