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

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.
Post Reply
Message
Author
iichan_lolbot
Veteran
Posts: 206
Joined: Tue Dec 30, 2008 9:18 am
Projects: iichan erogame
Contact:

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

#1 Post by iichan_lolbot » Mon Jan 10, 2011 1:47 pm

The bug is present only at "on-board" video adapters (tested on intel). Game sometimes fails to start when screen resolution is smaller then game resolution. We managed to start a test game with 8000x6000 pixels screen normally on this PC, all the real games falls with this error on different versions of renpy 6.11.

Code: Select all

I'm sorry, but an uncaught exception occurred.

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

While running game code:
 - script at line 745 of renpy-6.11.2/common/00library.rpy
 - python at line 745 of renpy-6.11.2/common/00library.rpy.

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

  File "C:\winterpack-win32\winterpack-win32\renpy\bootstrap.py", line 270, in bootstrap
  File "C:\winterpack-win32\winterpack-win32\renpy\main.py", line 310, in main
  File "C:\winterpack-win32\winterpack-win32\renpy\main.py", line 93, in run
  File "C:\winterpack-win32\winterpack-win32\renpy\execution.py", line 259, in run
  File "C:\winterpack-win32\winterpack-win32\renpy\ast.py", line 574, in execute
  File "C:\winterpack-win32\winterpack-win32\renpy\python.py", line 957, in py_exec_bytecode
  File "renpy-6.11.2/common/00library.rpy", line 745, in <module>
  File "C:\winterpack-win32\winterpack-win32\renpy\ui.py", line 216, in interact
  File "C:\winterpack-win32\winterpack-win32\renpy\display\core.py", line 1608, in interact
  File "C:\winterpack-win32\winterpack-win32\renpy\display\core.py", line 1951, in interact_core
  File "C:\winterpack-win32\winterpack-win32\renpy\display\core.py", line 1308, in draw_screen
  File "C:\winterpack-win32\winterpack-win32\renpy\display\render.py", line 353, in render_screen
  File "C:\winterpack-win32\winterpack-win32\renpy\display\render.py", line 141, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\layout.py", line 508, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\render.py", line 141, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\layout.py", line 508, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\render.py", line 141, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\layout.py", line 508, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\render.py", line 141, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\image.py", line 137, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\image.py", line 32, in wrap_render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\render.py", line 141, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\image.py", line 193, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\image.py", line 32, in wrap_render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\render.py", line 141, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\im.py", line 451, in render
  File "C:\winterpack-win32\winterpack-win32\renpy\display\swdraw.py", line 950, in load_texture
  File "C:\winterpack-win32\winterpack-win32\renpy\display\scale.py", line 469, in copy_surface
AttributeError: 'pygame.Surface' object has no attribute 'surface'

While running game code:
 - script at line 745 of renpy-6.11.2/common/00library.rpy
 - python at line 745 of renpy-6.11.2/common/00library.rpy.

Ren'Py Version: Ren'Py 6.11.2b
Attachments
opengl.txt
(1.85 KiB) Downloaded 38 times

iichan_lolbot
Veteran
Posts: 206
Joined: Tue Dec 30, 2008 9:18 am
Projects: iichan erogame
Contact:

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

#2 Post by iichan_lolbot » Wed Jan 12, 2011 2:02 pm

Help me plz :oops:

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: 'pygame.Surface' object has no attribute 'surface'

#3 Post by PyTom » Wed Jan 12, 2011 2:33 pm

I'm pretty sure this is a known bug that will be fixed in the next Ren'Py.
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

iichan_lolbot
Veteran
Posts: 206
Joined: Tue Dec 30, 2008 9:18 am
Projects: iichan erogame
Contact:

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

#4 Post by iichan_lolbot » Fri Jan 14, 2011 3:07 pm

Oh, thanks. Waiting for a fix then.

Post Reply

Who is online

Users browsing this forum: No registered users