02-12-2012, 08:22 PM
Rob Wrote:Exactly. The data is already available (in memory) so there's no need to also store it in a database that would require a db hit anytime someone hits the page (if some type of caching strategy isn't used). Not taking into account sync issues due to server crashes, but just the fact that whenever items are bought/placed/removed/modified you would need to update the database to reflect this or have a cron task that runs to do it (and then potentially having stale data).
Set up a service within the server that exposes the data in json and have some javascript on the client that pulls it and formats it into some searchable grid/list/table to view. It doesn't have to be pretty, just functional. I think displaying items and allowing searching would be a great first goal.
Yep, and since all of the world data is static collections, you can simply read items from your service thread without risking locking gameplay. Just don't add/remove itens. ;/