MZ Trying to use MV plugins work in MZ

Hey all, was hoping someone might be able to help me on this issue. We're trying to make a game with RPG Maker MZ, but be able to use MV plugins. I followed along this tutorial:


I added plugins and files one by one to make sure everything worked. I got to a point where some of the errors I just couldn't figure out. It was complaining that `this.digitWidth` is not a function, so I went into the code and changed
`var w = this.digitWidth();` --> `var w = Sprite_Damage.digitWidth();` View attachment 310352

This then produced an error that said `this.fontSize` is not a function, which lead me to FOSSIL.js
View attachment 310353

- I do have FOSSIL loaded at the top of the plugins in RPG Maker MZ
- I've been working with another developer on this, as well as ChatGPT

If there is anything that isn't clear, please let me know, I'm trying to give as much information as I possibly can. If you know of anything to help, that would be greatly appreciated!
Are you specifically trying to make a game with Chrono Trigger's battle system in MZ? Thats what that guide is about.
The error message on its own without any idea of which plugin you're trying to install is useless to anyone who might help you.

You will also find most coders are very reluctant to help anything that's been modified by ChatGPT (in fact, it's against the section rules). In the future I'd skip that step and just ask humans who know what they're doing.

If there is anything that isn't clear, please let me know, I'm trying to give as much information as I possibly can.
The actual plugin and the actual error trace are a good start. (to see the error trace: when the game crashes, press F8 and go to the Console tab)
Are you specifically trying to make a game with Chrono Trigger's battle system in MZ? Thats what that guide is about.
Yes! I am
1720378307609.png

Here are all the errors that I get in the console. However if I click on the `Sprite_Damage.createDigits` (MOG_DmgPopupEffects.js) it leads me to:
1720378672001.png

However, there is no mention of `fontSize` here.
From curiosity, I console logged the baseRow and value and got:
`63, undefined`

Where does the 63 come from? What is baseRow? I can't find any mention of baseRow in any of the files except here. Seems like `baseRow` gives me different numbers every time the game is ran, and `value` always comes up as `undefined`.

Checking to see where Sprite_Damage might be created/called, and see if the error would originate from another code block
I'll let Aqua handle you since this is her jam. Just to address a few points:

However, there is no mention of `fontSize` here.
It's from FOSSIL. Damage popups are made differently in MZ, they don't use a spritesheet, so there is no digitWidth() method. Line 4430 of FOSSIL calculates the digit width based on the size of the selected font.

Sprite_Damage.fontSize() is a default part of MZ, so getting errors that it's not a function implies to me you might have a plugin conflict or some JavaScript notetags/plugin parameters with typos.

Make sure you're testing this with only the plugins you need enabled.

Where does the 63 come from? What is baseRow?
baseRow is the name of the first argument being passed into the function.
1720381284195.png


This function will require more rewriting to be compatible with MZ. As I said, MZ no longer pulls the popup numbers from a spritesheet, and that's what baseRow and the derived variable row inside the function are doing.

You'd need to compare this function to the createDigits() method in MZ's code and splice them together to create sprites the way MZ expects but add the zooming or whatever this plugin adds. That's why you're getting value is undefined, because everything in MZ is passing only one number into createDigits() where MV passed two. (the varying numbers you're seeing for baseRow is the damage being done)

Note that this plugin is essentially unrelated to the tutorial you linked to above. That only went through the Chrono Engine.
I can't really help with this as I don't use MZ or even have a copy of it. You'll have to ask the creator of that guide @AmeerAshourDraws. You could just try turning off the damage popups plugin.
I can't really help with this as I don't use MZ or even have a copy of it. You'll have to ask the creator of that guide @AmeerAshourDraws. You could just try turning off the damage popups plugin.
I hate to disappoint you, but I unfortunately don't know the solution to that. I was trying to get the basic functionality of the engine to work, but after that, I decided to go my own way and try making my own CT-styled system.

I'm not the best in RPG Maker scripting myself, I'm still a noob, so unfortunately, I can't help with it
Well then I guess the OP's options are to DIY a patch to the damage popups plugin like ATT_Turan suggested, commission a programmer to do it, do without that plugin and see if another MZ damage popups plugin will work with Chrono Engine, or just use MV.
It also depends on what the OP is trying to do.

If it's the on-the-map-turn-based-with-positioning like Chrono Trigger, it honestly would be easier to pick up MV with the Steam summer sale discount and use that.

But if they're going for the ABS functionality, there are a number of other plugins written natively for MZ to do that.
There are people here who have Chrono Engine ABS mode working fine with MZ since Restart made them compatible. It's just the Chrono mode specifically that's not compatible since Restart never used that mode. Same reason his Cross Engine doesn't work with Chrono mode.
After talking with the rest of the team, we've decided to just go with MV, it seems to be a lot easier for what we want to do. Thank you all for your input though!

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-use-mv-plugins-work-in-mz.170096/