Search Unity

Lost my project due to collab "restore"

Discussion in 'Editor & General Support' started by armaan8014, Jul 13, 2021.

  1. armaan8014

    armaan8014

    Joined:
    Jun 13, 2017
    Posts:
    25
    So yesterday after some good work on my new project, I wanted to back up the project and decided to try Unity Collab.

    When I tried publishing changes, it said I didn't have enough space on my account. So I think it uploaded nothing, or close to nothing.

    When I opened the project the next day, it showed some errors. The project still opened, but a few things were missing. I saw the history button in the "changes" tab, and hit "restore"

    Doing this effectively wiped out my complete project. All the assets, everything. I now have a blank project.

    Is there any way to actually restore my files now? I'm guessing once I uploaded "nothing" then hit restore, I basically replaced my local files with the "nothing" from the cloud.

    I used a file recovery software to get those files back. They exist, but Unity can't read them. Opening an FBX file in Blender showed that it can't read ASCII files. I'm guessing the recovery software didn't actually recover the files, but corrupted/ unreadable versions of them?

    So do I need to redo a month's worth of work or is there any hope?

    @ryanc-unity Hoping you can help!
     
  2. armaan8014

    armaan8014

    Joined:
    Jun 13, 2017
    Posts:
    25
  3. armaan8014

    armaan8014

    Joined:
    Jun 13, 2017
    Posts:
    25
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,700
    I have not used collab but if you committed work to it, the work SHOULD be there, I assume.

    I recommend methodically working through the "how to restore particular commits" in collab. Start a fresh project, put it under collab, make a commit, make another commit, back up in time, etc, and 100% understand how it works, then go see if you can rescue your original project. Obviously it is completely dependent on proper use of collab, as well as collab not having failed or had a bug.

    I'm sorry you've had this issue. Please consider using proper industrial-grade source control in order to guard and protect your hard-earned work.

    Personally I use git because it is free and there are tons of tutorials out there to help you set it up as well as free places to host your repo (BitBucket, Github, Gitlab, etc.).

    As far as configuring Unity to play nice with git, keep this in mind:

    https://forum.unity.com/threads/prefab-links-keep-getting-dumped-on-git-pull.646600/#post-7142306

    Here's how I use git in one of my games, Jetpack Kurt:

    https://forum.unity.com/threads/2-steps-backwards.965048/#post-6282497

    Using fine-grained source control as you work to refine your engineering:

    https://forum.unity.com/threads/whe...grammer-example-in-text.1048739/#post-6783740

    Share/Sharing source code between projects:

    https://forum.unity.com/threads/your-techniques-to-share-code-between-projects.575959/#post-3835837

    Setting up the right .gitignore file:

    https://forum.unity.com/threads/removing-il2cpp_cache-from-project.1084607/#post-6997067

    Generally setting Unity up (includes above .gitignore concepts):

    https://thoughtbot.com/blog/how-to-git-with-unity
     
  5. armaan8014

    armaan8014

    Joined:
    Jun 13, 2017
    Posts:
    25
    Hi, thanks for the response! Yes, I'll be setting up Git instead soon. I've started recreating the project from scratch now. Was just hoping there would be some way to pull something from those recovered files! But even the recovered textures/ images don't open in Windows Photo Viewer so I'm guessing all the recovered stuff is corrupt/ unusable.