1. Dismiss Notice
  2. Within our Resources section we have over 150 Audio files, with room to grow. You may find exactly what you have been looking for. Just CLICK HERE to start your listening adventure.
    Dismiss Notice
  3. Why would you want to upload your resources directly to RMMV.co? It makes it easier for other members to download them. Click HERE for more information.
    Dismiss Notice
  4. Click HERE to see our four new featured resources by TheUnproPro, Starbird, iblamevictoria, and VGM MarkH.
    Dismiss Notice
  5. Here are the The Resource Rules.
    Dismiss Notice
  6. Please read these RULES before posting.
    Dismiss Notice

Play test a MV game with BrowserSync

Discussion in 'MV Tutorials' started by AceOfAces, Feb 16, 2018.

  1. Sometimes, you need to play-test an MV game in a browser. However, trying to run the game through the index.html file will result in crashes. Using BrowserSync (a Node.js module), we can set up a local server in seconds and test it, without having to set up server software (unless you need to work on an ASP.NET or PHP website).

    -An RPG Maker MV project.

    Video version:

    Text Version:

    Here’s how to start using it:
    1. Download Node.js from https://nodejs.org (or from your repository, if you are using a Linux distro). You can use either the LTS or the Current version.

    2. After installing, run the node command line, then type “npm install -g browser-sync” (without the quotes. This will take a while.
    3. Once installed, switch to the game’s folder in the command line (usually, cd <folder>).
    4. Type “browser-sync start –server” (without the quotes). This will set up the server and open the game in the default browser.

    If everything went right, you’ll see the “Connected to BrowserSync” badge and the game should work as it should.
    If you need the game to refresh the browser every time you edit the game, you’ll need to tell BrowserSync to monitor the files.

    To do that, type:
    browser-sync start –server –files “<folder>/<file or filetype>”

    browser-sync start –server –files “data/*.json”
    browser-sync start –server –files “*”

    After that, just edit the game. The browser will refresh automatically.
    --- Double Post Merged, Feb 25, 2018, Original Post Date: Feb 16, 2018 ---
    @trapless , it takes about 30~40MB of space to install BrowserSync (not counting how much nodejs itself takes).
  2. Code (Text):
    fail:       –server –files
    win:        –server–files
  3. I just noticed that. You will need to set them like this:

    Code (Text):

    --server --files
    Libreoffice formatted them as one.
  4. I test in Firefox though it would be cool to know how to set this up with the nw.exe that play test opens too. Please share if you happen to figure it out.

Share This Page