Saving: Failing

I can't provide picture evidence right now due to the nature of my problem, however my project was refusing to load any changes I made when I was playtesting the game - even when I closed it, saved, and reopened. I followed advice on a different thread - deleting all www folders and the package.json - and suddenly my entire project is gone! Game won't open, maps are all gone, everything but a common event and a name.

Any ideas?
you should have read the instructions before following them.

package.json needs to be replaced with a package file from a new project, not deleted - it is still required for the project to function.

the reason why you need to delete the www folder is because it is the deployment result, and can only appear if you deploy into your project directory - which is always wrong, you need to deploy into a different output directory than the project directory.


if that is the only mistakle you made, the project will work again as soon as the correct package file is placed in it.
if you made other mistakes then I hope you at least made a backup before deleting

but report back herte if there is any other problkem and we try to save as much as possible now.
I put in a package.json from a backup into the folder, but it didn't actually do anything. I've lost all of my maps, and events on the game, so I've decided to rebuild it via discord + using the latest version I uploaded onto itch.io.
As for not saving it into that output directory, whenever I try to deploy in a different location, it tells me that it already exists and to overwrite the last version of the game I've deployed - leading to www folders. Do you know why that is?
Do you know why that is?
that means that you have deployed there before.
simply make a new folder for the new output, do not use existing folders.
Why not just restore whatever you deleted from the Recycling Bin and ask for help in cleaning up your problem more carefully?
I didn't actually think of un-deleting the files, but it's fine. I now know the problem and it took me only a handful of hours to manually make everything again (with changes and improvements), so...deleting it ended up being a good thing, kind of.

Original thread: https://forums.rpgmakerweb.com/threads/saving-failing.165903/