[Help] .split() Method Confusion

(( Solved ))
-> Turns out I'm either blind or dumb: had 2x versions of the plugin running and forgot to remove the old one.


For some reason I can't convert a parameter into an array, and I'm wondering what I'm doing wrong. So to keep it condense I have the parameter in the comments, (and filled in, in the Plugin Manager in-game), and even confirmed with plugins.js that it does indeed have the contents, when I try something like this:
EDIT: Added screenshots of the header and the function as well for clearer visual than my example below (since it was not meant to be the actual code)

JavaScript:
/*
* @param Currencies
* @default Copper Silver
*/
(function($) {
    $.Param = PluginManager.parameters('LordV_Plugin');
    $.currencies = $.Param['Currencies'].split(" "); 
})(LordV.Plugin)

The log gives me a TypeError can't 'split' from undefined or something like that. So I try putting "String($.Param['Currencies']).split(',');

While that does not give me an error, it also doesn't define anything either. I get:
-> Length = 1
-> $.currencies[0] = undefined
-> $.currencies[1] = undefined

This is confusing to me as to why it's not working... I would appreciate help in this matter since this parameter is required for a function I'm trying to create and test
Is 'LordV_Plugin' definitely what the plugin is called?
Is 'LordV_Plugin' definitely what the plugin is called?

Well no, and that was just a pseudo-template I whipped up. I'll post some images of the actual plugin
EDIT: Main post updated with the screenshots
Where are you setting $.currencies?
Where are you setting $.currencies?

How do you mean? It's set right there in the header (bottom of screenshot) in between:
JavaScript:
(function($) {

})(LordV_EventStorage);
Ah, sorry. The thumbnail bit covered up part of the screenshot. Let me have a look.

If you put $.Params in the console what does it output?
with: console.log($.Params)
-> output "[Object]"

with: console.log(JSON.stringify($.Params));
-> output {}

so... it's not getting the parameters at all then. Hmm

EDIT: These are the parameters in the "plugins.js" file for "LordV_EventStorage.js":
{"== Currency Settings ==":"","Currencies":"Copper Silver","Exchange Rate":"100"}
What if you just open the console (F8) while in test play and then just type "$.Params"?
says "undefined"

I tried typing: PluginManager.parameters('LordV_DynamicActors')
// another plugin of mine

and that listed the parameters just fine.. I'm going to try to remove EventStorage; Apply; Save; Save Project; Close project; re-open, and add in the plugin.See if that refreshes it or something

EDIT: Still didn't work.
Is the console showing any errors at all?
No errors. Just... nothing. It returns as "undefined" if I type it in, and in the stringify version it returns as a blank array {}.

Something curious though.. I renamed the plugin (both the .js file, and inside the script to reflect that). Ran the game... and it's still trying to load the old plugin? (but I confirmed plugins.js had the updated info)
>_>

Oh. My. God. I'm a moron. Wanna know what it was? lol

I had 2x version of the plugin running (1 was at the top of the order list) *facepalm*
Haha, it's always the simple things. Is that it working now then?

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-split-method-confusion.124181/