Sign in to follow this  
Kenny77

DAT Files

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this