Game file/Data keeps corrupting

Almost every single day I open up my laptop and open RPG Maker MV, my WIP game almost ALWAYS has something wrong with it. Whether it's the data corrupted, the .rpgproject file, the javascripts; this morning it was all three.


I don't close my laptop with RPG Maker open, because I noticed that could have been the source of the issue, but alas, it's still happening. Every single day I have to make a new project and copy over my maps, and often the data files are corrupted too so I have to go to a previous version.


Is there any way to stop this from happening?
@goldrat1...


It sounds bad, but we'll need quite a bit more information about your system to have a chance of seeing what's amiss. What laptop (PC..? Mac..?). What OS..? (Windows 10, XP, Mac OSX..?). How old is your laptop..? Only one disk..? No USB drives, or memory sticks involved..? Do you back up your Projects..? If not, why not; if so, how..? Over to you...
Basically this means that something damages those files - and you need to find out where the damage comes from to stop this.


It could be a background program interfering with saving, it could be that your windows shutdown is interrupted before the saved data is completely transferred to the harddrive, it could be that your harddrive is about to completely fail (check its S.M.A.R.T.-status, if that is far lower than 80% then save your data and exchange the HDD) or several other options.


The RM's are more vulnerable to shutdown and file problems than other programs due to the way they handle data storage, but the editor doesn't damage the files - this is an indication that something else does this.
@goldrat1...


It sounds bad, but we'll need quite a bit more information about your system to have a chance of seeing what's amiss. What laptop (PC..? Mac..?). What OS..? (Windows 10, XP, Mac OSX..?). How old is your laptop..? Only one disk..? No USB drives, or memory sticks involved..? Do you back up your Projects..? If not, why not; if so, how..? Over to you...

@Dad3353 PC, Windows 10 Home, version 1607, OS build 14393.447.
Processor: Intel(R) Core(TM) i7-4720HQ CPU, 2.60GHz


16.0 GB of installed RAM
64-bit operating system, x64-based processor


It's an Alienware 15 laptop, about one and a half years old. Four USB ports, two disks. I back up my Projects quite regularly, by either uploading it to my OneDrive, copying it to somewhere else onto the computer, or copying it onto a USB.


Hope this helps!
Basically this means that something damages those files - and you need to find out where the damage comes from to stop this.


It could be a background program interfering with saving, it could be that your windows shutdown is interrupted before the saved data is completely transferred to the harddrive, it could be that your harddrive is about to completely fail (check its S.M.A.R.T.-status, if that is far lower than 80% then save your data and exchange the HDD) or several other options.


The RM's are more vulnerable to shutdown and file problems than other programs due to the way they handle data storage, but the editor doesn't damage the files - this is an indication that something else does this.

@AndarI checked the S.M.A.R.T status, my hard drive seems to be fine. Could be something interfering. Should I make sure to leave the editor a minute to save before closing my laptop or something?
I would suggest, at least for now, and maybe as a permanent 'discipline', to close the Project before exiting the Editor, then, systematically, copy the entire 'Project' folder to another disk, preferably an external disk. Then, and only then, shut down the laptop, finishing off by closing the lid once it's shut down. This, in itself, may keep the issue from happening, but even if not, will allow you to recover the latest Project from the backup. Try it; see if it helps at all, maybe..?
My suggestion: NEVER shut down the laptop as soon as you exit the editor. Save processes can take a minute or two to run, and a shutdown can interfere with that (it shouldn't, but it can). Always exit the editor at least 5 minutes before you decide to close the laptop down, if possible.
Where are you saving your projects to?  Are you using the Steam version of RM or the standalone?
Where are you saving your projects to?  Are you using the Steam version of RM or the standalone?

@Shaz I'm saving to my OneDrive, and I'm using the stand-alone.
That could be the problem - syncing with onedrive adds an extra layer of potential delays.



I suggest you move it to somewhere just on your PC (no automatic syncing with online storage like onedrive, dropbox, etc) and see how it goes over the next few days.
I think there was someone with the very same problem not that long ago and yes, it was because they were saving directly on OneDrive.

Original thread: https://forums.rpgmakerweb.com/threads/game-file-data-keeps-corrupting.70795/