MV Unable to read file Actors.json

Huge issue, I think my game files are corrupted. I saved me game moments ago before turning my computer off and on because my internet was unstable. After relaunching RPG Maker MV, it shows this message. Let me know if there's anything I can do to recover/fix this, I would very much not like to lose this work.

Here are some images:
Evidence 1.JPG

Evidence 2.JPG

Evidence 3.JPG
Let me know if there's anything I can do to recover/fix this, I would very much not like to lose this work
The only thing you can do now is not beat yourself up about it—and maybe remember to backup your project every 10 minutes next time!
I had this happen to me not that long ago, but it was my Animations.json

Luckily I had backed up my project... it was a few weeks older but it was close enough to what I had that I could recreate the missing ones and even improve them a little.

But there is nothing you can do at the moment... start a new project copy and paste that Actors.json to your project and start over again by recreating the actors from your game... Luckily it's just the actors and not the entire project.

BTW: what are all those JSON files? "Old Lady that DIES.Json"? What are those?
I had this happen to me not that long ago, but it was my Animations.json

Luckily I had backed up my project... it was a few weeks older but it was close enough to what I had that I could recreate the missing ones and even improve them a little.

But there is nothing you can do at the moment... start a new project copy and paste that Actors.json to your project and start over again by recreating the actors from your game... Luckily it's just the actors and not the entire project.

BTW: what are all those JSON files? "Old Lady that DIES.Json"? What are those?
I was being a little silly a while back, i think those are the character creation templates that I was saving. My friends were telling me not to have her die and I was messing with them. As for the json files corrupted... these are all of them

Actors.json
Classes.json
Items.json
Armors.json
Enemies.json
CommonEvents.json
Animations.json
MapInfos.json (I updated to include maps 38, 39, and 40)
Skills.json
Weapons.json
Troops.json
States.json
System.json
Tilesets.json
plugins.js
Map040.json (file was entirely corrupted with null bytes)

I have a backup from a month ago that I can use to restore it to that point, but Map040 is the map I've been working on pretty much the whole month and I can't seem to get it. Map 38 and 39 are new since the backup, but I was able to get those, but those aren't nearly as important. I've been looking into this since I made the post and this is pretty disheartening
I was being a little silly a while back, i think those are the character creation templates that I was saving. My friends were telling me not to have her die and I was messing with them. As for the json files corrupted... these are all of them

Actors.json
Classes.json
Items.json
Armors.json
Enemies.json
CommonEvents.json
Animations.json
MapInfos.json (I updated to include maps 38, 39, and 40)
Skills.json
Weapons.json
Troops.json
States.json
System.json
Tilesets.json
plugins.js
Map040.json (file was entirely corrupted with null bytes)

I have a backup from a month ago that I can use to restore it to that point, but Map040 is the map I've been working on pretty much the whole month and I can't seem to get it. Map 38 and 39 are new since the backup, but I was able to get those, but those aren't nearly as important. I've been looking into this since I made the post and this is pretty disheartening
All of those files are corrupted?! That sucks majorly! I've taken to backing up just my data folder into a separate project folder so that I can have recent backups if the corruption ever happens again. I back up just about every night before I go to bed.
NEVER, EVER modify JSON files in Data folder unless you know exactly
know what your doing, as messing 1 thing up or wrong input make the
other data corrupt as it cannot read them.

MapInfo.json should never be updated, as it mostly update itself when
you add maps to your project and run them.

those files are visible, but if the data is incorrect, it makes the other data
corrupt from reading, so don't touch ANY of the json in data.
I saved me game moments ago before turning my computer off and on because my internet was unstable.
The harddrive (like many other computer parts) has its own electronics and RAM, and when Windows gives the order to save data it is written into that RAM before being transferred to the magnetic storage surface of the drive.
The reason for that is because the storage process is much slower than any RAM can ever be - the RAM-Cache speeds up the harddrive a lot.

Unfortunately for you, that is also the reason for the shutdown process of windows - during which windows waits until all hardware reports the "RAM clear" before giving the command to turn off the computer.
Simply cutting power or overriding that shutdown for a faster restart will always contain the risk of losing data, due to interrupting those hardware processes.


Additionally, storing data like your project inside the program folders (especially inside steam folders) has problems of its own - mostly security and access rights problems. It should not be done this way, but the files should be saved elsewhere.
All of those files are corrupted?! That sucks majorly! I've taken to backing up just my data folder into a separate project folder so that I can have recent backups if the corruption ever happens again. I back up just about every night before I go to bed.
Yeah, i'm gonna make a seperate folder and backup everytime I'm done working on it.
NEVER, EVER modify JSON files in Data folder unless you know exactly
know what your doing, as messing 1 thing up or wrong input make the
other data corrupt as it cannot read them.

MapInfo.json should never be updated, as it mostly update itself when
you add maps to your project and run them.

those files are visible, but if the data is incorrect, it makes the other data
corrupt from reading, so don't touch ANY of the json in data.
I made multiple versions and tweaked the mapinfo one so it'll show map 38 and 39, which it wasn't doing before. Map 40 is gone so I can't do anything about that. But yeah, im not going to touch anything else and I'm keeping backups before I do anything now.
The harddrive (like many other computer parts) has its own electronics and RAM, and when Windows gives the order to save data it is written into that RAM before being transferred to the magnetic storage surface of the drive.
The reason for that is because the storage process is much slower than any RAM can ever be - the RAM-Cache speeds up the harddrive a lot.

