Conditional Branch for System Pictures

Hello guys!
I´m having a big problem with a plugin that sometimes the pictures just disappear!!

This plugin creates buttons on the screen so the player can touch then to play the game on a mobile phone.
BUT! Sometimes, when the game becomes too full of processes to read, the images simply disappear.
This does not happen much, almost never. But when it happens the player simply can not play the game anymore and needs to close without saving progress. And this is very annoying... u.u

So, as I said, the pictures most be in the ''System'' folder to create the buttons.

What I need:

I would like to know if there is some way to detect that:

if the picture "X" are showing:

Do nothing

Else:
Then I reload the pictures using the existing plugin command.

That´s it,
Thank you very much in advance!
Hi there!
I use a lot of pictures in my game too, but this never happen to me.
Did you try raising the CacheLimit? I put to 30 instead of the default 10.
Also, if you using a plugin like that it will help you:
https://forums.rpgmakerweb.com/index.php?threads/game-scene-stabilizer-version-5-4-1.89867/

And this one too. That can have to execcute a common event in the start of every map. So you can put this common event to show the same pictures every map(with the same id for each one).
https://forums.rpgmakerweb.com/index.php?threads/map-start-common-event-plugin.63971/
@Eliaquim hello!
Thank you for your help!! Unfortunately the first plugin didn´t work, the pics keep erasing by themselves :/
The second link don´t solve my problem, because the pictures are disappearing during the game on the map, not in the transitions.

My game is ABS, so all the skills and sprites are massively loaded all the time. So when there are a lot of enemies in the map, and a lot of things happening at the same time, it seems like the plugin crashes and the pictures get erased.

But since this is rarely the case, I'm not worried about finding the problem on the plugin, you know? It seems easier for me xD

I think the best solution for me is a script in the conditional branch to activate the plugin again.

Do you know a script name to put in the conditional branch to identify if the picture is being displayed?

For example, I tried $gameScreen.showPicture(4, "BtnOk", 0, 645,475, 100, 100, 255, 0) but It didn´t work 😅

That´s it.
Thank you again!
I think i make it. "1" is the id of the picture.
fkCjU2K.png


But from what you said, it's another plugin that shows the picture, right?
If that does not work I can try to help you by looking at the plugin code that you use to show the picture. Tell me what it is.

However, there are other alternatives.
1 - You can ease the processing of the game by reducing the size in bytes of your pictures. The tool is online and there is almost no quality reduction. https://tinypng.com/
2 - Increase the cache as I told you, though most mobiles when the cache gets close to 50, they crash.
3 - Another new plugin that helps in performance: https://atelieririna.itch.io/performance-upgrade
4 - The Chaucer plugin has plugin commands that release certain files from the cache, I believe this can help you.
5 - Review the size and number of events on the map. Because if it is at that point, it means that there is really heavy processing ...

Anyway, I'm waiting for you to tell me what plugin you're using that I'll take a look at his code.
@Eliaquim thank you so much bro!

I think i make it. "1" is the id of the picture.
fkCjU2K.png

It dindn´t work :/

The big problem is that this plugin I´m using get the pictures from the System folder, I think this is a problem.


1 - You can ease the processing of the game by reducing the size in bytes of your pictures. The tool is online and there is almost no quality reduction. https://tinypng.com/

This is perfect for me, as the game is mobile, the images were weighing quite a lot xD
I was able to reduce from 50mb to 17mb 😮

2 - Increase the cache as I told you, though most mobiles when the cache gets close to 50, they crash.
Is this done in android studio? I don´t know how to use android studio very well. I just do the basics.

3 - Another new plugin that helps in performance: https://atelieririna.itch.io/performance-upgrade

Awesome plugin! Many mobile phones do not have a nice processing cpu, this will help me a lot!!

4 - The Chaucer plugin has plugin commands that release certain files from the cache, I believe this can help you.

I will try it again, I coudn´t understand it very well.

5 - Review the size and number of events on the map. Because if it is at that point, it means that there is really heavy processing ...

Ok I will take a look, but as I said, the picture issue don´t happen frequently.


Thank you so much for all that information, it will help me a lot!!


Anyway, I'm waiting for you to tell me what plugin you're using that I'll take a look at his code.
I´m using this plugin:
https://galvs-scripts.com/2016/11/29/mv-screen-buttons/

BUT! I find a solution! It´s not the better solution at all, but I can live with it xD

I´m using this plugin http://yanfly.moe/2016/04/01/yep-88-picture-common-events/ to activate the galvs plugin.

When the plugin crashes only the galvs pictures get erased. The others remain. (yes it´s the plugin not the pictures,
I just realized that now.) So when this happen, the player just need to press a button to activate the others pictures again xD

I'm still using the galvs plugin because I can make the buttons react to the touch. That´s all xD
But I am considering not to use the galvs plugin anymore because of this error :/

That´s it!! Thank you very much again for your help!

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-for-system-pictures.106655/