Reasons game may freeze during battle?

Hi there,

Recently my game has started to freeze on the battle screen. I'm yet to narrow down if this is happening on one enemy in particular, but I had a few general questions to help me hone in on what might be going on. I'm not using many battle-related plugins, but one I am using is Ellye's ATB. I've done some reading though - and I haven't run into anything that would suggest that this alone will freeze the game. The rest of the battle-related plugins are all Yanfly, which shouldn't have any compatibility issues with Ellye's. The freezing itself actually seems to be occurring when NOTHING is going on in the battle - both party members and enemies alike just standing around waiting for their ATB gauges to fill.

- What are some general problem solving methods for this kind of thing? What are some common hitches in battle that could cause this?

- Could any parallel process or common event occuring on the MAP in which the battle takes place have any effect on a battle itself?

- My encounters are on-map encounters, meaning that all battles occur within an event. What are some danger areas in here that could cause a battle to freeze? I'm yet to determine if this happens in troop testing, or if it only happens in-game.

If you asked me what change was made recently to start this freezing - well, nothing. I've made a few basic skills with some Yanfly action battle sequences (which seem to be working fine) and I only have a scope of about three or four enemies at this point in development. I have added the Yanfly Battle-AI plugin and set some prioties in the note tags... but not sure if this could be related.

Anyway, that's about all the information I can think of to share that may be relevant. Please let me know your thoughts.

Thank you!
Disable all of your battle-related plugins, play. Does it freeze? No? Then it's likely a plugin.

Enable them again, one at a time, saving and playing after each one. When you get the freeze happening, it's likely to be caused by the last one that was enabled.

If they freeze while the ATB is being refilled, then it sounds like a likely candidate. So you could disable just your ATB plugin to start with and test with it disabled. If you can confirm that it doesn't happen when that plugin is disabled, but it does happen when the plugin is re-enabled, then you've got your culprit right there.

Maps and battles are completely different scenes, unless you've got a plugin that changes how that's handled. In other words, no common events or map events will affect anything that happens in battle, because they are completely unrelated behind-the-scenes.
You need to do what shaz said and narrow down the culprit but guessing would be the Enemy AI. I've read that some people's AntiVirus will stop it from working.
Thanks Shaz!

You need to do what shaz said and narrow down the culprit but guessing would be the Enemy AI. I've read that some people's AntiVirus will stop it from working.

Interesting - I wonder if I need to "allow exception" or whatever inside my anti-virus?
Really? Antivirus has interfered with a particular plugin? I have my doubts about that one. I would expect it would affect the whole game, or not at all. Unless there's something in that plugin that, when compiled, triggers it.

@thepsyche - just try and figure out what's causing it. There's no point mucking around with anti-virus if you have no idea whether that has anything to do with it. It's like being blindfolded and spun around, then walking in any old direction, thinking "maybe if I do this I'll reach the door on the first go" - not going to work. Do it in a methodical, structured way, rather than guessing and hoping.
Of course, I haven't dabbled with that yet. Interestingly enough - I have turned off some SRD Plugins (SuperTools and HUD Maker) that I had running during play testing, and now I'm not experiencing any freezing. I've only been playing for half an hour, so time will tell - but so far, so good. Usually it would have froze by now.
@Shaz, hey I read it awhile back don't know the truth to it, "they can't put anything on the internet that is not true." Lol

@thepsyche narrow it down one by one and find your culprit, many plugins are incompatible from developer to developer.

Original thread: https://forums.rpgmakerweb.com/threads/reasons-game-may-freeze-during-battle.84990/