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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alice-morozova.gitbook.io/dragon-nest/dnt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
