Files Continuously become corrupted.

So I recently started using MV again on my new laptop, however there's been two occasions when after I save everything and turn off my laptop and go to bed, when I relaunch my computer my project doesn't load and gives me error, "Unable to read game.rpgmaker." Which basically means its corrupted from my understanding. On top of that taking suggestions from other forums with the same issue like taking my files and putting on a new project doesn't solve anything other than prompting me with new errors like, "Unable to read actors.json," once again saying its corrupt. It happened again this morning and I'm tired of having to restart my progress every couple days and I'd like to know if anyone has info on why this is happening, suggestions maybe, I was thinking maybe it had to do with my One Drive Storage System but I have no idea how that even works.
Hi,

One Drive is one of the most prominent reasons for this to happen. You can see if your game folder is automatically backed up by looking for a small green checkbox icon as status (inside your file explorer). Usually the filepath includes the OneDrive location, too (for example: C:\users\cheffe\OneDrive\documents\my games).

Some folders like documents are automatically backed up, so the easiest way to change this is to move you project to a separate location or another drive.
I was thinking maybe it had to do with my One Drive Storage System but I have no idea how that even works.
unfortunately this is really the cause, you cannot store a working project inside a cloudsynced folder.

The problem is that the RPG-Makers handle their files like a database (like Microsoft Access or Filemaker or similar programs), not like regular files.
That means that the files are constantly open while the editor is active.

and each file can only be opened by one program, so if a cloudservice tries a sync while the editor is open, it gets a "unable to open file" which is stored in the cloud as a zero byte file. And then you close the editor, the cloud detects that the cloudversion is newer than the local version (unless you save directly before closing) and "updates" the older local files with empty files...

You can store finished games in the cloud, or even use the cloud to distribute your project - but you cannot work on your project while it is in the cloud - not unless you have a cloud with file versioning, and even then it would require constant tweaks to keep the correct versions active
unfortunately this is really the cause, you cannot store a working project inside a cloudsynced folder.

The problem is that the RPG-Makers handle their files like a database (like Microsoft Access or Filemaker or similar programs), not like regular files.
That means that the files are constantly open while the editor is active.

and each file can only be opened by one program, so if a cloudservice tries a sync while the editor is open, it gets a "unable to open file" which is stored in the cloud as a zero byte file. And then you close the editor, the cloud detects that the cloudversion is newer than the local version (unless you save directly before closing) and "updates" the older local files with empty files...

You can store finished games in the cloud, or even use the cloud to distribute your project - but you cannot work on your project while it is in the cloud - not unless you have a cloud with file versioning, and even then it would require constant tweaks to keep the correct versions active
Got it! Thank you guys so much! I figured that might have something to do with it.
Hi,

One Drive is one of the most prominent reasons for this to happen. You can see if your game folder is automatically backed up by looking for a small green checkbox icon as status (inside your file explorer). Usually the filepath includes the OneDrive location, too (for example: C:\users\cheffe\OneDrive\documents\my games).

Some folders like documents are automatically backed up, so the easiest way to change this is to move you project to a separate location or another drive.
Would moving the games folder in the document to any other file location fix it or do I need to go directly into One Drive?
Just move the game folder to another location. As long as it is no standard folder it won't be automatically synced to the cloud.
Just move the game folder to another location. As long as it is no standard folder it won't be automatically synced to the cloud.
Got it, and is there any way to get my data back, I have a backup from a few days ago but I've spent almost 20 hours in the last 2 days working on plugins and data and all I've been able to recover thus far is maps from reloading them in since the mapinfo.json was also corrupted.
files that are zero'd can't be recovered unless from backup
but if the maps still exist in fileform and only the mapinfo was damaged, then you can recreate the mapinfo file to make the maps accessable again.

you need to make a new project - don't do this in the damaged project or it might delete the files!!
in the new project, add new (empty) maps until the new project has the same number of maps as the original one.
then copy ONLY the mapinfo file, not the mapfiles themselves, back into the damaged project.

the map tree will be gone and need to be replaced, but this should make your maps accessable again.

Original thread: https://forums.rpgmakerweb.com/threads/files-continuously-become-corrupted.140095/