[Dev] crash in GetLightOpacityStringForSurface with revision 229

Brian Fisher brian at hamsterrepublic.com
Tue Oct 28 11:51:34 PDT 2008


I guess so :)

On Tue, Oct 28, 2008 at 8:25 AM, James Paige <Bob at hamsterrepublic.com>wrote:

> It has 1.7.1release. Do we require 1.8.x now?
>
> ---
> James
>
> On Mon, Oct 27, 2008 at 10:18:58PM -0700, Brian Fisher wrote:
> >    That is a pygame version thing - what version of pygame is that box
> >    running?
> >
> >    On Mon, Oct 27, 2008 at 10:04 AM, James Paige <
> Bob at hamsterrepublic.com>
> >    wrote:
> >
> >      When I try to run using revision 229, I get a crash in
> >      GetLightOpacityStringForSurface where it says
> >
> >         return pygame.image.tostring(surface, "RGBA_PREMULT", True)
> >      ValueError: Unrecognized type of format
> >
> >      Here is the full traceback
> >
> >      ---
> >      James
> >
> >      james at doomtrain:~/src/mhgames/sidescroller$ python sidescroller.py
> >      Failed to find asset camera of type <class 'movement.SpeedStyle'>
> >      Traceback (most recent call last):
> >       File "sidescroller.py", line 105, in <module>
> >         game.run_game()
> >       File
> "/usr/lib/python2.5/site-packages/motherhamster/hamsterwheel.py",
> >      line 295, in run_game
> >         self._draw()
> >       File
> "/usr/lib/python2.5/site-packages/motherhamster/hamsterwheel.py",
> >      line 336, in _draw
> >         self.draw()
> >       File "sidescroller.py", line 85, in draw
> >         self.player.draw()
> >       File "/home/james/src/mhgames/sidescroller/player.py", line 104, in
> >      draw
> >         self.display.render(body, pos, scale=scale)
> >       File "/usr/lib/python2.5/site-packages/motherhamster/displayGL.py",
> >      line 409, in render
> >         self.pack_image(image)
> >       File "/usr/lib/python2.5/site-packages/motherhamster/displayGL.py",
> >      line 229, in pack_image
> >         if pack.pack_image(image):
> >       File "/usr/lib/python2.5/site-packages/motherhamster/displayGL.py",
> >      line 127, in pack_image
> >         pixels = GetLightOpacityStringForSurface(image.surface)
> >       File "/usr/lib/python2.5/site-packages/motherhamster/displayGL.py",
> >      line 33, in GetLightOpacityStringForSurface
> >         return pygame.image.tostring(surface, "RGBA_PREMULT", True)
> >      ValueError: Unrecognized type of format
> >      _______________________________________________
> >      Dev mailing list
> >      Dev at lists.motherhamster.org
> >      http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
>
> > _______________________________________________
> > Dev mailing list
> > Dev at lists.motherhamster.org
> > http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
>
> _______________________________________________
> Dev mailing list
> Dev at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/dev-motherhamster.org/attachments/20081028/e1070440/attachment-0002.htm>


More information about the Dev mailing list