Is there a way to run project without open RMMV editor?

Some Solution Received:

* Setup a web server and Use Chrome to open project address like "http://path/to/project" (ref)
* Use Firefox to open "index.html"

The Question still here:

* Does RMMV provided a batch command that could make "nwjs-win/Game.exe" direct execute project? Do some Behaviour like click "Run Game" button in Editor, but not really in Editor.

Detail:

Hi.
I'm making a in-game editor and for convenience, I'm trying to execute my project direct by "nwjs-win/Game.exe"
But whatever I try, Game.exe just throw me a "white screen".
I've tried to copy whole "nwjs-win" to project directroy and move my project file into sub-directory "www", it works, but when I set "toolbar" in package.json to "true", there is no toolbar appear.
I also tried to create a package.json and execute Game.exe by cmd.exe, send my project's directory path as parameter ( START "" "D:\Program Files (x86)\Steam\steamapps\common\RPG Maker MV\nwjs-win\Game.exe" "F:\Project.LazierRmmvEditor\Develop" ), but it doesn't work.

I tried to find some information about this in RMMV User Manual, but I didn't find it.
I googled about this for half a hour, but I didn't find any solution about this.

Is there a way to execute project without open editor? (And without use the original nwjs.exe)
Thank you for any help!!!
of course it is - just doubleclick the index.html and it will open in your default browser.
RMMV-Games are browser-based, and the exe is nothing but a simplyfied version of an open-source browser, containing absolutely no game data.
of course it is - just doubleclick the index.html and it will open in your default browser.
RMMV-Games are browser-based, and the exe is nothing but a simplyfied version of an open-source browser, containing absolutely no game data.
I did it right now, but I find a problem that is though doubleclick the index.html will open my default browser ( I use Chrome this case ), but my default browser cannot understand commands defined by nw.js like method "require".
Thus the browser cannot load rmmv and its base modules like require('nw.js').
either you're misinterpreting the error, or something in your project is damaged. Chrome can play MV games if everything is correct (the game.exe is based on chromium for example iirc).

Can you open the index.html with other browsers to check if they work? preferably firefox as that is the easiest one.

Can you post a screenshot of the error messages you get from chrome?
And can you check its security settings? Some versions of chrome had a setting that prevented the local load of webfiles, causing problems on too strict a setting (the browser assumed that since the game was web-based it would be a malware-infected website trying to access local files without detecting that the file was local as well)

and can you tell 1) which version of the editor you have and 2) which version of the core files are used by your project (not nessessarily the same versions)

Additionally, make sure that the entire path to the project is using latin letters only - if for example you have a chinese username and the game is inside the userfolder, that will cause access problems due to the fact that the engine needs all paths and filenames to follow networking rules.
Move the project to the main HDD directory of you're unsure of the path being a problem.
I did it right now, but I find a problem that is though doubleclick the index.html will open my default browser ( I use Chrome this case ), but my default browser cannot understand commands defined by nw.js like method "require".
Thus the browser cannot load rmmv and its base modules like require('nw.js').

I am a chrome user and I can not open them either. It is likely chrome causing this so maybe you could still use the dreaded windows internet explorer for just opening your project?
capture.png

I'm using 1.5.0 of RMMV, and run Chrome by Administrator, it throw those errors.
I keep path has no Chinese character, I'm trying Internet Explorer and Firefox.
either you're misinterpreting the error, or something in your project is damaged. Chrome can play MV games if everything is correct (the game.exe is based on chromium for example iirc).

Can you open the index.html with other browsers to check if they work? preferably firefox as that is the easiest one.

Can you post a screenshot of the error messages you get from chrome?
And can you check its security settings? Some versions of chrome had a setting that prevented the local load of webfiles, causing problems on too strict a setting (the browser assumed that since the game was web-based it would be a malware-infected website trying to access local files without detecting that the file was local as well)

and can you tell 1) which version of the editor you have and 2) which version of the core files are used by your project (not nessessarily the same versions)

Additionally, make sure that the entire path to the project is using latin letters only - if for example you have a chinese username and the game is inside the userfolder, that will cause access problems due to the fact that the engine needs all paths and filenames to follow networking rules.
Move the project to the main HDD directory of you're unsure of the path being a problem.

Yes it works on Firefox! Thank you!
But just back to the first question, could any command in RMMV's Game.exe that could make me execute project direct?
nw.js could use batch command like:
START "" "path/to/nw.js/nwjs.exe" "path/to/project"
or
"node start ."
to execute project (if the project directory has a package.json file).

( In fact nw.js could definitely execute project, I'm just interesting about could it direct execute by RMMV's "nwjs-win/Game.exe" )
I am a chrome user and I can not open them either. It is likely chrome causing this so maybe you could still use the dreaded windows internet explorer for just opening your project?
I just tested, it cannot work fine on IE, but firefox does great job.
I just tested, it cannot work fine on IE, but firefox does great job.
Thanks for the heads up there I have been trying to find a way to make it work on Chrome so far with no luck.🙂 It wasn't working on my IE either.
is because on chromius you need to unlock security Flag
you need create a new shortcut with chrome and add some flag to bypass security
fast way in command windows
PHP:
chrome.exe --allow-file-access-from-files
On Windows Operating System
Get the url of your Chrome Installation path to your chrome installation e.g
C:\Users\-your-user-name\AppData\Local\Google\Chrome\Application>
Launch the Google Chrome browser from the command line window with the additional argument ‘–allow-file-access-from-files’.
E.g ‘path to your chrome installation\chrome.exe --allow-file-access-from-files’
Temporary method you can use each time you are testing
- Copy the existing chrome launcher
- Do as above and save it with a new name e.g chrome - testing
- Alternatively, you can simply create a new launcher with the above and use it to start chrome.
is because on chromius you need to unlock security Flag
you need create a new shortcut with chrome and add some flag to bypass security
fast way in command windows
PHP:
chrome.exe --allow-file-access-from-files
On Windows Operating System
Get the url of your Chrome Installation path to your chrome installation e.g
C:\Users\-your-user-name\AppData\Local\Google\Chrome\Application>
Launch the Google Chrome browser from the command line window with the additional argument ‘–allow-file-access-from-files’.
E.g ‘path to your chrome installation\chrome.exe --allow-file-access-from-files’
Temporary method you can use each time you are testing
- Copy the existing chrome launcher
- Do as above and save it with a new name e.g chrome - testing
- Alternatively, you can simply create a new launcher with the above and use it to start chrome.
I tried this solution but chrome console say it cannot load protocol "file://", so I setup a web server and use "http://", then it work fine.
is because on chromius you need to unlock security Flag
you need create a new shortcut with chrome and add some flag to bypass security
fast way in command windows
PHP:
chrome.exe --allow-file-access-from-files
On Windows Operating System
Get the url of your Chrome Installation path to your chrome installation e.g
C:\Users\-your-user-name\AppData\Local\Google\Chrome\Application>
Launch the Google Chrome browser from the command line window with the additional argument ‘–allow-file-access-from-files’.
E.g ‘path to your chrome installation\chrome.exe --allow-file-access-from-files’
Temporary method you can use each time you are testing
- Copy the existing chrome launcher
- Do as above and save it with a new name e.g chrome - testing
- Alternatively, you can simply create a new launcher with the above and use it to start chrome.

I had found that walk through but the reason it wasn't working for me is there was no Application file or folder anywhere in the google folder. I do have show hidden files clicked and my chrome is fully updated. So for some of us that wouldn't work. In any case I don't actually need to do this myself I was just trying to help LazyKnight out. But that may explain why some people are having an issue with getting this to work.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-run-project-without-open-rmmv-editor.81201/