[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] [BUG] pygame-ctypes -- various from Phil



Phil Hassey wrote:

Alex,

Thanks for all the fixes.  Here's another round of bugs for ya :)
(btw got svn fixed for pyweek2 game)

As a summary:
- i think tga loading is still not working (about 3 games)

TGA has always been working (I may have said something crazy wrong in my last email), it is TGA saving that is (still) not implemented.




svn co svn://www.imitationpickles.org/anathema/trunk
-- on falling into a pit --

File "anathema.py", line 924, in state_death_pit
img = pygame.transform.rotozoom(s,15,0.92)
File "/usr/lib/python2.4/site-packages/pygame/transform.py", line 339, in rotozoom
image = _to_PIL(surf, data)
File "/usr/lib/python2.4/site-packages/pygame/transform.py", line 113, in _to_PIL
raise ValueError, 'Unsupported pixel format' # TODO convert
ValueError: Unsupported pixel format

Fixed (was only a problem on 24-bit displays).

svn co svn://www.imitationpickles.org/chestival/trunk
-- on start of game --
(looks like it might be the tga issue)

Traceback (most recent call last):
  File "chestival.py", line 80, in ?
    game.run(intro.Main(game))
  File "/home/phil/code/chestival/pgu/engine.py", line 40, in run
    self.loop()
  File "/home/phil/code/chestival/pgu/engine.py", line 48, in loop
    if self.fnc('loop'): return
  File "/home/phil/code/chestival/pgu/engine.py", line 25, in fnc
    else: r = f()
  File "/home/phil/code/chestival/level.py", line 150, in loop
    c = self.hairs.diffs[0]*100/self.hairs.total[0]
ZeroDivisionError: integer division or modulo by zero

Can't replicate this, could you isolate the part of Pygame-ctypes that is working incorrectly?
Fixed some other bugs so that chestival now works for me.


svn co svn://www.imitationpickles.org/dynamite/trunk
-- on beating training level 2 --

Illegal instruction

Can't replicate. A stack trace from GDB might be helpful (with and without Psyco).


svn co svn://www.imitationpickles.org/pgu/trunk
-- on running examples/tilevid5.py --
Traceback (most recent call last):
  File "tilevid5.py", line 255, in ?
    run(init())
  File "tilevid5.py", line 230, in run
    g.loop()
  File "../pgu/vid.py", line 413, in loop
    self.loop_tilehits() #sprites move
  File "../pgu/vid.py", line 432, in loop_tilehits
    self._tilehits(s)
  File "../pgu/vid.py", line 467, in _tilehits
    t = tiles[layer[yy][xx]]
IndexError: list index out of range

Can't replicate. Again, can you show the part of Pygame-ctypes that is failing?


svn co svn://www.imitationpickles.org/py64/trunk
-- on running the game --

File "main.py", line 139, in init
screen.blit(pygame.transform.scale(tmp.subsurface(n*SW/2/m,n*SH/2/m,SW-n*SW/m,SH-n*SH/m),(SW,SH)),(0,0))
File "/usr/lib/python2.4/site-packages/pygame/transform.py", line 189, in scale
image = _to_PIL(surf)
File "/usr/lib/python2.4/site-packages/pygame/transform.py", line 113, in _to_PIL
raise ValueError, 'Unsupported pixel format' # TODO convert
ValueError: Unsupported pixel format

Fixed now (16-bit issue).

svn co svn://www.imitationpickles.org/pyweek2/trunk
-- on playing a level --

crashes, or levels look wrong. i think you said this is due to lack of tga support.

It seems to work now, the rustic fixes were enough. May need an expert eye. Many
"Exception exceptions.TypeError: "'NoneType' object is not callable" in ignored"
errors when quit, probably due to audio thread not shutting down cleanly.


svn co svn://www.imitationpickles.org/rustic/trunk
-- on playing a game --

crashes. i think this is due to lack of tga support.

Fixed (error in get_at for 24-bit surfaces).

the tronbot program
svn://www.imitationpickles.org/tronbot/trunk

still fails due to lack of a default font. i just ran python setup.py install on pygame-ctypes, do i need to do anything else to ensure that this doesn't happen:

File "/usr/lib/python2.4/site-packages/pygame/font.py", line 125, in __init__
file = pygame.pkgdata.getResource(_font_defaultname)
File "/usr/lib/python2.4/site-packages/pygame/pkgdata.py", line 66, in getResource
return file(os.path.normpath(path), 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.4/site-packages/pygame/freesansbold.ttf'

Can't replicate this. E.g.:

% python setup.py install --prefix ~/test-install
running install
running build
[.. many lines etc..]
% ls ~/test-install/lib/python2.4/site-packages/pygame/freesansbold.ttf
/home/alex/test-install/lib/python2.4/site-packages/pygame/freesansbold.ttf

The above fixes are in r950.

Alex.