where is core method documents?

Hello! I'm a web developer with 5 years of experience.

I'm currently using RPG Maker MZ, and while I don't need to install plugins, I do want to make some customizations, so I've been researching various aspects.
I've concluded that to create plugins or make customizations, you need to understand how to use the classes defined in the rmmz_*.js files located in the PROJECT_ROOT\js directory.
Some of the usage can be inferred by reading the code, but to use them accurately, official documentation is necessary.
However, the only documentation I've found is https://developer.rpgmakerweb.com/rpg-maker-mz/index.html, and it's not enough. Are there any additional documents available?
For example, I need explanations about the Scene_Title class and how to use its properties and methods.

I hope I'm not expected to figure all this out on my own.
Welcome!

Some of the usage can be inferred by reading the code, but to use them accurately, official documentation is necessary.
Why?

Are there any additional documents available?
No.

I hope I'm not expected to figure all this out on my own.
You are. That's what everyone else who writes plugins that affect the UI has done. 😛

I don't want to insult your knowledge or make presumptions about your skill level, but if you have 5 years of experience with JavaScript you should be able to understand the code and follow the path of function calls.

Trihan has a series of posts called Jump Into JavaScript:

They go through the core script files and describe in English what each function is doing - but, again, one would expect an experienced coder to be able to read that. And as far as I know, the articles are unfinished and don't provide any kind of more in-depth explanation of processes.

Do you have specific questions about the title screen? What are you trying to do?
Unfortunately that's it. MV does have community-made Typescript annotations which are rather helpful (including an overall description of what each class is for), but I'm not sure if something similar exists for MZ.

And while it doesn't cover UI, here is a useful resource for all event-related code.

while I don't need to install plugins
I highly recommend that you still do. They will save you some effort in making things yourself, but more importantly they're also a great learning opportunity for figuring out how to do various things in the engine. I assume JavaScript won't be a problem for you, but knowledge of what parts of the engine do what is still something that will probably require some effort to acquire.
@hi89 Yeah, basically, you will have to read the code and understand it. If you are used to have reference guides or literal documentation....yeah, this software has never had that kind of guides or documentation as you would find for example in Java or even .NET...and even those are not great but at least they explain things. Also, don't expect plugins to have detailed information, even from those that you pay for, literally you can find better documentation of and old obscure database from the 70s than the code from RPG Maker MV or MZ...and MV had better documentation than MZ in my opinion, but still lacking. But the code is not that complex, so if you have already experience with large software development, you shouldn't have too much trouble.


You are. That's what everyone else who writes plugins that affect the UI has done. 😛
You do have a point, but in general I would disagree, good software code base should have a relative basic description of what a particular object does, what the methods do, expect as parameters and the expected results. It's true that when you already have experience with coding, you might deduce things just by reading the code. I might be going off topic, but over the years and working with multiple coding languages, even some very obscure or almost going out of use, good documentation saves you hours of development. RPG Maker has rather good user documentation, but not, or almost nothing, code base documentation...and it seems to be a rather common issue on game engines, the code is not very well explained, and is expected that the developer reads thousands of lines of code before doing something...which makes the learning curve too steep.
in general I would disagree, good software code base should have a relative basic description of what a particular object does, what the methods do, expect as parameters and the expected results...I might be going off topic, but over the years and working with multiple coding languages, even some very obscure or almost going out of use, good documentation saves you hours of development.
Well, it could be I have a biased view because I've never worked in coding professionally. Everything I've done for decades, from VERGE into coding MUDs into RPG Maker, had a similar level of lacking documentation, so I'm just used to searching and backtracking for what I want to know.

There was even someone pretty recently who asked how to find information on how some data type and methods worked or something like that; I took the time to walk him through the process and it was about 5 minutes to go from knowing nothing to having the necessary code at hand, and a decent chunk of that was pasting the screenshots and typing out the steps for him.

I'm not saying that the programmers shouldn't have better commenting or even actual documentation for an engine that users are intended to write plugins for - so you're not wrong. I'm not arguing with you. In fact, you say you disagree with me, but I don't see how - I didn't say there shouldn't be documentation, I'm just saying everyone has dealt with the same lack of documentation and been able to figure it out just fine.

I just think that for people who have years of coding proficiency, it shouldn't be a complain-worthy level of difficulty to figure it out.

It's true that when you already have experience with coding, you might deduce things just by reading the code.
Who else would be looking at and trying to modify the code? If one doesn't have experience with coding, that's what eventing and using existing plugins is for.

