Couldn't open after exporting on Mac. Says couldn't load data at path "."

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Eric Guo Peng

Hi guys! I can not open my game after exporting to MacOS Catalina 10.15.3 and this message pops out when I try to open the game, an alert saying “Couldn’t load project data at path”.“. Is the .pck file missing? If you’ve renamed the executable, the associated .pck file should also be renamed to match the executable’s name (without the extension)” But I did not rename or change anything after exporting. And I do not understand “.” what does this path mean. The last time I export to MacOS was a long time ago(a month ish?) and it worked fine. I would appreciate your help so much. Thanks in advance!

What does the file structure of the application bundle look like? Is there a .pck file inside? If so, what name does it have? (An .app bundle is just a folder, you can enter it and list files using a terminal.)

And I do not understand “.” what does this path mean.

For the record, . refers to the current directory (relative to the executable). This is a convention used almost anywhere in computing. (.. is the parent directory.)

Calinou | 2020-04-22 15:00

Hi Clinou

Thank you so much for the explanation, it really helps! I kind of fixed this issue but kinda not. What I found is this: When I open the package, I see three folders “Frameworks”, “MacOS”, and “Resource”. As you mentioned, there are two same-named files one in “MacOS” and one in “Resource”(the one with .pck). Once I moved the .pck one from “Resource” to “MacOS” it starts to work. But I’m confused how can I directly export the project in the right way instead of export the project, opens the .dmg file then the package then adjust it? It used to directly work but I might have messed up export setting that I do not realize maybe?

Really appreciate your help!

Eric

Eric Guo Peng | 2020-05-08 21:23

Hi Clinou

Thank you so much for the explanation, it really helps! I kind of fixed this issue but kinda not. What I found is this: When I open the package, I see three folders “Frameworks”, “MacOS”, and “Resource”. As you mentioned, there are two same-named files one in “MacOS” and one in “Resource”(the one with .pck). Once I moved the .pck one from “Resource” to “MacOS” it starts to work. But I’m confused how can I directly export the project in the right way instead of export the project, opens the .dmg file then the package then adjust it? It used to directly work but I might have messed up export setting that I do not realize maybe?

Really appreciate your help!

Eric

Eric Guo Peng | 2020-05-08 21:24

:bust_in_silhouette: Reply From: NachoCheese989

The reason It’s not putting the files in the correct place would be because you have the wrong template for your version of godot.