SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
84 stars 18 forks source link

Certain clothing articles not appearing in character inventory- #4282

Closed Axodouble closed 6 months ago

Axodouble commented 6 months ago

Certain clothing articles are not appearing in the character inventory if their storage is set to 0 Width & 0 Height.

This seems to affect all pieces of clothing that by default have the ability to have storage, being;

If they have their storage set to 0 Width & 0 Height, they no longer appear in the inventory ui as an equipped article of clothing, whereas their counterparts such as the hats or glasses will still appear as an equipped article of clothing, this doesn't seem to make much sense for consistency reasons, and instead if this is intended behaviour, adding in a tag to keep them invisible in the inventory ui would much be appreciated.

SDGNelson commented 6 months ago

This is rather hardcoded at the moment that certain clothing slots are always for storage, and others are always for non-storage. I'd like to address it as part of inventory and clothing changes to allow custom clothing slots and separate those two features from one another.

Axodouble commented 6 months ago

This is rather hardcoded at the moment that certain clothing slots are always for storage, and others are always for non-storage. I'd like to address it as part of inventory and clothing changes to allow custom clothing slots and separate those two features from one another.

Either I am misunderstanding you, or you misunderstand me, but if a shirt itself has no storage assigned to it, it does not show anywhere as it being equipped, other than the physical player model.

surv0013 commented 6 months ago

I am misunderstanding you, or you misunderstand me

Yes, you just didn’t understand each other. This bug is at least 4 years old. In general, the essence is this: set the height and width of the shirt to 0 and put it on. There is no button in the inventory on the right to remove it, you have to click on the character on the left to do it.

GazziFX commented 6 months ago

Certain clothing articles are not appearing in the character inventory if their storage is set to 0 Width & 0 Height.

Just set Width 0 and Height 1 image

Axodouble commented 6 months ago

Certain clothing articles are not appearing in the character inventory if their storage is set to 0 Width & 0 Height.

Just set Width 0 and Height 1 image

Workarounds are nice, but a fix is better.