MVStripper - remove unused assets from your MV project

Discussion in 'Useful Development Tools' started by Ultima2876, Oct 28, 2015.

  1. Liak

    Liak Veteran Veteran

    Messages:
    1,789
    Likes Received:
    269
    Location:
    Germany
    First Language:
    German
    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?
     
    #81
    Marquise* and Ultima2876 like this.
  2. Ultima2876

    Ultima2876 Veteran Veteran

    Messages:
    185
    Likes Received:
    231
    Location:
    UK
    First Language:
    English


    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!
     
    #82
    Danku, Marquise* and Liak like this.
  3. Liak

    Liak Veteran Veteran

    Messages:
    1,789
    Likes Received:
    269
    Location:
    Germany
    First Language:
    German
    Thanks a lot! :)
     
    #83
    Marquise* likes this.
  4. Marquise*

    Marquise* Veteran Veteran

    Messages:
    4,612
    Likes Received:
    7,957
    First Language:
    French-Canadian
    Seems that sometimes the opposites complete well a very good idea.  ;)
     
    #84
  5. XGuarden

    XGuarden Veteran Veteran

    Messages:
    419
    Likes Received:
    12
    First Language:
    French
    thanks
     
    #85
  6. JRibbons

    JRibbons Veteran Veteran

    Messages:
    67
    Likes Received:
    45
    Location:
    Australia
    First Language:
    English
    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. 
     
    #86
  7. The MM

    The MM Villager Member

    Messages:
    21
    Likes Received:
    4
    First Language:
    French
    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: Sep 16, 2016
    #87
    Marquise* likes this.
  8. Ultima2876

    Ultima2876 Veteran Veteran

    Messages:
    185
    Likes Received:
    231
    Location:
    UK
    First Language:
    English


    Great to hear it! :)
     
    #88
  9. Danku

    Danku Villager Member

    Messages:
    8
    Likes Received:
    1
    First Language:
    Italian
    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: Oct 3, 2016
    #89
  10. Marquise*

    Marquise* Veteran Veteran

    Messages:
    4,612
    Likes Received:
    7,957
    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*
     
    #90
  11. Ultima2876

    Ultima2876 Veteran Veteran

    Messages:
    185
    Likes Received:
    231
    Location:
    UK
    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.
     
    #91
    Val likes this.
  12. Val

    Val Veteran Veteran

    Messages:
    275
    Likes Received:
    162
    First Language:
    Français
    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!
     
    #92
    Marquise* likes this.
  13. Shikuroshi

    Shikuroshi Artist Member

    Messages:
    29
    Likes Received:
    1
    First Language:
    English
    This is pretty cool and helpful! I'll be giving it a test run when I release my demo. c: Thanks!
     
    #93
  14. JarvisTube

    JarvisTube Villager Member

    Messages:
    18
    Likes Received:
    0
    First Language:
    English
    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:
     
    #94
  15. Rdizz

    Rdizz Villager Member

    Messages:
    22
    Likes Received:
    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
     
    #95
    Marquise* likes this.
  16. Ultima2876

    Ultima2876 Veteran Veteran

    Messages:
    185
    Likes Received:
    231
    Location:
    UK
    First Language:
    English
    Give it a try - it hasn't really been maintained, but afaik it should still work.
     
    #96
  17. ElieTaping

    ElieTaping Zzz... Sleep Sleep Sleep~ Veteran

    Messages:
    79
    Likes Received:
    79
    First Language:
    English
    Primarily Uses:
    N/A
    This is very useful! Good job man, really need this.
     
    #97
  18. Aqaarteaste

    Aqaarteaste Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV

    ------------------------------------------------------------------------------
    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!!!! :)
     
    #98
  19. The007who

    The007who Call me double 0s Veteran

    Messages:
    119
    Likes Received:
    80
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    Hey!
    Quick question: Is there a version of this for VX ACE?
    Thank you :)
     
    #99
  20. Ultima2876

    Ultima2876 Veteran Veteran

    Messages:
    185
    Likes Received:
    231
    Location:
    UK
    First Language:
    English
    Great idea! Unfortunately not, though. Maybe something someone else can do? :)
     

Share This Page