RPG Maker MV: "Unable to Read" error. Files corrupting after restarting computer. Help?

[RPG Maker MV] Issue: Unable to Read Game Files issue upon closing RPGMaker MV and restarting PC.
I've googled around and found other people having this issue at various times but it seems uncommon so there doesn't seem to be an exact "aha" solution to this problem but this is my issue.

I'm working on some practice projects lately and I work for maybe about an hour or 2 and have some basic event scripting some variables and maps etc. I save the project many times in all possible ways in the software's file menu and then I close the software. I even open it back up just to check and it seems fine. "Whew, glad my project's still safe". I restart windows and or turn it off until the next day and come back to the computer I get issues saying my game files can't be read. The issue will pick a random file and tell me X couldn't be read Y couldn't be read like so:
1723421657574.png

If I try to replace that file with one from a new project, firstly I think it just deletes what was in the original file essentially since a new project file just over writes it so that's out. But if I actually do that it will just go "Oh, that one's fine not but now here's another one "Unable To Read Actors.js" it will just keep going down the list of every file mostly stuff from the data folder.

I want to know why is this happening because I worked with MV for a good while before to make some other practice projects and those were fine I used the software like normal saving and exiting the same way and never had this issue once but now I do. Some people from other people's posts on this same issue say it could be a windows problem, but where would you even begin to troubleshoot that? I've already re-installed RPG Maker MV through steam and that didn't fix it. Is there even a way to save these files when an RPG maker MV project does this?

It's really disheartening to have this issue too because I've been working towards making a larger project and if I can't even stop this from happening what would happen if I lost an even larger more comprehensive proejct this way someday it makes it questionable to even try as is.

Edit:

TLDR Solution:
+Save Project like normal
+Save a Backup of the project where easily accessible
+Make a backup of the data folder if those files inside of it only are having this issue
+Don't Close RPG Maker with the X but instead: File>Exit RPG Maker (may or may not be needed)
+Allow time for Windows to transfer changes from ram into permanent HDD storage(or whatever)
+If you must turn off computer maybe use the uber slow shut down option from windows menu.

Thanks for the responses to thread!
save these files when an RPG maker MV project does this?
Yeah it's called having a backup, and apparently everyone needs to learn the hard way before they make them.
If I try to replace that file with one from a new project, firstly I think it just deletes what was in the original file
Well yes.

I want to know why is this happening
The most common cause for this kind of corruption is having your project in a folder that's getting synced to the cloud (OneDrive, Google Drive, etc.). If MV tries to write to a file at the same time it's getting copied to a backup, it can result in corruption.

If you're sure there's no cloud backup going on, then it's harder to troubleshoot. It could be a mechanical problem with your hard drive. It could theoretically be some kind of weird anti-virus interaction.

Someone else might have other ideas.

Is there even a way to save these files when an RPG maker MV project does this?
You can make frequent copies of your data folder to a backup location on your computer. Unless you're saying this happens literally every time you close and reopen your project. But if this is happening more than once, there has to be something going wrong with your system.
I restart windows and or turn it off until the next day and come back to the computer I get issues
how did you turn off the computer?

what a lot of people don't know is that hard drive storing data takes time. And the hardware manufacturers speed that up by giving the harddrives their own RAM cache.

So windows sends the data to the harddrive and gets back an OK when the data is in the harddrive's RAM, not when it is finally stored on the magnetic surface of the drive.
and RAM data is lost on power off.

That is what the shutdown procedure is really about - Windows basically waits (among other things) for the harddrive to report "finished storing data, my RAM is now empty" before switching off power.

If you don't use shutdown but simply switch off power, then you will always loose the remaining cahced data from the harddrive, damaging your files.
The same happens if the windows procedures are damaged and the shutdown no longer works correctly.
and having other programs access your files (no matter if it is a cloudsync or a virus scan or a few other causes) just adds to that - you cannot cut power or shutdown if the files on the harddrive are accessed as that would damage them.
You can make frequent copies of your data folder to a backup location on your computer. Unless you're saying this happens literally every time you close and reopen your project. But if this is happening more than once, there has to be something going wrong with your system.
The issue occurs not everytime I save and close but everytime I save, then close, then restart windows in any way. Once I'm back in then the error occurs. Also does this mean if I make a backup I don't have to copy the entire project folder as a backup but maybe just the data folder alone and that would be enough for this specific issue?

I was thinking copying the entire project folder so many times could take up alot of space over time. But I've been thinking about getting an external hard drive in light of this problem if this is the answer.
how did you turn off the computer?

what a lot of people don't know is that hard drive storing data takes time. And the hardware manufacturers speed that up by giving the harddrives their own RAM cache.

So windows sends the data to the harddrive and gets back an OK when the data is in the harddrive's RAM, not when it is finally stored on the magnetic surface of the drive.
and RAM data is lost on power off.

That is what the shutdown procedure is really about - Windows basically waits (among other things) for the harddrive to report "finished storing data, my RAM is now empty" before switching off power.

If you don't use shutdown but simply switch off power, then you will always loose the remaining cahced data from the harddrive, damaging your files.
The same happens if the windows procedures are damaged and the shutdown no longer works correctly.
and having other programs access your files (no matter if it is a cloudsync or a virus scan or a few other causes) just adds to that - you cannot cut power or shutdown if the files on the harddrive are accessed as that would damage them.
Usually when I'm done for the day I'll hold down the power button for about 10 seconds then hit the power switch and then hold the power button for 10 more seconds to fully cycle the power out of the computer.

