MZ MZifier - Convert plugins from RPG Maker MV to RPG Maker MZ

Introducing the MZifier, a tool to convert plugins from MV to MZ. You can download it from GitHub repository or the direct zip file here.

Instructions:
  1. Download the zip file
  2. Move your script to the same folder as the executable with Python312.dll
  3. Open Command Prompt or Terminal to your saved folder
  4. Use mzifier.exe script_name.js
  5. The new script will be converted to script_name_MZ.js in the same folder
Below is an image of converting a simple plugin.

1756359542084.png


The software is currently in alpha. It does not modify the original script, but I always recommend making a backup. I have converted several plugins. The software license is CC 4.0 with attribution. Please attribute the company Paradise Union. Please provide credit as a special thanks. There is no cost. It can be used in commercial or non-commercial projects

Depending on the script you are converting, you should get permission from the original copyright holder unless they have given you permission to alter their work for your project. The copyright holders of the plugins usually provide support. Any alterations could be outside of their support.

Roadmap items:
  • Support for a standardized RPG Maker template
  • Add a GUI
  • Linux/Mac support
  • Any script to script version of RPG Maker
If you run into any issues with the software, please leave a message on my GitHub under issues. Please leave a comment for any criticisms or suggestions.
I'm a bit conflicted. The ability to run MV plugins in MZ is something the community has wished for since the beginning. When we had FOSSIL, it ended up in a lot of drama. The creator promised the Holy Grail, but we haven't got it, and the rest is a story for another day.

Long story short: Of course, we all want such a plugin or tool, but it can lead to a lot of disappointment when it does not fulfill the promises.

Looking at your code, I can already see that it only converts the tip of the iceberg. I doubt that it can convert even 5% of all MV plugins. Well, to be fair, it's in alpha. It probably can convert more plugins the more work you invest. And there's a lot of work to do.
When we had FOSSIL, it ended up in a lot of drama. The creator promised the Holy Grail, but we haven't got it, and the rest is a story for another day.
LOL. He was discouraged from working on it further by the mods who said FOSSIL was a threat to paid MZ plugins (particularly VisuStella). So now MZ has a ton of paid plugins.

I suspect this tool will run into the same issue as FOSSIL where the common functions can be easily converted but still require manually combing through many plugins for niche functions.
He was discouraged from working on it further by the mods who said FOSSIL was a threat to paid MZ plugins (particularly VisuStella).
This seems quite the accusation... are you absolutely sure that's what happened? Not claiming it's not true, I'm just wondering where you got this from.
This seems quite the accusation... are you absolutely sure that's what happened? Not claiming it's not true, I'm just wondering where you got this from.
Part of it is what Restart said directly, and part is me putting 2 and 2 together. There are a couple mods and users here who are abnormally defensive of VisuStella.
Post in thread 'Project FOSSIL (v1.0): Use MV plugins in MZ! 300+ plugins Fossilized!' https://forums.rpgmakerweb.com/inde...mz-300-plugins-fossilized.135523/post-1206324
LOL. He was discouraged from working on it further by the mods who said FOSSIL was a threat to paid MZ plugins. So now MZ has a ton of paid plugins.
I respect you as a person, but there was never any evidence to support this accusation. Let's be real, if someone wants to paywall their stuff from the next day, they can do that anytime, regardless of MV/MZ editions.

I think we all want such a tool, even the plugin developers themselves. It would save a lot of time. I even spent several days making my last plugin compatible with both versions, and for the very last one, I even decided to release an MZ-only version because making it ready for both was just too heavy (I know, we are talking about MV -> MZ and not vice-versa, but my point stands).

Jumping back to topic:
Ultimately, you probably need to utilize new, modern technologies, such as AI, to convert plugins. I don't think one can handle that with a simple string substitution.
there was never any evidence to support this accusation. Let's be real, if someone wants to paywall their stuff from the next day, they can do that anytime, regardless of MV/MZ editions.
I can't go into specifics without causing drama or derailing the thread. You can just go by what Restart himself said.
"I was also told that some of the site admins thought that FOSSIL was having a negative effect upon the plugin making community."

A dev can paywall their plugins, but it's harder to do in MV when there are a half dozen alternatives to most plugins that are free.
Part of it is what Restart said directly, and part is me putting
Okay, so you aren’t even reasonably sure? I honestly don’t think you should be making such accusations based on a statement by someone, especially since it is vague at best. Stuff like that causes unnecessary drama that benefits absolutely no one. Peace.
I wonder how good it can be, as while I aim for MV, I cannot test
them on MV, but if it fails, it still need manually debugging to make
it correctly.

I'm unsure how it will handle is custom added function or what
it exactly target to convert.

I do have a little function to change rect to x,y,w,h and one other
for the text part.

but that is used in 2 plugins of my personal plugins.

but if it can do the big parts with small debugging, why not.

but I think it has a long road to go to make it fully work or for most plugins.
as it wont be easy to debug both engines, and how to convert some naming
or functions as 1 need less code, other needs more code.

