"Unable to read file Game.rpgproject"

I had spent 4 days on some random rpg i decided to make and i decided to stop working on it for the night yesterday.

It seems that was the wrong option because now when i try to open it it tells me "Unable to read file Game.rpgproject."

Fix please?
upload_2019-3-16_17-58-24.png
Did you perhaps move the file to another folder?
Create a brand new project and copy the game.rpgproject file from that project into your current one.
Create a brand new project and copy the game.rpgproject file from that project into your current one.
ok ok, so i fixed the game i can edit it now BUT!, whenever i playtest now i get a white screen.
Press F8 and check the Console to see what errors are there, if any.

You didn't happen to deploy your project into your project directory, did you? If you open your project folder, is there a www folder inside it?
Press F8 and check the Console to see what errors are there, if any.

You didn't happen to deploy your project into your project directory, did you? If you open your project folder, is there a www folder inside it?
is it bad if thats a yes?
Yes, that's very bad.

Is it a yes?

@Andar you know more about this than I do.
Since I fixed it, and I was able to play test and everything it was okay. Until I realized half of my data was gone, so I'm just deciding to re-make it because the rpg wasn't nearly finished and i've also learned how to use more mechanics to make scenes and stuffs better. so really i don't need a solution anymore.
Hold off until Andar replies. He may be able to help you get most of it back.

For future reference, when you deploy a project, deploy it to a brand new folder far away from your project.
@Shaz @uwucandy
deploying into your own project basically places a copy of your project from the moment of deployment into the www folder and redirects the playtest into that folder, while the editor still uses the original structure. So anything you edit is still placed in the true area, but the playtest works on the old deployed copy and never uses the more current changes the editor does to the real project.

if nothing else has been done, you only need to delete the www folder and replace the package.json file with one from a new project (the wrong package.json is the reason for the redirect into the www folder).

Unfortunately because you said that you fixed it while loosing half of your project data, it is very likely that you did something else, overwriting files that had contained the old data instead of just repairing the redirect. If that is the case that data is truly lost, but I don't know if you did that.

I suggest you you make a copy of the project directory and try to repair that copy, then decide which case is better and has more data left.
The steps for repairing are:
1) delete the www foder
2) create a new project elsewhere
3) copy the correct package.json from the new project into the folder of the project to be repaired.
only try to repair a copy, not whatever you have as your current project.
Sorry for restarting this, but I've been having the same problem, except I don't have the www folder. What should I do?
@Personthatsonthisnow Don't bump old support threads or hijack threads with your own issue. You can make a new topic with your issue, if @Andar's solution above doesn't work for you.

Closing this thread.

Original thread: https://forums.rpgmakerweb.com/threads/unable-to-read-file-game-rpgproject.106894/