kaytoxlll / mechanical-failure

Automatically exported from code.google.com/p/mechanical-failure
GNU General Public License v2.0
0 stars 0 forks source link

Cross-platform test #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There are versions of Python and PyGame for both Mac and Linux, but this game 
is untested on those systems.  If you have a Mac or a Linux computer, 
considering testing the latest stable release to make sure if it is 
cross-platform.

Original issue reported on code.google.com by BaileyMi...@gmail.com on 23 Jul 2012 at 10:29

GoogleCodeExporter commented 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