• entries
29
0
• views
2102

# A lesson in Version History

940 views

So, today, while going through my code, my computer crashed. It's an old computer from 2011 that I haven't the heart to replace. When I loaded up Unity, I got over 1000 errors, all talking about the GUI not being able to load. My scene was gone. I double clicked my scene, and it was empty.

All my assets were fine, but it was extremely disheartening. Looking up support, it appears my scene got corrupted and is gone. I might've been able to save it if I hadn't loaded Unity, but I didn't know. Unity stores a backup scene to the last it loaded. But once you load unity, that backup is overwritten.

Everything I had was UI, luckily. No custom settings or anything. I think I had some fonts that were not the same, so this will give me a chance to get the measurements correct for everything. My scripts were doing all the settings, so I literally just have to drag the UI into their slots once I have them up, and it'll work as plug and play.

So a lesson learned. Back up your work. Use version control. I had no back up to this scene. I didn't think it would happen to me. Luckily it was stuff that I can reproduce in a day, and not my code.

### Images

View the entire Fraud Simulator album

This is really unlucky, and i feel for you.

Hopefully though its also an opportunity. I recommend installing a good cloud based backup software such as crashplan pro which is $10 a month per machine, with unlimited storage space. I also recommend using git or perforce for your version control, but store graphical assets separately if you go with git, as git isn't very good at storing large binary blobs unless you use for example the git LFS addon. I went through the same experience as you a few years ago when my phone was stolen and i'd been a stand-out against cloud software, cloud storage, and backing up my photos to the internet, until this happened. As part of the experience i re-thought my entire backup strategy and now have backups of my backups. MOST IMPORTANTLY THOUGH, test your backup and restore process regularly. Many people set up a backup, then leave it and assume that's it. If you don't know you can restore from it, you may be wasting time, resources and money. Have a schedule, and test a restore of a simple file, e.g. an image or a model, every 6 months at least. Pick that file at random, and know what you expect back. If anything doesn't work, make sure it's fixed before you continue with it! Good luck and hope you get everything back how it was soon! #### Share this comment ##### Link to comment On 4/30/2019 at 4:26 AM, Brain said: This is really unlucky, and i feel for you. Hopefully though its also an opportunity. I recommend installing a good cloud based backup software such as crashplan pro which is$10 a month per machine, with unlimited storage space.

I also recommend using git or perforce for your version control, but store graphical assets separately if you go with git, as git isn't very good at storing large binary blobs unless you use for example the git LFS addon.

I went through the same experience as you a few years ago when my phone was stolen and i'd been a stand-out against cloud software, cloud storage, and backing up my photos to the internet, until this happened. As part of the experience i re-thought my entire backup strategy and now have backups of my backups.

MOST IMPORTANTLY THOUGH, test your backup and restore process regularly. Many people set up a backup, then leave it and assume that's it. If you don't know you can restore from it, you may be wasting time, resources and money. Have a schedule, and test a restore of a simple file, e.g. an image or a model, every 6 months at least. Pick that file at random, and know what you expect back. If anything doesn't work, make sure it's fixed before you continue with it!

Good luck and hope you get everything back how it was soon!

Hey thanks for the tips! I want to use github, but I'm seeing comments about it not working very well with Unity scenes, which is what the issue is. I will definitely look into crashplan!

## Create an account

Register a new account

• ### Similar Content

• By Wush
As a hobby programmer I am slowly working my way up project by project to make a game. However I am currently stumped on what to do with what I call the communication layer.
To explain: you have an ability, a technology or a building first you need to communicate to anyone effected to apply the effects. Also abilities might need to know when a certain activity is started or ended to trigger or alter their effects.
Events are a tool to handle this, but:
1) You still need an effective filter, so only those recipient are called that fulfill certain requirements(nationalities, race, class, locality etc)
2) You need to know/write beforehand what  method  needs to trigger an event.
I would be thankful for any advice on these two points, is there any way to elegantly append a methodcall with another methodcall?
I mean I could write some kind of wrapper containing a delegate  of a method  and then only call the wrapper, having the wrapper contain a list of additional method calls and their inputs to be executed?

• Snaps, an asset pack on the Unity Asset Store, has a new way to make it easier for developers to make their visions a reality.

You can find out more about Snaps with the video above or by clicking here.

View full story

• Snaps, an asset pack on the Unity Asset Store, has a new way to make it easier for developers to make their visions a reality.

You can find out more about Snaps with the video above or by clicking here.
• By jb-dev
This is the third level's title card.
All title cards will have its colours matched with its level. Every levels also have a unique level seal.
• By jb-dev
This is the first level's title card.