Compatibility Issue: Yanfly Sideview and Yami CATB [SOLVED]

Hey guys, should be an easy fix but I'm not super great at scripting in rpgvxa.

In-battle, the character moves forward when it's their turn, and they return to their initial position when their turn ends. Even after the last enemy is defeated, they're supposed to return to their default position.

However, after adding in Yami's CATB system, the character no longer returns to their initial position when the battle ends. This results in an instant game crash after getting through the "EXP gained" dialogue.

error1_by_mucka33-db6wud0.png


Note that "Eric" is not in line with the other party members like he should be.

error2_by_mucka33-db6wucu.png

This is the error message and the script segment it leads me to.

Yanfly's Visual Battlers Script: https://yanflychannel.wordpress.com/rmvxa/battle-scripts/visual-battlers/
Yami's Classical ATB Script: https://raw.githubusercontent.com/suppayami/rmvxa-collection/master/old-ace-scripts/catb.txt

Any ideas on how to fix this? I would really like to use active-time battling in this game.
Thanks guys!
I just tried those scripts in a new game and it works fine.

one.png

All characters moved back to the start.

two.png

Can you make a demo of your game for us to look at? What are all of the scripts you have in there?
Tested out a new project myself and you're right, it does work fine. After deleting the scripts and re-pasting them into my original project, battles now work as intended. Strange. Thank you so much for your help!

Original thread: https://forums.rpgmakerweb.com/threads/compatibility-issue-yanfly-sideview-and-yami-catb-solved.77774/