MZ Compatibility of MV and MZ plug-ins

Good Day!

After deciding to try transferring my project from MV to MZ, I encountered a strange situation. I couldn't run a test with the “FOSSIL” plugin, as it caused an error. However, when I tried running without it, the game launched without any problems with all the MV plugins. I didn’t fully test the game, but it ran well, and I didn’t notice any differences from MV. This is very strange to me, as I had read that many MV plugins are not supported in MZ. Because of this, I suspect that when I press “Play test,” the game might be launching through MV. How can I check if my project is running as MZ? And if the game is indeed running as MZ, is it normal for all plugins to work?

Here is the list of my plugins:
111111111111111111134234.png
If you're already using many MV plugins, I'm not sure why you'd try to convert to MZ. I strongly recommend you make a backup copy of your project before changing things, if you haven't already.

You can check the core scripts your project is using, found in your project's js subfolder:
  • MV's core scripts are named rpg_core.js, rpg_managers.js, etc.
  • MZ's core scripts are named rmmz_core.js, rmmz_managers.js, etc.
You can easily update your project by choosing Game -> Update Corescript from RPG Maker MZ's menu bar. Just choose a version and click OK.
If you're already using many MV plugins, I'm not sure why you'd try to convert to MZ.

My game has some performance issues, and I wanted to at least try running my project on MZ to see if, for example, the menu would launch faster, etc...

You can check the core scripts your project is using, found in your project's js subfolder:
  • MV's core scripts are named rpg_core.js, rpg_managers.js, etc.
  • MZ's core scripts are named rmmz_core.js, rmmz_managers.js, etc.

In the folder, there were plugins for both MV and MZ.

You can easily update your project by choosing Game -> Update Corescript from RPG Maker MZ's menu bar. Just choose a version and click OK.

What does this command do? And which version should I choose? It seems this was exactly what I was missing to get the game to launch as MZ. Now the game launches with an error "TypeError Cannot read property 'GLTexture' of undefined". Is it worth trying to somehow launch the game with the FOSSIL plugin given my number of plugins, or is it better not to waste time?
I have moved this thread from RPG Maker MZ Support to JavaScript/Plugin Support.
In the folder, there were plugins for both MV and MZ.
That's not what @caethyril said. She said your js folder, not your plugins folder.

The js folder is where the actual code for your game is. If you started your project by opening RPG Maker MV and clicking New Project, then you will have rpg_* files and it's an MV project.

It doesn't matter which software you're opening it in and clicking the playtest button.

When you opened your project in RPG Maker MZ and clicked to update the corescripts, all of those files were replaced with the rmmz_* files, which is why now you're getting the errors that one would expect when trying to use those MV plugins in an MZ project.

Is it worth trying to somehow launch the game with the FOSSIL plugin given my number of plugins, or is it better not to waste time?
You do whatever you like, but I suggest no, it's not worth it. You have a lot of plugins in there, and you would have to see if they all work with FOSSIL.

I strongly suggest that your game's performance issues have nothing to do with it being an MV project, as many people have made games on MV that work just fine. You would be better off troubleshooting your problems and fixing what's causing them than trying to finagle your project onto a different codebase.

If you have performance issues because of inefficient events or script calls or picture usage, it won't matter which version of RPG Maker you're using.
In the folder, there were plugins for both MV and MZ.
Like Turan says, rpg_core.js and rmmz_core.js are core script files, not plugins. They determine whether the project is "MV" or "MZ".

I understand why you may want to use both MV and MZ plugins, though, because sometimes a plugin might not be written for both engines. Some plugins may work as-is, if that part of the core scripts is the same in both engines.

What does this command do?
It replaces your project's index file and core scripts/libs with those for the chosen version. It's the same kind of process as described in this RMMV announcement, under "Updating your Projects":
[Edit: you still need to manually replace the index.html file, see follow-up post by Arthran.]

And which version should I choose?
I'd suggest picking the latest available version.

Is it worth trying to somehow launch the game with the FOSSIL plugin given my number of plugins
Could be worth quickly testing it, i.e. add FOSSIL at the top of your load order, save your project to apply Plugin Manager changes, then test. If it doesn't work like that, though, then like Turan says, I'd suggest going back to the MV backup or finding alternative plugins.

