MZ Yanfly Battle core and SRPG Gear causing error "SceneManager._scene.battleLayoutStyle is not a function"

1709185515230.png

As mentioned in the title, I am attempting to run Yanfly's Challenge System (https://visustellamz.itch.io/challenge-system) which requires Yanfly's Battle Core, which is causing problems with SRPG Gear. (https://www.srpgmaker.com) When playtesting, the game stops with this TypeError every time until I disable either SRPG Core or Yanfly's Battle Core and related plugins. I want to use SRPG Gear's combat system while also running Yanfly's Challenge System for replay value. All plugins are up-to-date and built for RMMZ. Is there any way to make them get along, or am I going to have to scrap one of them?
Just as a quick note - all of the plugins you're referencing are from VIsuStella's line, not Yanfly's. You can see that in the name of the plugins and the URL you linked to, etc.

That's significant for two reasons:
- Yanfly's plugins are for MV and are unlikely to be compatible with MZ plugins that significantly alter the engine

- VisuStella's plugins, unlike Yanfly's, are obfuscated. That means other people can't read or edit the code

(well, reason three - different authors/plugin names are different authors/plugin names.)

You can try dragging the plugins in your plugin manager to change which is below the other, but aside from that there's probably little you can do - the SRPG plugin heavily modifies MZ's engine, and it's unlikely VisuStella will make a compatibility patch.
Just as a quick note - all of the plugins you're referencing are from VIsuStella's line, not Yanfly's. You can see that in the name of the plugins and the URL you linked to, etc.

That's significant for two reasons:
- Yanfly's plugins are for MV and are unlikely to be compatible with MZ plugins that significantly alter the engine

- VisuStella's plugins, unlike Yanfly's, are obfuscated. That means other people can't read or edit the code

(well, reason three - different authors/plugin names are different authors/plugin names.)

You can try dragging the plugins in your plugin manager to change which is below the other, but aside from that there's probably little you can do - the SRPG plugin heavily modifies MZ's engine, and it's unlikely VisuStella will make a compatibility patch.
Thank you for the reply, and yeah thats my bad for calling it yanfly lol. I've decided to scrap visustella's challenge plugin and now it's (mostly) functional. Won't be needing any more help on this particular issue but I will be making a different post about less game-crashing bugs visustella and srpgcore have together. I'm hoping the fixes are simple enough to edit in srpgcore's code. 👍

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-core-and-srpg-gear-causing-error-scenemanager-_scene-battlelayoutstyle-is-not-a-function.166293/