Z-fighting Troops

Hello!

I encountered some weird issue with certain troops. While fighting certain troops, my two main characters would z-fight (flickering textures).

After a lot of testing back and forth, I realized this happened when:

1: I used a summoning skill and the summon disappeared (died, or time out) (I used SRD_SummonCore)
2: Only with certain troops. It did not happen in any other maps, nor with other troops, including troops with multiple enemies

As it turns out, the solution was to simply remove certain troops completely, or change which enemies appear in these troops, as certain enemies wouldn't work together without causing this glitch for some reason.

So I know what caused this issue, but I don't know why. This is why I'm posting this. Does anyone know what could be causing this? I'm curious. It might be good to know for the future.

(Other mobs have already been killed in this picture. This glitch did not appear anymore when I fought this enemy alone without other mobs in the troop)
da2336244630e98bcb923b17c0c7a0f1.jpg


Plugins used:

1.png

2.png

3.png
I suggest you list (or share screenshots of) all the plugins you're using, in the order they appear in the Plugin Manager.
I'm honestly not too sure exactly why, but...if I had to take a guess, I would think it has to do with the plugin. Sometimes plugins have coding in it that conflict with something you try to use it for. It's a bit weird, but it's happened to me before, and those are always the kind of problems I encounter where I don't know why they happened.
I suggest you list (or share screenshots of) all the plugins you're using, in the order they appear in the Plugin Manager.
Updated my post with pics of plugins
but I don't know why.
There is a generell problem with summoning that can result in almost any effect, from just some skills not working correctly or graphic glitches to outright crashes in the game.

If a plugin adds data to battlers (enemy or actor), then that data needs to be initialised.
A very high number of battleplugins assume that no summoning exists, and only assign that data to the battlers that exist when the entire battlescreen is initialised.

Any summoning has to create that additional data when the new battler (no matter if enemy or actor) is summoned however, and that usually requires that the programmer of the summoning plugin knows what changes your other battle-plugins do to the battlers.
That is why there are different summoning plugins and each is usually only compatible to one given set of battleplugins.

adding other plugins means that some data is either randomized or zeroed on summoning, and that can cause any form of problems depending on what data that is.
There is a generell problem with summoning that can result in almost any effect, from just some skills not working correctly or graphic glitches to outright crashes in the game.

If a plugin adds data to battlers (enemy or actor), then that data needs to be initialised.
A very high number of battleplugins assume that no summoning exists, and only assign that data to the battlers that exist when the entire battlescreen is initialised.

Any summoning has to create that additional data when the new battler (no matter if enemy or actor) is summoned however, and that usually requires that the programmer of the summoning plugin knows what changes your other battle-plugins do to the battlers.
That is why there are different summoning plugins and each is usually only compatible to one given set of battleplugins.

adding other plugins means that some data is either randomized or zeroed on summoning, and that can cause any form of problems depending on what data that is.

Thank you. I understand why this happened then.
This is good for me to know if I encounter issues further down the line.

Appreciate your explanation :LZSsmile:
I notice your Yanfly plugins are not in the recommended order, which can potentially cause problems. The recommended order is listed here:
You can drag+drop to rearrange the list in the Plugin Manager. Remember to save to apply Plugin Manager changes before testing~

You may also want to check any "optimisation/performance" plugins/settings that you're using, e.g. Irina Performance Upgrade (and maybe YEP Core Engine). "Performance" is typically boosted by skipping certain processes, which means guessing which processes can be skipped. Like Andar says: it's not feasible to account for any possible plugin.
I notice your Yanfly plugins are not in the recommended order, which can potentially cause problems. The recommended order is listed here:
You can drag+drop to rearrange the list in the Plugin Manager. Remember to save to apply Plugin Manager changes before testing~

You may also want to check any "optimisation/performance" plugins/settings that you're using, e.g. Irina Performance Upgrade (and maybe YEP Core Engine). "Performance" is typically boosted by skipping certain processes, which means guessing which processes can be skipped. Like Andar says: it's not feasible to account for any possible plugin.
Ah, that's a good tip, thanks. I will check out the recommended order, see if that helps in any way. Even if it doesn't help with this specifically, I'm sure it's a good idea to arrange them correctly.

And the performance thing, yeah I already experienced that actually. Had to tweak some settings with the Irina performance plugin since it caused monster book plugin to crash earlier 😳

Original thread: https://forums.rpgmakerweb.com/threads/z-fighting-troops.139639/