Need Help - Failed to load: img/animation

I described how to check which skill the enemy uses in order for you to give us a screenshot of that skill, to check if it may contain anything that causes this...
I'm sorry, but I must have missed how you described how to do it. I have attached the attack skill, if this is what you're referring to? Just in case, I have also attached the code that I have for it, which was listed on a youtube video ( I can't remember which one). If I have missed something, please feel free to point me in the right direction of what you're asking for specifically.


Code:
Skill #1 will be used when you select
the Attack command.

<setup action>
display action
immortal: targets, true
</setup action>
<target action>
if user.attackMotion() !== 'missile'
 move user: targets, front, 20
else
perform start
end
zoom: 125%, 30
camera screen: target, front center, 30
camera focus: target, front center, 30
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
</target action>
You said this is happening when you deploy your game, not during playtests.

When you deploy, are you checking the box to Exclude Unused Files?

If you do that, it will not copy files that are referenced by plugins instead of your database.

For example, the Yanfly Battle Core defines animations to be used when you activate skills in combat, depending on the Hit type of the skill.

Because this is not a setting in your database, if you Exclude Unused Files it won't copy those animations in, but the game will still try to use it because of the plugin's code.

I'd bet the Shout animation (#37 in the database, references Howl.png) or Bodyslam is referenced in a plugin parameter or action sequence or notetag, so it's trying to be used but not actually copied into your deployment.
When you deploy, are you checking the box to Exclude Unused Files?
Yes, to save file size I checked to Exclude Unused Files.
If you do that, it will not copy files that are referenced by plugins instead of your database.

For example, the Yanfly Battle Core defines animations to be used when you activate skills in combat, depending on the Hit type of the skill.

Because this is not a setting in your database, if you Exclude Unused Files it won't copy those animations in, but the game will still try to use it because of the plugin's code.

I'd bet the Shout animation (#37 in the database, references Howl.png) or Bodyslam is referenced in a plugin parameter or action sequence or notetag, so it's trying to be used but not actually copied into your deployment.
I just checked, and you were right. Both of those animations use Howl.png. You're a genius, my friend.

So, now do I take go through the plugin to comment it out, and be able to restore it later for use? Or do I include unused files with the demo and make it a much larger game?
So, now do I take go through the plugin to comment it out,
wrong way to handle that.

you either change the animation ID in the plugin settings, or you use a fake skill with that animation to tell the engine that the files are needed.

you NEVER comment out part of any code in any file, not unless you are a programmer and know exactly what you're doing (and in that case you wouldn't ask what to do)
What most people do is either:
- don't check the Exclude box. The size of an RPG Maker game compared to any typical modern video game is so small that the difference in size from all of the basic sound/image files being included really is negligible

or

- don't check the Exclude box then manually delete files they're certain aren't used by their game after export.
What most people do is either:
- don't check the Exclude box. The size of an RPG Maker game compared to any typical modern video game is so small that the difference in size from all of the basic sound/image files being included really is negligible
This is the solution I went with, and it worked perfectly. Thank you for all your help. I really don't know what I would do without you all.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-failed-to-load-img-animation.154388/