Missing files when using "Exclude unused files"

Affected version: 1.3.3 (steam)


When creating windows deployment with "Exclude unused files" option, I end up with output with files missing. Specificly: img/animations/Hit1.png. Re-adding it by hand fixes the problem, but this undermines whole idea of excluding unused files - I end up with unusable package. Grep reveals that `Hit1` is indeed listed on `data/Animations.json`.


Since this affects `www` folder i wager it will affect every other deployment as well.
I don't know if the engine is clever enough to do this, but are the animations that use that file actually used by your skills?  I'm guessing there's a Hit1 animation which is probably assigned to skill 1 - Attack?
Do you have any plugins or other custom coding?
Hmmm ... the Attack skill does NOT use the Hit1 animation by default.  So if you don't have any other skills that use that animation, that might be okay.


Is it actually giving you an error about the file missing?  Can you provide the error details?  Are you able to open the developer tools and show the console messages after deployment?
Is it actually giving you an error about the file missing?  Can you provide the error details?



Yes, i get an error. I managed to narrow it down and work around it  🙂


The problem is right here:

Hmmm ... the Attack skill does NOT use the Hit1 animation by default.



It actually does. However, in database animation is listed as "Normal Attack". It actually seems to use "0001 Hit Physical", which in turn uses Hit1.png.


The problem is - deployment part does not recognize it as used file. Just changing "Normal Attack" to "0001 Hit Physical", or adding any other skill using this animation fixes the issue. This likely affects only early stages of development, since in later stages you'll likely use animations over and over again.


A viable workaround, but it's a bug to be fixed 🙂

Original thread: https://forums.rpgmakerweb.com/threads/missing-files-when-using-exclude-unused-files.70118/