Replies: 1 comment 5 replies
-
|
Hello! The error occurs because the Possible solutions:
I tested the game on other machines, and it ran fine, so it doesn’t seem to be an issue with the main directory code. Let me know if any of these solutions work for you! 😊 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am getting an error when I run the program.
pygame 2.6.1 (SDL 2.28.4, Python 3.13.1)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/home/yigit/İndirilenler/RPG-Eldoria-main/code/main.py", line 510, in
game = Game()
File "/home/yigit/İndirilenler/RPG-Eldoria-main/code/main.py", line 296, in init
self.level = Level()
~~~~~^^
File "/home/yigit/İndirilenler/RPG-Eldoria-main/code/level.py", line 35, in init
self.create_map()
~~~~~~~~~~~~~~~^^
File "/home/yigit/İndirilenler/RPG-Eldoria-main/code/level.py", line 99, in create_map
random_grass_image = choice(graphics['grass'])
File "/usr/lib64/python3.13/random.py", line 351, in choice
raise IndexError('Cannot choose from an empty sequence')
IndexError: Cannot choose from an empty sequence
Beta Was this translation helpful? Give feedback.
All reactions