I'm having trouble finding information on what order plugins should be in when you have plugins from different developers. Also, what plugins don't work with each other? I mostly understand what order the plugins should be in when using from just one developer as they usually tell you in the notes or their website, but I have plugins from Yanfly, Galv, Irina, and Kagedesu and I'm not sure where some of them should go in the plugin list. Can someone point me in the right direction?
MV What order should plugins be in?
Javascript/Plugin SupportMoved to: Plugin Support
You are not likely to find anything documenting this sort of thing, because nobody has the time or the motivation to go and find every plugin and compare them.
All I can say is that if you look at the plugins and can understand their code, anything that replaces a function without aliasing it should go higher, and anything that aliases the function should go lower.
If the plugins have nothing to do with each other (say one is map related and one is battle related) then you usually won't run into any problems. But the more they overlap (several battle related plugins, for example), the more risk you have of incompatibilities.
You are not likely to find anything documenting this sort of thing, because nobody has the time or the motivation to go and find every plugin and compare them.
All I can say is that if you look at the plugins and can understand their code, anything that replaces a function without aliasing it should go higher, and anything that aliases the function should go lower.
If the plugins have nothing to do with each other (say one is map related and one is battle related) then you usually won't run into any problems. But the more they overlap (several battle related plugins, for example), the more risk you have of incompatibilities.
agree with what @Shaz said...
if you cannot understand the code... you can always use trial and error method...
place them... playtest... working / not working? move the order if not working... repeat till all working... and so on...
of course sometimes there's incompatibilty no matter which order you place the plugin... then you will need compatibility patch.
if you cannot understand the code... you can always use trial and error method...
place them... playtest... working / not working? move the order if not working... repeat till all working... and so on...
of course sometimes there's incompatibilty no matter which order you place the plugin... then you will need compatibility patch.
I see. Thank you. By aliasing, do you mean extending? As in, any plugin that replaces a function without extending it should go higher, and that way the plugin at the top gets read before a plugin below it replaces the previous one with it's own function that pertains to the same purpose of the function it's replacing?
And so, if two plugins have nothing to do with each other, their order doesn't matter (in most cases, I'm guessing)?
In most cases, yes.
Aliasing and extending are not the same things. By aliasing, you are setting a variable to the original function name, like this:
At some point, the original function will be called via the aliased name:
So the plugin creator is not necessarily changing the original functionality, but they are adding to it - doing their own stuff, as well as calling the original to do everything it should do.
This can still sometimes cause issues, but it's usually saver to have these lower in the list.
Aliasing and extending are not the same things. By aliasing, you are setting a variable to the original function name, like this:
Code:
var originalFunction = Game_Player.prototype.update;
Game_Player.prototype.update = function (){
... do stuff
At some point, the original function will be called via the aliased name:
Code:
originalFunction.call(this);
So the plugin creator is not necessarily changing the original functionality, but they are adding to it - doing their own stuff, as well as calling the original to do everything it should do.
This can still sometimes cause issues, but it's usually saver to have these lower in the list.
Sorry but I'm trying to get this clear in my head. From what I understand, extending code from a function means you call that function and then add to it without changing the function's original purpose. You're calling that aliasing, something I've only heard from a graphics or imaging point of view, or from it's "non coding" meaning, which means an assumed or alternate name. What is extending then?
Extending, in the context I'm familiar with, relates to classes, rather than functions. The Game_Player class extends the Game_CharacterBase class, so an object instantiated from Game_Player would have all the functions available to both, but an object instantiated from Game_CharacterBase would not have access to the Game_Player functions.
I suppose that makes sense, though it does kind of seem we're going into a rabbit hole of explaining different perspectives of computer language through different perspectives of the English language lol. What you seem to be describing, from what I understand, is just calling functions from different classes even though one class contains the other. I hope it doesn't sound like I'm saying you're wrong. I know much more C# and C++ than I do Javascript, which is near nothing, and that might be the issue since they are object oriented programming. I really appreciate the explanation and your help.
first of all this is only sharing information... not meaning to saying anyone wrong or anything...
in JS extend is like what @Shaz said...
JavaScript Class extends Keyword
Create a class named "Model" which will inherit the methods from the "Car" class.
even in C++ extend also the same actually
Webscale Blog: Insights on AI & Commerce | Webscale
Get the latest insights on AI, personalization, infrastructure, and digital commerce from the Webscale team and partners.
basically extending is a parent class will be extended to a child class... and all the function in parent class is extended to child class... any new modification on the parent class will also change child class... while any change to child class did not do anything to parent class...
while aliasing is actually like storing original function code in a variable before changing it so the original function did not lost when rewritting the function... that variable(original function) then can be used in the new rewritten function...
and yes... that variable(original function) can also be called from another function or another class if necessary... especially if you store that variable in a global variable.
hope this help 😀.
We were actually talking about extending and aliasing when it comes to functions, not classes. Shaz was only telling me that his understanding was extending pertained to classes and not functions, so the issue wasn't that I didn't know you can extend a class, it was that I'd never heard of aliasing as it pertains to programming.
While C++ is considered a "multi-paradigm" language, it was designed from C to become object oriented and is why I said it is an object oriented programming language. From what I've read, javascript being a fully object oriented programming language is debatable since it doesn't follow the same principles as other object oriented programming languages and only emulates object classes via constructor functions. While I've learned that it can actually do that, I don't see why it shouldn't be considered an object oriented programming language, but to say it is "full object oriented" is debatable since it wasn't originally designed to be object oriented, and likely wouldn't be the object oriented programming language of choice if someone were looking to create object oriented code. I love a good debate though! lol
While C++ is considered a "multi-paradigm" language, it was designed from C to become object oriented and is why I said it is an object oriented programming language. From what I've read, javascript being a fully object oriented programming language is debatable since it doesn't follow the same principles as other object oriented programming languages and only emulates object classes via constructor functions. While I've learned that it can actually do that, I don't see why it shouldn't be considered an object oriented programming language, but to say it is "full object oriented" is debatable since it wasn't originally designed to be object oriented, and likely wouldn't be the object oriented programming language of choice if someone were looking to create object oriented code. I love a good debate though! lol
It sounds like you have already had some knowledge in this field. So, regarding the actual question, did you get your answer?
Prototypal inheritance in JavaScript is described by Douglas Crockford as:
taken from wikipedia... JavaScript is object-oriented, but is not a class-based object-oriented language like Java, C++, C#, etc...
i learn both language btw (C and C++ at college and javascript years later...)
and in my opinion javascript is using new approach to OOP. class free OOP. 😀.
for easier comparison... let's just say that conventional car usually use gasoline... then come tesla which use electricity... but they still a car don't they... 😀.
I'll quote wikipedia themselves when I say "wikipedia is not a reliable source" lol.
Though a class free OOP might be good for easy to write code, I still think that limits it's usage when it comes to using OOP compared to the C based programming languages. But I agree with everything else 🙂. I may try to start learning it just to be able to tidy up all the plugins I want to use or change anything I might want to use in my game.
Though a class free OOP might be good for easy to write code, I still think that limits it's usage when it comes to using OOP compared to the C based programming languages. But I agree with everything else 🙂. I may try to start learning it just to be able to tidy up all the plugins I want to use or change anything I might want to use in my game.
Original thread: https://forums.rpgmakerweb.com/threads/what-order-should-plugins-be-in.133125/