0 votes

Recently my old hard drive broke and i lost my godot projects, except for my main one which i had a recent enough version of on github. But it seems there is no .godot file, and when i scan the folder above it in the project manager it does not find the project. I assume it's something to do with the project being from before 3.1, but i thought godot could convert older projects to 3.1. My other fear is that i accidentally exported it as a game instead of a project when i last updated my repo (as evidenced by the Badaboom.pck file), but there is no exe and it looks like all the files are there as they would be in a godot project. Anyway, here is a google drive link with the whole project: https://drive.google.com/open?id=1SbCMl3jZSDq9YBbYmU80xr0mcEFTbX1J
Is there anything i can do to restore my project?

in Engine by (241 points)

I had a short look at the files. The assortment looks a bit weird but not totally discouraging.

The project file itself seems to be missing (or compiled into project.binary).
I am also a bit unsure why there's a (small) .pck file inside your project folder.

Anyway many of the scene files seem to be present so you might be able to just create a new project in a new folder and then copy all project files (in their original folder structure) in it.

You will have to add some adjustments like defining the startup scenes/singletons and doing the export setup but mayby all project files are there.

There's a decompiler here, but I don't know if it can decompile a binary project.godot file:
https://github.com/bruvzg/gdsdecomp

I tried making a new project and copying all the files over. All the script files are .gdc instead of .gd, and just changing the name doesn't work. I'm also apparently missing assets (but that's fine cause i only had test assets). However, all scenes seem to still be there and scene trees are as i left them. I just can't run them because it fails to get the scripts.
edit: apparently gdc files are compiled scripts, which means that i probably did export it as a game with some weird setting. Question now is, can i un-compile them somehow? Or still be able to use them without knowing whatever it compiles into

It is quite unusual to store the .gdc files on github as they're (AFAIK) the compiled (binary/byte code) version of the scripts.

Anyway, I provided a link to a decompiler project in my previous comment. I have no idea how good it works but why not try that out. You might be able to recover the *.gd files from the *.gdc. If I understand the screenshot on the decompiler project page right then the comments will be missing but everything else seems to be ok.

I know it's a year later, but to let you know i did get it working and I'm making progress on that game's development to this day! Thank you very much for saving my project.

Great to hear. Glad that i could be of help.

1 Answer

0 votes

I Found Something When You Change The Project.binary To A project.godot Then Godot Will Run The project.godot But Then As Soon On Launch It Crash Just Wanna Let you Know

And If You Want To change It Open The Project.binary In Notepad Then Save As project.godot Then Open it Using Godot

by (52 points)
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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.