MVStripper - remove unused assets from your MV project

Liak

Veteran
Veteran
Joined
Mar 13, 2012
Messages
1,789
Reaction score
270
First Language
German
Primarily Uses
Is there any chance you could write a programm that does the opposite? :)  I would like to check if all resources referenced are there. Sometimes you change resources, move them around, rename them and so on, and you forget to adjust a reference or two to them. MV then throws you an error when playtesting that this and that isn't there, but maybe this can be avoided?
 

Ultima2876

Veteran
Veteran
Joined
Oct 25, 2015
Messages
185
Reaction score
233
First Language
English
Is there any chance you could write a programm that does the opposite? :)  I would like to check if all resources referenced are there. Sometimes you change resources, move them around, rename them and so on, and you forget to adjust a reference or two to them. MV then throws you an error when playtesting that this and that isn't there, but maybe this can be avoided?


That's a great idea!


Unfortunately I'm very pressed for time at the moment, which is why there haven't been any updates to this or my other program (MVFU) recently :(


I'll see if I can find time to modify MVStripper to do something like that. Half of the work is done, in that it builds a list of files referenced from your project - I'd just need to make it then run a file existence check for each ref. Will PM you to let you know if I find time to do this!


That sounds like something MV should really do when opening a project!
 

Marquise*

Veteran
Veteran
Joined
Jul 9, 2014
Messages
4,866
Reaction score
8,184
First Language
French-Canadian
Seems that sometimes the opposites complete well a very good idea.  ;)
 

JRibbons

Veteran
Veteran
Joined
Aug 16, 2015
Messages
67
Reaction score
45
First Language
English
Primarily Uses
This is so great, thank you Ultima!


Word of warning for those deploying to Mac: this program strips the folder img/overlays when deploying for Mac, but not PC. 


So it was said earlier up this thread (but without the Mac-specific direction), make sure you re-copy the img/overlay folder manually into the newly deployed game, or you'll get the warning, 'file not found' when playing the game. 
 

The MM

Villager
Member
Joined
Feb 28, 2016
Messages
21
Reaction score
4
First Language
French
Primarily Uses
All the functionality of the "removed unused files" from the deployment process with none of the downsides (plugin-related woes)? Sign me up.


This thing has been tremendously useful. I'll be re-releasing my (super short) game after putting it through this baby. Thumbs up! :)
 
Last edited by a moderator:

Ultima2876

Veteran
Veteran
Joined
Oct 25, 2015
Messages
185
Reaction score
233
First Language
English
All the functionality of the "removed unused files" from the deployment process with none of the downsides (plugin-related woes)? Sign me up.


This thing has been tremendously useful. I'll be re-releasing my (super short) game after putting it through this baby. Thumbs up! :)


Great to hear it! :)
 

Danku

Villager
Member
Joined
Oct 3, 2016
Messages
8
Reaction score
1
First Language
Italian
Primarily Uses
It gives me an error of missing animations when i export it and make the apk.. when i run the apk i cannot enter any battle whitout having animation missing problem, how do i solve it? Olso it continuosly gives me this kind of errors to:

Immagine.png
 
Last edited by a moderator:

Marquise*

Veteran
Veteran
Joined
Jul 9, 2014
Messages
4,866
Reaction score
8,184
First Language
French-Canadian
I was to type... Danky, your picture is not loading; I see a black screen on my side.  Then realized it was a MV screenshot *facepalm*
 

Ultima2876

Veteran
Veteran
Joined
Oct 25, 2015
Messages
185
Reaction score
233
First Language
English
The tool works by stripping anything that is not referenced in the project database. This can be problematic if your animations are e.g only referenced in scripts. In this case, make sure to add any of those animations to your database.


If all else fails, make a note of which files are being erroneously 'stripped' out, copy them into a separate folder structure yourself and then paste that back over (re-merge the files) after running MVStripper. This will restore the required files.
 
  • Like
Reactions: Val

Val

Veteran
Veteran
Joined
Oct 12, 2015
Messages
281
Reaction score
168
First Language
Français
Primarily Uses
The tool works by stripping anything that is not referenced in the project database. This can be problematic if your animations are e.g only referenced in scripts. In this case, make sure to add any of those animations to your database.


