File I store weapons skins in not appearing after deployment

SimonWagon

Villager
Member
Joined
May 25, 2020
Messages
14
Reaction score
0
First Language
English
Primarily Uses
RMMV
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.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,213
Reaction score
733
First Language
Dutch
Primarily Uses
RMMV
exclude 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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,426
Reaction score
7,234
First Language
German
Primarily Uses
RMMV
exclude files in deployment is something you want to avoid.
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
 

SimonWagon

Villager
Member
Joined
May 25, 2020
Messages
14
Reaction score
0
First Language
English
Primarily Uses
RMMV
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.
 

Solar_Flare

Veteran
Veteran
Joined
Jun 6, 2020
Messages
502
Reaction score
219
First Language
English
Primarily Uses
RMMV
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):

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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,686
Reaction score
13,306
First Language
English
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I wanna try making my game into an app because that sounds cool but I am so lost on how to :kaocry:
I found some tutorial but they all seem to use an older android studio(2.3.3)? I think the current version is 4.0.1?
is there an updated tutorial or do I need to find a way to get 2.3.3.?
My heart goes out to the family of Cannon Hinnant. Shame on all major news networks in America for not reporting that a 5 year old was executed by a grown man. Absolutely disgusting.
I hope Turkey and Greece can settle on the resources dispute peacefully.
whos hyped for rpg maker mz :D

Forum statistics

Threads
100,820
Messages
979,906
Members
132,458
Latest member
pidogec780
Top