Jump to content
  • Advertisement
Sign in to follow this  
Kenny77

DAT Files

This topic is 4064 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've read about DAT files, but I can't seem to find out how to create and edit them. Does anyone have any tips or editors?

Share this post


Link to post
Share on other sites
Advertisement
DAT has no formal meaning.

Which application/game is this for? It's almost certainly a proprietary format.

Share this post


Link to post
Share on other sites
It's part of a tutorial I'm doing, using heightmaps. It's supposed to be easier to use DAT files over BMP files.

Share this post


Link to post
Share on other sites
the .DAT file extension typically just means the file contains data for an application. Consequently, there are hundreds of different DAT formats (although there are a couple major ones) ranging from plaintext strings to encrypted, compressed blocks of heavily formatted data.

Share this post


Link to post
Share on other sites
As medevilenemy said, it could be anything. Usually though .dat files are raw binary data, which you most likely don't know how to handle if you don't have any clues about the formatting.

In your case though it might be quite simple. Since you are referring to heightmaps, which are usually stored as 16 bit values, you probably have a square of X * X heights, each being stored in a 16 bit value. So your first 16 bits of the file represent (most likely) the upper left height in your heightmap. The next 16 bit represent the next 16 bit height in the most left column and so on.

I hope you get what I mean ;)

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.

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!