Yanfly Instant Cast - Crash

Hi everyone,

I hope someone can help me or post this on the patreon site of Yanfly as a bug so he can fix it:

The crash happens 'randomly' when the bugs align. Please, I would really like to keep using it the way I have set it up. It seems to be a bug related to the end phase of multiple of his plugins shown in the pictures in the spoiler. Please help!

Spoiler: Yanfly instant cast crash
Main Console.png

1st error line.png

2nd error line.png

3rd error line.png

4th error line.png

5th error line.png

6th error line.png

7th error line.png

8th error line.png

9th error line.png

10th error line.png
It looks like you are using the Yanfly ATB system.
Unfortunately, they do not support this plugin anymore.
https://forums.rpgmakerweb.com/inde...fly-engine-plugins.48860/page-232#post-626087
@Dutch Power Creations Could you put those screenshots in a spoiler. Scrolling down the page on a PC is lengthy enough, for anyone accessing this on their phone it is a nightmare!

By one of those extraordinary coincidences, about 20 minutes after you posted this, I posted a thread with a problem with the Ace version of this script. It may - or equally, may not - have a similar root problem. In case you want to keep an eye on it to see if it does shed even a tiny amount of light on your problem, the thread is here.
@Aloe Guvner As far as my idea of this problem goes it's a this.endaction command that is in multiple plugins that conflict with each other. And not something that has to do with the ATB system alone as you can see in the pictures.

@Kes They are in a spoiler.

So I think this is a this.endaction confliction between multiple systems. Would it be an idea to change all the 'endaction' words into some other word (or change 'this' into another word) to fix this so it doesn't call the 'endaction' command of other plugins? I'm a noob at coding stuff so I'm just spitting idea's here.
@Dutch Power Creations I agree that the issue could be a conflict with multiple plugins, however, if you read the link I shared, there is a statement from Yanfly:
That said, both ATB and CTB are no longer supported by Yanfly, so if you're using them, please remove them from the project used for the bug report.
If you can reproduce the bug without ATB or CTB then the bug report could be submitted to Yanfly.
I will first wait to see if someone can give me a solution on this forum. If not I might look into it and try to break it without the ATB.
I'm not familiar with Yanfly's ATB plugin, but I notice there's a notetag mentioned to set the turn gauge after action use: <After ATB: x%>. Maybe you could use this (replacing x with 100) instead of Instant Cast?
@caethyril

A workaround! Great thinking, I was sticking my head so deep into the instant cast plugin I totally didn't think of any way to use the ATB plugin differently to get the same effect. Now I need to check if it kills the bug by playing a lot 🙂 Thanks, I will stress test and see if it still happens in the coming days and report back.
Good luck!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-instant-cast-crash.92021/