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,180
Reaction score
715
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,397
Reaction score
7,221
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
488
Reaction score
212
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,660
Reaction score
13,270
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

So I just spent the weekend...playing my own game. The one I released last year. Yep you heard that right.
Goal for MZ? None... I'm still curious how to finish my VXA project and how it looks like when it actually finished. Which will take at least another two years. Coming late again to the party.
Finding it amusing that people are posting support questions in new threads for an engine that isn't even released yet. Touch and Archeia are the only ones authorised to say anything, and there's only one active thread where they'll be answering questions.
I think my goal for MZ ... is to actually release a game and not have twenty technical demos and debugging projects. Let's see if I can manage that. ;o
I am starting to enjoy writing. I never thought I would enjoy it since my dyslexia was holding me back so much.
Thanks to the community here :)
For those interested chapter 2 and 3 are available to read here:

Forum statistics

Threads
100,652
Messages
978,096
Members
132,261
Latest member
DarthNinjus
Top