User: Shaz
Bug: @requiredAssets bug - deployment includes all assets but the last one listed
How to Replicate the Bug:
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