MZ seems on one hand simplified while MV require a bit more lines.
so it looks interesting.
I'm a bit conflicted. The ability to run MV plugins in MZ is something the community has wished for since the beginning. When we had FOSSIL, it ended up in a lot of drama. The creator promised the Holy Grail, but we haven't got it, and the rest is a story for another day.

Long story short: Of course, we all want such a plugin or tool, but it can lead to a lot of disappointment when it does not fulfill the promises.

Looking at your code, I can already see that it only converts the tip of the iceberg. I doubt that it can convert even 5% of all MV plugins. Well, to be fair, it's in alpha. It probably can convert more plugins the more work you invest. And there's a lot of work to do.

I would be curious to test all MV plugins, but I don't have the time to make an automated tool for it. I made this for my project and thought I would share. I didn't run into any issues, so I thought I would release it. MZifier was made in Python. I chose Python because Microsoft had abandoned JScript and the WinUI template. C++ or a JS executable were alternative options, but turning Python scripts into executables is easier for me than JS. The Python syntax is (often) easier on audiences than C++.

Side note: I have thought about an application that has an aggregated list of all plugins that users could download into their folders. It is way off to the side for me, but if someone wanted to build it, they can have my notes to make it. The best I had found was GitHub, Google, and also Sigmasuccour's Google Doc list. I had imagined something like a mix of the Linux canonical upgrade and the Google Play Store. People see a table of plugin's, click on which one they want, and goes to the project. Includes license information, tutorials, etc.

I digress, during the transition from VX Ace to MV, I saw many plugins that should be moved over. When I compared my tool to https://www.ruby2js.com/ it seemed to compare in many regards. My code had fault protections if it is unable to understand. It will throw it over there. Other tools I tried didn't have that either. I try to find the opportunity in the situation when I know a script could break the tool. Prior to release, I didn't get approval for conversions, so I never tried. When I run into a plugin that doesn't convert, I'll update the converter.

I had only heard of FOSSIL less than two weeks ago, but I never had a chance to look at it. I find it interesting that he made it as a plugin for plugins. If I had seen FOSSIL, I would have substantially changed or even abandoned this little utility. After briefly looking through the plugin, his script is more technically designed for specific plugins. It is a good plugin. I might update my script to reflect the exceptions he included. JS to Python conversions can take time.

Regardless, it seems there is room for both of our solutions. Despite getting my MCSD and using MV the most, I never got into plugin development with MV. I have become more familiar with the MZ style of making plugins. Converting plugins over works well for me.

If you find an error with the tool, please leave it in the GitHub issues. If you run into an error with converting and it's approved by the copyright holder, I would be curious what doesn't get converted over. I am uncertain how much this tool can convert all scripts, but if someone finds something, I would be willing to add it in. I'm working on a large project, so maybe I might run into the same conversion issue.
Okay, so you aren’t even reasonably sure? I honestly don’t think you should be making such accusations based on a statement by someone, especially since it is vague at best.
I am reasonably sure but again being specific would cause drama as you said. The statement is not by "someone", but FOSSIL's creator himself on why he stopped working on it.

If this tool can fill in the gaps for plugins that don't currently work with FOSSIL then fantastic.
I am reasonably sure but again being specific would cause drama as you said. The statement is not by "someone", but FOSSIL's creator himself on why he stopped working on it.

If this tool can fill in the gaps for plugins that don't currently work with FOSSIL then fantastic.

I feel like I have to reply to this, but honestly, the discussion really comes down to personal philosophy. I was there when this happened, and it’s sorta relevant to this thread, so I see no reason not to share.

The issue being talked about is the negatives of something like FOSSIL in the new MZ ecosystem — where bugs and unstable systems start becoming the norm because they’re not exactly built for MZ’s new backend. There’s a legitimate fear here because of the XP days, when SDKs tied you down to a framework and forced you to only work with specific plugins.

What that staff personally thinks should not affect you as a plugin developer.

We had our share of conflict with the same staff back in the VX/Ace era too, especially about how to handle public plugins. Like, is it really good to have five different Yanfly Engines for a single engine? Yanfly believed he was pushing RM to do things it wasn’t meant to do, which hurt performance and led to nerfs. Meanwhile, parts of the fanbase disagreed and would get mad about YER, YEZ, YEM, Yanfly Engine, etc. It’s basically the same situation all over again.

