0 votes

I've hammered out all the errors that were in my game but now I have one final problem. In the editor, my game works perfectly fine without any errors in the debugger menu and the Godot terminal (or whatever it's called). But when I export the game and try to launch it, it crashes immediately. I've brought this up on another post of mine and someone tested it out on their computer and said that it launched fine for them. I've tried exporting and launching it on two different computers with the same result. Here's a screenshot of the debugger and my export settings and the project itself:



Export Settings

asked Jan 4 in Engine by AddCodeluck (17 points)
edited Jan 4 by AddCodeluck

It works fine for me. There is one thing I can think of:
When you export for Windows, you get two files, one being the shortcut of the game (the one with the icon) and the other being a .pck file. Under no circumstances should you separate those two files. Are you sure they are both in the same directory when you try to run the game?

1 Answer

0 votes

Ok with a bit of trial and error I figured out that your project needs access to the materials folder for some reason. It appears as if the materials used are not included in the .pck file that Godot exports. If you place the executable and its .pck file in the same directory where the materials folder can be found, it works. Otherwise it throws the error you posted.

For now, make sure to bundle the materials folder with your game until you find out why materials are not exported.

answered Jan 5 by johnygames (1,574 points)

Thanks you so much for looking into this. I’ve had this problem for weeks. I’m at work right now so when I get home I’ll be sure to try that.

Just a small remark, i tried your project under Linux and materials failed to load,
turned out the project was looking for "Materials" whereas the folder was named "materials"

watch out for case sensitive folders / file names
(it matters everywhere except Windows:-)

So does it work now?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.