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\$
11
  • 1
    \$\begingroup\$ Nor does it show any research effort. \$\endgroup\$
    – House
    Apr 3, 2012 at 15:13
  • 4
    \$\begingroup\$ What you're asking about are called file extensions. Google that. \$\endgroup\$
    – House
    Apr 3, 2012 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\$
    – user1430
    Apr 3, 2012 at 15:19
  • 2
    \$\begingroup\$ @JoshPetrie It wasn't those files I was interested in, it was game save files in general. \$\endgroup\$
    – Russell
    Apr 3, 2012 at 15:20
  • 6
    \$\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, 2012 at 16:41

1 Answer 1

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\$
1
  • \$\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, 2012 at 15:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .