Cannot get modular inventory system to work fluently with Client

Hello. I am trying to implement this inventory system to my project:

I managed to do it and set everything up. However, now I am trying to do a chest system in where each player can transfer their items from their inventories. Sadly I’m having an issue with owner and relevancy logic which also seems to not work correctly on the provided project for the system.

The way the inventory system works is from an inventory component. I have one in the player controller for the player inventory, and one in the chest actor for the chest/vault inventory. The component creates an inventory widget on BeginPlay and sets it as a replicated variable with the condition Owner Only.

The inventory system works fine, however the widget for the chest inventory gets added/removed from the server successfully but not for the client. It gets added, but doesn’t get removed and gives accessed none errors. This is the code for the chest actor:


This is the client event which executes from the player controller:

And the replication settings I’m using for the chest actor: (all components are set to replicate)
image

Video demonstration:

Fresh project with the component from Github link above, reproducing same issue (no errors because it has valid check):

Now I’m still pretty new to Multiplayer so I’m not certain where the issue is coming from. Any help is appreciated kindly. What could I do to fix this problem? Appreciate it!

Edit: If I remove Set Owner it works as intended, but drag and drop does not work. So it has something to do with the Owner… Am I setting it wrong by any chance?

I havent looked at it for a while. I shall try to update with UE5.

1 Like

Hey man! Thanks for the information. For now I’ve decided to use something else but I still love this inventory component because it taught me so much. Would love to see you make it better!

Either ways thanks for spotting the issue and I haved fixed it just now.

1 Like

Great to hear! Thank you very much.