If all else fails, make a note of which files are being erroneously 'stripped' out, copy them into a separate folder structure yourself and then paste that back over (re-merge the files) after running MVStripper. This will restore the required files.
Question? Do you think it would be possible to add the check an animation or image is not referenced in Notetag or in script & plugin of the project? 


This would be really awesome :)


Thanks in advance!
 

Shikuroshi

Artist
Member
Joined
Mar 14, 2012
Messages
29
Reaction score
1
First Language
English
Primarily Uses
This is pretty cool and helpful! I'll be giving it a test run when I release my demo. c: Thanks!
 

JarvisTube

Villager
Member
Joined
Jun 25, 2016
Messages
18
Reaction score
0
First Language
English
Primarily Uses
Hey I know this is old but how do you use it?


If i select my project folder, it says it is not an MV Project?


:unsure:
 

Rdizz

Villager
Member
Joined
Mar 26, 2017
Messages
22
Reaction score
2
First Language
English
Primarily Uses
RMMV
Is this still active? and up to date?

My whole problem right now is a 2gb game that should only be 500 mb lol
 

Ultima2876

Veteran
Veteran
Joined
Oct 25, 2015
Messages
185
Reaction score
233
First Language
English
Is this still active? and up to date?

My whole problem right now is a 2gb game that should only be 500 mb lol
Give it a try - it hasn't really been maintained, but afaik it should still work.
 

ElieTaping

Zzz... Sleep Sleep Sleep~
Veteran
Joined
Jun 13, 2016
Messages
79
Reaction score
79
First Language
English
Primarily Uses
N/A
This is very useful! Good job man, really need this.
 

Aqaarteaste

Warper
Member
Joined
Jun 22, 2017
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hey all,

I've made a quick'n'dirty tool to strip unused files from MV projects to get the filesize down.

http://www.kickbackgames.com/public/files/MVStripper-Win.zip (Windows)

http://www.kickbackgames.com/public/files/MVStripper-OSX.zip (Mac)

It's just a simple nwjs app. If you open the package.nw you can check out the code, improve it or whatever. I'll add a license later on if I find time -- probably MIT or BSD.

It errs on the side of safety, so if a file is referenced from anywhere in your project it is kept. That means that even a barebones project will include over half of the files in the 'RTP' -- but you can get this down yourself by removing unused animations and such from the database. That said, it still helps a lot :p

It brings the filesize of an empty project down from 400mb to around 100mb out of the box, and only takes a few seconds.

Feedback and bug reports are welcomed - please let me know if you use it! Also if you want to thank me, make a donation to http://www.childsplaycharity.org/

EDIT: Updated to fix a bug on Windows version.

------------------------------------------------------------------------------
Hiiii, i find your MVSTRIPPER recently. I have downloaded the file BUT i had a problem. When i put my project file into your software, it says that my file is not a RMMV project... HELP ME PLEASE!!!! :)
 

The007who

Call me double 0s
Veteran
Joined
Oct 11, 2015
Messages
118
Reaction score
78
First Language
Italian
Primarily Uses
RMVXA
Hey!
Quick question: Is there a version of this for VX ACE?
Thank you :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Not going to lie... PIXI Particles make fantastic graphics... But predicting the hitbox of something with a "fixed size" but whose graphics can stick out past that, is quite challenging. :kaoswt:
Would you like a glass of spiders?
Besides my Might and Magic inspired project, I have always wanted to make a Fire Emblem-like game. Time is the culprit... Between life, composing music packs, and working on a game can it be done!? The tactical plugins for MV work quite well based on what I have tested.
Yaaay! My second public script is out and approved! A VX Ace Final Fantasy IX styled Throw Script!

I look forward to all the constructive feedback I get but most importantly I hope everyone who ends up using it enjoys!

Yaaaay! Making scripts is fun lol. :D

Forum statistics

Threads
100,530
Messages
976,883
Members
132,081
Latest member
Kaezyelnatz
Top