Game crashes on F button press while player's moving

Bug #343935 reported by Brian Moriya
2
Affects Status Importance Assigned to Milestone
Blood Curse
Fix Committed
Undecided
Brian Moriya

Bug Description

If the player is moving while fullscreen is toggled with the 'F' key, the game crashes:

  File "/home/axion/dev/bloodcurse/axion-branch/lib/scene.py", line 91, in event_check
    keyid = self.player.move_keys.index(pygame.key.name(event.key))
ValueError: list.index(x): x not in list

Changed in blood-curse:
assignee: nobody → axion
Revision history for this message
Brian Moriya (brian-moriya) wrote :

I almost have this bug fixed.

Changed in blood-curse:
assignee: axion → brian-moriya
Revision history for this message
Michael Fiano (axion) wrote : Re: [Bug 343935] Re: Game crashes on F button press while player's moving

Great, that bug's been bugging me all day.

On Tue, Mar 17, 2009 at 4:07 PM, Brian Moriya <email address hidden>wrote:

> I almost have this bug fixed.
>
> ** Changed in: blood-curse
> Assignee: Michael Fiano (axion) => Brian Moriya (brian-moriya)
>
> --
> Game crashes on F button press while player's moving
> https://bugs.launchpad.net/bugs/343935
> You received this bug notification because you are subscribed to Blood
> Curse.
>

Revision history for this message
Brian Moriya (brian-moriya) wrote :

After you posted it, I tested it and became obsessed with it. I've almost
got it, if I don't get it this break, I will fix it when I get home from
work.

On Tue, Mar 17, 2009 at 1:19 PM, Michael Fiano <email address hidden> wrote:

> Great, that bug's been bugging me all day.
>
> On Tue, Mar 17, 2009 at 4:07 PM, Brian Moriya
> <email address hidden>wrote:
>
> > I almost have this bug fixed.
> >
> > ** Changed in: blood-curse
> > Assignee: Michael Fiano (axion) => Brian Moriya (brian-moriya)
> >
> > --
> > Game crashes on F button press while player's moving
> > https://bugs.launchpad.net/bugs/343935
> > You received this bug notification because you are subscribed to Blood
> > Curse.
> >
>
> --
> Game crashes on F button press while player's moving
> https://bugs.launchpad.net/bugs/343935
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Blood Curse: New
>
> Bug description:
> If the player is moving while fullscreen is toggled with the 'F' key, the
> game crashes:
>
> File "/home/axion/dev/bloodcurse/axion-branch/lib/scene.py", line 91, in
> event_check
> keyid = self.player.move_keys.index(pygame.key.name(event.key))
> ValueError: list.index(x): x not in list
>

--
Regards,

Brian S. Moriya

Revision history for this message
Michael Fiano (axion) wrote :

Haha, be careful. That bug will make you waste a whole day :) You're
probably a lot farther than I am. I've progressed in the headache
department, that's about it.

On Tue, Mar 17, 2009 at 6:13 PM, Brian Moriya <email address hidden>wrote:

> After you posted it, I tested it and became obsessed with it. I've almost
> got it, if I don't get it this break, I will fix it when I get home from
> work.
>
> On Tue, Mar 17, 2009 at 1:19 PM, Michael Fiano <email address hidden>
> wrote:
>
> > Great, that bug's been bugging me all day.
> >
> > On Tue, Mar 17, 2009 at 4:07 PM, Brian Moriya
> > <email address hidden>wrote:
> >
> > > I almost have this bug fixed.
> > >
> > > ** Changed in: blood-curse
> > > Assignee: Michael Fiano (axion) => Brian Moriya (brian-moriya)
> > >
> > > --
> > > Game crashes on F button press while player's moving
> > > https://bugs.launchpad.net/bugs/343935
> > > You received this bug notification because you are subscribed to Blood
> > > Curse.
> > >
> >
> > --
> > Game crashes on F button press while player's moving
> > https://bugs.launchpad.net/bugs/343935
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
> > Status in Blood Curse: New
> >
> > Bug description:
> > If the player is moving while fullscreen is toggled with the 'F' key, the
> > game crashes:
> >
> > File "/home/axion/dev/bloodcurse/axion-branch/lib/scene.py", line 91, in
> > event_check
> > keyid = self.player.move_keys.index(pygame.key.name(event.key))
> > ValueError: list.index(x): x not in list
> >
>
>
> --
> Regards,
>
> Brian S. Moriya
>
> --
> Game crashes on F button press while player's moving
> https://bugs.launchpad.net/bugs/343935
> You received this bug notification because you are subscribed to Blood
> Curse.
>

