Issue with a modded umbrella item

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:

[2024-10-03 17:29:30] Caught exception while populating "C:\Program Files (x86)\Steam\steamapps\common\Unturned\Bundles\Max_Clothing_Expansion\MCE_Bundles\Items\Clouds\Claes_Dahlin_Series_001_Umbrella_Black\Claes_Dahlin_Series_001_Umbrella_Black.dat": missing 'Item' GameObject
[2024-10-03 17:29:30] missing 'Item' GameObject



image

Would anyone know what is wrong ? No one was able to help me on the discord.

What Unity version are you on?

2018.4.20f1 but it has been working fine up until now with everything else.

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?

1 Like

Yeah I have other items (hats & vests) which have absolutely no issue whatsoever, which is why I don’t understand what’s happening.

As for updating unity, I would but idk if I’ll be able to keep the files I am working on…

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…

Which Unity version did you update to?

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.

2021.3.29f1 and yes I’ll send one asap.


I recommend double-checking your asset labels.

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.

image

1 Like

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…

If you’d like to export and email me a copy of your modded assets, I’ll take a look after the weekend.

And I can send over a copy of the vanilla example, although simply reimporting the ExampleAssets.unitypackage will provide the same files.

1 Like

Sure thing, I’ll send those when home.

Thanks @MoltonMontro for your help with my issues and in improving my umbrella
ezgif-5-54f011655c
It now works properly and I also made it so that the model is separate when used than when dropped or in inventory.

2 Likes

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. :slight_smile:

I’ve marked this post as the solution.

2 Likes

wow,
how to make this new icon?

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.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.