Draegonis's rmmz-electron-template

Draegonis's rmmz-electron-template
github repo link

​
This project is not designed to for RMMV, though you could adapt some concepts from this project in order to make it work for yourself.
Feel free to go to the github link to check it out / clone it.
It is released under the MIT license, credit me if you like but no need to.
This is a work in progress, and at the moment not have all the features I would like it to have.
This project also includes some custom plugins made by me to specifically take advantage of importing packages and using a more recent version of Javascript/chrome.

It uses at the time of posting this thread:

  • electron version 26.2.4​
  • chome version 116.0.5845.190​
  • node version 18.16.1​
  • v8 version 11.6.189.20-electron.0​
What the project is good for:
What the project is not good for:
  • Does not support Windows 7/8/8.1 since this project uses Electron 25.2.0 or greater.
  • Cannot deploy to mobile or websites, this is strictly for desktop (windows/mac/linux).
  • It is not beginner friendly, some experience or lots of googling required.
  • Asset and source protection is minimal.
  • The packaged size of the game is bigger.
  • Breaks play testing from the editor. You can use the .env.development variables to do special play testing. You will need to run in the terminal the [package manager] run dev script in order to play test.
  • Will break compatibility with some plugins:
    • Cannot use require in renderer (where the game runs).
    • When saving all prototypes are stripped from the data objects, and will throw an error if you try to save a function into the save file.

Installation instructions and other information is in the repo's README.md.

Things I know need some more work:

  • it allows you to change screen size but I haven't adjusted any of the windows to make sure it would look proper. Will need to use the ratio to do window scaling or add functions to draw the windows in a certain way.
  • add in a save/load indicator.
  • add more useful things like an inventory/status screen you can access without having to go into the menu.
Spoiler: Updates
Spoiler: Oct 14 2023
  • added save/load indicators.
  • updated CoreManager:
    • it now uses a Promise.all to handle multiple data files. If you register a save/load task you can easily write your own custom files with data you want.
    • it now allows you to save as a folder to group up all the save files for the same save together.
  • updated SaveOverhaul plugin:
    • re-organized the code
    • added more params like enable/disable hardsaves/quicksaves and allowOverwrites which allow you to overwrite autosaves/quicksaves in Scene_Save.
Spoiler: Oct 17 2023
  • fixed a bug with window resolution switching that would cause the min window sizes not to the ones for the current window resolution.
  • fixed some placement of enemies and the sideview actors. It uses the editor screen size to help calculate the difference. Just keep in mind that those values are not used for anything else, and if you were to change them that it may cause the placements to be off.
  • fixed a bug in SaveOverhaul where it wasn't properly setting the value for the config settings for autosaving/quicksaving.

Original thread: https://forums.rpgmakerweb.com/threads/draegoniss-rmmz-electron-template.161920/