Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

So I was working on the village and Unity crashed. The project got corrupted and I had to reload all assets.

Everything is working now, everything but the scene that was loaded...the town.


The scene got corrupted and is empty now, all I get is this "iterator == end" error. Google is not being too helpul so if anyone knows a solution please let me know.


I do have a backup but it's like a week old. I'd rather try everything before giving up a week's worth of work.


I swear that stupid town is cursed ;_;

Files

Previews only

Comments

Fsnapa

Well rip

Anonymous

Oh my god, I'm so sorry :( I'm not familiarized with Unity so I can't help, but why aren't you using a SVN? u.u

Minamoto Terumi

Is the town being cursed going to become part of the game's lore now? :V Jokes aside that's really frustrating news. It is only a week's worth of work though (hopefully), and while it's mentally exhausting to have to redo work, it could have been much worse. Setbacks are bound to happen on a long project...

Anonymous

doing a quick search it seems like while you had the map file opened, app crashed so it got corrupted, seems like no solution, sorry :(

Waffl3sk4t

i know how shit it feels to lose progress. no seriously, i used to work with macromedia flash as a kid so i obviously know what i'm talking about.

Redamz

Alright, loaded the backup scene and it works. I had made so many cool buildings this week though. brb crying in a corner ;_;

Jurriën Dokter

Damn, dude. As a fellow developer (just not in gaming) I can understand that feeling well. Consider it a moment to improve on yourself :) We're all rooting for you!

Gamerdude32

I'm sorry to hear that mate, maybe on a brighter note though the nickname for the town cannow be "the cursed town" for more than one reason

Kashim

Damn unlucky man. Take this as a life lesson and starting doing backups daily I'd say.

Anonymous

Damn sorry to hear that. I know exactly how sad and annoying and depressive this can be.

Anonymous

Damn sorry to hear that. I know exactly how sad and annoying and depressive this can be. However for future try to use backups. I am not familiar with software you use, however if there is automatic backup option do that, create snapshots every 15-20 mins, and back them up at NAS or some cloud storage for example. I am sure you will recover, move on and create an even better sexy stuff! :)

Anonymous

I could try some Google fu when I get home tonight, hope you can recover this...

Munkyboy

That's depressing :( Been there. That's why I do back ups every day. Still sucks tho :@ Hang in there dude :D

InterLEWD Creations

I know the feeling all too well. Luckily we backup our project in Git on BitBucket so we can always rebuild it. It's free and now they support Git LFS for large files.

Villy

Wow, that's unfortunate.

Anonymous

Well I can wait no matter how long it takes, I'm good at waiting... I'm still waiting for Half-Life 3...

relith

its a long shot but.... try system recovery one day before the corruption happened??? EDIT* TRY SOME RECOVERY SOFTWARE?

Anonymous

#PrayForHentaiTown

Anonymous

Hope you recover it

Anonymous

Usually this type of thing is not recoverable. I don't have experience with unity in particular, but I've seen plenty of people have their files corrupted in UDK, Photoshop, and various 3D modeling programs and if a file gets corrupted due to a crash while the program was running, there's pretty much a 99% guarantee it's not ever coming back. You're best bet is always to protect yourself against corrupted files with extremely frequent backups (and make sure you put your backups on an external hard drive so if something goes wrong with your computer itself, the backups won't get wiped along with the primary hard drive) and if are worried about power outages and can afford a UPS, those are always a good thing to have when working on projects like this. Power goes out, UPS kicks in, you get 5-10 minutes of backup power to finish what you were doing, save the project, and turn the computer off safely. An ounce of prevention is worth more than a pound of cure (medical proverb, but it applies perfectly here too). Good luck getting everything sorted out and keep up the good work Redamz. We're all rooting for you!

slamer500

Jesus christ that's terrible, thank god for backups

Redamz

It's gone but at least it wasn't the beach area. Tons of scripted scenes there, at least building are not as tedious as scenes to rebuild.

Redamz

Thanks man. I do make backups in an external drive but since the project is nearing 20GB at this point, I don't make them as often as I should.

Redamz

System recovery could screw with the assets themselves which are more valuable than buildings made with said assets, so not really an option. As for recovery software, afaik those are only for deleted files and not for modified (corrupted) ones but correct me if I'm wrong.

Redamz

I haven't used Git or the Unity cloud or anything like that, so correct me if I'm speaking nonsense but my upload speed is trash and there are not better alternatives where I live... Uploading 20GB sounds like a nightmare.

Kaozs

Wow that sucks , i wish i could help you, moral support it is then \ (•◡•) / but srs hang in there dude and take your time ;)

Chris

Think of it in a positive way. Normally when something like this happens when people remake something for the second time it can go quicker and they also can find a way to improve it while they are working.

Anonymous

After loading the scene can you manually export the assets? Check windows file version history to see if it has kept a copy of an older version (right click -> propertys -> previous version) on windnows 10

IllusiveChan

Just add it as a backstory in-game. The town "burned down" in the past, and was erected once more.

Zirk

I found this some time ago on Internet: Main things to do. - Do not open or close the editor - Do not move copy or delete files from the drive you have your project on. In other words do not touch the drive. (This could prevent the recovery too fail permanently on the file) The last scene played is in the Temp folder in the project, called "__EditModeScene", which can be renamed to "Whatever.unity" and loaded as a normal scene file. <a href="http://answers.unity3d.com/questions/567913/unity-crash-scene-is-now-missing.html" rel="nofollow noopener" target="_blank">http://answers.unity3d.com/questions/567913/unity-crash-scene-is-now-missing.html</a>

Rev

Perhaps consider setting up a program that automatically backs up your work every night to your external? That along with the UPS mentioned earlier might help avoid having to deal with this in the future...

