Playtest an MV game with BrowserSync

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
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).

Requirements:
-Node.js
-BrowserSync
-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>”

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

After that, just edit the game. The browser will refresh automatically.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,972
Members
137,561
Latest member
JaCrispy85
Top