How the Editor Ressource trimer work?

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
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
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,714
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,402
Reaction score
4,969
First Language
English
Primarily Uses
RMMZ
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).
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,714
First Language
English
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top