How do MMORPGs store dataHow do games like runescape store every last detail of what you have d
21 Replies - 4921 Views - Last Post: 20 August 2009 - 08:57 PM
#1
How do MMORPGs store data
Posted 22 March 2009 - 04:03 AM
How do they store all of this information? I'm pretty sure they dont do constant database updates? that would be mental on server load etc?
Just looking for a bit of information really, not related to any projects im doing, just a bit of a wonder.
Thanks.
Replies To: How do MMORPGs store data
#2
Re: How do MMORPGs store data
Posted 22 March 2009 - 04:05 AM
#3
Re: How do MMORPGs store data
Posted 22 March 2009 - 04:17 AM
TMKCodes, on 22 Mar, 2009 - 03:05 AM, said:
That seems alot... if i click a different coordinate (x5,y5) for example, i get to about (x3,y4) and my computer turns off, when i log back in im on x3,y4 again. That means it monitors every step..
I just find it hard to grasp that for 200,000 members online at once, each member doing about 5 actions per second (moving/training, chatting, slecting a tab...probably more) they just keep updating the database.
Are you talking from knowledge and experience or is it guess work?
#4
Re: How do MMORPGs store data
Posted 22 March 2009 - 04:20 AM
Knowledge, because i've worked on similar game, well it was not 3d, but 2d mmorpg with java.
#5
Re: How do MMORPGs store data
Posted 22 March 2009 - 04:24 AM
TMKCodes, on 22 Mar, 2009 - 03:20 AM, said:
Knowledge, because i've worked on similar game, well it was not 3d, but 2d mmorpg with java.
Oh ok fair enough, thats some pretty intense server needed.. You would think the game would be slower than expected, that must mean that at every change point they get all the data again from the database too? or maybe im just not experienced enough with games yet, thanks for your reply anyway.
#9
Re: How do MMORPGs store data
Posted 22 March 2009 - 04:26 AM
xssvgamer, on 22 Mar, 2009 - 05:03 AM, said:
Of course they do.
The game server knows all, right? Periodically, the "state" of the entire server will get flushed to a database. In the case of an individual account, the state of the character is stored when they log out or time out. It's then read and restored when they log back in.
Reasonably, there are a number of in game actions that will flag a character for a database update. That probably won't mean immediate update, but rather a position in the queue for when the storage processor gets around to it. It's possible you could log out and log back in with never a database hit; the state is still in the server.
As long as the middle tier, the game server itself, is running it probably doesn't even need a database. But it will need one for startup, shutdown, and most likely the catalog of all the objects that make up the environment.
#10
Re: How do MMORPGs store data
Posted 22 March 2009 - 04:32 AM
Wouldn't that be easier and less stress on the database?
#11
Re: How do MMORPGs store data
Posted 22 March 2009 - 04:34 AM
And saving to datafile takes also resources as would querying to SQL database.
This post has been edited by TMKCodes: 22 March 2009 - 04:36 AM
#12
Re: How do MMORPGs store data
Posted 22 March 2009 - 04:42 AM
Thanks for the replys aswell.
#13
Re: How do MMORPGs store data
Posted 22 March 2009 - 04:45 AM
#14
Re: How do MMORPGs store data
Posted 22 March 2009 - 08:30 AM
xssvgamer, on 22 Mar, 2009 - 03:42 AM, said:
Thanks for the replys aswell.
I would say a system call to read from a file would take more resources and time than it would to make a quick connection (or use a persistent connection) to the database server and query. Along with opening your datafile, you also have to seek the data you need, it'd get very clogged up and you'd need to build a whole system around how you store data in the said file.. and as the games authors are game makers, they probably aren't able to spend all their time on the datafile software to make it quicker unlike the people at MySQL, PgSQL, MsSQL + more
This post has been edited by Imdsm: 22 March 2009 - 08:31 AM
#15
Re: How do MMORPGs store data
Posted 22 March 2009 - 08:59 AM
#16
Re: How do MMORPGs store data
Posted 27 March 2009 - 04:04 AM
#17
Re: How do MMORPGs store data
Posted 30 March 2009 - 04:43 PM
if the server didn't know every little tiny tiny detail from every millisecond, the games wouldn't work.
#18
Re: How do MMORPGs store data
Posted 02 April 2009 - 06:55 AM
|
|

New Topic/Question
Reply




MultiQuote








|