Is it possible to make this thread pinned?
That's way every script (plugin) maker are aware about this and can try to make their script compatible.
MVCommons - The community core plugin
● ARCHIVED · READ-ONLY
-
-
That certainly would be awesome!!
I'm thinking about going through this and just expanding on the documentation of certain things, and giving examples on some things too. -
Please do!That certainly would be awesome!!
I'm thinking about going through this and just expanding on the documentation of certain things, and giving examples on some things too. -
I have one Question:
What does this mean?

-
Web browsers want to try to push away synchronous javascript calls. Synchronous is a big, fancy word that basically means 'wait for completion'. There is a function in the commons, ajaxLoadFile, which loads a file synchronously. This means that until the file is done downloading, the game will stop and wait for it to finish. The alternative, Asynchronous, is recommended for getting files, because while the file is downloading, the game will continue running. However, with this method, the game cannot use the content of the file until the download is complete. This means that the developer has to add a check to see if the file is downloaded first, before using the data, or errors will be throw.I have one Question:
What does this mean?
This is just a warning saying that sometime in the future, synchronous calls in the game's main update function will be unsupported, forcing all files to be received via asynchronous calls. It will work this way for now, but in the future, it will not. -
Thank you. I have found the Trigger of this Message. It seems that the Plugin "External Text" from Zalerinian is the fault.
-
Well 'fault' isnt really a fair statement, cause there was nothing technically 'wrong' - it was just a warning message. :)
-
Sorry, but Google has no other Word for the German Words "Auslöser der Nachricht" :DWell 'fault' isnt really a fair statement, cause there was nothing technically 'wrong' - it was just a warning message. :)
-
That would be me, and yes, I know. I'm working on moving it over to asynchronous calls, but for now it's only synchronous. Please check back for updates soon!Thank you. I have found the Trigger of this Message. It seems that the Plugin "External Text" from Zalerinian is the fault.
-
The commons has been updated to version 1.3.0, now allowing game developers to rename their plugins without breaking the parameters for that plugin. Please make sure to read the documentation to ensure you don't run into any issues:
Developers can now insert a plugin ID into their plugin's description using the format <pluginID MyID> (case-insensitive), which will allow the plugin to still get its parameters if the game developer renames the plugin file.
Alternatively, game developers can include ",OriginalName" in the renamed file to allow the renamed plugin to get it's parameters.
If plugins are renamed, the ID in the description is checked first, followed by the file name check. If neither check returns a match, an empty JS object is returned. -
Object cloning in JavaScript is trickier than "result[p] = obj[p]" - you will lose procedural properties and inheritance that way. Consider using solutions from this article.
Also, be careful when extending common classes like Array and Number. I see you aim for maximum compability with older browsers, that's why you use self-executing anonymous functions instead of new let keyword; if so, you shouldn't extend standard classes, as you risk running into compability issues with future browsers that may have additional methods in standard classes. min() and max() function on Array seem useful - what if they will be added in future versions of Javascript? What if they will have different implementation details? What if other plugins will have their own additions to standard objects with different implementation details? -
Be aware, adding methods it's not extending.Also, be careful when extending common classes like Array and Number.
Extending is:
class MyArray extends Array {}Wich isn't valid es5, but:
Array.prototype.newMethod = function () {};is.
let is an es6 keyword... wich is another different thing -
-
Did you rename Yanfly's plugins? The parameters for the plugin could not be found, so MVCommons is warning you about that. Same thing for the Game Skip Title plugin. They're trying to get parameters, but they couldn't be found. Please read the OP for instructions on how to properly rename a plugin using MVCommons to still have parameters work fine.
-
You're right, but many articles on the web call adding new methods to native prototypes "extending" - maybe because there was no "extends" keyword before ES6. Or maybe I'm just lucky to stumble upon this terminology %)Be aware, adding methods it's not extending.
I know that "extends" and "let" are ES6 standard, which MV and modern browsers fortunately support. If you're not using it, this must be for compatibility reasons. If that is so, you shouldn't write to native objects' prototypes. See here for example. -
I am a bit confused... I get these errors in the debug tool

anyone know why? -
The image didn't load here.
Usually when people have problems with MVC, it's because it was downloaded wrong.
Try clicking here to download a valid copy of it. -
Yea, image didn't show for me either.. :/
If you are using a valid downloaded copy ~ try uploading your image using a site such as postimage.org. :) -
Well it magically seems to work now XD, Btw it was a syntax error
-
RPG-Maker MV new installed (there was no RPG-MakerMV folder before in C:\Program Files (x86)\Steam\steamapps\common)
New Project created
Plugins:
only MVCommons.js
