Can't find index.html in RPG Maker MV

Namnlös.png

So, I recently reinstalled RPG Maker MV and for some reason I can't open old projects OR new projects. I get the same error message no matter what I do.

I've come to understand that the program is trying to find index.html in a "www" folder, which doesnt exist in any my projects folder. The index.html is just sitting in the main project folder, and not in any sub folders. I've even tried to make a "www" folder and put the file in there and playtest, but same error message.
However, when i deploy any of my projects, then a new folder is created with all the DEPLOYED game files in like C/users/UserName/documents/output , and when i then run the deployed exe file then everything seems to work. And when looking into the deployed folder there IS a "www" folder and the index.html file IS located in that folder.

So for some reason - when trying to play test any project - the program is trying to open the game the way it would when you have already deployed a game.. i dont know anything about anything when it comes to this.
I've read it could be because of chrome or whatever, but I have no idea how to resolve this.
Only deployed projects should have a www subfolder. Usually the entry point is specified by the project's manifest file, package.json:
JSON:
{
    "name": "",
    "main": "index.html",
    "js-flags": "--expose-gc",
    "window": {
        "title": "",
        "toolbar": false,
        "width": 816,
        "height": 624,
        "icon": "icon/icon.png"
    }
}

A couple of ideas:
  1. Delete package.json, save your project, and test. The editor should automatically restore the missing file to the default.

  2. Reinstall RPG Maker MV, to restore edited or corrupted files.
or make a new project and copy the packages file from there.


ATTENTION: this error usually happens if you make the mistake of deploying the game into your project directory- because that both creates the WWW folder and replaces the package file with the wrong one.
NEVER deploy into your project directory, deployment has to have a different output directory.
To make it clear: your index.html is in the right place. That you dont have a www folder is 100% correct.

Just to be sure... how do you test your game? Are you using the in-software test option by pressing ctrl+r or the testplay button? Those should work.

Ive seen people trying to run it in a browser directly or something (and I admit, I did this myself when I started out). That wont work before deploying.

Original thread: https://forums.rpgmakerweb.com/threads/cant-find-index-html-in-rpg-maker-mv.167387/