Correct way to manage player inventory with Authoritative Server
Options
roywax
✭
Hello,
I am using an Authoritative Server in bolt. I want to manage the player inventory which has dynamic size.
What is correct way to show this inventory UI in clients?
Each time connect to server and stream list of items to client?
Manage it somehow in Bolt Entity State? (Which has fixed length arrays)
Thanks
Roy
I am using an Authoritative Server in bolt. I want to manage the player inventory which has dynamic size.
What is correct way to show this inventory UI in clients?
Each time connect to server and stream list of items to client?
Manage it somehow in Bolt Entity State? (Which has fixed length arrays)
Thanks
Roy
0
Comments
-
Hi @roywax ,
There is no right way of doing so, but as you already noted, Bolt Array Assets have fixed size, so if you need it to be dynamic, you either create enough slots and use them when you want (keep in mind that not changed data is not sent across the network), or you can use Reliable Events to keep them in sync.
Either way should work, but they are pretty different ways to tackle it.
--
Ramon Melo
Photon Bolt Team0