*.2dt files

05/18/2015 18:10 VEssence#1
Hello there,

Is there anyone who knows the structure for *.2dt files here?

Short info:
*.2dt files are new interface system which works on new clients(such as isro, csro, vsro), which placed at "Media.pk2\res_ui\".

I'm working on to make a proper editor for those files, any kind of help will be perfect. :handsdown:
05/23/2015 14:00 Stratti#2
Hello,

I remember spending some time on these files.
The structure is pretty simple. Please note that I haven't figured out the complete format yet.

The file basically consists of a specified amount of fixed-size data blocks. Each block has a total size of 976 bytes. The first four bytes of the file specify the amount of blocks that will follow.

So the basic structure looks like this:
Code:
[INT32]    Number of blocks
for (int i = 0; i < numberOfBlocks; i++)
{
    [976 bytes]    Data block
}
This also means that the size of the file can be calculated like this: totalSize = 4 + (numberOfBlocks*976)

Now, each data block can be interpreted as follows:

As you can see, I haven't figured out what most of pieces in the data block mean, so there's still some work to do.
Probably you could use the old interface format to figure those unkown pieces out.

With this information I wrote a simple C# application which converts the .2dt file into a human-readable JSON file and vice versa.

Using this program to convert the nifeventword.2dt file into a JSON file, I got the following output:

If you find any error our just have an idea for improvement, let me know!

I hope I could help you a little.
Stratti
05/24/2015 15:22 $WeGs#3
Check this
[Only registered and activated users can see links. Click Here To Register...]