artemshchirov / pydew-valley

🌾 Tiled Stardew Valley style game written in Python and Pygame.
MIT License
15 stars 6 forks source link

File missing: 1-checkpoint.png and 0-checkpoint.png #2

Open sloukit opened 4 months ago

sloukit commented 4 months ago

When running the game I get the following Error:

python3 code/main.py pygame 2.5.2 (SDL 2.28.3, Python 3.12.1) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "/Users/sophie/pydew-valley/code/main.py", line 29, in game = Game() ^^^^^^ File "/Users/sophie/pydew-valley/code/main.py", line 14, in init self.level = Level() ^^^^^^^ File "/Users/sophie/pydew-valley/code/level.py", line 28, in init self.setup() File "/Users/sophie/pydew-valley/code/level.py", line 100, in setup self.player = Player( ^^^^^^^ File "/Users/sophie/pydew-valley/code/player.py", line 12, in init self.import_assets() File "/Users/sophie/pydew-valley/code/player.py", line 109, in import_assets self.animations[animation] = import_folder(full_path) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/sophie/pydew-valley/code/support.py", line 11, in import_folder image_surf = pygame.image.load(full_path).convert_alpha() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: No such file or directory: '/Users/sophie/pydew-valley/code/../graphics/character/down_axe/0-checkpoint.png'.

I can fix the error by copying and renaming 0.png in the folder to then get the same error for 1-checkpoint.png. Again I fixed it by copying and renaming 1.png

After this, the game is running as expected.

artemshchirov commented 4 months ago

Thank you for reaching out.

When I ran the game upon receiving your message, everything launched without errors, but the issue you encountered may stem from differences in the environments in which the program is run. I will work on a solution and update as soon as possible, or feel free to send some commits with updates (not necessary, but if you really want to :)

If you have any other questions or need my assistance, please don't hesitate to reach out!

On Sun, May 5, 2024 at 3:45 PM sloukit @.***> wrote:

When running the game I get the following Error:

python3 code/main.py pygame 2.5.2 (SDL 2.28.3, Python 3.12.1) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "/Users/sophie/pydew-valley/code/main.py", line 29, in game = Game() ^^^^^^ File "/Users/sophie/pydew-valley/code/main.py", line 14, in init self.level = Level() ^^^^^^^ File "/Users/sophie/pydew-valley/code/level.py", line 28, in init self.setup() File "/Users/sophie/pydew-valley/code/level.py", line 100, in setup self.player = Player( ^^^^^^^ File "/Users/sophie/pydew-valley/code/player.py", line 12, in init self.import_assets() File "/Users/sophie/pydew-valley/code/player.py", line 109, in import_assets self.animations[animation] = import_folder(full_path) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/sophie/pydew-valley/code/support.py", line 11, in import_folder image_surf = pygame.image.load(full_path).convert_alpha() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: No such file or directory: '/Users/sophie/pydew-valley/code/../graphics/character/down_axe/0-checkpoint.png'.

I can fix the error by copying and renaming 0.png in the folder to then get the same error for 1-checkpoint.png. Again I fixed it by copying and renaming 1.png

After this, the game is running as expected.

— Reply to this email directly, view it on GitHub https://github.com/artemshchirov/pydew-valley/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTVML6VTX4LQSJDRVWNJ23ZAYSVVAVCNFSM6AAAAABHHWH2EGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TSNJRGU4DONQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sloukit commented 4 months ago

Thanks a lot, I'll let you! :)