Unfortunately for you, that is also the reason for the shutdown process of windows - during which windows waits until all hardware reports the "RAM clear" before giving the command to turn off the computer.
Simply cutting power or overriding that shutdown for a faster restart will always contain the risk of losing data, due to interrupting those hardware processes.


Additionally, storing data like your project inside the program folders (especially inside steam folders) has problems of its own - mostly security and access rights problems. It should not be done this way, but the files should be saved elsewhere.
Makes sense, I'll switch the saves elsewhere and wait a bit more.

I've done about everything I can think to try to recover my data. I've lost most of what i did this last 30 days, but it's not impossible to remake it better so I'll do that.

There is a piece of script or code (I'm not sure what to call it) that I'm missing that was crucial to what I was making. It was in the event's conditional branch and it checked if this event id was located in the same coordinates as the player or actor id. If they were the same, it would play out the conditional branch. It ran parallel. Like a giant boulder rolling and if it was in the same tile as the player, it would trigger the event. Seperate from player touch or event touch. I think Shaz was the one to have it, but I can't find it anywhere.

It looked like

Event id 3 (x y) === actor id 2 (x y)

Or something like that
Code:
$gamePlayer.x === $gameVariables.value(183) && $gamePlayer.y === $gameVariables.value(184)
I have this code snippet that uses game variables to match the event and player together, but I'm not sure if it's what your looking for.


Edit: Nevermind.... I just played around with that code snippet and came up with a much better one that works SOOOO much better and more efficiently:

Place this in the script portion of a conditional branch:
Code:
$gamePlayer.x === $gameMap.event(this._eventId)._realX && $gamePlayer.y === $gameMap.event(this._eventId)._realY
Yeah, i'm gonna make a seperate folder and backup everytime I'm done working on it.

I made multiple versions and tweaked the mapinfo one so it'll show map 38 and 39, which it wasn't doing before. Map 40 is gone so I can't do anything about that. But yeah, im not going to touch anything else and I'm keeping backups before I do anything now.

Makes sense, I'll switch the saves elsewhere and wait a bit more.

I've done about everything I can think to try to recover my data. I've lost most of what i did this last 30 days, but it's not impossible to remake it better so I'll do that.

There is a piece of script or code (I'm not sure what to call it) that I'm missing that was crucial to what I was making. It was in the event's conditional branch and it checked if this event id was located in the same coordinates as the player or actor id. If they were the same, it would play out the conditional branch. It ran parallel. Like a giant boulder rolling and if it was in the same tile as the player, it would trigger the event. Seperate from player touch or event touch. I think Shaz was the one to have it, but I can't find it anywhere.

It looked like

Event id 3 (x y) === actor id 2 (x y)

Or something like that
I'm having the exact same issue as you right now, from what you've gathered so far have you found a solution?
Would you say the answer pretty much boils down to making constant backups of the project or is there something more to it than that. Is there a way to recover Unreadable files when that happens?

Because I've tried an option that said to make a new project and copy it from there paste it into your project that's having issues and that's no good tbh because it just replaces the file and gets rid of the progress you made. Also still doesn't fix all of the files, like your example of all the different corrputed files you had is basically what's also happening to me too.
I'm having the exact same issue as you right now, from what you've gathered so far have you found a solution?
Would you say the answer pretty much boils down to making constant backups of the project or is there something more to it than that. Is there a way to recover Unreadable files when that happens?

Because I've tried an option that said to make a new project and copy it from there paste it into your project that's having issues and that's no good tbh because it just replaces the file and gets rid of the progress you made. Also still doesn't fix all of the files, like your example of all the different corrputed files you had is basically what's also happening to me too.
Sadly, it's pretty much all gone, HOWEVER in my situation, I had a backup from a month prior, so I rebuilt off of that. There were 3 maps I made within the month. The one I spent the most time on, Map 40 is corrupted and couldn't be saved. Map 38 and 39 were fine, but the Map info file from the backup didn't recognize them since it wasn't logged a month ago, so I manually added them in "carefully" making multiple backups as I touched anything in case something happened again. I still haven't recovered, but I'm definitely going to make more backups. I was really bummed out, but I'm not letting that stop me from making this project, I've almost remade my progress.
Sadly, it's pretty much all gone, HOWEVER in my situation, I had a backup from a month prior, so I rebuilt off of that. There were 3 maps I made within the month. The one I spent the most time on, Map 40 is corrupted and couldn't be saved. Map 38 and 39 were fine, but the Map info file from the backup didn't recognize them since it wasn't logged a month ago, so I manually added them in "carefully" making multiple backups as I touched anything in case something happened again. I still haven't recovered, but I'm definitely going to make more backups. I was really bummed out, but I'm not letting that stop me from making this project, I've almost remade my progress.
Hey I have a post on this as well and I got some feedback from others if you want to peruse it as well:


After that conversation here’s what I’m personally doing to avoid this issue from happening now:

+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.
Or you can use github or similar site to backup your code. The good thing is you can roll back if you made a mistake.

Original thread: https://forums.rpgmakerweb.com/threads/unable-to-read-file-actors-json.170861/