Playtest loads old version of game from deployment

So this is an insanely bizarre issue that I can't even begin to wrap my head around. I'm gonna do my best to try to explain what happened. So I did the Deployment on my game cause I wanted some of my friends to playtest it. But the deployment did something to the original game file. It created another folder called 'www' and every time I load the game up, it goes through there

1721893600524.png


This folder has it's own set of saves and everything seperate from the first one. It's like a whole new game was saved in there, but It's not the Deployment, I saved that elsewhere. But the thing is, I cannot get it to switch back to loading it from the actual Game.rpgproject for the playtest. If I delete the folder, it tells me my file was not found and the playtest won't work.

1721894057592.png


I've tried moving switching out specific files like the index.html from the www folder over to the main one, but that didn't do anything. There's no files that the www folder has that the main one doesn't.
That happens when you deploy into your project folder - you must never do this, deployment should always go into a different output folder.

to repair your project, you need to do two steps:

1) copy a package.json file from another project (or a new project) and replace the wrong one in your project with it.
2) delete the www folder

the www folder is deployment only and must never be in the project folder
That happens when you deploy into your project folder - you must never do this, deployment should always go into a different output folder.

to repair your project, you need to do two steps:

1) copy a package.json file from another project (or a new project) and replace the wrong one in your project with it.
2) delete the www folder

the www folder is deployment only and must never be in the project folder
Good to know, thanks! I really thought I put it elsewhere when deploying, but I guess not. And that fixed the problem, thanks for the help!
sometimes, this can cause a lot by the virus scanner, blocking it and into
quarantine, so you have to whitelist it to make it work.

and the www is always created in deployment, just don't use the same
folder as your project folder.

but double check the virus scanner if you open the game.exe if it throws
that error as I get it often when trying a game out from rpgmv/mz.

Original thread: https://forums.rpgmakerweb.com/threads/playtest-loads-old-version-of-game-from-deployment.170603/