After deploying my game, the file I use with the YEP_WeaponAnimations plugin is not there. When deploying the game, I have to check the exclude unused files for it to even deploy. I suspect that is why the folder is not appearing in the deployed game but I have no idea why my game refuses to deploy unless I use exclude unused files. Any help is appreciated as most threads on this are 4+ years old.
File I store weapons skins in not appearing after deployment
RPG Maker Mobile Deploymentexclude files in deployment is something you want to avoid.
there is a better software tha does it better though, but the best way
to do it right is to do it manually.
you are the only one which fies are used and which do not.
there is a better software tha does it better though, but the best way
to do it right is to do it manually.
you are the only one which fies are used and which do not.
yes and no.
there is a script command to register required files, but unfortunately most plugin writers do not use it, resulting in the files their plugins need not being included when the option to exclude unused is checked.
the usual workaround on that is to make a map that is inaccessable in the game and include the files in regular events there. That is enough to have the editor register those files as "used by events" and include them even if the exclude unused option is used in deployment
How would you suggest I use weapon skin/ animation files on a separate map? They’re just the weapon animations but with a different skin.
If they're not in one of the standard image folders (or if they're in the system folder, as I don't know of any way to reference a system image from an event), the map solution probably won't work. You could instead try a plugin-based solution. Just add this as a plugin to your project (call it WhateverYouLike.js):
Then add a reference to every weapon skin in the plugin's parameters. I don't know how many you have, so it might be a bit tedious, but it should at least get it working.
I also included a list for audio and animation assets, just in case you happen to need that in the future. You can safely ignore it if you don't need it.
JavaScript:
/*:
@plugindesc Create references to files for the Exclude Unused setting.
@author Solar Flare Games
@param Images
@type file[]
@require 1
@dir img/
@default []
@param Audio
@type file[]
@require 1
@dir audio/
@default []
@param Animations
@type animation
@require 1
@default []
@help
This plugin has no functionality, but allows you to list assets that should be
included by the Exclude Unused Files feature.
*/
Then add a reference to every weapon skin in the plugin's parameters. I don't know how many you have, so it might be a bit tedious, but it should at least get it working.
I also included a list for audio and animation assets, just in case you happen to need that in the future. You can safely ignore it if you don't need it.
The other option is to manually remove all the unused resources, then deploy, leaving Exclude Unused Files unchecked.
If you go this way, make sure you take a backup of all your folders first, just in case you remove something that actually IS used.
If you go this way, make sure you take a backup of all your folders first, just in case you remove something that actually IS used.
Thanks, Solar, I know you will probably never see this since it is more than a month later, but this solved my problem.
Original thread: https://forums.rpgmakerweb.com/threads/file-i-store-weapons-skins-in-not-appearing-after-deployment.124042/