MZ Well commented plugins to study and learn from?

Allow me to be a bit more specific.

I'm learning Javascript in a pure sense currently, however, RPGMZ seems to be where I enjoy learning the most. I've managed to build a few very simple plugins so far - but I would love to find some well-commented, non-obfuscated plugins that are more complex.

Piecing together how they work has become a hobby - but most plugins I find are designed to prevent that. Or are wrapped entirely in an anonymous function so my Intellisense in VSCode doesn't work, and I can't easily (or more accurately, quickly) figure out functions from the core scripts I don't already know.

Would anyone happen to know of any plugins that fit that bill?
I think this is a cool idea too!

I'm currently working my way (also as a first time JavaScripter) through the RPG Maker MV code files and am commenting excessively on every function I come across to break it down in my own words as I work to understand them all and... it's a LOT! Lol.

Would be awesome if there are some well commented plug-ins out there for more targeted learning within the RPG Maker engines that people can recommend!


(Side note, if you ARE interested in breaking down the whole (user side) engine code like I'm doing, then "Trihan's Jump into JavaScript" tutorial series is a good one for getting to grips with how the engine uses JavaScript and likely has a lot of crossover stuff with MZ. It's all or nothing though, so not exactly what you're looking for as it's not a targeted plug-in kind of affair, but still cool and similar-ish.)
Hi there!
I think if your purpose is to learn, you should do just javascript somewhere on the web and read the core files. I don't think it's a good idea start to learn by seing other people plugins.

A lot of us have our own "ways" of doing things. If you want to learn js and also learn how to do plugins, stick with learning javascript basics and the core codes. Of course, just my opinion.

Also, a plugin maker, @casper667 did a real good job creating a documentation for the core files:
1- stay away from visustella.
2- look up Algol, Pascal or Fortran.
3- ask yourself who codes in them, and why.


learn programming, not coding.
coding is for interns.
programming is for engineers.
stick with learning javascript basics and the core codes. Of course, just my opinion.
I wholeheartedly agree. This is the best approach, in my opinion. Learning to write plugins will be 10x easier if you have a basic foundation of JavaScript and experience using it as it was intended, on the web. Learning to create and manipulate HTML elements, and of course using the Canvas API, is a great starting point to understanding how RPG Maker was made.
1- stay away from visustella.
2- look up Algol, Pascal or Fortran.
3- ask yourself who codes in them, and why.


learn programming, not coding.
coding is for interns.
programming is for engineers.
1- I only use their intellisense, not their plugins. But if you have an alternative feel free to suggest it.
2- I don't really get what you're going at here. I've tried 2/3. Imperative, declarative, dynamic languages.
3- Mostly engineers, based on your reply.
@RhizTekar you didn't get the point: sometimes a question isn't to be responded to, but to be pondered why the answer is such.
the answer to "who codes in that?" is *nobody*
nobody that you might talk to, who is a coder, codes in or even knows those languages because those languages are obsolete.
why are they obsolete? because the tech that makes computing work, has changed in the past 50 years.... things exist now that require different languages, because the hardware behind them was built with different instructions.
hardware will keep evolving, languages from today will go obsolete (such as actionscript, gone with Flash, the predecessor to HTML5), and you with them, if you only know the language.

from there, the notion to find the question of "why" from everything.
THAT, is programming.
....which you won't learn, from a set of obfuscated plugins that prevent you from looking at the code and ask "why" this.
It's not learning how to program, but what to program that can be challenging. ^^

To get started, focus on learning syntax, fundamentals, and logic. You'll also need to choose between (or integrate both) procedural programming and OOP (Object-Oriented Programming).

I'm not an expert, but once you've learned the basics, the most valuable skill to develop is: 'Learn to debug efficiently!'

In my opinion, debugging is the most important part of any programming process.


I didn't make alot of plugins, but feel free to look into them and modify what you want of it and play around with it. Nothing is obfuscated or minified.
@RhizTekar you didn't get the point: sometimes a question isn't to be responded to, but to be pondered why the answer is such.
the answer to "who codes in that?" is *nobody*
nobody that you might talk to, who is a coder, codes in or even knows those languages because those languages are obsolete.
why are they obsolete? because the tech that makes computing work, has changed in the past 50 years.... things exist now that require different languages, because the hardware behind them was built with different instructions.
hardware will keep evolving, languages from today will go obsolete (such as actionscript, gone with Flash, the predecessor to HTML5), and you with them, if you only know the language.

from there, the notion to find the question of "why" from everything.
THAT, is programming.
....which you won't learn, from a set of obfuscated plugins that prevent you from looking at the code and ask "why" this.

I understand what you mean, I just don't think I was verbalizing myself properly. When it comes to the languages you mentioned I knew they were all depreciated and the few people who still know and program with them are 99.99% of the time working on ancient code on depreciated systems.

I come primarily from a hardware background, but I understand that there's a monumental difference between learning one language for one use - versus learning the paradigms and principals that underpin Programming Language Theory - and versus understanding how the hardware processes everything.

I'm already at the point of asking 'how' or 'why' after digging through the core scripts and some non-obfuscated plugins.

That's why I don't think looking for these resources is such a bad thing. Recall in my OP I said I was looking for non-obfuscated plugins, so I don't know how that came up.

I just want to have some non-obfuscated plugins, or even custom functions that I can read over and think "Hm. I wonder how/why they did this." and work on cracking other's logic.
I just want to have some non-obfuscated plugins, or even custom functions that I can read over and think "Hm. I wonder how/why they did this." and work on cracking other's logic.

You can check out these plugins, they're all MIT and written fairly well, but they're not all written in a single file, they are written in multiple files and compiled into one. Atlhough may not be a huge selection to go through but it's a start.


You could also take a look at QPlugins from the MV days (don't look to it for best coding practices though)


Back when MZ was released I started a conversion project for QPlugins (I should get back to that) and it fixed up some of the issues with it.


I hope this helps, but honestly the best way to learn it to play around and practice.
I just want to have some non-obfuscated plugins, or even custom functions that I can read over and think "Hm. I wonder how/why they did this."
most of the time, out of sheer need.
it all comes down to how the game really processes everything, down at the core: it's a loop that pings every object it has created, and sets their properties to *whatever that other pointer says*, that pointer usually being tied to a player input, or some timed logic (which itself is a few skips of those loops)
like, functionality-wise, the code of RM is pretty simple, and every language by themselves only ever use a fixed number of constructs: variables, objects, procedures and control structures.
using this or that instruction at any given point usually obeys the need to render the final effect of it to present to the user (like, people will make concessions with things that run "behind the curtain", but would be less inclined to change things that affect the final effect.)
and it all comes down to how the control structures are limited to function, because THOSE are the ones that really drive the code,.... and those, you can read from any code, in any language, once you identify them: conditionals, loops, iterators, functions, etc.
from those limitations (and the need to avoid them) comes the choice.

Original thread: https://forums.rpgmakerweb.com/threads/well-commented-plugins-to-study-and-learn-from.170757/