aciil

Manually inspect the scene file, it should be readable as XML, what do you see? The file would contain meta data on all scene objects and their place in the scene. All the relationships and properties that makes a scene are there. (Here's hoping there is just a format error from the crash that can be inspected and fixed manually in the xml.)

Redamz

That was the first thing I did, the file only contains like a million empty spaces.

icedkocha

Sorry to hear that. We all know how much of a pain the town has been for you. At least you had something backed up so it wasn't a complete loss. I know I would have probably saved everything into one file.

Anonymous

It really is the worst feeling when your precious work goes to waste ...but its also the perfect time to take some deep breaths, fresh air and come back twice as strong. We know you can do it Red :3

Anonymous

Damn mate, sorry to hear that :( I just had a quick look at unity scene files and their structure. You might wanna try comparing your corrupt file with an empty scene, e.g. in Notepad++ with the Compare plugin. This way you can try applying the differences to the working basic scene. Maybe it works? Basically you leave the default scene structure untouched and copy &amp; paste over the lines that are missing in the empty scene. Or you can try it the other way around, carefully copying the basic scene structure into your broken file. Maybe you have to try both, because at this point we don't know what part of the file is corrupt. Here an example of an mildly populated scene (left), and a completely empty scene (right): <a href="https://postimg.org/image/mng5hc835/" rel="nofollow noopener" target="_blank">https://postimg.org/image/mng5hc835/</a> You can get the Notepad++ plugin from here: <a href="https://sourceforge.net/projects/npp-compare/" rel="nofollow noopener" target="_blank">https://sourceforge.net/projects/npp-compare/</a>

Anonymous

hey It could have been a lot worse.. like losign the entire game. It's a good thing you perform backups.

Uzza

You should probably set up automated daily backups, 20 GB is not that difficult to back up. At work our database alone is that size, and we do hourly incremental backups of it, and once a day we do full backups, keeping everything for up to a week. I think for you it should be enough with an automated daily backup, backing up to a decent 2-bay NAS (I personally strongly recommend Synology) with two disks in raid-1. If you use two 4 TB drives you can have 200 days worth of backups at current size. A weekly backup for archiving would probably be good though, stored on a second NAS to avoid them interferring with each other. You should be able to get everything for below $500 (or double that if adding the weekly backup), which is cheap compared to losing, as in this case, a weeks worth of work.

Redamz

Sadly the file is completely empty. It only has 1MB worth of space/NULL characters.

Anonymous

As an alternative or an extra, you should consider using a Version control tool like git, it helps you maintain an overview of the progress . It is very standard to use these tools when programming, but an old fashioned backup ain't bad either, nice you were prepared for the worst and had a backup ready. If and when shit happens it's nice to be prepared :)

Anonymous

Damn welp I guess this pushes back the day 1 release by another week (two if you need more time) still better to only lose a week instead of the whole game. Thanks for being so careful redamz keep up the good work :D.

Anonymous

I know you'll hate to read this, but you should be using some sort of revision control system here 100%. If you are new to them, then they may seem daunting at first, but they're absolutely essential. It's not just for backing up your work. It's also useful if you introduce some sort of regression into your project (for example: you introduce a bug and only discover it much later on). Later on (when you feel more confident), you can link changes you've made with some sort of bug tracking system in order to keep track of features you're working on/fixing (instead of trying to keep everything in your head/in a word document). I'd recommend trying out git (you can try it out completely locally!). I'm sure there are some people who have written out basic instructions on how to use it with Unity if you do a bit of googling (you will have to setup a .gitignore file that works nicely with your project/Unity). Also remember: you don't need to use all of the features of a revision control system! Just stick with the very basics if you want! Love the project btw, good luck!

Psuedonymous

Assuming you are running Windows, so you have File History turned on? You may be able to recover a more recent version of the file that way.

Anonymous

Get a copy of Shadowprotect desktop and configure it to backup to a network NAS system a few times a day; Shadowprotect will set you back $100. I'd get a spare PC and stick it in the corner or a NAS and mount the storage there, maybe configure it to backup the system 4 times a day via VSS Incrimental. You'd want to test the backup monthly (real easy, just 2x click on the most recent , open it, go), and maybe once a quarter perform a full backup. For the storage, any commercial NAS storage system is fine. If you want to get the data off-system, buy a 2nd NAS box and tell to backup the backups to that then disconnect it. Total solution cost might set you back $500-800 depending how fancy you get.

Risu

if it helps i might be able to get you the second computer. my office gives away computers every now and then when they upgrade. i normally just put windows 10 on the machine and sell it online but if you need a second machine still when i get them let me know and we can work something out. They a decent drafting machines with xeon 4 core processors and quadro graphics cards, only problem is they normally have small SSD's in them. around 250gb or 500gb. they are meant to mostly remote into servers where the majority of our projects are.

Angelleo

sorry to dig up this but just in case Do Not Relaunch Unity Immediatly if you want to retrieve your scene ! The temp file are in "ProjectName_folder/Temp/" The last scene played is in the Temp folder, the file is called "__EditModeScene", you can rename it to "projectname.unity" and can be loaded as a normal scene file. The Temp folder is deleted if you exit Unity normally, so if you experience a crash, you should retrieve the __EditModeScene file and rename or put it somewhere else immediately !

Anonymous

you should be using version control anyway :r

Anonymous

umm... hi redamz...for some reason i cant pledge to your work...its says "something wrong with the payment.check your bla bla bla". i did that for couples time and it still not working...i check my acc balance and i have enough money to pledge...i pledge once bfore to a creator using the same acc..it works but somehow i cant pledge to MGI...pls help

Redamz

Oh, that sucks. You should probably contact Patreon's support. I have no way of helping you with this kind of stuff sadly.