Problem with "Exclude unused resources"

I have problems in the compile proyect, using checkbox "exclude unused resources"


some resources that my game needs are not in the final version.


some like:


img/animations/light4.png 


img/animations/StateDown1.png


I think that the promblem come of the Scripts. But I dont know.
If it's materials that only used in plugins and not visible in the editor database or map events, you need to add parameters in plugins so they won't get removed.
I see, anyway, I was not talking about own scripts, I am using some scripts Yanflee for combat.


but I understand what you say.


Thank you so much
you need to add parameters in plugins so they won't get removed

And how is this done? I didn't find anything about it on the helpfiles.
And how is this done? I didn't find anything about it on the helpfiles.



The section here ?

@Archeia thanks

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-exclude-unused-resources.58270/