Corrupted files

Hi everone! A few weeks ago, I managed to finally implement a stealth system for my game. It's a very very important game mechanic and I put a lot of effort into it since it was event based to a great extent (couldn't use yanflys stealth cos of pixel movement). I don't remember what happened but the electricity probably went out and my computer shut down. I didn't work on the game later till now. I tried to open the project but as soon as I do there are notifications. Can't read Map.json or whatever. I went to see what the problem was but all the .json files in the data folder contained nothing. Is there no way to get the data back? I really don't want to event all that again.
if the files are empty, then the only way to repair them is to use a backup.

If you didn't make a backup - then you now know first-hand why every computer worker is told to make regular backup copies...
I didn't have a backup because it was more like a test project to work on the game mechanic stuffs. Why do these stuff keep happening to me -__-
Well thanks for the info. I'll be more careful from now on.
it's not only you, it can happen to everyone who hasn't learned the lesson yet.
The worst case I personally know of was the work of an architectural bureau in the value of 80K € lost one day before it was due, but there are much worse cases around...
Hello, you can try recover erased files. There are some softwares out there that search deeper in your HD and may find your lost data.

I know "Recuva", it's a pretty good software that do that for you. You can give it a try.
Just google recuva and you will find it.
Good luck!
@thalesgal It would've been great if the files were erased but unfortunately the files are still there. Just the data inside them have been modified into nothing! Thanks for the tip though. Will come in handy in the future.
@thalesgal
The RPG-Makers access their data in the same way a database does, with constantly open files - they do NOT use them like a regular file-based program. That is the reason why a filerepair program can almost never work with them.

Original thread: https://forums.rpgmakerweb.com/threads/corrupted-files.107736/