I have been trying to learn Panda3D through making a game through this Tutorial: https://arsthaumaturgis.github.io/Panda3DTutorial.io/
I have managed to complete Lessons 1-15, and the game works fine through a command prompt; however, when I use bdist_apps to make it a distributable, the game crashes every time that I try to load it. When I go to the log, it gives me this error message:
Known pipe types: wglGraphicsPipe (all display modules loaded.)
:loader(error): Couldn't load file PandaSampleModels-master/PandaSampleModels- master/Environment/environment.egg: not found on model path (currently: "/c/Users/hihos/Documents/Toontown Modding Project/Panda3D-1.10.9-x64/Projects/build/win_amd64;/..;/../models")
Traceback (most recent call last): File "main", line 415, in File "main", line 28, in init File "direct.showbase.Loader", line 298, in loadModel OSError: Could not load model file(s): ['PandaSampleModels-master/PandaSampleModels-master/Environment/environment']
I am not very experienced in coding period, so I am not exactly sure how to fix a problem like this. I have tried to add the folder of the models and sounds to the requirements.txt file; however, it would not allow for me to build the product. I don't know if the models, images, and sound files are already included in the .exe file of the game or if I need to add them through some other means.
Here is how my File Paths are like:
-Projects (Carries all of the main files for the game: Game.py, GameObject.py, requirements.txt, and setup.py)
-p3d_samples-master (Contains the character model used in the game.)
-PandaSampleModels-master (Contains the UI, environment, and enemies.)
-Sounds_&_Music (Contains the Sound Effects and Music.)
All of these are within my Panda3D-1.10.9-x64 folder. Any help would be greatly appreciated.