Introduction to the new Plugin Manager in RPG Maker MV 1.5.0+

Wow, normally I just pass by the announcements here.

But... but... this is huge! Finally and... thanks a lot!

Hopefully converting the plugins I already made won't be a pain.
Wonderful! Endless possibilities!
RPG-Maker MV-Ace, Mic drop Edition! 👍:dizzy:👍
So... Structure in Structure... like Rewards -> Items -> Items
i have to parse parse parse?... ;_;
Shame, there's no icon pick, but it's awesome anyway.
*@type number
do not take decimal ?
ex:
*@max 0.9
*@min 0.1

edit:
ok i say nothing ! sorry

* @param Float
* @parent Numbers
* @type number
* @decimals 2
* @Default 2.33
@orzfly

mistake or error on the JSON.parse with the JSON Format from array list !!!
PHP:
 * @type string[]
 * @default ["heroe1Small","heroe2Small"]
this will give incorect format JSON list array

PHP:
"["heroe1Small","heroe2Small"]"
This not correct JSON Format
it need to been like this for a valid format !
PHP:
'["heroe1Small","heroe2Small"]'

PHP:
JSON.parse( "["heroe1Small","heroe2Small"]" );   // return Unexpected identifier

JSON.parse( '["heroe1Small","heroe2Small"]' ); // return valid Array
why is like that's?
do i absolutely need to do a regex ? or my way are not good ?

thanks!
Hello.
Tell me the type of icon selection, if any.
It seems to have seen in some plugin from YEP, or did it seem to me?

@Alexandr_7 , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Everything old is new again!!

This is a fantastic tutorial for aspiring plugin-makers and pretty much everything here seems to work for MZ Parameters as well. It has helped me tremendously the last couple days creating the more complex parameter entries that I never knew how to create, like Structures, Lists... and Lists of Structures. 😀

Due to its new relevance, I am unlocking this topic - feel free to discuss anything from the tutorial here, despite the thread's age.

Thank you so much for writing this, @orzfly. It has been more useful than I can express.
Where would we put suggestions for new parameter types?

As suggested above I think an icon type would be very useful, and I think a switch and variable type (which would bring up the switch selector an variable selector respectively) could also be very useful, e.g. imagine a time of day script that somehow depends on user-chosen switches. Internally, all of these could just be passed on as the respective slot number/integer, so the main use would really be to have the appropriate selector dialogs for plugin users.
Where would we put suggestions for new parameter types?

As suggested above I think an icon type would be very useful, and I think a switch and variable type (which would bring up the switch selector an variable selector respectively) could also be very useful, e.g. imagine a time of day script that somehow depends on user-chosen switches. Internally, all of these could just be passed on as the respective slot number/integer, so the main use would really be to have the appropriate selector dialogs for plugin users.
I think a few of these exist in MZ - at least Switch and Variable definitely do and icon has a context-menu selector in most textboxes so that's sorta implemented.
Is there a complete list of types for MZ?
It seems like they expanded this business there!
Up to this day, this is still the most complete documentation for plugin parameters, because somehow they put zero time into documenting this stuff for the engine. I actually don't have idea where orzfly got this from lmao.

I really don't know if they've even added a single thing for MZ besides the @target MZ tag. Is there another place with these things documented? Maybe I'm wrong? Legit question.
Up to this day, this is still the most complete documentation for plugin parameters, because somehow they put zero time into documenting this stuff for the engine. I actually don't have idea where orzfly got this from lmao.

I really don't know if they've even added a single thing for MZ besides the @target MZ tag. Is there another place with these things documented? Maybe I'm wrong? Legit question.
I refer to this link: https://rpgmakerofficial.com/product/mz/plugin/,

Does anyone know how to get a parameter of type "@type file" to return a file extension ? I want to get the file extension of the return path, but now it doesn't seem to return the file extension to me.
I refer to this link: https://rpgmakerofficial.com/product/mz/plugin/,

Does anyone know how to get a parameter of type "@type file" to return a file extension ? I want to get the file extension of the return path, but now it doesn't seem to return the file extension to me.
Under the hood, after the inputs and filtering and whatnot, all plugin parameters start out as strings. So the parameter doesn't actually have any concept of its file extension to provide. What do you need it for?
Under the hood, after the inputs and filtering and whatnot, all plugin parameters start out as strings. So the parameter doesn't actually have any concept of its file extension to provide. What do you need it for?
Hi, Trihan, I wanted to select a video file from the parameters, but I just found that it seems that the video file cannot be selected, and "@dir" can only be used for img and audio?

Originally, the file extension was what I intended to use to stitch together the file path.
Hi, Trihan, I wanted to select a video file from the parameters, but I just found that it seems that the video file cannot be selected, and "@dir" can only be used for img and audio?

Originally, the file extension was what I intended to use to stitch together the file path.
Yeah, I don't think @dir is usable for other folders, unfortunately. You *can* put whatever you want as the root folder, but the subfolder selector is hardcoded to only fetch the ones in img and audio.

But if you make the parameter a string instead of file, you can just require the folder/subfolders and extension to be part of it and then evaluate the string however you want to parse the path.
Yeah, I don't think @dir is usable for other folders, unfortunately. You *can* put whatever you want as the root folder, but the subfolder selector is hardcoded to only fetch the ones in img and audio.

But if you make the parameter a string instead of file, you can just require the folder/subfolders and extension to be part of it and then evaluate the string however you want to parse the path.
I'm going to pass in a path string argument directly, thanks for the answer.

How can a video that is used in this way not be excluded when it is published with a check box to exclude unused resources?
Yeah, I don't think @dir is usable for other folders, unfortunately. You *can* put whatever you want as the root folder, but the subfolder selector is hardcoded to only fetch the ones in img and audio.

But if you make the parameter a string instead of file, you can just require the folder/subfolders and extension to be part of it and then evaluate the string however you want to parse the path.

@Trihan I also need to know how to force the video or audio assets to be required during the file excludion step of the deploy process. If I remember correctly there was an annotation that can be used anywhere in your plugin code to do that but I cannot remember the syntax for the annotation... can you post a code snippet example of this syntax for us here? It would really help us out a lot.

I'll take a look thru the MZ core script code to see if I can find the in-line require syntax being used and I'll post it here if I can find it before you get the chance to post it.

Original thread: https://forums.rpgmakerweb.com/threads/introduction-to-the-new-plugin-manager-in-rpg-maker-mv-1-5-0.79764/