Note that there is also RETRO (MZ plugins in an MV project):
Like FOSSIL, this will only fix some issues, but it might be worth a try if some of the MZ plugins weren't working correctly in the MV version of your project.
also as a side not, ALOT of MV plugins might not work in MZ, as they both
use JS, the functions are called differently from some of them.

SpriteBase is one of them or how you call the sprite balloon.

there are different scriptcall use and what specially does NOT work
are MV plugin commands, as those are different made and called
but "args" commands like parameter.

there are more, so if an MZ plugin exist, use that, else FOSSIL for MV to MZ.

HUDMaker might not work as the image call in MZ is also slightly different.
so you should becareful on how to port as alot of plugin needs to be transfered,
if you use plugin command, Ocram made a tool for it to work, else redo it for
MZ plugin commands for the correct plugin if exist.
Thank you all for the help. I am getting a 'GlTexture' error with and without the 'FOSSIL' plugin. Is there a way to fix it?
4123412345.png
If you have performance issues because of inefficient events or script calls or picture usage, it won't matter which version of RPG Maker you're using.
I use high-resolution images for my maps, with Galv's Layer Graphics and Galv's Move Route Extras for animations, where images can be up to 10,000 pixels in width. Also, I use particles with the MOG_Weather_EX plugin. In theory, could switching to MZ give me a performance boost?
it says registerPlugin which is either the MV common to register plugin
that doesn't exist in MZ or plugin commands, as it targets MV core plugin
as it should be rmmz_core plugin, which FOSSIL works on it.

FOSSIL mostly dont work with MV core plugin but RETRO is for MV to have
MZ plugins 😉
Thank you all for the help. I am getting a 'GlTexture' error with and without the 'FOSSIL' plugin. Is there a way to fix it?
View attachment 286387

I use high-resolution images for my maps, with Galv's Layer Graphics and Galv's Move Route Extras for animations, where images can be up to 10,000 pixels in width. Also, I use particles with the MOG_Weather_EX plugin. In theory, could switching to MZ give me a performance boost?
I believe those first errors are because you don't have the PluginCommonBase plugin that shipped with MZ, which some of the other plugins use. The PIXI one is likely a missing pixi filters plugin, I know there's at least one.
Thank you all for the help. I am getting a 'GlTexture' error with and without the 'FOSSIL' plugin. Is there a way to fix it?
View attachment 286387

I use high-resolution images for my maps, with Galv's Layer Graphics and Galv's Move Route Extras for animations, where images can be up to 10,000 pixels in width. Also, I use particles with the MOG_Weather_EX plugin. In theory, could switching to MZ give me a performance boost?
The primary culprit of those errors is that you're using an index.html file from MV, and it contains lines that are trying to load libraries and core scripts from MV. After fixing that, you'll probably also run into a few similar issues on account of missing some MZ files or having some residual MV files cause problems.

It would be a good idea to start with a new MZ project, and then copy over the important parts from your MV project--i.e. your audio, data, img, and plugin (not js) folders, and then any individual files that you might wind up needing (i.e. your font).
I use high-resolution images...can be up to 10,000 pixels in width.
That's not super helpful, as width is only one of the two dimensions. 10,000 x 1 is hugely different from 10,000 x 48 (one tile high), etc.

That said, MZ is a 32-bit application just like MV is, and so has the same memory limits. RGBA images take up 4 bytes of memory per pixel, again regardless of which engine you're using.

So a single tile row of that large width is going to take ~1.83 MB of RAM. If it's a square map, that's some 381 MB of memory. That's going to give you noticeable loading times, and if you have any other large images being loaded along with it or any CPU-intensive events/code at the same time, you could be on the path to chugging.

I'd bet that you'd have a much more noticeable effect by trimming your maps into multiple segments than you would by going through the effort to recreate your project in a different RPG Maker. But you seem pretty invested in doing so, so let us know how it works.
That said, MZ is a 32-bit application just like MV is, and so has the same memory limits.
MZ is 64-bit (at least, my copy is).
MZ is 64-bit (at least, my copy is).
Well then! I must have misremembered from some other discussion! Thanks for the correction.
The primary culprit of those errors is that you're using an index.html file from MV, and it contains lines that are trying to load libraries and core scripts from MV. After fixing that, you'll probably also run into a few similar issues on account of missing some MZ files or having some residual MV files cause problems.

