How the Editor Ressource trimer work?

Hi I wanted to ask about the options to remove unused material when deploying I was curious does it's actually decide wich things is not used in game? 


like I mean does this method : 


Scene_Boot.loadSystemImages = function() {
ImageManager.loadSystem('IconSet');
ImageManager.loadSystem('Balloon');
ImageManager.loadSystem('Shadow1');
ImageManager.loadSystem('Shadow2');
ImageManager.loadSystem('Damage');
ImageManager.loadSystem('States');
ImageManager.loadSystem('Weapons1');
ImageManager.loadSystem('Weapons2');
ImageManager.loadSystem('Weapons3');
ImageManager.loadSystem('ButtonSet');
};


decide wich "system" Images are not remove?


or this decide inside the editor?


I'm unsure and want to know because I wanted to use the Scene_Boot for serve to "preserve" the Picture I don't want to use etc


thanks for your further answer
No.  It would be hardcoded to include those.  But anything else, it would look through your database and your maps and your events to see what resources you've used, and only include them if they're used by something, somewhere in the game.  This is why resources used by plugins but not listed in the plugins as being required (you know that line you can add to say an image or audio is used by the plugin?) can still be included just by putting them into an event on a map that never gets visited.


If you add your resource to the comments in your plugin, in the format specified in the help file, it will be kept with the project when you check the option to exclude unused files.
Yeah, I was just thinking along the lines of Shaz... Except I was thinking that if you're not using these files directly within a plugin, you could make a dummy one that does nothing but contains the comment style that makes MV retain graphics for plugin use (I forgot what it was but I do remember it's in the manual).
I see...the problem are still the fact of the trimer to not being able to detect a "array" of sprite or blob projects.


I do recall shaz doing something like this but I don't recal what was the options shaz made for it or the link for it :/


This kinda complicate the job when you want to Input "layers" or offers to the player to actually make multiples layers of sprite.
I did it in my (now not-working) UpperAutotiles plugin.


It has a commented section with lines that clearly mark the begin and end, and it builds a list of the resources (in your case, if you've already got them in an array you've just got to go through the array), puts the names in the right format, including the folder, and inserts it between the begin/end lines.

Original thread: https://forums.rpgmakerweb.com/threads/how-the-editor-ressource-trimer-work.71342/