MZ How do I get NobleMushroom.js working?

I found a free visual novel plugin for RPG Maker MZ that seems to have some very robust features, including an automatic text wrapper, which would be extremely useful! Only problem is that whenever I try to run it, I get a "this.localFileDirectoryPath is not a function" error. Does anyone know how to fix it?

The plugin I'm talking about is here:
The link goes to RPGMaker MV plugins and you are using MZ. You would need to port this plugin in order for it to work.
It's an MZ plugin (it's in the MZ folder and the plugin says target is MZ). Triacontane just didn't put in a different repository. I don't have MZ so can't help with the error you're getting though.
My bad. Do you have updated core script? localFileDirectoryPath is not present in older script version.
The plugin's header does have @target MZ, but the code was last updated on 2020-08-12, 8 days before MZ's official international release, and it looks like it is written for MV only.

E.g. as well as the error described by OP, it looks like it has other MV-only references:
  • DataManager.isThisGameFile -> removed in MZ;
  • Window_SavefileList#drawGameTitle -> renamed to drawTitle;
  • Window_Base#standardFontSize -> moved to Game_System#mainFontSize;
  • WindowLayer#_maskWindow -> inlined.
These are just examples, I'm guessing there are more.
So what should I change to make it work, if one even could?
You can change RPG Maker MZ into RPG Maker MV which does not require javascript knowledge
Or you could port the plugin to MZ which requires javascript knowledge.
Or you could find another plugin.
Or you could find a volunteer that would rewrite the script for you.
Well that sucks. So if I want it to work for MZ I basically have to rewrite the entire plugin?
You can try FOSSIL, but it is not granted it will work.
Could anybody tell me what MV terms need to be replaced by what MZ terms to see if that works? Or is it just not that simple?
To be blunt: if it were simple to do, someone would already have done it. 😅

I assume you've tried FOSSIL, like @utunnels suggested?

Depending on how much of a visual novel you're wanting to make, have you considered whether a different engine, e.g. Visual Novel Maker, might be more suitable?

Personally, if I had the time & inclination to figure out a solution, and couldn't find a suitable alternative, I'd just write a new plugin from scratch. Have you checked out these plugins?
For more recommendations, you could start a thread in Plugin Requests listing exactly what features you would like. 👋

Otherwise you might consider commissioning something. Paid requests on this site should not be made in this section, though: we have a Classifieds section for that.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-noblemushroom-js-working.176359/