> For the complete documentation index, see [llms.txt](https://alice-morozova.gitbook.io/dragon-nest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alice-morozova.gitbook.io/dragon-nest/dnt.md).

# DNT Files

{% hint style="info" %}
**DNT are files which contain data about items, skills, projectiles, resources in table form.**
{% endhint %}

***

## File structure

### The Dnt files contain Header, columnsInfo, dataInfo and endInfo.

## Length with String structure&#x20;

| Element Name | Data Type       | Description                    |
| ------------ | --------------- | ------------------------------ |
| Length       | uint16          | Length of nearby string        |
| String       | String\[Length] | String which depends of Length |

## Header structure

| Element Name       | Data type                            | Description                          |
| ------------------ | ------------------------------------ | ------------------------------------ |
| NUM (Magic Number) | uint32                               | **Always equals 0**                  |
| Count of columns   | uint16                               | Contains info of columns count       |
| Count of rows      | uint32                               | Contains info of rows count          |
| Columns            | Columns\[], length = count of colums | Columns\[], structure provided below |

## Column structure

| Element Name | Data Type                                               |                                       |
| ------------ | ------------------------------------------------------- | ------------------------------------- |
| Column Name  | [**Length with String**](#length-with-string-structure) | Name of column                        |
| Column Type  | Column Type (uint8)                                     | Type of column value, provided below. |

## Column Type

{% hint style="warning" %}
**Value of row cell depends of column type value.**
{% endhint %}

| Column Type Index | Data Type                                               | Description                |
| ----------------- | ------------------------------------------------------- | -------------------------- |
| 1                 | [**Length with String**](#length-with-string-structure) | Text                       |
| 2                 | uint32                                                  | Boolean (0/1 - true/false) |
| 3                 | int32                                                   | Integer                    |
| 4                 | float32                                                 | Float                      |
| 5                 | float32                                                 | Float                      |

## End Info Structure

| Element Name | Value          | Description                          |
| ------------ | -------------- | ------------------------------------ |
| End Number   | 5 (uint8)      | **Always equals 5**                  |
| End String   | THEND (string) | **Always equals THEND** (length = 5) |

***

## <mark style="color:green;">Conclusion</mark>

<mark style="color:green;">**If you know the structure of DNT files, you can create your own converter from DNT to CSV (or TSV) and back to edit Dragon Nest game data.**</mark>
