Requesting a Patch to the RPG Maker MV Plugin Manager

To those of us who create plugins for this engine, I think it would be a good idea to patch the Plugin Manager that has this little "quirk". The issue is that the parameters of type boolean and type number are being held/read as a string when you access those parameters, rather than boolean and number respectively. This makes the programming more difficult, less efficient, more complicated, and more tedious.

I couldn't understand it at first. A lot of us still use RMMV and I'm sure it won't be a problem to do this patch. If RPG Maker MZ has this issue then the developer of these 2 RM engines can do them both and release the patch at the same time.
MV is now legacy and there is no longer any budget to program any patch
Ah that's a shame. The engine has sold so well (500k+ copies sold) so how can they not afford this?
At this point I'm not entirely sure a patch would make things less confusing, as you would probably need to introduce another alternative syntax to not break existing plugins.

I haven't done much scripting in MV and definitely wouldn't mind seeing the request implemented, but generally you can always do these transformations yourself if needed, without disrupting the core part of the plugin too much (as a lot of plugins already seem to do, including more complex data structures that would probably need to be manually set up anyways)

Spoiler
Not sure if helpful, but I found this pattern rather handy the one or two times I tried to do something in MV, although you still have to do all the stuff by hand in the end:
Code:
var IL_TurnCountAddon = {};

(function() {
 
    // --- Load Parameters ---
 
    const PARAMETERS = IL_TurnCountAddon.Parameters = (function() {
        let regexp = /[^\/\\\<\>\:\"\|\?\*]+(?=\.js$)/i;
        let name = document.currentScript.src.match(regexp)[0];
        let params = PluginManager.parameters(name);
        return {
            TurnSpeedFormula: new Function("a", params.TurnSpeedFormula),
            InitialFormula:   new Function("a", params.InitialFormula),
            ItemFormula:      new Function("a", "item", params.ItemFormula),
            FreezeWhenInactive:   params.FreezeWhenInactive === "true",
            ResetProgressOnDeath: params.ResetProgressOnDeath === "true",
            CumulativeTurnCost:   params.CumulativeTurnCost === "true"
        };
    })();
 
    // ...
 
})();
Aside from MV being deprecated and no longer receiving updates...it's really quite trivial to account for this in your plugin.

Code:
var numberParameter = Number(PluginManager.parameters('MyPlugin')['parameter_that_should_be_number'])
Yeah, and for booleans I do this
JavaScript:
$.params = PluginManager.parameters(scriptName);
var boolParameter = ($.params['boolean parameter'].trim() === 'true');
Indeed. (I wouldn't even bother using trim(), since you're the one providing the drop-down options for the parameter and you presumably know how you spelled it. But it doesn't hurt 😉 )

And if you're saying it's "complicated and tedious" because you wouldn't be creating variables and you're just directly accessing the parameters when they come up in your code...put the appropriate casting functions there. It's less than 10 key strokes, even if you don't copy and paste. You probably did an entire plugin's worth by typing this post 🤣

Original thread: https://forums.rpgmakerweb.com/threads/requesting-a-patch-to-the-rpg-maker-mv-plugin-manager.149981/