StanislavPetrovV / DOOM-style-Game

DOOM-style 3D (raycasting) Game in Python Pygame
MIT License
550 stars 242 forks source link

Error while converting this repo to exe in one file via pyinstaller. #5

Open henryvfx opened 1 year ago

henryvfx commented 1 year ago

Traceback (most recent call last): File "main.py", line 72, in File "main.py", line 25, in init File "main.py", line 30, in new_game File "object_renderer.py", line 9, in init self.wall_textures = self.load_wall_textures() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "object_renderer.py", line 59, in load_wall_textures 1: self.get_texture('resources/textures/1.png'), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "object_renderer.py", line 54, in get_texture texture = pg.image.load(path).convert_alpha() ^^^^^^^^^^^^^^^^^^^ FileNotFoundError: No file 'resources/textures/1.png' found in working directory 'C:\Users\REDACTED\Desktop\DOOM-style-Game Output'.

I put the correct script location, the correct icon, i put all the correct directories and subdirectories, and also put all the other .py files in additional files section, and then converted it, but it gives the error above, like there is a file there????

help