As for the Hard drives with Ram Cache do all hard drives have this or is this specifically a feature you have to look for when buying hard drives specifically? How much of a difference in this process in regards to speed does something like that make? Curious because I've also seen something like this mentioned when looking for solutions to this problem.

(Also random question how do i add a profile picture i don't see an option to do it is my acc too new?)
The issue occurs not everytime I save and close but everytime I save, then close, then restart windows in any way.
That would make me think something is going wrong with your system. I don't even know what to look at, but clearly restarting Windows has nothing to do with MV.

Are you sure there's no cloud or other backup utilities running when it reboots or starts?

Also does this mean if I make a backup I don't have to copy the entire project folder as a backup but maybe just the data folder alone and that would be enough for this specific issue?
Yes, that's what I said.

I was thinking copying the entire project folder so many times could take up alot of space over time.
I don't understand why you would copy it to a different place every time to make it take up more space. All you need is one functional backup.

Usually when I'm done for the day I'll hold down the power button for about 10 seconds then hit the power switch and then hold the power button for 10 more seconds to fully cycle the power out of the computer.
That's not the correct way to turn off your computer. You should only use the Shut down command from the Start Menu - anything else can cause issues with files that are still in your RAM waiting to be written to disc.

There's no reason to "cycle the power out of the computer."
Usually when I'm done for the day I'll hold down the power button for about 10 seconds
and that is the cause - you disable the required shutdown procedure that way.

that is doesn't happen everytime is because most of the time the harddrive has finished storing before you do this, but if the storing is still in process this will damage your files

There's no reason to "cycle the power out of the computer."

Theoretically there is a reason, but that reason is caused by

then hit the power switch

the use of main power switches.
If you switch on multiple devices at the same time, you create a induction loop that can peak to several dozen kV (a friend once detected 50.000 volt and that is not the maximum possible).
These peaks can cause faults in some computer parts that are automatically repaired by such a power reset - but they can't happen without a powerswitch being used, so he gets a dozen issues by using a power switch and only repairs one of them.

Using a main power switch like that is like an artificial main power loss to all devices. Have you ever asked an electrician on how to behave on main power loss, especially if it is your entire street or so?
they will always tell you to disconnect all electronical devices and only reconnect them one after another after power is restored. And the induction loop created by multiple devices getting their power restored at the same moment like described above is exactly the reason.

and no, the time when standby cost too much energy is also decades in the past - the current standby power is effectively so low that the money saved by using those external power switches is only a fraction of the money it costs in the reduced lifetime of the devices tortured by the inductive loop on power on - because even if the 50kV are rare (those would destroy your computer), smaller peaks like 5kV are more common and much more survivable for devices - they just reduce the device life expectancy, forcing you to replace them much sooner than otherwise needed.
That and MV has a habit of saving every file even if you don't make changes.
Theoretically there is a reason, but...
I don't really get the point of what you're saying.

You're saying there's theoretically a reason to do something which no computer user does, but it's caused by doing something else that no computer user does (no one I know turns off the PSU switch unless they're opening the case to work on the hardware).

So for practical discussion, which pertains to the average (lower-tech-knowledge) user, there's no reason. Are we agreed?
Ok so I think I found a practical solution to this problem in light of all this feedback.

Solution: Just have better practices when it comes to ending an RPG Maker project session to avoid running into these issues in the first place.

+Save Project like normal
+Save a Backup of the project where easily accessible
+Make a backup of the data folder if those files inside of it only are having this issue
+Don't Close RPG Maker with the X but instead: File>Exit RPG Maker (may or may not be needed)
+Allow time for Windows to transfer changes from ram into permanent HDD storage(or whatever)
+If you must turn off computer maybe use the uber slow shut down option from windows menu.

After doing all of the above I can confirm that at least using exit RPG Maker (and still using power button instead) allowed my files to be saves. But it's probably better to do all of the above. Idk, I hope this thread helps some other person who runs into this again and thanks for the responses folks.
That would make me think something is going wrong with your system. I don't even know what to look at, but clearly restarting Windows has nothing to do with MV.

Nope no cloud backup things on. I'm good now though after taking everything into account thanks for the feedback I'm gonna work on better project management practices.

Also how do you add a profile picture do you have to wait a while after making an account or am I just blind?
I think some of this is related to understanding proper computer/operating system usage.

+Save a Backup of the project where easily accessible
This is not typically necessary - yes, you should make backups, but for most people doing it every time they close the editor is overkill. Your described circumstances are unique.

+Don't Close RPG Maker with the X but instead: File>Exit RPG Maker (may or may not be needed)
This makes no difference.

+Allow time for Windows to transfer changes from ram into permanent HDD storage(or whatever)
This also makes no difference. If you're turning your computer off immediately after using RPG Maker, shutting it down correctly through Windows will already let Windows finish doing anything it needs to do. There's no need for you to artificially add time by waiting.

+If you must turn off computer maybe use the uber slow shut down option from windows menu.
Again, you should always do this. That's how your operating system and computer hardware is designed. By just cutting off the power to your computer you run the risk of corrupting any files you've used, including those vital to your operating system; and there's a non-zero chance of damaging the actual hardware in your computer.

I honestly have no idea how you got the idea that this was an okay thing to do. I also don't see how it makes a difference whether it's slow for you or not - you're turning it off, not planning to use it anymore. Click the button and walk away.

Also how do you add a profile picture do you have to wait a while after making an account or am I just blind?
I don't know what you're looking at, so I can't answer whether you're blind 😉 but it's right on the square for the profile picture.

1723438305566.png

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-unable-to-read-error-files-corrupting-after-restarting-computer-help.171018/