Re: [pygame] Physics module status note
On, Fri Aug 15, 2008, Rene Dudfield wrote: > It doesn't look like there are any unittests? Are these going to be > added later? Yes. Regards Marcus pgpMrpEbFSJjn.pgp Description: PGP signature
Re: [pygame] Physics module status note
It doesn't look like there are any unittests? Are these going to be added later? On Fri, Aug 15, 2008 at 5:35 AM, Marcus von Appen <[EMAIL PROTECTED]> wrote: > On, Thu Aug 14, 2008, Peter Gebauer wrote: > > [...] >> Too early for a wishlist? :) > > No, but do not expect it to be implemented within the next days > ;-). We'd be happy to discuss and put your wishes on the TODO list. > > Regards > Marcus >
Re: [pygame] pgu broken with pygame 1.8.1release ? - patch for one bug(crash)
ah, bugger. I don't think we can fix this error in pygame. As the code was using: if type(x) == tuple: Unfortunately we can't make the Color type a tuple type. This is annoying, because pgu is used by a lot of games. So the Color changes in pygame 1.8.1 will break a lot of things. Well, they'll need to patch pgu. On Fri, Aug 15, 2008 at 12:46 AM, claudio canepa <[EMAIL PROTECTED]> wrote: > Knowing that a number of pygame games used pgu, and on top of that pyweek is > near, I take the liberty to re-post at pygame-users. > > pgu broken with pygame 1.8.1release ? - patch for one bug(crash) > Nine of the demos crash with the same (except script name) traceback: > > Traceback (most recent call last): > File "F:\cla 2008 08 13\trunk\examples\gui11.py", line 67, in ? > app.run(main) > File "..\pgu\gui\app.py", line 207, in run > self.loop() > File "..\pgu\gui\app.py", line 163, in loop > us = self.update(s) > File "..\pgu\gui\app.py", line 188, in update > self.paint(screen) > File "..\pgu\gui\app.py", line 174, in paint > container.Container.paint(self,screen) > File "..\pgu\gui\container.py", line 100, in paint > w.paint(sub) > File "..\pgu\gui\theme.py", line 288, in func > r = m(surface.subsurface(s,w._rect_content)) > File "..\pgu\gui\container.py", line 100, in paint > w.paint(sub) > File "..\pgu\gui\theme.py", line 288, in func > r = m(surface.subsurface(s,w._rect_content)) > File "..\pgu\gui\container.py", line 100, in paint > w.paint(sub) > File "..\pgu\gui\theme.py", line 288, in func > r = m(surface.subsurface(s,w._rect_content)) > File "..\pgu\gui\container.py", line 100, in paint > w.paint(sub) > File "..\pgu\gui\theme.py", line 286, in func > w.background.paint(surface.subsurface(s,w._rect_border)) > File "..\pgu\gui\theme.py", line 473, in paint > self.theme.render(s,v,r) > File "..\pgu\gui\theme.py", line 404, in render > ww,hh=box.get_width()/3,box.get_height()/3 > AttributeError: 'pygame.Color' object has no attribute 'get_width' > > The offending scripts are: > gui6.py > gui11.py > gui13.py > gui15.py > gui16.py > gui17.py > > html2.py > html3.py > html5.py > > Besides, gui9.py don't crash but misbehaves: with pygame 1.7.1 you can draw > boxes and circles but with pygame 1.8.1release no boxes and circles. > > I tried pgu '0.10.6' ( checked out from imitation pickles, rev 38 ), also > pgu-0.10.6.tar.gz from sourceforge and pgu 0.10.3, same results. > > The demos run fine with pygame 1.7.1 > > Extra info: > win xp + sp2, python 2.4.3 > > Okay, found the problem for the crashes: will manifest in widgets with solid > color background. > Cause: color was a tuple, now it is a pygame.colors.Color instance. See > patch for details. > A patch (against pgu svn imitation pickles r38) is attached. > It is pygame 1.7.1 and 1.8.1 compatible. > > The other problem (gui9.py misbehaving with pygame 1.8.1release) remains. > > -- > claxo > > - >
Re: [pygame] Physics module status note
On, Thu Aug 14, 2008, Peter Gebauer wrote: [...] > Too early for a wishlist? :) No, but do not expect it to be implemented within the next days ;-). We'd be happy to discuss and put your wishes on the TODO list. Regards Marcus pgpWAfY6vlvlV.pgp Description: PGP signature
Re: [pygame] Physics module status note
> as I think, there are some more people interested in the status of the > physics module (especially Peter :-), Zhang Fan works on, here's a short > note about its current state. > What has been accomplished so far? > > * World support is fully implemented > * Body support is fully implemented > * Joint support is fully implemented including recently added revolute > joints > * Shape support is implemented with AABB collision detection and > rectangular shape support Woohoo! Naturally, I've been following the SVN updates closely so I knew this already ;), but it's a great opportunity for the rest of the community to try it. I'm anxious to find out what others think about it. Too early for a wishlist? :) /Peter
[pygame] changes from pygame 1.7.1 to pygame 1.8.1
Hello, Here are the changes that I have noticed on Windows XP when porting my game from Python 2.4 / pygame 1.7.1 to Python 2.5 / pygame 1.8.1 (actually after moving back to Python 2.5 / pygame 1.7.1 the changes have disappeared, so they are probably linked to pygame 1.8.1). 1. The F10 keypress event now reaches the window, and activates the window menu (maximize, move, close, ...), so the F10 key is not usable anymore. 2. The game crashes after a display feature is activated (I haven't located the exact line that causes the crash, but it's a function that uses draw_line, display.flip, draw_rect, blit ; I can locate the line but I would have to reinstall 1.8.1 ; in the worst case I will check if the next version fixes this problem, since there are already reports about the blit function). Additionally, I have noticed that the pygame.mixer.find_channel() function still can return a reserved channel (I don't have a simple enough program to guarantee this; at least the Sound.play() method seemed to avoid the reserved channels). Hope it helps.
[pygame] pgu broken with pygame 1.8.1release ? - patch for one bug(crash)
Knowing that a number of pygame games used pgu, and on top of that pyweek is near, I take the liberty to re-post at pygame-users. pgu broken with pygame 1.8.1release ? - patch for one bug(crash) Nine of the demos crash with the same (except script name) traceback: Traceback (most recent call last): File "F:\cla 2008 08 13\trunk\examples\gui11.py", line 67, in ? app.run(main) File "..\pgu\gui\app.py", line 207, in run self.loop() File "..\pgu\gui\app.py", line 163, in loop us = self.update(s) File "..\pgu\gui\app.py", line 188, in update self.paint(screen) File "..\pgu\gui\app.py", line 174, in paint container.Container.paint(self,screen) File "..\pgu\gui\container.py", line 100, in paint w.paint(sub) File "..\pgu\gui\theme.py", line 288, in func r = m(surface.subsurface(s,w._rect_content)) File "..\pgu\gui\container.py", line 100, in paint w.paint(sub) File "..\pgu\gui\theme.py", line 288, in func r = m(surface.subsurface(s,w._rect_content)) File "..\pgu\gui\container.py", line 100, in paint w.paint(sub) File "..\pgu\gui\theme.py", line 288, in func r = m(surface.subsurface(s,w._rect_content)) File "..\pgu\gui\container.py", line 100, in paint w.paint(sub) File "..\pgu\gui\theme.py", line 286, in func w.background.paint(surface.subsurface(s,w._rect_border)) File "..\pgu\gui\theme.py", line 473, in paint self.theme.render(s,v,r) File "..\pgu\gui\theme.py", line 404, in render ww,hh=box.get_width()/3,box.get_height()/3 AttributeError: 'pygame.Color' object has no attribute 'get_width' The offending scripts are: gui6.py gui11.py gui13.py gui15.py gui16.py gui17.py html2.py html3.py html5.py Besides, gui9.py don't crash but misbehaves: with pygame 1.7.1 you can draw boxes and circles but with pygame 1.8.1release no boxes and circles. I tried pgu '0.10.6' ( checked out from imitation pickles, rev 38 ), also pgu-0.10.6.tar.gz from sourceforge and pgu 0.10.3, same results. The demos run fine with pygame 1.7.1 Extra info: win xp + sp2, python 2.4.3 Okay, found the problem for the crashes: will manifest in widgets with solid color background. Cause: color was a tuple, now it is a pygame.colors.Color instance. See patch for details. A patch (against pgu svn imitation pickles r38) is attached. It is pygame 1.7.1 and 1.8.1 compatible. The other problem (gui9.py misbehaving with pygame 1.8.1release) remains. -- claxo - Index: theme.py === --- theme.py(revisi¢n: 38) +++ theme.py(copia de trabajo) @@ -396,7 +396,7 @@ if box == 0: return -if type(box) == tuple: +if not isinstance(box,pygame.Surface): s.fill(box,r) return @@ -467,7 +467,7 @@ def paint(self,s): r = pygame.Rect(0,0,s.get_width(),s.get_height()) v = self.value.style.background -if type(v) == tuple: +if not isinstance(v,pygame.Surface): s.fill(v) else: self.theme.render(s,v,r)