this software has never had that kind of guides or documentation as you would find for example in Java or even .NET
This part of your post is really weird. It's not like RPG Maker uses its own language somehow - JavaScript is very established and has thorough documentation. Java and .NET are programming languages, not a piece of software.
In fact, you say you disagree with me, but I don't see how - I didn't say there shouldn't be documentation, I'm just saying everyone has dealt with the same lack of documentation and been able to figure it out just fine.
I might be wrong, but your comment implied that, in the end, it doesn't matter if there is documentation or not about any codebase, "just read the code since you are already interested in modifying it". That's why I said that, well, you have a point there, but in the end, there should be some minimum documentation.
Software Development companies tend to, at least, make some documentation about it, especially when selling things like APIs, but also libraries and the like. Like everything, there are exceptions, specially with open source, but even those have some degree of documentation. So, in a very broad sense, I would say, I half agree with you, but in the end there should be.
Who else would be looking at and trying to modify the code? If one doesn't have experience with coding, that's what eventing and using existing plugins is for.
True, but also, you have to consider time of reading and understanding. Some take more time than others, and not everyone has the same amount of time...in this case free time...unles you use this professionally and even then.
This part of your post is really weird. It's not like RPG Maker uses its own language somehow - JavaScript is very established and has thorough documentation. Java and .NET are programming languages, not a piece of software.
Yeah, I know, I was trying to make a comparision as to how you can easily look for specifical methods and classes and even code snippets for this in a very standarized and structured format. Java has it's own thing, Microsoft has a lot of documentation about .NET(Visual Basic, C#), etc.. I know, they are programing languages, but if you have troubles, you don't need to look into the Java code to understand how something works...I mean, it's not difficult to look into the Oracle Java source code or even Open Java source code and figure out things, but you would only do that mostly out of curiosity or if you really into making your own version of Java. Yes, I know, this forum has a lot of documentation, code snippets and some people takes time to explain parts of the code, but the forum didn't create the base code for the engine, and also RPG Maker is a commercial software, so a degree of documentation of the code should be part of what you get...but that is for another discussion.

Anyway, in the end, MZ base code is not that big, I don't think is bigger than 30K lines of code...probably 40K...when you work professionally, you often have to work with 100 times that amount of lines in 2,3,4 and sometimes 5 differerent coding languages all at the same time. So this is not that difficult, just time consuming.
I might be wrong, but your comment implied that, in the end, it doesn't matter if there is documentation or not about any codebase, "just read the code since you are already interested in modifying it".
That's not really what I said. I made no commentary on "any" codebase, I said that RPG Maker is, as far as a game engine goes, not that complex. Additionally, it's structured well - the different core script files are organized by content, and all methods of the various data types are further organized in one place within each file.

And specifically for the OP's question about scenes, there's a lot of inherited content for scenes and windows - that's why I asked what the specific question is.

Yeah, I know, I was trying to make a comparision as to how you can easily look for specifical methods and classes and even code snippets for this in a very standarized and structured format. Java has it's own thing, Microsoft has a lot of documentation about .NET(Visual Basic, C#), etc.. I know, they are programing languages, but if you have troubles, you don't need to look into the Java code to understand how something works...I mean, it's not difficult to look into the Oracle Java source code or even Open Java source code and figure out things, but you would only do that mostly out of curiosity or if you really into making your own version of Java.
I still really don't get what you're trying to get at here.

The correct comparison to Java and .NET languages is JavaScript. Every single JavaScript function and bit of syntax is thoroughly described and documented.

Understanding how this program works, which was written in JavaScript, is just as difficult or easy as understanding how a program written in Java or a .NET language works. All of these languages can have custom data types defined which will not exist in the language's documentation, and will certainly have their own functions which don't have any reference in the language's documentation.

This comparison you're bringing up is kind of like saying "I don't know who all the characters in A Game of Thrones are, but it's easy to understand the dictionary." They're two completely different things.

Anyway, in the end, MZ base code is not that big, I don't think is bigger than 30K lines of code
It's just under 35,000, but that's not accounting empty lines for formatting and the comments that do exist. There's also no reason anyone would ever sit there and just read through all of that - you look for specific things as you need them.
Job has kept me away for a long time, but well...
That's not really what I said. I made no commentary on "any" codebase, I said that RPG Maker is, as far as a game engine goes, not that complex.
Ok, I misunderstood then, sorry!
I still really don't get what you're trying to get at here.
What I was trying to say, and probably with the Java and Javascript examples made a whole mess even messier, is that, when you get to work in a lot of dev environments, with a lot of APIs and libraries written by companies or other people, there is usually a documentation very similar to the one used by code languages like Java or Javascript. Even RPG Maker MV and MZ have something similar.
This ones are from the documentation from MV, basically you have a sort of an explanation of what it does, the methods it has, what does it return, you don't have to literally look at the code, just know what it's there and data that is returned.
1720854732532.png
1720854762637.png


It's similar on coding languages like Java for example in this images
1720854904523.png
1720854924131.png


And if you notice, even something similar with APIs of cloud based products
1720854970477.png

As a developer, you don't always have the possibility to see the source code, just like some plugin developers decide to obfuscate their plugins, but forget to give the developers the knowledge of what methods are modified, what new methods or clases they added, what they do, parameters that are expected and return data from the method...thought that's another discussion. As a software developer, you don't always need the source code of the libraries, webservices or comercial apis, just know what they do.
This comparison you're bringing up is kind of like saying "I don't know who all the characters in A Game of Thrones are, but it's easy to understand the dictionary." They're two completely different things.
I guess my images may clarify what I meant with the comparison. And yeah, it would be like, let me look at a Game of Thrones character dictionary to at least know which side each one is, a quick overview and where in the plot from a particular book we are with them, it helps since is a series with a lot of story and pages, often you get lost. If it were the Little Prince for example...that would be overkill but still welcomed.

So, to OP. MV had something like you were looking for on the F1 Contents section, but it didn't have everything you are looking for, so you have to eventually open up the code and look for what you need. MZ has an even more generalized version in the same F1 Contents section, less classes documented, only very high level clases, but still, you won't get anything from a particular window, or a particular screen, you'll get the Window super class or things like that. In that regard RPG Maker is very bad for documentation of the code side for developers who are used to work with standard documentation.

Original thread: https://forums.rpgmakerweb.com/threads/where-is-core-method-documents.169945/