RPG Maker has a lot of history and baggage when it comes to plugin philosophy. Paid plugins have nothing to do with it. They’ve been around since the XP days.
The issue being talked about is the negatives of something like FOSSIL in the new MZ ecosystem — where bugs and unstable systems start becoming the norm because they’re not exactly built for MZ’s new backend.
The VisuStella ecosystem is the de facto norm for MZ (although that's been whittled down over the years as more alternative MZ plugins are made). It's known to have performance and compatibility issues due to its code obfuscation. The VisuStella experience becomes the prevailing MZ experience.
The VisuStella ecosystem is the de facto norm for MZ (although that's been whittled down over the years as more alternative MZ plugins are made). It's known to have performance and compatibility issues due to its code obfuscation. The VisuStella experience becomes the prevailing MZ experience.

You completely misunderstood the entire point.

You are using middleware to make something usable to an engine versus something that is made NATIVELY with the engine. For example, Javascript and HTML/5 is a great engine for web browser games. If I use a Python game engine, I would have to use a 3rd party tool/api/whatever to make it work in web browser that can have technical ramifications. It's that kind of difference.

That being said I'm curious how this project will go since I'm lazy to rewrite my plugins to MZ. It'd be nice if just works out of the box
LOL. He was discouraged from working on it further by the mods who said FOSSIL was a threat to paid MZ plugins (particularly VisuStella). So now MZ has a ton of paid plugins.

I suspect this tool will run into the same issue as FOSSIL where the common functions can be easily converted but still require manually combing through many plugins for niche functions.

The VisuStella ecosystem is the de facto norm for MZ (although that's been whittled down over the years as more alternative MZ plugins are made). It's known to have performance and compatibility issues due to its code obfuscation. The VisuStella experience becomes the prevailing MZ experience.

...Are you good, bro? Is the Visustella in the room with us? Do you want to point out on the doll where the Visustella touched you?

There's paid plugins because almost every subset of the internet that was doing free work moved into paid or patron supported work instead. RM would be an outlier and a dumb one at that given you can actually, you know, make content you can sell at end point in RM.

VS also doesn't suffer from any more performance issues than you'd encounter running equivalent code from someone else, and is far less likely to run into dev-ending memory leak issues because Visustella is maintained. Most free code bases get abandoned.

Thread successfully derailed but for all your 'i don't want to do that' you keep bringing up something that literally has nothing to do with the topic at hand.

The reality is there is never going to be a fits-all solution to the MV to MZ pipeline (that includes AI conversion). But code like this is nice to have for the simpler stuff that just slots in.

That said. I'm not even entirely sure, outside of UI, what doesn't actually exist for MZ somewhere at this point. And time spent working on these conversion modules or, ahem, lamenting choices others made that we choose to let live rent free in our heads, could probably be better spent genuinely just. Making the plugins for MZ.

Sometimes the attachment to MV feels on the verge of stockholm tbh. I'd been having performance issues with it and dropped it for MZ pretty much on release and haven't really touched MV again since, besides to look at old projects.
Well I'd be interested in seeing a stress test on FOSSIL to see if there is a measurable performance impact in using it. Then the same test applied to this approach to see if it is better.
Yanfly believed he was pushing RM to do things it wasn’t meant to do, which hurt performance and led to nerfs. Meanwhile, parts of the fanbase disagreed and would get mad about YER, YEZ, YEM, Yanfly Engine, etc. It’s basically the same situation all over again.
For my project (Project Hero Labs), I'm pushing RPG Maker MZ pretty hard, too. I've been trying to balance performance with feature richness. I've included 3D features, action RPG elements, mini-games, multiplayer online experiences, and more. I'm supporting several devices and platforms, which has led to several forks for optimization. Things like 200+ FPS on PC based devices, 60-100 FPS for consoles, and 30-60 for mobile devices. As a supporter of hobbyists, indies, and small studios, what do you think is an acceptable range of performance to ensure quality? I've been trying to stay on par with KyouNight's (暁夜KyouNight) Project Varinsite. When I worked at ArenaNet, we had about 250 employees. On Project Hero Labs, I am a solo dev with numerous plugins. The closer I can get to solo AAA quality, the better. Any criticisms can be turned into quality challenges and opportunities. I might consider getting more people to this this project, but that's for another time.

Well I'd be interested in seeing a stress test on FOSSIL to see if there is a measurable performance impact in using it. Then the same test applied to this approach to see if it is better.
If you run any tests with FOSSIL, could you share them? I might consider it to be a de facto choice for more popular plugins that were already tested. But if MZifier works better for untested, then it would be nice to have a place in the eco-system.

I was manually converting plugins and that was taking so long. It could be several hours at a time per plugin. I would be pleased if my tool helps bring some peace to some issues for others too. 🙂
If you run any tests with FOSSIL, could you share them? I might consider it to be a de facto choice for more popular plugins that were already tested. But if MZifier works better for untested, then it would be nice to have a place in the eco-system.
Unfortunately I can't do it as I don't have MZ (I also ran out the trial helping make a MZ version of a MOG plugin for the community) and lately I've been busy with a game in another engine entirely. I am however interested in the results of such a test just out of a technical best practices curiosity perspective.
Did I do something wrong? I tried opening up the file and I get
1756642669100.png
Did I do something wrong? I tried opening up the file and I get
View attachment 348712
No, you did nothing wrong. It is one of the quirks of distribution with Python. I already had Python installed with the path in my environment settings.

I have updated the repository and this is a link to the file: Python312.dll. You'll want to place that DLL file in the same folder as MZifier. I'm working on a prototype right now, but I'll add to my todo list items that the executable should work without the DLL. After you throw that in there, could you tell me your experience with the conversion?

Thank you for your patience and understanding.

Original thread: https://forums.rpgmakerweb.com/threads/mzifier-convert-plugins-from-rpg-maker-mv-to-rpg-maker-mz.179817/