Lately I have been trying to make a custom umbrella for my clothing mod, one which the player would be able to use instead of the vanilla items. I have no issues with other items (vests or hats) that are in the same folder but I somehow am unable to load the item in-game, having the following report:
If other things are still working, that may be fine. I see a mention that the current version is 2021.3.29f1. It’s been a while since I’ve played around with modding so I don’t remember the exact things that can cause this. Are tags and layers correct on the Item prefab? And also, do you have other items you’re currently working on that are in the same folder for the mod but have no issues?
If there’s any concern of losing anything you can make a backup of the project then install the new version and open up one of the copies. I’m sticking with checking tags and layers if other files in the mod work fine.
Alright so I updated unity, checked tags and layers, remade the umbrella file entirely and it still does not work… I am in lack of any option right now…
Would you mind providing a full, uncropped screenshot of your Item.prefab in Unity (i.e., with the Item.prefab selected)? It’s a bit difficult to completely see your setup, with the current images you’ve provided.
If you click on “Filter Selected Name”, you should see all of the assets included in your master bundle. This should include your umbrella’s Item.prefab.
Am I correct in assuming that your MasterBundle.dat file is located in a folder named “MCE_Bundles”? Inside that folder, there should be a .manifest file. For example, mce.masterbundle.manifest. If you open this file in a text editor, you will see a similar list of all the assets included in your master bundle. The umbrella’s Item.prefab should be listed here as well.
It does appear, both in the “Filter Selected Name” part and in the manifest, which is why I am so confused, I feel like I did everything right, it isn’t even the first time I export a custom item but idk what is going wrong there.
Would you have a sample file for an umbrella, one which I may use to see what went wrong ? I can’t figure if it comes from the example assets or from me…
To clarify, for anyone who is curious about what happened:
OP accidentally had their mod installed twice. One version inside their Sandbox folder, and one version from their Workshop files. They removed one of their copies of the mod, and the issue was resolved.
Items can use the EquipablePrefab to override the model spawned when the item is equipped. Basically, you can have different models for when the item is in your hands, versus when it’s in your inventory.