Yanfly Core Updates and Desktop Optimization Error

I'm getting this error when I try to play test my game.
Error.PNG

I've done as the instructions said in the help file, but that didn't help at all.
I'm not sure what to do here. I want to use the plugin (Mainly for the Desktop Optimization), but I don't know how to fix this.
I'm no super expert, but I think this will take care of it for you. As always though, make sure to backup your project!!! And if you aren't sure, back it up again.

Firstly, make a backup of your project, because you don't want things to get any worse. Then you'll want to make a fresh project, that's good and blank. Next, copy the *.js files (and index.htm) over to your old project from the new blank one. Do not copy js/plugins or js/plugins/ though. There is a good chance that this would fix the problem.


So:
GameDir/index.html
GameDir/js/*everything-but-plugins.js
GameDir/js/libs/*all-of-these-files*
DO NOT remove the files in /js/plugins/ else, bad joo-joo!

Replace the files in your current game's directory from the new "blank" project. That should handle most of the issues, then you can use the plugin parameters to check/uncheck to get it to match the version of MV you have.
Spoiler
I'm no super expert, but I think this will take care of it for you. As always though, make sure to backup your project!!! And if you aren't sure, back it up again.

Firstly, make a backup of your project, because you don't want things to get any worse. Then you'll want to make a fresh project, that's good and blank. Next, copy the *.js files (and index.htm) over to your old project from the new blank one. Do not copy js/plugins or js/plugins/ though. There is a good chance that this would fix the problem.


So:
GameDir/index.html
GameDir/js/*everything-but-plugins.js
GameDir/js/libs/*all-of-these-files*
DO NOT remove the files in /js/plugins/ else, bad joo-joo!

Replace the files in your current game's directory from the new "blank" project. That should handle most of the issues, then you can use the plugin parameters to check/uncheck to get it to match the version of MV you have.
I'm still getting the error after doing this.
Also, I'm using 1.5.2.
Have you tried disabling the plugin to isolate the error to the plugin?
Have you tried disabling the plugin to isolate the error to the plugin?
Yeah, if I disable the plugin, the game works as normal.
Here's an image of the top of the plugin list in case that helps you at all.
Spoiler
Page1PluginManager.PNG
I'm not sure if this is the problem, but I run Yanfly's plugins above SRD's. Also, make sure you have the 1.6.1 option set to false if you aren't running 1.6.1 🙂 I really hope that solves it for you. If not maybe there is someone more skilled than I around that can help!
I'm not sure if this is the problem, but I run Yanfly's plugins above SRD's. Also, make sure you have the 1.6.1 option set to false if you aren't running 1.6.1 🙂 I really hope that solves it for you. If not maybe there is someone more skilled than I around that can help!
My version of the plugin doesn't even have a 1.6.1 option, so that's not the issue. The ordering doesn't seem to change anything either. I'll figure this out eventually. Thanks for the help! 🙂
Sorry chief, I tried. But, if 1.6.1 is not an option, you may want to try to update those plugins (especially anything with "core" in the name).
I think a lot of SRD plug-ins you have are trying to do the same thing as Yanfly's, so you will have to pick one over the other. Ones that stand out to me are:

SRD_GameUpgrade
SRD_Windowupgrade

Odds are high those are in conflict with Yanfly's plug-in, and you may have to choose one or the other. Try running Yanfly's without any SRD plug-ins running, and if it works, then you know one of SRD plug-ins are the cause, add them one at a time until you find which one.
Spoiler
I think a lot of SRD plug-ins you have are trying to do the same thing as Yanfly's, so you will have to pick one over the other. Ones that stand out to me are:

SRD_GameUpgrade
SRD_WindowUpgrade

Odds are high those are in conflict with Yanfly's plug-in, and you may have to choose one or the other. Try running Yanfly's without any SRD plug-ins running, and if it works, then you know one of SRD plug-ins are the cause, add them one at a time until you find which one.
Turning off the SRD ones didn't do anything either. I need the GameUpgrade in order to use the PreloaderCore, WindowUpgrade, and QuitConfirmation. Yanfly's CoreEngine seems to take priority over SRD's GameUpgrade, though (I have the window size and stuff done in Yanfly's CoreEngine and it uses those settings).
I have one last magic trick. Disable all plugins, except for YEP Core Engine and the Core Updates. Run your game.

If it does NOT work - then something else is wrong, and you'll need to track down an update you are missing, or a file that went missing.

If it DOES work, then you get to go through the fun part of turning on on the other plugins, one at a time, until it breaks again. When it breaks again, turn the offending plugin off, and continue to turn on plugins until it breaks *again*. Repeat the process until you get the offending plugin(s) isolated. Once you have it narrowed down, check the load order, or conflicting functionality.
Attention to a special detail:

Whenever you add or remove a plugin (or enable/disable it), it makes all previously saved games incompatible.
You have to start a new game on the next test, or the error would be kept from the savefiles even with the critical plugin off.

Additionally, the next time you get this error please show a Screenshot of the console error sequence (f8) instead of only the simple error screen. That will give more info for bughunting.
Attention to a special detail:

Whenever you add or remove a plugin (or enable/disable it), it makes all previously saved games incompatible.
You have to start a new game on the next test, or the error would be kept from the savefiles even with the critical plugin off.

Additionally, the next time you get this error please show a Screenshot of the console error sequence (f8) instead of only the simple error screen. That will give more info for bughunting.

Went into the console and this is what it said.
Spoiler
ConsoleError.PNG
I also tried the plugin in a blank project and it worked perfectly fine (With YEP_CoreUpdate, of course).
It seems to have something to do with SRD's Super Tools Engine and the ExitButton plugin (I think).

EDIT: It's the Super Tools Engine that's causing the problem. I turn it off and it works fine. I don't know why the ExitButton is listed on the console, as having it on doesn't prevent the game from working.
The cause is known, now I need to figure out how to fix it without getting rid of the STE, if possible.
I had to ditch the Super Tools Engine too, it was causing weird random issues, memory leaks and crashes occasionally too. Until SRD decides to fix it (probably not), I got rid of it and found alternatives.
I'm glad you found the disagreeing plugins. Chasing down plugin incompatibilities is a chore at times.
I had to ditch the Super Tools Engine too, it was causing weird random issues, memory leaks and crashes occasionally too. Until SRD decides to fix it (probably not), I got rid of it and found alternatives.
That's a shame. Could you tell me what alternatives you used?

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-core-updates-and-desktop-optimization-error.95904/