Jump to content
  • Advertisement
Sign in to follow this  
kbrizs

Question about game states in online games like eveonline or wow and etc.

This topic is 3179 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am currently learning about implementing game save systems and I have a question about mmo's. In a game like eve-online where there are thousands of users, it makes sense that character data is on the server and every time a person logs on and off it is not saved to the server. How are game save systems implemented on such a scale. Are databases used? Is it feasible to use something like mysql. If you have experience with this, I would be very interested to hear from you. Links and even example code would be nice. C/C++ of course.

Share this post


Link to post
Share on other sites
Advertisement
A general approach would be to store any information about "active" players in memory (loading information such as their level, gear, last known location etc from the database when they login), with only permanent data being persisted to the database on logout and perhaps at regular intervals during play (so current HP might never need to be saved into the database, for example)

A case could be made for using any of the database systems commonly available, but would depend on specific needs such as scale.

Share this post


Link to post
Share on other sites
MySQL would work, just remember that the default DB engine (MyISAM) doesn't support transactions. (The InnoDB and BDB engines have transaction support and can be used where necessary).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!