- Joined
- Jan 8, 2014
- Messages
- 1,055
- Reaction score
- 785
- First Language
- English
- Primarily Uses
- RMMV
ElectronMV v1.1.X ( Electron only works for windows 7 and newer )
Electron wrapper for RPG Maker MV. Wrapping MV with Electron gives a handful of benefits. One of the main benefits includes in this wrapper is being able to remember the window position, size and if it was full screened the next time it's opened. See example here:
Other benefits including; being able to create an updater for your game, creating a launcher, and more.
Installing
https://github.com/quxios/ElectronMV#installing
Running
https://github.com/quxios/ElectronMV#running-project-with-electron
Building
https://github.com/quxios/ElectronMV#building-your-game
Configuring
https://github.com/quxios/ElectronMV#configuring
Advanced
This section for for js devs or programmers.
1st, this uses the 2 package method. The package.json in the main directory is used during development, while the one inside the app/ is for production. So don't forget to add any dependencies you add to the development package into the production one as well. Don't add any dev dependencies into the production one since there's no point.
/package.json - Dev dependencies
babel-cli - To compile babel scripts when deploying or converting for vanilla MV
babel-preset-electron - Adds missing es2015 plugins and stage-0 to electron
babel-preset-es2015 && babel-preset-stage-0 - for compiling es2016 plugins for vanilla MV
electron-builder - To build the game
electron-prebuilt - electron
babel-preset-electron - Adds missing es2015 plugins and stage-0 to electron
babel-preset-es2015 && babel-preset-stage-0 - for compiling es2016 plugins for vanilla MV
electron-builder - To build the game
electron-prebuilt - electron
Creating plugins that can use dependencies
Plugins in MV are loaded through a script tag. So if you were to try some babel transformation, for example jsx, you will get an error even if you have the preset installed. So to fix this just end the file name with:
-req.js
And that plugin will be added with require instead of a script tag. Now you can go ahead and write that plugin as you would like. Just don't forget to compile it before building the game or you'll get errors.
* Note that plugins need to have the extension .js or the plugin manager in RPG Maker MV editor will not find it.
-req.js
And that plugin will be added with require instead of a script tag. Now you can go ahead and write that plugin as you would like. Just don't forget to compile it before building the game or you'll get errors.
* Note that plugins need to have the extension .js or the plugin manager in RPG Maker MV editor will not find it.
* Notes
- Some plugins may not work with this if they use any nw.js.
- Electron only works on windows 7 and newer. So if you use this your windows os requirement should be windows 7+
Last edited:


