Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

v0dKA

How to save info after shut down

This topic is 5420 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

What type of file retains information and values of variables after the program is ended and or computer is shut down? how do games keep their save information?

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by v0dKA

how do games keep their save information?


They keep it on the hard drive





--{You fight like a dairy farmer!}

Share this post


Link to post
Share on other sites
There are a number of ways to do this, but the easiest explanation is this: for every object that you care about, you save their current position / stats in a certain order, then you reload the information in the exact same order.

Share this post


Link to post
Share on other sites
If you don''t know how games write things to the hard drive i recommend you download the Platform SDK(google:"Platform SDK") and read about the functions Createfile(), ReadFile(), WriteFile(), and Closehandle()... that should be all you need to the writing.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!