@requiredAssets bug with Exclude Unused Assets deployment option

User: Shaz
Bug: @requiredAssets bug - deployment includes all assets but the last one listed
How to Replicate the Bug:
  • Start a brand new project
  • Save the following as a new plugin and enable it in the plugin manager:
    Code:
    // Assets Test
    // by Shaz
    
    /*:
     * @plugindesc Highlights deployment issue with Exclude Unused Resources
     * @author Shaz
     *
     * @requiredAssets img/characters/Damage1
     * @requiredAssets img/characters/Damage2
     * @requiredAssets img/characters/Damage3
     * @requiredAssets img/characters/Nature
    */
  • Ensure the Damage1, Damage2, Damage3 and Nature character sheets are not used anywhere in your project
  • Deploy the project, checking the Exclude Unused Assets box
  • Check the output, in the www/img/characters folder - only Damage1, Damage2 and Damage3 will be present. Nature (the last resource listed in the plugin) will be missing
  • Overwrite the plugin with the following code:
    Code:
    // Assets Test
    // by Shaz
    
    /*:
     * @plugindesc Highlights deployment issue with Exclude Unused Resources
     * @author Shaz
     *
     * @requiredAssets img/characters/Damage1
     * @requiredAssets img/characters/Damage2
     * @requiredAssets img/characters/Damage3
     * @requiredAssets img/characters/Nature
     * @requiredAssets
    */
  • Deploy the project, checking the Exclude Unused Assets box
  • Check the output, in the www/img/characters folder there will now be 4 files - Nature will be there this time, because I've added an extra line and it's no longer the last in the list
Thank you for your detailed report! I followed your steps. However, I cannot reproduce it at all. I was trying on Steam Release 1.4.1.

  • Check the output, in the www/img/characters folder - only Damage1, Damage2 and Damage3 will be present. Nature (the last resource listed in the plugin) will be missing
At this step, Damage{1,2,3} and Nature are all present. Nature won't be missing. I also asked some friends of mine trying to reproduce your steps but we just got no luck - no issues at all.

If possible, could you please upload a sample project which produces wrong results with Exclude Unused Resources?
Thanks for your response @orzfly

I don't have the latest version - I'm still using the previous one. I'll create a new project on the weekend and see if I can reproduce it. If I can, I'll download the 1.4.1 update and try it in another new project. Will let you know what I find.

Original thread: https://forums.rpgmakerweb.com/threads/requiredassets-bug-with-exclude-unused-assets-deployment-option.77204/