[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] loading images and sounds
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] loading images and sounds
- From: Charles Joseph Christie II <sonicbhoc@xxxxxxxxx>
- Date: Tue, 1 May 2007 14:58:33 -0400
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 01 May 2007 14:58:35 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=aguoVWd0afaXaFY6/KjFTNhKCvJ8wr9g4NK8E3QiVgr2hyyULoC/viby5otRfuHXMY918/BATgVOAeHCtqIUXcrzwf0VvIfHdAaVuxE9r1G8UqXJTKNg2bZ1rUO4MVHQqTs8XIdIdv/CUEYGqvQdCg9N7sxXbPROrVzV+B7QXxU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=HG50e4vNbQ776rCoYJEO5zDwsKbK6aPrFeJYaxH/7ycAvTK3Y/ubdfqi2uUcH8QCtgHRK3rqekOOYK1czf+OiGzFojz15d/LwbC5HsacyOx/s0VgYVYRpMmEqBqTIWQXvuh9lTiWXqaZTCHCVeNW0AIImVQY4HbM5p2SY0uw39g=
- In-reply-to: <46378C6E.70904@bluewin.ch>
- References: <200705010753.51648.sonicbhoc@gmail.com> <200705011446.02421.sonicbhoc@gmail.com> <46378C6E.70904@bluewin.ch>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: KMail/1.9.6
On Tuesday 01 May 2007 02:52:30 pm DR0ID wrote:
> Charles Joseph Christie II schrieb:
> > On Tuesday 01 May 2007 02:40:24 pm DR0ID wrote:
> >>>>>> Hi again
> >>>>>>
> >>>>>> I looked at it for a moment and found following:
> >>>>>>
> >>>>>> 1.)stg.py
> >>>>>> in Player.update()
> >>>>>> uncomment slef.image.blit(self.image, ...) # this cuases a
> >>>>>> segmentation fault on my machine, winxp
> >>>>>>
> >>>>>> 2.)you have to add a Bullet.png in the img directory
> >>>>>>
> >>>>>> 3.) in stg.py in Boss.update() same line as in Player.update()
> >>>>>>
> >>>>>> 4.) in bullets.py in the Bullets class the same error as in the
> >>>>>> other classe in update()!
> >>>>>>
> >>>>>> otherwise it seem to work, although I cant see anything happen on
> >>>>>> screen except of the typing (cant see any bullet??).
> >>>>>>
> >>>>>> well done.
> >>>>>>
> >>>>>> ~DR0ID
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> PS: if you want to chat, I'm currently online in the IRC on #pygame
> >>>>>>
> >>>>>> :-)
> >>>>>
> >>>>> I think you have the old code... really really old. I uncommented the
> >>>>> player image stuff ages ago and I have a (really ugly) bullet in my
> >>>>> img folder. Did you use svn to get the code or what? I sent another
> >>>>> email, it should have my most up-to-date junk on it.
> >>>>
> >>>> I had the same problems that DR0ID had, and I got the code from
> >>>> subversion
> >>>>
> >>>> I think you forgot to svn add img/Bullet.png
> >>>
> >>> Yeah, I did. :P (I just fixed it, try it again)
> >>
> >> Hi again
> >>
> >> still segmenation faults on winxp. Sorry, this time I have no time to
> >> check where in the code they occure.
> >> (well blitting an image on itself at (0,0) does not make any sense,
> >> right?)
> >>
> >> ~DR0ID
> >
> > Well, it worked on all the other images... :P
> >
> > I don't know what to blit it to, then. Could this be the problem?
>
> Hi
>
> why do you want to blit and image to itself?
>
> Anyway you fill it just a line befor, so it has already only one color.
> It is that evil line, where you blit it to itself, that causes the
> segmentation fault (at least on my machine running winxp).
>
> As I told you, I commented these lines out and it worked.
>
> ~DR0ID
So then just get rid of all the self.image.blit lines or just remove what's in
the brackets?