Revision history for this message
Brian Moriya (brian-moriya) wrote :

I know exactly what the problem is, I am just working on where would be the
best place to handle it. There is more than one option. I will put some time
in after I do the dishes, I just got home.

On Tue, Mar 17, 2009 at 3:42 PM, Michael Fiano <email address hidden> wrote:

> Haha, be careful. That bug will make you waste a whole day :) You're
> probably a lot farther than I am. I've progressed in the headache
> department, that's about it.
>
> On Tue, Mar 17, 2009 at 6:13 PM, Brian Moriya
> <email address hidden>wrote:
>
> > After you posted it, I tested it and became obsessed with it. I've almost
> > got it, if I don't get it this break, I will fix it when I get home from
> > work.
> >
> > On Tue, Mar 17, 2009 at 1:19 PM, Michael Fiano <email address hidden>
> > wrote:
> >
> > > Great, that bug's been bugging me all day.
> > >
> > > On Tue, Mar 17, 2009 at 4:07 PM, Brian Moriya
> > > <email address hidden>wrote:
> > >
> > > > I almost have this bug fixed.
> > > >
> > > > ** Changed in: blood-curse
> > > > Assignee: Michael Fiano (axion) => Brian Moriya (brian-moriya)
> > > >
> > > > --
> > > > Game crashes on F button press while player's moving
> > > > https://bugs.launchpad.net/bugs/343935
> > > > You received this bug notification because you are subscribed to
> Blood
> > > > Curse.
> > > >
> > >
> > > --
> > > Game crashes on F button press while player's moving
> > > https://bugs.launchpad.net/bugs/343935
> > > You received this bug notification because you are a direct subscriber
> > > of the bug.
> > >
> > > Status in Blood Curse: New
> > >
> > > Bug description:
> > > If the player is moving while fullscreen is toggled with the 'F' key,
> the
> > > game crashes:
> > >
> > > File "/home/axion/dev/bloodcurse/axion-branch/lib/scene.py", line 91,
> in
> > > event_check
> > > keyid = self.player.move_keys.index(pygame.key.name(event.key))
> > > ValueError: list.index(x): x not in list
> > >
> >
> >
> > --
> > Regards,
> >
> > Brian S. Moriya
> >
> > --
> > Game crashes on F button press while player's moving
> > https://bugs.launchpad.net/bugs/343935
> > You received this bug notification because you are subscribed to Blood
> > Curse.
> >
>
> --
> Game crashes on F button press while player's moving
> https://bugs.launchpad.net/bugs/343935
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Blood Curse: New
>
> Bug description:
> If the player is moving while fullscreen is toggled with the 'F' key, the
> game crashes:
>
> File "/home/axion/dev/bloodcurse/axion-branch/lib/scene.py", line 91, in
> event_check
> keyid = self.player.move_keys.index(pygame.key.name(event.key))
> ValueError: list.index(x): x not in list
>

--
Regards,

Brian S. Moriya

Revision history for this message
Brian Moriya (brian-moriya) wrote :

The bug is fixed in my experimental branch. I will get working on getting the changes commited and merged into the trunk.

Revision history for this message
Brian Moriya (brian-moriya) wrote :

Has been comitted to personal branch but hasn't been commited to trunk yet.

Changed in blood-curse:
status: New → Fix Committed
Revision history for this message
Brian Moriya (brian-moriya) wrote :

This bug is squashed.

Changed in blood-curse:
status: Fix Committed → Fix Released
Michael Fiano (axion)
Changed in blood-curse:
status: Fix Released → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.