Hi there, I am having issues running a standalone version of my game. Every time I try to run it, it just opens and then closes and I don't know what I am doing wrong, or if this is a problem with 4.1.1. I've tried a few things but I need your help on this little tidbit. Here are the things that I've tried.

  1. Opening up all of my assets (.ogg, .png), scenes, (.tscn), and scripts, in the editor.
  2. Running the .exe file at a separate location other than the location of the game's files. This includes its .pck file and .console file as well.
  3. Running the game inside of the same location of the games files. This works but I don't see a reason to make ALL of the code available for people to edit in their game.
  4. Restarting my Computer.
  5. Restarting Godot

Now as for things that works and doesn't work, 3 is the only one that works. I was able to see what was going on before it decided to crash. It said something about it not finding the resources at all in the .pck file, or something along those lines. I would go with option 3, but I don't want people to have the ability to mess around with the source code. It could break somethings, or worse they could take my code and make "their" game with it.

Any help is welcome, and thank you so much for reading this forum post.

Run it from the command line so you can see what error message it prints.

So I ran it from the command line, and this is what I get. Crazy part is, is that this works in the editor but not as an exe

It looks like ot can’t find any of the resources? I haven’t seen this before but perhaps someone else has.

It looks like the resources being used are not being exported. Have you changed the settings for exported resources?

    What export settings did you use? If the resources were exported separately to a pck file, it should be in the same folder as the exe file.

    I should also clarify I am using the windows exports

    O3ZY and no I haven't changed the settings for it. Thank you for asking though

    Are you using any non-resource files in your project like .txt, .json or .csv?

      It's ok guys. I greatly appreciate everyone's help. Nothing works but option 3. I'm still going to use godot as my engine of choice. I just wish that bugs like this didn't exist in the program, especially in 4.x series. I should also mention that stuff like this, has NEVER happened to me in 3.5.2, so the only logical explanation is that there is a packaging bug in godot 4.

      Again I thank you for all of your help. Take care and I guess I'll see you all around.