05.05.2018 When display IDs are server sided - Spikeone/WaS_Server GitHub Wiki
05.05.2018 - When display IDs are server sided
I am still working on the basic inventory system which takes a lot of work and tinkering just to get it working. When I added shoulder armors, I've just shown them always. This means it wasn't important which shoulders you had as they all got the same skin. As I will not save items or item templates on the client side, I have to tell the client you got an item, it has those properties, now just show it. One of the properties is the display id. The client has a list of objects and corresponding IDs. The server has a list of items and display IDs. So the server has no idea what an ID means, but knows item <=> DisplayID. Now the client only knows DisplayID <=> Model. So for now the client then asks the server "hey man, got that item with id 3, may you tell me what it is? I don't know it yet". The server then answers "sure, I'll look it up, okay I'm sending all data, here we go". The client then never replies (greedy bastard) and uses the newly known displayID to display the item. Working quite well but as said, the server has no idea if that display ID makes sense anyway... so the following can happen:
Yes - those are staffs which... shouldn't be worn as shoulder armor but maybe thats the new eu meta.