ilyabelow / path_of_pain

Simple top view slasher
MIT License
1 stars 0 forks source link

Game fails at start #4

Open gostkin opened 5 years ago

gostkin commented 5 years ago

pygame 2.0.0.dev1 (SDL 1.2.15, python 3.6.8) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "launch.py", line 10, in main() File "launch.py", line 5, in main app = Application() File "/home/gostkin/Documents/path_of_pain/myenv/lib/python3.6/site-packages/path_of_pain_daily_build-0.0.2.dev0-py3.6.egg/path_of_pain/src/states/application.py", line 21, in init pygame.error: Unsupported image format

ilyabelow commented 5 years ago

Wait, did you install a built package for Pypi ant tried to launch it instead of instructuon in README?

gostkin commented 5 years ago

I've set up virtualenv, run setup.py, then run launch.py

gostkin commented 5 years ago

And please, provide a clear instruction in README. That is essential for every project.

ilyabelow commented 5 years ago

I forgot to mention that package building isn't ready yet

ilyabelow commented 5 years ago

Oh, it seems like I was unconcious when I wrote last version of README, I'll fix it in a moment

ilyabelow commented 5 years ago

And please, provide a clear instruction in README. That is essential for every project.

Fixed for me

gostkin commented 5 years ago

Still failing

pygame 2.0.0.dev1 (SDL 1.2.15, python 3.6.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "launch.py", line 10, in <module>
    main()
  File "launch.py", line 5, in main
    app = Application()
  File "/home/gostkin/Documents/path_of_pain/path_of_pain/src/states/application.py", line 21, in __init__
    pygame.display.set_icon(pygame.image.load(const.IMG_PATH + "enemy.png"))
pygame.error: Unsupported image format
ilyabelow commented 5 years ago

Actually no idea why this happens. Try my fix that makes pygame use absolute paths for assets opening instead of relative ones. If it doesn't work, see what is the value of const.IMG_PATH

And why are you using development version of pygame? May be the problem is in this, try stable verson 1.9.6 or 1.9.5

Still failing

pygame 2.0.0.dev1 (SDL 1.2.15, python 3.6.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "launch.py", line 10, in <module>
    main()
  File "launch.py", line 5, in main
    app = Application()
  File "/home/gostkin/Documents/path_of_pain/path_of_pain/src/states/application.py", line 21, in __init__
    pygame.display.set_icon(pygame.image.load(const.IMG_PATH + "enemy.png"))
pygame.error: Unsupported image format