Open GoogleCodeExporter opened 8 years ago
Hello I am a linux user and I discovered some issues with playing/starting the
game.
Sample output:
[------@localhost mf]$ python Mechanical_Failure.py
Traceback (most recent call last):
File "main.py", line 23, in <module>
menu.title()
File "/home/yaoay/Lab/Python/practice/pygame/sines_webExample/mf/files/menu.py", line 40, in title
song = music.MusicPlayer("title.mp3")
File "/home/yaoay/Lab/Python/practice/pygame/sines_webExample/mf/files/music.py", line 22, in __init__
pygame.mixer.music.load(self.song)
pygame.error: Module format not recogni
Python version: 2.6
Pygame 1.9.1
Main problem:
The .mp3 files are encoded with proprietary codecs (windows i assume) and
pygame seems to have a problem with it on linux. (At least mine...)
Solution/workaround:
Either change the file format to a layer 2 mpeg (i think...), ogg, or wav.
After decoding the files with mpg123 into .wav and changing the sources (where
it loads "pygame.mixer.music.load("title.mp3")" in "menu.py" fodler "files" to
"pygame.mixer.music.load("title.wav")" the game went on but would still crash
on other mp3s.
What is left for me to do is change the all .mp3 to .wav or .ogg in sources and
re-encode the sound files.
Hope it helps, cheers.
---
In case you'd want to contact me: mod.linuxsake@gmail.com
Original comment by ytechnol...@gmail.com
on 31 Aug 2012 at 10:15
Original issue reported on code.google.com by
BaileyMi...@gmail.com
on 23 Jul 2012 at 10:29