Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(4 edits)

For FSDK_CookToolAddOn, it's as Carotopia showed in the picture above.

I'm not using any Visustella plugins with this project.

I am mainly using the Hendrix Action Combat Plugins, which the plugin author has stated that he's used Cook tools Deluxe with in the past without any issues.  Edit: As long as plugin compression was disabled.  Is that still an option with this version?

 
This is the error I get when enabling most of the plugins I use.  In this specific example it is just DotMoveSystem enabled.

Interestingly, if I disable Halva compression, I get an additional error along with the one below:
Uncaught SyntaxError: Unexpected token '<'   index.html:1

(1 edit)

Digging a bit on the plugins that I could get my hands on, DotMovementSystem is one of (or the only) culprit, as it tries to pull its name dynamically (Source Code Protection has to patch MZ so it can load the bainry files that nwjs can read). It's fixable by changing the line 298:

const DotMoveSystemPluginName = document.currentScript ? decodeURIComponent(document.currentScript.src.match(/^.*\/(.+)\.js$/)[1]) : "DotMoveSystem";

To this:

const DotMoveSystemPluginName = "DotMoveSystem";

Might send a message to the dev of DotMovementSystem to let them know about it.

If you see similar issues with what you saw in that plugin, check if there any plugins that use document.currentScript (or similar) and simply change the line to hardcode the name.

As for Uncaught SyntaxError: Unexpected token '<': I can't say for certain what causes that on MZ. It doesn't crash MZ games (I tested with both barebones and more plugin heavy projects) and there's no crash or stuck in a loop. Most likely, there's a slight error in patching the html file so it can load the binary version of main.js. Other than that, it's a fluke of an error.

EDIT: If you mean the Source Code Protection on your edit: Yes. It's still an option. Since R6, it's enabled by default when the option to encrypt the assets is turned on. So, you'd need to disable that option first.

(4 edits)

Oh wow!

You definitely go above and beyond what I was expecting!  Thanks!

Disabling the source code protection allowed most of the plugins to work with no issues.  There's only one that's making a nuisance (TRP Particles) and I can probably find a replacement for it if I can't get it to work.  Or even just forgo it altogether.

I may do as you suggested and go through the code and see if there's anything like document.currentScript (or similar) in the other plugins so it can be fixed for asset protection as you did with DotMoveSystem at a later date, but for now I'm just happy to have it working!

Regarding, FSDK_CookToolAddOn.  You snuck a new (B)ug into the first line of the plugin file you released today (Version 1.4.3-release.20251023) though it's easy to fix :)

Fixed the typo.