Package: pydance
Version: 1.0.2-1
Severity: normal
Starting pydance, I selected 4 panel, Single, Normal mode. I selected
the song "6.January'2002" as a test from the pydance-music package,
and hit kp-enter to enter the options screen. I scrolled down to
"Colors" and pushed kp-4 to select "Flat", then hit kp-5 twice to
begin. pydance crashed with the backtrace:
Traceback (most recent call last):
File "/usr/games/pydance", line 205, in ?
if __name__ == '__main__': main()
File "/usr/games/pydance", line 195, in main
menudriver.do(screen, (songs, crs, screen))
File "/usr/share/games/pydance/pydance.zip/menudriver.py", line 262, in do
File "/usr/share/games/pydance/pydance.zip/menus.py", line 184, in display
File "/usr/share/games/pydance/pydance.zip/menus.py", line 57, in activate
File "/usr/share/games/pydance/pydance.zip/menudriver.py", line 155, in
wrap_ctr
File "/usr/share/games/pydance/pydance.zip/gameselect.py", line 205, in
__init__
File "/usr/share/games/pydance/pydance.zip/gameselect.py", line 227, in loop
File "/usr/share/games/pydance/pydance.zip/songselect.py", line 232, in
__init__
File "/usr/share/games/pydance/pydance.zip/songselect.py", line 325, in loop
File "/usr/share/games/pydance/pydance.zip/dance.py", line 214, in play
File "/usr/share/games/pydance/pydance.zip/dance.py", line 332, in dance
File "/usr/share/games/pydance/pydance.zip/player.py", line 344, in
get_next_events
File "/usr/share/games/pydance/pydance.zip/player.py", line 364, in
_get_next_events
ZeroDivisionError: integer division or modulo by zero
Line 364 of player.py seems to be calculating the event color modulo
the colortype. A cursory glance shows that Flat mode in options.py is
set to colortype 0, but you can't modulo by 0. Changing the 0 in line
102 of options.py to a 1 clamps the color of all the arrows to blue,
which seems like more reasonable behavior, though gray might be a
better choice for Flat as far as the color scheme goes. (I don't know
what the original Bemani-style games did for this.)
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=C, LC_CTYPE=C
Versions of packages pydance depends on:
ii pydance-music 4 Songs and step patterns for pydanc
ii python 2.3.4-1 An interactive high-level object-o
ii python-pygame 1.6-2 SDL bindings for games development
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]