"Unable to read mapinfos.js"

I submitted a support ticket about this, and they told me I should post it here, hopefully someone can help.

I've been using MV since release without incident, but about a week ago when I tried to open my project I got an error "Unable to read mapinfos.json". When I tried to create a new project, I got an error "Unable to read actors.json." I tried re-installing and can now open a new project, but I still get the same error when I try to open the project I'd been working on. Can you help me to get my original project working? If not, is there any way for me to salvage any of the work I did on that original project, if I can't open it?

Thanks!

Edit: I'm using the Steam version of the game on Windows 10, in case that turns out to be relevant.
How are you running your game?

Through index.html or with Playtest button?

Try clicking F8 to show the console, and paste the error log here.

Also, check your "data" folder if Actors.json is there, and then look if there are some strange characters in it.

If they are, that file is most likely corrupted.
Those errors usually happen when files have been damaged, and that usually happens on windows crashes or power failures.


The first step would be to try to replace the damaged files from a new project (better make a copy of the damaged project first)


In the case of the mapinfo.js, that needs to be copied from a project with the same number of maps than the damaged one, or you'll loose some maps.


Simply make new, empty maps until you have the required number, then save the new project and copy the mapinfo file into the damaged project - and try again to see what other files may have been damaged.


However, you will probably loose part of the project data - unless you have a backup somewhere.
Creating a new mapinfo.js as Andar described worked! It turned out my plugins.js was also corrupted, but I was able to replace that with a blank one, and then my re-installed MV was able to open the project I've been working on. I had to set up all my plug-ins again (they were still in the folder where I downloaded them, just had to set them up), but otherwise everything seems to be there. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/unable-to-read-mapinfos-js.49995/