Urgent! Raw Yanfly script corrupting battles.

I felt that this needed its own thread, since this is technically an entirely other poblem.

I made a post concerning a Yanfly battle engine feature a while ago that has not been solved yet, but in the process of trying to fix that issue another one came up. Taking out the extra scripts we tried to use, and replacing the edited Yanfly battle engine script with its original version, still comes up with this error message when trying to enter a battle:

error_zps5e348b80.png


I even went to a back-up file that I had of the game and pasted in the battle engine script and a few other scripts that I had prior to the ones I tried using to fix the problem in my other thread, but it still had the same error.

I am using a number of different scripts. A combination of a couple of Victor Engine ones and Yanfly, but I have never had a problem combining these specific ones till now. And the other ones that I have are simple user scripts that were made for tiny stuff, like a line break fix and a region event ID thing Shaz made for me.

I have a .zip file of the game ready for anyone to look into it.

Please help, I am completely at a loss :c
It has to be something you have done in the project, because Yanfly's battle engine hasn't been changed in a long time and is probably one of the most used battle engines in the community.

Try to make the scripts work with their originals (no edits) in a new project, and check if you still get the error, and link us to the script's you're using.

If you edited a lot in those scripts, please also link the project file for us to get the edits.
What's Window_MACIM_Help.


I'm not sure if that is a yanfly window.
please tell me your not using the continue option to test play!?
Should it be @actor_window= instead of actor_window= ? That would depend on what class that line belongs to, and where actor_window is defined.
please tell me your not using the continue option to test play!?

 
I'm choosing New Game.

What's Window_MACIM_Help.
I'm not sure if that is a yanfly window.
When it closes out of the playtest window and I go into scripts, it shows me this part of Yanfly's script:

Code:
  #--------------------------------------------------------------------------  # new method: set_help_window  #--------------------------------------------------------------------------  def set_help_window    @help_window.actor_window = @actor_window    @help_window.enemy_window = @enemy_window  end
That still doesn't tell us what Window_MACIM_Help is. Use Ctrl+Shift+F in the scripts section, look for class Window_MACIM_Help, and let us know what script it's from. The issue is almost guaranteed to be with it and not yanfly or at least a compatibility issue between it and YF.
That still doesn't tell us what Window_MACIM_Help is. Use Ctrl+Shift+F in the scripts section, look for class Window_MACIM_Help, and let us know what script it's from. The issue is almost guaranteed to be with it and not yanfly or at least a compatibility issue between it and YF.
Oh! It's on line 653 of Modern Algebra's customizable item menu! That's so weird. They have nothing to do with each other, and I have never had an issue with these two scripts! D:

For some reason I can't find that script on the internet anymore, so I just put the script into Pastebin here.
Okay, that explains MACIM (Modern Algebra's Custom Item Menu). So, I'm pretty sure it is an incompatibility between those two. 

This could help with THAT specific portion, look for that Window_MACIM_Help class and add this line:

attr_accessor :actor_window, :enemy_windowStill this doesn't warranties the proper behaviour of the script neither stopping it from spitting any other errors.
So, try that, and let's see what else it throws to us (?),

Orochii Zouveleki
It is a compatibility problem between the two scripts. The YF battle system makes a new help window, Window_BattleHelp, for use in the battle screen. MACIM, which I'm not familiar with in the least, is making a modified standard help window to show more lines or an image? if I'm quickly skimming the comments correctly. It's hard to say without studying the scripts in depth what the best solution for compatibility might be. You could try placing the YF script below MACIM and see if it helps. That should at least make the help window in the battle screen a BattleHelp window again.
Wow, that actually helped!

...But now the free-turn battle script doesn't work. Man, this has never happened before...

My friend has a copy of the game I sent to her, which is more recent then my last back-up, so I think I'm just going to work from that :c And try not to mess with any more scripts that I already have in place.

Thank you though!
Free turn needs to be under the standard YF battle system as it builds and expands on it. Script order can be really important, and there's no catch-all answer without looking at the scripts individually.

Original thread: https://forums.rpgmakerweb.com/threads/urgent-raw-yanfly-script-corrupting-battles.19212/