Jump to content

Recommended Posts

Posted

I am keen to understand the format of the TFD file to work out how texture tiles references are stored. I there is anyone still around that knows or can point me in the right direction, please pm me.

Posted

My (partial) understanding of the tfd file format. Maybe Gerwin can fill the gaps since he wrote a tfd/hfd editor.

number          variable type           description
of bytes

4               integer                 number of tiles in x (W-E) direction
4               integer                 number of tiles in y (S-N) direction
8               double                  tile size in meters

two dimensional array of tiles in row (W-E) major order, beginning in the south-west of the map:

for each tile
2               short                   texture id, references the texture tiles as follows: 
                                        texture id = NNN - 1, with NNN the number from the [textureNNN] entries in terrain_data.ini file 
2               short                   tile rotation: 0 = 0 degree, 1 = 90 degree, 2 = 180 degree, 3 = 270 degree 
                                        (I forgot if clockwise or counterclockwise)
8               ?                       ?

 

  • Like 1
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..