It would be a good idea to start with a new MZ project, and then copy over the important parts from your MV project--i.e. your audio, data, img, and plugin (not js) folders, and then any individual files that you might wind up needing (i.e. your font).
Can plugins along with their information be transferred, or do they need to be reinstalled? It seems the “GlTexture” error was caused by the “PrinPrin_BugFixes” plugin, but it appears to be just the tip of the iceberg. Adding plugins one by one, I discovered that the “QMovement” plugin also causes an error. Also, according to the console information, errors are caused by the “Yep_CoreEngine” and “Galv's Layer Graphics” plugins.

412341243435.png

I suppose fixing all this would take a lot of time, even for someone who is knowledgeable in this area?

It looks like switching to MZ is not going to be an option for me 🙁
switching over to MZ require a lot of resource of plugin, modifications to read
MZ core files correctly.

MV JS core has some different names than MZ JS core, so those names need
to match to load the data correctly.

if some variable is also different, those must be corrected as well.

while around 80% of the files are equal to MV, there are still function that has
it name changed or function slightly different as MZ improve performance in
some ways MV didn't.

so either complete it in MV, or reconstruct it in MZ and find equal plugins to
make those changes correctly as you had them in MV.
Can plugins along with their information be transferred, or do they need to be reinstalled? It seems the “GlTexture” error was caused by the “PrinPrin_BugFixes” plugin, but it appears to be just the tip of the iceberg. Adding plugins one by one, I discovered that the “QMovement” plugin also causes an error. Also, according to the console information, errors are caused by the “Yep_CoreEngine” and “Galv's Layer Graphics” plugins.

View attachment 286474

I suppose fixing all this would take a lot of time, even for someone who is knowledgeable in this area?

It looks like switching to MZ is not going to be an option for me 🙁
The plugins.js file in your js folder has your plugin information. You *can* try to transfer that to the new project if you really want, but personally, I would instead take this opportunity to evaluate your plugins one-by-one and figure out which ones can be replaced with MZ plugins, and which ones might not even be necessary anymore.

For example, there is a MZ port of both QMovement and Galv's Layer Graphics.

There is also a MZ replacement for YEP_CoreEngine, but you might not even need it anymore, depending on why you were using it on the first place. Remember, the purpose of that plugin is to fix bugs in the engine and add various features, but you're now using a different engine, so some of those bugs might not even exist, and some of those features might already be implemented natively.

I have no clue what PrinPrin_BugFixes is, but if the bugs it's fixing are targeted at the engine, they also might not even exist anymore.

Quite a few of your plugins have direct MZ equivalents that you could swap to. Some of them don't, but you could probably find replacement plugins that can perform similar functionality in most cases. Some of your plugins might be unnecessary and can be dropped.

Switching to MZ is definitely possible, but to make it happen, you're gonna have to take a good look at your plugins.

Arthran​

Thank you for the detailed answer!

My main question is: will I have to replace all the old plugin commands with new ones? For example, if I replace the 'Galv's Layer Graphics MV' plugin with 'Galv's Layer Graphics MZ'. I checked, and it seems that the commands in these plugins are identical. Will it be enough just to replace the plugin with the MZ version, or will I also have to manually replace all the commands, such as 'LAYER 1 2 Weather_Fog 0.5 0.5 65 -4 -10 -10 0' in each event? If it's the former, then it's easy, but if it's the latter, then it's a lot of work, just for one plugin…
MZ plugin commands are entered in a different format from MV ones - there's a drop-down interface where you select the plugin, command, and arguments - it's no longer just a typed-in field.

So you can simply just try it, or perhaps someone who has done it (or looked at the data structures) will already know - but I wouldn't think that copying your events from MV data files into MZ would work correctly with plugin commands.
I haven't tested, but MV and MZ use different command codes for their plugin commands (356 vs 357). MZ implements command356, so I imagine it can handle existing MV plugin commands even though MZ's editor doesn't offer an option to create them.

Original thread: https://forums.rpgmakerweb.com/threads/compatibility-of-mv-and-mz-plug-ins.163551/