JSON CORRUPTED FILES

Hello my pc suddenly shutdown and when i opened my project again it shows this.
1716270319411.png

i tried to open the json file using vscode but it shows this.
1716270362834.png

is there any other way to restore my json files?
Do you have an older version of your game? Because if you don't, those files are gone forever dawg.
Hello my pc suddenly shutdown and when i opened my project again it shows this.View attachment 305795
i tried to open the json file using vscode but it shows this.
View attachment 305796
is there any other way to restore my json files?
Serious reminder to backup your project whenever you can...
welp time to give up i guess. thanks for the response though it was a long road but I've experienced a lot totally worth it
Don't give up mate. Probably, it's only that one file that is corrupted. Have you tried opening it with Editor or any other program?
Don't give up mate. Probably, it's only that one file that is corrupted. Have you tried opening it with Editor or any other program?
yeah it shows the red thingy nulls
you can make a new project and copy the base files from there.
it will reset the data of that file to the default, and changes made to actors will be gone, but will enable you to continze.

however it is random to say which files and how many were damaged in such a case. in the worst case all database files and one map will be gone, but the other maps willstill be available after all files are replaced (or in the case of mapinfo.json repaired and restructured, mapinfo needs an additional step)

however you should also check for the reason of the shutdown to see if it might happen again and how to prevent that.
you can make a new project and copy the base files from there.
it will reset the data of that file to the default, and changes made to actors will be gone, but will enable you to continze.

however it is random to say which files and how many were damaged in such a case. in the worst case all database files and one map will be gone, but the other maps willstill be available after all files are replaced (or in the case of mapinfo.json repaired and restructured, mapinfo needs an additional step)

however you should also check for the reason of the shutdown to see if it might happen again and how to prevent that.
yeah but i stoore most of my events to my common event data
then you should use more backups on your next project.

You're not alone in that - it seems that most people have to loose big one time before understanding that.
Worst case I personally heard of was an architect bureau which lost the plans they made for a new building - several weeks of work worth 80K$ - one day before the plans were due, without ever having made a backup.
Contrary to what is sometimes said here, I can heartily recommend using OneDrive. If a file gets corrupted you can just restore the one immediately prior. You get 5GB for free, which is more than enough to protect your data folder.
Contrary to what is sometimes said here, I can heartily recommend using OneDrive.
no one has anything against any cloud drive used for manual backups.
the problems are caused if you place your working directory inside a cloudservice for automated backups.
and that is because sometimes the automatic backup fires at the wrong time, overwriting your project with damaged files. and while that timing problem is rare, it does happen once a year or so.
no one has anything against any cloud drive used for manual backups.
the problems are caused if you place your working directory inside a cloudservice for automated backups.
and that is because sometimes the automatic backup fires at the wrong time, overwriting your project with damaged files. and while that timing problem is rare, it does happen once a year or so.
I honestly don’t understand this argument. I think it’s kind of moot since in the super rare case that this does happen, you can simply go back to your previous save. With manual back-ups you can lose an entire day of work when a json file becomes corrupt. With auto-sync you only lose any progress since your last save.
I honestly don’t understand this argument. I think it’s kind of moot since in the super rare case that this does happen, you can simply go back to your previous save. With manual back-ups you can lose an entire day of work when a json file becomes corrupt. With auto-sync you only lose any progress since your last save.
It comes down to individual levels of risk aversion.
It comes down to individual levels of risk aversion.
How so? Syncs automatically, and in the rare event that it corrupts a json file, you just "roll back" one file in your history. I'm just trying to think of a scenario in which something like OneDrive could actually pose a risk to the integrity of your project's files.
I'm just trying to think of a scenario in which something like OneDrive could actually pose a risk to the integrity of your project's files.
The timing problem I mentioned will result in the cloudfiles being empty but having a newer date than the local files, and in the next sync the empty files are then copied from the coulddrive to the local drive due to being newer, destroying both the local and the cloudcopy.

if OneDrive has a versioning system now that holds older versions of cloudsync'ed file then you can go back - but when OneDrive was introduced it did NOT have such a versioning system.
If they added it since then, good.
but when OneDrive was introduced it did NOT have such a versioning system.
Just for your information, it has had versioning since at least 2019 when I started using it. I've been around here for a year and in that span have seen the argument against using cloud sync being mentioned... five, six times?

OneDrive, Google Drive, Dropbox, all offer set-and-forget versioning in their free tiers.
@werzaque
that would explain why the posts about destroyed projects haven't happened as often in the last years.
but in the beginning, neither of those services had versioning - they probably added that after too many bad experiences.

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