Problem When Outputting Game Without Unused Files

I am having problems playing a game developed in RMMZ. When I am choosing a web deployment with the "Exclude Unused Files" option checked. I am getting the error,
"Failed to load
img/pictures/JoystickBase_Arrows_00.png"

The error is probably being caused by the plugin

PKD_MobileControls_MZ

Can anyone help me solve this problem? I would be greatly obliged for all possible help!
Got it! Sorry for disturbing you guys!!!
How did you solve it?
Probably assets used by plugins. Exclude unused files won't know to reference them.
Having an unused event which loads these assets is an easy way to make sure they are included during this process.
If the asset is used by a plugin, the correct way to make it understood by Exclude Unused Files is one of the following.

Static assets used by the plugin should be declared like this in the plugin's help comment:

Code:
@requiredAssets img/system/Whatever

(I think putting it without the file extension is correct but I'm not 100% sure.)

Or if it's specified in a plugin parameter, the declaration of the parameter needs to look something like this (copied from the official documentation):

Code:
@param ME
@desc The ME name for sample music effect.
@default Organ
@require 1
@dir audio/me/
@type file

The key points are the last three lines. "require" indicates that it should be included when using Exclude Unused Files, and "dir" indicates where the file can be found. This also works with a "type" of "animation" (in which case "dir" is not needed) - in that case it'll automatically include all the images and sounds required by the animation.

There's also support for specifying assets in note tags. It looks basically the same as above, just with "noteParam", "noteRequire", "noteDir", "noteType".

All of the above is in the official documentation – you can choose Help > Contents in the editor, then scroll down to "Documentation" at the bottom and click on "[Exclude Unused Files] Plugin Configuration".
That's a great tip! but for the average user, it would make sense to simply add the asset to an event which won't get called.
Instead of having to track them and their folders, sub folders.. not to mention how files may change duringing the course of development.
I simply added the required files in the output img/pictures directory, its a bypass, not a fix
There's an official plugin released with the engine that lets you add files to lists so that they won't be removed on deployment.

Original thread: https://forums.rpgmakerweb.com/threads/problem-when-outputting-game-without-unused-files.144445/