Unity crashed while I was working on my project, (I guess I was trying to Instantiate something incorrectly, because that’s the last line I added before it crashed).
Then when I tried to relaunch Unity, it wouldn’t open, it would begin to, then say Fatal Error and crash. I move my project to another directory and redownloaded and reinstalled Unity, which worked (let me atleast launch Unity) until I loaded my old project.
I figure my project must have been corrupted somehow when it crashed… but does anyone know anything I can do about it? I have way to much work put into it to just give up, but I don’t know what to do!
Help!
Will
Upload the project somewhere i can download it and send me a link: joe at otee.dk
I will take a look at it and recover it. I will also add some more file consistency checking to avoid those problems in the future.
The other thing to do in the future, of course, is backup often. I keep switching between computers so I always have it on two computers. Using something like subversion is a good idea, too, but currently it will only work for the scripts.
I also had a problem where Unity crashed after I had made a change in folder hierarchy (using Unity like a good boy.) When I loaded the project back up, everything worked, but the scripts that were supposed to be in an inner folder showed up one level above. Double-clicking would still load the files and everything worked fine, but I ended up forgetting a couple scripts when I created a new folder and moved them in. Then I deleted the old “messed up” folder and I instantly realized that I had just hosed those scripts.
Fortunately, I had them all backed up and didn’t lose a thing.
At last, my point follows: It would be good to have a “save a project copy” item in the file menu, so you could save a backup to a different folder without switching which file you are editing (like “save as” does.) It’s effortless backup for those that want to use it.