Project appears to be damaged

#1

Hello everyone. So recently I updated my Defold to the latest version and now my project appears to be damaged! When I try to open collections on editor I get these errors : http://prntscr.com/oqysiy
Scripts are empty. Please help!

P.S Old tutorial projects are working fine. Yesterday I synced my project to the dashboard few times and didn’t do anything, maybe this caused a problem, and not the update. But the sync didn’t go well since I only get few parts of my projects and some are missing.

0 Likes

#2

What if you look at the main.collection in a text editor? (or post it here)
Or view the repo in an external git client, does it say anything then?

0 Likes

#3

main.collection is also empty on the text editor

0 Likes

#4

This sounds related to the file corruption I experienced earlier today and outlined in this thread

0 Likes

#5

I believe its defold’s problem then. Something went bad when we synced the projects. I’ll probably restore my windows to an earlier copy , it should fix the problem.

0 Likes

#6

You should be able to use git command line to go back to an earlier synced version. I still use external git to do all syncing out of paranoid and wanting better control of what gets synced.

0 Likes

#7

Unfortunately, I only used defold’s dashboard for syncing. Is there anyway to restore back? Because windows reset didn’t do anything.

0 Likes

#8

Yes, but it would require some git client. If you can download Git bash for windows and then open Git bash console in the directory of your project, you should be able to type

git checkout HEAD~1

which will restores your files to your previous latest commit (checkout to the commit that was first before the latest commit, at which HEAD is pointing) - then check after a moment in Editor if everything is fine

0 Likes

#9

Windows reset does only reset the applications, not your data.

To restore your data, you could try one of the backup features of Windows, in case it was activated.

And in case that not all files are empty, make a backup of the folder before you check out from git.

0 Likes

#10

Also. Which cloud are you guys using to store your projects in?

0 Likes

#11

If you have your project hosted via our dashboard then it’s AWS.

0 Likes