While I was editing a climatic part of my game project, my place suddenly got a power outage. When I turned the game back on it said "Unable to read file Tilesets.json." I was able to recover the game using a different Tilesets.json file from my other project and everything seems to be OK but then my latest map got replaced with the default overworld base format. I was in absolute panic when I encounter this because I worked hard for the latest map. What caused this? Is there a way to fix this problem? If I can't find a way to fix this then maybe I'll just remake the end map and events from scratch.
tilesets.json suddenly don't work, latest map now gone!
RPG Maker MV SupportFile "tileset.json" has been damaged, so the program has probably been closed unexpectedly (for example pushing power button to turn the pc off without closing the application). If you recovered map file, then just recreate the tileset and set it for that map and everything should be back. And always remember to make a backup of your game!
In case of a power outage and similar effets, all currently open files are destroyed. That part of the data can't be regained unless you immediatly try repair programs without doing anything else on your harddrive (and even then there is a high chance that it won't work. Since you already worked on the HDD by copying files, the recovery chance has been much lowered (most likely to zero if you did more than a very few file operations).
The only thing you can do is copy the file from your latest backup and redo the part of the work after the backup.
The only thing you can do is copy the file from your latest backup and redo the part of the work after the backup.
The Tilesets.json file has little to do with your map. If your map was saved and the file is undamaged, all you need to do is set up your Tilesets tab correctly again and make sure the map is using the correct tileset.
With older versions of RPG Maker, an error like this meant the file (Tilesets) was completely unusable and you had to start over. But because MV uses .json, a text format, it might be possible to see where the issue is and fix it - though the flags data would be confusing. It might be a bit of work though, so if you've already started rebuilding it, it might be easier to keep doing that.
With older versions of RPG Maker, an error like this meant the file (Tilesets) was completely unusable and you had to start over. But because MV uses .json, a text format, it might be possible to see where the issue is and fix it - though the flags data would be confusing. It might be a bit of work though, so if you've already started rebuilding it, it might be easier to keep doing that.
I've moved this thread to MV support. Thank you.
This happened to my animations file once. Was a total loss. You really, really have to get in the habit of backing up your data every day.
However! Don't do something like set your project folder up with a cloud save. RPG Maker also gets really cranky with this. A copy and paste into a backup folder works best.
However! Don't do something like set your project folder up with a cloud save. RPG Maker also gets really cranky with this. A copy and paste into a backup folder works best.
I was absent from the internet from the past days due to low and no internet so I missed this thread while I was trying to redo my game. What I did is I copy-pasted everything from my old game to a new one and everything seemed to work fine when testing it. However I was ready to convert it into an Web Browser game for my friends online to test it but then this happened.
Can someone care to explain how to fix this one? Does this had something to do with my attempt in restoring my game? Maybe my game is doomed now...
Can someone care to explain how to fix this one? Does this had something to do with my attempt in restoring my game? Maybe my game is doomed now...
You are not deploying into your project folder, are you?
first step is to rename your folders
whenever a symbol or letter is replaced with a %-number in a browserline, it is a windows override that forces the browser to use symbols the browser originally can't handle.
And unfortunately this override is not perfect, it can and will result in "failed to load" errors because the browser can't always handle the filepath with those questionable letters.
In your case that's the spaces that are replaced with %20, you should remove them from the entire folder structure where you store the projects.
second step is as shaz mentioned above: the output for deployment needs to be a different folder than the one where you store your project into. Deploying into your project folder will damage the project by overwriting files with a different content.
The damage is repairable, but it needs a number of steps. Until the damage is repaired, the project with the deployed version can't be playtested anymore as any playtest is redirected to the older deployed version and will ignore all current changes done to the project.
If you had deployed into your project directory, please tell us and we will tell you how to repair your project.
third: after correcting the two issues above check if the error is gone and report here again.
There is a chance that you have additional errors as the problems mentioned above tend to redirect error messages - but for the same reason we can't even guess what else might be wrong until those redirects are solved and we can get the remaining messages.
whenever a symbol or letter is replaced with a %-number in a browserline, it is a windows override that forces the browser to use symbols the browser originally can't handle.
And unfortunately this override is not perfect, it can and will result in "failed to load" errors because the browser can't always handle the filepath with those questionable letters.
In your case that's the spaces that are replaced with %20, you should remove them from the entire folder structure where you store the projects.
second step is as shaz mentioned above: the output for deployment needs to be a different folder than the one where you store your project into. Deploying into your project folder will damage the project by overwriting files with a different content.
The damage is repairable, but it needs a number of steps. Until the damage is repaired, the project with the deployed version can't be playtested anymore as any playtest is redirected to the older deployed version and will ignore all current changes done to the project.
If you had deployed into your project directory, please tell us and we will tell you how to repair your project.
third: after correcting the two issues above check if the error is gone and report here again.
There is a chance that you have additional errors as the problems mentioned above tend to redirect error messages - but for the same reason we can't even guess what else might be wrong until those redirects are solved and we can get the remaining messages.
Thanks for the advice. Rn I resorted to converting it to a Windows app. I'll try converting it to Browser once again once I launch another short demo for my online friends. By then I will take on your advice.
BTW in the Windows app the game ran smoothly. No problems at all. I guess that error is only with the Web Browser version.
BTW in the Windows app the game ran smoothly. No problems at all. I guess that error is only with the Web Browser version.
every version is a web-browser, because the RMMV games are HTML5-games and always started by the index.html.
the only difference is which webbrowser is used to run the index.html.
Oh. What I mean is that I distributed the game as Web Browser first and the error above popped out when I open index.html. I distributed it as Windows next, opened the game and there are no errors there.
Original thread: https://forums.rpgmakerweb.com/threads/tilesets-json-suddenly-dont-work-latest-map-now-gone.120053/