View Single Post
  #23  
Old 03-10-2012, 07:37 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by Draenin View Post
Sure you do.

Information like what you just listed ("the item's icon file name or a description about the item for displaying in the inventory") can be stored more conveniently in database tables as well, and you can read from those tables just as easily as you can read them from player accounts.

Variables which are subject to change and specifically relevant to player accounts should be kept on players, and everything else should be stored in a database.
Did you even read my proposed general solution? The information would be stored in database tables. But whenever serverside information is going to be needed constantly by the client, it is not viable to repeatedly request that information from the server. Instead, you should cache the information in clientr.variables which are in sync with the server.

Quote:
Originally Posted by cbk1994 View Post
Why client vars? The client doesn't need to change them and I don't think you're gaining anything by doing that.
Yeah, I don't know what I was saying. I was thinking that there was a difference in how they are synchronized (client requiring less overhead), but I was getting mixed up with something else. There could be, but not in the way that I was thinking.

plz 4give
__________________
Reply With Quote