[ScriptSplitter] Split the source code for developers!

ScriptSplitter
KimythAnly
​

Introduction
Since the source code of RPG Maker MZ is too hard to read, I just wrote this plugin to help split them into smaller ones.
I believe some people have done this before, but I just want to share my version.

Features
Splits RPG Maker MZ original rmmz_xxx.js files into smaller scripts.

Screenshots
With this plugin, you will get the separated files saved in the corresponding directories.
螢幕擷取畫面 2024-02-08 000937.png


How to Use
  1. Enable the plugin and run the game project. The split scripts will be saved in corresponding directories, i.e., js/rmmz_core/001_Utils.js.
  2. Remember to disable the plugin once you have split the scripts.
  3. Replace the main.js with the one in this repo if you want to correctly run the split scripts.
Plugin Commands / Script Calls
N/A

Demo
N/A

Download
GitHub

Terms and Credits
MIT, all responsibility is on the user.
Not work for me when i open the base and clean project the game stucks loading the spinner forever
Not work for me when i open the base and clean project the game stucks loading the spinner forever
I guess you replaced the main.js and run the project.
You just need to run ScriptSplitter with the original main.js XD The main.js provided in this repo is used to run the separated files, i.e, those files under the js/rmmz_xxx/.
To the plugin author: I believe you accidentally placed the ParamDistribution plugin code in ScriptSplitter.js.

Original thread: https://forums.rpgmakerweb.com/threads/scriptsplitter-split-the-source-code-for-developers.165545/