My RPG Maker MZ project got corrupted

I replaced the game.rmmzproject file, but now it says it can't read the Items.json file. I've been working on this project off and on for ages. I've been looking everywhere for a solution to this problem, but nothing seems to help. How do I fix this?
Did you back up the game at all? If not, your best bet might just be replacing it with an items.json from a blank project, assuming it's the only thing that's gone wrong.
Did you back up the game at all? If not, your best bet might just be replacing it with an items.json from a blank project, assuming it's the only thing that's gone wrong.
All of my project's files except one map just got reset to square one...

Did you back up the game at all? If not, your best bet might just be replacing it with an items.json from a blank project, assuming it's the only thing that's gone wrong.
Never mind, I got a lot of my progress back by going to my Output folder and grabbing the .json files from the most recently exported version. Phew!
From my experience, the leading cause of corruption is working off an external drive. Don't do that. It's okay to back it up to one, but don't work on it directly from there.

If this happens again, you may be able to manually go into the corrupted JSON files and place their info into a blank project's equivalent. It's a bit painful, but better than losing everything.
If your computer suddenly shuts down or if rpg maker crashes there's a possibility of this happening aswell.
Had this happen to me one time.
I have moved this thread from Activation Issues to RPG Maker MZ Support.
From my experience, the leading cause of corruption is working off an external drive. Don't do that. It's okay to back it up to one, but don't work on it directly from there.

If this happens again, you may be able to manually go into the corrupted JSON files and place their info into a blank project's equivalent. It's a bit painful, but better than losing everything.
My game's folder is in Documents/RMMZ/(my game). I don't have an external hard drive.
I hope you manage to learn from this experience and start to regularly make backups of your project 😉
A drive can fail, make sure that if that happens your project doesn't go with it.
you still need to find out the cause of the corruption to prevent a repeat - because otherwise it will happen again.

possible causes are:
1) cloudstorage (especially if Microsoft tricked you into activating OneDrive, that automatically contains the document folder)
2) power loss during operation - you MUST use shutdown to completely save to the harddrive, if you simply power off or hardware-reset then you can damage a lot of files
you still need to find out the cause of the corruption to prevent a repeat - because otherwise it will happen again.

possible causes are:
1) cloudstorage (especially if Microsoft tricked you into activating OneDrive, that automatically contains the document folder)
2) power loss during operation - you MUST use shutdown to completely save to the harddrive, if you simply power off or hardware-reset then you can damage a lot of files
Noted. In the future, I'll make sure to save and close the project before powering off my computer.
2) power loss during operation - you MUST use shutdown to completely save to the harddrive, if you simply power off or hardware-reset then you can damage a lot of files
Just out of curiosity, does Hibernation work in lieu of shutdown? I haven't ran into any issues with it but I'd like to know, just in case.
does Hibernation work in lieu of shutdown?
It should, as long as it is done correctly.

The problem is that the HDD does NOT save directly. To speed up operations it uses its own RAM-Cache to hold data while the slower mechanical heads write that data on the physical storage.

That allows windows to continue operations before the save is physically complete, and if the power is cut off then the data in the cache is lost, damaging the files.
both shutdown and hibernation should have the code to wait until the HDD reports that the cache has been emptied and all data written physically.

Original thread: https://forums.rpgmakerweb.com/threads/my-rpg-maker-mz-project-got-corrupted.165344/