File I store weapons skins in not appearing after deployment

SimonWagon

Villager
Member
Joined
May 25, 2020
Messages
15
Reaction score
1
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,420
Reaction score
804
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,726
Reaction score
7,376
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
15
Reaction score
1
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
525
Reaction score
230
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,939
Reaction score
13,579
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.
 

SimonWagon

Villager
Member
Joined
May 25, 2020
Messages
15
Reaction score
1
First Language
English
Primarily Uses
RMMV
Thanks, Solar, I know you will probably never see this since it is more than a month later, but this solved my problem.
 

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

Latest Threads

Latest Profile Posts

I was more focused on female characters than men.

Score Rundown for the demo I'm trying to get done before Halloween, Or around it. Ending is based on your score currently.
Oh goooood, why am putting so many skills into my game AAAAAAAAAAAA!
Stream will be live shortly with some pixel art! Feel free to drop by!
Actor2_8 added!

Forum statistics

Threads
103,157
Messages
997,702
Members
134,632
Latest member
GaiaEx
Top