4
\$\begingroup\$

I've reached the saving part of my game, as in, you press save and it writes to a text file, but I've noticed that most games and programs out there use custom save formats, like Dwarf Fortress DAT files. What are these? are these just text files formatted for the program, or are they a lower level thing?

\$\endgroup\$
  • 1
    \$\begingroup\$ Nor does it show any research effort. \$\endgroup\$ – MichaelHouse Apr 3 '12 at 15:13
  • 4
    \$\begingroup\$ What you're asking about are called file extensions. Google that. \$\endgroup\$ – MichaelHouse Apr 3 '12 at 15:17
  • 1
    \$\begingroup\$ If you want to know what those files are, you should have searched for them directly: a search for PPTX, a search for JPEG, for example. \$\endgroup\$ – Josh Apr 3 '12 at 15:19
  • 1
    \$\begingroup\$ @JoshPetrie It wasn't those files I was interested in, it was game save files in general. \$\endgroup\$ – Russell Apr 3 '12 at 15:20
  • 5
    \$\begingroup\$ I think everyone is attacking @Russell too much. The question may have been worded poorly but the question is still valid. Perhaps "How do you design/implement save files?" would have been a better way of going about it. \$\endgroup\$ – Mike Cluck Apr 3 '12 at 16:41
6
\$\begingroup\$

Many games use a proprietary format for saving data, which they serialize in either plain text or binary form. The format of that data is entirely up to the game, as is the extension the author chooses to use (if one is chosen at all).

That said, all the extensions you've listed probably aren't saved game data at all, because they all have canonical uses elsewhere. PPT and PPTX are usually PointPoint slide decks, JPG and JPEG are image files, and KEY, while less of a de-facto standard, sounds more like a file used to store license key information or something rather than game data.

\$\endgroup\$
  • \$\begingroup\$ .Key is the mac keynote save, I just used it because I couldn't think of game save files of the top of my head (I don't normally play many games) I'll accept this answer after Stack Overflow allows me. \$\endgroup\$ – Russell Apr 3 '12 at 15:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.