- Joined
- Oct 24, 2015
- Messages
- 347
- Reaction score
- 279
- First Language
- Portuguese
As we know, to get our parameters from the PluginManager, we need to call
PluginManager.parameters(plugin_name)With the plugin_name being defined by the name of the file (sans extension).
For the sake of ease of sharing plugins, it would be fantastic if users didn't need to worry about saving plugins with the exact correct name.
So a good course of action would be if we just used some method inside our plugin to detect its own filename. There are a bunch of ways to do it in JavaScript, but they are all a bit "workaround-y".
I'm away from my computer for a while, so I can't test it right now. Is there a way to get our plugin own filename that would works properly, and wouldn't cause issues, in RMMV?
PluginManager.parameters(plugin_name)With the plugin_name being defined by the name of the file (sans extension).
For the sake of ease of sharing plugins, it would be fantastic if users didn't need to worry about saving plugins with the exact correct name.
So a good course of action would be if we just used some method inside our plugin to detect its own filename. There are a bunch of ways to do it in JavaScript, but they are all a bit "workaround-y".
I'm away from my computer for a while, so I can't test it right now. Is there a way to get our plugin own filename that would works properly, and wouldn't cause issues, in RMMV?
Last edited by a moderator:

