Exported project as PCK/ZIP file and then accidentially replace the project files with exported ones

I tried to export my game as .exe file, but I accidentially click the button “Export PCK/ZIP”. Then I got ZIP file in my folder and unarchived it without knowing it contains the same folders and files as the original project and then replaced it in the same location. I thought it is the same files but with newer version or something. Then, I found out that my scripts are gone. I can’t opened them. In Godot Editor they are empty. Then, same happened with scenes. When I try to open a scene, it says “Error while loading scene_name”. Also, there is a file called “project.binary” in the folder now.
And when I try to open the project in Godot, the first thing that pops up is this:

Екранна снимка 2025-01-08 121728

Do you know if there is a way to recover my project files (scripts and scenes)?

If you don’t have a backup, I don’t think there is a way to recover your project.
Look up how Git works and use it in all your future projects to avoid similar situations.

1 Like