Bug 188877 - games-strategy/castle-combat-0.8.1 crashes on startup
Bug#: 188877 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: fabian.kislat@gmx.de
Component: Games
URL: 
Summary: games-strategy/castle-combat-0.8.1 crashes on startup
Keywords:  
Status Whiteboard: 
Opened: 2007-08-14 18:44 0000
Description:   Opened: 2007-08-14 18:44 0000
On startup castle-combat crashes with following messages:

Castle-Combat requires pygame and twisted. If the game doesn't start up
correctly, please verify that these are installed.
new state <state.MainState instance at 0xb76a5f4c>
Traceback (most recent call last):
  File "/usr/games/bin/castle-combat", line 8, in ?
    main.main()
  File "/usr/games/lib/castle-combat/main.py", line 39, in main
    from menu import MenuState
  File "/usr/games/lib/castle-combat/menu.py", line 6, in ?
    import sound
  File "/usr/games/lib/castle-combat/sound.py", line 50, in ?
    sound_on()
  File "/usr/games/lib/castle-combat/sound.py", line 30, in sound_on
    play_music()
  File "/usr/games/lib/castle-combat/sound.py", line 43, in play_music
    pygame.mixer.music.load(os.path.join(common.data_path, 'sound',
music_files[next_file]))
pygame.error: Unrecognized music format

Reproducible: Always

Steps to Reproduce:




Resolution:
castle-combat needs media-libs/sdl-mixer to be compiled with the "mikmod" use
flag activated. Then everything works fine.

I think the ebuild should check, if this is the case and produce an error
otherwise.

------- Comment #1 From Tupone Alfredo 2007-09-15 21:25:07 0000 -------
A check is added for mikmod in sdl-mixer. Thanks